c7ced82fb4618761ed0112ae3ed61bc47ea7d042
[gnulib.git] / ChangeLog
1 2009-12-24  Bruno Haible  <bruno@clisp.org>
2
3         * lib/stdlib.in.h (includes): Fix typo in today's commit.
4
5 2009-12-24  Eric Blake  <ebb9@byu.net>
6
7         tests: add signature checks
8         * tests/signature.h (SIGNATURE_CHECK): New file.
9         * modules/atexit-tests (Files): Use it.
10         * modules/btowc-tests (Files): Likewise.
11         * modules/canonicalize-lgpl-tests (Files): Likewise.
12         * modules/ceilf-tests (Files): Likewise.
13         * modules/ceill-tests (Files): Likewise.
14         * modules/chown-tests (Files): Likewise.
15         * modules/dprintf-posix-tests (Files): Likewise.
16         * modules/dup2-tests (Files): Likewise.
17         * modules/dup3-tests (Files): Likewise.
18         * modules/duplocale-tests (Files): Likewise.
19         * modules/fchdir-tests (Files): Likewise.
20         * modules/fcntl-tests (Files): Likewise.
21         * modules/fdopendir-tests (Files): Likewise.
22         * modules/fflush-tests (Files): Likewise.
23         * modules/flock-tests (Files): Likewise.
24         * modules/floorf-tests (Files): Likewise.
25         * modules/floorl-tests (Files): Likewise.
26         * modules/fnmatch-tests (Files): Likewise.
27         * modules/fopen-tests (Files): Likewise.
28         * modules/fprintf-posix-tests (Files): Likewise.
29         * modules/freopen-tests (Files): Likewise.
30         * modules/frexp-nolibm-tests (Files): Likewise.
31         * modules/frexp-tests (Files): Likewise.
32         * modules/frexpl-nolibm-tests (Files): Likewise.
33         * modules/frexpl-tests (Files): Likewise.
34         * modules/fseek-tests (Files): Likewise.
35         * modules/fseeko-tests (Files): Likewise.
36         * modules/fsync-tests (Files): Likewise.
37         * modules/ftell-tests (Files): Likewise.
38         * modules/ftello-tests (Files): Likewise.
39         * modules/futimens-tests (Files): Likewise.
40         * modules/getaddrinfo-tests (Files): Likewise.
41         * modules/getcwd-tests (Files): Likewise.
42         * modules/getdelim-tests (Files): Likewise.
43         * modules/getdtablesize-tests (Files): Likewise.
44         * modules/getgroups-tests (Files): Likewise.
45         * modules/gethostname-tests (Files): Likewise.
46         * modules/getline-tests (Files): Likewise.
47         * modules/getopt-posix-tests (Files): Likewise.
48         * modules/gettimeofday-tests (Files): Likewise.
49         * modules/glob-tests (Files): Likewise.
50         * modules/iconv-tests (Files): Likewise.
51         * modules/inet_ntop-tests (Files): Likewise.
52         * modules/inet_pton-tests (Files): Likewise.
53         * modules/isblank-tests (Files): Likewise.
54         * modules/lchown-tests (Files): Likewise.
55         * modules/ldexpl-tests (Files): Likewise.
56         * modules/link-tests (Files): Likewise.
57         * modules/linkat-tests (Files): Likewise.
58         * modules/lseek-tests (Files): Likewise.
59         * modules/lstat-tests (Files): Likewise.
60         * modules/mbrtowc-tests (Files): Likewise.
61         * modules/mbsinit-tests (Files): Likewise.
62         * modules/mbsnrtowcs-tests (Files): Likewise.
63         * modules/mbsrtowcs-tests (Files): Likewise.
64         * modules/memchr-tests (Files): Likewise.
65         * modules/memcmp-tests (Files): Likewise.
66         * modules/memmem-tests (Files): Likewise.
67         * modules/memrchr-tests (Files): Likewise.
68         * modules/mkdir-tests (Files): Likewise.
69         * modules/mkfifo-tests (Files): Likewise.
70         * modules/mkfifoat-tests (Files): Likewise.
71         * modules/mknod-tests (Files): Likewise.
72         * modules/nanosleep-tests (Files): Likewise.
73         * modules/nl_langinfo-tests (Files): Likewise.
74         * modules/obstack-printf-tests (Files): Likewise.
75         * modules/open-tests (Files): Likewise.
76         * modules/openat-tests (Files): Likewise.
77         * modules/perror-tests (Files): Likewise.
78         * modules/pipe2-tests (Files): Likewise.
79         * modules/poll-tests (Files): Likewise.
80         * modules/popen-tests (Files): Likewise.
81         * modules/posix_spawn-tests (Files): Likewise.
82         * modules/posix_spawnp-tests (Files): Likewise.
83         * modules/pread-tests (Files): Likewise.
84         * modules/printf-posix-tests (Files): Likewise.
85         * modules/pty-tests (Files): Likewise.
86         * modules/random_r-tests (Files): Likewise.
87         * modules/rawmemchr-tests (Files): Likewise.
88         * modules/readlink-tests (Files): Likewise.
89         * modules/remove-tests (Files): Likewise.
90         * modules/rename-tests (Files): Likewise.
91         * modules/renameat-tests (Files): Likewise.
92         * modules/rmdir-tests (Files): Likewise.
93         * modules/round-tests (Files): Likewise.
94         * modules/roundf-tests (Files): Likewise.
95         * modules/roundl-tests (Files): Likewise.
96         * modules/select-tests (Files): Likewise.
97         * modules/setenv-tests (Files): Likewise.
98         * modules/sigaction-tests (Files): Likewise.
99         * modules/sleep-tests (Files): Likewise.
100         * modules/snprintf-posix-tests (Files): Likewise.
101         * modules/snprintf-tests (Files): Likewise.
102         * modules/sprintf-posix-tests (Files): Likewise.
103         * modules/stat-tests (Files): Likewise.
104         * modules/strcasestr-tests (Files): Likewise.
105         * modules/strchrnul-tests (Files): Likewise.
106         * modules/strerror-tests (Files): Likewise.
107         * modules/strsignal-tests (Files): Likewise.
108         * modules/strstr-tests (Files): Likewise.
109         * modules/strtod-tests (Files): Likewise.
110         * modules/strverscmp-tests (Files): Likewise.
111         * modules/symlink-tests (Files): Likewise.
112         * modules/symlinkat-tests (Files): Likewise.
113         * modules/times-tests (Files): Likewise.
114         * modules/trunc-tests (Files): Likewise.
115         * modules/truncf-tests (Files): Likewise.
116         * modules/truncl-tests (Files): Likewise.
117         * modules/tsearch-tests (Files): Likewise.
118         * modules/uname-tests (Files): Likewise.
119         * modules/unlink-tests (Files): Likewise.
120         * modules/unsetenv-tests (Files): Likewise.
121         * modules/usleep-tests (Files): Likewise.
122         * modules/utimensat-tests (Files): Likewise.
123         * modules/vasprintf-tests (Files): Likewise.
124         * modules/vdprintf-posix-tests (Files): Likewise.
125         * modules/vfprintf-posix-tests (Files): Likewise.
126         * modules/vprintf-posix-tests (Files): Likewise.
127         * modules/vsnprintf-posix-tests (Files): Likewise.
128         * modules/vsnprintf-tests (Files): Likewise.
129         * modules/vsprintf-posix-tests (Files): Likewise.
130         * modules/wcrtomb-tests (Files): Likewise.
131         * modules/wcsnrtombs-tests (Files): Likewise.
132         * modules/wcsrtombs-tests (Files): Likewise.
133         * modules/wcwidth-tests (Files): Likewise.
134         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
135         * tests/test-isinf.c (isinf): Likewise.
136         * tests/test-isnan.c (isnan): Likewise.
137         * tests/test-signbit.c (signbit): Likewise.
138         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
139         declaration, either as macro or with correct signature.
140         (select): Ensure function under test is declared with correct
141         signature in correct header.
142         * tests/test-atexit.c (atexit): Likewise.
143         * tests/test-btowc.c (btowc): Likewise.
144         * tests/test-canonicalize-lgpl.c (realpath)
145         (canonicalize_file_name): Likewise.
146         * tests/test-ceilf1.c (ceilf): Likewise.
147         * tests/test-ceill.c (ceill): Likewise.
148         * tests/test-chown.c (chown): Likewise.
149         * tests/test-dprintf-posix.c (dprintf): Likewise.
150         * tests/test-dup2.c (dup2): Likewise.
151         * tests/test-dup3.c (dup3): Likewise.
152         * tests/test-duplocale.c (duplocale): Likewise.
153         * tests/test-fchdir.c (fchdir): Likewise.
154         * tests/test-fchownat.c (fchownat): Likewise.
155         * tests/test-fcntl.c (fcntl): Likewise.
156         * tests/test-fdopendir.c (fdopendir): Likewise.
157         * tests/test-fflush.c (fflush): Likewise.
158         * tests/test-flock.c (flock): Likewise.
159         * tests/test-floorf1.c (floorf): Likewise.
160         * tests/test-floorl.c (floorl): Likewise.
161         * tests/test-fnmatch.c (fnmatch): Likewise.
162         * tests/test-fopen.c (fopen): Likewise.
163         * tests/test-fprintf-posix.c (fprintf): Likewise.
164         * tests/test-freopen.c (freopen): Likewise.
165         * tests/test-frexp.c (frexp): Likewise.
166         * tests/test-frexpl.c (frexpl): Likewise.
167         * tests/test-fseek.c (fseek): Likewise.
168         * tests/test-fseeko.c (fseeko): Likewise.
169         * tests/test-fstatat.c (fstatat): Likewise.
170         * tests/test-fsync.c (fsync): Likewise.
171         * tests/test-ftell.c (ftell): Likewise.
172         * tests/test-ftello.c (ftello): Likewise.
173         * tests/test-futimens.c (futimens): Likewise.
174         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
175         (gai_strerror): Likewise.
176         * tests/test-getcwd.c (getcwd): Likewise.
177         * tests/test-getdelim.c (getdelim): Likewise.
178         * tests/test-getdtablesize.c (getdtablesize): Likewise.
179         * tests/test-getgroups.c (getgroups): Likewise.
180         * tests/test-gethostname.c (gethostname): Likewise.
181         * tests/test-getline.c (getline): Likewise.
182         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
183         Likewise.
184         * tests/test-gettimeofday.c (gettimeofday): Likewise.
185         * tests/test-glob.c (glob, globfree): Likewise.
186         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
187         * tests/test-inet_ntop.c (inet_ntop): Likewise.
188         * tests/test-inet_pton.c (inet_pton): Likewise.
189         * tests/test-isblank.c (isblank): Likewise.
190         * tests/test-lchown.c (lchown): Likewise.
191         * tests/test-ldexpl.c (ldexpl): Likewise.
192         * tests/test-link.c (link): Likewise.
193         * tests/test-linkat.c (linkat): Likewise.
194         * tests/test-lseek.c (lseek): Likewise.
195         * tests/test-lstat.c (lstat): Likewise.
196         * tests/test-mbrtowc.c (mbrtowc): Likewise.
197         * tests/test-mbsinit.c (mbsinit): Likewise.
198         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
199         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
200         * tests/test-memchr.c (memchr): Likewise.
201         * tests/test-memcmp.c (memcmp): Likewise.
202         * tests/test-memmem.c (memmem): Likewise.
203         * tests/test-memrchr.c (memrchr): Likewise.
204         * tests/test-mkdir.c (mkdir): Likewise.
205         * tests/test-mkdirat.c (mkdirat): Likewise.
206         * tests/test-mkfifo.c (mkfifo): Likewise.
207         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
208         * tests/test-mknod.c (mknod): Likewise.
209         * tests/test-nanosleep.c (nanosleep): Likewise.
210         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
211         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
212         Likewise.
213         * tests/test-open.c (open): Likewise.
214         * tests/test-openat.c (openat): Likewise.
215         * tests/test-perror.c (perror): Likewise.
216         * tests/test-pipe2.c (pipe2): Likewise.
217         * tests/test-poll.c (poll): Likewise.
218         * tests/test-popen.c (popen, pclose): Likewise.
219         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
220         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
221         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
222         (posix_spawn_file_actions_destroy)
223         (posix_spawn_file_actions_addclose)
224         (posix_spawn_file_actions_addopen)
225         (posix_spawn_file_actions_adddup2): Likewise.
226         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
227         * tests/test-pread.c (pread): Likewise.
228         * tests/test-printf-posix.c (printf): Likewise.
229         * tests/test-pty.c (openpty, forkpty): Likewise.
230         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
231         (random_r): Likewise.
232         * tests/test-rawmemchr.c (rawmemchr): Likewise.
233         * tests/test-readlink.c (readlink): Likewise.
234         * tests/test-remove.c (remove): Likewise.
235         * tests/test-rename.c (rename): Likewise.
236         * tests/test-renameat.c (renameat): Likewise.
237         * tests/test-rmdir.c (rmdir): Likewise.
238         * tests/test-round1.c (round): Likewise.
239         * tests/test-roundf1.c (roundf): Likewise.
240         * tests/test-roundl.c (roundl): Likewise.
241         * tests/test-setenv.c (setenv): Likewise.
242         * tests/test-sigaction.c (sigaction): Likewise.
243         * tests/test-sleep.c (sleep): Likewise.
244         * tests/test-snprintf.c (snprintf): Likewise.
245         * tests/test-sprintf-posix.c (sprintf): Likewise.
246         * tests/test-stat.c (stat): Likewise.
247         * tests/test-stpncpy.c (stpncpy): Likewise.
248         * tests/test-strcasestr.c (strcasestr): Likewise.
249         * tests/test-strchrnul.c (strchrnul): Likewise.
250         * tests/test-strerror.c (strerror): Likewise.
251         * tests/test-strsignal.c (strsignal): Likewise.
252         * tests/test-strstr.c (strstr): Likewise.
253         * tests/test-strtod.c (strtod): Likewise.
254         * tests/test-strverscmp.c (strverscmp): Likewise.
255         * tests/test-symlink.c (symlink): Likewise.
256         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
257         * tests/test-times.c (times): Likewise.
258         * tests/test-trunc1.c (trunc): Likewise.
259         * tests/test-truncf1.c (truncf): Likewise.
260         * tests/test-truncl.c (truncl): Likewise.
261         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
262         Likewise.
263         * tests/test-uname.c (uname): Likewise.
264         * tests/test-unlink.c (unlink): Likewise.
265         * tests/test-unlinkat.c (unlinkat): Likewise.
266         * tests/test-unsetenv.c (unsetenv): Likewise.
267         * tests/test-usleep.c (usleep): Likewise.
268         * tests/test-utimensat.c (utimensat): Likewise.
269         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
270         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
271         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
272         * tests/test-vprintf-posix.c (vprintf): Likewise.
273         * tests/test-vsnprintf.c (vsnprintf): Likewise.
274         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
275         * tests/test-wcrtomb.c (wcrtomb): Likewise.
276         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
277         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
278         * tests/test-wcwidth.c (wcwidth): Likewise.
279
280         build: pull in conditional headers during GNULIB_POSIXCHECK
281         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
282         definitions from any conditionally-included headers.
283         * lib/stdlib.in.h (includes): Likewise.
284         * lib/unistd.in.h (includes): Likewise.
285
286 2009-12-24  Bruno Haible  <bruno@clisp.org>
287
288         * tests/test-argv-iter.c: Include header file being tested immediately
289         after config.h.
290         * tests/test-base64.c: Likewise.
291         * tests/test-flock.c: Likewise.
292         * tests/test-fsync.c: Likewise.
293         * tests/test-getdate.c: Likewise.
294         * tests/test-getndelim2.c: Likewise.
295         * tests/test-isfinite.c: Likewise.
296         * tests/test-isinf.c: Likewise.
297         * tests/test-strerror.c: Likewise.
298         * tests/test-strsignal.c: Likewise.
299
300 2009-12-23  Eric Blake  <ebb9@byu.net>
301
302         unistd: work around cygwin bug
303         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
304         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
305         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
306
307 2009-12-23  Bruno Haible  <bruno@clisp.org>
308
309         localename: More tests.
310         * tests/test-localename.c (SIZEOF): New macro.
311         (categories): New variable.
312         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
313         test_locale_name_default): Add test w.r.t. thread locale.
314         (test_locale_name_thread): New function.
315         (main): Invoke it.
316
317         localename: Make aware of thread locale.
318         * lib/localename.h (gl_locale_name_thread): New declaration.
319         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
320         behaviour with respect to thread locale.
321         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
322         <langinfo.h>, glthread/lock.h.
323         (SIZE_BITS): New macro.
324         (string_hash): New function.
325         (struct hash_node): New type.
326         (HASH_TABLE_SIZE): New macro.
327         (struniq_hash_table, struniq_lock): New variables.
328         (struniq): New function.
329         (gl_locale_name_thread): New function.
330         (gl_locale_name): Invoke it.
331         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
332         * modules/localename (Depends-on): Add lock.
333         Reported by Mike Gran <spk121@yahoo.com>.
334
335 2009-12-23  Eric Blake  <ebb9@byu.net>
336
337         va-args: new module
338         * modules/va-args: New file.
339         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
340         * MODULES.html.sh (Core language properties): Mention it.
341
342         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
343         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
344         named alias for __attribute__((__unused__)).
345         * lib/chown.c: Update client.
346         * lib/fchmodat.c: Likewise.
347         * lib/fts.c: Likewise.
348         * lib/getdate.y: Likewise.
349         * lib/getgroups.c: Likewise.
350         * lib/getopt.c: Likewise.
351         * lib/getugroups.c: Likewise.
352         * lib/mkdir.c: Likewise.
353         * lib/mkfifo.c: Likewise.
354         * lib/mkfifoat.c: Likewise.
355         * lib/mknod.c: Likewise.
356         * lib/mknodat.c: Likewise.
357         * lib/readlink.c: Likewise.
358         * lib/se-context.in.h: Likewise.
359         * lib/se-selinux.in.h: Likewise.
360         * lib/sockets.c: Likewise.
361         * lib/symlink.c: Likewise.
362         * lib/symlinkat.c: Likewise.
363         * lib/unicodeio.c: Likewise.
364         * lib/unistr.h: Likewise.
365         * tests/test-areadlink.c: Likewise.
366         * tests/test-areadlinkat.c: Likewise.
367         * tests/test-filenamecat.c: Likewise.
368         * tests/test-fseeko.c: Likewise.
369         * tests/test-ftello.c: Likewise.
370         * tests/test-getdate.c: Likewise.
371         * tests/test-getgroups.c: Likewise.
372         * tests/test-gethostname.c: Likewise.
373         * tests/test-quotearg.c: Likewise.
374         * tests/test-version-etc.c: Likewise.
375         * tests/test-xalloc-die.c: Likewise.
376         * tests/test-xfprintf-posix.c: Likewise.
377         * tests/test-xprintf-posix.c: Likewise.
378         * tests/test-xvasprintf.c: Likewise.
379
380         tests: avoid compiler warnings
381         * tests/test-fcntl.c (main): Delete unused parameters.
382         * tests/test-freopen-safer.c (main): Likewise.
383         * tests/test-xalloc-die.c (main): Mark unused parameters.
384         * tests/test-fseeko.c (main): Likewise.
385         * tests/test-ftello.c (main): Likewise.
386         * tests/test-nanosleep.c (main): Avoid declaration warning.
387         * tests/test-sleep.c (main): Likewise.
388         * tests/test-unsetenv.c (main): Silence warning about string
389         literal.
390         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
391
392 2009-12-23  Bruno Haible  <bruno@clisp.org>
393
394         * tests/test-localename.c (test_locale_name): New function, extracted
395         from main. Also test mixed situations.
396         (test_locale_name_posix, test_locale_name_environ,
397         test_locale_name_default): New functions.
398         (main): Invoke them all.
399         * modules/localename-tests (configure.ac): Test for newlocale.
400
401 2009-12-23  Bruno Haible  <bruno@clisp.org>
402
403         unistd: Ensure getcwd gets declared before being overridden.
404         * lib/unistd.in.h: Conditionally include <io.h>.
405
406 2009-12-22  Bruno Haible  <bruno@clisp.org>
407
408         wchar: Diagnose broken combination of glibc and gcc versions and flags.
409         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
410         (gl_WCHAR_H): Invoke it.
411         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
412         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
413         Reported by Karl Berry <karl@freefriends.org>.
414
415 2009-12-22  Eric Blake  <ebb9@byu.net>
416
417         math, unistd: avoid redundant includes
418         * lib/math.in.h (isnan): No need to re-include <math.h>.
419         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
420
421         getsubopt: work around cygwin bug
422         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
423         avoid conflicting with system getsubopt.
424         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
425         bug.
426
427         getopt: synchronize from glibc
428         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
429         parameter order.  Adjust all callers.
430         (_getopt_internal_r, main): Adjust quoting in error messages.
431         Drop considerations for outdated POSIX 1003.2 error message.
432         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
433         callers.
434         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
435
436         test-getopt: test stderr behavior
437         * modules/getopt-posix-tests (Depends-on): Add dup2.
438         * tests/test-getopt.c (ASSERT): Avoid stderr.
439         (main): Move stderr to a temporary file.
440         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
441         Instead, add parameter to inform caller if output occurred.
442         (test_getopt): Adjust all existing tests to expect silence, and
443         add new tests of leading ":".
444         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
445         glibc shortcomings with leading "-:" or "+:" in optstring.
446         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
447         Likewise.
448         * doc/posix-functions/getopt.texi (getopt): Likewise.
449
450         test-getopt: enhance test
451         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
452         supports optind=0.
453         * tests/test-getopt.c (OPTIND_MIN): Move...
454         * tests/test-getopt.h (OPTIND_MIN): ...here.
455         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
456         Require that optind=0 works, since modern BSD supports it in
457         addition to optreset, and since coreutils expects it.
458         (test_getopt_long_only): New test.
459         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
460         glibc shortcomings with 'W;', and enforcement of optind=0.
461         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
462         Likewise.
463
464 2009-12-21  Bruno Haible  <bruno@clisp.org>
465
466         localename: Improvements for MacOS X and Cygwin.
467         * lib/localename.h (gl_locale_name_environ): New declaration.
468         * lib/localename.c (gl_locale_name_environ): New function, extracted from
469         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
470         (gl_locale_name_posix): Invoke it.
471         (gl_locale_name_default): Add comments. Use Windows native API also on
472         Cygwin.
473
474 2009-12-21  Bruno Haible  <bruno@clisp.org>
475
476         Update list of Win32 locale ids.
477         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
478         (LANG_SAMI): Renamed from LANG_SAAMI.
479         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
480         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
481         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
482         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
483         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
484         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
485         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
486         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
487         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
488         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
489         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
490         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
491         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
492         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
493         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
494         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
495         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
496         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
497         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
498         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
499         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
500         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
501         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
502         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
503         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
504         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
505         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
506         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
507         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
508         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
509         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
510         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
511         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
512         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
513         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
514         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
515         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
516         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
517         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
518         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
519         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
520         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
521         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
522         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
523         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
524         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
525         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
526         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
527         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
528         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
529         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
530         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
531         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
532         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
533         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
534         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
535         Add more languages and countries for Sami, Sorbian. Add more countries
536         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
537         for Pashto. Change country for Syriac, Tswana.
538
539 2009-12-21  Eric Blake  <ebb9@byu.net>
540
541         test-utimens: avoid spurious failure
542         * tests/test-chown.h (nap): Factor...
543         * tests/nap.h: ...into new file.
544         * tests/test-lchown.h (nap): Avoid duplication.
545         * tests/test-utimens-common.h (nap): Use shared implementation,
546         necessary on file systems with 1-second resolution.
547         * modules/chown-tests (Files): Include new file.
548         * modules/fdutimensat-tests (Files): Likewise.
549         * modules/futimens-tests (Files): Likewise.
550         * modules/lchown-tests (Files): Likewise.
551         * modules/openat-tests (Files): Likewise.
552         * modules/utimens-tests (Files): Likewise.
553         * modules/utimensat-tests (Files): Likewise.
554
555 2009-12-19  Eric Blake  <ebb9@byu.net>
556
557         futimens, utimensat: work around Linux bug
558         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
559         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
560         * lib/utimensat.c (rpl_utimensat): Work around it.
561         * lib/futimens.c (rpl_futimens): Adjust comment.
562
563         utimens: work around Linux ctime bug
564         * lib/utimens.c (detect_ctime_bug): New helper function.
565         (update_timespec): Differentiate between workaround needed for
566         this bug vs. what is needed for systems that lack utimensat.
567         (fdutimens, lutimens): Work around bug.
568
569         utimens: check for ctime update
570         * tests/test-utimens-common.h (check_ctime): Define.
571         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
572         * tests/test-futimens.h (test_futimens): Likewise.
573         * tests/test-lutimens.h (test_lutimens): Likewise.
574         * doc/posix-functions/futimens.texi (futimens): Document the bug.
575         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
576
577 2009-12-19  Bruno Haible  <bruno@clisp.org>
578
579         dprintf-posix: Check against memory leak fixed on 2009-12-15.
580         * tests/test-dprintf-posix2.sh: New file.
581         * tests/test-dprintf-posix2.c: New file.
582         * modules/dprintf-posix-tests (Files): Add them.
583         (configure.ac): Check for getrlimit and setrlimit.
584         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
585
586 2009-12-19  Bruno Haible  <bruno@clisp.org>
587
588         fprintf-posix: Check against memory leak fixed on 2009-12-15.
589         * tests/test-fprintf-posix3.sh: New file.
590         * tests/test-fprintf-posix3.c: New file.
591         * modules/fprintf-posix-tests (Files): Add them.
592         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
593
594 2009-12-19  Eric Blake  <ebb9@byu.net>
595
596         dirfd: fix prototype
597         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
598         * lib/dirfd.c (dirfd): Likewise.
599
600         canonicalize: reduce memory usage
601         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
602         allocation to size.
603         Reported by Solar Designer <solar@openwall.com>.
604
605 2009-12-19  Bruno Haible  <bruno@clisp.org>
606
607         New module attribute 'Applicability'.
608         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
609         * gnulib-tool: New option --extract-applicability.
610         (func_usage): Document it.
611         (sed_extract_prog): Recognize it.
612         (func_get_applicability): New function.
613         (func_import): Generalize handling of 'link-warning' module.
614         * modules/link-warning (Applicability): New section.
615         * modules/arg-nonnull (Applicability): New section.
616         Repoted by Simon Josefsson <simon@josefsson.org>.
617
618 2009-12-19  Bruno Haible  <bruno@clisp.org>
619
620         fflush: tweak
621         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
622         * lib/fseeko.c (rpl_fseeko): Likewise.
623
624 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
625
626         * lib/gl_list.h: Fix typo in comment.
627
628 2009-12-16  Eric Blake  <ebb9@byu.net>
629
630         fcntl: use to simplify other modules
631         * modules/cloexec (Depends-on): Add fcntl.
632         * modules/fchdir (Depends-on): Likewise.
633         * modules/fd-safer-flag (Depends-on): Likewise.
634         * modules/unistd-safer (Depends-on): Likewise.
635         * modules/dup3 (configure.ac): Set module indicator.
636         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
637         missing.
638         * lib/fchdir.c (_gl_register_dup): Fix comment.
639         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
640         * lib/dup-safer.c (dup_safer): Likewise.
641         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
642         * lib/dup3.c (dup3): Likewise.
643         * tests/test-fchdir.c (main): Enhance test.
644         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
645
646         fcntl: port portions of fcntl to mingw
647         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
648         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
649         replacement for mingw.
650         * modules/fcntl (Description): Update.
651         (Depends-on): Add dup2.
652         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
653         * modules/fcntl-h (Makefile.am): Substitute it.
654         * lib/fcntl.in.h (fcntl): Update declaration.
655         (F_DUPFD, F_GETFD): New macros, when needed.
656         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
657         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
658         * tests/test-fcntl.c (check_flags, main): Enhance test for items
659         we now guarantee.
660
661         fcntl: work around cygwin bug in F_DUPFD
662         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
663         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
664         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
665         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
666         * doc/posix-functions/fcntl.texi (fcntl): Document it.
667
668         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
669         * modules/fcntl (Files): List new files.
670         (configure.ac): Run a test.
671         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
672         * lib/fcntl.c (rpl_fcntl): Likewise.
673         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
674         (gl_FCNTL_H): Always replace fcntl.h.
675         * modules/fcntl-h (Makefile.am): Substitute witnesses.
676         * lib/fcntl.in.h (fcntl): Declare replacement.
677         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
678         needed, plus a witness.
679         * doc/posix-functions/fcntl.texi (fcntl): Document this.
680         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
681         * tests/test-fcntl.c: New file.
682         * modules/fcntl-tests: Likewise.
683
684         binary-io: avoid potential compilation warning
685         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
686         directives.
687
688         fflush: avoid compilation error on NetBSD
689         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
690         between off_t and fpos_t, since the latter is sometimes a struct.
691         * lib/fseeko.c (rpl_fseeko): Likewise.
692         Reported by Alexander Nasonov <alnsn@yandex.ru>.
693
694 2009-12-15  Eric Blake  <ebb9@byu.net>
695
696         fcntl-h, stdio, sys_ioctl: fix declarations
697         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
698         function must not take arguments.
699         * lib/sys_ioctl.in.h (ioctl): Likewise.
700         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
701         (open): Add a link warning.
702
703 2009-12-15  Jim Meyering  <meyering@redhat.com>
704
705         areadlink, areadlink-with-size: relax license to LGPLv2+
706         * modules/areadlink (License): Relax to LGPLv2+.
707         * modules/areadlink-with-size (License): Likewise.
708
709 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
710             Bruno Haible  <bruno@clisp.org>
711
712         *printf: Fix memory leak.
713         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
714         * lib/vfprintf.c (vfprintf): Likewise.
715         * lib/dprintf.c (dprintf): Likewise.
716         * lib/vdprintf.c (vdprintf): Likewise.
717
718 2009-12-14  Eric Blake  <ebb9@byu.net>
719
720         accept4: adjust module dependencies
721         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
722
723         utimens: one more try at avoiding compiler warning
724         * lib/utimens.c (lutimens): Lower scope of result.
725
726 2009-12-13  Bruno Haible  <bruno@clisp.org>
727
728         Move the malloc checking from module 'list' to new module 'xlist'.
729         * modules/xlist: New file.
730         * lib/gl_xlist.h: New file.
731         * lib/gl_xlist.c: New file.
732         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
733         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
734         gl_list_add_last, gl_list_add_before, gl_list_add_after,
735         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
736         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
737         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
738         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
739         gl_sortedlist_nx_add): New declarations.
740         (struct gl_list_implementation): Rename and change methods accordingly.
741         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
742         (gl_list_nx_create): Renamed from gl_list_create.
743         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
744         (gl_list_nx_set_at): Renamed from gl_list_set_at.
745         (gl_list_nx_add_first): Renamed from gl_list_add_first.
746         (gl_list_nx_add_last): Renamed from gl_list_add_last.
747         (gl_list_nx_add_before): Renamed from gl_list_add_before.
748         (gl_list_nx_add_after): Renamed from gl_list_add_after.
749         (gl_list_nx_add_at): Renamed from gl_list_add_at.
750         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
751         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
752         gl_list_create_empty.
753         (gl_list_nx_create): Renamed from gl_list_create.
754         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
755         (gl_list_nx_set_at): Renamed from gl_list_set_at.
756         (gl_list_nx_add_first): Renamed from gl_list_add_first.
757         (gl_list_nx_add_last): Renamed from gl_list_add_last.
758         (gl_list_nx_add_before): Renamed from gl_list_add_before.
759         (gl_list_nx_add_after): Renamed from gl_list_add_after.
760         (gl_list_nx_add_at): Renamed from gl_list_add_at.
761         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
762         * lib/gl_array_list.c: Don't include xalloc.h.
763         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
764         NULL upon out-of-memory.
765         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
766         out-of-memory.
767         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
768         Change return type to 'int'.
769         (gl_array_nx_set_at): Renamed from gl_array_set_at.
770         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
771         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
772         upon out-of-memory.
773         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
774         upon out-of-memory.
775         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
776         upon out-of-memory.
777         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
778         upon out-of-memory.
779         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
780         out-of-memory.
781         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
782         Update.
783         (gl_array_list_implementation): Update.
784         * lib/gl_carray_list.c: Don't include xalloc.h.
785         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
786         Return NULL upon out-of-memory.
787         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
788         out-of-memory.
789         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
790         Change return type to 'int'.
791         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
792         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
793         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
794         upon out-of-memory.
795         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
796         upon out-of-memory.
797         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
798         out-of-memory.
799         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
800         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
801         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
802         Update.
803         (gl_carray_list_implementation): Update.
804         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
805         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
806         gl_linked_create_empty. Return NULL upon out-of-memory.
807         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
808         out-of-memory.
809         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
810         Change return type to 'int'. Return -1 upon out-of-memory.
811         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
812         out-of-memory.
813         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
814         upon out-of-memory.
815         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
816         upon out-of-memory.
817         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
818         NULL upon out-of-memory.
819         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
820         upon out-of-memory.
821         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
822         out-of-memory.
823         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
824         Update.
825         * lib/gl_linked_list.c: Don't include xalloc.h.
826         (gl_linked_list_implementation): Update.
827         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
828         (add_to_bucket): Change return type to 'int'.
829         (gl_linkedhash_list_implementation): Update.
830         * lib/gl_anytree_list1.h (free_subtree): New function.
831         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
832         gl_tree_create_empty. Return NULL upon out-of-memory.
833         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
834         Change return type to 'int'. Return -1 upon out-of-memory.
835         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
836         out-of-memory.
837         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
838         (gl_tree_remove_node): New function, moved here from
839         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
840         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
841         Update.
842         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
843         malloc, not xmalloc. Return NULL upon out-of-memory.
844         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
845         out-of-memory.
846         (gl_tree_remove_node_from_tree): New function, extracted from
847         gl_tree_remove_node.
848         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
849         upon out-of-memory.
850         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
851         out-of-memory.
852         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
853         upon out-of-memory.
854         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
855         upon out-of-memory.
856         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
857         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
858         not xmalloc. Return NULL upon out-of-memory.
859         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
860         out-of-memory.
861         (gl_tree_remove_node_from_tree): New function, extracted from
862         gl_tree_remove_node.
863         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
864         upon out-of-memory.
865         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
866         out-of-memory.
867         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
868         upon out-of-memory.
869         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
870         upon out-of-memory.
871         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
872         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
873         gl_anytree_list1.h before gl_anyavltree_list2.h.
874         (gl_avltree_list_implementation): Update.
875         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
876         gl_anytree_list1.h before gl_anyavltree_list2.h.
877         (gl_rbtree_list_implementation): Update.
878         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
879         Change return type to 'int'. Return -1 upon out-of-memory. Use
880         __builtin_expect.
881         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
882         (gl_avltreehash_list_implementation): Update.
883         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
884         (gl_rbtreehash_list_implementation): Update.
885         * modules/array-list (Depends-on): Remove xalloc.
886         * modules/carray-list (Depends-on): Likewise.
887         * modules/linked-list (Depends-on): Likewise.
888         * modules/linkedhash-list (Depends-on): Likewise.
889         * modules/avltree-list (Depends-on): Likewise.
890         * modules/rbtree-list (Depends-on): Likewise.
891         * modules/avltreehash-list (Depends-on): Likewise.
892         * modules/rbtreehash-list (Depends-on): Likewise.
893
894         * modules/xsublist: New file.
895         * lib/gl_xsublist.h: New file.
896         * lib/gl_xsublist.c: New file.
897         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
898         (gl_sublist_nx_create): New declaration.
899         * lib/gl_sublist.c: Don't include xalloc.h.
900         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
901         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
902         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
903         Change return type to 'int'. Return -1 upon out-of-memory.
904         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
905         upon out-of-memory.
906         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
907         NULL upon out-of-memory.
908         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
909         upon out-of-memory.
910         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
911         NULL upon out-of-memory.
912         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
913         NULL upon out-of-memory.
914         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
915         upon out-of-memory.
916         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
917         (gl_sublist_list_implementation): Update.
918         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
919         upon out-of-memory.
920         * modules/sublist (Depends-on): Remove xalloc.
921
922         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
923         * tests/test-carray_list.c: Likewise.
924         * tests/test-linked_list.c: Likewise.
925         * tests/test-linkedhash_list.c: Likewise.
926         * tests/test-avltree_list.c: Likewise.
927         * tests/test-rbtree_list.c: Likewise.
928         * tests/test-avltreehash_list.c: Likewise.
929         * tests/test-rbtreehash_list.c: Likewise.
930         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
931         * modules/carray-list-tests (Makefile.am): Likewise.
932         * modules/linked-list-tests (Makefile.am): Likewise.
933         * modules/linkedhash-list-tests (Makefile.am): Likewise.
934         * modules/avltree-list-tests (Makefile.am): Likewise.
935         * modules/rbtree-list-tests (Makefile.am): Likewise.
936         * modules/avltreehash-list-tests (Makefile.am): Likewise.
937         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
938
939         * NEWS: Mention the changes.
940
941         * lib/clean-temp.c: Include gl_xlist.h.
942         * modules/clean-temp (Depends-on): Add xlist.
943
944         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
945         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
946
947         * tests/test-array_oset.c: Include gl_xlist.h.
948         * modules/array-oset-tests (Depends-on): Add xlist.
949
950         Reported by José E. Marchesi <jemarch@gnu.org>.
951
952 2009-12-13  Bruno Haible  <bruno@clisp.org>
953
954         Move the malloc checking from module 'oset' to new module 'xoset'.
955         * modules/xoset: New file.
956         * lib/gl_xoset.h: New file.
957         * lib/gl_xoset.c: New file.
958         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
959         declarations.
960         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
961         (struct gl_oset_implementation): Rename and change methods accordingly.
962         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
963         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
964         'int'. Mark as __warn_unused_result__.
965         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
966         gl_oset_create_empty.
967         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
968         'int'.
969         * lib/gl_array_oset.c: Don't include xalloc.h.
970         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
971         malloc, not xmalloc.
972         (grow): Change return type to 'int'. Don't call xalloc_die.
973         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
974         to 'int'.
975         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
976         'int'.
977         (gl_array_oset_implementation): Update.
978         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
979         gl_tree_create_empty.
980         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
981         'int'.
982         * lib/gl_avltree_oset.c: Don't include xalloc.h.
983         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
984         xmalloc.
985         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
986         not xmalloc.
987         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
988         xmalloc.
989         (gl_avltree_oset_implementation): Update.
990         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
991         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
992         xmalloc.
993         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
994         not xmalloc.
995         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
996         xmalloc.
997         (gl_rbtree_oset_implementation): Update.
998         * modules/array-oset (Depends-on): Remove xalloc.
999         * modules/avltree-oset (Depends-on): Likewise.
1000         * modules/rbtree-oset (Depends-on): Likewise.
1001         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
1002         * tests/test-avltree_oset.c: Likewise.
1003         * tests/test-rbtree_oset.c: Likewise.
1004         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
1005         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
1006         * modules/rbtree-oset-tests (Makefile.am): Likewise.
1007         * NEWS: Mention the change.
1008
1009 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
1010
1011         maint.mk: allow a project to override release-prep commands
1012         * top/maint.mk (alpha, beta, stable): Move release-preparatory
1013         commands into a new rule.
1014         (release-prep): New rule.
1015         (release-prep-hook): New overridable variable.
1016
1017 2009-12-13  Bruno Haible  <bruno@clisp.org>
1018
1019         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
1020
1021 2009-12-13  Jim Meyering  <meyering@redhat.com>
1022
1023         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
1024         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
1025
1026 2009-12-12  Bruno Haible  <bruno@clisp.org>
1027
1028         duplocale: Tweak.
1029         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
1030
1031 2009-12-12  Karl Berry  <karl@gnu.org>
1032
1033         * config/srclist.txt (strtoll.c): tab changes, no more sync.
1034
1035 2009-12-12  Bruno Haible  <bruno@clisp.org>
1036
1037         * m4/po.m4: Undo incorrect untabification.
1038
1039 2009-12-12  Bruno Haible  <bruno@clisp.org>
1040
1041         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
1042         * modules/c-strtod (Depends-on): Add locale.
1043         * modules/c-strtold (Depends-on): Likewise.
1044
1045 2009-12-12  Bruno Haible  <bruno@clisp.org>
1046
1047         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
1048
1049 2009-12-11  Eric Blake  <ebb9@byu.net>
1050
1051         setenv: relax requirement in light of POSIX ruling
1052         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
1053         not NULL.
1054         * tests/test-setenv.c (main): Relax test.
1055         * tests/test-unsetenv.c (main): Likewise.
1056         * doc/posix-functions/setenv.texi (setenv): Document this.
1057         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
1058
1059 2009-12-11  Bruno Haible  <bruno@clisp.org>
1060
1061         New module 'fd-safer-flag'.
1062         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
1063         * lib/dup-safer.c (dup_safer_flag): Remove function.
1064         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
1065         * lib/fd-safer.c (fd_safer_flag): Remove function.
1066         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
1067         * modules/cloexec (configure.ac): Drop indicator macro.
1068         * modules/fd-safer-flag: New file.
1069         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
1070         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
1071         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
1072
1073 2009-12-11  Bruno Haible  <bruno@clisp.org>
1074
1075         Tests for module 'nl_langinfo'.
1076         * modules/nl_langinfo-tests: New file.
1077         * tests/test-nl_langinfo.sh: New file.
1078         * tests/test-nl_langinfo.c: New file.
1079
1080         New module 'nl_langinfo'.
1081         * lib/nl_langinfo.c: New file.
1082         * m4/nl_langinfo.m4: New file.
1083         * modules/nl_langinfo: New file.
1084         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
1085
1086 2009-12-11  Bruno Haible  <bruno@clisp.org>
1087
1088         Tests for module 'langinfo'.
1089         * modules/langinfo-tests: New file.
1090         * tests/test-langinfo.c: New file.
1091
1092         New module 'langinfo'.
1093         * lib/langinfo.in.h: New file.
1094         * m4/langinfo_h.m4: New file.
1095         * modules/langinfo: New file.
1096         * doc/posix-headers/langinfo.texi: Mention the new module.
1097
1098 2009-12-11  Bruno Haible  <bruno@clisp.org>
1099
1100         * lib/config.charset: Untabify.
1101
1102 2009-12-11  Bruno Haible  <bruno@clisp.org>
1103
1104         * modules/unistd-safer (configure.ac): Drop indicator macro.
1105
1106 2009-12-11  Bruno Haible  <bruno@clisp.org>
1107
1108         Move pipe2-safer code to its own file.
1109         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
1110         * lib/pipe-safer.c (pipe2_safer): Remove function.
1111         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
1112         (Makefile.am): Add it to lib_SOURCES.
1113
1114 2009-12-10  Bruno Haible  <bruno@clisp.org>
1115
1116         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
1117
1118 2009-12-10  Bruno Haible  <bruno@clisp.org>
1119
1120         Declare which arguments expect non-NULL values, for GCC and clang.
1121         * build-aux/arg-nonnull.h: New file.
1122         * modules/arg-nonnull: New file.
1123         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
1124         (inet_ntop, inet_pton): Use it.
1125         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
1126         (closedir, dirfd, opendir, scandir, alphasort): Use it.
1127         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
1128         (open, openat): Use it.
1129         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
1130         (fnmatch): Use it.
1131         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
1132         (getopt, getopt_long, getopt_long_only): Use it.
1133         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
1134         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
1135         Use it.
1136         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
1137         (iconv_open): Use it.
1138         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
1139         (strtoimax, strtoumax): Use it.
1140         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
1141         (duplocale): Use it.
1142         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
1143         (frexp, frexpl): Use it.
1144         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
1145         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
1146         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
1147         (tsearch, tfind, tdelete, twalk): Use it.
1148         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
1149         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
1150         sigpending): Use it.
1151         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
1152         (posix_spawn, posix_spawnp, posix_spawnattr_init,
1153         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
1154         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
1155         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
1156         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
1157         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
1158         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
1159         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
1160         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
1161         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
1162         Use it.
1163         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
1164         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
1165         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
1166         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
1167         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
1168         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
1169         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
1170         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
1171         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
1172         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
1173         strtoull, unsetenv): Use it.
1174         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
1175         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
1176         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
1177         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
1178         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
1179         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
1180         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
1181         (strcasecmp, strncasecmp): Use it.
1182         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
1183         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
1184         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
1185         rpl_setsockopt): Use it.
1186         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
1187         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
1188         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
1189         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
1190         (gettimeofday): Use it.
1191         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
1192         (times): Use it.
1193         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
1194         (uname): Use it.
1195         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
1196         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
1197         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
1198         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
1199         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
1200         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
1201         unlinkat, write): Use it.
1202         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
1203         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
1204         * lib/argv-iter.h: Include arg-nonnull.h.
1205         (_ATTRIBUTE_NONNULL_): Remove macro.
1206         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
1207         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
1208         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
1209         optimization.
1210         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
1211         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
1212         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
1213         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
1214         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
1215         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
1216         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
1217         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
1218         * modules/arpa_inet (Depends-on): Add arg-nonnull.
1219         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
1220         * modules/dirent (Depends-on): Add arg-nonnull.
1221         (Makefile.am): Insert arg-nonnull.h into dirent.h.
1222         * modules/fcntl-h (Depends-on): Add arg-nonnull.
1223         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
1224         * modules/fnmatch (Depends-on): Add arg-nonnull.
1225         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
1226         * modules/getopt-posix (Depends-on): Add arg-nonnull.
1227         (Makefile.am): Insert arg-nonnull.h into getopt.h.
1228         * modules/glob (Depends-on): Add arg-nonnull.
1229         (Makefile.am): Insert arg-nonnull.h into glob.h.
1230         * modules/iconv_open (Depends-on): Add arg-nonnull.
1231         (Makefile.am): Insert arg-nonnull.h into iconv.h.
1232         * modules/inttypes (Depends-on): Add arg-nonnull.
1233         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
1234         * modules/locale (Depends-on): Add arg-nonnull.
1235         (Makefile.am): Insert arg-nonnull.h into locale.h.
1236         * modules/math (Depends-on): Add arg-nonnull.
1237         (Makefile.am): Insert arg-nonnull.h into math.h.
1238         * modules/netdb (Depends-on): Add arg-nonnull.
1239         (Makefile.am): Insert arg-nonnull.h into netdb.h.
1240         * modules/search (Depends-on): Add arg-nonnull.
1241         (Makefile.am): Insert arg-nonnull.h into search.h.
1242         * modules/signal (Depends-on): Add arg-nonnull.
1243         (Makefile.am): Insert arg-nonnull.h into signal.h.
1244         * modules/spawn (Depends-on): Add arg-nonnull.
1245         (Makefile.am): Insert arg-nonnull.h into spawn.h.
1246         * modules/stdio (Depends-on): Add arg-nonnull.
1247         (Makefile.am): Insert arg-nonnull.h into stdio.h.
1248         * modules/stdlib (Depends-on): Add arg-nonnull.
1249         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
1250         * modules/string (Depends-on): Add arg-nonnull.
1251         (Makefile.am): Insert arg-nonnull.h into string.h.
1252         * modules/strings (Depends-on): Add arg-nonnull.
1253         (Makefile.am): Insert arg-nonnull.h into strings.h.
1254         * modules/sys_socket (Depends-on): Add arg-nonnull.
1255         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
1256         * modules/sys_stat (Depends-on): Add arg-nonnull.
1257         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
1258         * modules/sys_time (Depends-on): Add arg-nonnull.
1259         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
1260         * modules/sys_times (Depends-on): Add arg-nonnull.
1261         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
1262         * modules/sys_utsname (Depends-on): Add arg-nonnull.
1263         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
1264         * modules/time (Depends-on): Add arg-nonnull.
1265         (Makefile.am): Insert arg-nonnull.h into time.h.
1266         * modules/unistd (Depends-on): Add arg-nonnull.
1267         (Makefile.am): Insert arg-nonnull.h into unistd.h.
1268         * modules/wchar (Depends-on): Add arg-nonnull.
1269         (Makefile.am): Insert arg-nonnull.h into wchar.h.
1270         * modules/argv-iter (Depends-on): Add arg-nonnull.
1271         * tests/test-canonicalize.c (null_ptr): New function.
1272         (main): Use it.
1273         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
1274         (main): Use it.
1275         * tests/test-memmem.c (null_ptr): New function.
1276         (main): Use it.
1277         Reported by Jim Meyering.
1278
1279 2009-12-10  Bruno Haible  <bruno@clisp.org>
1280
1281         Use spaces for indentation, not tabs.
1282         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
1283         * m4/*.m4: Untabify.
1284         * build-aux/*.h: Untabify.
1285         * tests/**/*.[hc]: Untabify.
1286         * README: New section "Indent with spaces, not TABs", based on
1287         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
1288         * NEWS: Mention the change.
1289
1290 2009-12-10  Bruno Haible  <bruno@clisp.org>
1291
1292         pty test: Fix link error.
1293         * modules/pty-tests (Makefile.am): Add the default LDADD value to
1294         test_pty_LDADD.
1295
1296 2009-12-07  Simon Josefsson  <simon@josefsson.org>
1297
1298         * modules/pty: New file.
1299         * modules/pty-tests: New file.
1300         * m4/pty.m4: New file.
1301         * tests/test-pty.c: New file.
1302         * doc/glibc-headers/pty.texi: Modified.
1303         * doc/glibc-functions/forkpty.texi: Modified.
1304         * doc/glibc-functions/openpty.texi: Modified.
1305
1306 2009-12-10  Bruno Haible  <bruno@clisp.org>
1307
1308         Avoid syntax error in C++ mode.
1309         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
1310
1311 2009-12-10  Bruno Haible  <bruno@clisp.org>
1312
1313         Use sed with option -e.
1314         * gnulib-tool (func_version, func_emit_copyright_notice,
1315         func_emit_initmacro_end, func_import, func_create_testdir): Pass
1316         option -e to sed.
1317         * modules/link-warning (Makefile.am): Likewise.
1318
1319 2009-12-10  Jim Meyering  <meyering@redhat.com>
1320
1321         mgetgroups: do not write bytes beyond end of malloc'd buffer
1322         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
1323         username, we call getgroups with a one-element-shorter buffer,
1324         but still told it the length was original, max_n_groups.
1325
1326 2009-12-09  Eric Blake  <ebb9@byu.net>
1327
1328         cloexec: relax license
1329         * modules/cloexec (Maintainer): Add myself.
1330         (License): Use LGPL, not GPL.
1331
1332         link-warning: optimize generation
1333         * modules/link-warning (Makefile.am): Reduce process usage.
1334
1335 2009-12-09  Bruno Haible  <bruno@clisp.org>
1336
1337         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
1338         workaround was added on 2009-11-17.
1339
1340 2009-12-09  Jim Meyering  <meyering@redhat.com>
1341             Bruno Haible  <bruno@clisp.org>
1342
1343         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
1344         * modules/link-warning (Makefile.am): Make the comment-removing sed
1345         command more robust in the face of bootstrap-prepended comment lines.
1346
1347 2009-12-09  Bruno Haible  <bruno@clisp.org>
1348
1349         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
1350         most one group.
1351
1352 2009-12-09  Simon Josefsson <simon@josefsson.org>
1353             Bruno Haible  <bruno@clisp.org>
1354
1355         * build-aux/link-warning.h: Add copyright notice.
1356         * modules/link-warning (Makefile.am): Generate link-warning.h from
1357         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
1358         * NEWS: Mention change in link-warning module.
1359         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
1360         * modules/dirent (Makefile.am): Add dependency to dirent.h.
1361         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
1362         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
1363         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
1364         * modules/math (Makefile.am): Add dependency to math.h.
1365         * modules/search (Makefile.am): Add dependency to search.h.
1366         * modules/signal (Makefile.am): Add dependency to signal.h.
1367         * modules/spawn (Makefile.am): Add dependency to spawn.h.
1368         * modules/stdio (Makefile.am): Add dependency to stdio.h.
1369         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
1370         * modules/string (Makefile.am): Add dependency to string.h.
1371         * modules/strings (Makefile.am): Add dependency to strings.h.
1372         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
1373         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
1374         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
1375         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
1376         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
1377         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
1378         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
1379         * modules/unistd (Makefile.am): Add dependency to unistd.h.
1380         * modules/wchar (Makefile.am): Add dependency to wchar.h.
1381
1382 2009-12-09  Bruno Haible  <bruno@clisp.org>
1383
1384         fchdir: Optimize away rpl_fstat when possible.
1385         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
1386         REPLACE_OPEN_DIRECTORY.
1387         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
1388
1389 2009-12-09  Bruno Haible  <bruno@clisp.org>
1390
1391         * lib/fchdir.c: Update comment.
1392
1393 2009-12-09  Bruno Haible  <bruno@clisp.org>
1394
1395         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
1396
1397 2009-12-08  Eric Blake  <ebb9@byu.net>
1398
1399         fchdir: avoid memory leak on re-registration.
1400         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
1401
1402 2009-12-08  Jim Meyering  <meyering@redhat.com>
1403
1404         init.sh: avoid Solaris 10 /bin/sh portability problem
1405         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
1406         sourced script:
1407           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
1408           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
1409           bar
1410         tests/init.sh relied on that, accepting a --set-path=DIR argument,
1411         and two tests used that idiom.
1412         * tests/init.sh: Update suggested usage comments.
1413         (path_prepend_): New function, to be used in place
1414         of the --src-path=DIR option.
1415         (setup_): Move PATH-prepending code into path_prepend_.
1416         * tests/test-pread.sh: Adapt to new usage.
1417         * tests/test-xalloc-die.sh: Likewise.
1418
1419 2009-12-08  Simon Josefsson  <simon@josefsson.org>
1420
1421         * doc/gnulib.texi (Glibc pty.h): Add.
1422         * doc/glibc-functions/forkpty.texi: Add.
1423         * doc/glibc-functions/openpty.texi: Add.
1424         Suggested by Bruno Haible.
1425
1426 2009-12-08  Eric Blake  <ebb9@byu.net>
1427
1428         fchdir: fix logic bugs
1429         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
1430         * tests/test-fchdir.c (main): Enhance test.
1431         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
1432         is in use.
1433
1434         dup2: fix logic bugs
1435         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
1436         REPLACE_DUP2 to decide when rpl_dup2 is needed.
1437         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
1438         exists.
1439         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
1440
1441 2009-12-07  Eric Blake  <ebb9@byu.net>
1442
1443         unlink: fix m4 detection
1444         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
1445
1446         unistd-safer: add unit test
1447         * modules/unistd-safer-tests: New file.
1448         * tests/test-dup-safer.c: Likewise.
1449         * tests/test-cloexec.c (setmode): Avoid compiler warning.
1450         * tests/test-dup2.c (setmode): Likewise.
1451         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
1452
1453         cloexec: preserve text vs. binary across dup_cloexec
1454         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
1455         mode.
1456         * modules/dup2-tests (Depends-on): Add binary-io.
1457         * modules/cloexec-tests (Depends-on): Likewise.
1458         * tests/test-dup2.c (setmode, is_mode): New helpers.
1459         (main): Add tests that translation mode is preserved.
1460         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
1461         Reported by Bruno Haible.
1462
1463         mgetgroups: reduce duplicate listings
1464         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
1465         resulting array.
1466         * tests/test-chown.h (test_chown): Simplify client.
1467         * tests/test-lchown.h (test_lchown): Likewise.
1468
1469 2009-12-06  Bruno Haible  <bruno@clisp.org>
1470
1471         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
1472         value.
1473
1474 2009-12-06  Bruno Haible  <bruno@clisp.org>
1475
1476         * lib/progname.c: Include stdio.h, stdlib.h.
1477         (set_program_name): Reject a NULL argument.
1478
1479 2009-12-05  Eric Blake  <ebb9@byu.net>
1480
1481         pipe2-safer: new module
1482         * modules/pipe2-safer: New file.
1483         * lib/unistd-safer.h (pipe2_safer): New prototype.
1484         * lib/unistd--.h (pipe2): New wrapper.
1485         * lib/pipe-safer.c (pipe2_safer): New function.
1486         * modules/pipe (Depends-on): Add pipe2-safer.
1487         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
1488
1489         stdlib-safer: preserve cloexec flag for mkostemp[s]
1490         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
1491         fd_safer_flag.
1492
1493         unistd-safer: allow preservation of cloexec status via flag
1494         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
1495         prototypes.
1496         * lib/dup-safer.c (dup_safer_flag): New function.
1497         * lib/fd-safer.c (fd_safer_flag): Likewise.
1498         * modules/cloexec (configure.ac): Set witness.
1499
1500         test-dup2: enhance test
1501         * modules/dup2-tests (Depends-on): Add cloexec.
1502         * tests/test-dup2.c (main): Enhance test.
1503
1504         cloexec: add dup_cloexec
1505         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
1506         header and comments.
1507         * lib/cloexec.c (set_cloexec_flag): Add comments.
1508         (dup_cloexec): New function, with mingw implementation borrowed
1509         from...
1510         * lib/w32spawn.h (dup_noinherit): ...here.
1511         * modules/execute (Depends-on): Add cloexec.
1512         * modules/pipe (Depends-on): Likewise.
1513         * modules/cloexec (Depends-on): Add dup2.
1514         * modules/cloexec-tests (Files): New file.
1515         * tests/test-cloexec.c: Likewise.
1516
1517         test-xalloc-die: fix test for mingw
1518         * modules/xalloc-die-tests (Files): Add tests/init.sh.
1519         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
1520         directory and .exe suffix off argv[0] output.
1521
1522         test-fseeko: fix test for mingw
1523         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
1524         than undefining fseek, so test will pass on mingw.
1525
1526 2009-12-05  Bruno Haible  <bruno@clisp.org>
1527
1528         * lib/progname.h (set_program_name): Clarify specification.
1529         * lib/progname.c (set_program_name): Likewise.
1530         Reported by Jim Meyering.
1531
1532 2009-12-05  Jim Meyering  <meyering@redhat.com>
1533
1534         maint.mk: backslash-escape parens in default regexp
1535         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
1536         backslash-escape the literal parentheses.
1537
1538         maint.mk: news-date-check: use grep -E
1539         * top/maint.mk (today): Define a Make variable, not a...
1540         (news-date-check): ...shell variable.
1541         (news-date-regexp): Use the Make variable.
1542         Use grep's -E option.  Change the failing diagnostic to mention
1543         the variable, $(news-date-regexp).
1544
1545 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
1546
1547         maintainer-makefile: allow customization of NEWS entry format
1548         * top/maint.mk (news-date-regexp): New overridable variable.
1549         (news-date-check): Use it.
1550
1551 2009-12-04  Eric Blake  <ebb9@byu.net>
1552
1553         mgetgroups: add xgetgroups, and avoid ENOSYS failures
1554         * lib/mgetgroups.h (xgetgroups): New prototype.
1555         * lib/mgetgroups.c (xgetgroups): New wrapper.
1556         (mgetgroups): Handle ENOSYS.
1557         * modules/mgetgroups (Depends-on): Add realloc.
1558         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
1559
1560         mgetgroups: avoid argument promotion issues with -1
1561         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
1562         for invalid gid_t.
1563         * tests/test-chown.h (getegid, test_chown): Likewise.
1564         * tests/test-lchown.h (getegid, test_lchown): Likewise.
1565
1566 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
1567
1568         exclude: Fix header file problems.
1569         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
1570
1571 2009-12-01  Jim Meyering  <meyering@redhat.com>
1572
1573         fts: fts_open: do not let an empty string cause immediate failure
1574         This is required in support of GNU rm, for which the command
1575         "rm A '' B" must process and remove both A and B, in spite of
1576         the empty string argument.
1577         * lib/fts.c (fts_open): Do not let the presence of an empty string
1578         cause fts_open to fail immediately.  Most fts-using tools must be
1579         able to process all arguments, in order, and can be expected to
1580         diagnose such arguments themselves.
1581
1582 2009-11-30  Eric Blake  <ebb9@byu.net>
1583
1584         utimens: fix compilation error
1585         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
1586         Declare variable at right scope.
1587
1588 2009-11-29  Jim Meyering  <meyering@redhat.com>
1589
1590         bootstrap: handle perl-5.11's changed --version output
1591         * build-aux/bootstrap (get_version): Handle perl separately,
1592         since perl-5.11's --version output is different.
1593
1594 2009-11-28  Jim Meyering  <meyering@redhat.com>
1595
1596         userspec: depend on the inttostr module, too
1597         * modules/userspec (Depends-on): Add inttostr.
1598
1599         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
1600         * lib/userspec.c (parse_with_separator): Do not accept a user ID
1601         number of MAXUID when it evaluates to (uid_t) -1.
1602         Likewise for group ID.  Reported by Matt McCutchen in
1603         <http://savannah.gnu.org/bugs/?28113>
1604
1605         userspec: reformat to use spaces, not TABs
1606         * lib/userspec.c: Expand TABs to spaces.
1607         Add Emacs' "indent-tabs-mode: nil" hint.
1608
1609 2009-11-27  Eric Blake  <ebb9@byu.net>
1610
1611         getopt-gnu: flush out another BSD bug
1612         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
1613         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
1614         flush out BSD bug.
1615         * tests/test-getopt.h (test_getopt): End lists with NULL.
1616         * tests/test-getopt_long.h (test_getopt_long): Likewise.
1617         (test_getopt_long_posix): Enhance test.
1618         * modules/getopt-posix-tests (Depends-on): Add stdbool.
1619         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
1620         getopt-gnu.
1621         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
1622         Likewise.
1623
1624 2009-11-27  Simon Josefsson  <simon@josefsson.org>
1625
1626         * modules/idpriv-droptemp-tests (Notice): Fix text.
1627
1628 2009-11-27  Jim Meyering  <meyering@redhat.com>
1629
1630         test-xalloc-die: avoid spurious failure due to libtool argv difference
1631         In a libtool-enabled project, this test would fail due to a difference
1632         in the emitted program name, e.g.,
1633         -test-xalloc-die: memory exhausted
1634         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
1635         Use program to avoid that.
1636         * modules/xalloc-die-tests (Depends-on): Add progname.
1637         * tests/test-xalloc-die.c: Include progname.h".
1638         (program_name): Remove decl.
1639         (main): Call set_program_name.
1640         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
1641
1642 2009-11-26  Richard Jones  <rjones@redhat.com>
1643
1644         w32sock: leave win32 error in place.
1645         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
1646
1647 2009-11-26  Eric Blake  <ebb9@byu.net>
1648
1649         init.sh: suggest to use skip_ and fail_ functions in comments
1650         * tests/init.sh: Add a sentence.
1651
1652 2009-11-25  Bruno Haible  <bruno@clisp.org>
1653
1654         init.sh: add documentation in comments
1655         * tests/init.sh: Add some developer and user documentation.
1656
1657 2009-11-26  Jim Meyering  <meyering@redhat.com>
1658
1659         init.sh: accommodate even those who specify bogus srcdir manually
1660         * tests/init.sh: Normally, srcdir is guaranteed by automake and
1661         configure-time tests to be sanitized, so that there is no need to
1662         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
1663         (with no double quotes) suffices.  However, since tests may be
1664         invoked manually, and since you may explicitly set srcdir to the
1665         name of a directory containing spaces, do quote its uses here.
1666         * tests/test-pread.sh: Likewise.
1667         Suggested by Bruno Haible.
1668
1669         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
1670         * tests/test-pread.sh: Write no data into the pipe, because
1671         test-pread actually reads none.  This avoids a diagnostic,
1672         "bash: echo: write error: Broken pipe", that arises in the unusual
1673         event something is ignoring SIGPIPE, and might be interpreted
1674         as some sort of failure.  Reported by Bruno Haible.
1675
1676 2009-11-25  Jim Meyering  <meyering@redhat.com>
1677
1678         test-pread: cover failure with ESPIPE and EINVAL
1679         * tests/test-pread.c (main): Test for failure, too.
1680         * tests/test-pread.sh: Invoke with stdin on a pipe.
1681         Suggested by Eric Blake.
1682
1683         pread: improvement and fix
1684         * modules/pread (Depends-on): Depend on lseek, for portability to
1685         e.g., mingw.  Suggested by Eric Blake.
1686         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
1687
1688         unistd.in.h: correct declaration of pread
1689         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
1690         Reported by Richard W.M. Jones.
1691
1692         test-pread.sh: distribute the test script
1693         * modules/pread-tests (Files): Include test-pread.sh.
1694
1695         test-pread.sh: clean up
1696         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
1697         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
1698         That is unnecessary, since it's always ".".
1699         Suggestion from Eric Blake.
1700
1701         test-pread.sh: make executable
1702         * tests/test-pread.sh: Set executable bit.
1703         Reported by Eric Blake.
1704
1705         correct typo in test-pread.sh
1706         * tests/test-pread.sh: Add #! line.
1707
1708         test pread
1709         * tests/test-pread.c: New file.
1710         * tests/test-pread.sh: Likewise.
1711         * modules/pread-tests: Likewise.
1712
1713         pread: new module
1714         * modules/pread: New file.
1715         * lib/unistd.in.h (pread): Define/declare.
1716         * lib/pread.c (pread): New file.
1717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
1718         * modules/unistd (Makefile.am): Substitute witnesses.
1719         * doc/posix-functions/pread.texi (pread): Update.
1720         * MODULES.html.sh: Add pread.
1721
1722 2009-11-25  Jim Meyering  <meyering@redhat.com>
1723
1724         tests/init.sh: new file to be used via most *.sh tests
1725         * tests/init.sh: New file.
1726
1727 2009-11-25  Eric Blake  <ebb9@byu.net>
1728
1729         utimens: work around older Linux failure with symlinks
1730         * lib/utimens.c (lutimensat_works_really): New variable.
1731         (fdutimens, lutimens): Use it to manage kernels that support
1732         nanosecond times on files, but not on symlinks.
1733         Reported by OndÅ™ej Vašík.
1734
1735         utimes: fix configure grammar
1736         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
1737
1738 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
1739
1740         regex: Fix fastmap for multibyte character ranges.
1741         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
1742         characters when a multibyte character range is included.
1743
1744 2009-11-22  Andy Wingo  <wingo@pobox.com>
1745
1746         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
1747         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
1748
1749 2009-11-24  Bruno Haible  <bruno@clisp.org>
1750
1751         doc: Most *_l functions exist in MacOS X 10.5.
1752         * doc/posix-functions/duplocale.texi: Update platforms list.
1753         * doc/posix-functions/freelocale.texi: Likewise.
1754         * doc/posix-functions/newlocale.texi: Likewise.
1755         * doc/posix-functions/uselocale.texi: Likewise.
1756         * doc/posix-functions/isalnum_l.texi: Likewise.
1757         * doc/posix-functions/isalpha_l.texi: Likewise.
1758         * doc/posix-functions/isblank_l.texi: Likewise.
1759         * doc/posix-functions/iscntrl_l.texi: Likewise.
1760         * doc/posix-functions/isdigit_l.texi: Likewise.
1761         * doc/posix-functions/isgraph_l.texi: Likewise.
1762         * doc/posix-functions/islower_l.texi: Likewise.
1763         * doc/posix-functions/isprint_l.texi: Likewise.
1764         * doc/posix-functions/ispunct_l.texi: Likewise.
1765         * doc/posix-functions/isspace_l.texi: Likewise.
1766         * doc/posix-functions/isupper_l.texi: Likewise.
1767         * doc/posix-functions/iswalnum_l.texi: Likewise.
1768         * doc/posix-functions/iswalpha_l.texi: Likewise.
1769         * doc/posix-functions/iswblank_l.texi: Likewise.
1770         * doc/posix-functions/iswcntrl_l.texi: Likewise.
1771         * doc/posix-functions/iswctype_l.texi: Likewise.
1772         * doc/posix-functions/iswdigit_l.texi: Likewise.
1773         * doc/posix-functions/iswgraph_l.texi: Likewise.
1774         * doc/posix-functions/iswlower_l.texi: Likewise.
1775         * doc/posix-functions/iswprint_l.texi: Likewise.
1776         * doc/posix-functions/iswpunct_l.texi: Likewise.
1777         * doc/posix-functions/iswspace_l.texi: Likewise.
1778         * doc/posix-functions/iswupper_l.texi: Likewise.
1779         * doc/posix-functions/iswxdigit_l.texi: Likewise.
1780         * doc/posix-functions/isxdigit_l.texi: Likewise.
1781         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
1782         * doc/posix-functions/strcasecmp_l.texi: Likewise.
1783         * doc/posix-functions/strcoll_l.texi: Likewise.
1784         * doc/posix-functions/strfmon_l.texi: Likewise.
1785         * doc/posix-functions/strftime_l.texi: Likewise.
1786         * doc/posix-functions/strncasecmp_l.texi: Likewise.
1787         * doc/posix-functions/strxfrm_l.texi: Likewise.
1788         * doc/posix-functions/tolower_l.texi: Likewise.
1789         * doc/posix-functions/toupper_l.texi: Likewise.
1790         * doc/posix-functions/towctrans_l.texi: Likewise.
1791         * doc/posix-functions/towlower_l.texi: Likewise.
1792         * doc/posix-functions/towupper_l.texi: Likewise.
1793         * doc/posix-functions/wcscoll_l.texi: Likewise.
1794         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
1795         * doc/posix-functions/wctrans_l.texi: Likewise.
1796         * doc/posix-functions/wctype_l.texi: Likewise.
1797         * doc/glibc-functions/strptime_l.texi: Likewise.
1798         * doc/glibc-functions/strtod_l.texi: Likewise.
1799         * doc/glibc-functions/strtof_l.texi: Likewise.
1800         * doc/glibc-functions/strtol_l.texi: Likewise.
1801         * doc/glibc-functions/strtold_l.texi: Likewise.
1802         * doc/glibc-functions/strtoll_l.texi: Likewise.
1803         * doc/glibc-functions/strtoul_l.texi: Likewise.
1804         * doc/glibc-functions/strtoull_l.texi: Likewise.
1805         * doc/glibc-functions/wcsftime_l.texi: Likewise.
1806         * doc/glibc-functions/wcstod_l.texi: Likewise.
1807         * doc/glibc-functions/wcstof_l.texi: Likewise.
1808         * doc/glibc-functions/wcstol_l.texi: Likewise.
1809         * doc/glibc-functions/wcstold_l.texi: Likewise.
1810         * doc/glibc-functions/wcstoll_l.texi: Likewise.
1811         * doc/glibc-functions/wcstoul_l.texi: Likewise.
1812         * doc/glibc-functions/wcstoull_l.texi: Likewise.
1813
1814 2009-11-24  Bruno Haible  <bruno@clisp.org>
1815
1816         duplocale: Fix logic bug.
1817         * lib/duplocale.c: Don't include <langinfo.h>.
1818         (_NL_LOCALE_NAME): Remove macro.
1819         (rpl_duplocale): Use setlocale instead of nl_langinfo.
1820         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
1821
1822 2009-11-23  Jim Meyering  <meyering@redhat.com>
1823
1824         test-update-copyright: don't hard-code /usr/bin/perl
1825         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
1826         perl to print the current year.  Gilles Espinasse reported that
1827         the replaced use of perl was hard-coded as /usr/bin/perl.
1828
1829 2009-11-23  Bruno Haible  <bruno@clisp.org>
1830
1831         duplocale: Add support for glibc 2.3.x.
1832         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
1833
1834 2009-11-22  Bruno Haible  <bruno@clisp.org>
1835
1836         vasnprintf: Tiny optimization.
1837         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
1838         MacOS X.
1839
1840 2009-11-22  Bruno Haible  <bruno@clisp.org>
1841
1842         Tests for module 'duplocale'.
1843         * modules/duplocale-tests: New file.
1844         * tests/test-duplocale.c: New file.
1845
1846         New module 'duplocale'.
1847         * m4/duplocale.m4: New file.
1848         * lib/locale.in.h (duplocale): New declaration.
1849         * lib/duplocale.c: New file.
1850         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
1851         gl_LOCALE_H_DEFAULTS): New macros.
1852         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
1853         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
1854         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
1855         REPLACE_DUPLOCALE.
1856         * modules/duplocale: New file.
1857         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
1858
1859 2009-11-22  Bruno Haible  <bruno@clisp.org>
1860
1861         * modules/locale-tests (configure.ac): Test for newlocale function.
1862         * tests/test-locale.c: When the system has extended locale functions,
1863         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
1864
1865         locale: Make locale_t available when possible.
1866         * lib/locale.in.h: Include <xlocale.h> when it exists.
1867         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
1868         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
1869         * modules/locale (Depends-on): Add extensions.
1870         (Makefile.am): Also substitute HAVE_XLOCALE_H.
1871         * doc/posix-headers/locale.texi: Document the problem with locale_t.
1872
1873 2009-11-22  Bruno Haible  <bruno@clisp.org>
1874
1875         Add comments.
1876         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
1877         invocation.
1878         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
1879         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1880         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
1881
1882 2009-11-22  Bruno Haible  <bruno@clisp.org>
1883
1884         error: account for the possibility of freopen (stdout).
1885         * lib/error.c: Include <unistd.h>.
1886         (flush_stdout): New function, extracted from error and error_at_line.
1887         Determine stdout's fd dynamically.
1888         (error, error_at_line): Invoke flush_stdout.
1889         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
1890         * modules/error (Depends-on): Add unistd.
1891
1892 2009-11-22  Bruno Haible  <bruno@clisp.org>
1893
1894         diffseq: Add comment.
1895         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
1896
1897 2009-11-22  Jim Meyering  <meyering@redhat.com>
1898
1899         c-stack: avoid defining an unused static function
1900         * lib/c-stack.c (find_stack_direction): Do not define this function
1901         when it will not be used.
1902
1903         diffseq: avoid spurious gcc warnings
1904         * lib/diffseq.h (IF_LINT2): Define.
1905         (compareseq): Use it to initialize two members of "part".
1906         This avoids two used-uninitialized warnings.
1907
1908 2009-11-21  Jim Meyering  <meyering@redhat.com>
1909
1910         c-stack: avoid "ignoring return value of `write'" warning
1911         * lib/c-stack.c: Include "ignore-value.h".
1912         (die): Explicitly ignore each write return value.
1913         * modules/c-stack (Depends-on): Add ignore-value.
1914
1915 2009-11-21  Bruno Haible  <bruno@clisp.org>
1916
1917         diffseq: reduce scope of variable 'best'.
1918         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
1919         variable, earlier used for two different purposes.
1920
1921 2009-11-21  Jim Meyering  <meyering@redhat.com>
1922
1923         diffseq: remove useless assignment to "best"
1924         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
1925         assignment.  At that point "best" is already guaranteed to be zero.
1926
1927 2009-11-20  Eric Blake  <ebb9@byu.net>
1928
1929         build: mention ftp redirector in release announcements
1930         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
1931         values that used to come from cfg.mk; mention FTP redirect URL.
1932         * build-aux/announce-gen: Mention the mirror list.
1933         Suggested by Karl Berry.
1934
1935         nanosleep: improve port to mingw
1936         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
1937         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
1938         LIB_NANOSLEEP, but only when needed.
1939         * modules/select (Link): Document LIBSOCKET.
1940         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
1941         enough.
1942
1943         nanosleep: work around cygwin bug
1944         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
1945         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
1946         bug.
1947         (getnow): Delete, not needed.
1948         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
1949         LIB_CLOCK_GETTIME.
1950         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
1951         clock-time, gettime.
1952         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
1953         bug.
1954         * modules/nanosleep-tests: New test.
1955         * tests/test-nanosleep.c: New file.
1956
1957         sleep: work around cygwin bug
1958         * lib/sleep.c (rpl_sleep): Work around the bug.
1959         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
1960         (gl_PREREQ_SLEEP): Delete unused macro.
1961         * modules/sleep (Depends-on): Add verify.
1962         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
1963         * modules/unistd (Makefile.am): Substitute witness.
1964         * lib/unistd.in.h (sleep): Update prototype.
1965         * doc/posix-functions/sleep.texi (sleep): Document the bug.
1966         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
1967         * modules/sleep-tests (Depends-on): Check for alarm.
1968
1969 2009-11-20  Jim Meyering  <meyering@redhat.com>
1970
1971         maint.mk: improve sc_prohibit_magic_number_exit
1972         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
1973         so it does not match uses like System.exit(1).
1974         Add comments showing how to correct all offenders.
1975
1976 2009-11-19  Eric Blake  <ebb9@byu.net>
1977
1978         xalloc-die-tests: add missing library
1979         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
1980
1981         test-xvasprintf: silence compiler warnings
1982         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
1983         empty string from gcc.
1984
1985 2009-11-19  Jim Meyering  <meyering@redhat.com>
1986
1987         xfreopen: new module, from coreutils
1988         * modules/xfreopen: New module.
1989         * lib/xfreopen.c: New file.
1990         * lib/xfreopen.h: New file.
1991         * MODULES.html.sh (File stream based Input/Output"): Add it.
1992
1993 2009-11-19  Eric Blake  <ebb9@byu.net>
1994
1995         manywarnings: depend on warnings
1996         * modules/manywarnings (Depends-on): Add warnings.
1997
1998         build: avoid compiler warnings
1999         * lib/select.c (rpl_select): Delete unused variable.
2000         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
2001
2002 2009-11-18  Eric Blake  <ebb9@byu.net>
2003
2004         tests: avoid false negative with --with-packager
2005         * tests/test-version-etc.sh: Discard packager information.
2006         * tests/test-argp-version-etc-1.sh: Likewise.
2007         Reported by Mike Frysinger.
2008
2009         utimens: fix regression on Solaris
2010         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
2011         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
2012         can only change fd timestamps via futimesat.  Instead, use an
2013         additional witness macro to avoid BSD bug.
2014         Reported by Jim Meyering.
2015
2016 2009-11-17  Eric Blake  <ebb9@byu.net>
2017
2018         usleep: use it to simplify tests
2019         * modules/stat-time-tests (Depends-on): Add usleep.
2020         (configure.ac): Drop usleep check.
2021         * modules/chown-tests (Depends-on, configure.ac): Likewise.
2022         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
2023         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
2024         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
2025         * modules/openat-tests (Depends-on, configure.ac): Likewise.
2026         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
2027         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
2028         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
2029         Likewise.
2030         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
2031         * tests/test-lchown.h (nap): Likewise.
2032         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
2033         * tests/test-stat-time.c (nap): Likewise.
2034         * tests/test-utimens-common.h (nap): Update comments.
2035
2036         usleep: new module
2037         * modules/usleep: New file.
2038         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
2039         * lib/usleep.c (usleep): Likewise.
2040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
2041         * modules/unistd (Makefile.am): Substitute witnesses.
2042         * lib/unistd.in.h (usleep): Add declaration.
2043         * doc/pastposix-functions/usleep.texi (usleep): Document this.
2044         * MODULES.html.sh (Date and time): Likewise.
2045         * modules/usleep-tests (Depends-on): New test.
2046         * tests/test-usleep.c: New file.
2047
2048         chown: work around OpenBSD bug
2049         * lib/chown.c (rpl_chown): Work around the bug.
2050         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
2051         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
2052         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
2053         * modules/chown (Depends-on): Add stdbool.
2054         * modules/lchown (Depends-on): Likewise.
2055         * doc/posix-functions/chown.texi (chown): Document the bug.
2056         * doc/posix-functions/lchown.texi (lchown): Likewise.
2057         * tests/test-lchown.h (test_chown): Relax test.
2058
2059         mkstemp: avoid conflict with C++ keyword template
2060         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
2061         * lib/mkostemp.c (mkostemp): Likewise.
2062         * lib/mkostemps.c (mkostemps): Likewise.
2063         * lib/mkstemp.c (mkstemp): Likewise.
2064         * lib/mkstemps.c (mkstemps): Likewise.
2065
2066         xalloc-die-tests: optimize
2067         * tests/test-xalloc-die.sh: Reduce number of processes.
2068
2069 2009-11-17  Simon Josefsson  <simon@josefsson.org>
2070
2071         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
2072         patch from ludo@gnu.org (Ludovic Courtès).
2073
2074 2009-11-17  Jim Meyering  <meyering@redhat.com>
2075
2076         version-etc: use proper license string
2077         * modules/version-etc (License): Use LGPL, not LGPLv3+.
2078         * modules/version-etc-fsf: Likewise.
2079
2080 2009-11-17  Simon Josefsson  <simon@josefsson.org>
2081
2082         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
2083         printed to stdout.  Deal with EOL differences.
2084
2085 2009-11-17  Eric Blake  <ebb9@byu.net>
2086
2087         unsetenv: work around Solaris bug
2088         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
2089         * lib/unsetenv.c (rpl_unsetenv): Work around it.
2090         Reported by Jim Meyering.
2091
2092         vasnprintf: avoid compiler warnings
2093         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
2094         variables.
2095         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
2096
2097 2009-11-17  Simon Josefsson  <simon@josefsson.org>
2098
2099         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
2100         settings since xalloc-die is no longer the self test,
2101         xalloc-die.sh is.
2102
2103 2009-11-17  Jim Meyering  <meyering@redhat.com>
2104
2105         test-xalloc-die.sh: make the code agree with the commit log
2106         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
2107         at the end, just in case you happen to have a test-xalloc-die
2108         program in some other PATH directory.
2109
2110         test-xalloc-die.sh: fix a portability bug
2111         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
2112         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
2113         Otherwise, argv[0] (as often seen in diagnostics) would be too
2114         system-dependent, sometimes with, and sometimes without the leading "./".
2115
2116         version-etc-fsf: relax license to LGPLv3+
2117         * modules/version-etc-fsf (License): Relax license.
2118
2119 2009-11-16  Eric Blake  <ebb9@byu.net>
2120
2121         xalloc-die-tests: avoid printing null pointer
2122         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
2123         shell script.
2124         * tests/test-xalloc-die.c (program_name): Declare.
2125         * tests/test-xalloc-die.sh (tmpfiles): New file.
2126
2127         setenv, unsetenv: work around various bugs
2128         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
2129         (setenv) [HAVE_SETENV]: Work around bugs.
2130         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
2131         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
2132         for bugs.
2133         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
2134         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
2135         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
2136         * modules/stdlib (Makefile.am): Update substitutions.
2137         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
2138         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
2139         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
2140         * modules/setenv-tests: New test.
2141         * modules/unsetenv-tests: Likewise.
2142         * tests/test-setenv.c: New file.
2143         * tests/test-unsetenv.c: Likewise.
2144
2145 2009-11-16  Jim Meyering  <meyering@redhat.com>
2146
2147         version-etc: relax license to LGPLv3+
2148         * modules/version-etc (License): Relax license.
2149
2150         better AC_REQUIRE expanded-before-required-warning avoidance
2151         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
2152         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
2153         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
2154         which is no longer needed.
2155
2156 2009-11-16  Eric Blake  <ebb9@byu.net>
2157
2158         test-freading: clean up temporary file
2159         * tests/test-freading.c (main): Remove file on success, and use
2160         ASSERT more liberally.
2161         Reported by Jim Meyering.
2162
2163 2009-11-16  Jim Meyering  <meyering@redhat.com>
2164
2165         avoid new AC_REQUIRE expanded-before-required warnings
2166         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
2167         merely using it.
2168         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
2169         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
2170
2171 2009-11-15  Simon Josefsson  <simon@josefsson.org>
2172
2173         * tests/test-xalloc-die.c: New file.
2174         * modules/xalloc-die-tests: New file.
2175         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
2176         XFAIL_TESTS so it can be appended by modules.
2177
2178 2009-11-15  Simon Josefsson  <simon@josefsson.org>
2179
2180         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
2181         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
2182
2183 2009-11-14  Eric Blake  <ebb9@byu.net>
2184
2185         fnmatch: avoid compiler warning
2186         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
2187         to silence compiler warning about mismatch signedness in ?:.
2188         Reported by Robert Millan.
2189
2190         intprops: add double-inclusion guard
2191         * lib/intprops.h: Allow idempotent includes.
2192         Suggested by Bruce Korb.
2193
2194         openat: detect Solaris fchownat bug
2195         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
2196         penalizing glibc chownat when only lchownat is broken.
2197         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
2198         trailing slash bugs.
2199         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
2200         * modules/openat-tests (Files): Include more files.
2201         (Depends-on): Add mgetgroups, sleep, stat-time.
2202         (configure.ac): Add additional checks.
2203         (Makefile.am): Build new test.
2204         * tests/test-fchownat.c: New file.
2205
2206         lchown: detect Solaris and FreeBSD bug
2207         * lib/lchown.c (rpl_lchown): Work around bug.
2208         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
2209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
2210         * modules/unistd (Makefile.am): Populate it.
2211         * lib/unistd.in.h (lchown): Update declaration.
2212         * doc/posix-functions/lchown.texi (lchown): Document the bug.
2213         * modules/lchown-tests: New file.
2214         * tests/test-lchown.h (test_lchown): Likewise.
2215         * tests/test-lchown.c (main): Likewise.
2216
2217         chown: detect Solaris and FreeBSD bug
2218         * lib/chown.c (rpl_chown): Work around bug.
2219         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
2220         (gl_PREREQ_CHOWN): Delete.
2221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
2222         * modules/unistd (Makefile.am): Populate it.
2223         * lib/unistd.in.h (chown): Update declaration.
2224         * lib/lchown.c (chown): Update client.
2225         * modules/lchown (Depends-on): Add lstat.
2226         * doc/posix-functions/chown.texi (chown): Document the bug.
2227         * doc/posix-functions/getgroups.texi (getgroups): Document
2228         getgroups pitfall.
2229         * modules/chown-tests: New file.
2230         * tests/test-chown.h (test_chown): Likewise.
2231         * tests/test-chown.c (main): Likewise.
2232
2233 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
2234
2235         gnulib-tool: correctly detect absence of m4 directories
2236         * gnulib-tool: Avoid extra newline on data passed to wc -l.
2237
2238 2009-11-14  Jim Meyering  <meyering@redhat.com>
2239
2240         maint.mk: Prohibit inclusion of "xalloc.h" without use.
2241         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
2242
2243 2009-11-14  John W. Eaton  <jwe@gnu.org>
2244
2245         strftime.h: wrap funtion declaration in extern "C" block
2246         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
2247
2248 2009-11-13  Eric Blake  <ebb9@byu.net>
2249
2250         getgroups: avoid compiler warning
2251         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
2252
2253         getgroups: work around FreeBSD bug
2254         * lib/getgroups.c (rpl_getgroups): Work around the bug.
2255         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
2256         * doc/posix-functions/getgroups.texi (getgroups): Document it.
2257         * tests/test-getgroups.c (main): Fix buffer overrun.
2258
2259         getgroups: avoid compilation failure
2260         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
2261         * modules/getgroups (Depends-on): Add stdint.
2262
2263 2009-11-13  Jim Meyering  <meyering@redhat.com>
2264
2265         test-getgroups: avoid compilation failure
2266         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
2267
2268 2009-11-13  Eric Blake  <ebb9@byu.net>
2269
2270         mgetgroups: new module, taken from coreutils
2271         * modules/mgetgroups: New file.
2272         * lib/mgetgroups.h: Likewise.
2273         * lib/mgetgroups.c (mgetgroups): Likewise.
2274         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
2275         * MODULES.html.sh (Users and groups): Mention it.
2276
2277         getgroups: don't expose GETGROUPS_T to user
2278         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
2279         an element at a time if GETGROUPS_T is wrong size.
2280         * lib/getugroups.h (getugroups): Change signature.
2281         * lib/unistd.in.h (getgroups): Likewise.
2282         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
2283         signature needs fixing.
2284         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
2285         AC_TYPE_GETGROUPS.
2286         * modules/group-member (Depends-on): Add getgroups.
2287         * lib/group-member.c (group_info, get_group_info): Use gid_t.
2288         (group_member): Rely on getgroups replacement.
2289         * lib/getugroups.c (getugroups): Use gid_t.
2290         * tests/test-getgroups.c (main): Likewise.
2291         * NEWS: Mention the signature change.
2292         * doc/posix-functions/getgroups.texi (getgroups): Mention the
2293         problem with signature.
2294         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
2295         GETGROUPS_T is still useful for setgroups.
2296
2297         getgroups, getugroups: provide stubs for mingw
2298         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
2299         * lib/getugroups.c (getugroups): Likewise.
2300         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
2301         function.  Modernize replacement scheme.
2302         (gl_PREREQ_GETGROUPS): Delete.
2303         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
2304         * modules/getgroups (configure.ac): Declare witness.
2305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
2306         * modules/unistd (Depends-on): Substitute witness.
2307         * lib/unistd.in.h (getgroups): Declare replacement.
2308
2309         getgroups: avoid calling exit
2310         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
2311         drop xalloc.
2312         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
2313         dependencies.
2314         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
2315         exiting, in the rare case of malloc failure.
2316
2317         getgroups: fix logic error
2318         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
2319         has more than 20 groups.
2320         * modules/getgroups-tests: New test.
2321         * tests/test-getgroups.c: New file.
2322
2323 2009-11-13  Simon Josefsson  <simon@josefsson.org>
2324
2325         * tests/test-base64.c: Improve.
2326
2327 2009-11-13  Simon Josefsson  <simon@josefsson.org>
2328
2329         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
2330         Blake <ebb9@byu.net>.
2331
2332 2009-11-13  Simon Josefsson  <simon@josefsson.org>
2333
2334         * tests/test-xvasprintf.c: Add %s%s related checks.
2335
2336 2009-11-12  Eric Blake  <ebb9@byu.net>
2337
2338         version-etc: match standards.texi style
2339         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
2340         and use <> only for URLs.
2341
2342 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
2343
2344         fts: do not fail on a submount during traversal
2345         * lib/fts.c (fts_build): Read the stat info again after opening
2346         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
2347         Original report at http://bugzilla.redhat.com/501848.
2348
2349 2009-11-12  Jim Meyering  <meyering@redhat.com>
2350
2351         bootstrap: sync from coreutils
2352         * build-aux/bootstrap (bootstrap_epilogue): New function.
2353         Use git_modules_config in one more place.  This make bootstrap's
2354         --gnulib-srcdir option more useful for testing.
2355
2356         bootstrap: generalize autoheader check
2357         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
2358         AC_CONFIG_HEADERS.
2359
2360 2009-11-11  Eric Blake  <ebb9@byu.net>
2361
2362         mkfifoat: use new modules for Solaris and BSD bugs
2363         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
2364         * lib/mkfifoat.c (mknodat): Split...
2365         * lib/mknodat.c (mknodat): ...into new file.
2366         * modules/mkfifoat (Files): Ship new file.
2367         (Depends-on): Add mkfifo, mknod.
2368         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
2369         (Depends-on): Add symlink.
2370         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
2371         redundant with test_mkfifo.h.
2372         (do_mkfifoat, do_mknodat): New helpers.
2373
2374         mknod: new module
2375         * modules/mknod: New file.
2376         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
2377         * lib/mknod.c (mknod): Likewise.
2378         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
2379         defaults.
2380         * modules/sys_stat (Makefile.am): Substitute them.
2381         * lib/sys_stat.in.h (mknod): Declare replacement.
2382         * MODULES.html.sh (Support for systems lacking POSIX:2008):
2383         Document it.
2384         * doc/posix-functions/mknod.texi (mknod): Likewise.
2385         * modules/mknod-tests: New test.
2386         * tests/test-mknod.c: Likewise.
2387
2388         mkfifo: new module
2389         * modules/mkfifo: New file.
2390         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
2391         * lib/mkfifo.c (mkfifo): Likewise.
2392         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
2393         defaults.
2394         * modules/sys_stat (Makefile.am): Substitute them.
2395         * lib/sys_stat.in.h (mkfifo): Declare replacement.
2396         * MODULES.html.sh (Support for systems lacking POSIX:2008):
2397         Document it.
2398         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
2399         * modules/mkfifo-tests: New test.
2400         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
2401         from test-mkfifoat.c.
2402         * tests/test-mkfifo.c: New file.
2403
2404         readlink: detect FreeBSD bug
2405         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
2406         slash on symlink.
2407         * doc/posix-functions/readlink.texi (readlink): Document the bug.
2408         * tests/test-readlink.h (test_readlink): Enhance test.
2409
2410         symlink: detect FreeBSD bug
2411         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
2412         slash on symlink.
2413         * doc/posix-functions/symlink.texi (symlink): Document the bug.
2414         * tests/test-symlink.h (test_symlink): Enhance test.
2415
2416 2009-11-10  Eric Blake  <ebb9@byu.net>
2417
2418         link: detect FreeBSD bug
2419         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
2420         symlink.
2421         * doc/posix-functions/link.texi (link): Document the bug.
2422         * tests/test-link.h (test_link): Enhance test.
2423         * tests/test-linkat.c (main): Update caller.
2424
2425         unlink, remove: detect FreeBSD bug
2426         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
2427         slash on symlink.
2428         * doc/posix-functions/unlink.texi (unlink): Document the bug.
2429         * doc/posix-functions/remove.texi (remove): Likewise.
2430         * tests/test-unlink.h (test_unlink): Enhance test.
2431         * tests/test-remove.c (main): Likewise.
2432
2433 2009-11-09  Eric Blake  <ebb9@byu.net>
2434
2435         rename: detect FreeBSD bug
2436         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
2437         slash on symlink.
2438         * modules/renameat-tests (Depends-on): Add filenamecat.
2439         * tests/test-rename.h (test_rename): Allow one more errno.
2440         * tests/test-renameat.c (main): Likewise.
2441         * doc/posix-functions/rename.texi (rename): Document the bug.
2442
2443         open: detect FreeBSD bug
2444         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
2445         symlink.
2446         * doc/posix-functions/open.texi (open): Document the bug.
2447         * doc/posix-functions/utimes.texi (utimes): Likewise.
2448         * tests/test-open.h (test_open): Add parameters, and test symlink
2449         handling.
2450         * tests/test-open.c (main): Adjust caller.
2451         * tests/test-fcntl-safer.c (main): Likewise.
2452         * modules/open-tests (Depends-on): Add stdbool, symlink.
2453         * modules/fcntl-safer-tests (Depends-on): Likewise.
2454         * tests/test-openat.c (main): Add test-open tests.
2455
2456         stat: detect FreeBSD bug
2457         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
2458         symlink.
2459         * doc/posix-functions/stat.texi (stat): Document the bug.
2460         * tests/test-stat.h (test_stat_func): Add argument.
2461         * tests/test-stat.c (main): Adjust caller.
2462         * tests/test-fstatat.c (main): Likewise.
2463         * modules/stat-tests (Depends-on): Add stdbool, symlink.
2464         Reported by Jim Meyering.
2465
2466 2009-11-09  James Youngman  <jay@gnu.org>
2467
2468         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
2469         * lib/strftime.c: Correct placement of #include "ignore-value.h".
2470
2471 2009-11-08  Jim Meyering  <meyering@redhat.com>
2472
2473         utimens: remove invalid futimesat call
2474         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
2475         It used the file descriptor of the target file as the DIR_FD
2476         parameter and NULL as the file name.  That caused failure with
2477         errno == EFAULT on FreeBSD-8.0-rc2
2478
2479 2009-11-07  Eric Blake  <ebb9@byu.net>
2480
2481         fflush, freadseek: use fseeko, not fseek
2482         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
2483         (clear_ungetc_buffer): Avoid potential problems on large files.
2484         * lib/freadseek.c (freadseek): Likewise.
2485         * modules/freadseek (Depends-on): Add fseeko.
2486         * modules/fseek (configure.ac): Set a witness.
2487         * tests/test-fflush.c (main): Use fseeko.
2488         * tests/test-fpurge.c (fseek): Disable link warning.
2489         * tests/test-freadable.c (fseek): Likewise.
2490         * tests/test-freading.c (fseek): Likewise.
2491         * tests/test-fseeko.c (fseek): Likewise.
2492         * tests/test-ftell.c (fseek): Likewise.
2493         * tests/test-ftello.c (fseek): Likewise.
2494         * tests/test-fwritable.c (fseek): Likewise.
2495         * tests/test-fwriting.c (fseek): Likewise.
2496
2497 2009-11-06  Simon Josefsson  <simon@josefsson.org>
2498
2499         * modules/memchr (Depends-on): Drop getpagesize dependency.
2500
2501 2009-11-06  Simon Josefsson  <simon@josefsson.org>
2502
2503         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
2504         Reported by Ludovic Courtès.
2505         * build-aux/pmccabe2html: Improve example usage.
2506         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
2507
2508 2009-11-06  Jim Meyering  <meyering@redhat.com>
2509
2510         do-release-commit-and-tag: New module.
2511         Automate the release-commit and tag process.
2512         * build-aux/do-release-commit-and-tag: New script, from coreutils.
2513         * modules/do-release-commit-and-tag: New file.
2514         * MODULES.html.sh (Support for maintaining and releasing): Add it.
2515
2516 2009-11-06  Simon Josefsson  <simon@josefsson.org>
2517
2518         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
2519         because test-select.c uses inet_pton.
2520
2521 2009-11-06  Simon Josefsson  <simon@josefsson.org>
2522
2523         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
2524         GETADDRINFO_LIB.  Bump serial number.
2525         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
2526         Suggested by Eric Blake <ebb9@byu.net>.
2527
2528 2009-11-05  Eric Blake  <ebb9@byu.net>
2529
2530         strtod: detect darwin bug
2531         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
2532         Reported by Leo Davis.
2533
2534         freopen-safer: new module
2535         * modules/freopen-safer: New module.
2536         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
2537         * lib/freopen-safer.c (freopen_safer): New file.
2538         * lib/stdio-safer.h (freopen_safer): New declaration.
2539         * lib/stdio--.h (freopen): New override.
2540         * MODULES.html.sh (File stream based Input/Output): Mention it.
2541         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
2542         freopen-safer module.
2543         * doc/posix-functions/stderr.texi (stderr): Likewise.
2544         * doc/posix-functions/stdin.texi (stdin): Likewise.
2545         * doc/posix-functions/stdout.texi (stdout): Likewise.
2546         * modules/freopen-safer-tests: New test.
2547         * tests/test-reopen-safer.c: New file.
2548
2549 2009-11-05  Jim Meyering  <meyering@redhat.com>
2550
2551         maint.mk: Prohibit inclusion of "close-stream.h" without use.
2552         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
2553
2554 2009-11-05  Simon Josefsson  <simon@josefsson.org>
2555
2556         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
2557
2558 2009-11-05  Simon Josefsson  <simon@josefsson.org>
2559
2560         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
2561
2562 2009-11-05  Simon Josefsson  <simon@josefsson.org>
2563
2564         Fix link error.
2565         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
2566         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
2567
2568 2009-11-05  Simon Josefsson  <simon@josefsson.org>
2569
2570         * tests/test-func.c: Also test value of __func__.
2571
2572 2009-11-05  Simon Josefsson  <simon@josefsson.org>
2573
2574         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
2575         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
2576
2577 2009-11-05  Bruno Haible  <bruno@clisp.org>
2578
2579         Fix link error.
2580         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
2581         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
2582         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
2583
2584 2009-11-05  Bruno Haible  <bruno@clisp.org>
2585
2586         Tests for module 'inet_pton'.
2587         * modules/inet_pton-tests: New file.
2588         * tests/test-inet_pton.c: New file.
2589
2590 2009-11-05  Bruno Haible  <bruno@clisp.org>
2591
2592         Tests for module 'inet_ntop'.
2593         * modules/inet_ntop-tests: New file.
2594         * tests/test-inet_ntop.c: New file.
2595
2596 2009-11-04  Eric Blake  <ebb9@byu.net>
2597
2598         stdlib-safer: wrap all mkstemp variants
2599         * modules/mkostemp (configure.ac): Set witness.
2600         * modules/mkostemps (configure.ac): Likewise.
2601         * modules/mkstemps (configure.ac): Likewise.
2602         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
2603         (mkstemps_safer): Wrap more functions.
2604         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
2605         wrapping.
2606         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
2607         (mkstemps_safer): Implement the wrappers.
2608
2609         mkstemps, mkostemps: new modules
2610         * modules/mkostemps: New module.
2611         * modules/mkstemps: Likewise.
2612         * lib/mkostemps.c (mkostemps): New file.
2613         * lib/mkstemps.c (mkstemps): Likewise.
2614         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
2615         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
2616         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
2617         * modules/stdlib (Makefile.am): Substitute them.
2618         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
2619         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
2620         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
2621         * doc/gnulib.texi (Glibc stdlib.h): Include them.
2622         * MODULES.html.sh (File system functions): Mention them.
2623
2624         tempname: resync from glibc
2625         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
2626         same values for __GT_FILE as glibc.  Abort even when assertions
2627         are disabled.
2628         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
2629         match its value otherwise.  Allow idempotent inclusion.
2630         * lib/mkdtemp.c (mkdtemp): Adjust caller.
2631         * lib/mkostemp.c (mkostemp): Likewise.
2632         * lib/mkstemp.c (mkstemp): Likewise.
2633         * lib/tmpfile.c (tmpfile): Likewise.
2634         * NEWS: Document this.
2635
2636         utimens: fix use of futimens on older Linux
2637         * lib/utimens.c (fdutimens): Use updated, rather than original,
2638         timespec to avoid bug in older Linux kernel.
2639         Reported by Simon Josefsson.
2640
2641 2009-11-04  Bruno Haible  <bruno@clisp.org>
2642
2643         Make num_processors more flexible and consistent.
2644         * lib/nproc.h (enum nproc_query): New type.
2645         (num_processors): Add a 'query' argument.
2646         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
2647         (num_processors): Add a 'query' argument. Test the value of the
2648         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
2649         mingw, count the number of CPUs available for the current process.
2650         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
2651         Check for sched_getaffinity and sched_getaffinity_np.
2652         * modules/nproc (Depends-on): Add c-ctype, extensions.
2653         * NEWS: Mention the change.
2654
2655 2009-11-03  Bruno Haible  <bruno@clisp.org>
2656
2657         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
2658
2659 2009-11-03  Jim Meyering  <meyering@redhat.com>
2660
2661         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
2662         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
2663         if it is defined.
2664
2665 2009-11-02  Eric Blake  <ebb9@byu.net>
2666
2667         mktime, timegm: share common declaration
2668         * lib/mktime-internal.h: New file.
2669         * lib/mktime.c: Use it rather than open-coding a declaration.
2670         * lib/timegm.c: Likewise.
2671         * modules/mktime (Files): Ship it.
2672         * modules/timegm (Files): Likewise.
2673         Suggested by Bruno Haible.
2674
2675         test-update-copyright: update test to match script changes
2676         * tests/test-update-copyright.sh: Avoid hard-coding perl
2677         location.  Don't update *.bak created by earlier runs.
2678
2679 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
2680             Simon Josefsson  <simon@josefsson.org>
2681             Bruno Haible  <bruno@clisp.org>
2682
2683         Fix link error on Solaris 8.
2684         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
2685         also in libnsl. Define also INET_PTON_LIB.
2686         * modules/inet_pton (Link): New section.
2687
2688 2009-11-02  Simon Josefsson  <simon@josefsson.org>
2689             Bruno Haible  <bruno@clisp.org>
2690
2691         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
2692         * modules/inet_ntop (Link): New section.
2693         Reported by Boyan Kasarov <bkasarov@gmail.com>.
2694
2695 2009-11-02  Eric Blake  <ebb9@byu.net>
2696
2697         maint: avoid compiler warnings in m4 macros
2698         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
2699         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
2700
2701 2009-11-02  Simon Josefsson  <simon@josefsson.org>
2702
2703         * m4/pmccabe2html.m4: Remove file.
2704         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
2705         function.  Change maintainer.
2706         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
2707         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
2708         Courtès).
2709
2710 2009-10-31  Eric Blake  <ebb9@byu.net>
2711
2712         fseeko: fix m4 regression
2713         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
2714         regression from 2009-10-27.
2715         Reported by Ralf Wildenhues.
2716
2717 2009-10-31  Jim Meyering  <meyering@redhat.com>
2718
2719         inttostr: aesthetics and improved (compile-time) safety
2720         Define inttype_is_signed rather than inttype_is_unsigned,
2721         since the sole use is via "#if inttype_is_signed".
2722         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
2723         inttype_is_unsigned.
2724         * lib/offtostr.c (inttype_is_signed): Likewise.
2725         * lib/uinttostr.c (inttype_is_signed): Likewise.
2726         * lib/umaxtostr.c (inttype_is_signed): Likewise.
2727         * lib/inttostr.c (inttostr): Use verify to cross-check the
2728         inttype_is_signed value and the signedness of the actual type.
2729         * modules/inttostr (Depends-on): Add verify.
2730
2731 2009-10-30  Eric Blake  <ebb9@byu.net>
2732
2733         build: avoid compiler warnings
2734         * lib/fchmodat.c (lchmod): Mark unused variables.
2735         * lib/getopt.c (_getopt_initialize): Likewise.
2736         * lib/mktime.c (__mktime_internal): Provide prototype.
2737         * lib/inttostr.c (inttostr): Avoid compiler warning even with
2738         older gcc that do not understand #pragma GCC diagnostic.
2739         * lib/uinttostr.c (inttype_is_unsigned): Define.
2740         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
2741
2742 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
2743
2744         stat: fix compilation on AIX
2745         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
2746         only see struct stat64.
2747
2748 2009-10-30  Eric Blake  <ebb9@byu.net>
2749
2750         exclude: make more robust
2751         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
2752         rather than masking a coding bug.
2753         Suggested by Bruno Haible.
2754
2755 2009-10-30  Jim Meyering  <meyering@redhat.com>
2756
2757         perl scripts: remove #!/usr/bin/perl in favor of more portable...
2758         Rather than putting #!/usr/bin/perl on the first line,
2759         start with a variant of what's recommended by "man perlrun" that
2760         invokes the first "perl" program from your shell's search path.
2761         * build-aux/gitlog-to-changelog: Replace #!... as above.
2762         Add a "Local Variables" perl mode setting.
2763         Prompted by a patch from Ludovic Courtès.
2764         Improved by Eric Blake.
2765         * build-aux/useless-if-before-free: Likewise.
2766         * build-aux/announce-gen: Likewise.
2767         * build-aux/update-copyright: Likewise.
2768
2769 2009-10-29  Eric Blake  <ebb9@byu.net>
2770
2771         filenamecat-lgpl: adjust clients
2772         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
2773         filenamecat.
2774         * modules/renameat (Depends-on): Likewise.
2775
2776         filenamecat: split into filenamecat-lgpl
2777         * modules/filenamecat-lgpl: New module.
2778         * modules/filenamecat (Files): Move library-safe files into
2779         filenamecat-lgpl.
2780         (Depends-on): Add filenamecat-lgpl.
2781         (configure.ac): Declare witness.
2782         * lib/filenamecat.h (file_name_concat): Only declare when using
2783         GPL module.
2784         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
2785         Move...
2786         * lib/filenamecat-lgpl.c: ...into new file.
2787         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
2788         (gl_FILE_NAME_CONCAT): Use it.
2789         * MODULES.html.sh (File system functions): Mention new module.
2790
2791         argp: avoid memory leak
2792         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
2793         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
2794         base_name, since the latter malloc()s and can call exit().
2795         Leak introduced 2006-07-03.
2796
2797         dirname-lgpl: adjust clients that don't need full dirname
2798         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
2799         * modules/filenamecat (Depends-on): Likewise.
2800         * modules/linkat (Depends-on): Likewise.
2801         * modules/mkancesdirs (Depends-on): Likewise.
2802         * modules/mkdir (Depends-on): Likewise.
2803         * modules/openat (Depends-on): Likewise.
2804         * modules/savewd (Depends-on): Likewise.
2805         * modules/rename (Depends-on): Likewise.
2806         (License): Relax license.
2807         * modules/mkdir-tests (Depends-on): Drop progname.
2808         (Makefile.am): Delete unneeded LDADD.
2809         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
2810
2811         dirname: split into dirname-lgpl
2812         * modules/dirname-lgpl: New module.
2813         * modules/dirname (Files): Move library-safe files into
2814         dirname-lgpl.
2815         (Depends-on): Add dirname-lgpl.
2816         (configure.ac): Declare witness.
2817         * modules/double-slash-root (License): Relax license.
2818         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
2819         module.
2820         * lib/dirname.c (dir_len, mdir_name): Move...
2821         * lib/dirname-lgpl.c: ...into new file.
2822         * lib/basename.c (last_component, base_len): Move...
2823         * lib/basename-lgpl.c: ...into new file.
2824         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
2825         (gl_DIRNAME): Use it.
2826         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
2827         Mention new module.
2828         * modules/dirname-tests (Depends-on): Add progname.
2829         * tests/test-dirname.c (program_name): Delete.
2830
2831         mkdir: make safe for libraries
2832         * modules/mkdir (Depends-on): Drop xalloc.
2833         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
2834         exit.
2835
2836         tests: avoid some compiler warnings
2837         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
2838         literals.
2839         * tests/test-memchr.c (main): Avoid type mismatch.
2840         * tests/test-arpa_inet.c (main): Avoid unused parameters.
2841         * tests/test-base64.c (main): Likewise.
2842         * tests/test-getdelim.c (main): Likewise.
2843         * tests/test-gethostname.c (main): Likewise.
2844         * tests/test-getline.c (main): Likewise.
2845         * tests/test-netinet_in.c (main): Likewise.
2846         * tests/test-select.c (open_server_socket, main): Likewise.
2847         * tests/test-select-stdin.c (main): Likewise.
2848         * tests/test-sockets.c (main): Likewise.
2849         * tests/test-strsignal.c (main): Likewise.
2850         * tests/test-sys_select.c (main): Likewise.
2851         * tests/test-sys_socket.c (main): Likewise.
2852         * tests/test-u64.c (main): Likewise.
2853         * tests/test-xfprintf-posix.c (main): Likewise.
2854         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
2855
2856         sockets: avoid compiler warning
2857         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
2858
2859         maint: detect usage(1) and other suspicious exits
2860         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
2861
2862 2009-10-29  Jim Meyering  <meyering@redhat.com>
2863
2864         timespec: long-to-int truncation could make timespec_cmp malfunction
2865         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
2866         a multiple of 2^32 nanoseconds as no difference.
2867
2868 2009-10-28  Jim Meyering  <meyering@redhat.com>
2869
2870         fprintftime: wrap macro code argument in "do {...} while(0)"
2871         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
2872         cpy macro must be a statement that can be followed by a semicolon.
2873         Now that the else clause contains a comment and is hence longer
2874         than one line, I require curly braces.  That in turn requires
2875         that we wrap this code block in the standard do...while(0).
2876
2877         fprintftime: remove stray semicolon from previous change
2878         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
2879
2880         fprintftime: avoid a warning about ignored fwrite return value
2881         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
2882         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
2883         that is unsafe.
2884         * modules/fprintftime (Depends-on): Add ignore-value.
2885
2886         exclude: avoid an unwarranted warning
2887         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
2888
2889 2009-10-27  Eric Blake  <ebb9@byu.net>
2890
2891         fseek: avoid compilation failure when fflush is replaced
2892         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
2893         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
2894         module is in use.
2895         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
2896         module is not in use; since REPLACE_FSEEK worked otherwise.
2897         (GNULIB_FTELLO): Likewise for ftell.
2898         Reported by Ian Beckwith and others.
2899
2900 2009-10-27  Bruno Haible  <bruno@clisp.org>
2901
2902         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
2903         Reported by Jim Meyering.
2904
2905 2009-10-27  Jim Meyering  <jim@meyering.net>
2906             Bruno Haible  <bruno@clisp.org>
2907
2908         Avoid warning despite dropping the return value of fwrite.
2909         * lib/unicodeio.c: Include ignore-value.h.
2910         (fwrite_success_callback): Explicitly ignore fwrite's return value.
2911         * modules/unicodeio (Depends-on): Add ignore-value.
2912
2913 2009-10-26  Eric Blake  <ebb9@byu.net>
2914
2915         areadlinkat: fix fallback path
2916         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
2917         pointer and zero.
2918
2919 2009-10-22  Pádraig Brady  <P@draigBrady.com>
2920
2921         Use a better IO block size for modern systems
2922         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
2923         * lib/md2.c: Likewise.
2924         * lib/md4.c: Likewise.
2925         * lib/md5.c: Likewise.
2926         * lib/sha1.c: Likewise.
2927         * lib/sha256.c: Likewise.
2928         * lib/sha512.c: Likewise.
2929
2930 2009-10-22  Eric Blake  <ebb9@byu.net>
2931
2932         tests: avoid several compiler warnings
2933         * tests/test-getcwd.c (main): Avoid buffer underflow.
2934         * tests/test-getdate.c (main): String literals are not safe with
2935         putenv, so use setenv.  Declare unused argument.
2936         * modules/getdate-tests (Depends-on): Add setenv.
2937         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
2938         problems with string literals in char *.
2939         * tests/test-hash.c (main): Avoid shadowing declaration.
2940         (insert_new): Treat string literals as char const *.
2941         * tests/test-getopt.h (test_getopt): Likewise.
2942         (getopt_loop): Alter types to minimize casting elsewhere.
2943         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
2944         (test_getopt_long_posix): Likewise.
2945         (do_getopt_long): Add wrapper to minimize casting.
2946         * tests/test-atexit.c (clear_temp_file): Use void.
2947         * tests/test-areadlink-with-size.c (main): Declare unused
2948         arguments.
2949         * tests/test-areadlink.c (main): Likewise.
2950         * tests/test-areadlinkat-with-size.c (main): Likewise.
2951         * tests/test-areadlinkat.c (main): Likewise.
2952         * tests/test-canonicalize-lgpl.c (main): Likewise.
2953         * tests/test-canonicalize.c (main): Likewise.
2954         * tests/test-dirent-safer.c (main): Likewise.
2955         * tests/test-dirname.c (main): Likewise.
2956         * tests/test-dup2.c (main): Likewise.
2957         * tests/test-fchdir.c (main): Likewise.
2958         * tests/test-fcntl-h.c (main): Likewise.
2959         * tests/test-fcntl-safer.c (main): Likewise.
2960         * tests/test-fdopendir.c (main): Likewise.
2961         * tests/test-fdutimensat.c (main): Likewise.
2962         * tests/test-fflush.c (main): Likewise.
2963         * tests/test-filenamecat.c (main): Likewise.
2964         * tests/test-filevercmp.c (main): Likewise.
2965         * tests/test-fopen-safer.c (main): Likewise.
2966         * tests/test-fopen.c (main): Likewise.
2967         * tests/test-fpending.c (main): Likewise.
2968         * tests/test-fpurge.c (main): Likewise.
2969         * tests/test-freading.c (main): Likewise.
2970         * tests/test-fstatat.c (main): Likewise.
2971         * tests/test-fsync.c (main): Likewise.
2972         * tests/test-futimens.c (main): Likewise.
2973         * tests/test-getndelim2.c (main): Likewise.
2974         * tests/test-gettimeofday.c (main): Likewise.
2975         * tests/test-getopt.c (main): Likewise.
2976         * tests/test-i-ring.c (main): Likewise.
2977         * tests/test-inttypes.c (main): Likewise.
2978         * tests/test-link.c (main): Likewise.
2979         * tests/test-lstat.c (main): Likewise.
2980         * tests/test-math.c (main): Likewise.
2981         * tests/test-md5.c (main): Likewise.
2982         * tests/test-memchr2.c (main): Likewise.
2983         * tests/test-memrchr.c (main): Likewise.
2984         * tests/test-mkdir.c (main): Likewise.
2985         * tests/test-mkdirat.c (main): Likewise.
2986         * tests/test-mkfifoat.c (main): Likewise.
2987         * tests/test-open.c (main): Likewise.
2988         * tests/test-openat-safer.c (main): Likewise.
2989         * tests/test-openat.c (main): Likewise.
2990         * tests/test-quotearg.c (main): Likewise.
2991         * tests/test-rawmemchr.c (main): Likewise.
2992         * tests/test-readlink.c (main): Likewise.
2993         * tests/test-remove.c (main): Likewise.
2994         * tests/test-rename.c (main): Likewise.
2995         * tests/test-renameat.c (main): Likewise.
2996         * tests/test-rmdir.c (main): Likewise.
2997         * tests/test-sha1.c (main): Likewise.
2998         * tests/test-signal.c (main): Likewise.
2999         * tests/test-sigaction.c (main): Likewise.
3000         * tests/test-stat.c (main): Likewise.
3001         * tests/test-stat-time.c (main): Likewise.
3002         * tests/test-stddef.c (main): Likewise.
3003         * tests/test-stdint.c (main): Likewise.
3004         * tests/test-stdio.c (main): Likewise.
3005         * tests/test-stdlib.c (main): Likewise.
3006         * tests/test-strchrnul.c (main): Likewise.
3007         * tests/test-strerror.c (main): Likewise.
3008         * tests/test-string.c (main): Likewise.
3009         * tests/test-strtod.c (main): Likewise.
3010         * tests/test-strverscmp.c (main): Likewise.
3011         * tests/test-symlink.c (main): Likewise.
3012         * tests/test-symlinkat.c (main): Likewise.
3013         * tests/test-sys_stat.c (main): Likewise.
3014         * tests/test-sys_time.c (main): Likewise.
3015         * tests/test-time.c (main): Likewise.
3016         * tests/test-unistd.c (main): Likewise.
3017         * tests/test-unlink.c (main): Likewise.
3018         * tests/test-unlinkat.c (main): Likewise.
3019         * tests/test-utimens.c (main): Likewise.
3020         * tests/test-utimensat.c (main): Likewise.
3021         * tests/test-version-etc.c (main): Likewise.
3022         * tests/test-wchar.c (main): Likewise.
3023         * tests/test-wctype.c (main): Likewise.
3024         * tests/test-xprintf-posix.c (main): Likewise.
3025         * tests/test-posixtm.c (main): Likewise.
3026         (STREQ): Delete unused macro.
3027         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
3028         shadowed variables.
3029         * tests/test-memchr.c (main): Likewise.
3030
3031 2009-10-21  Eric Blake  <ebb9@byu.net>
3032
3033         areadlinkat: avoid failure on older glibc
3034         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
3035         rather than mis-comparing 0 against FUNC_RESULT of char*.
3036
3037 2009-10-21  Bruno Haible  <bruno@clisp.org>
3038
3039         * modules/stpncpy (License): Relicense under LGPLv2+.
3040         Reported by David Lutterkort <lutter@redhat.com>.
3041
3042 2009-10-20  Eric Blake  <ebb9@byu.net>
3043
3044         utimensat: work around Solaris 9 bug
3045         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
3046         has trailing slash bugs.
3047         * tests/test-lutimens.h (test_lutimens): Enhance test.
3048         * tests/test-utimens.h (test_utimens): Likewise.
3049         * doc/posix-functions/utime.texi (utime): Enhance documentation.
3050         * doc/posix-functions/utimes.texi (utimes): Likewise.
3051         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
3052         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
3053         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
3054         * doc/posix-functions/futimens.texi (futimens): Likewise.
3055
3056         fdutimensat: new module
3057         * modules/fdutimensat: New file.
3058         * lib/fdutimensat.c (fdutimensat): Likewise.
3059         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
3060         * MODULES.html.sh (File system functions): Mention module.
3061         * modules/fdutimensat-tests: New test.
3062         * tests/test-fdutimensat.c: Likewise.
3063
3064         doc: regenerate INSTALL
3065         * doc/INSTALL: Reflect recent autoconf update.
3066         * doc/INSTALL.ISO: Likewise.
3067         * doc/INSTALL.UTF-8: Likewise.
3068
3069 2009-10-20  Pádraig Brady  <P@draigBrady.com>
3070
3071         acl: warn if ACL support is not detected
3072         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
3073
3074 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
3075
3076         * lib/nproc.h: Add extern "C" block for C++.
3077
3078 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
3079             Bruno Haible  <bruno@clisp.org>
3080
3081         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
3082         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
3083         * doc/posix-functions/isalpha.texi: Likewise.
3084         * doc/posix-functions/isblank.texi: Likewise.
3085         * doc/posix-functions/iscntrl.texi: Likewise.
3086         * doc/posix-functions/isdigit.texi: Likewise.
3087         * doc/posix-functions/isgraph.texi: Likewise.
3088         * doc/posix-functions/islower.texi: Likewise.
3089         * doc/posix-functions/isprint.texi: Likewise.
3090         * doc/posix-functions/ispunct.texi: Likewise.
3091         * doc/posix-functions/isspace.texi: Likewise.
3092         * doc/posix-functions/isupper.texi: Likewise.
3093         * doc/posix-functions/isxdigit.texi: Likewise.
3094
3095 2009-10-18  Bruno Haible  <bruno@clisp.org>
3096
3097         Tests for module 'isblank'.
3098         * modules/isblank-tests: New file.
3099         * tests/test-isblank.c: New file.
3100
3101         New module 'isblank'.
3102         * lib/isblank.c: New file.
3103         * m4/isblank.m4: New file.
3104         * modules/isblank: New file.
3105         * doc/posix-functions/isblank.texi: Mention the new module.
3106
3107 2009-10-18  Bruno Haible  <bruno@clisp.org>
3108
3109         New module 'ctype'.
3110         * lib/ctype.in.h: New file.
3111         * m4/ctype.m4: New file.
3112         * modules/ctype: New file.
3113         * doc/posix-headers/ctype.texi: Mention the new module.
3114
3115 2009-10-18  Jim Meyering  <meyering@redhat.com>
3116
3117         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
3118         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
3119         right after its initialization, rather than farther down.
3120         Keeping these in close proximity makes it easier to ensure
3121         that each such variable is initialized.  E.g.,
3122
3123             LIB_CLOCK_GETTIME=
3124             AC_SUBST([LIB_CLOCK_GETTIME])
3125
3126         This change also increments these serial numbers.
3127         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
3128         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
3129         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
3130
3131 2009-10-18  Bruno Haible  <bruno@clisp.org>
3132
3133         Don't let environment variables perturb build.
3134         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
3135         (gl_PREREQ_GETHRXTIME): ... not here.
3136
3137 2009-10-18  Bruno Haible  <bruno@clisp.org>
3138
3139         Avoid symlink attack in localcharset module.
3140         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
3141         (O_NOFOLLOW): Define fallback.
3142         (get_charset_aliases): Don't open the file if it is a symbolic link.
3143         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
3144         gl_FCNTL_H.
3145         (gl_FCNTL_H): Require it.
3146         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
3147         * modules/localcharset (Files): Add m4/fcntl_h.m4.
3148         Reported by Fergal Glynn <fglynn@veracode.com>.
3149
3150 2009-10-18  Bruno Haible  <bruno@clisp.org>
3151
3152         Implement nproc for mingw.
3153         * lib/nproc.c: Include <windows.h>
3154         (num_processors): On native Windows platforms, try GetSystemInfo.
3155
3156 2009-10-18  Bruno Haible  <bruno@clisp.org>
3157
3158         Implement nproc for IRIX.
3159         * lib/nproc.c: Include <sys/sysmp.h>.
3160         (num_processors): On IRIX systems, try sysmp.
3161         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
3162
3163 2009-10-18  Bruno Haible  <bruno@clisp.org>
3164
3165         Implement nproc for HP-UX.
3166         * lib/nproc.c: Include <sys/pstat.h>
3167         (num_processors): On HP-UX systems, try pstat_getdynamic.
3168         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
3169         pstat_getdynamic.
3170
3171 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
3172             Bruno Haible  <bruno@clisp.org>
3173
3174         Implement nproc for NetBSD, OpenBSD.
3175         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
3176         (ARRAY_SIZE): New macro.
3177         (num_processors): On BSD systems, try sysctl of HW_NCPU.
3178         * m4/nproc.m4: New file.
3179         * modules/nproc (Files): Add m4/nproc.m4.
3180         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
3181         (Makefile.am): Instead, augment lib_SOURCES.
3182
3183 2009-10-18  Bruno Haible  <bruno@clisp.org>
3184
3185         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
3186         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
3187         sys/param.h.
3188
3189 2009-10-16  Eric Blake  <ebb9@byu.net>
3190
3191         utimensat: new module
3192         * modules/utimensat: New file.
3193         * lib/utimensat.c (utimensat): Likewise.
3194         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3195         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
3196         so we can work around Linux bugs.
3197         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
3198         * modules/sys_stat (Makefile.am): Substitute them.
3199         * lib/sys_stat.in.h (utimensat): Declare it.
3200         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
3201         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
3202         * modules/utimensat-tests: New test.
3203         * tests/test-utimensat.c: Likewise.
3204
3205         utimens: let lutimens work on non-symlinks
3206         * lib/utimens.c (lutimens): Fall back to utimens rather than
3207         failing with ENOSYS, when file is not a symlink.
3208         (utimens): Reduce redirection.
3209         * tests/test-lutimens.h (test_lutimens): Update test to cover
3210         non-symlinks.
3211         * tests/test-utimens.h (test_utimens): Update test to cover
3212         symlinks.
3213         * tests/test-utimens.c (main): Update caller.
3214
3215         utimens: cache whether utimensat syscall works
3216         * lib/utimens.c (utimensat_works_really): New cache variable.
3217         (fdutimens, lutimens): Use it to avoid failing syscall.
3218
3219         test-stat-time, test-utimens: improve portability
3220         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
3221         ext4 on alpha, and for cygwin.
3222         * tests/test-utimens-common.h: New file.
3223         (nap): Factor delays into single function.
3224         * tests/test-lutimens.h (test_lutimens): Use new header.
3225         * tests/test-futimens.h (test_futimens): Likewise.
3226         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
3227         timestamps to occur from same machine, as was done previously for
3228         test_utimens.
3229         * modules/utimens-tests (Files): Ship new file.
3230         * modules/futimens-tests (Files): Likewise.
3231         Reported in part by Jim Meyering.
3232
3233         sys_stat: sort replacement declarations
3234         * lib/sys_stat.in.h: Sort declarations.
3235         * lib/futimens.c (futimens): Fix typo.
3236
3237 2009-10-15  Jim Meyering  <meyering@redhat.com>
3238
3239         don't let environment settings perturb build
3240         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
3241         could cause a configure-time and/or build-time malfunction.
3242         Typically, a configure-time function-in-library test is performed
3243         via code like this:
3244
3245           LIB_VAR=
3246           AC_SUBST([LIB_VAR])
3247           prefix_saved_LIBS=$LIBS
3248             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
3249                        [test "$ac_cv_search_FUNC" = "none required" ||
3250                         LIB_VAR=$ac_cv_search_FUNC])
3251           LIBS=$prefix_saved_LIBS
3252
3253         However, in each of the files affected by this change, the LIB_VAR=
3254         initialization was omitted.  Thus, when set in the environment, its
3255         value would propagate into generated Makefiles when FUNC is not found
3256         in LIB_NAME.
3257         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
3258         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
3259         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
3260
3261 2009-10-14  Eric Blake  <ebb9@byu.net>
3262
3263         fchdir: avoid infinite recursion in mingw
3264         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
3265         recursing.
3266
3267         test-stat-time: port to mingw
3268         * tests/test-stat-time.c (force_unlink): Return a value.
3269         (test_ctime) [W32]: Fix compilation error.
3270         (nap): Don't call usleep with too large an argument.  Use
3271         force_unlink.
3272         * doc/pastposix-functions/usleep.texi (usleep): Document the
3273         portability issue.
3274
3275 2009-10-13  Jim Meyering  <meyering@redhat.com>
3276
3277         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
3278         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
3279         * modules/pipe-filter-ii: Likewise.
3280         * modules/sys_socket-tests: Likewise.
3281         * modules/tsearch-tests: Likewise.
3282         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
3283         (check): Depend on it.
3284
3285 2009-10-12  Eric Blake  <ebb9@byu.net>
3286
3287         utimens-tests: port to NFS file systems
3288         * tests/test-utimens.h (test_utimens): Refactor utimecmp
3289         comparisons to avoid spurious failures from timestamp drift
3290         between NFS machines.
3291
3292 2009-10-12  Eric Blake  <ebb9@byu.net>
3293
3294         stat-time-tests: minor cleanups
3295         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
3296         * tests/test-stat-time.c (nap): Separate assignment from call.
3297         Suggested by Paolo Bonzini and Bruno Haible.
3298
3299         sys_stat: guarantee struct timespec
3300         * lib/sys_stat.in.h (includes): Always include <time.h>
3301         * modules/sys_stat (Depends-on): Add time.
3302         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
3303         mode_t permission values.
3304         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
3305         get at subsecond timestamps.
3306
3307 2009-10-10  Eric Blake  <ebb9@byu.net>
3308
3309         futimens: new module
3310         * modules/futimens: New file.
3311         * lib/futimens.c (futimens): Likewise.
3312         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
3313         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
3314         we can work around Linux bugs.
3315         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
3316         * modules/sys_stat (Makefile.am): Substitute them.
3317         * lib/sys_stat.in.h (futimens): Declare it.
3318         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
3319         * doc/posix-functions/futimens.texi (futimens): Likewise.
3320         * modules/futimens-tests: New test.
3321         * tests/test-futimens.c: Likewise.
3322
3323         utimens: introduce fdutimens
3324         * lib/utimens.h (fdutimens): New prototype.
3325         * lib/utimens.c (gl_futimens): Move guts...
3326         (fdutimens): ...to new interface.
3327         * tests/test-utimens.c (do_fdutimens): Use it.
3328
3329         utimens: add UTIME_NOW and UTIME_OMIT support
3330         * lib/utimens.c (validate_timespec, update_timespec): New helper
3331         functions.
3332         (gl_futimens, lutimens): Use them.
3333         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
3334         stdbool, sys_stat.
3335         (Link): Mention resulting library dependency.
3336         * modules/utimecmp (Link): Likewise.
3337         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
3338         (Makefile.am): Pick up library dependency.
3339         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
3340         definition.
3341         * tests/test-sys_stat.c: Test the definitions.
3342         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
3343         * NEWS: Document library dependency.
3344
3345         utimecmp: support symlink timestamps
3346         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
3347         hashing when possible.  Use pathconf when available.
3348         (SYSCALL_RESOLUTION): Recognize tighter resolution.
3349         * modules/utimecmp (Depends-on): Add lstat.
3350
3351         utimens: add lutimens interface
3352         * lib/utimens.c (lutimens): New function.
3353         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
3354         * lib/utimens.h (lutimens): Declare new interface.
3355         * tests/test-utimens.c (main): Enhance test.
3356         * tests/test-lutimens.h (test_lutimens): New file.
3357         * modules/utimens-tests (Files): Distribute it.
3358         (Depends-on): Add symlink.
3359         (configure.ac): Check for usleep.
3360
3361         utimens: validate futimens usage
3362         * lib/utimens.c (gl_futimens): Require valid fd up front, using
3363         fewer syscalls on failure later on.  Avoid compiler warning on
3364         mingw.
3365         * modules/utimens (Depends-on): Add dup2.
3366
3367         utimens: add test
3368         * modules/utimens-tests: New test.
3369         * tests/test-utimens.h: New file.
3370         * tests/test-futimens.h: Likewise.
3371         * tests/test-utimens.c: Likewise.
3372
3373         doc: mention timestamp portability issues
3374         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
3375         instead.
3376         * doc/posix-functions/utime.texi (utime): Likewise.
3377         * doc/posix-functions/utimes.texi (utimes): Likewise.
3378         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
3379         instead.
3380         * doc/posix-functions/futimens.texi (futimens): Mention utimens
3381         module.
3382         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
3383         Mention weakness with symlink timestamps.
3384         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
3385         to utimensat/futimens instead.
3386         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
3387
3388         test-dup2: enhance test
3389         * tests/test-dup2.c (main): Also check AT_FDCWD.
3390
3391         test-stat-time: avoid more spurious failures
3392         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
3393         xfs; and avoid race if the two timestamps cross quantization edge.
3394
3395         relocatable: prefer 'file system' over 'filesystem'
3396         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
3397         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
3398         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
3399         * doc/relocatable.texi (Enabling Relocatability): Likewise.
3400         * lib/relocatable.c (compute_curr_prefix): Likewise.
3401
3402 2009-10-10  Jim Meyering  <meyering@redhat.com>
3403
3404         stat-time-tests: check for the usleep function
3405         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
3406
3407 2009-10-10  Bruno Haible  <bruno@clisp.org>
3408
3409         * modules/xnanosleep: Put the Link section after the Include section.
3410
3411 2009-10-09  Eric Blake  <ebb9@byu.net>
3412
3413         dup2: work around FreeBSD 6.1 bug
3414         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
3415         * doc/posix-functions/dup2.texi (dup2): Document it.
3416         Reported by Nelson H. F. Beebe and Jim Meyering.
3417
3418         test-stat-time: port to buggy NFS clients
3419         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
3420         (test_ctime): Also skip test if mtime and ctime are skewed.
3421
3422         maint: prefer 'file system' over 'filesystem'
3423         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
3424         * doc/posix-functions/lstat.texi (lstat): Likewise.
3425         * lib/file-has-acl.c (file_has_acl): Likewise.
3426         * lib/fwriteerror.c [TEST]: Likewise.
3427         * tests/test-areadlink.h (test_areadlink): Likewise.
3428         * tests/test-areadlinkat-with-size.c (main): Likewise.
3429         * tests/test-areadlinkat.c (main): Likewise.
3430         * tests/test-canonicalize-lgpl.c (main): Likewise.
3431         * tests/test-canonicalize.c (main): Likewise.
3432         * tests/test-fstatat.c (main): Likewise.
3433         * tests/test-linkat.c (main): Likewise.
3434         * tests/test-lstat.h (test_lstat_func): Likewise.
3435         * tests/test-mkdir.h (test_mkdir): Likewise.
3436         * tests/test-readlink.h (test_readlink): Likewise.
3437         * tests/test-remove.c (main): Likewise.
3438         * tests/test-rename.h (test_rename): Likewise.
3439         * tests/test-renameat.c (main): Likewise.
3440         * tests/test-rmdir.h (test_rmdir_func): Likewise.
3441         * tests/test-symlink.h (test_symlink): Likewise.
3442         * tests/test-symlinkat.c (main): Likewise.
3443         * tests/test-unlink.h (test_unlink_func): Likewise.
3444         * tests/test-unlinkat.c (main): Likewise.
3445
3446         maint: make realtime library usage explicit
3447         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
3448         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
3449         * modules/settime (Link): Likewise.
3450         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
3451
3452         test-stat-time: speed up execution
3453         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
3454         warning on mingw.
3455         (nap): New helper function.
3456         (prepare_test): Use it to reduce sleep time.
3457         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
3458         execution.
3459         * modules/stat-time-tests (configure.ac): Check for usleep.
3460
3461 2009-10-09  Jim Meyering  <meyering@redhat.com>
3462
3463         selinux-h: always use getfilecon wrappers
3464         * lib/getfilecon.c: New file.
3465         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
3466         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
3467         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
3468         (fgetfilecon): Provide a stub.
3469         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
3470         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
3471         file unconditionally.
3472         When <selinux/selinux.h> is found, arrange to use wrappers.
3473         * modules/selinux-h (Files): Add getfilecon.c.
3474         (Makefile.am): Substitute include-next-related bits
3475         into the now-always-generated selinux/selinux.h file.
3476         * doc/glibc-functions/lgetfilecon.texi: New file.
3477         * doc/glibc-functions/fgetfilecon.texi: New file.
3478         * doc/glibc-functions/getfilecon.texi: New file.
3479         * doc/glibc-functions/getfilecon-desc.texi: New file.
3480         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
3481         which to pull in the new files.
3482         * MODULES.html.sh (Misc): Add selinux-h.
3483
3484 2009-10-08  Jim Meyering  <meyering@redhat.com>
3485
3486         unistd: fix comment typo
3487         * lib/unistd.in.h (euidaccess): Fix a comment typo.
3488
3489 2009-10-08  Eric Blake  <ebb9@byu.net>
3490
3491         areadlink: use SIZE_MAX consistently
3492         * modules/areadlink (Depends-on): Add stdint.
3493         * modules/areadlink-with-size (Depends-on): Likewise.
3494         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
3495         gives NULL; drop sys/types, since unistd gives size_t; and add
3496         stdint for SIZE_MAX.
3497         (SIZE_MAX): Rely on headers.
3498         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
3499         and add stdint.
3500         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
3501         (SIZE_MAX): Likewise.
3502         (INITIAL_BUF_SIZE): Turn into enum.
3503         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
3504
3505 2009-10-08  Jim Meyering  <meyering@redhat.com>
3506
3507         areadlinkat: avoid compilation failure
3508         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
3509         Fix typo in comment.
3510
3511 2009-10-07  Eric Blake  <ebb9@byu.net>
3512
3513         areadlinkat-with-size: new module
3514         * modules/areadlinkat-with-size: New module.
3515         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
3516         * lib/areadlink.h (areadlinkat): Declare it.
3517         * MODULES.html.sh (File system functions): Mention it.
3518         * modules/areadlinkat-with-size-tests: New test.
3519         * tests/test-areadlinkat-with-size.c: New file.
3520
3521         xreadlinkat: new module
3522         * modules/xreadlinkat: New module.
3523         * lib/xreadlinkat.c (xreadlinkat): New file.
3524         * lib/xreadlink.h (xreadlinkat): Declare it.
3525         * MODULES.html.sh (File system functions): Mention it.
3526
3527         areadlinkat: new module
3528         * lib/at-func.c (FUNC_FAIL): New define.
3529         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
3530         * modules/areadlinkat: New module.
3531         * lib/linkat.c (areadlinkat): Move...
3532         * lib/areadlinkat.c (areadlinkat): ...to new file.
3533         * lib/areadlink.h (areadlinkat): Declare it.
3534         * modules/linkat (Depends-on): Add areadlinkat.
3535         * MODULES.html.sh (File system functions): Mention it.
3536         * modules/areadlinkat-tests: New test.
3537         * tests/test-areadlinkat.c: New file.
3538
3539         areadlink, areadlink-with-size: add tests
3540         * modules/areadlink-tests: New test.
3541         * modules/areadlink-with-size-tests: Likewise.
3542         * tests/test-areadlink.h: New file.
3543         * tests/test-areadlink.c: Likewise.
3544         * tests/test-areadlink-with-size.c: Likewise.
3545
3546         maint: minor cleanups
3547         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
3548         _UNUSED_PARAMETER_ instead.
3549         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
3550         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
3551         * modules/linkat-tests (Files): Distribute test-link.h.
3552
3553         openat, utimens: whitespace cleanup
3554         * lib/openat.c: Prefer space throughout, rather than mix of 8
3555         spaces vs. tabs.
3556         * lib/at-func.c: Likewise.
3557         * lib/utimens.c: Likewise.
3558
3559         openat: avoid using wrong fd
3560         * lib/openat.c (openat_permissive): Reject user's fd if saving the
3561         working directory chooses same fd.
3562         * lib/at-func.c (AT_FUNC_NAME): Likewise.
3563
3564         mkdir, mkdirat: fix cygwin 1.5.x bug
3565         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
3566         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
3567         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
3568         bug.
3569         (gl_PREREQ_MKDIR): Delete unused macro.
3570         * modules/mkdir (Files): Track file rename.
3571         (configure.ac): Update macro name.
3572         * modules/openat (Depends-on): Add mkdir.
3573         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
3574
3575         mkdir, mkdirat: add tests
3576         * modules/mkdir-tests: New test.
3577         * tests/test-mkdir.h: New file.
3578         * tests/test-mkdir.c: Likewise.
3579         * tests/test-mkdirat.c: Likewise.
3580         * modules/openat-tests (Files): Add new files.
3581         (Makefile.am): Run new test.
3582
3583 2009-10-06  Eric Blake  <ebb9@byu.net>
3584
3585         doc: tweak *at function documentation
3586         * doc/posix-functions/faccessat.texi (faccessat): Mention
3587         known issue with replacement.
3588         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
3589         * doc/posix-functions/linkat.texi (linkat): Likewise.
3590         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
3591         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
3592         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
3593         * doc/posix-functions/renameat.texi (renameat): Likewise.
3594         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
3595
3596         openat: fix GNU/Hurd bug in unlinkat
3597         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
3598         broken.
3599         * doc/posix-functions/unlink.texi (unlink): Document this.
3600         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
3601
3602         fdopendir: fix GNU/Hurd bug
3603         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
3604         allowing non-directory fds.
3605         * lib/fdopendir.c (rpl_fdopendir): Work around it.
3606         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
3607         * modules/dirent (Makefile.am): Substitute it.
3608         * lib/dirent.in.h (fdopendir): Declare replacement.
3609         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
3610         * tests/test-fdopendir.c (main): Test something other than
3611         /dev/null, since on Hurd that behaves like a directory.
3612
3613         test-symlink: port to GNU/Hurd
3614         * tests/test-symlink.h (test_symlink): Relax expected errno.
3615
3616         doc: tweak more cygwin information
3617         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
3618         now compatible with glibc.
3619         * doc/posix-functions/getopt.texi (getopt): Likewise.
3620
3621         getopt-gnu: add another test
3622         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
3623         guarantee behavior relied on by m4.
3624         * tests/test-getopt.c (main): Use it.
3625         * modules/getopt-posix-tests (Depends-on): Add setenv.
3626         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
3627
3628         getopt: fix compilation on darwin
3629         * lib/getopt.in.h (includes): Leave breadcrumbs during system
3630         include.
3631         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
3632         Reported by Ludovic Courtès.
3633
3634 2009-10-06  Bruno Haible  <bruno@clisp.org>
3635
3636         * modules/size_max (Description): Discourage its use.
3637         Reported by Simon Josefsson.
3638
3639 2009-10-06  Jim Meyering  <meyering@redhat.com>
3640
3641         linkat: avoid compilation failure
3642         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
3643
3644 2009-10-05  Eric Blake  <ebb9@byu.net>
3645
3646         linkat: support Linux 2.6.17
3647         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
3648         linkat on Linux, but allow cache variable override.
3649         * lib/linkat.c (rpl_linkat): Define override.
3650         * modules/linkat (Depends-on): Add symlinkat.
3651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
3652         * modules/unistd (Makefile.am): Substitute it.
3653         * lib/unistd.in.h (linkat): Declare replacement.
3654         Reported by Pádraig Brady.
3655
3656         quotearg: port test to systems with C.UTF-8 locale
3657         * tests/test-quotearg.c (struct result_strings): Add another
3658         member, differentiating between C.ASCII and C.UTF-8 handling.
3659         (compare_strings): Add parameter.
3660         (main): Adjust all callers.
3661
3662         getopt: avoid clash with FreeBSD _getopt_internal
3663         * lib/getopt.in.h (_getopt_internal): Override the name.
3664         * lib/getopt_int.h (includes): Pick up any overrides.
3665         Reported by Reuben Thomas.
3666
3667         hash: allow C89 compilation
3668         * lib/hash.c (check_tuning): Move declaration before statement.
3669         Reported by Reuben Thomas.
3670
3671 2009-10-05  Karl Berry  <karl@gnu.org>
3672
3673         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
3674
3675 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
3676             Bruno Haible  <bruno@clisp.org>
3677
3678         * lib/uname.c (uname): Use a table-driven algorithm to compute
3679         Windows NT versions.
3680
3681 2009-10-04  Bruno Haible  <bruno@clisp.org>
3682
3683         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
3684         program_invocation_short_name.
3685         * modules/progname (configure.ac): Test for presence of
3686         program_invocation_short_name.
3687         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
3688
3689 2009-10-04  Bruno Haible  <bruno@clisp.org>
3690
3691         * lib/progname.c (set_program_name): Fix comment.
3692         Reported by Jim Meyering.
3693
3694 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
3695             Bruno Haible  <bruno@clisp.org>
3696
3697         * lib/uname.c: Include <string.h>.
3698         (uname): Do only one call to GetVersionEx in the common case.
3699
3700 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
3701             Bruno Haible  <bruno@clisp.org>
3702
3703         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
3704         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
3705         (uname): Add support for Windows CE and various non-x86 CPU types.
3706
3707 2009-10-03  Bruno Haible  <bruno@clisp.org>
3708
3709         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
3710         invocation to tests/configure.ac.
3711         Reported by Ian Beckwith <ianb@erislabs.net>.
3712
3713 2009-10-02  Eric Blake  <ebb9@byu.net>
3714
3715         fchdir: avoid compiler warning
3716         * lib/fchdir.c (canonicalize_file_name)
3717         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
3718
3719         test-open: support mingw errno values
3720         * tests/test-open.h (test_open): Relax test.
3721         * tests/test-fopen.h (test_fopen): Likewise.
3722         * tests/test-openat-safer.c (main): Likewise.
3723
3724         open: fix opening directory on mingw
3725         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
3726
3727         test-open: on GNU/Hurd, /dev/null is a directory
3728         * tests/test-fopen.h (main): Rename...
3729         (test_fopen): ...to this.  Use a guaranteed non-directory when
3730         confirming open behavior on trailing slash.
3731         * tests/test-openat-safer.c (main): Likewise.
3732         * tests/test-open.h (main): Likewise....
3733         (test_open): ...to this.
3734         * tests/test-fopen.c (main): Adjust caller.
3735         * tests/test-fopen-safer.c (main): Likewise.
3736         * tests/test-open.c (main): Likewise.
3737         * tests/test-fcntl-safer.c (main): Likewise.
3738         Reported by Samuel Thibault.
3739
3740         rename, fchdir: don't ignore chdir failure
3741         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
3742         * lib/rename.c (rpl_rename) [W32]: Likewise.
3743         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
3744         an empty destination directory if source cannot be renamed,
3745         although there is still possibility for failure.
3746         * doc/posix-functions/rename.texi (rename): Document the race.
3747         Reported by Jim Meyering.
3748
3749         maint: cleanup whitespace in recent commits
3750         * lib/rename.c (rpl_rename): Remove tabs.
3751         * tests/test-link.h (test_link): Likewise.
3752         * lib/fchdir.c (get_name): Likewise.
3753         Reported by Jim Meyering.
3754
3755 2009-10-02  Ben Pfaff  <blp@gnu.org>
3756
3757         relocatable-prog-wrapper: Add missing dependency on
3758         double-slash-root.
3759         * modules/relocatable-prog-wrapper: Add dependency.
3760         Reported by Ian Beckwith <ianb@erislabs.net>.
3761
3762 2009-10-02  Eric Blake  <ebb9@byu.net>
3763
3764         renameat: fix Solaris bugs
3765         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
3766         needed fixing.
3767         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
3768         * modules/stdio (Makefile.am): Substitute it.
3769         * lib/stdio.in.h (renameat): Declare replacement.
3770         * lib/renameat.c (rpl_renameat): Implement fix.
3771
3772         renameat: new module
3773         * modules/renameat: New file.
3774         * lib/renameat.c (renameat): Likewise.
3775         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
3776         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
3777         * modules/stdio (Makefile.am): Substitute them.
3778         * lib/stdio.in.h (renameat): Declare it.
3779         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
3780         * doc/posix-functions/renameat.texi (renameat): Likewise.
3781         * modules/renameat-tests: New test.
3782         * tests/test-renameat.c: Likewise.
3783
3784         rename: fix mingw bugs
3785         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
3786         directory overwrite bugs.
3787
3788         rename: fix another cygwin 1.5 bug
3789         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
3790         checks.
3791         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
3792         unnecessary cygwin workarounds.  Also work around bug with moving
3793         full directory onto an empty one.
3794         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
3795
3796         rename-dest-slash: merge into rename module
3797         * modules/rename-dest-slash (Status): Mark obsolete.
3798         (Depends-on): Add rename.
3799         (Files): Let rename do it all.
3800         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
3801         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
3802         * m4/rename-dest-slash.m4: ...so this file can be deleted.
3803         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
3804         * lib/rename.c (rpl_rename): Update comments.
3805
3806         rename: fix cygwin 1.5.x bugs
3807         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
3808         * lib/rename.c (rpl_rename): Work around them.
3809         * modules/rename (Depends-on): Add same-inode.
3810
3811         rename: fix Solaris 10 bug
3812         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
3813         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
3814         was the only bug.
3815
3816         rename: fix Solaris 9 bug
3817         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
3818         on non-directory.  Avoid calling exit.
3819         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
3820         strdup.
3821         * modules/rename-tests (Depends-on): Drop lstat.
3822         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
3823         (gl_PREREQ_RENAME): Delete unused macro.
3824
3825         rename-dest-slash: fix NetBSD bug
3826         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
3827         links.
3828         * modules/rename-dest-slash (Depends-on): Add same-inode.
3829
3830         rename-tests: new test, exposes several platform bugs
3831         * modules/rename-tests: New file.
3832         * tests/test-rename.h: Likewise.
3833         * tests/test-rename.c: Likewise.
3834         * doc/posix-functions/rename.texi (rename): Improve documentation,
3835         including bugs that will eventually be fixed in gnulib.
3836
3837 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
3838
3839         * lib/uname.c: Include <stdlib.h>
3840         (uname): Assume version info is available.
3841
3842 2009-10-02  Jim Meyering  <meyering@redhat.com>
3843
3844         gnu-web-doc-update: correct --help output
3845         * build-aux/gnu-web-doc-update: Make --help output relevant.
3846
3847         gnu-web-doc-update: add standard options
3848         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
3849
3850         gnu-web-doc-update: New module.
3851         Use this script to automatically update the on-line web documentation
3852         for your GNU project at http://www.gnu.org/software/$pkg/manual/
3853         * modules/gnu-web-doc-update: New file, from coreutils.
3854         * build-aux/gnu-web-doc-update: New script.
3855
3856 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
3857
3858         link: LoadLibrary is not needed.
3859         * lib/link.c: Use GetModuleHandle.
3860
3861 2009-10-01  Eric Blake  <ebb9@byu.net>
3862
3863         getopt: bump serial number
3864         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
3865         change.
3866
3867         tests: tighten link, rmdir, and remove tests
3868         * tests/test-link.h (includes): No need to use <config.h> here.
3869         Clean up if directory hard link was created, otherwise test for
3870         trailing '.'.
3871         * tests/test-linkat.c (main): Simplify.
3872         * tests/test-remove.c (main): Enhance test for trailing '.'.
3873         * tests/test-rmdir.h (test_rmdir_func): Likewise.
3874
3875 2009-10-01  Jim Meyering  <meyering@redhat.com>
3876
3877         maint.mk: requiring "make major" was annoying, for a "minor" release.
3878         What is intended is "stable", to contrast with alpha and beta,
3879         so require "make stable", not "make major".
3880         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
3881         (get_tool_versions): Likewise.
3882         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
3883
3884 2009-09-30  Ben Pfaff  <blp@gnu.org>
3885
3886         Fix broken build of replacement for Windows tmpfile().
3887         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
3888         flags argument added along with the 'mkostemp' module.
3889
3890 2009-09-28  Bruno Haible  <bruno@clisp.org>
3891
3892         Avoid identifier clash with POSIX function 'remove' defined as a macro.
3893         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
3894         to 'remove_elt'.
3895         (gl_list_remove): Update.
3896         * lib/gl_list.c (gl_list_remove): Update.
3897         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
3898         to 'remove_elt'.
3899         (gl_oset_remove): Update.
3900         * lib/gl_list.c (gl_oset_remove): Update.
3901         Reported by Eric Blake.
3902
3903 2009-09-28  Eric Blake  <ebb9@byu.net>
3904
3905         doc: mention yet more cygwin 1.7 status
3906         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
3907         cygwin.
3908         * doc/glibc-functions/execvpe.texi (execvpe): New file.
3909         * doc/gnulib.texi (Glibc unistd.h): Mention it.
3910
3911         argp: fix test failure
3912         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
3913         that are not upper-case.  Pass correct range to tolower.
3914
3915 2009-09-27  Jim Meyering  <meyering@redhat.com>
3916
3917         test-yesno: work around sparc-dash here-document infelicity
3918         Without this change, the literal \177 byte in a here document
3919         would make dash 0.5.5.1-3 access uninitialized memory.
3920         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
3921         Instead, use a marker, "@", and filter through tr to create the desired
3922         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
3923
3924 2009-09-27  Bruno Haible  <bruno@clisp.org>
3925
3926         Disable untested support for new flavours of ACLs on AIX.
3927         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
3928         progress.
3929         * lib/set-mode-acl.c (qset_acl): Likewise.
3930
3931 2008-12-07  Bruno Haible  <bruno@clisp.org>
3932
3933         Add support for new flavours of ACLs on AIX. (Untested.)
3934         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
3935         (file_has_acl): Add support for newer AIX.
3936         * lib/set-mode-acl.c (qset_acl): Likewise.
3937         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
3938         Rainer Tammer <tammer@tammer.net>.
3939
3940 2009-09-26  Eric Blake  <ebb9@byu.net>
3941
3942         argp: fix compilation of getopt
3943         * lib/getopt.in.h (includes): Use different guard than glibc.
3944         Reported by Sergey Poznyakoff.
3945
3946         doc: mention more cygwin 1.7 status
3947         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
3948         bug.
3949         * doc/posix-functions/execl.texi (execl): Likewise.
3950         * doc/posix-functions/execle.texi (execle): Likewise.
3951         * doc/posix-functions/execlp.texi (execlp): Likewise.
3952         * doc/posix-functions/execv.texi (execv): Likewise.
3953         * doc/posix-functions/execve.texi (execve): Likewise.
3954         * doc/posix-functions/execvp.texi (execvp): Likewise.
3955         * doc/glibc-functions/canonicalize_file_name.texi
3956         (canonicalize_file_name): Cygwin 1.7 now provides this.
3957         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
3958         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
3959         on AT_SYMLINK_NOFOLLOW.
3960
3961 2009-09-24  Eric Blake  <ebb9@byu.net>
3962
3963         test-linkat: make test more robust
3964         * tests/test-linkat.c (main): Avoid collision with EEXIST.
3965
3966         getopt: fix inclusion guards for cygwin
3967         * modules/getopt-posix (Depends-on): Add include-next.
3968         (Makefile.am): Substitute more items in replacement header.
3969         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
3970         <getopt.h>.
3971         * lib/getopt.in.h (includes): Use split inclusion guard, and
3972         prefer <getopt.h> over include <unistd.h> when one is present.
3973         (option): Also override name of 'struct option'.
3974
3975         same-inode: revert prior change; it is not yet ready
3976         * NEWS: Undo mention of this change.
3977         * lib/same-inode.h (same-inode.h): Undo tri-state change.
3978         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
3979         * lib/cycle-check.c (cycle_check): Likewise.
3980         * lib/same.c (same_name): Likewise.
3981         * lib/at-func2.c (at_func2): Likewise.
3982
3983 2009-09-23  Eric Blake  <ebb9@byu.net>
3984
3985         linkat: new module
3986         * modules/linkat: New file.
3987         * lib/at-func2.c (at_func2): Likewise.
3988         * lib/linkat.c (linkat): Likewise.
3989         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3990         * lib/openat-priv.h (at_func2): Add declaration.
3991         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
3992         * modules/unistd (Makefile.am): Substitute them.
3993         * lib/unistd.in.h (linkat): Declare it.
3994         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
3995         * doc/posix-functions/linkat.texi (linkat): Likewise.
3996         * doc/posix-functions/link.texi (link): Tweak wording.
3997         * tests/test-link.c (main): Move guts...
3998         * tests/test-link.h (test_link): ...into new file.
3999         * modules/linkat-tests: New test.
4000         * tests/test-linkat.c: Likewise.
4001         * modules/link-tests (Files): Ship new file.
4002         (Depends-on): Add stdbool.
4003
4004         dirname: add library-safe mdir_name
4005         * lib/dirname.h (mdir_name): New prototype.
4006         * lib/dirname.c (dir_name): Move guts...
4007         (mdir_name): ...to new function that avoids xalloc_die.
4008
4009         fchdir: another mingw fix
4010         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
4011         * lib/fchdir.c (get_name): New helper method; skips canonicalize
4012         on mingw (where it has not yet been ported), and make it optional
4013         elsewhere.
4014         (_gl_register_fd): Use it.
4015
4016         same-inode: make SAME_INODE tri-state, to port to mingw
4017         * NEWS: Mention this change.
4018         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
4019         st_ino always being 0.
4020         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
4021         * lib/cycle-check.c (cycle_check): Likewise.
4022         * lib/same.c (same_name): Likewise.
4023
4024         lstat: avoid mingw compilation error
4025         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
4026         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
4027         lstat ourselves.
4028         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
4029         was adequate.
4030         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
4031         the checks for lstat.
4032         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
4033
4034         link: fix test failure on Solaris 9
4035         * lib/link.c (rpl_link): Don't assume link will catch bogus
4036         trailing slash on source.
4037
4038         test-symlinkat: enhance test
4039         * tests/test-readlink.c (main): Move guts...
4040         * tests/test-readlink.h (test_readlink): ...into new file.
4041         * tests/test-symlink.c (main): Move guts...
4042         * tests/test-symlink.h (test_symlink): ...into new file.
4043         * tests/test-symlinkat.c (main): Use new files for further
4044         coverage.
4045         (do_symlink, do_readlink): New helper functions.
4046         * modules/symlink-tests (Files): Ship new file.
4047         (Depends-on): Add stdbool.
4048         * modules/readlink-tests (Files): Ship new file.
4049         (Depends-on): Add stdbool.
4050         * modules/symlinkat-tests (Files): Use new files.
4051
4052 2009-09-23  Eric Blake  <ebb9@byu.net>
4053
4054         readlink: document portability issue with symlink length
4055         * doc/posix-functions/lstat.texi (lstat): Mention that some file
4056         systems have bogus st_size on symlinks, and mention the
4057         areadlink-with-size module.
4058         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
4059         * doc/posix-functions/readlink.texi (readlink): Mention the
4060         areadlink module, and ERANGE failure.
4061         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
4062         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
4063
4064         readlink: fix Solaris 9 bug with trailing slash
4065         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
4066         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
4067         * doc/posix-functions/readlink.texi (readlink): Document this.
4068         * modules/readlink-tests: New test.
4069         * tests/test-readlink.c: Likewise.
4070
4071         readlink: fix cygwin 1.5.x bug with return type
4072         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
4073         * lib/unistd.in.h (readlink): Use ssize_t.
4074         * lib/readlink.c (readlink): Likewise.
4075         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
4076         * modules/unistd (Makefile.am): Substitute it.
4077         * lib/unistd.in.h (readlink): Declare replacement.
4078         * doc/posix-functions/readlink.texi (readlink): Document this.
4079
4080         symlink: use throughout gnulib
4081         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
4082         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
4083         symlink is not used.
4084         * modules/symlinkat (Depends-on): Add symlink.
4085         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
4086         * modules/canonicalize-tests (Depends-on): Likewise.
4087         * modules/lstat-tests (Depends-on): Likewise.
4088         * modules/openat-tests (Depends-on): Likewise.
4089         * modules/remove-tests (Depends-on): Likewise.
4090         * modules/rmdir-tests (Depends-on): Likewise.
4091         * modules/unlink-tests (Depends-on): Likewise.
4092         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
4093         * tests/test-canonicalize.c (symlink): Likewise.
4094         * tests/test-fstatat.c (symlink): Likewise.
4095         * tests/test-lstat.c (symlink): Likewise.
4096         * tests/test-remove.c (symlink): Likewise.
4097         * tests/test-rmdir.c (symlink): Likewise.
4098         * tests/test-unlink.c (symlink): Likewise.
4099         * tests/test-unlinkat.c (symlink): Likewise.
4100
4101         symlink: new module, for Solaris 9 bug
4102         * modules/symlink: New file.
4103         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
4104         * lib/symlink.c: Likewise.
4105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
4106         * modules/unistd (Makefile.am): Substitute them.
4107         * lib/unistd.in.h (symlink): Declare replacement.
4108         * MODULES.html.sh (File system functions): Mention it.
4109         * doc/posix-functions/symlink.texi (symlink): Likewise.
4110         * modules/symlink-tests: New test.
4111         * tests/test-symlink.c: Likewise.
4112
4113 2009-09-23  Bruno Haible  <bruno@clisp.org>
4114
4115         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
4116         when needed.
4117         Test case: gnulib-tool --import --with-tests atexit inttypes.
4118         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
4119
4120 2009-09-23  Bruno Haible  <bruno@clisp.org>
4121
4122         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
4123         subcommand, not in a subshell.
4124
4125 2009-09-22  Eric Blake  <ebb9@byu.net>
4126
4127         unistd: sort replacement declarations
4128         * lib/unistd.in.h: Sort declarations.
4129
4130         open, openat: minor optimization
4131         * lib/open.c (open): If open succeeded, len is non-zero.
4132         * lib/openat.c (rpl_openat): Likewise.
4133
4134         link-follow: ensure correct result
4135         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
4136         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
4137         distinguish between possible failures.
4138
4139 2009-09-21  Eric Blake  <ebb9@byu.net>
4140
4141         fts: avoid compiler warning
4142         * lib/fts.c (dirent_inode_sort_may_be_useful)
4143         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
4144
4145 2009-09-19  Bruno Haible  <bruno@clisp.org>
4146
4147         * lib/progreloc.c (canonicalize_file_name): New declaration.
4148
4149 2009-09-19  Eric Blake  <ebb9@byu.net>
4150
4151         link: fix quoting
4152         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
4153
4154         openat: fix openat bugs on Solaris 9
4155         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
4156         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
4157         * modules/openat (Depends-on): Add open.
4158         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
4159         * modules/fcntl-h (Makefile.am): Substitute it.
4160         * lib/fcntl.in.h (openat): Declare replacement.
4161         * doc/posix-functions/openat.texi (openat): Document this.
4162
4163         openat: move fstatat and unlinkat into correct files
4164         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
4165         compiled.
4166         * lib/openat.c (fstatat, unlinkat): Move...
4167         * lib/fstatat.c (fstatat): ...into correct files.
4168         * lib/unlinkat.c (unlinkat): Likewise.
4169
4170         openat: fix unlinkat bugs on Solaris 9
4171         * lib/unlinkat.c (unlinkat): New file.
4172         * modules/openat (Depends-on): Add unlink.
4173         (Files): Distribute it.
4174         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
4175         trailing slash behavior is broken.
4176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
4177         * modules/unistd (Makefile.am): Substitute it.
4178         * lib/unistd.in.h (unlinkat): Declare replacement.
4179         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
4180
4181         openat: fix fstatat bugs on Solaris 9
4182         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
4183         stat.
4184         * doc/posix-functions/fstatat.texi (fstatat): Document this.
4185
4186         test-unlinkat: enhance test, to expose Solaris 9 bug
4187         * tests/test-unlink.c (main): Factor guts...
4188         * tests/test-unlink.h (test_rmdir_func): ...into new file.
4189         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
4190         * tests/test-rmdir.c (main): Adjust caller.
4191         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
4192         (unlinker): New helper function.
4193         (rmdirat): Enhance check.
4194         * modules/rmdir-tests (Depends-on): Add stdbool.
4195         * modules/unlink-tests (Depends-on): Likewise.
4196         (Files): Add test-unlink.h.
4197         * modules/openat-tests (Files): Likewise.
4198         (Depends-on): Add unlinkdir.
4199
4200         test-fstatat: new test, to expose Solaris 9 bugs
4201         * tests/test-stat.c (main): Factor guts...
4202         * tests/test-stat.h (test_stat_func): ...into new file.
4203         * tests/test-lstat.c (main): Factor guts...
4204         * tests/test-lstat.h (test_lstat_func): ...into new file.
4205         * tests/test-fstatat.c: New file.
4206         * modules/stat-tests (Files): Add test-stat.h.
4207         * modules/lstat-tests (Files): Add test-lstat.h.
4208         (Depends-on): Add stdbool.
4209         * modules/openat-tests (Depends-on): Add pathmax.
4210         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
4211         (Makefile.am): Run new test.
4212
4213         remove: new module, for mingw and Solaris 9 bugs
4214         * modules/remove: New file.
4215         * lib/remove.c: Likewise.
4216         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
4217         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
4218         * modules/stdio (Makefile.am): Use them.
4219         * lib/stdio.in.h (remove): Declare replacement.
4220         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
4221         * doc/posix-functions/remove.texi (remove): Likewise.
4222         * modules/remove-tests: New test.
4223         * tests/test-remove.c: Likewise.
4224
4225         unlink: new module, for Solaris 9 bug
4226         * modules/unlink: New file.
4227         * lib/unlink.c: Likewise.
4228         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
4230         * modules/unistd (Makefile.am): Use them.
4231         * lib/unistd.in.h (stat): Declare replacement.
4232         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
4233         * doc/posix-functions/unlink.texi (unlink): Likewise.
4234         * modules/unlink-tests: New test.
4235         * tests/test-unlink.c: Likewise.
4236
4237         lstat: fix Solaris 9 bug
4238         * lib/lstat.c (lstat): Also check for trailing slash on
4239         non-symlink, non-directories.  Use stat module to simplify logic.
4240         * doc/posix-functions/lstat.texi (lstat): Document it.
4241         * modules/lstat-tests (Depends-on): Add errno, same-inode.
4242         (configure.ac): Check for symlink.
4243         * tests/test-lstat.c (main): Add more tests.
4244
4245         stat: add as dependency to other modules
4246         * modules/chown (Depends-on): Add stat.
4247         * modules/euidaccess (Depends-on): Likewise.
4248         * modules/fchdir (Depends-on): Likewise.
4249         * modules/isdir (Depends-on): Likewise.
4250         * modules/link (Depends-on): Likewise.
4251         * modules/lstat (Depends-on): Likewise.
4252         * modules/mkdir-p (Depends-on): Likewise.
4253         * modules/modechange (Depends-on): Likewise.
4254         * modules/open (Depends-on): Likewise.
4255         * modules/readlink (Depends-on): Likewise.
4256         * modules/same (Depends-on): Likewise.
4257
4258         stat: fix Solaris 9 bug
4259         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
4260         slash.
4261         * lib/stat.c (rpl_stat): Work around it.
4262         * doc/posix-functions/stat.texi (stat): Update documentation.
4263
4264         stat: new module, for mingw bug
4265         * modules/stat: New file.
4266         * lib/stat.c: Likewise.
4267         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4268         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
4269         * modules/sys_stat (Makefile.am): Use them.
4270         * lib/sys_stat.in.h (stat): Declare replacement.
4271         * lib/openat.c (fstatat): Deal with lstat and stat being function
4272         macros.
4273         * modules/openat (Depends-on): Add inline.
4274         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
4275         * doc/posix-functions/stat.texi (stat): Likewise.
4276         * modules/stat-tests: New test.
4277         * tests/test-stat.c: Likewise.
4278
4279 2009-09-19  Jim Meyering  <meyering@redhat.com>
4280
4281         syntax-check: detect unnecessary inclusion of canonicalize.h
4282         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
4283
4284 2009-09-19  Eric Blake  <ebb9@byu.net>
4285
4286         canonicalize-lgpl: adjust clients to use correct header
4287         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
4288         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
4289         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
4290         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
4291         * lib/progreloc.c (includes): Likewise.
4292
4293 2009-09-19  Jim Meyering  <meyering@redhat.com>
4294
4295         test-posixtm.c: correct a comment
4296         * tests/test-posixtm.c: Correct first-line comment.
4297         Spotted by Eric Blake.
4298
4299 2009-09-16  Jim Meyering  <meyering@redhat.com>
4300
4301         posixtm-tests: make T const-correct; add a test case
4302         * tests/test-posixtm.c (T): Declare const.
4303         Add a test for -(2^31+1).
4304         Remove useless can-succeed-only-in-2002 test.
4305
4306         posixtm-tests: adjust the sole failing test
4307         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
4308         expected output matches what mktime now produces.  Cross-checked via
4309         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
4310
4311         posixtm: move #ifdef'd tests into a new module
4312         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
4313         * tests/test-posixtm.c: ... this new file.
4314         * modules/posixtm-tests: New module.
4315
4316 2009-09-19  Eric Blake  <ebb9@byu.net>
4317
4318         openat: simplify use of at-func.c
4319         * lib/at-func.c (includes): Include prerequisites here, to
4320         simplify requirements on client files.
4321         * lib/openat-priv.h: Add double-inclusion guard.
4322         * lib/faccessat.c (includes): Simplify.
4323         * lib/fchmodat.c (includes): Likewise.
4324         * lib/fchownat.c (includes): Likewise.
4325         * lib/mkdirat.c (includes): Likewise.
4326         * lib/mkfifoat.c (includes): Likewise.
4327         * lib/symlinkat.c (includes): Likewise.
4328
4329         openat: allow return of fd 0
4330         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
4331         * modules/save-cwd (Depends-on): Replace fcntl-safer with
4332         unistd-safer.
4333         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
4334         <fcntl.h>; this module does not leak fds.
4335         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
4336         must be allowed to return 0, leaving openat_safer to add the
4337         safety.
4338         (openat_permissive): Avoid writing to just-opened fd 2 if
4339         restoring the current directory fails.
4340         * lib/openat-die.c (openat_restore_fail): Add comment.
4341         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
4342         (save_cwd): Guarantee safe fd, but without use of open_safer.
4343         * tests/test-openat.c: New test.
4344         * modules/openat-tests (Files, Makefile.am): Distribute and build
4345         new file.
4346
4347         relocatable-prog-wrapper: fix build
4348         * modules/relocatable-prog-wrapper (Files): Update name of
4349         canonicalize m4 file, broken on 2009-09-17.
4350         Reported by emad hajjar <aleppos@hotmail.com>.
4351
4352 2009-09-19  Bruno Haible  <bruno@clisp.org>
4353
4354         * lib/safe-alloc.h: Use the standard header with GPL copyright.
4355         * lib/safe-alloc.c: Likewise.
4356         Reported by Ian Beckwith <ianb@erislabs.net>.
4357
4358 2009-09-18  Bruno Haible  <bruno@clisp.org>
4359
4360         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
4361         Reported by <erobles@sensacd.com.mx>.
4362
4363 2009-09-17  Eric Blake  <ebb9@byu.net>
4364
4365         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
4366         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
4367         slashes when checking if last component is missing.
4368         * tests/test-canonicalize.c (main): Test this.
4369
4370         canonicalize, canonicalize-lgpl: honor // if distinct from /
4371         * modules/canonicalize (Files): Add double-slash-root.m4.
4372         * modules/canonicalize-lgpl (Files): Likewise.
4373         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
4374         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
4375         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
4376         fallback definition.
4377         (canonicalize_filename_mode): Use it to protect //.
4378         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
4379         (__realpath): Likewise.
4380         * tests/test-canonicalize.c (main): Test this.
4381         * tests/test-canonicalize-lgpl.c (main): Likewise.
4382         * modules/canonicalize-tests (Depends-on): Add same-inode.
4383         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
4384
4385         canonicalize-lgpl: fix glibc bug with trailing slash
4386         * m4/canonicalize-lgpl.m4: Move contents...
4387         * m4/canonicalize.m4: ...here.
4388         (gl_CANONICALIZE_LGPL): Factor realpath check...
4389         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
4390         glibc 2.3.5 bug, fixed 2005-04-27.
4391         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
4392         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
4393         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
4394         * modules/canonicalize-lgpl (Files): Manage file rename.
4395         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
4396         * modules/stdlib (Makefile.am): Substitute witness.
4397         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
4398         is needed.
4399         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
4400         replacement is required.
4401         * lib/canonicalize.c (canonicalize_file_name): Likewise.
4402         * doc/glibc-functions/canonicalize_file_name.texi
4403         (canonicalize_file_name): Document this.
4404         * doc/posix-functions/realpath.texi (realpath): Likewise.
4405
4406         canonicalize-lgpl: reject non-directory with trailing slash
4407         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
4408         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
4409         catches failures in glibc 2.3.5.
4410         * tests/test-canonicalize.c (main): Likewise.
4411
4412         canonicalize-lgpl: use native realpath if it works
4413         * lib/canonicalize-lgpl.c (realpath): Guard with
4414         FUNC_REALPATH_WORKS.
4415         * lib/stdlib.in.h (realpath): Make declaration optional based on
4416         HAVE_REALPATH.
4417         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
4418         native realpath works.
4419         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
4420         * modules/stdlib (Makefile.am): Substitute witness.
4421
4422         canonicalize, canonicalize-lgpl: use <stdlib.h>
4423         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
4424         (Include): Mention <stdlib.h>.
4425         (configure.ac): Mention functions we provide.
4426         * modules/canonicalize (configure.ac): Likewise.
4427         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
4428         realpath if canonicalize_file_name is missing.
4429         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
4430         * modules/stdlib (Makefile.am): Substitute witnesses.
4431         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
4432         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
4433         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
4434         * NEWS: Document this.
4435         * doc/glibc-functions/canonicalize_file_name.texi
4436         (canonicalize_file_name): Likewise.
4437         * doc/posix-functions/realpath.texi (realpath): Likewise.
4438         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
4439
4440         test-canonicalize: consolidate into single C program
4441         * tests/test-canonicalize.sh: Delete; move setup into...
4442         * tests/test-canonicalize.c (main): ...the program, making it
4443         easier to run in debugger.  Add some tests.
4444         * modules/canonicalize-tests (Files): Remove unused file.
4445         (Depends-on): Add progname.
4446         (configure.ac, Makefile.am): Simplify.
4447
4448         test-canonicalize-lgpl: consolidate into single C program
4449         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
4450         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
4451         easier to run in debugger.  Add some tests.
4452         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
4453         (configure.ac, Makefile.am): Simplify.
4454
4455         canonicalize: avoid resolvepath
4456         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
4457         unnecessary checks.
4458         * lib/canonicalize.c (includes): Simplify.
4459         (canonicalize_file_name): Drop resolvepath implementation.
4460         * modules/canonicalize (Depends-on): Drop filenamecat.
4461
4462         canonicalize: don't lose errno
4463         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
4464         over calls to free.
4465
4466         canonicalize: simplify errno handling
4467         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
4468         assignment.
4469
4470         canonicalize, canonicalize-lgpl: update module dependencies
4471         * modules/canonicalize (Depends-on): Add extensions, lstat,
4472         pathmax, stdlib.
4473         (Files): Drop pathmax.h.
4474         (configure.ac): Adjust macro name.
4475         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
4476         lstat, stdlib, sys_stat.
4477         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
4478         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
4479         extensions.
4480         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
4481         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
4482         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
4483         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
4484         declaration, if available.
4485         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
4486         we can rely on the readlink module.
4487         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
4488         (includes): Use <unistd.h> unconditionally.
4489
4490 2009-09-17  Eric Blake  <ebb9@byu.net>
4491
4492         maint: make Include sections of modules consistent
4493         * modules/alloca: Use only header name; no need to list #include.
4494         * modules/alloca-opt: Likewise.
4495         * modules/arpa_inet: Likewise.
4496         * modules/canon-host: Likewise.
4497         * modules/configmake: Likewise.
4498         * modules/dirent: Likewise.
4499         * modules/eealloc: Likewise.
4500         * modules/environ: Likewise.
4501         * modules/fchdir: Likewise.
4502         * modules/fcntl: Likewise.
4503         * modules/fcntl-h: Likewise.
4504         * modules/gethrxtime: Likewise.
4505         * modules/gettime: Likewise.
4506         * modules/ignore-value: Likewise.
4507         * modules/inet_ntop: Likewise.
4508         * modules/inet_pton: Likewise.
4509         * modules/inttypes: Likewise.
4510         * modules/isnand-nolibm: Likewise.
4511         * modules/isnanf-nolibm: Likewise.
4512         * modules/mbchar: Likewise.
4513         * modules/mbfile: Likewise.
4514         * modules/mbiter: Likewise.
4515         * modules/mbuiter: Likewise.
4516         * modules/netdb: Likewise.
4517         * modules/netinet_in: Likewise.
4518         * modules/nproc: Likewise.
4519         * modules/pagealign_alloc: Likewise.
4520         * modules/poll: Likewise.
4521         * modules/printf-frexp: Likewise.
4522         * modules/pthread: Likewise.
4523         * modules/putenv: Likewise.
4524         * modules/random_r: Likewise.
4525         * modules/relocatable-prog: Likewise.
4526         * modules/search: Likewise.
4527         * modules/select: Likewise.
4528         * modules/selinux-h: Likewise.
4529         * modules/settime: Likewise.
4530         * modules/signal: Likewise.
4531         * modules/size_max: Likewise.
4532         * modules/socklen: Likewise.
4533         * modules/ssize_t: Likewise.
4534         * modules/stdarg: Likewise.
4535         * modules/stdbool: Likewise.
4536         * modules/stddef: Likewise.
4537         * modules/stdint: Likewise.
4538         * modules/stdio: Likewise.
4539         * modules/stdlib: Likewise.
4540         * modules/string: Likewise.
4541         * modules/strings: Likewise.
4542         * modules/sys_file: Likewise.
4543         * modules/sys_ioctl: Likewise.
4544         * modules/sys_select: Likewise.
4545         * modules/sys_socket: Likewise.
4546         * modules/sys_stat: Likewise.
4547         * modules/sys_time: Likewise.
4548         * modules/sys_times: Likewise.
4549         * modules/sys_utsname: Likewise.
4550         * modules/sys_wait: Likewise.
4551         * modules/sysexits: Likewise.
4552         * modules/time: Likewise.
4553         * modules/times: Likewise.
4554         * modules/tmpfile: Likewise.
4555         * modules/trim: Likewise.
4556         * modules/unistd: Likewise.
4557         * modules/wchar: Likewise.
4558         * modules/wctype: Likewise.
4559
4560 2009-09-17  Bruno Haible  <bruno@clisp.org>
4561
4562         Make getdate.y compile on QNX and NetBSD 5 / i386.
4563         * m4/getdate.m4 (gl_GETDATE): Conditionally define
4564         TIME_T_FITS_IN_LONG_INT.
4565         * lib/getdate.y (long_time_t): New type.
4566         (relative_time): Change type of 'seconds' field to long_time_t.
4567         (get_date): Update types of local variables. Check against overflow
4568         during conversion from long_time_t to time_t.
4569         Reported by Matt Kraai <kraai@ftbfs.org>
4570         and Hasso Tepper <hasso@netbsd.org>.
4571
4572 2009-09-17  Bruno Haible  <bruno@clisp.org>
4573
4574         * modules/COPYING: Update copyright years.
4575         * modules/README: Likeiwse.
4576         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
4577         Reported by Ian Beckwith <ianb@erislabs.net>.
4578
4579 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
4580
4581         * users.txt: Update references for gnuit package.
4582
4583 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
4584
4585         * m4/getdelim.m4: Fix typo in copyright line.
4586
4587 2009-09-17  Bruno Haible  <bruno@clisp.org>
4588
4589         * lib/atoll.c: Use the standard header with GPL copyright.
4590         * lib/argz.in.h: Likewise.
4591         * lib/glob.c: Likewise.
4592         * lib/glob-libc.h: Likewise.
4593         * lib/random_r.c: Likewise.
4594         * lib/siglist.h: Likewise.
4595         * lib/strsignal.c: Likewise.
4596         Reported by Ian Beckwith <ianb@erislabs.net>.
4597
4598 2009-09-17  Eric Blake  <ebb9@byu.net>
4599
4600         rmdir: ensure correct dependency order
4601         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
4602
4603 2009-09-17  Bruno Haible  <bruno@clisp.org>
4604
4605         Disable assertion that fails on NetBSD 5 / i386.
4606         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
4607         Reported by Sam Steingold <sds@gnu.org>
4608         and Hasso Tepper <hasso@netbsd.org>.
4609
4610 2009-09-16  Eric Blake  <ebb9@byu.net>
4611
4612         unlinkdir: port to mingw
4613         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
4614         on which no one can unlink a directory.
4615
4616         stdlib: sort witness names
4617         * modules/stdlib (Makefile.am): Sort replacements.
4618         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
4619         * lib/stdlib.in.h: Likewise.
4620
4621         parse-duration-tests: avoid link failure
4622         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
4623         LIBINTL.
4624         Reported by Tom G. Christensen.
4625
4626         openat-tests: ensure unlinkat behaves like rmdir
4627         * tests/test-rmdir.c (main): Factor guts...
4628         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
4629         * modules/rmdir-tests (Files): Ship new file.
4630         * modules/openat-tests: New test.
4631         * tests/test-unlinkat.c: Likewise.
4632
4633         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
4634         * modules/rmdir-errno (Status, Notice): Now obsolete.
4635
4636         rmdir: work around cygwin 1.5.x and mingw bugs
4637         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
4638         * lib/rmdir.c (rmdir): Work around it.
4639         * modules/rmdir (Status, Notice): No longer obsolete.
4640         (Files): Add dos.m4.
4641         (Depends-on): Add unistd.
4642         (configure.ac): Set witnesses.
4643         (License): Relax to LGPLv2+.
4644         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
4645         * modules/unistd (Makefile.am): Substitute witnesses.
4646         * lib/unistd.in.h (rmdir): Declare replacement.
4647         * doc/posix-functions/rmdir.texi (rmdir): Document this.
4648         * modules/rmdir-tests: New tests.
4649         * tests/test-rmdir.c: Likewise.
4650
4651 2009-09-15  Eric Blake  <ebb9@byu.net>
4652
4653         fchdir: improve use of replacement functions
4654         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
4655         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
4656         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
4657         REPLACE_CLOSEDIR.
4658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
4659         * modules/sys_stat (Makefile.am): Substitute correct witness.
4660         * modules/dirent (Makefile.am): Likewise.
4661         * modules/unistd (Makefile.am): Likewise.
4662         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
4663         * lib/unistd.in.h (dup): Likewise.
4664         * lib/sys_stat.in.h (fstat): Likewise.
4665
4666         maint: ignore gnulib-tool temp files
4667         * .gitignore: Ignore files created during gnulib-tool --test.
4668
4669 2009-09-13  Jim Meyering  <meyering@redhat.com>
4670
4671         posixtm: don't reject a time that specify "60" as the number of seconds
4672         * lib/posixtm.c (posixtime): The code to reject invalid dates
4673         would also reject a time specified with the .60 suffix.
4674         But POSIX allows that, in order to accommodate leap seconds.
4675         So don't reject it.
4676         (main): Adjust tests accordingly.
4677         * modules/posixtm (Depends-on): Add stpcpy.
4678
4679 2009-09-11  Jim Meyering  <meyering@redhat.com>
4680
4681         announce-gen: include [$release_type] in emitted Subject:
4682         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
4683         e.g., [stable] in the emitted Subject: line.
4684
4685 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4686
4687         Remove obsolete macros from several modules.
4688         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
4689         obsolete Autoconf macros with their modern counterparts.
4690         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
4691         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
4692         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
4693         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
4694         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
4695         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
4696         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
4697         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
4698         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
4699         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
4700         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4701         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4702         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
4703         * m4/sockets.m4 (gl_SOCKETS): Likewise.
4704         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
4705         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
4706         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
4707         * m4/time_r.m4 (gl_TIME_R): Likewise.
4708         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
4709         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
4710         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
4711
4712         Fix copyright header in build-aux scripts.
4713         * build-aux/git-version-gen: Fix copyright header to match GPLv3
4714         recommendation.
4715         * build-aux/ncftpput-ftp: Likewise.
4716         * build-aux/update-copyright: Likewise.
4717
4718 2009-09-09  Eric Blake  <ebb9@byu.net>
4719
4720         test-link: allow Linux choice of errno
4721         * tests/test-link.c (main): Relax test for alternate error.
4722
4723         strndup: fix improper m4 caching
4724         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
4725         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
4726         (gl_PREREQ_STRNDUP): Delete.
4727         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
4728         * modules/string (Makefile.am): Substitute it.
4729         * lib/string.in.h (strndup): Modernize prototype.
4730
4731         getcwd: port to mingw
4732         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
4733         different from the POSIX assumptions made throughout the getcwd
4734         module; fortunately, the mingw getcwd does not need replacement.
4735         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
4736         * modules/getcwd-tests: New test.
4737         * tests/test-getcwd.c: Likewise.
4738
4739         link: fix platform bugs
4740         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
4741         * lib/link.c (link): Work around them.  Fix related mingw bug.
4742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
4743         * modules/unistd (Makefile.am): Substitute it.
4744         * lib/unistd.in.h (link): Declare replacement.
4745         * doc/posix-functions/link.texi (link): Document this.
4746         * modules/link (Depends-on): Add strdup-posix, sys_stat.
4747
4748         test-link: consolidate into single C program, test more cases
4749         * tests/test-link.sh: Delete.
4750         * tests/test-link.c: Test more error conditions.  Exposes bugs on
4751         at least Cygwin and Solaris.
4752         * modules/link-tests (Files): Remove unused file.
4753         (Depends-on): Add errno, sys_stat.
4754         (Makefile.am): Simplify.
4755
4756 2009-09-08  Bruno Haible  <bruno@clisp.org>
4757
4758         Work around towlower, towupper bug on mingw.
4759         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
4760         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
4761         * doc/posix-functions/towlower.texi: Mention the mingw bug.
4762         * doc/posix-functions/towupper.texi: Likewise.
4763         Reported by Eric Blake.
4764
4765 2009-09-08  Jim Meyering  <meyering@redhat.com>
4766
4767         build: don't try to run autoheader if we don't use it
4768         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
4769         is not used in configure.ac.
4770
4771 2009-09-08  Eric Blake  <ebb9@byu.net>
4772
4773         euidaccess: fix compilation error
4774         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
4775
4776         rawmemchr: relax license
4777         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
4778         okay.
4779         Reported by Jim Meyering.
4780
4781         mkfifoat: new module
4782         * modules/mkfifoat: New file.
4783         * lib/mkfifoat.c: Likewise.
4784         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
4785         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
4786         * modules/sys_stat (Makefile.am): Use them.
4787         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
4788         * MODULES.html.sh (File system functions): Mention module.
4789         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
4790         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
4791         * modules/mkfifoat-tests: New test.
4792         * tests/test-mkfifoat.c: Likewise.
4793
4794         strchrnul: relax license
4795         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
4796         okay.
4797         Reported by Jim Meyering.
4798
4799 2009-09-08  Eric Blake  <ebb9@byu.net>
4800
4801         fstatat: fix compilation on Solaris
4802         * lib/fstatat.c (includes): Add fcntl.h.
4803         Reported by Pádraig Brady.
4804
4805 2009-09-07  Eric Blake  <ebb9@byu.net>
4806
4807         rename: modernize replacement
4808         * modules/rename (Depends-on): Add stdio.
4809         (configure.ac): Declare witness.
4810         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
4811         stdio take care of replacement.
4812         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
4813         * modules/stdio (Makefile.am): Substitute them.
4814         * lib/stdio.in.h (rename): Declare replacement.
4815         * lib/rename.c (includes): Allow cross-compilation to non-windows
4816         machines.
4817         * doc/posix-functions/rename.texi (rename): Improve
4818         documentation.
4819
4820         stdio: sort witness names
4821         * modules/stdio (Makefile.am): Sort replacements.
4822         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
4823         * lib/stdio.in.h: Likewise.
4824
4825         getcwd: minor cleanups
4826         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
4827         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
4828
4829         openat: provide more convenience names
4830         * modules/faccessat (configure.ac): Add C witness.
4831         * lib/unistd.in.h (readlinkat): Fix typo.
4832         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
4833         convenience wrappers.
4834         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
4835         wrappers in syntax checks.
4836
4837 2009-09-06  Eric Blake  <ebb9@byu.net>
4838
4839         doc: fix comments in recent patches
4840         * lib/faccessat.c: Mention correct function.
4841         * lib/fchmodat.c: Likewise.
4842         * lib/fchownat.c: Likewise.
4843         * lib/symlinkat.c: Likewise.
4844         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
4845         constants.
4846
4847         faccessat, symlinkat: continue cleanup of previous patch
4848         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
4849         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
4850         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
4851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
4852         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
4853         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
4854         set.
4855
4856 2009-09-06  Bruno Haible  <bruno@clisp.org>
4857
4858         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
4859         (fstatat): Declare if GNULIB_FSTATAT is set.
4860         (mkdirat): Declare if GNULIB_MKDIRAT is set.
4861         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
4862         (unlinkat): Declare if GNULIB_UNLINKAT is set.
4863         * modules/fcntl-h (Files): Remove m4/openat.m4.
4864         * modules/sys_stat (Files): Remove m4/openat.m4.
4865         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
4866         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
4867         * modules/unistd (Files): Remove m4/openat.m4.
4868         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
4869         GNULIB_OPENAT.
4870         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
4871         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
4872         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
4873         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
4874         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
4875         gl_OPENAT_DEFAULTS.
4876         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
4877         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
4878         Don't require gl_OPENAT_DEFAULTS.
4879         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
4880         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
4881         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
4882         (gl_OPENAT_DEFAULTS): Remove macro.
4883
4884 2009-09-06  Bruno Haible  <bruno@clisp.org>
4885
4886         * modules/openat (configure.ac): Remove unneeded witness.
4887
4888 2009-09-06  Bruno Haible  <bruno@clisp.org>
4889
4890         Set errno to ENOSYS when a function is entirely unsupported.
4891         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
4892         EOPNOTSUPP.
4893         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
4894         * modules/chown (Depends-on): Remove errno.
4895
4896 2009-09-06  Bruno Haible  <bruno@clisp.org>
4897
4898         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
4899
4900 2009-09-06  Bruno Haible  <bruno@clisp.org>
4901
4902         * lib/sys_stat.in.h: Fix preprocessor command indentation.
4903
4904 2009-09-06  Ben Pfaff  <blp@gnu.org>
4905             Bruno Haible  <bruno@clisp.org>
4906
4907         Work around a glibc bug in strtok_r.
4908         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
4909         Undefine if UNDEFINE_STRTOK_R is set.
4910         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
4911         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4912         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
4913         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
4914         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
4915         UNDEFINE_STRTOK_R.
4916         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
4917
4918 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
4919
4920         exclude: minor fix
4921         * lib/exclude.c: Include wctype.h
4922
4923 2009-09-06  Akim Demaille  <demaille@gostai.com>
4924
4925         bootstrap: improve error message
4926         * build-aux/bootstrap (find_tool): Upon failure, report the list
4927         of candidates.
4928         Honor the initial value of the envvar.
4929
4930 2009-09-05  Eric Blake  <ebb9@byu.net>
4931
4932         symlinkat: new module
4933         * modules/symlinkat: New file.
4934         * lib/symlinkat.c: Likewise.
4935         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
4936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
4937         * modules/unistd (Makefile.am): Use them.
4938         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
4939         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
4940         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
4941         * MODULES.html.sh (File system functions): Mention module.
4942         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
4943         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
4944         * modules/symlinkat-tests: New test.
4945         * tests/test-symlinkat.c: Likewise.
4946
4947         test-openat-safer: add more checks
4948         * tests/test-openat-safer.c (main): Check more code paths.
4949
4950 2009-09-05  Jim Meyering  <meyering@redhat.com>
4951
4952         syntax-check: detect unnecessary inclusion of openat.h
4953         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
4954
4955 2009-09-05  Bruno Haible  <bruno@clisp.org>
4956
4957         Support towlower, towupper.
4958         * doc/posix-functions/towlower.texi: Mention module wctype.
4959         * doc/posix-functions/towupper.texi: Likewise.
4960         * lib/wctype.in.h (towlower, towupper): New functions.
4961         * tests/test-wctype.c: Include stdio.h, stdlib.h.
4962         (ASSERT): New macro.
4963         (e): New variable.
4964         (main): Test also towlower, towupper. Test WEOF argument.
4965         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
4966
4967 2009-09-05  Bruno Haible  <bruno@clisp.org>
4968
4969         Fix conversion behaviour when the input is invalid.
4970         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
4971         mark occurring in first pass of indirect conversion.
4972         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
4973         input.
4974         Found by clang's static analyzer.
4975
4976 2009-09-05  Bruno Haible  <bruno@clisp.org>
4977
4978         * tests/test-striconveh.c (main): Test indirect conversion on platforms
4979         where direct conversion is possible.
4980
4981 2009-09-04  Eric Blake  <ebb9@byu.net>
4982
4983         openat: fail with ENOENT on empty name
4984         * lib/openat-proc.c (openat_proc_name): Special-case the empty
4985         buffer.
4986
4987         link-follow: fix logic bug in prior patch
4988         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
4989         reversed sense of yes and no in prior patch.  Avoid confusing
4990         compilation failure with desired semantics.
4991
4992         link-follow: accomodate mingw and cross-compilation
4993         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
4994         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
4995         cross-compilation results to -1, to make linkat easier to
4996         implement when cross-compiling.  Trivially support mingw.
4997         * modules/link-follow (configure.ac): Call new name.
4998         * NEWS: Mention this.
4999
5000 2009-09-03  Eric Blake  <ebb9@byu.net>
5001
5002         faccessat: compile replacement
5003         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
5004         needed.
5005
5006         fts: fix compilation error
5007         * lib/fts.c (includes): Re-add "openat.h", for
5008         openat_needs_fchdir.
5009
5010         faccessat: new module
5011         * modules/faccessat: New file.
5012         * lib/faccessat.c: Likewise.
5013         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
5014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
5015         * modules/unistd (Makefile.am): Use it.
5016         * lib/unistd.in.h (faccessat): Declare it.
5017         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
5018         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
5019         * MODULES.html.sh (File system functions): Mention it.
5020         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
5021         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
5022
5023         euidaccess: prefer POSIX over non-standard implementation
5024         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
5025         * lib/euidaccess.c (euidaccess): Use it if available.
5026
5027         openat: make template easier to use
5028         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
5029         AT_FUNC_F2 to be undefined.
5030         (VALIDATE_FLAG): New macro; use it to reject bad flags.
5031         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
5032         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
5033         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
5034         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
5035         Likewise.
5036         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
5037         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
5038         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
5039         Likewise.
5040
5041         openat: declare in POSIX headers
5042         * NEWS: Mention this.
5043         * modules/openat (configure.ac): Declare witnesses.
5044         (Depends-on): Add fcntl-h, sys_stat, unistd.
5045         (Include): Mention correct headers.
5046         * modules/fcntl-h (Depends-on): Add link-warning.
5047         (Files): Add openat.m4.
5048         (Makefile.am): Substitute witnesses.
5049         * modules/sys_stat (Files, Makefile.am): Likewise.
5050         * modules/unistd (Files, Makefile.am): Likewise.
5051         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
5052         (gl_OPENAT_DEFAULTS): New macro.
5053         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
5054         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
5055         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
5056         (SYS_STAT_H): Remove unused variable.
5057         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
5058         * lib/fcntl--.h (includes): Remove unneeded header.
5059         * lib/openat-safer.c (includes): Likewise.
5060         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
5061         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
5062         appropriate headers.
5063         (__OPENAT_PREFIX): Delete.
5064         * lib/fcntl.in.h (openat): Provide declaration.
5065         (AT_FDCWD): Fix Solaris bug.
5066         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
5067         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
5068         * lib/fchmodat.c (includes):  Adjust to find declaration.
5069         * lib/fchownat.c (includes): Likewise.
5070         * lib/mkdirat.c (includes): Likewise.
5071         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
5072         still visible.
5073
5074 2009-09-02  Eric Blake  <ebb9@byu.net>
5075
5076         errno: use consistently
5077         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
5078         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
5079         * lib/canonicalize.c (ELOOP): Likewise.
5080         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
5081         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
5082         * lib/lchown.c (EOPNOTSUPP): Likewise.
5083         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
5084         * lib/savewd.c (ESTALE): Likewise.
5085         * lib/settime.c (ENOSYS): Likewise.
5086         * lib/utimens.c (ENOSYS): Likewise.
5087         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
5088         * lib/chdir-safer.c (ELOOP): Likewise.
5089         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
5090         * modules/c-stack (Depends-on): Add errno.
5091         * modules/canonicalize (Depends-on): Likewise.
5092         * modules/chdir-safer (Depends-on): Likewise.
5093         * modules/fdopendir (Depends-on): Likewise.
5094         * modules/inet_ntop (Depends-on): Likewise.
5095         * modules/inet_pton (Depends-on): Likewise.
5096         * modules/lchown (Depends-on): Likewise.
5097         * modules/openat (Depends-on): Likewise.
5098         * modules/savewd (Depends-on): Likewise.
5099         * modules/settime (Depends-on): Likewise.
5100         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
5101
5102         fts: avoid leaking fds
5103         * modules/fts (Depends-on): Add cloexec.
5104         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
5105         flag.
5106
5107         fts: make directory fds more robust
5108         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
5109         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
5110
5111         backupfile, chdir-long, fts, savedir: make safer
5112         * lib/backupfile.c (includes): Use "dirent--.h", since
5113         numbered_backup can write to stderr during readdir.
5114         * lib/savedir.c (includes): Likewise.
5115         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
5116         emulation can write to stderr on failure.
5117         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
5118         * lib/getcwd.c: Document why opendir_safer is unused.
5119         * lib/glob.c: Likewise.
5120         * lib/scandir.c: Likewise.
5121         * lib/openat-proc.c: Likewise, for open_safer.
5122         * modules/backupfile (Depends-on): Add dirent-safer.
5123         * modules/savedir (Depends-on): Likewise.
5124         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
5125         * modules/chdir-long (Depends-on): Add openat-safer.
5126
5127         openat-safer: new module
5128         * modules/openat-safer: New file.
5129         * lib/openat-safer.c: Likewise.
5130         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
5131         * lib/fcntl-safer.h (openat_safer): Declare.
5132         * lib/fcntl--.h (openat): Override.
5133         * MODULES.html.sh (File descriptor based I/O): Mention it.
5134         * lib/openat.h: Add double-inclusion guards.
5135         * lib/openat.c (includes): Only include "fcntl-safer.h", not
5136         "fcntl--.h", so we can implement openat.
5137         * modules/openat-safer-tests: New test.
5138         * tests/test-openat-safer.c: New file.
5139
5140         dirent-safer: new module
5141         * modules/dirent-safer: New file.
5142         * lib/dirent--.h: Likewise.
5143         * lib/dirent-safer.h: Likewise.
5144         * lib/opendir-safer.c: Likewise.
5145         * m4/dirent-safer.m4: Likewise.
5146         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
5147         * modules/dirent-safer-tests: New test.
5148         * tests/test-dirent-safer.c: New file.
5149         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
5150
5151         fdopendir: optimize on mingw
5152         * lib/unistd.in.h (_gl_directory_name): New prototype.
5153         * lib/fchdir.c (_gl_directory_name): Implement it.
5154         (fchdir): Use it to simplify implementation.
5155         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
5156         fchdir, when available, to avoid calling [f]chdir().
5157
5158         fdopendir: split into its own module
5159         * lib/openat.c (fdopendir): Move...
5160         * lib/fdopendir.c: ...into new file.
5161         * modules/fdopendir: New module.
5162         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
5163         * modules/openat (Depends-on): Add fdopendir.
5164         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
5165         fdopendir here.
5166         * modules/savedir (Depends-on): Only need fdopendir, not full
5167         openat.
5168         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
5169         * lib/openat.h (fdopendir): Drop prototype.
5170         * lib/dirent.in.h (fdopendir): Provide prototype.
5171         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
5172         * modules/dirent (Makefile.am): Substitute them.
5173         * MODULES.html.sh (File system functions): Mention it.
5174         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
5175         * modules/fdopendir-tests: New file.
5176         * tests/test-fdopendir.c: Likewise.
5177
5178         fchdir: use more consistent macro convention
5179         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
5180         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
5181         REPLACE_FCHDIR, rather than relying on config.h macros.
5182         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
5183         inside a single make-time REPLACE_FCHDIR block, rather than using
5184         the config.h FCHDIR_REPLACEMENT.
5185         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
5186         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
5187         Manage fstat replacement.
5188         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
5189         REPLACE_FCHDIR.
5190         * modules/sys_stat (Files): Add m4/unistd_h.m4.
5191         (Makefile.am): Substitute REPLACE_FCHDIR.
5192         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
5193         FCHDIR_REPLACEMENT.
5194         * lib/dup-safer.c (dup_safer): Likewise.
5195         * lib/dup2.c (rpl_dup2): Likewise.
5196         * lib/dup3.c (rpl_dup3): Likewise.
5197         * lib/open.c (rpl_open): Likewise.
5198
5199         fchdir: simplify error handling, and support dup3
5200         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
5201         stdbool, malloc-posix, realloc-posix.
5202         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
5203         (ensure_dirs_slot): Return false on allocation failure.
5204         (rpl_dup2): Delete.
5205         (_gl_register_dup): New function.
5206         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
5207         (_gl_register_fd): Close fd on allocation failure.
5208         * lib/fcntl.in.h (_gl_register_fd): Update signature.
5209         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
5210         prototype.
5211         (rpl_dup2_fchdir): Delete prototype.
5212         * lib/open.c (open): Update caller.
5213         * lib/dup2.c (dup2): Track fchdir metadata.
5214         * lib/dup3.c (dup3): Likewise.
5215         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
5216         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
5217
5218 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5219
5220         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
5221         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
5222         don't pass arguments to AC_OUTPUT.
5223
5224 2009-09-02  Bruno Haible  <bruno@clisp.org>
5225
5226         * modules/mkdtemp (License): Relicense under LGPLv2+.
5227         Reported by Paolo Bonzini.
5228
5229 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5230
5231         Replace uses of obsolete autoconf macros in Jim's modules.
5232         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
5233         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
5234         can evoke a warning from autoconf when run with -Wobsolete
5235         enabled.  They were declared obsolete for good reasons (see
5236         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
5237         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
5238         should not continue using the deprecated macros.
5239         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
5240         obsolete Autoconf macros with modern counterparts.
5241         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5242         * m4/dos.m4 (gl_AC_DOS): Likewise.
5243         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
5244         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
5245         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
5246         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
5247         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
5248         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
5249         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
5250         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
5251         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
5252         Likewise.
5253         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
5254         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
5255         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
5256         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
5257         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
5258         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
5259
5260 2009-09-01  Eric Blake  <ebb9@byu.net>
5261
5262         fchdir: fix off-by-one bug in previous patch
5263         * lib/fchdir.c (rpl_fstat): Use correct bounds.
5264         (_gl_unregister_fd): Delete useless if.
5265
5266 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
5267
5268         maint.mk: sort the list of syntax-check rules
5269         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
5270         easier to get a sense of progress when the rules are run sequentially
5271         and take a long time.
5272
5273 2009-09-01  Simon Josefsson  <simon@josefsson.org>
5274
5275         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
5276         * modules/netinet_in: Likewise.
5277         * modules/sys_file: Likewise.
5278         * modules/sys_ioctl: Likewise.
5279         * modules/sys_select: Likewise.
5280         * modules/sys_socket: Likewise.
5281         * modules/sys_stat: Likewise.
5282         * modules/sys_time: Likewise.
5283         * modules/sys_times: Likewise.
5284         * modules/sys_utsname: Likewise.
5285         * modules/sys_wait: Likewise.
5286
5287 2009-09-01  Jim Meyering  <meyering@redhat.com>
5288
5289         fts: help ensure that return values are not ignored
5290         * lib/fts_.h (__GNUC_PREREQ): Define.
5291         (__attribute_warn_unused_result__): Define.
5292         (fts_children, fts_close, fts_open, fts_read): Declare with
5293         __attribute_warn_unused_result__.
5294
5295         fts: fts_close now fails also when closing a dir file descriptor fails
5296         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
5297         and propagate to caller, along with errno.
5298
5299         announce-gen: correct formatting in --help output
5300         * build-aux/announce-gen (usage): Move the one-line description in
5301         --help output "up", to where it belongs, just after Usage:.
5302
5303 2009-08-31  Eric Blake  <ebb9@byu.net>
5304
5305         fchdir: port to mingw
5306         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
5307         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
5308         opened, then use a substitute.
5309         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
5310         replacement.
5311         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
5312         (_gl_register_fd): No need to check stat if open already filters
5313         all directories.
5314         (fchdir): Fix error condition to match POSIX.
5315         * modules/fchdir (Depends-on): Add sys_stat.
5316         * doc/posix-functions/open.texi (open): Document the limitation.
5317         * modules/fchdir-tests: New file.
5318         * tests/test-fchdir.c: Likewise.
5319
5320         canonicalize: allow cross-testing from cygwin to mingw
5321         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
5322         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
5323         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
5324         Likewise.
5325         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
5326         target does not support symlinks.
5327         * tests/test-canonicalize-lgpl.sh: Likewise.
5328
5329         chown: avoid compilation warning on mingw
5330         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
5331         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
5332         mingw.
5333         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
5334         * modules/chown (Depends-on): Add errno.
5335
5336 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
5337
5338         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
5339         command.
5340
5341 2009-08-31  Jim Meyering  <meyering@redhat.com>
5342
5343         canonicalize: remove useless initialization
5344         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
5345         initialization of local, "end".
5346
5347 2009-08-30  Bruno Haible  <bruno@clisp.org>
5348
5349         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
5350         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
5351         ENOSYS.
5352
5353 2009-08-30  Bruno Haible  <bruno@clisp.org>
5354
5355         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
5356         /usr/xpg4/bin/tr when it exists.
5357         * tests/test-pipe-filter-gi1.sh: Likewise.
5358
5359 2009-08-30  Bruno Haible  <bruno@clisp.org>
5360
5361         Work around deficient /usr/bin/id program on Solaris.
5362         * tests/test-file-has-acl.sh (ID): New variable.
5363         * tests/test-set-mode-acl.sh (ID): Likewise.
5364         * tests/test-copy-acl.sh (ID): Likewise.
5365         * tests/test-copy-file.sh (ID): Likewise.
5366
5367 2009-08-30  Bruno Haible  <bruno@clisp.org>
5368
5369         New module 'xstriconveh'.
5370         * lib/xstriconveh.h: New file.
5371         * lib/xstriconveh.c: New file.
5372         * modules/xstriconveh: New file.
5373
5374 2009-08-30  Bruno Haible  <bruno@clisp.org>
5375
5376         Make it easier to use mem_cd_iconveh.
5377         * lib/striconveh.h (iconveh_t): New type.
5378         (iconveh_open, iconveh_close): New declarations.
5379         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
5380         with a single 'const iconveh_t *' argument.
5381         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
5382         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
5383         with a single 'const iconveh_t *' argument.
5384         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
5385         * tests/test-striconveh.c (main): Update.
5386         * NEWS: Mention the change.
5387
5388 2009-08-30  Bruno Haible  <bruno@clisp.org>
5389
5390         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
5391         problem.
5392
5393 2009-08-30  Bruno Haible  <bruno@clisp.org>
5394
5395         Work around iconv_open problem on Solaris.
5396         * lib/iconv_open-solaris.gperf: New file.
5397         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
5398         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
5399         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
5400         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
5401         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
5402         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
5403
5404 2009-08-29  Jim Meyering  <meyering@redhat.com>
5405
5406         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
5407         * top/maint.mk (cvs-check): Remove target; it was just an alias
5408         to the better-named vc-diff-check.
5409         (maintainer-distcheck): Remove rule.  It was used only from
5410         the (alpha/beta/major) target, and all of its commands but one
5411         were coreutils-specific.
5412         (vc-dist): Remove rule.
5413         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
5414         Run vc-diff-check, not vc-dist.
5415         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
5416
5417 2009-08-27  Bruno Haible  <bruno@clisp.org>
5418
5419         * tests/test-bitrotate.c (main): Remove test that uses a shift count
5420         of 0.
5421
5422 2009-08-27  Bruno Haible  <bruno@clisp.org>
5423
5424         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
5425         compilers.
5426         * doc/func.texi: Document the SunPRO C bug.
5427
5428 2009-08-27  Bruno Haible  <bruno@clisp.org>
5429
5430         Fix link error on Solaris.
5431         * tests/test-parse-duration.c (xstrdup): Remove function.
5432
5433 2009-08-26  Pádraig Brady  <P@draigbrady.com>
5434
5435         ignore-value: handle pointer types, too
5436         * lib/ignore-value.h (__attribute__): Remove definition.
5437         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
5438         of a more concise and more-often effective "(void) i" statement.
5439         (ignore_ptr): New function to suppress warnings from functions that
5440         return pointers, and to make it explicit that one function doesn't
5441         handle all cases.
5442
5443 2009-08-25  Bruno Haible  <bruno@clisp.org>
5444
5445         dup2: work around a Linux bug.
5446         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
5447         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
5448         * doc/posix-functions/dup2.texi: Mention the Linux bug.
5449         Reported by Simon Josefsson.
5450
5451 2009-08-25  Jim Meyering  <meyering@redhat.com>
5452
5453         libguestfs uses gnulib
5454         * users.txt: Add libguestfs.
5455
5456 2009-08-24  Eric Blake  <ebb9@byu.net>
5457
5458         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
5459         * lib/pipe2.c (includes): Add binary-io.h.
5460         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
5461
5462 2009-08-24  Bruno Haible  <bruno@clisp.org>
5463
5464         Tolerate declared but missing accept4 syscall.
5465         * lib/accept4.c (accept4): Invoke original accept4 function first, if
5466         available.
5467         * lib/sys_socket.in.h (accept4): If the function is already present,
5468         override it.
5469         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
5470         * modules/accept4 (Makefile.am): Compile accept4.c always.
5471         Reported by Paolo Bonzini and Eric Blake.
5472
5473 2009-08-23  Bruno Haible  <bruno@clisp.org>
5474
5475         New module 'accept4'.
5476         * lib/sys_socket.in.h (accept4): New declaration.
5477         * lib/accept4.c: New file.
5478         * m4/accept4.m4: New file.
5479         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
5480         GNULIB_ACCEPT4, HAVE_ACCEPT4.
5481         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
5482         HAVE_ACCEPT4.
5483         * modules/accept4: New file.
5484         * doc/glibc-functions/accept4.texi: Mention the new module.
5485
5486 2009-08-24  Jim Meyering  <meyering@redhat.com>
5487
5488         progname: also set global program_invocation_name, when possible
5489         Before this change, a libtool-enabled program that calls glibc's
5490         error function would report the program name as
5491         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
5492         * modules/progname (configure.ac): Check for a declaration of
5493         program_invocation_name.
5494         * lib/progname.c:  Include <errno.h>.
5495         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
5496         Set program_invocation_name.
5497
5498 2009-08-23  Bruno Haible  <bruno@clisp.org>
5499
5500         * lib/dup3.c: Include <string.h>.
5501
5502 2009-08-23  Bruno Haible  <bruno@clisp.org>
5503
5504         * lib/dup3.c (dup3): Test only once whether the system actually exists.
5505         * lib/pipe2.c (pipe2): Likewise.
5506         Suggested by Eric Blake.
5507
5508 2009-08-23  Bruno Haible  <bruno@clisp.org>
5509
5510         Tolerate declared but missing dup3 syscall.
5511         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
5512         * lib/unistd.in.h (dup3): If the function is already present,
5513         override it.
5514         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
5515         * modules/dup3 (Makefile.am): Compile dup3.c always.
5516         Reported by Paolo Bonzini.
5517
5518 2009-08-23  Bruno Haible  <bruno@clisp.org>
5519
5520         Tolerate declared but missing pipe2 syscall.
5521         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
5522         available.
5523         * lib/unistd.in.h (pipe2): If the function is already present,
5524         override it.
5525         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
5526         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
5527         Reported by Paolo Bonzini.
5528
5529 2009-08-23  Bruno Haible  <bruno@clisp.org>
5530
5531         * lib/pipe2.c (pipe2): Move #ifs inside function.
5532
5533 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
5534
5535         quotearg: document limitations of quote_these_too
5536         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
5537         those limitations are created.
5538         * lib/quotearg.h (set_char_quoting): Document that digits and
5539         letters that are special after backslash are not permitted.
5540         (quotearg_char): Cross-reference set_char_quoting documentation.
5541
5542 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
5543
5544         quotearg: implement custom_quoting_style
5545         * lib/quotearg.c: (struct quoting_options): Add left_quote and
5546         right_quote fields.
5547         (set_custom_quoting): New public function.
5548         (quotearg_buffer_restyled): Add left_quote and right_quote
5549         arguments, handle them very much like locale quoting, and update
5550         all uses.
5551         (quotearg_n_custom): New public function.
5552         (quotearg_n_custom_mem): New public function.
5553         (quotearg_custom): New public function.
5554         (quotearg_custom_mem): New public function.
5555         * lib/quotearg.h: Prototype and document new public functions.
5556         (enum quoting_style): For escape_quoting_style and
5557         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
5558         ignored even though they're otherwise like c_quoting_style.
5559         Add custom_quoting_style member and document with comparison to
5560         clocale_quoting_style.
5561         * tests/test-quotearg.c (custom_quotes): New array.
5562         (custom_results): New array.
5563         (main): Extend to test custom quoting.
5564
5565 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
5566
5567         quotearg: fix right quote escaping when it's in quote_these_too
5568         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
5569         quote, be sure to prepend only one backslash.
5570         * tests/test-quotearg.c (use_quote_double_quotes): New function.
5571         (main): Test it.
5572
5573 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
5574
5575         quotearg-tests: test escaping of embedded locale quotes
5576         * tests/test-quotearg.c (struct result_strings): Add member for
5577         new input.
5578         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
5579         (inputs): Add new input.
5580         (results_g): Add expected results.
5581         (flag_results): Likewise.
5582         (locale_results): Likewise.
5583         (compare_strings): Check those.
5584
5585 2009-08-23  Bruno Haible  <bruno@clisp.org>
5586
5587         Tests for module 'dup3'.
5588         * modules/dup3-tests: New file.
5589         * tests/test-dup3.c: New file.
5590
5591         New module 'dup3'.
5592         * lib/unistd.in.h (dup3): New declaration.
5593         * lib/dup3.c: New file.
5594         * m4/dup3.m4: New file.
5595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
5596         HAVE_DUP3.
5597         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
5598         * modules/dup3: New file.
5599         * doc/glibc-functions/dup3.texi: Mention the new module.
5600
5601 2009-08-23  Bruno Haible  <bruno@clisp.org>
5602
5603         Tweak the dup2 test.
5604         * tests/test-dup2.c (main): Create the test file empty. Verify that an
5605         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
5606         the test file is still empty. Fix argument order of lseek.
5607
5608 2009-08-23  Bruno Haible  <bruno@clisp.org>
5609
5610         Avoid test link errors when the modules getopt-gnu, gettext are used.
5611         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
5612         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5613
5614 2009-08-23  Bruno Haible  <bruno@clisp.org>
5615
5616         Fix getdtablesize() on mingw.
5617         * lib/getdtablesize.c (getdtablesize): Implement differently.
5618         * lib/unistd.in.h (getdtablesize): Improve comment.
5619
5620 2009-08-23  Bruno Haible  <bruno@clisp.org>
5621
5622         New module 'mkostemp'.
5623         Based on Ulrich Drepper's 2007-08-10 change in glibc.
5624         * lib/stdlib.in.h (mksotemp): New declaration.
5625         * lib/mkostemp.c: New file, from glibc with modifications.
5626         * lib/tempname.h (GT_FILE): Remove outdated comment.
5627         (gen_tempname): Add flags argument.
5628         * lib/tempname.c (__GT_BIGFILE): Remove macro.
5629         (__GT_FILE): Map to 1.
5630         (small_open, large_open): Remove macros.
5631         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
5632         * lib/mkstemp.c (mkstemp): Update.
5633         * lib/mkdtemp.c (mkdtemp): Likewise.
5634         * m4/mkostemp.m4: New file.
5635         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
5636         HAVE_MKOSTEMP.
5637         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
5638         HAVE_MKOSTEMP.
5639         * modules/mkostemp: New file, based on modules/mkstemp.
5640         * doc/glibc-functions/mkostemp.texi: Mention the new module.
5641         * NEWS: Mention the change.
5642
5643 2009-08-23  Bruno Haible  <bruno@clisp.org>
5644
5645         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
5646         Reported by Eric Blake.
5647
5648 2009-08-23  Bruno Haible  <bruno@clisp.org>
5649
5650         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
5651         Reported by Eric Blake.
5652
5653 2009-08-23  Bruno Haible  <bruno@clisp.org>
5654
5655         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
5656         * modules/pipe2 (Depends-on): Likewise.
5657
5658 2009-08-23  Eric Blake  <ebb9@byu.net>
5659
5660         fcntl-h: add O_TTY_INIT support
5661         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
5662         * tests/test-fcntl-h.c (o): Test it.
5663         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
5664
5665         fcntl-h: rename from fcntl, in preparation for fcntl(2)
5666         * modules/fcntl: Move <fcntl.h> header replacement...
5667         * modules/fcntl-h: ...to new name, so as not to collide with
5668         like-named function.
5669         * tests/test-fcntl.c: Rename...
5670         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
5671         * modules/fcntl-tests: Rename...
5672         * modules/fcntl-h-tests: ...to this.  Update test file name.
5673         * modules/chdir-long (Depends-on): Update clients.
5674         * modules/chdir-safer (Depends-on): Likewise.
5675         * modules/fcntl-safer (Depends-on): Likewise.
5676         * modules/fts (Depends-on): Likewise.
5677         * modules/mkancesdirs (Depends-on): Likewise.
5678         * modules/mkdir-p (Depends-on): Likewise.
5679         * modules/open (Depends-on): Likewise.
5680         * modules/savewd (Depends-on): Likewise.
5681         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
5682         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
5683
5684 2009-08-22  Bruno Haible  <bruno@clisp.org>
5685
5686         * modules/binary-io (License): Relicense under LGPL.
5687         * modules/pipe2 (License): Likewise.
5688
5689 2009-08-22  Bruno Haible  <bruno@clisp.org>
5690
5691         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
5692         return value.
5693         * lib/pipe-filter-gi.c (filter_init): Likewise.
5694         Reported by Eric Blake.
5695
5696 2009-08-22  Bruno Haible  <bruno@clisp.org>
5697
5698         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
5699         * modules/pipe (Depends-on): Add pipe2.
5700
5701 2009-08-22  Bruno Haible  <bruno@clisp.org>
5702
5703         Tests for module 'pipe2'.
5704         * modules/pipe2-tests: New file.
5705         * tests/test-pipe2.c: New file.
5706
5707         New module 'pipe2'.
5708         * lib/unistd.in.h (pipe2): New declaration.
5709         * lib/pipe2.c: New file.
5710         * m4/pipe2.m4: New file.
5711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
5712         HAVE_PIPE2.
5713         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
5714         * modules/pipe2: New file.
5715         * doc/glibc-functions/pipe2.texi: Mention the new module.
5716
5717 2009-08-22  Bruno Haible  <bruno@clisp.org>
5718
5719         Reference some new glibc functions.
5720         * doc/glibc-functions/accept4.texi: New file.
5721         * doc/glibc-functions/dup3.texi: New file.
5722         * doc/glibc-functions/mkostemp.texi: New file.
5723         * doc/glibc-functions/pipe2.texi: New file.
5724         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
5725         (Glibc sys/socket.h): Refer to accept4.
5726         (Glibc unistd.h): Refer to dup3, pipe2.
5727         Reported by Eric Blake.
5728
5729 2009-08-22  Jim Meyering  <meyering@redhat.com>
5730             Bruno Haible  <bruno@clisp.org>
5731
5732         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
5733         This makes it so packages using automake-1.11's silent-rules option
5734         can print e.g., a single "GEN    configmake.h" line, rather than
5735         the 30+ statements that perform the job.  If you want to see the
5736         actual commands, you can still run "make V=1".
5737         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
5738         so that make output is abbreviated when those variables are defined
5739         appropriately.
5740         * modules/argz: Likewise.
5741         * modules/arpa_inet: Likewise.
5742         * modules/byteswap: Likewise.
5743         * modules/configmake: Likewise.
5744         * modules/dirent: Likewise.
5745         * modules/errno: Likewise.
5746         * modules/fcntl: Likewise.
5747         * modules/float: Likewise.
5748         * modules/fnmatch: Likewise.
5749         * modules/getopt-posix: Likewise.
5750         * modules/glob: Likewise.
5751         * modules/iconv_open: Likewise.
5752         * modules/inttypes: Likewise.
5753         * modules/localcharset: Likewise.
5754         * modules/locale: Likewise.
5755         * modules/math: Likewise.
5756         * modules/netdb: Likewise.
5757         * modules/netinet_in: Likewise.
5758         * modules/poll: Likewise.
5759         * modules/posix_spawnp-tests: Likewise.
5760         * modules/sched: Likewise.
5761         * modules/search: Likewise.
5762         * modules/selinux-h: Likewise.
5763         * modules/signal: Likewise.
5764         * modules/spawn: Likewise.
5765         * modules/stdarg: Likewise.
5766         * modules/stdbool: Likewise.
5767         * modules/stddef: Likewise.
5768         * modules/stdint: Likewise.
5769         * modules/stdio: Likewise.
5770         * modules/stdlib: Likewise.
5771         * modules/string: Likewise.
5772         * modules/strings: Likewise.
5773         * modules/sys_file: Likewise.
5774         * modules/sys_ioctl: Likewise.
5775         * modules/sys_select: Likewise.
5776         * modules/sys_socket: Likewise.
5777         * modules/sys_stat: Likewise.
5778         * modules/sys_time: Likewise.
5779         * modules/sys_times: Likewise.
5780         * modules/sys_utsname: Likewise.
5781         * modules/sys_wait: Likewise.
5782         * modules/sysexits: Likewise.
5783         * modules/time: Likewise.
5784         * modules/unistd: Likewise.
5785         * modules/wchar: Likewise.
5786         * modules/wctype: Likewise.
5787
5788 2009-08-22  Jim Meyering  <meyering@redhat.com>
5789
5790         announce-gen: detect write failure
5791         * build-aux/announce-gen: Add Coda at end.
5792         Remove equivalent-but-more-verbose block at top.
5793
5794 2009-08-19  Akim Demaille  <demaille@gostai.com>
5795
5796         bootstrap: --help to stdout.
5797         * bootstrap (usage): Don't send --help to stderr.
5798         Use a here doc instead of a long string.
5799
5800 2009-08-21  Eric Blake  <ebb9@byu.net>
5801
5802         test-popen-safer: split from test-popen
5803         * tests/test-popen.c (main): Move...
5804         * tests/test-popen.h: ...into new file.
5805         * tests/test-popen-safer2.c: New file.
5806         * modules/popen-tests (Files): Add test-popen.h.
5807         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
5808         Suggested by Bruno Haible.
5809
5810         test-fcntl-safer: split from test-open
5811         * tests/test-open.c (main): Move...
5812         * tests/test-open.h: ...into new file.
5813         * tests/test-fcntl-safer.c: New file.
5814         * modules/open-tests (Files): Add test-open.h.
5815         * modules/fcntl-safer-tests: New file.
5816         Suggested by Bruno Haible.
5817
5818         test-fopen-safer: split from test-fopen
5819         * tests/test-fopen.c (main): Move...
5820         * tests/test-fopen.h: ...into new file.
5821         * tests/test-fopen-safer.c: New file.
5822         * modules/fopen-tests (Files): Add test-fopen.h.
5823         * modules/fopen-safer-tests: New file.
5824         Suggested by Bruno Haible.
5825
5826 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
5827
5828         popen-safer: test O_CLOEXEC at run-time.
5829         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
5830
5831 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
5832
5833         fcntl: move more flags to the header
5834         * lib/cloexec.c: Do not define FD_CLOEXEC here.
5835         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
5836         * lib/fcntl.in.h: Do both things here.
5837
5838 2009-08-21  Jim Meyering  <meyering@redhat.com>
5839
5840         consistently remove $@-t before redirecting to it
5841         * modules/argz: Remove $@-t and $@ before redirecting to the former.
5842         * modules/alloca-opt: Likewise.
5843         * modules/byteswap: Likewise.
5844         * modules/fnmatch: Likewise.
5845         * modules/getopt-posix: Likewise.
5846         * modules/glob: Likewise.
5847         * modules/poll: Likewise.
5848         * modules/posix_spawnp-tests: Likewise.
5849         * modules/sys_socket: Likewise.
5850         * modules/sysexits: Likewise.
5851
5852 2009-08-21  Eric Blake  <ebb9@byu.net>
5853
5854         popen: simplify access to original popen
5855         * lib/popen.c (rpl_popen): No need to worry about popen being a
5856         macro.
5857         Reported by Bruno Haible.
5858
5859 2009-08-20  Eric Blake  <ebb9@byu.net>
5860
5861         build: avoid some compiler warnings
5862         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
5863         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
5864         type.
5865         (new_exclude_segment, excluded_file_pattern_p)
5866         (excluded_file_name_p): Reduce scope.
5867         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
5868         old-style declaration.
5869
5870 2009-08-20  Simon Josefsson  <simon@josefsson.org>
5871
5872         * tests/test-exclude1.sh: Handle Windows EOL.
5873         * tests/test-exclude2.sh: Likewise.
5874         * tests/test-exclude3.sh: Likewise.
5875         * tests/test-exclude4.sh: Likewise.
5876         * tests/test-exclude5.sh: Likewise.
5877         * tests/test-exclude6.sh: Likewise.
5878         * tests/test-exclude7.sh: Likewise.
5879
5880 2009-08-19  Akim Demaille  <demaille@gostai.com>
5881
5882         bootstrap: find sha1sum when named gsha1sum.
5883         * bootstrap (find_tool): New.
5884         ($SHA1SUM): New.
5885         Use it.
5886
5887 2009-08-20  Jim Meyering  <meyering@redhat.com>
5888
5889         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
5890         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
5891         expression that converts "." in a file name to "\." in the resulting
5892         regexp.  Start with a dummy statement, so that prior shell variable
5893         definitions are expanded portably.  Reported by Simon Josefsson.
5894
5895 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
5896
5897         Fix polling for writeability of a screen buffer.
5898         * lib/poll.c: Distinguish input and screen buffers for the
5899         Win32 implementation.
5900         * lib/select.c: Likewise.
5901
5902 2009-08-19  Eric Blake  <ebb9@byu.net>
5903
5904         popen-safer: prevent popen from clobbering std descriptors
5905         * modules/popen-safer: New file.
5906         * lib/popen-safer.c: Likewise.
5907         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
5908         * lib/stdio--.h (popen): Provide override.
5909         * lib/stdio-safer.h (popen_safer): Provide declaration.
5910         * tests/test-popen.c (includes): Partially test this.
5911         * modules/popen-safer-tests: New file, for more tests.
5912         * tests/test-popen-safer.c: Likewise.
5913         * MODULES.html.sh (file stream based Input/Output): Mention it.
5914
5915         tests: test some of the *-safer modules
5916         * modules/fopen-safer (Depends-on): Add fopen.
5917         * modules/fcntl-safer (Depends-on): Add fcntl.
5918         * modules/stdlib-safer (Depends-on): Add stdlib.
5919         (configure.ac): Set indicator.
5920         * modules/unistd-safer (configure.ac): Likewise.
5921         * modules/tmpfile-safer (configure.ac): Likewise.
5922         (Depends-on): Add tmpfile.
5923         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
5924         active.
5925         * tests/test-fopen.c (includes): Test safer versions when they are
5926         in use.
5927         * tests/test-open.c (includes): Likewise.
5928
5929         popen: fix cygwin 1.5 bug when stdin closed
5930         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
5931         * modules/popen: New file.
5932         * modules/popen-tests: Likewise.
5933         * tests/test-popen.c: Likewise.
5934         * m4/popen.m4: Likewise.
5935         * lib/popen.c: Likewise.
5936         * lib/stdio.in.h (popen): New declaration.
5937         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
5938         * modules/stdio (Makefile.am): Likewise.
5939         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
5940
5941 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
5942
5943         maint.mk: give full control over update-copyright exclusions
5944         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
5945         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
5946         (update-copyright): Don't force inclusion of top-level
5947         ChangeLog.  Don't force exclusion of all COPYING files, but make
5948         them the default exclusion instead.
5949
5950 2009-08-16  Bruno Haible  <bruno@clisp.org>
5951
5952         Fix test failures on Solaris 10.
5953         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
5954         tests when Solaris iconv() is used.
5955         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
5956         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
5957         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
5958         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
5959         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
5960
5961 2009-08-16  Bruno Haible  <bruno@clisp.org>
5962
5963         Fix test failures on Solaris 10.
5964         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
5965         'tr' program and pass it as first argument.
5966         * tests/test-pipe-filter-gi1.sh: Likewise.
5967         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
5968         program as first argument.
5969         * tests/test-pipe-filter-gi1.c (main): Likewise.
5970
5971 2009-08-16  Eric Blake  <ebb9@byu.net>
5972
5973         fpurge: fix previous commits
5974         * modules/fpurge (Makefile.am): Make replacement conditional,
5975         partially reverting 2007-04-29 change; missed in previous
5976         attempt.
5977         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
5978         is missing.
5979
5980 2009-08-16  Bruno Haible  <bruno@clisp.org>
5981
5982         Clarify fpurge's effect on the file position.
5983         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
5984         * tests/test-fpurge.c (main): Make a second pass for checking the file
5985         position.
5986
5987 2009-08-16  Bruno Haible  <bruno@clisp.org>
5988
5989         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
5990         declaration of fpurge is missing.
5991         * tests/test-fpurge.c (main): Check that the file has not more contents
5992         than expected. Close the file before removing it.
5993
5994 2009-08-15  Eric Blake  <ebb9@byu.net>
5995
5996         fpurge: don't wrap working cygwin implementation
5997         * lib/fpurge.c (fpurge): Fix comment typo.
5998         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
5999         1.7 to avoid replacement.
6000         * tests/test-fpurge.c (main): Enhance test.
6001
6002 2009-08-15  Eric Blake  <ebb9@byu.net>
6003         and Jim Meyering  <meyering@redhat.com>
6004
6005         test-update-copyright: skip if perl is insufficient
6006         * tests/test-update-copyright.sh: Failure to run maintainer tool
6007         should not cause testsuite failure on cygwin 1.5.
6008
6009 2009-08-14  Eric Blake  <ebb9@byu.net>
6010
6011         doc: mention more functions added in cygwin 1.7.0
6012         * doc/posix-headers/limits.texi (limits.h): Update for recent
6013         cygwin additions.
6014         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
6015         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
6016         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
6017         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
6018         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
6019
6020 2009-08-14  Eric Blake  <ebb9@byu.net>
6021
6022         maint.mk: simplify update-copyright rule
6023         * top/maint.mk (update-copyright-local): Delete, and document how
6024         to do it in cfg.mk instead.
6025         (update-copyright-exclude-regexp): Delete, and document how to do
6026         it in .x-update-copyright instead.
6027         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
6028         exclude ChangeLog.
6029
6030 2009-08-14  Bruno Haible  <bruno@clisp.org>
6031
6032         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
6033
6034 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
6035
6036         maint.mk: support update-copyright-env
6037         * top/maint.mk (update-copyright-env): Define place-holder.
6038         (update-copyright): Expand $(update-copyright-env) before
6039         invoking update-copyright.
6040
6041 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
6042
6043         update-copyright: implement forced reformatting
6044         * build-aux/update-copyright: Implement and document
6045         UPDATE_COPYRIGHT_FORCE.
6046         * tests/test-update-copyright.sh: Test it.
6047
6048 2009-08-14  Eric Blake  <ebb9@byu.net>
6049         and Bruno Haible  <bruno@clisp.org>
6050
6051         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
6052         * tests/test-locale.c: Revert previous patch related to NULL.
6053         * tests/test-stdio.c: Likewise.
6054         * tests/test-stdlib.c: Likewise.
6055         * tests/test-string.c: Likewise.
6056         * tests/test-unistd.c: Likewise.
6057         * modules/time-tests (Depends-on): Add verify.
6058         * modules/wchar-tests (Depends-on): Likewise.
6059         * tests/test-time.c: Test for NULL compliance.
6060         * tests/test-wchar.c: Likewise.
6061         * modules/locale (Depends-on): Add stddef.
6062         * modules/stdio (Depends-on): Likewise.
6063         * modules/stdlib (Depends-on): Likewise.
6064         * modules/string (Depends-on): Likewise.
6065         * modules/time (Depends-on): Likewise.
6066         * modules/unistd (Depends-on): Likewise.
6067         * modules/wchar (Depends-on): Likewise.
6068         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
6069         * lib/stdlib.in.h (includes): Likewise.
6070         * lib/string.in.h (includes): Likewise.
6071         * lib/time.in.h (includes): Likewise.
6072         * lib/unistd.in.h (includes): Likewise.
6073         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
6074         replaced.
6075         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6076         * m4/stddef_h.m4: New file.
6077         * modules/stddef: Likewise.
6078         * lib/stddef.in.h: Likewise.
6079         * modules/stddef-tests: Likewise.
6080         * tests/test-stddef.c: Likewise.
6081         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
6082         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
6083         * doc/posix-headers/locale.texi (locale.h): Likewise.
6084         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
6085         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
6086         * doc/posix-headers/string.texi (string.h): Likewise.
6087         * doc/posix-headers/time.texi (time.h): Likewise.
6088         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
6089         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
6090
6091 2009-08-14  Eric Blake  <ebb9@byu.net>
6092
6093         doc: improve git diff of texinfo files
6094         * .gitattributes: Add rule for *.texi files, with hint on how to
6095         use it.
6096         Copied from m4, and based on a report by Bruno Haible.
6097
6098 2009-08-14  Bruno Haible  <bruno@clisp.org>
6099
6100         Disable multithread support by default on Cygwin 1.5.x for real.
6101         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
6102
6103 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
6104
6105         update-copyright: much ado about intervals
6106         * build-aux/update-copyright: Implement and document
6107         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
6108         of copyright year intervals.
6109         Also, document UPDATE_COPYRIGHT_YEAR.
6110         * tests/test-update-copyright.sh: Test it.
6111
6112         update-copyright: convert 2-digit to 4-digit years
6113         * build-aux/update-copyright: Implement and document.
6114         * tests/test-update-copyright.sh: Update.
6115
6116 2009-08-14  Jim Meyering  <meyering@redhat.com>
6117
6118         test-exclude: avoid coreutils "make check" failure
6119         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
6120         just as in test-argmatch.c.
6121
6122 2009-08-13  Eric Blake  <ebb9@byu.net>
6123
6124         test-dup2: fix bad assumption
6125         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
6126         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
6127
6128         test-version-etc: fix CRLF portability issue
6129         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
6130         recognize \r.
6131         * tests/test-argp-version-etc-1.sh: Likewise.
6132
6133         getopt: update client modules
6134         * modules/argp (Depends-on): Use getopt-gnu.
6135         * modules/git-merge-changelog (Depends-on): Likewise.
6136         * modules/long-options (Depends-on): Likewise.
6137         * modules/xstrtol (Depends-on): Likewise.
6138
6139 2009-08-13  Simon Josefsson  <simon@josefsson.org>
6140
6141         * tests/test-version-etc.sh: Don't fail on different
6142         project/version.  Don't fail on CRLF differences.  Rewrite to use
6143         multiple -e instead of multiple sed forks, suggested by Eric Blake
6144         <ebb9@byu.net>.
6145         * tests/test-argp-version-etc-1.sh: Likewise.
6146
6147 2009-08-13  Simon Josefsson  <simon@josefsson.org>
6148
6149         * tests/test-version-etc.sh: Don't fail on different
6150         project/version.
6151
6152 2009-08-12  Bruno Haible  <bruno@clisp.org>
6153
6154         Tests for modules 'getopt-posix', 'getopt-gnu'.
6155         * modules/getopt-posix-tests: New file.
6156         * tests/test-getopt.c: New file.
6157         * tests/test-getopt.h: New file.
6158         * tests/test-getopt_long.h: New file.
6159
6160         New modules 'getopt-posix', 'getopt-gnu'.
6161         * modules/getopt-gnu: New file, renamed from modules/getopt.
6162         * modules/getopt-posix: New file.
6163         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
6164         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
6165         (gl_GETOPT): Remove macro.
6166         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
6167         Disable the test against BSD systems that declare optreset. Test
6168         against mingw bug. Test against lack of support of optional arguments
6169         on many platforms.
6170         * doc/glibc-headers/getopt.texi: Update module name and list of
6171         relevant platforms.
6172         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
6173         'getopt-gnu' and more portability problems.
6174         * NEWS: Mention the changes.
6175
6176 2009-08-12  Bruno Haible  <bruno@clisp.org>
6177
6178         Ensure that optarg etc. get declared by <unistd.h>.
6179         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
6180         AC_USE_SYSTEM_EXTENSIONS.
6181         * modules/getopt (Depends-on): Add 'extensions'.
6182
6183 2009-08-12  Bruno Haible  <bruno@clisp.org>
6184
6185         Avoid test link errors.
6186         * modules/pipe-filter-ii-tests (Makefile.am): Define
6187         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
6188         * modules/pipe-filter-gi-tests (Makefile.am): Define
6189         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
6190         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6191
6192 2009-08-12  Bruno Haible  <bruno@clisp.org>
6193
6194         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
6195         gl_GETOPT_SUBSTITUTE before.
6196         (gl_GETOPT): Use it.
6197         * m4/argp.m4 (gl_ARGP): Update.
6198         Reported by Sergey Poznyakoff.
6199
6200         * m4/getopt.m4: Reorder macros.
6201         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
6202         (gl_GETOPT_SUBSTITUTE): Remove macro.
6203
6204 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
6205
6206         Minor improvement in gitlog-to-changelog
6207
6208         * build-aux/gitlog-to-changelog: New option `--format' makes
6209         output format string configurable.
6210
6211 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
6212
6213         Optimize exclude: use hash tables for non-wildcard patterns.
6214
6215         * lib/exclude.c: Include hash.h and mbuiter.h
6216         (struct exclude_pattern, exclude_segment): New data types.
6217         (struct exclude): Rewrite.
6218         (fnmatch_pattern_has_wildcards): New function.
6219         (new_exclude_segment, free_exclude_segment): New functions.
6220         (excluded_file_pattern_p, excluded_file_name_p): New functions.
6221         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
6222         * lib/exclude.h (is_fnmatch_pattern): New prototype.
6223         * modules/exclude: Depend on hash and mbuiter.
6224
6225         * modules/exclude-tests: New file.
6226         * tests/test-exclude.c: New file.
6227         * tests/test-exclude1.sh: New file.
6228         * tests/test-exclude2.sh: New file.
6229         * tests/test-exclude3.sh: New file.
6230         * tests/test-exclude4.sh: New file.
6231         * tests/test-exclude5.sh: New file.
6232         * tests/test-exclude6.sh: New file.
6233         * tests/test-exclude7.sh: New file.
6234
6235 2009-08-12  Bruno Haible  <bruno@clisp.org>
6236
6237         Ensure that getopt() gets declared by <unistd.h>.
6238         * lib/unistd.in.h: Conditionally include getopt.h.
6239         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
6240         Set GNULIB_UNISTD_H_GETOPT.
6241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6242         GNULIB_UNISTD_H_GETOPT.
6243         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
6244
6245 2009-08-12  Bruno Haible  <bruno@clisp.org>
6246
6247         Clarify logic.
6248         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
6249         gl_replace_getopt instead of GETOPT_H.
6250
6251 2009-08-12  Bruno Haible  <bruno@clisp.org>
6252
6253         * m4/getopt.m4: Add comments.
6254
6255 2009-08-12  Bruno Haible  <bruno@clisp.org>
6256
6257         Disable multithread support by default on Cygwin 1.5.x.
6258         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
6259         set gl_use_threads=no if not specified otherwise.
6260
6261 2009-08-11  Bruno Haible  <bruno@clisp.org>
6262
6263         Avoid compilation error on NetBSD 5.0.
6264         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
6265         * tests/test-stdio.c: Likewise.
6266         * tests/test-stdlib.c: Likewise.
6267         * tests/test-string.c: Likewise.
6268         * tests/test-unistd.c: Likewise.
6269         Reported by Greg Troxel <gdt@ir.bbn.com>
6270         at <https://savannah.gnu.org/support/?106973>.
6271
6272 2009-08-11  Bruno Haible  <bruno@clisp.org>
6273
6274         * modules/dup2-tests (Depends-on): Remove close.
6275
6276         Undo 2009-07-19 commit.
6277         * modules/acl-tests (Depends-on): Remove close.
6278         * modules/binary-io-tests (Depends-on): Likewise.
6279         * modules/closein-tests (Depends-on): Likewise.
6280         * modules/flock-tests (Depends-on): Likewise.
6281         * modules/fsync-tests (Depends-on): Likewise.
6282         * modules/lseek-tests (Depends-on): Likewise.
6283         * modules/pipe-tests (Depends-on): Likewise.
6284         * modules/posix_spawn-tests (Depends-on): Likewise.
6285         * modules/posix_spawnp-tests (Depends-on): Likewise.
6286         * modules/stat-time-tests (Depends-on): Likewise.
6287         * modules/yesno-tests (Depends-on): Likewise.
6288
6289 2009-08-10  Bruno Haible  <bruno@clisp.org>
6290
6291         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
6292
6293 2009-08-10  Bruno Haible  <bruno@clisp.org>
6294
6295         Fix a gcc warning.
6296         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
6297
6298 2009-08-10  Bruno Haible  <bruno@clisp.org>
6299
6300         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
6301         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
6302         not only the first time.
6303         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
6304         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
6305         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
6306         is 1, not only the the first time.
6307
6308 2009-08-10  Bruno Haible  <bruno@clisp.org>
6309
6310         Make it possible to use module 'gethostname' without module 'close'.
6311         * lib/unistd.in.h (close): Evoke a link error only if
6312         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
6313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6314         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
6315         * modules/unistd (Makefile.am): Substitute
6316         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
6317         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
6318         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
6319         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
6320         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
6321         * modules/sys_ioctl (Makefile.am): Substitute
6322         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
6323         * modules/socket (configure.ac): On native Windows, set
6324         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
6325         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
6326         Reported by Sam Steingold <sds@gnu.org>.
6327
6328 2009-08-10  Bruno Haible  <bruno@clisp.org>
6329
6330         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
6331         * modules/ioctl (configure.ac): Likewise.
6332
6333 2009-08-10  Bruno Haible  <bruno@clisp.org>
6334
6335         Avoid collision between gnulib wrapper and libintl wrapper.
6336         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
6337         already defined in intl/printf.c.
6338         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
6339         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
6340
6341 2009-08-09  Bruno Haible  <bruno@clisp.org>
6342
6343         Make <sys/select.h> really self-contained, also on Solaris 10.
6344         * lib/sys_select.in.h: Include <string.h>.
6345         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
6346         Solaris 10 problem.
6347         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
6348         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
6349         Reported by Jim Meyering.
6350
6351 2009-08-09  Bruno Haible  <bruno@clisp.org>
6352
6353         Avoid warnings from 'aclocal' that are due to a use of macro name
6354         AM_XGETTEXT_OPTION that is not defined in automake.
6355         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
6356         automake.
6357         * modules/error (configure.ac): Likewise.
6358         * modules/propername (configure.ac): Likewise.
6359         * modules/vasprintf (configure.ac): Likewise.
6360         * modules/verror (configure.ac): Likewise.
6361         * modules/xprintf (configure.ac): Likewise.
6362         * modules/xvasprintf (configure.ac): Likewise.
6363
6364 2009-08-08  Bruno Haible  <bruno@clisp.org>
6365
6366         Avoid compilation error in C++ mode.
6367         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
6368         Reported by Sam Steingold <sds@gnu.org>.
6369
6370 2009-08-08  Bruno Haible  <bruno@clisp.org>
6371
6372         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
6373         for the various Unix platforms.
6374         * doc/posix-headers/limits.texi: Update platforms list regarding
6375         HOST_NAME_MAX.
6376         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6377
6378 2009-08-07  Jim Meyering  <meyering@redhat.com>
6379
6380         selinux-at: fix typo in a comment
6381         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
6382         Spotted by Paolo Bonzini.
6383
6384         selinux-at: remove redundant m4 code, add documentation
6385         * modules/selinux-at (configure.ac): Remove redundant code.
6386         LIB_SELINUX is already set via the dependent module, selinux-h.
6387         (Include): Add quotes around selinux-at.h.
6388         * lib/selinux-at.h: Add documentation.
6389         Reported by Bruno Haible in
6390         http://marc.info/?l=gnulib-bug&m=124958988300749
6391
6392 2009-08-07  Bruno Haible  <bruno@clisp.org>
6393
6394         Avoid link error on MacOS X 10.3 and 10.4.
6395         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
6396         on non-ELF systems.
6397         * lib/argp-pv.c (argp_program_version): Likewise.
6398         Reported by Simon Josefsson.
6399
6400 2009-08-07  Simon Josefsson  <simon@josefsson.org>
6401
6402         * tests/test-version-etc.sh: Use $EXEEXT.
6403
6404 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
6405
6406         update-copyright: update documentation to point to maint.mk
6407         * build-aux/update-copyright: Here.
6408
6409 2009-08-06  Jim Meyering  <meyering@redhat.com>
6410
6411         maint.mk: support update-copyright-local
6412         * top/maint.mk (update-copyright-local): Define place-holder.
6413         (update-copyright): Depend on $(update-copyright-local).
6414
6415 2009-08-06  Jim Meyering  <meyering@redhat.com>
6416
6417         selinux-at: new module
6418         Initially written for coreutils, this module will soon be
6419         used by findutils, too.
6420         * MODULES.html.sh [Misc]: Add selinux-at.
6421         * lib/selinux-at.h: New file, from coreutils.
6422         * lib/selinux-at.c: Likewise.
6423         * modules/selinux-at: Likewise.
6424         (License): Change from LGPL to GPL, since it depends
6425         on the GPL'd openat module.
6426
6427         doc: update README
6428         * README: Remove references to cogito.
6429         Remove cvs-repo-updating instructions from 2007.
6430         Don't imply that CVS is better if you have limited disk space.
6431
6432 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
6433
6434         update-copyright: support C-style comments
6435         * build-aux/update-copyright: Implement and document.
6436         * tests/test-update-copyright.sh: Test.
6437
6438 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
6439
6440         update-copyright: support omitted "(C)"
6441         * build-aux/update-copyright: Implement and document.  Also,
6442         allow variable whitespace before "(C)".
6443         * tests/test-update-copyright.sh: Test.
6444
6445 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
6446
6447         update-copyright: don't trip on non-FSF copyright statements
6448         * build-aux/update-copyright: Fix so that the first correctly
6449         formatted FSF copyright statement is recognized no matter what
6450         appears before it.  Update documentation.
6451         * tests/test-update-copyright.sh: Test that.
6452
6453 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
6454
6455         update-copyright: clean up code a little
6456         * build-aux/update-copyright: Append "_re" to the name of any
6457         variable holding a regular expression.
6458         Replace "old" and "new" with "stmt" in variable names.
6459         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
6460         handled correctly.
6461         Format code more consistently.
6462
6463 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
6464
6465         update-copyright-tests: improve portability
6466         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
6467         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
6468
6469 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
6470
6471         update-copyright: support @copyright{} and &copy;
6472         * build-aux/update-copyright: Implement and document.
6473         * tests/test-update-copyright.sh: Test.
6474
6475 2009-08-04  Jim Meyering  <meyering@redhat.com>
6476
6477         update-copyright-tests: correctly test EOL=\r\n handling
6478         * tests/test-update-copyright.sh: Put \r at the end of some lines
6479         for the dos-eol tests.  Based on a patch by Joel E. Denny.
6480
6481         maint.mk: make update-copyright exclusion list more configurable
6482         * top/maint.mk (update-copyright): Default to excluding COPYING,
6483         but allow an override, in case someone does want to update that file.
6484
6485         maint.mk: don't update copyright date in COPYING
6486         * top/maint.mk (update-copyright): Exclude COPYING.
6487
6488         maint.mk: add a copyright-updating rule
6489         * top/maint.mk (update-copyright): New rule.
6490         Derived from coreutils/Makefile.am.
6491
6492         update-copyright: rename some variables
6493         * build-aux/update-copyright: Rename a few variables for clarity.
6494         Tweak syntax.  List Joel E. Denny as coauthor.
6495
6496 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
6497
6498         update-copyright: fix bug for 2-digit last year and add tests
6499         * build-aux/update-copyright: Fix bug.
6500         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
6501         specified.
6502         * modules/update-copyright-tests: New
6503         * tests/test-update-copyright.sh: New.
6504
6505 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
6506
6507         update-copyright: handle leading tabs in line prefix
6508         * build-aux/update-copyright: Count leading tabs as 8 spaces
6509         when computing margin.  This helps with the formatting of
6510         ChangeLogs, for example.
6511         Fix documentation a little.
6512
6513 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
6514
6515         update-copyright: support EOL=\r\n
6516         * build-aux/update-copyright: Implement that.
6517
6518 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
6519
6520         update-copyright: automatically format copyright statements
6521         * build-aux/update-copyright: Implement that.
6522         Also, be a little more predictable and safer by always failing
6523         when the full copyright format is not perfectly recognized as an
6524         unbroken whole.  Discussed at
6525         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
6526         Rewrite documentation.
6527
6528 2009-08-03  Bruno Haible  <bruno@clisp.org>
6529
6530         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
6531
6532 2009-08-02  Bruno Haible  <bruno@clisp.org>
6533
6534         Tests for module 'uname'.
6535         * modules/uname-tests: New file.
6536         * tests/test-uname.c: New file.
6537
6538         New module 'uname'.
6539         * lib/uname.c: New file.
6540         * m4/uname.m4: New file.
6541         * modules/uname: New file.
6542         * doc/posix-functions/uname.texi: Mention the new module.
6543
6544 2009-08-02  Bruno Haible  <bruno@clisp.org>
6545
6546         Tests for module 'sys_utsname'.
6547         * modules/sys_utsname-tests: New file.
6548         * tests/test-sys_utsname.c: New file.
6549
6550         New module 'sys_utsname'.
6551         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
6552         * m4/sys_utsname_h.m4: New file.
6553         * modules/sys_utsname: New file.
6554         * doc/posix-headers/sys_utsname.texi: Mention the new module.
6555
6556 2009-08-02  Bruno Haible  <bruno@clisp.org>
6557
6558         Implicitly initialize the sockets library.
6559         * lib/gethostname.c: Include sockets.h.
6560         (rpl_gethostname): Invoke gl_sockets_startup.
6561         * lib/socket.c: Include sockets.h.
6562         (rpl_socket): Invoke gl_sockets_startup.
6563         * modules/gethostname (Depends-on): Add sockets.
6564         * modules/socket (Depends-on): Likewise.
6565         * tests/test-poll.c: Don't include sockets.h.
6566         (main): Don't invoke gl_sockets_startup.
6567         * tests/test-select.c: Don't include sockets.h.
6568         (main): Don't invoke gl_sockets_startup.
6569
6570 2009-08-02  Bruno Haible  <bruno@clisp.org>
6571
6572         Allow multiple calls to gl_sockets_startup.
6573         * lib/sockets.c (initialized_sockets_version): New variable.
6574         (gl_sockets_startup): Do nothing if already called for this or a higher
6575         version.
6576         (gl_sockets_cleanup): Reset initialized_sockets_version.
6577
6578 2009-08-03  Simon Josefsson  <simon@josefsson.org>
6579
6580         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
6581         different project/version.
6582
6583 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
6584             Bruno Haible  <bruno@clisp.org>
6585
6586         Tests for module 'pipe-filter-gi'.
6587         * modules/pipe-filter-gi-tests: New file.
6588         * tests/test-pipe-filter-gi1.sh: New file.
6589         * tests/test-pipe-filter-gi1.c: New file.
6590         * tests/test-pipe-filter-gi2.sh: New file.
6591         * tests/test-pipe-filter-gi2-main.c: New file.
6592         * tests/test-pipe-filter-gi2-child.c: New file.
6593
6594         New module 'pipe-filter-gi'.
6595         * lib/pipe-filter-gi.c: New file.
6596         * modules/pipe-filter-gi: New file.
6597
6598 2009-08-02  Bruno Haible  <bruno@clisp.org>
6599             Paolo Bonzini  <bonzini@gnu.org>
6600
6601         Tests for module 'pipe-filter-ii'.
6602         * modules/pipe-filter-ii-tests: New file.
6603         * tests/test-pipe-filter-ii1.sh: New file.
6604         * tests/test-pipe-filter-ii1.c: New file.
6605         * tests/test-pipe-filter-ii2.sh: New file.
6606         * tests/test-pipe-filter-ii2-main.c: New file.
6607         * tests/test-pipe-filter-ii2-child.c: New file.
6608
6609         New module 'pipe-filter-ii'.
6610         * lib/pipe-filter.h: New file.
6611         * lib/pipe-filter-ii.c: New file.
6612         * lib/pipe-filter-aux.h: New file.
6613         * modules/pipe-filter-ii: New file.
6614
6615 2009-08-02  Simon Josefsson  <simon@josefsson.org>
6616
6617         * lib/gc-libgcrypt.c: Change copyright to FSF.
6618         * lib/gc-gnulib.c: Likewise.
6619
6620 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
6621
6622         * lib/gethostname.c: Include limits.h.
6623
6624 2009-08-02  Simon Josefsson  <simon@josefsson.org>
6625             Bruno Haible  <bruno@clisp.org>
6626
6627         Ensure HOST_NAME_MAX as part of the gethostname module.
6628         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
6629         define also HOST_NAME_MAX.
6630         * tests/test-gethostname.c: Include <limits.h>.
6631         (main): Check also HOST_NAME_MAX.
6632         * doc/posix-headers/limits.texi: Document the mingw problem.
6633
6634 2009-08-02  Bruno Haible  <bruno@clisp.org>
6635
6636         * lib/gethostname.c (gethostname): Fix handling of large len argument.
6637         Add comments.
6638
6639 2009-03-31  Simon Josefsson  <simon@josefsson.org>
6640
6641         * lib/gethostname.c: Add Windows wrapper.
6642         * m4/gethostname.m4: Look for gethostname in -lws2_32.
6643         * modules/gethostname: Depend on sys_socket & errno, for also
6644         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
6645         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
6646
6647 2009-07-31  Jim Meyering  <meyering@redhat.com>
6648
6649         getloadavg: fix symbol name in comment
6650         * lib/getloadavg.c: Correct a typo I introduced when adding
6651         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
6652         Matt Kraai spotted the problem.
6653
6654 2009-07-29  Matt Kraai  <mkraai@beckman.com>
6655
6656         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
6657         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
6658         code also if ! defined N_NAME_POINTER.
6659         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
6660         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
6661         but the n_name member is a 12-byte array.
6662
6663 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
6664
6665         update-copyright: generalize comment handling
6666         * build-aux/update-copyright: Handle copyright statements
6667         within more comment styles.
6668         Document usage.
6669         Report any file with an external copyright holder or parse failure.
6670
6671 2009-07-29  Jim Meyering  <meyering@redhat.com>
6672
6673         mktime: correct setting of REPLACE_MKTIME
6674         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
6675
6676         update-copyright: new module
6677         * modules/update-copyright: New file.
6678         * build-aux/update-copyright: New file.
6679         * MODULES.html.sh (maint+release support): Add update-copyright.
6680
6681 2009-07-27  Bruno Haible  <bruno@clisp.org>
6682
6683         Fix compilation error when <ctime> is used and mktime is replaced.
6684         * lib/time.in.h (mktime): New declaration.
6685         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
6686         REPLACE_MKTIME instead of defining mktime in config.h.
6687         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
6688         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
6689         Reported by Ross McFarland <rwmcfa1@neces.com>.
6690
6691 2009-07-27  Bruno Haible  <bruno@clisp.org>
6692
6693         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
6694         Reported by Matt Kraai <mkraai@beckman.com>.
6695
6696 2009-07-25  Jim Meyering  <meyering@redhat.com>
6697
6698         maint.mk: avoid warnings about missing files
6699         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
6700         diagnostic when .prev-version does not exist.
6701         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
6702         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
6703         nonexistent cfg.mk.
6704         Suggestions from Simon Josefsson.
6705
6706 2009-07-25  Bruno Haible  <bruno@clisp.org>
6707
6708         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
6709         defined as macros. Needed on QNX 6.4.1.
6710         Reported by Matt Kraai <mkraai@beckman.com>.
6711
6712 2009-07-23  Jim Meyering  <meyering@redhat.com>
6713
6714         maint.mk: invoke "make dist" with a working value of XZ_OPT
6715         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
6716
6717 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
6718
6719         Make fseeko.c compile on QNX.
6720         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
6721
6722 2009-07-22  Peter Simons  <simons@cryp.to>
6723
6724         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
6725         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
6726         * lib/md4.h: Likewise.
6727         * lib/md5.h: Likewise.
6728         * lib/sha1.h: Likewise.
6729         * lib/sha256.h: Likewise.
6730         * lib/sha512.h: Likewise.
6731
6732         tests-sha1: don't assign literal string to 'char *' variable
6733         * tests/test-sha1.c (main): Declare locals with "const" to match
6734         attributes of the right hand side.
6735
6736 2009-07-21  Eric Blake  <ebb9@byu.net>
6737
6738         dup2: fix more mingw problems
6739         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
6740         fd to itself.
6741         * doc/posix-functions/dup2.texi (dup2): Document the bug.
6742         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
6743         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
6744         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
6745         care of mingw bugs.
6746
6747 2009-07-21  Jim Meyering  <meyering@redhat.com>
6748
6749         vc-list-files: avoid failure when /bin/sh is dash
6750         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
6751         On some Debian based systems, /bin/sh is a symlink to dash, and running
6752         this command would omit the "/" following each 'tests' prefix:
6753           dash -x build-aux/vc-list-files -C . tests
6754         That is because bash and dash work differently:
6755           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
6756           bash ok
6757           dash odd
6758
6759 2009-07-21  Eric Blake  <ebb9@byu.net>
6760
6761         dup2-tests: test previous patch
6762         * modules/dup2-tests: New file.
6763         * tests/test-dup2.c: Likewise.
6764         * tests/test-open.c (main): Avoid unspecified behavior.
6765         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
6766         test.
6767
6768         dup2: work around mingw and cygwin 1.5 bug
6769         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
6770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6771         * modules/unistd (Makefile.am): Substitute it.
6772         * lib/unistd.in.h (dup2): Declare the replacement.
6773         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
6774         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
6775         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
6776         * modules/execute (Depends-on): Add dup2.
6777         * modules/fseterr (Depends-on): Likewise.
6778         * modules/pipe (Depends-on): Likewise.
6779         * modules/posix_spawn-internal (Depends-on): Likewise.
6780
6781 2009-07-21  Bruno Haible  <bruno@clisp.org>
6782
6783         * modules/.gitattributes: New file.
6784
6785 2009-07-20  Bruno Haible  <bruno@clisp.org>
6786
6787         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
6788         (main): Use it.
6789
6790 2009-07-20  Eric Blake  <ebb9@byu.net>
6791
6792         test-pipe: make a bit more robust.
6793         * tests/test-pipe.c (myerr): Allow error messages regardless of
6794         what we do to stderr.
6795         (test_pipe): Rearrange to avoid deadlock.
6796         (child_main): Try a larger read, to ensure we avoided deadlock.
6797         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
6798         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
6799         if misused.
6800
6801 2009-07-19  Jim Meyering  <meyering@redhat.com>
6802
6803         fts: avoid false-positive cycle-detection
6804         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
6805         for each new command line argument.
6806
6807 2009-07-19  Bruno Haible  <bruno@clisp.org>
6808
6809         Fix build error on mingw with the modules sys_select and unistd.
6810         * modules/acl-tests (Depends-on): Add close.
6811         * modules/binary-io-tests (Depends-on): Likewise.
6812         * modules/closein-tests (Depends-on): Likewise.
6813         * modules/flock-tests (Depends-on): Likewise.
6814         * modules/fsync-tests (Depends-on): Likewise.
6815         * modules/lseek-tests (Depends-on): Likewise.
6816         * modules/pipe-tests (Depends-on): Likewise.
6817         * modules/posix_spawn-tests (Depends-on): Likewise.
6818         * modules/posix_spawnp-tests (Depends-on): Likewise.
6819         * modules/stat-time-tests (Depends-on): Likewise.
6820         * modules/yesno-tests (Depends-on): Likewise.
6821
6822 2009-07-19  Bruno Haible  <bruno@clisp.org>
6823
6824         Unify conditionals.
6825         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
6826         macros, not at the compiler macros.
6827         * lib/pipe.c: Likewise.
6828         * lib/execute.c: Likewise.
6829         * lib/spawni.c: Likewise.
6830
6831 2009-07-19  Bruno Haible  <bruno@clisp.org>
6832
6833         Fix handling of closed stdin/stdout/stderr on mingw.
6834         * lib/w32spawn.h: Include unistd.h.
6835         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
6836         file descriptor with O_NOINHERIT flag.
6837         (fd_safer_noinherit): New function, based on fd-safer.c.
6838         (dup_safer_noinherit): New function, based on dup-safer.c.
6839         (undup_safer_noinherit): New function.
6840         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
6841         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
6842         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
6843         instead of fd_safer.
6844         * tests/test-pipe.c: Include <windows.h>.
6845         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
6846
6847         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
6848         from main.
6849         (test_pipe): Pass an extra argument for disambiguation.
6850         (main): Invoke parent_main or child_main.
6851
6852         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
6853         consistently.
6854
6855 2009-07-18  Eric Blake  <ebb9@byu.net>
6856
6857         test-pipe: fix mingw build
6858         * tests/test-pipe.c (main): Avoid fcntl on mingw.
6859
6860 2009-07-18  Bruno Haible  <bruno@clisp.org>
6861
6862         * modules/pipe-tests (Makefile.am): Fix typo.
6863
6864 2009-07-18  Eric Blake  <ebb9@byu.net>
6865
6866         error: fix mingw build
6867         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
6868         Reported by Bruno Haible.
6869
6870         error: avoid undefined use of stdout
6871         * lib/error.c (error, error_at_line): Check that fd 1 is open
6872         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
6873         is handling faults and the close_stdout module wants to report the
6874         detection of closed stdout as an error.
6875
6876 2009-07-17  Eric Blake  <ebb9@byu.net>
6877
6878         pipe: be robust in face of closed fds
6879         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
6880         should cause child to misbehave.
6881         * modules/pipe-tests: New module.
6882         * tests/test-pipe.c: New file.
6883         * tests/test-pipe.sh: New file.
6884         Reported by Akim Demaille.
6885
6886 2009-07-14  Bruno Haible  <bruno@clisp.org>
6887
6888         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
6889         Reported by anonymous kc.
6890
6891 2009-07-07  Jim Meyering  <meyering@redhat.com>
6892
6893         maint.mk: don't look for translatable strings in *.m4 or *.mk
6894         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
6895         when searching for translatable strings.
6896
6897 2009-07-05  Jim Meyering  <meyering@redhat.com>
6898
6899         remove superfluous parentheses in STREQ definition
6900         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
6901         * lib/getugroups.c (STREQ): Likewise.
6902         * lib/fnmatch.c (STREQ): Likewise.
6903         Spotted by Bruno Haible.
6904
6905 2009-07-04  Jim Meyering  <meyering@redhat.com>
6906
6907         argv-iter: new module
6908         * MODULES.html.sh: Add argv-iter.
6909         * lib/argv-iter.c, lib/argv-iter.h: New files.
6910         * modules/argv-iter: New file.
6911         * modules/argv-iter-tests: New file.
6912         * tests/test-argv-iter.c: Test it.
6913
6914 2009-07-04  Bruno Haible  <bruno@clisp.org>
6915
6916         Fix assertion.
6917         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
6918         contains more exact copies of a given entry than file2, leave the extra
6919         copies unpaired rather than aborting.
6920         Reported by Eric Blake.
6921
6922 2009-07-02  Bruno Haible  <bruno@clisp.org>
6923
6924         Speedup git-merge-changelog for git cherry-pick.
6925         * lib/git-merge-changelog.c (struct entries_mapping): New type.
6926         (entries_mapping_get): New function, extracted from compute_mapping.
6927         (entries_mapping_reverse_get): New function.
6928         (compute_mapping): Add a 'full' argument. Return the result in a
6929         'struct entries_mapping'.
6930         (main): Update. Access the mappings through entries_mapping_get.
6931         Reported by Eric Blake.
6932
6933 2009-07-02  Bruno Haible  <bruno@clisp.org>
6934
6935         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
6936         best_i.
6937
6938 2009-07-02  Bruno Haible  <bruno@clisp.org>
6939
6940         Speed up approximate search for matching ChangeLog entries.
6941         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
6942         argument. Call fstrcmp_bounded instead of fstrcmp.
6943         (compute_mapping, try_split_merged_entry, main): Update callers.
6944
6945 2009-07-02  Bruno Haible  <bruno@clisp.org>
6946
6947         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
6948
6949 2009-06-30  Bruno Haible  <bruno@clisp.org>
6950
6951         Reduce the number of uc_is_cased calls.
6952         * lib/unicase.h (casing_suffix_context_t): Add
6953         'first_char_except_ignorable' field.
6954         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
6955         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
6956         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
6957         Update initializer.
6958         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
6959         case-ignorable characters.
6960         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
6961         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
6962         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
6963         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
6964         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
6965
6966 2009-06-30  Bruno Haible  <bruno@clisp.org>
6967
6968         Tests for module 'unicase/ignorable'.
6969         * modules/unicase/ignorable-tests: New file.
6970         * tests/unicase/test-ignorable.c: New file, generated by
6971         gen-uni-tables.
6972
6973         Tests for module 'unicase/cased'.
6974         * modules/unicase/cased-tests: New file.
6975         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
6976         * tests/unicase/test-predicate-part1.h: New file, derived from
6977         tests/unictype/test-predicate-part1.h.
6978         * tests/unicase/test-predicate-part2.h: New file, same as
6979         tests/unictype/test-predicate-part2.h.
6980
6981         Fix evaluation of "Before C" condition of FINAL_SIGMA.
6982         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
6983         (output_casing_properties): New function.
6984         (main): Call it.
6985         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
6986         * lib/unicase/cased.c: Include unictype/bitmap.h.
6987         (uc_is_cased): Define through a bitmap lookup.
6988         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
6989         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
6990         (uc_is_case_ignorable): Define through a bitmap lookup.
6991         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
6992         lib/unictype/bitmap.h.
6993         (Depends-on): Add inline. Clean up.
6994         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
6995         lib/unictype/bitmap.h.
6996         (Depends-on): Add inline. Clean up.
6997         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
6998         recognition.
6999         * tests/unicase/test-u16-tolower.c (main): Likewise.
7000         * tests/unicase/test-u32-tolower.c (main): Likewise.
7001
7002 2009-06-30  Bruno Haible  <bruno@clisp.org>
7003
7004         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
7005         * lib/unicase/u16-casemap.c: Likewise.
7006         * lib/unicase/u32-casemap.c: Likewise.
7007
7008 2009-06-29  Bruno Haible  <bruno@clisp.org>
7009
7010         Define u32_casefold as a wrapper around u32_ct_casefold.
7011         * lib/unicase/u32-casefold.c: Update.
7012         * modules/unicase/u32-casefold (Depends-on): Add
7013         unicase/u32-ct-casefold, unicase/empty-prefix-context,
7014         unicase/empty-suffix-context. Clean up.
7015
7016         Define u16_casefold as a wrapper around u16_ct_casefold.
7017         * lib/unicase/u16-casefold.c: Update.
7018         * modules/unicase/u16-casefold (Depends-on): Add
7019         unicase/u16-ct-casefold, unicase/empty-prefix-context,
7020         unicase/empty-suffix-context. Clean up.
7021
7022         Define u8_casefold as a wrapper around u8_ct_casefold.
7023         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
7024         * lib/unicase/u8-casefold.c: Update.
7025         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
7026         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
7027
7028         Define u32_totitle as a wrapper around u32_ct_totitle.
7029         * lib/unicase/u32-totitle.c: Update.
7030         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
7031         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
7032
7033         Define u16_totitle as a wrapper around u16_ct_totitle.
7034         * lib/unicase/u16-totitle.c: Update.
7035         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
7036         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
7037
7038         Define u8_totitle as a wrapper around u8_ct_totitle.
7039         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
7040         functions.
7041         (FUNC): Delegate to U_CT_TOTITLE.
7042         * lib/unicase/u8-totitle.c: Update.
7043         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
7044         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
7045
7046         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
7047         invocation.
7048         * modules/unicase/u32-tolower (Depends-on): Add
7049         unicase/empty-prefix-context, unicase/empty-suffix-context.
7050
7051         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
7052         invocation.
7053         * modules/unicase/u16-tolower (Depends-on): Add
7054         unicase/empty-prefix-context, unicase/empty-suffix-context.
7055
7056         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
7057         * modules/unicase/u8-tolower (Depends-on): Add
7058         unicase/empty-prefix-context, unicase/empty-suffix-context.
7059
7060         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
7061         invocation.
7062         * modules/unicase/u32-toupper (Depends-on): Add
7063         unicase/empty-prefix-context, unicase/empty-suffix-context.
7064
7065         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
7066         invocation.
7067         * modules/unicase/u16-toupper (Depends-on): Add
7068         unicase/empty-prefix-context, unicase/empty-suffix-context.
7069
7070         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
7071         * modules/unicase/u8-toupper (Depends-on): Add
7072         unicase/empty-prefix-context, unicase/empty-suffix-context.
7073
7074         New module 'unicase/u32-ct-casefold'.
7075         * lib/unicase/u32-ct-casefold.c: New file.
7076         * modules/unicase/u32-ct-casefold: New file.
7077
7078         New module 'unicase/u16-ct-casefold'.
7079         * lib/unicase/u16-ct-casefold.c: New file.
7080         * modules/unicase/u16-ct-casefold: New file.
7081
7082         New module 'unicase/u8-ct-casefold'.
7083         * lib/unicase/u8-ct-casefold.c: New file.
7084         * lib/unicase/u-ct-casefold.h: New file, derived from
7085         lib/unicase/u-casefold.h.
7086         * modules/unicase/u8-ct-casefold: New file.
7087
7088         New module 'unicase/u32-ct-totitle'.
7089         * lib/unicase/u32-ct-totitle.c: New file.
7090         * modules/unicase/u32-ct-totitle: New file.
7091
7092         New module 'unicase/u16-ct-totitle'.
7093         * lib/unicase/u16-ct-totitle.c: New file.
7094         * modules/unicase/u16-ct-totitle: New file.
7095
7096         New module 'unicase/u8-ct-totitle'.
7097         * lib/unicase/u8-ct-totitle.c: New file.
7098         * lib/unicase/u-ct-totitle.h: New file, derived from
7099         lib/unicase/u-totitle.h.
7100         * modules/unicase/u8-ct-totitle: New file.
7101
7102         New module 'unicase/u32-ct-tolower'.
7103         * lib/unicase/u32-ct-tolower.c: New file.
7104         * modules/unicase/u32-ct-tolower: New file.
7105
7106         New module 'unicase/u16-ct-tolower'.
7107         * lib/unicase/u16-ct-tolower.c: New file.
7108         * modules/unicase/u16-ct-tolower: New file.
7109
7110         New module 'unicase/u8-ct-tolower'.
7111         * lib/unicase/u8-ct-tolower.c: New file.
7112         * modules/unicase/u8-ct-tolower: New file.
7113
7114         New module 'unicase/u32-ct-toupper'.
7115         * lib/unicase/u32-ct-toupper.c: New file.
7116         * modules/unicase/u32-ct-toupper: New file.
7117
7118         New module 'unicase/u16-ct-toupper'.
7119         * lib/unicase/u16-ct-toupper.c: New file.
7120         * modules/unicase/u16-ct-toupper: New file.
7121
7122         New module 'unicase/u8-ct-toupper'.
7123         * lib/unicase/u8-ct-toupper.c: New file.
7124         * modules/unicase/u8-ct-toupper: New file.
7125
7126         Add context arguments to u*_casemap functions.
7127         * lib/unicase/unicasemap.h: Include unicase.h.
7128         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
7129         suffix_context arguments.
7130         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
7131         functions.
7132         (FUNC): Add prefix_context and suffix_context arguments. Use
7133         uc_is_cased and uc_is_case_ignorable.
7134         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
7135         * lib/unicase/u16-casemap.c: Likewise.
7136         * lib/unicase/u32-casemap.c: Likewise.
7137         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
7138         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
7139         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
7140         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
7141         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
7142         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
7143
7144         New module 'unicase/u32-suffix-context'.
7145         * lib/unicase/u32-suffix-context.c: New file.
7146         * modules/unicase/u32-suffix-context: New file.
7147
7148         New module 'unicase/u16-suffix-context'.
7149         * lib/unicase/u16-suffix-context.c: New file.
7150         * modules/unicase/u16-suffix-context: New file.
7151
7152         New module 'unicase/u8-suffix-context'.
7153         * lib/unicase/u8-suffix-context.c: New file.
7154         * lib/unicase/u-suffix-context.h: New file.
7155         * modules/unicase/u8-suffix-context: New file.
7156
7157         New module 'unicase/empty-suffix-context'.
7158         * lib/unicase/empty-suffix-context.c: New file.
7159         * modules/unicase/empty-suffix-context: New file.
7160
7161         New module 'unicase/u32-prefix-context'.
7162         * lib/unicase/u32-prefix-context.c: New file.
7163         * modules/unicase/u32-prefix-context: New file.
7164
7165         New module 'unicase/u16-prefix-context'.
7166         * lib/unicase/u16-prefix-context.c: New file.
7167         * modules/unicase/u16-prefix-context: New file.
7168
7169         New module 'unicase/u8-prefix-context'.
7170         * lib/unicase/u8-prefix-context.c: New file.
7171         * lib/unicase/u-prefix-context.h: New file.
7172         * lib/unicase/context.h: New file.
7173         * modules/unicase/u8-prefix-context: New file.
7174
7175         New module 'unicase/empty-prefix-context'.
7176         * lib/unicase/empty-prefix-context.c: New file.
7177         * modules/unicase/empty-prefix-context: New file.
7178
7179         New module 'unicase/ignorable'.
7180         * lib/unicase/ignorable.c: New file.
7181         * modules/unicase/ignorable: New file.
7182
7183         New module 'unicase/cased'.
7184         * lib/unicase/caseprop.h: New file.
7185         * lib/unicase/cased.c: New file.
7186         * modules/unicase/cased: New file.
7187
7188         New functions for case mapping of substrings.
7189         * lib/unicase.h (casing_prefix_context_t): New type.
7190         (unicase_empty_prefix_context): New variable.
7191         (u8_casing_prefix_context, u16_casing_prefix_context,
7192         u32_casing_prefix_context, u8_casing_prefixes_context,
7193         u16_casing_prefixes_context, u32_casing_prefixes_context): New
7194         declarations.
7195         (casing_suffix_context_t): New type.
7196         (unicase_empty_suffix_context): New variable.
7197         (u8_casing_suffix_context, u16_casing_suffix_context,
7198         u32_casing_suffix_context, u8_casing_suffixes_context,
7199         u16_casing_suffixes_context, u32_casing_suffixes_context,
7200         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
7201         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
7202         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
7203         declarations.
7204
7205 2009-06-28  Jim Meyering  <meyering@redhat.com>
7206
7207         boostrap: indent only with spaces
7208         * build-aux/bootstrap: Indent only with spaces, never TABs.
7209
7210         bootstrap: split long lines
7211         * build-aux/bootstrap: Keep line length < 80.
7212
7213         bootstrap: sync from coreutils
7214         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
7215         just as autoreconf does.  Verify a list of prerequisite
7216         package-name,version-number pairs if defined in bootstrap.conf.
7217         Refer to README-prereq, if prerequisites are not satisfied.
7218
7219 2009-06-27  Eric Blake  <ebb9@byu.net>
7220
7221         tests: add test for bogus NULL definition
7222         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
7223         * tests/test-stdlib.c: Likewise.
7224         * tests/test-string.c: Likewise.
7225         * tests/test-locale.c: Likewise.
7226         * tests/test-unistd.c: Likewise.
7227         * modules/stdio-tests (Depends-on): Add verify.
7228         * modules/stdlib-tests (Depends-on): Likewise.
7229         * modules/string-tests (Depends-on): Likewise.
7230         * modules/locale-tests (Depends-on): Likewise.
7231         * modules/unistd-tests (Depends-on): Likewise.
7232
7233 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
7234
7235         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
7236         self-explaining comment.
7237         * m4/selinux-selinux-h: Update serial.
7238         (gl_LIBSELINUX): New macro, adding a warning for missing development
7239         packages to code extracted from...
7240         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
7241         Add warning for missing development packages here, too.
7242
7243 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
7244
7245         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
7246
7247 2009-06-25  Eric Blake  <ebb9@byu.net>
7248
7249         version-etc: fix regression
7250         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
7251         gcc.
7252         (version_etc): Use it, to catch bugs with trailing NULL.
7253         * lib/version-etc.c (version_etc_arn): Delete unused argument.
7254         (version_etc_va): Fix logic bug.
7255         * modules/version-etc-tests: Add test.
7256         * tests/test-version-etc.c: New file.
7257         * tests/test-version-etc.sh: Likewise.
7258
7259 2009-06-25  Sam Steingold  <sds@gnu.org>
7260
7261         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
7262         mbtowc declaration.
7263
7264 2009-06-25  Eric Blake  <ebb9@byu.net>
7265
7266         fpurge: migrate into <stdio.h>
7267         * lib/fpurge.h: Delete...
7268         * lib/stdio.in.h (fpurge): ...and declare here, instead.
7269         * lib/fpurge.c (fpurge): Change declaring header.
7270         * modules/fpurge (Files): Drop deleted file.
7271         (Depends-on): Add stdio.
7272         (configure.ac): Set witness.
7273         * modules/stdio (Makefile.am): Support fpurge macros.
7274         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
7275         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
7276         * lib/fflush.c: Update client.
7277         * tests/test-fpurge.c: Likewise.
7278         * NEWS: Mention the change.
7279
7280 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
7281
7282         * lib/argp-version-etc.c (program_authors): Add const
7283         qualifier.
7284         * lib/version-etc.c: Fix typos in the comments.
7285         * modules/argp-version-etc: Depends on version-etc.
7286
7287 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
7288
7289         argp-version-etc: new module.
7290
7291         * lib/argp-version-etc.c: New file.
7292         * lib/argp-version-etc.h: New file.
7293         * modules/argp-version-etc: New file.
7294         * modules/argp-version-etc-tests: New file.
7295         * tests/test-argp-version-etc.c: New test.
7296         * tests/test-argp-version-etc-1.sh: New test.
7297
7298 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
7299
7300         Provide additional interfaces and documentation for version-etc
7301         module.
7302
7303         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
7304         interfaces.
7305         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
7306         prototypes.
7307
7308 2009-06-24  Bruno Haible  <bruno@clisp.org>
7309
7310         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
7311         HAVE_LIB${NAME} macro.
7312         Reported by Sam Steingold <sds@gnu.org>.
7313
7314 2009-06-23  Simon Josefsson  <simon@josefsson.org>
7315
7316         * modules/hash-tests (test_hash_LDADD): Link to libintl when
7317         needed.
7318
7319 2009-06-21  Bruno Haible  <bruno@clisp.org>
7320
7321         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
7322         work.
7323         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
7324         together with LIB${NAME}, LTLIB${NAME}.
7325         Reported by Sam Steingold <sds@gnu.org>.
7326
7327 2009-06-20  Jim Meyering  <meyering@redhat.com>
7328
7329         tests: make sc_require_test_exit_idiom more generic
7330         * top/maint.mk (Exit_witness_file): New overridable variable.
7331         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
7332         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
7333
7334 2009-06-19  Jim Meyering  <meyering@redhat.com>
7335
7336         hash: reverse order of src/dst parameters in an internal interface
7337         * lib/hash.c (transfer_entries): Reverse order of parameters to
7338         put DST before SRC.  Adjust callers.
7339
7340         tests: test-hash: avoid wholesale duplication
7341         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
7342         Instead, use a loop and add a single conditional.
7343
7344         tests: test-hash: allow seed selection via a command line argument
7345         * tests/test-hash.c (get_seed): New function.
7346         (main): Use it.
7347
7348 2009-06-19  Eric Blake  <ebb9@byu.net>
7349
7350         hash: avoid memory leak on allocation failure
7351         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
7352         failure.  Factor repeated algorithm...
7353         (transfer_entries): ...into new helper routine.
7354         (hash_delete): React to hash_rehash return value.
7355
7356         hash: reduce memory pressure in hash_rehash no-op case
7357         * lib/hash.c (next_prime): Avoid overflow.
7358         (hash_initialize): Factor bucket size computation...
7359         (compute_bucket_size): ...into new helper function.
7360         (hash_rehash): Use new function and open coding to reduce memory
7361         pressure, and avoid a memory leak in USE_OBSTACK code.
7362         Reported by Jim Meyering.
7363
7364 2009-06-18  Eric Blake  <ebb9@byu.net>
7365
7366         hash: make rotation more obvious
7367         * modules/hash (Depends-on): Add bitrotate and stdint.
7368         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
7369         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
7370         (SIZE_MAX): Rely on headers for definition.
7371         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
7372         (raw_hasher): Use rotr_sz.
7373         Suggested by Jim Meyering.
7374
7375         hash: fix memory leak in last patch
7376         * lib/hash.c (hash_rehash): Avoid memory leak.
7377
7378         hash: avoid no-op rehashing
7379         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
7380
7381         hash: provide default callback functions
7382         * lib/hash.c (raw_hasher, raw_comparator): New functions.
7383         (hash_initialize): Use them as defaults.
7384         * tests/test-hash.c (main): Test this.
7385
7386         hash: minor optimization
7387         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
7388         when possible.
7389         (hash_initialize): Document this promise.
7390         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
7391         * tests/test-hash.c (hash_compare_strings): Test this.
7392
7393 2009-06-18  Bruno Haible  <bruno@clisp.org>
7394
7395         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
7396         going to be replaced anyway.
7397
7398 2009-06-18  Bruno Haible  <bruno@clisp.org>
7399
7400         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
7401         in one place.
7402         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
7403         be replaced anyway.
7404
7405 2009-06-18  Eric Blake  <ebb9@byu.net>
7406
7407         hash: check for resize before insertion
7408         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
7409         threshold before insertion, so that a pathological hash_rehash
7410         that fills every bucket can still trigger another rehash.
7411
7412 2009-06-18  Jim Meyering  <meyering@redhat.com>
7413
7414         hash-tests: add a loop around the small tests
7415         * tests/test-hash.c (main): Repeat small tests with selected
7416         small initial table sizes.
7417
7418 2009-06-17  Eric Blake  <ebb9@byu.net>
7419
7420         hash: minor cleanups
7421         * lib/hash.h (hash_entry): Make opaque, by moving...
7422         * lib/hash.c (hash_entry): ...here.
7423         (hash_insert): Clarify restrictions on what can be inserted.
7424         (hash_get_next): Clarify when it is safe to remove an element
7425         during traversal.
7426         (check_tuning): Skip verification when tuning is known safe.
7427         (hash_initialize): Clarify restrictions on tuning.
7428
7429 2009-06-17  Jim Meyering  <jim@meyering.net>
7430         and Eric Blake  <ebb9@byu.net>
7431
7432         hash-tests: new module
7433         * modules/hash-tests: New file.
7434         * tests/test-hash.c: New file.
7435
7436 2009-06-17  Eric Blake  <ebb9@byu.net>
7437
7438         strstr-simple: document new module
7439         * MODULES.html.sh: Document new module.
7440
7441         strstr, strcasestr: replace on platforms with broken memchr
7442         * modules/strstr: Split into...
7443         * modules/strstr-simple: ...new module that does not care about
7444         performance, but does care about glibc bug.
7445         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
7446         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
7447         if platform memchr is broken, per Debian bug 521737.
7448         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
7449         memchr.
7450         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
7451         * doc/posix-functions/strstr.texi (strstr): Document the fix.
7452         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
7453         * modules/mountlist (Depends-on): Add strstr-simple.
7454         * modules/gen-uni-tables (Depends-on): Likewise.
7455         * modules/argz (Depends-on): Add strstr.
7456
7457 2009-06-17  Bruno Haible  <bruno@clisp.org>
7458
7459         * modules/posix_spawn-internal (Depends-on): Add errno.
7460
7461 2009-06-17  Bruno Haible  <bruno@clisp.org>
7462
7463         Define missing ESTALE on Interix 3.5.
7464         * lib/errno.in.h (ESTALE): Assign a value if missing.
7465         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
7466         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
7467         missing.
7468         * doc/posix-headers/errno.texi: Mention the Interix bug.
7469         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
7470
7471 2009-06-15  Eric Blake  <ebb9@byu.net>
7472
7473         memchr, memchr2: add valgrind exception
7474         * lib/memchr.valgrind: New file.
7475         * lib/memchr2.valgrind: New file.
7476         * modules/memchr (Files): Distribute valgrind file.
7477         * modules/memchr2 (Files): Likewise.
7478
7479         docs: memchr is no longer obsolete
7480         * MODULES.html.sh: Move memchr from obsolete to string.h section.
7481         * lib/string.in.h (memchr): Simplify logic.
7482
7483 2009-06-14  Jim Meyering  <meyering@redhat.com>
7484
7485         link-follow: fix the "checking..." message to not mention trailing slash
7486         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
7487         never considered trailing slashes.
7488
7489 2009-06-14  Bruno Haible  <bruno@clisp.org>
7490
7491         * m4/memchr.m4: Mention also the bug on IA-64.
7492         * doc/posix-functions/memchr.texi: Likewise.
7493
7494 2009-06-12  Eric Blake  <ebb9@byu.net>
7495
7496         memchr: detect broken x86_64 and alpha implementations
7497         * modules/memchr-tests (Depends-on): Move mmap detection...
7498         * modules/memchr (Depends-on): ...here.
7499         (configure.ac): Set indicator.
7500         * lib/string.in.h (memchr): Declare replacement.
7501         * modules/string (Makefile.am): Trigger replacement.
7502         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
7503         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
7504         bugs.
7505         * doc/posix-functions/memchr.texi (memchr): Document the bug.
7506         * modules/getpagesize (License): Relax license.
7507
7508 2009-06-11  Bruno Haible  <bruno@clisp.org>
7509
7510         * lib/idpriv.h: Add more references.
7511
7512 2009-06-08  Bruno Haible  <bruno@clisp.org>
7513
7514         Tests for module 'idpriv-droptemp'.
7515         * modules/idpriv-droptemp-tests: New file.
7516         * tests/test-idpriv-droptemp.sh: New file.
7517         * tests/test-idpriv-droptemp.su.sh: New file.
7518         * tests/test-idpriv-droptemp.c: New file.
7519
7520         New module 'idpriv-droptemp'.
7521         * lib/idpriv-droptemp.c: New file.
7522         * modules/idpriv-droptemp: New file.
7523
7524 2009-06-08  Bruno Haible  <bruno@clisp.org>
7525
7526         Tests for module 'idpriv-drop'.
7527         * modules/idpriv-drop-tests: New file.
7528         * tests/test-idpriv-drop.sh: New file.
7529         * tests/test-idpriv-drop.su.sh: New file.
7530         * tests/test-idpriv-drop.c: New file.
7531
7532         New module 'idpriv-drop'.
7533         * lib/idpriv.h: New file.
7534         * lib-idpriv-drop.c: New file.
7535         * m4/idpriv.m4: New file.
7536         * modules/idpriv-drop: New file.
7537
7538 2009-06-08  Bruno Haible  <bruno@clisp.org>
7539
7540         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
7541         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7542         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7543         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7544         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7545         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7546         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7547
7548 2009-06-08  Eric Blake  <ebb9@byu.net>
7549
7550         test-strstr: use memory fence, when possible
7551         * tests/test-strstr.c (main): Use memory fence, in order to be
7552         more likely to trigger Debian bug 521737.
7553         * modules/strstr-tests (Files): Pull in additional files.
7554
7555         memchr: no longer obsolete, for wider field testing
7556         * modules/memchr (Status, Notice): Delete, this module is no
7557         longer obsolete.
7558         * modules/vasnprintf (Depends-on): Add memchr.
7559
7560 2009-06-07  Jim Meyering  <meyering@redhat.com>
7561
7562         hash: declare some functions with the warn_unused_result attribute
7563         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
7564
7565 2009-06-07  Bruno Haible  <bruno@clisp.org>
7566
7567         * tests/test-alignof.c: Don't test int64_t if it does not exist.
7568         Reported by Eric Blake.
7569
7570 2009-06-06  Eric Blake  <ebb9@byu.net>
7571
7572         test-alignof: fix typo with long double
7573         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
7574         compiler error.
7575
7576 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
7577
7578         Escape non-texinfo { and }s.
7579         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
7580         markup error.
7581
7582 2009-06-04  Jim Meyering  <meyering@redhat.com>
7583
7584         gitlog-to-changelog: don't infloop on an empty commit log
7585         * build-aux/gitlog-to-changelog: Warn about an empty log message.
7586         Reported by Boris Petersen <transacid@centerim.org>.
7587
7588 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
7589
7590         version-etc: extend for packagers
7591         Add three new configure options, intended for packagers:
7592           --with-packager="packager name"
7593           --with-packager-version="packager-specific version"
7594           --with-packager-bug-reports="packager bug reporting"
7595         An example with coreutils:
7596           $ ./configure \
7597             --with-packager=Gentoo \
7598             --with-packager-bug-report=http://bugs.gentoo.org/ \
7599             --with-packager-version="patchset 1.6"
7600           $ ./src/ls --version | head -n3
7601           ls (GNU coreutils) 7.1-dirty
7602           Packaged by Gentoo (patchset 1.6)
7603           Copyright (C) 2009 Free Software Foundation, Inc.
7604         Note that the bug reporting info via --help doesn't show up because
7605         coreutils uses its own custom emit_bug_reporting_address() implementation
7606         in src/system.h.  If it didn't, it'd look like:
7607           $ ./src/ls --help | tail -n4
7608           Report bugs to <bug-coreutils@gnu.org>.
7609           Report Gentoo bugs to <http://bugs.gentoo.org/>.
7610           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
7611           General help using GNU software: <http://www.gnu.org/gethelp/>.
7612         * lib/version-etc.c: Print new information, if provided.
7613         * m4/version-etc.m4: New file.
7614         * modules/version-etc (Files): Add m4/version-etc.m4.
7615         (configure.ac): Add gl_VERSION_ETC.
7616
7617 2009-05-31  Bruno Haible  <bruno@clisp.org>
7618
7619         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
7620         and 'int64_t'.
7621         * modules/alignof-tests (Dependencies): Add stdint.
7622         Reported by Eric Blake.
7623
7624 2009-05-31  Bruno Haible  <bruno@clisp.org>
7625
7626         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
7627         restriction due to compiler bugs.
7628         Reported by Eric Blake.
7629
7630 2009-05-31  Simon Josefsson  <simon@josefsson.org>
7631             Bruno Haible  <bruno@clisp.org>
7632
7633         Fix test-alignof failure.
7634         * lib/alignof.h (alignof_slot): New macro.
7635         (alignof_type): New macro, with the same semantics as the previous
7636         'alignof'.
7637         (alignof): Alias to alignof_slot.
7638         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
7639         check that the results are usable as constant expressions.
7640
7641 2009-05-31  Bruno Haible  <bruno@clisp.org>
7642
7643         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
7644         * tests/test-memchr.c (main): Check that memchr does not read past the
7645         first occurrence of the byte.
7646         * tests/test-strstr.c (main): Update comment.
7647         Suggested by Eric Blake.
7648
7649 2009-05-30  Bruno Haible  <bruno@clisp.org>
7650
7651         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
7652         detail how to use dumpbin.
7653         Reported by David Byron <dbyron@dbyron.com>.
7654
7655 2009-06-02  Simon Josefsson  <simon@josefsson.org>
7656
7657         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
7658
7659 2009-06-02  Simon Josefsson  <simon@josefsson.org>
7660
7661         * m4/manywarnings.m4: Add GCC 4.4 warnings.
7662
7663 2009-05-28  Bruno Haible  <bruno@clisp.org>
7664
7665         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
7666         build-aux/ files.
7667
7668 2009-05-28  Simon Josefsson  <simon@josefsson.org>
7669
7670         * gnulib-tool (func_import): Transform license on build-aux/ files too.
7671
7672 2009-05-27  Simon Josefsson  <simon@josefsson.org>
7673
7674         * gnulib-tool (sed_transform_main_lib_file)
7675         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
7676         regexps.
7677
7678 2009-05-26  Simon Josefsson  <simon@josefsson.org>
7679
7680         * tests/test-strstr.c: Add another self-test.
7681         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
7682         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
7683
7684 2009-05-23  Bruno Haible  <bruno@clisp.org>
7685
7686         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
7687         change.
7688
7689 2009-05-21  Bruno Haible  <bruno@clisp.org>
7690
7691         Simplify use of mode_t varargs.
7692         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
7693         uses 'mode_t' or 'int'.
7694         * lib/openat.c (openat): Likewise.
7695         * lib/open-safer.c (open_safer): Likewise.
7696         * m4/mode_t.m4: New file.
7697         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
7698         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
7699         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
7700         * modules/open (Files): Add m4/mode_t.m4.
7701         * modules/openat (Files): Likewise.
7702         * modules/fcntl-safer (Files): Likewise.
7703         Suggested by Eric Blake.
7704
7705 2009-05-21  Pádraig Brady  <P@draigbrady.com>
7706
7707         * doc/glibc-functions/fallocate.texi: New file.
7708         * doc/gnulib.texi: Include it.
7709
7710 2009-05-21  Eric Blake  <ebb9@byu.net>
7711             Bruno Haible  <bruno@clisp.org>
7712
7713         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
7714         invocations.
7715         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
7716
7717 2009-05-21  Eric Blake  <ebb9@byu.net>
7718             Bruno Haible  <bruno@clisp.org>
7719
7720         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
7721         include_next. Fix of 2008-11-20 commit.
7722         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
7723         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
7724         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
7725         NEXT_MATH_H.
7726         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
7727         instead of NEXT_MATH_H.
7728
7729 2009-05-21  Bruno Haible  <bruno@clisp.org>
7730
7731         Avoid redefinition warnings for SIZE_MAX.
7732         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
7733         Reported by Simon Josefsson.
7734
7735 2009-05-21  Bruno Haible  <bruno@clisp.org>
7736
7737         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
7738         AC_CACHE_VAL.
7739
7740 2009-05-20  Bruno Haible  <bruno@clisp.org>
7741
7742         Make zeroptr.h work on mingw.
7743         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
7744         mprotect.
7745         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
7746         * modules/memchr2-tests (configure.ac): Likewise.
7747         * modules/memcmp-tests (configure.ac): Likewise.
7748         * modules/memmem-tests (configure.ac): Likewise.
7749         * modules/memrchr-tests (configure.ac): Likewise.
7750         Reported by Simon Josefsson.
7751
7752 2009-05-20  Simon Josefsson  <simon@josefsson.org>
7753
7754         * tests/test-glob.c: Include string.h for strcmp prototype.
7755
7756 2009-05-20  Simon Josefsson  <simon@josefsson.org>
7757
7758         * modules/getdelim (Depends-on): Add explicit stdint, although it
7759         was implicitly already pulled in via realloc-posix.
7760         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
7761
7762 2009-05-20  Simon Josefsson  <simon@josefsson.org>
7763
7764         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
7765         G. Christensen" <tgc@jupiterrise.com>.
7766         * m4/sys_socket_h.m4: Check for sa_family_t.
7767         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
7768         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
7769         * tests/test-sys_socket.c: Check that sa_family_t works.
7770
7771 2009-05-18  Eric Blake  <ebb9@byu.net>
7772
7773         maint.mk: allow gnulib_dir in VPATH build
7774         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
7775
7776 2009-05-15  Jim Meyering  <meyering@redhat.com>
7777
7778         maint.mk: Give gnulib_dir a default definition.
7779         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
7780         Thus, most packages no longer need to specify this variable in cfg.mk
7781
7782 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
7783
7784         rename.m4: fix typos that would make non-mingw cross-configure fail
7785         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
7786
7787 2009-05-13  Eric Blake  <ebb9@byu.net>
7788
7789         mmap-anon: avoid out-of-order autoconf expansion
7790         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
7791         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
7792         * modules/memchr-tests (Depends-on): Add extensions.
7793         * modules/memchr2-tests (Depends-on): Add extensions.
7794         * modules/memcmp-tests (Depends-on): Add extensions.
7795         * modules/memmem-tests (Depends-on): Add extensions.
7796         * modules/memrchr-tests (Depends-on): Add extensions.
7797
7798 2009-05-13  Bruno Haible  <bruno@clisp.org>
7799
7800         Make some tests ISO C 99 compliant.
7801         * tests/zerosize-ptr.h: New file.
7802         * tests/test-memchr.c: Include zerosize-ptr.h.
7803         (main): Use a zero-size object pointer instead of NULL.
7804         * tests/test-memchr2.c: Include zerosize-ptr.h.
7805         (main): Use a zero-size object pointer instead of NULL.
7806         * tests/test-memcmp.c: Include zerosize-ptr.h.
7807         (main): Use a zero-size object pointer instead of NULL.
7808         * tests/test-memmem.c: Include zerosize-ptr.h.
7809         (main): Use a zero-size object pointer instead of NULL.
7810         * tests/test-memrchr.c: Include zerosize-ptr.h.
7811         (main): Use a zero-size object pointer instead of NULL.
7812         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
7813         m4/mmap-anon.m4.
7814         (Depends-on): Add getpagesize.
7815         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
7816         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
7817         m4/mmap-anon.m4.
7818         (Depends-on): Add getpagesize.
7819         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
7820         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
7821         m4/mmap-anon.m4.
7822         (Depends-on): Add getpagesize.
7823         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
7824         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
7825         m4/mmap-anon.m4.
7826         (Depends-on): Add getpagesize.
7827         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
7828         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
7829         m4/mmap-anon.m4.
7830         (Depends-on): Add getpagesize.
7831         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
7832
7833 2009-05-12  Bruno Haible  <bruno@clisp.org>
7834
7835         Tests for module 'alignof'.
7836         * modules/alignof-tests: New file.
7837         * tests/test-alignof.c: New file.
7838
7839 2009-05-12  Bruno Haible  <bruno@clisp.org>
7840
7841         Fix alignof macro.
7842         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
7843         vendor compilers that are always correct.
7844
7845 2009-05-12  Bruno Haible  <bruno@clisp.org>
7846
7847         Make the MAP_ANONYMOUS detection work on HP-UX 11.
7848         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
7849         not whether its fully works.
7850
7851 2009-05-12  Bruno Haible  <bruno@clisp.org>
7852
7853         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
7854
7855 2009-05-12  Jim Meyering  <meyering@redhat.com>
7856
7857         * top/maint.mk: Adjust backslash alignment.
7858
7859 2009-05-11  Simon Josefsson  <simon@josefsson.org>
7860
7861         * top/maint.mk: Make $(srcdir)/build-aux configurable.
7862
7863 2009-05-11  Eric Blake  <ebb9@byu.net>
7864
7865         argp: avoid undefined behavior
7866         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
7867         macros.
7868
7869 2009-05-08  Simon Josefsson  <simon@josefsson.org>
7870
7871         * tests/test-vc-list-files-git.sh: Do git config of user.email and
7872         user.name to prevent git commit from complaining.
7873
7874 2009-05-10  Bruno Haible  <bruno@clisp.org>
7875
7876         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
7877         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
7878         it rewrites every file name only once.
7879         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
7880
7881 2009-05-08  Bruno Haible  <bruno@clisp.org>
7882
7883         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
7884         instead of 'max'.
7885
7886 2009-05-08  Simon Josefsson  <simon@josefsson.org>
7887
7888         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
7889         sockaddr_storage test.
7890
7891 2009-05-07  Simon Josefsson  <simon@josefsson.org>
7892
7893         * modules/sys_socket (Makefile.am): Substitute
7894         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
7895         * m4/sys_socket_h.m4: Check for sockaddr_storage.
7896         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
7897         * tests/test-sys_socket.c: Check sockaddr_storage.
7898
7899 2009-05-08  Bruno Haible  <bruno@clisp.org>
7900
7901         New module 'alignof'.
7902         * lib/alignof.h: New file.
7903         * modules/alignof: New file.
7904
7905 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
7906             Bruno Haible  <bruno@clisp.org>
7907
7908         Fix test-file-has-acl on FreeBSD.
7909         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
7910         mask is implicitly added.
7911         * tests/test-file-has-acl.c: Include <signal.h>.
7912         (main): Terminate the test after 5 seconds.
7913         * modules/acl-tests (configure.ac): Check for alarm function.
7914
7915 2009-05-04  Bruno Haible  <bruno@clisp.org>
7916
7917         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
7918         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
7919         * modules/errno (configure.ac): Drop AC_REQUIRE.
7920         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
7921         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
7922
7923 2009-05-04  Simon Josefsson  <simon@josefsson.org>
7924
7925         * modules/glob-tests: New module.
7926         * tests/test-glob.c: Add.
7927
7928 2009-05-04  Simon Josefsson  <simon@josefsson.org>
7929
7930         * modules/fnmatch-tests: New module.
7931         * tests/test-fnmatch.c: Add.
7932
7933 2009-05-04  Eric Blake  <ebb9@byu.net>
7934
7935         maint: make the new no-submodule-changes rule VPATH-safe
7936         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
7937
7938 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
7939             Bruno Haible  <bruno@clisp.org>
7940
7941         acl: Fix infinite loop on FreeBSD.
7942         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
7943         of return value from acl_get_entry.
7944         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
7945         Likewise.
7946
7947 2009-05-03  Bruno Haible  <bruno@clisp.org>
7948
7949         * lib/acl-internal.h (acl_entries): Clarify return value.
7950         * lib/acl_entries.c (acl_entries): Likewise.
7951
7952 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
7953
7954         Bug fix in acl module.
7955         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
7956
7957 2009-05-03  Bruno Haible  <bruno@clisp.org>
7958
7959         Create gperf-generated file in the source dir, not in the build dir.
7960         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
7961         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
7962         * modules/unicase/locale-language (unicase/locale-languages.h):
7963         Likewise.
7964         * modules/unicase/special-casing (unicase/special-casing-table.h):
7965         Likewise.
7966         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
7967         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
7968         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
7969         Reported by Ralf Wildenhues.
7970
7971 2009-05-03  Bruno Haible  <bruno@clisp.org>
7972
7973         * modules/fnmatch (Description, configure.ac): Taken from
7974         fnmatch-posix.
7975         * modules/fnmatch-posix: Turn into a symbolic reference to the
7976         'fnmatch' module, and deprecate.
7977         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
7978
7979 2009-05-03  Bruno Haible  <bruno@clisp.org>
7980
7981         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
7982         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
7983         Reported by Ralf Wildenhues.
7984
7985 2009-05-04  Simon Josefsson  <simon@josefsson.org>
7986
7987         * m4/fnmatch.m4: Fix fnmatch re-define.
7988
7989 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
7990
7991         priv-set: new module and tests; adapt write-any-file
7992         * lib/priv-set.c: New file.
7993         * lib/priv-set.h: New file.
7994         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
7995         * lib/write-any-file.c: Simplify by using priv-set module.
7996         * m4/priv-set.m4: New file.
7997         * modules/priv-set: New file.
7998         * modules/unlinkdir: Add dependency on priv-set module.
7999         * modules/write-any-file: Likewise.
8000
8001         Tests for module 'priv-set'.
8002         * modules/priv-set-tests: New file.
8003         * tests/test-priv-set.c: New file.
8004
8005 2009-05-03  Jim Meyering  <meyering@redhat.com>
8006             Bruno Haible  <bruno@clisp.org>
8007
8008         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
8009         use the converted UTF-8 variant of the name instead.
8010
8011 2009-05-03  Jim Meyering  <meyering@redhat.com>
8012
8013         tests: tighten some getdate tests
8014         * tests/test-getdate.c (main): Tighten tests: require equality,
8015         not just greater than.  Set TZ envvar to UTC0.
8016
8017 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
8018
8019         getdate: correctly interpret "next monday" when run on a Monday
8020         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
8021         that e.g., "next tues" (when run on a tuesday) results in a date
8022         that is one week in the future, and not today's date.
8023         I.e., add a week when the wday is the same as the current one.
8024         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
8025         and earlier by Martin Bernreuther and Jan Minář.
8026         * tests/test-getdate.c (main): Check that "next DAY" is always in
8027         the future and that "last DAY" is always in the past.
8028
8029 2009-05-02  Jim Meyering  <meyering@redhat.com>
8030
8031         build: ensure that a release build fails when a submodule is unclean
8032         * top/maint.mk (no-submodule-changes): New rule.
8033         (alpha beta major): Depend on it.
8034
8035 2009-05-02  Bruno Haible  <bruno@clisp.org>
8036
8037         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
8038         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
8039         shell variable gl_fnmatch_required to detect which variant is
8040         requested.
8041         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
8042         gl_FUNC_FNMATCH_POSIX.
8043         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
8044         exclude fnmatch-posix.
8045
8046 2009-05-02  Bruno Haible  <bruno@clisp.org>
8047
8048         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
8049         * modules/mbsrtowcs (License): Change to LGPLv2+.
8050         * modules/strnlen1 (License): Likewise.
8051         Reported by Simon Josefsson.
8052
8053 2009-05-02  Bruno Haible  <bruno@clisp.org>
8054
8055         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
8056         "cross".
8057         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
8058         gnulib-tool was called with option --source-base=lib.
8059
8060 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8061
8062         Use automake *-local hooks without commands, for extensibility.
8063         * modules/localcharset (Makefile.am): Rename install-exec-local
8064         rule to install-exec-localcharset, and make it a prerequisite of
8065         install-exec-local.  Likewise, rename the uninstall-local rule to
8066         uninstall-localcharset, and make it a prerequisite of the former.
8067
8068 2009-05-01  Bruno Haible  <bruno@clisp.org>
8069
8070         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
8071         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
8072         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
8073         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
8074         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
8075         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
8076         m4/locale-zh.m4, m4/codeset.m4.
8077
8078         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
8079         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
8080         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
8081         m4/locale-zh.m4.
8082
8083         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
8084         REPLACE_WCRTOMB if mbstate_t must be replaced.
8085         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
8086         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
8087
8088 2009-05-01  Bruno Haible  <bruno@clisp.org>
8089
8090         Avoid compiler warnings when redefining macros defined by <libintl.h>.
8091         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
8092         dngettext, dcngettext, textdomain, bindtextdomain,
8093         bind_textdomain_codeset): Undefine before redefining.
8094
8095 2009-04-30  Bruno Haible  <bruno@clisp.org>
8096
8097         Fix bug introduced on 2009-04-25.
8098         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
8099         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
8100         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
8101         is defined.
8102         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
8103         is defined.
8104         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
8105         is defined.
8106         Reported by Elbert_Pol <elbert.pol@gmail.com>.
8107
8108 2009-04-28  Bruno Haible  <bruno@clisp.org>
8109
8110         Comment tweaks.
8111         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
8112         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
8113         * lib/unicase.h (u*_casexfrm): Likewise.
8114         Reported by Paolo Bonzini.
8115
8116 2009-04-28  Bruno Haible  <bruno@clisp.org>
8117
8118         Fix a compilation error.
8119         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
8120         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
8121         Reported by Jim Meyering.
8122
8123 2009-04-27  Bruno Haible  <bruno@clisp.org>
8124
8125         New module 'libunistring'.
8126         * modules/libunistring: New file.
8127         * m4/libunistring.m4: New file.
8128         * MODULES.html.sh (Unicode string functions): Add it.
8129
8130 2009-04-27  Eric Blake  <ebb9@byu.net>
8131
8132         maint.mk: allow package-specific header to provide <config.h>
8133         * top/maint.mk (sc_require_config_h): New variable.
8134         (sc_require_config_h, sc_require_config_h_first): Use it.
8135
8136 2009-04-27  Simon Josefsson  <simon@josefsson.org>
8137
8138         * top/maint.mk (sc_avoid_if_before_free): Except
8139         useless-if-before-free script.
8140
8141 2009-04-27  Eric Blake  <ebb9@byu.net>
8142
8143         maintainer-makefile: depend on all required helper scripts
8144         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
8145         useless-if-before-free.
8146         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
8147         version, rather than assuming gnulib checkout is available.
8148         Reported by Simen Josefsson.
8149
8150 2009-04-26  Bruno Haible  <bruno@clisp.org>
8151
8152         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
8153         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
8154         "../" or "..".
8155
8156 2009-04-26  Bruno Haible  <bruno@clisp.org>
8157
8158         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
8159         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
8160         AC_LIB_HAVE_LINKFLAGS.
8161
8162 2009-04-26  Bruno Haible  <bruno@clisp.org>
8163
8164         Simplify calling convention of u*_conv_from_encoding.
8165         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
8166         u32_conv_from_encoding): Expect a resultbuf argument and return the
8167         result directly as a pointer.
8168         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
8169         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
8170         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
8171         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
8172         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
8173         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
8174         Update.
8175         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
8176         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
8177         * lib/vasnprintf.c (VASNPRINTF): Update.
8178         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
8179         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
8180         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
8181         * NEWS: Mention the change.
8182
8183 2009-04-26  Bruno Haible  <bruno@clisp.org>
8184
8185         Simplify calling convention of u*_conv_to_encoding.
8186         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
8187         u32_conv_to_encoding): Expect a resultbuf argument and return the
8188         result directly as a pointer.
8189         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
8190         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
8191         freeing scaled_offsets if mem_iconveha failed.
8192         * lib/unicase/u-casexfrm.h (FUNC): Update.
8193         * lib/uninorm/u-normxfrm.h (FUNC): Update.
8194         * lib/vasnprintf.c (VASNPRINTF): Update.
8195         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
8196         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
8197         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
8198         * NEWS: Mention the change.
8199
8200 2009-04-26  Bruno Haible  <bruno@clisp.org>
8201
8202         Avoid test failures on AIX and OSF/1.
8203         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
8204         malloc(0).
8205         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
8206         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
8207         Likewise.
8208         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
8209         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
8210         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
8211         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
8212         * doc/posix-functions/malloc.texi: Document the portability problem
8213         related to malloc(0).
8214
8215 2009-04-26  Bruno Haible  <bruno@clisp.org>
8216
8217         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
8218         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
8219         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
8220
8221 2009-04-25  Bruno Haible  <bruno@clisp.org>
8222
8223         Avoid link error when creating a namespace clean library.
8224         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
8225         as macro with arguments if already defined as an alias.
8226         * lib/signbitf.c (gl_signbitf): Don't undefine.
8227         * lib/signbitd.c (gl_signbitd): Don't undefine.
8228         * lib/signbitl.c (gl_signbitl): Don't undefine.
8229
8230 2009-04-25  Jim Meyering  <meyering@redhat.com>
8231
8232         vc-list-files: fix another quoting bug
8233         * build-aux/vc-list-files: Avoid sed backslash expansion
8234         of pathological directory names.
8235
8236 2009-04-25  Eric Blake  <ebb9@byu.net>
8237
8238         vc-list-files: fix shell quoting error
8239         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
8240         timestamp.
8241
8242 2009-04-25  Jim Meyering  <meyering@redhat.com>
8243
8244         vc-list-files: restore lost functionality with subdir argument
8245         * build-aux/vc-list-files: When given a non-"." sub-directory
8246         argument, substitute the $dir/ prefix back onto each resulting name.
8247         Otherwise, coreutils' root_tests check would fail.
8248
8249 2009-04-24  Eric Blake  <ebb9@byu.net>
8250
8251         vc-list-files: ignore git symlinks
8252         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
8253         than ls-files, to ignore git symlinks.
8254
8255         maint.mk: import improvements from m4
8256         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
8257         (move_if_change): Delete unused macro.
8258         (news-date-check, vc-diff-check): Support VPATH builds.
8259         (announcement): Likewise.  Split --bootstrap-tools list...
8260         (boostrap-tools): ...into separate list, which can be overridden
8261         in cfg.mk.
8262         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
8263         requiring dependency on useless-if-before-free module.
8264         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
8265         Support VPATH builds.
8266
8267 2009-04-24  Jim Meyering  <meyering@redhat.com>
8268
8269         maint.mk: remove coreutils-specific rules and variables
8270         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
8271         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
8272         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
8273
8274         maint.mk: remove obsolete rule
8275         * top/maint.mk (rel-check): Remove rule.
8276         (WGET, WGETFLAGS): Remove now-unused variables.
8277
8278 2009-04-24  Simon Josefsson  <simon@josefsson.org>
8279
8280         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
8281         consistency.
8282
8283         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
8284         '$(PATH_SEPARATOR)' instead of ':'.
8285
8286 2009-04-24  Simon Josefsson  <simon@josefsson.org>
8287
8288         * lib/getopt1.c (main): Use 'const' for static array.
8289
8290 2009-04-24  Simon Josefsson  <simon@josefsson.org>
8291
8292         * top/maint.mk: Sync with coreutils.
8293         * NEWS: Explain incompatibilities.
8294
8295 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8296             Bruno Haible  <bruno@clisp.org>
8297
8298         Fix cross-compilation results.
8299         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
8300         statement, as third argument of AC_TRY_RUN.
8301         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
8302         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
8303         Likewise.
8304         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8305         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
8306         Likewise.
8307         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8308         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
8309         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
8310
8311 2009-04-20  Bruno Haible  <bruno@clisp.org>
8312
8313         Avoid test failure on mingw.
8314         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
8315
8316 2009-04-20  Bruno Haible  <bruno@clisp.org>
8317
8318         Avoid compilation error on mingw.
8319         * modules/localename-tests (Depends-on): Add locale.
8320
8321 2009-04-19  Bruno Haible  <bruno@clisp.org>
8322
8323         Support for building a shared library on Windows platforms.
8324         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
8325         (main): Test the presence of UNINORM_NFC here.
8326         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
8327         (main): Test the presence of UNINORM_NFD here.
8328         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
8329         (main): Test the presence of UNINORM_NFKC here.
8330         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
8331         (main): Test the presence of UNINORM_NFKD here.
8332
8333 2009-04-19  Bruno Haible  <bruno@clisp.org>
8334
8335         Avoid a compiler warning.
8336         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
8337         Change type of variable 'sequence'.
8338
8339 2009-04-19  Bruno Haible  <bruno@clisp.org>
8340
8341         * modules/configmake (Makefile.am): When the contents of configmake.h
8342         does not change, arrange to preserve its modification time.
8343
8344 2009-04-17  Simon Josefsson  <simon@josefsson.org>
8345
8346         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
8347         gettext domain.
8348
8349 2009-04-16  Jim Meyering  <meyering@redhat.com>
8350
8351         useless-if-before-free: improve conversion code
8352         * build-aux/useless-if-before-free: Adjust code-in-comment to match
8353         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
8354
8355 2009-04-14  Bruno Haible  <bruno@clisp.org>
8356
8357         * modules/fcntl (Depends-on): Add extensions.
8358         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
8359
8360 2009-04-12  Ben Pfaff  <blp@gnu.org>
8361
8362         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
8363         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
8364
8365 2009-03-20  Ben Pfaff  <blp@gnu.org>
8366
8367         Make rename replace existing destinations on Windows.
8368         * m4/rename.m4: Add test for Mingw.
8369         * lib/rename.c: Add rename replacement that uses MoveFileEx with
8370         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
8371         * doc/posix-functions/rename.texi: Document.
8372
8373 2009-04-10  Bruno Haible  <bruno@clisp.org>
8374
8375         New include file "iconveh.h".
8376         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
8377         * lib/striconveh.h: Include it.
8378         (enum iconv_ilseq_handler): Remove definition.
8379         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
8380         striconveh.h.
8381         * lib/striconveha.c: Include striconveh.h.
8382         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
8383         * modules/striconveh (Files): Add lib/iconveh.h.
8384         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
8385         lib/striconveh.h.
8386
8387 2009-04-10  Bruno Haible  <bruno@clisp.org>
8388
8389         * lib/uniconv.h: Update comment.
8390
8391 2009-04-10  Bruno Haible  <bruno@clisp.org>
8392
8393         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
8394         always.
8395         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
8396         * lib/unistr/u16-mbtouc-aux.c: Likewise.
8397         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
8398         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
8399         "unistring-notinline.h", so that the function gets defined always.
8400         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
8401         * lib/unistr/u8-uctomb.c: Likewise.
8402         * lib/unistr/u16-mbtouc.c: Likewise.
8403         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
8404         * lib/unistr/u16-uctomb.c: Likewise.
8405         * lib/unistr/u32-mbtouc.c: Likewise.
8406         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
8407         * lib/unistr/u32-uctomb.c: Likewise.
8408
8409 2009-04-10  Bruno Haible  <bruno@clisp.org>
8410
8411         Mark 'utime' obsolete.
8412         * modules/utime (Status, Notice): New sections.
8413         Suggested by Jim Meyering.
8414
8415         Fix cross-compile guess for utime test.
8416         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
8417         autoconf.
8418         * doc/posix-functions/utime.texi: Give more precisions.
8419         Reported by Jan <ipif@ymail.com>.
8420
8421 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
8422
8423         filevercmp: correct today's change
8424         * lib/filevercmp.c: Also handle coreutils' test inputs.
8425         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
8426
8427         Fix regression in 'filevercmp' module. Thanks Sven Joachim
8428         for reporting it.
8429         * lib/filevercmp.c: Special handle for "", "." and "..".
8430         * tests/test-filevercmp.c: Enlarge the set suite.
8431
8432 2009-04-07  Jim Meyering  <meyering@redhat.com>
8433
8434         useless-if-before-free: show how to remove braced useless free, too
8435         * build-aux/useless-if-before-free: still only in a comment, though.
8436
8437 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
8438
8439         maint.mk: import changes to syntax-check macros from coreutils
8440         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
8441         Use them in the relevant macros.
8442
8443 2009-04-06  Bruno Haible  <bruno@clisp.org>
8444
8445         Fix unportable use of bit-fields.
8446         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
8447         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
8448         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
8449
8450 2009-04-06  Bruno Haible  <bruno@clisp.org>
8451
8452         Avoid test failures on AIX and OSF/1.
8453         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
8454         that malloc(0) = NULL.
8455         * tests/unicase/test-u8-tolower.c (check): Likewise.
8456         * tests/unicase/test-u8-totitle.c (check): Likewise.
8457         * tests/unicase/test-u8-toupper.c (check): Likewise.
8458         * tests/unicase/test-u16-casefold.c (check): Likewise.
8459         * tests/unicase/test-u16-tolower.c (check): Likewise.
8460         * tests/unicase/test-u16-totitle.c (check): Likewise.
8461         * tests/unicase/test-u16-toupper.c (check): Likewise.
8462         * tests/unicase/test-u32-casefold.c (check): Likewise.
8463         * tests/unicase/test-u32-tolower.c (check): Likewise.
8464         * tests/unicase/test-u32-totitle.c (check): Likewise.
8465         * tests/unicase/test-u32-toupper.c (check): Likewise.
8466         * tests/uninorm/test-u8-nfc.c (check): Likewise.
8467         * tests/uninorm/test-u8-nfd.c (check): Likewise.
8468         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
8469         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
8470         * tests/uninorm/test-u16-nfc.c (check): Likewise.
8471         * tests/uninorm/test-u16-nfd.c (check): Likewise.
8472         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
8473         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
8474         * tests/uninorm/test-u32-nfc.c (check): Likewise.
8475         * tests/uninorm/test-u32-nfd.c (check): Likewise.
8476         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
8477         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
8478
8479 2009-04-05  Bruno Haible  <bruno@clisp.org>
8480
8481         Work around an autoconf limitation.
8482         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
8483         comment line if it would be longer than 3 KB.
8484
8485 2009-04-05  Bruno Haible  <bruno@clisp.org>
8486
8487         Avoid test failure with libiconv-1.13.
8488         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
8489         of the expected test results.
8490
8491 2009-04-05  Bruno Haible  <bruno@clisp.org>
8492
8493         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
8494         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
8495         that it should be installed.
8496
8497 2009-04-05  Bruno Haible  <bruno@clisp.org>
8498
8499         * gnulib-tool: New option --copy-file.
8500         (func_usage): Document it.
8501         (func_dest_tmpfilename): Moved out of func_import.
8502         (func_add_file, func_update_file): New functions, extracted from
8503         func_import.
8504         (func_import): Update.
8505
8506 2009-04-05  Karl Berry  <karl@gnu.org>
8507
8508         * README: prominently mention gnulib-tool.
8509         Rearrange sections so getting the code is near the top.
8510
8511 2009-04-05  Bruno Haible  <bruno@clisp.org>
8512
8513         * lib/unicase.h: Mention u*_cmp2.
8514         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
8515         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
8516         * lib/unicase/ulc-casecmp.c: Likewise.
8517         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
8518         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
8519         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
8520         unistr/u8-cmp.
8521         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
8522         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
8523         unistr/u16-cmp.
8524         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
8525         unistr/u32-cmp.
8526
8527         * lib/uninorm.h: Mention u*_cmp2.
8528         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
8529         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
8530         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
8531         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
8532         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
8533         unistr/u8-cmp.
8534         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
8535         unistr/u16-cmp.
8536         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
8537         unistr/u32-cmp.
8538
8539         New module 'unistr/u32-cmp2'.
8540         * lib/unistr/u32-cmp2.c: New file.
8541         * modules/unistr/u32-cmp2: New file.
8542
8543         New module 'unistr/u16-cmp2'.
8544         * lib/unistr/u16-cmp2.c: New file.
8545         * modules/unistr/u16-cmp2: New file.
8546
8547         New module 'unistr/u8-cmp2'.
8548         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
8549         * lib/unistr/u8-cmp2.c: New file.
8550         * lib/unistr/u-cmp2.h: New file.
8551         * modules/unistr/u8-cmp2: New file.
8552
8553 2009-04-05  Bruno Haible  <bruno@clisp.org>
8554
8555         * lib/unictype.h (uc_property_is_valid): New macro.
8556         * tests/unictype/test-pr_byname.c (main): Use it.
8557
8558         * lib/unistr.h: Doc fixes.
8559         * lib/uniconv.h: Doc fixes.
8560         * lib/unictype.h: Doc fixes.
8561
8562 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
8563
8564         Port coreutils 7.2 to Solaris 8.
8565
8566         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
8567         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
8568         for Solaris 8.  This is a bit of a hack, as it means it's the
8569         caller's responsibility to add -lnsl if needed, but most likely it
8570         won't be needed since only getaddrinfo uses this and getaddrinfo
8571         isn't needed on Solaris 8.
8572
8573         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
8574         problem to Solaris 8 encountered with coreutils 7.2, which
8575         resulted in a message "fnmatch.c:292: warning: passing argument 4
8576         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
8577         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
8578
8579 2009-04-03  Simon Josefsson  <simon@josefsson.org>
8580
8581         * m4/ld-version-script.m4: Add FIXME comment.
8582
8583 2009-04-02  Simon Josefsson  <simon@josefsson.org>
8584
8585         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
8586         SOVERSION variable.
8587
8588 2009-04-02  Bruno Haible  <bruno@clisp.org>
8589
8590         * Makefile (info, html, dvi, pdf): Combine the rules.
8591         Suggested by Jim Meyering.
8592
8593 2009-04-01  Bruno Haible  <bruno@clisp.org>
8594
8595         * Makefile (info, html, dvi, pdf): New targets.
8596         Reported by Reuben Thomas <rrt@sc3d.org>.
8597
8598 2009-04-01  Bruno Haible  <bruno@clisp.org>
8599
8600         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
8601         can be put into PATH.
8602         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
8603
8604 2009-04-01  Bruno Haible  <bruno@clisp.org>
8605
8606         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
8607
8608 2009-04-01  Bruno Haible  <bruno@clisp.org>
8609
8610         Rename module 'visibility'.
8611         * modules/lib-symbol-visibility: Renamed from modules/visibility.
8612         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
8613         * doc/gnulib.texi: Update.
8614         * MODULES.html.sh (Misc): Update.
8615         * NEWS: Mention the change.
8616
8617 2009-04-01  Simon Josefsson  <simon@josefsson.org>
8618
8619         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
8620         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
8621         Eric Blake <ebb9@byu.net> for review.
8622         * MODULES.html.sh: Add lib-msvc-compat.
8623         * doc/gnulib.texi: Link to new section.
8624         * m4/ld-output-def.m4: New file.
8625         * doc/ld-output-def.texi: New file.
8626
8627 2009-04-01  Simon Josefsson  <simon@josefsson.org>
8628
8629         Rename ld-version-script to lib-symbol-versions.  Suggested by
8630         Bruno Haible <bruno@clisp.org>.
8631         * modules/ld-version-script: Renamed to lib-symbol-versions.
8632         * doc/ld-version-script.texi: Fix module name.
8633         * MODULES.html.sh: Add lib-symbol-versions.
8634
8635 2009-03-31  Simon Josefsson  <simon@josefsson.org>
8636
8637         * modules/u64-tests: New file.
8638         * tests/test-u64.c: New file.
8639
8640 2009-03-04  Simon Josefsson  <simon@josefsson.org>
8641
8642         * MODULES.html.sh: Mention u64.
8643         * modules/u64: New module.
8644         * modules/crypto/sha512: Depend on u64 module instead of providing
8645         u64.h.
8646
8647 2009-03-27  Eric Blake  <ebb9@byu.net>
8648
8649         test-strerror: make debugging EAI_SYSTEM easier
8650         * modules/getaddrinfo-tests (Depends-on): Add strerror.
8651         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
8652         failure was EAI_SYSTEM.
8653
8654 2009-03-25  Bruno Haible  <bruno@clisp.org>
8655
8656         Fix a problem with --enable-relocatable on Solaris 7.
8657         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
8658         since 2008-02-24.
8659
8660 2009-03-25  Eric Blake  <ebb9@byu.net>
8661
8662         test-sockets: avoid gcc warning
8663         * tests/test-sockets.c (main): Silence compiler warning.
8664
8665 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
8666
8667         New modules nproc, pthread, contributed by Glen Lenker.
8668
8669         * MODULES.html.sh: Add pthread, nproc.
8670         * lib/nproc.c: New file.
8671         * lib/nproc.h: New file.
8672         * lib/pthread.in.h: New file.
8673         * m4/pthread.m4: New file.
8674         * modules/nproc: New file.
8675         * modules/pthread: New file.
8676
8677 2009-03-24  Simon Josefsson  <simon@josefsson.org>
8678
8679         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
8680         New variable.
8681
8682 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
8683
8684         filevercmp: handle simple~ and numbered.~3~ backup suffixes
8685         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
8686         * tests/test-filevercmp.c: Add tests for backup suffixes.
8687
8688 2009-03-24  Simon Josefsson  <simon@josefsson.org>
8689
8690         * modules/stdlib (Depends-on): Add stdint, needed when defining
8691         struct random_data on, for example, HP-UX 10.20.  Reported by
8692         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8693
8694 2009-03-24  Simon Josefsson  <simon@josefsson.org>
8695
8696         * lib/readline.c (readline): Call fflush on stdout after printing
8697         prompt.
8698
8699 2009-03-20  Bruno Haible  <bruno@clisp.org>
8700
8701         Remove dependency from 'close' module to -lws2_32 on native Windows.
8702         * lib/close-hook.h: New file.
8703         * lib/close-hook.c: New file.
8704         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
8705         w32sock.h.
8706         (_gl_close_fd_maybe_socket): Remove function.
8707         (rpl_close): Invoke execute_all_close_hooks instead of
8708         _gl_close_fd_maybe_socket.
8709         * lib/sockets.c: Include close-hook.h, w32sock.h.
8710         (close_fd_maybe_socket): New function, essentially from lib/close.c.
8711         (close_sockets_hook): New variable.
8712         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
8713         (gl_sockets_cleanup): Unregister it.
8714         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
8715         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
8716         * modules/close-hook: New file.
8717         * modules/close (Files): Remove lib/w32sock.h.
8718         (Depends-on): Add close-hook.
8719         (Link): Remove section.
8720         * modules/sockets (Files): Add lib/w32sock.h.
8721         (Depends-on): Add close-hook.
8722         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
8723         invocation.
8724         * NEWS: Mention that LIB_CLOSE is gone.
8725
8726 2009-03-23  Eric Blake  <ebb9@byu.net>
8727
8728         signal-tests: test previous patch
8729         * tests/test-signal.c: New file.
8730         * modules/signal-tests: Likewise.
8731
8732         signal.h: always support 'volatile sig_atomic_t'
8733         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
8734         (gl_SIGNAL_H_DEFAULTS): Add a default.
8735         * modules/signal (Makefile.am): Substitute if needed.
8736         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
8737         users can blindly add volatile.
8738         * doc/posix-headers/signal.texi (signal.h): Document it.
8739         Reported by Matthew Woehlke.
8740
8741 2009-03-23  Jim Meyering  <meyering@redhat.com>
8742
8743         pathmax: PATH_MAX: use pathconf only when available
8744         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
8745         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
8746         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
8747         This avoids a link failure in a PSP cross-compilation environment
8748         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
8749
8750         * lib/vasnprintf.c (divide): Fix typo in comment.
8751
8752 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8753
8754         * gnulib-tool (func_filter_filelist): Fix comment.
8755
8756 2009-03-20  Bruno Haible  <bruno@clisp.org>
8757
8758         Make sockets.h self-contained.
8759         * lib/sockets.c: Include sockets.h first.
8760         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
8761
8762 2009-03-19  Eric Blake  <ebb9@byu.net>
8763
8764         doc: mention more functions added in cygwin 1.7.0
8765         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
8766         addition.
8767         * doc/posix-functions/log2f.texi: Likewise.
8768
8769 2009-03-19  Jim Meyering  <meyering@redhat.com>
8770
8771         fsusage: avoid syntax error due to statement-before-declaration
8772         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
8773         after all declarations.  Reported by Matthew Woehlke in
8774         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
8775
8776 2009-03-18  Eric Blake  <ebb9@byu.net>
8777
8778         build-aux/compile: sync from automake
8779         * build-aux/compile: New file, from automake.
8780         * config/srclist.txt: Mention build-aux/compile.
8781
8782 2009-03-17  Bruno Haible  <bruno@clisp.org>
8783
8784         * lib/git-merge-changelog.c: Fix typo in comment.
8785         Reported by Reuben Thomas <rrt@sc3d.org>.
8786
8787 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
8788
8789         * m4/regex.m4: update and improve help for
8790         --without-included-regex.
8791
8792 2009-03-17  Simon Josefsson  <simon@josefsson.org>
8793
8794         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
8795         failure on missing include files.
8796
8797 2009-03-17  Eric Blake  <ebb9@byu.net>
8798
8799         doc: mention more functions added in cygwin 1.7.0
8800         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
8801         addition.
8802         * doc/posix-functions/fwscanf.texi: Likewise.
8803         * doc/posix-functions/swprintf.texi: Likewise.
8804         * doc/posix-functions/swscanf.texi: Likewise.
8805         * doc/posix-functions/vfwprintf.texi: Likewise.
8806         * doc/posix-functions/vfwscanf.texi: Likewise.
8807         * doc/posix-functions/vswprintf.texi: Likewise.
8808         * doc/posix-functions/vswscanf.texi: Likewise.
8809         * doc/posix-functions/vwprintf.texi: Likewise.
8810         * doc/posix-functions/vwscanf.texi: Likewise.
8811         * doc/posix-functions/wcscasecmp.texi: Likewise.
8812         * doc/posix-functions/wcsdup.texi: Likewise.
8813         * doc/posix-functions/wcsftime.texi: Likewise.
8814         * doc/posix-functions/wcsncasecmp.texi: Likewise.
8815         * doc/posix-functions/wprintf.texi: Likewise.
8816         * doc/posix-functions/wscanf.texi: Likewise.
8817         * doc/glibc-functions/gethostbyname2.texi: Likewise.
8818
8819 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8820
8821         maint.mk: really add $(AM_MAKEFLAGS)
8822         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
8823         was inadvertently omitted in the last commit.
8824         Spotted by Bruno Haible.
8825
8826         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
8827         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
8828         $(AM_MAKEFLAGS)' rather than plain `make'.
8829
8830         gnulib-tool: execute $MAKE not make
8831         * gnulib-tool: Default $MAKE to 'make'.
8832         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
8833         than make.  Initialize $MAKE in the do-autobuild script.
8834
8835         gnulib-tool: use $MAKE not make in generated files
8836         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
8837         make, in generated files.  Initialize $MAKE in the do-autobuild
8838         script.
8839
8840         * top/GNUmakefile (_have-git-version-gen): Fix typo.
8841
8842         GNUmakefile: disable parallelism only for multiple, recursive targets
8843         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
8844         additions in the Makefile.
8845         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
8846         by Automake.
8847         (.NOTPARALLEL): Only disable parallel builds if multiple targets
8848         are listed on the command line and at least one of them is
8849         listed in $(ALL_RECURSIVE_TARGETS).
8850
8851 2009-03-14  Bruno Haible  <bruno@clisp.org>
8852
8853         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
8854         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
8855         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
8856         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
8857         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
8858         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
8859         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
8860         unistr/u8-uctomb.
8861         * modules/unistr/u8-strchr (Depends-on): Likewise.
8862         * modules/unistr/u8-strrchr (Depends-on): Likewise.
8863         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
8864         unistr/u16-uctomb.
8865         * modules/unistr/u16-strchr (Depends-on): Likewise.
8866         * modules/unistr/u16-strrchr (Depends-on): Likewise.
8867
8868 2009-03-12  Bruno Haible  <bruno@clisp.org>
8869
8870         Work around select() bug on Interix 3.5.
8871         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
8872         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
8873         * m4/select.m4: New file.
8874         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
8875         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
8876         * modules/select (Files): Add m4/select.m4.
8877         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
8878         * modules/nanosleep (Depends-on): Add select.
8879         * modules/poll (Depends-on): Likewise.
8880         * doc/posix-functions/select.texi: Mention the Interix bug.
8881         Reported by Markus Duft <mduft@gentoo.org>.
8882
8883         * lib/select.c: Renamed from lib/winsock-select.c.
8884         * modules/select (Files): Add lib/select.c, remove
8885         lib/winsock-select.c.
8886         (configure.ac): Update.
8887
8888 2009-03-12  Jim Meyering  <meyering@redhat.com>
8889
8890         avoid gcc warnings about unused macro definitions
8891         * lib/readtokens.c (STREQ): Remove unused definition.
8892         * lib/xmalloc.c (SIZE_MAX): Likewise.
8893         * lib/openat-die.c (N_): Likewise.
8894         * lib/mountlist.c (SIZE_MAX): Remove definition.
8895         Instead, include <stdint.h>.
8896         * lib/readutmp.c: Likewise.
8897         * modules/readutmp (Depends-on): Add stdint.
8898         * modules/mountlist (Depends-on): Add stdint.
8899         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
8900
8901 2009-03-10  Bruno Haible  <bruno@clisp.org>
8902
8903         Tests for module 'mbmemcasecoll'.
8904         * modules/mbmemcasecoll-tests: New file.
8905         * tests/test-mbmemcasecoll1.sh: New file.
8906         * tests/test-mbmemcasecoll2.sh: New file.
8907         * tests/test-mbmemcasecoll3.sh: New file.
8908         * tests/test-mbmemcasecoll.c: New file.
8909
8910         New module 'mbmemcasecoll'.
8911         * lib/mbmemcasecoll.h: New file.
8912         * lib/mbmemcasecoll.c: New file.
8913         * modules/mbmemcasecoll: New file.
8914
8915         * tests/test-mbmemcasecmp.h: New file, extracted from
8916         tests/test-mbmemcasecmp.c.
8917         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
8918         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
8919         (main): Update.
8920         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
8921
8922 2009-03-09  Bruno Haible  <bruno@clisp.org>
8923
8924         Tests for module 'mbmemcasecmp'.
8925         * modules/mbmemcasecmp-tests: New file.
8926         * tests/test-mbmemcasecmp1.sh: New file.
8927         * tests/test-mbmemcasecmp2.sh: New file.
8928         * tests/test-mbmemcasecmp3.sh: New file.
8929         * tests/test-mbmemcasecmp.c: New file.
8930
8931         New module 'mbmemcasecmp'.
8932         * lib/mbmemcasecmp.h: New file.
8933         * lib/mbmemcasecmp.c: New file.
8934         * modules/mbmemcasecmp: New file.
8935
8936 2009-03-09  Bruno Haible  <bruno@clisp.org>
8937
8938         Tests for module 'unicase/ulc-casecoll'.
8939         * modules/unicase/ulc-casecoll-tests: New file.
8940         * tests/unicase/test-ulc-casecoll1.sh: New file.
8941         * tests/unicase/test-ulc-casecoll2.sh: New file.
8942         * tests/unicase/test-ulc-casecoll.c: New file.
8943
8944         New module 'unicase/ulc-casecoll'.
8945         * lib/unicase.h (ulc_casecoll): New declaration.
8946         * lib/unicase/ulc-casecoll.c: New file.
8947         * modules/unicase/ulc-casecoll: New file.
8948
8949         New module 'unicase/ulc-casexfrm'.
8950         * lib/unicase.h (ulc_casexfrm): New declaration.
8951         * lib/unicase/ulc-casexfrm.c: New file.
8952         * modules/unicase/ulc-casexfrm: New file.
8953
8954 2009-03-09  Bruno Haible  <bruno@clisp.org>
8955
8956         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
8957         invocations.
8958
8959         * m4/mbscasecmp.m4: Remove file.
8960         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
8961         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
8962
8963         * m4/mbscasestr.m4: Remove file.
8964         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
8965         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
8966
8967         * m4/mbschr.m4: Remove file.
8968         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
8969         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
8970
8971         * m4/mbscspn.m4: Remove file.
8972         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
8973         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
8974
8975         * m4/mbslen.m4: Remove file.
8976         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
8977         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
8978
8979         * m4/mbsncasecmp.m4: Remove file.
8980         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
8981         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
8982
8983         * m4/mbsnlen.m4: Remove file.
8984         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
8985         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
8986
8987         * m4/mbspbrk.m4: Remove file.
8988         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
8989         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
8990
8991         * m4/mbspcasecmp.m4: Remove file.
8992         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
8993         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
8994
8995         * m4/mbsrchr.m4: Remove file.
8996         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
8997         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
8998
8999         * m4/mbssep.m4: Remove file.
9000         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
9001         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
9002
9003         * m4/mbsspn.m4: Remove file.
9004         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
9005         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
9006
9007         * m4/mbsstr.m4: Remove file.
9008         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
9009         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
9010
9011         * m4/mbstok_r.m4: Remove file.
9012         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
9013         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
9014
9015         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
9016
9017         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
9018         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
9019
9020         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
9021
9022 2009-03-08  Bruno Haible  <bruno@clisp.org>
9023
9024         Tests for module 'unicase/ulc-casecmp'.
9025         * modules/unicase/ulc-casecmp-tests: New file.
9026         * tests/unicase/test-ulc-casecmp1.sh: New file.
9027         * tests/unicase/test-ulc-casecmp2.sh: New file.
9028         * tests/unicase/test-ulc-casecmp.c: New file.
9029
9030         New module 'unicase/ulc-casecmp'.
9031         * lib/unicase.h (ulc_casecmp): New declaration.
9032         * lib/unicase/ulc-casecmp.c: New file.
9033         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
9034         'const SRC_UNIT *'.
9035         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
9036         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
9037         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
9038         * modules/unicase/ulc-casecmp: New file.
9039
9040         Tests for module 'unicase/u32-is-cased'.
9041         * modules/unicase/u32-is-cased-tests: New file.
9042         * tests/unicase/test-u32-is-cased.c: New file.
9043
9044         Tests for module 'unicase/u16-is-cased'.
9045         * modules/unicase/u16-is-cased-tests: New file.
9046         * tests/unicase/test-u16-is-cased.c: New file.
9047
9048         Tests for module 'unicase/u8-is-cased'.
9049         * modules/unicase/u8-is-cased-tests: New file.
9050         * tests/unicase/test-u8-is-cased.c: New file.
9051         * tests/unicase/test-is-cased.h: New file.
9052
9053         New module 'unicase/u32-is-cased'.
9054         * lib/unicase/u32-is-cased.c: New file.
9055         * modules/unicase/u32-is-cased: New file.
9056
9057         New module 'unicase/u16-is-cased'.
9058         * lib/unicase/u16-is-cased.c: New file.
9059         * modules/unicase/u16-is-cased: New file.
9060
9061         New module 'unicase/u8-is-cased'.
9062         * lib/unicase/u8-is-cased.c: New file.
9063         * lib/unicase/u-is-cased.h: New file.
9064         * modules/unicase/u8-is-cased: New file.
9065
9066         Tests for module 'unicase/u32-is-casefolded'.
9067         * modules/unicase/u32-is-casefolded-tests: New file.
9068         * tests/unicase/test-u32-is-casefolded.c: New file.
9069
9070         Tests for module 'unicase/u16-is-casefolded'.
9071         * modules/unicase/u16-is-casefolded-tests: New file.
9072         * tests/unicase/test-u16-is-casefolded.c: New file.
9073
9074         Tests for module 'unicase/u8-is-casefolded'.
9075         * modules/unicase/u8-is-casefolded-tests: New file.
9076         * tests/unicase/test-u8-is-casefolded.c: New file.
9077         * tests/unicase/test-is-casefolded.h: New file.
9078
9079         New module 'unicase/u32-is-casefolded'.
9080         * lib/unicase/u32-is-casefolded.c: New file.
9081         * modules/unicase/u32-is-casefolded: New file.
9082
9083         New module 'unicase/u16-is-casefolded'.
9084         * lib/unicase/u16-is-casefolded.c: New file.
9085         * modules/unicase/u16-is-casefolded: New file.
9086
9087         New module 'unicase/u8-is-casefolded'.
9088         * lib/unicase/u8-is-casefolded.c: New file.
9089         * modules/unicase/u8-is-casefolded: New file.
9090
9091         Tests for module 'unicase/u32-is-titlecase'.
9092         * modules/unicase/u32-is-titlecase-tests: New file.
9093         * tests/unicase/test-u32-is-titlecase.c: New file.
9094
9095         Tests for module 'unicase/u16-is-titlecase'.
9096         * modules/unicase/u16-is-titlecase-tests: New file.
9097         * tests/unicase/test-u16-is-titlecase.c: New file.
9098
9099         Tests for module 'unicase/u8-is-titlecase'.
9100         * modules/unicase/u8-is-titlecase-tests: New file.
9101         * tests/unicase/test-u8-is-titlecase.c: New file.
9102         * tests/unicase/test-is-titlecase.h: New file.
9103
9104         New module 'unicase/u32-is-titlecase'.
9105         * lib/unicase/u32-is-titlecase.c: New file.
9106         * modules/unicase/u32-is-titlecase: New file.
9107
9108         New module 'unicase/u16-is-titlecase'.
9109         * lib/unicase/u16-is-titlecase.c: New file.
9110         * modules/unicase/u16-is-titlecase: New file.
9111
9112         New module 'unicase/u8-is-titlecase'.
9113         * lib/unicase/u8-is-titlecase.c: New file.
9114         * modules/unicase/u8-is-titlecase: New file.
9115
9116         Tests for module 'unicase/u32-is-lowercase'.
9117         * modules/unicase/u32-is-lowercase-tests: New file.
9118         * tests/unicase/test-u32-is-lowercase.c: New file.
9119
9120         Tests for module 'unicase/u16-is-lowercase'.
9121         * modules/unicase/u16-is-lowercase-tests: New file.
9122         * tests/unicase/test-u16-is-lowercase.c: New file.
9123
9124         Tests for module 'unicase/u8-is-lowercase'.
9125         * modules/unicase/u8-is-lowercase-tests: New file.
9126         * tests/unicase/test-u8-is-lowercase.c: New file.
9127         * tests/unicase/test-is-lowercase.h: New file.
9128
9129         New module 'unicase/u32-is-lowercase'.
9130         * lib/unicase/u32-is-lowercase.c: New file.
9131         * modules/unicase/u32-is-lowercase: New file.
9132
9133         New module 'unicase/u16-is-lowercase'.
9134         * lib/unicase/u16-is-lowercase.c: New file.
9135         * modules/unicase/u16-is-lowercase: New file.
9136
9137         New module 'unicase/u8-is-lowercase'.
9138         * lib/unicase/u8-is-lowercase.c: New file.
9139         * modules/unicase/u8-is-lowercase: New file.
9140
9141         Tests for module 'unicase/u32-is-uppercase'.
9142         * modules/unicase/u32-is-uppercase-tests: New file.
9143         * tests/unicase/test-u32-is-uppercase.c: New file.
9144
9145         Tests for module 'unicase/u16-is-uppercase'.
9146         * modules/unicase/u16-is-uppercase-tests: New file.
9147         * tests/unicase/test-u16-is-uppercase.c: New file.
9148
9149         Tests for module 'unicase/u8-is-uppercase'.
9150         * modules/unicase/u8-is-uppercase-tests: New file.
9151         * tests/unicase/test-u8-is-uppercase.c: New file.
9152         * tests/unicase/test-is-uppercase.h: New file.
9153
9154         New module 'unicase/u32-is-uppercase'.
9155         * lib/unicase/u32-is-uppercase.c: New file.
9156         * modules/unicase/u32-is-uppercase: New file.
9157
9158         New module 'unicase/u16-is-uppercase'.
9159         * lib/unicase/u16-is-uppercase.c: New file.
9160         * modules/unicase/u16-is-uppercase: New file.
9161
9162         New module 'unicase/u8-is-uppercase'.
9163         * lib/unicase/u8-is-uppercase.c: New file.
9164         * modules/unicase/u8-is-uppercase: New file.
9165
9166         New module 'unicase/u32-is-invariant'.
9167         * lib/unicase/u32-is-invariant.c: New file.
9168         * modules/unicase/u32-is-invariant: New file.
9169
9170         New module 'unicase/u16-is-invariant'.
9171         * lib/unicase/u16-is-invariant.c: New file.
9172         * modules/unicase/u16-is-invariant: New file.
9173
9174         New module 'unicase/u8-is-invariant'.
9175         * lib/unicase/u8-is-invariant.c: New file.
9176         * lib/unicase/invariant.h: New file.
9177         * lib/unicase/u-is-invariant.h: New file.
9178         * modules/unicase/u8-is-invariant: New file.
9179
9180         Tests for module 'unicase/u32-casecoll'.
9181         * modules/unicase/u32-casecoll-tests: New file.
9182         * tests/unicase/test-u32-casecoll.c: New file.
9183
9184         Tests for module 'unicase/u16-casecoll'.
9185         * modules/unicase/u16-casecoll-tests: New file.
9186         * tests/unicase/test-u16-casecoll.c: New file.
9187
9188         Tests for module 'unicase/u8-casecoll'.
9189         * modules/unicase/u8-casecoll-tests: New file.
9190         * tests/unicase/test-u8-casecoll.c: New file.
9191
9192         New module 'unicase/u32-casecoll'.
9193         * lib/unicase/u32-casecoll.c: New file.
9194         * modules/unicase/u32-casecoll: New file.
9195
9196         New module 'unicase/u16-casecoll'.
9197         * lib/unicase/u16-casecoll.c: New file.
9198         * modules/unicase/u16-casecoll: New file.
9199
9200         New module 'unicase/u8-casecoll'.
9201         * lib/unicase/u8-casecoll.c: New file.
9202         * lib/unicase/u-casecoll.h: New file.
9203         * modules/unicase/u8-casecoll: New file.
9204
9205         New module 'unicase/u32-casexfrm'.
9206         * lib/unicase/u32-casexfrm.c: New file.
9207         * modules/unicase/u32-casexfrm: New file.
9208
9209         New module 'unicase/u16-casexfrm'.
9210         * lib/unicase/u16-casexfrm.c: New file.
9211         * modules/unicase/u16-casexfrm: New file.
9212
9213         New module 'unicase/u8-casexfrm'.
9214         * lib/unicase/u8-casexfrm.c: New file.
9215         * lib/unicase/u-casexfrm.h: New file.
9216         * modules/unicase/u8-casexfrm: New file.
9217
9218         Tests for module 'unicase/u32-casecmp'.
9219         * modules/unicase/u32-casecmp-tests: New file.
9220         * tests/unicase/test-u32-casecmp.c: New file.
9221
9222         Tests for module 'unicase/u16-casecmp'.
9223         * modules/unicase/u16-casecmp-tests: New file.
9224         * tests/unicase/test-u16-casecmp.c: New file.
9225
9226         Tests for module 'unicase/u8-casecmp'.
9227         * modules/unicase/u8-casecmp-tests: New file.
9228         * tests/unicase/test-u8-casecmp.c: New file.
9229         * tests/unicase/test-casecmp.h: New file.
9230
9231         New module 'unicase/u32-casecmp'.
9232         * lib/unicase/u32-casecmp.c: New file.
9233         * modules/unicase/u32-casecmp: New file.
9234
9235         New module 'unicase/u16-casecmp'.
9236         * lib/unicase/u16-casecmp.c: New file.
9237         * modules/unicase/u16-casecmp: New file.
9238
9239         New module 'unicase/u8-casecmp'.
9240         * lib/unicase/u8-casecmp.c: New file.
9241         * lib/unicase/u-casecmp.h: New file.
9242         * modules/unicase/u8-casecmp: New file.
9243
9244         Tests for module 'unicase/u32-casefold'.
9245         * modules/unicase/u32-casefold-tests: New file.
9246         * tests/unicase/test-u32-casefold.c: New file.
9247
9248         Tests for module 'unicase/u16-casefold'.
9249         * modules/unicase/u16-casefold-tests: New file.
9250         * tests/unicase/test-u16-casefold.c: New file.
9251
9252         Tests for module 'unicase/u8-casefold'.
9253         * modules/unicase/u8-casefold-tests: New file.
9254         * tests/unicase/test-u8-casefold.c: New file.
9255
9256         New module 'unicase/u32-casefold'.
9257         * lib/unicase/u32-casefold.c: New file.
9258         * modules/unicase/u32-casefold: New file.
9259
9260         New module 'unicase/u16-casefold'.
9261         * lib/unicase/u16-casefold.c: New file.
9262         * modules/unicase/u16-casefold: New file.
9263
9264         New module 'unicase/u8-casefold'.
9265         * lib/unicase/u8-casefold.c: New file.
9266         * lib/unicase/u-casefold.h: New file.
9267         * modules/unicase/u8-casefold: New file.
9268
9269         New module 'unicase/tocasefold'.
9270         * lib/unicase/casefold.h: New file.
9271         * lib/unicase/tocasefold.c: New file.
9272         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
9273         * modules/unicase/tocasefold: New file.
9274
9275         Tests for module 'unicase/u32-totitle'.
9276         * modules/unicase/u32-totitle-tests: New file.
9277         * tests/unicase/test-u32-totitle.c: New file.
9278
9279         Tests for module 'unicase/u16-totitle'.
9280         * modules/unicase/u16-totitle-tests: New file.
9281         * tests/unicase/test-u16-totitle.c: New file.
9282
9283         Tests for module 'unicase/u8-totitle'.
9284         * modules/unicase/u8-totitle-tests: New file.
9285         * tests/unicase/test-u8-totitle.c: New file.
9286
9287         New module 'unicase/u32-totitle'.
9288         * lib/unicase/u32-totitle.c: New file.
9289         * modules/unicase/u32-totitle: New file.
9290
9291         New module 'unicase/u16-totitle'.
9292         * lib/unicase/u16-totitle.c: New file.
9293         * modules/unicase/u16-totitle: New file.
9294
9295         New module 'unicase/u8-totitle'.
9296         * lib/unicase/u8-totitle.c: New file.
9297         * lib/unicase/u-totitle.h: New file.
9298         * modules/unicase/u8-totitle: New file.
9299
9300         Tests for module 'unicase/u32-tolower'.
9301         * modules/unicase/u32-tolower-tests: New file.
9302         * tests/unicase/test-u32-tolower.c: New file.
9303
9304         Tests for module 'unicase/u16-tolower'.
9305         * modules/unicase/u16-tolower-tests: New file.
9306         * tests/unicase/test-u16-tolower.c: New file.
9307
9308         Tests for module 'unicase/u8-tolower'.
9309         * modules/unicase/u8-tolower-tests: New file.
9310         * tests/unicase/test-u8-tolower.c: New file.
9311
9312         New module 'unicase/u32-tolower'.
9313         * lib/unicase/u32-tolower.c: New file.
9314         * modules/unicase/u32-tolower: New file.
9315
9316         New module 'unicase/u16-tolower'.
9317         * lib/unicase/u16-tolower.c: New file.
9318         * modules/unicase/u16-tolower: New file.
9319
9320         New module 'unicase/u8-tolower'.
9321         * lib/unicase/u8-tolower.c: New file.
9322         * modules/unicase/u8-tolower: New file.
9323
9324         Tests for module 'unicase/u32-toupper'.
9325         * modules/unicase/u32-toupper-tests: New file.
9326         * tests/unicase/test-u32-toupper.c: New file.
9327
9328         Tests for module 'unicase/u16-toupper'.
9329         * modules/unicase/u16-toupper-tests: New file.
9330         * tests/unicase/test-u16-toupper.c: New file.
9331
9332         Tests for module 'unicase/u8-toupper'.
9333         * modules/unicase/u8-toupper-tests: New file.
9334         * tests/unicase/test-u8-toupper.c: New file.
9335
9336         New module 'unicase/u32-toupper'.
9337         * lib/unicase/u32-toupper.c: New file.
9338         * modules/unicase/u32-toupper: New file.
9339
9340         New module 'unicase/u16-toupper'.
9341         * lib/unicase/u16-toupper.c: New file.
9342         * modules/unicase/u16-toupper: New file.
9343
9344         New module 'unicase/u8-toupper'.
9345         * lib/unicase/u8-toupper.c: New file.
9346         * modules/unicase/u8-toupper: New file.
9347
9348         New module 'unicase/u32-casemap'.
9349         * lib/unicase/u32-casemap.c: New file.
9350         * modules/unicase/u32-casemap: New file.
9351
9352         New module 'unicase/u16-casemap'.
9353         * lib/unicase/u16-casemap.c: New file.
9354         * modules/unicase/u16-casemap: New file.
9355
9356         New module 'unicase/u8-casemap'.
9357         * lib/unicase/unicasemap.h: New file.
9358         * lib/unicase/u8-casemap.c: New file.
9359         * lib/unicase/u-casemap.h: New file.
9360         * modules/unicase/u8-casemap: New file.
9361
9362         New module 'unicase/special-casing'.
9363         * lib/unicase/special-casing.h: New file.
9364         * lib/unicase/special-casing.c: New file.
9365         * lib/unicase/special-casing-table.gperf: New file, generated by
9366         gen-uni-tables.c.
9367         * modules/unicase/special-casing: New file.
9368
9369         Tests for module 'unicase/locale-language'.
9370         * modules/unicase/locale-language-tests: New file.
9371         * tests/unicase/test-locale-language.sh: New file.
9372         * tests/unicase/test-locale-language.c: New file.
9373
9374         New module 'unicase/locale-language'.
9375         * lib/unicase/locale-language.c: New file.
9376         * lib/unicase/locale-languages.gperf: New file.
9377         * modules/unicase/locale-language: New file.
9378
9379         Generate more tables for case conversion and case folding.
9380         * lib/gen-uni-tables.c (SCC_*): New enum items.
9381         (struct special_casing_rule): New type.
9382         (casing_rules, num_casing_rules, allocated_casing_rules): New
9383         variables.
9384         (add_casing_rule, fill_casing_rules): New functions.
9385         (struct casefold_rule): New type.
9386         (casefolding_rules, num_casefolding_rules,
9387         allocated_casefolding_rules): New variables.
9388         (fill_casefolding_rules): New function.
9389         (unicode_casefold): New variable.
9390         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
9391         sort_casing_rules, output_casing_rules): New functions.
9392         (main): Accept to more arguments: SpecialCasing.txt and
9393         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
9394         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
9395         Output mapping for casefolding.
9396
9397         * lib/unicase.h: Include stdbool.h, uninorm.h.
9398         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
9399         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
9400         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
9401         arguments.
9402         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
9403         resultp arguments.
9404         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
9405         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
9406         resultp arguments.
9407         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
9408         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
9409         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
9410         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
9411         declarations.
9412         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
9413
9414 2009-03-08  Bruno Haible  <bruno@clisp.org>
9415
9416         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
9417         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
9418         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
9419         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
9420
9421 2009-03-07  Bruno Haible  <bruno@clisp.org>
9422
9423         Adjust u*_normcmp, u*_normcoll API.
9424         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
9425         u16_normcoll, u32_normcoll): Change failure conventions.
9426         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
9427         errno and return -1.
9428         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
9429
9430 2009-03-07  Bruno Haible  <bruno@clisp.org>
9431
9432         Tests for module 'uninorm/u32-normcoll'.
9433         * modules/uninorm/u32-normcoll-tests: New file.
9434         * tests/uninorm/test-u32-normcoll.c: New file.
9435
9436         Tests for module 'uninorm/u16-normcoll'.
9437         * modules/uninorm/u16-normcoll-tests: New file.
9438         * tests/uninorm/test-u16-normcoll.c: New file.
9439
9440         Tests for module 'uninorm/u8-normcoll'.
9441         * modules/uninorm/u8-normcoll-tests: New file.
9442         * tests/uninorm/test-u8-normcoll.c: New file.
9443
9444 2009-03-07  Bruno Haible  <bruno@clisp.org>
9445
9446         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
9447         tests/uninorm/test-u32-normcmp.c.
9448         * tests/uninorm/test-u32-normcmp.c: Include it.
9449         (test_nonascii): New function, extracted from main. Add some more
9450         tests.
9451         (main): Invoke test_ascii and test_nonascii.
9452         * modules/uninorm/u32-normcmp-tests (Files): Add
9453         tests/uninorm/test-u32-normcmp.h.
9454         (Depends-on): Remove uninorm/u32-normcmp.
9455
9456         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
9457         tests/uninorm/test-u16-normcmp.c.
9458         * tests/uninorm/test-u16-normcmp.c: Include it.
9459         (test_nonascii): New function, extracted from main. Add some more
9460         tests.
9461         (main): Invoke test_ascii and test_nonascii.
9462         * modules/uninorm/u16-normcmp-tests (Files): Add
9463         tests/uninorm/test-u16-normcmp.h.
9464         (Depends-on): Remove uninorm/u16-normcmp.
9465
9466         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
9467         tests/uninorm/test-u8-normcmp.c.
9468         * tests/uninorm/test-u8-normcmp.c: Include it.
9469         (test_nonascii): New function, extracted from main. Add some more
9470         tests.
9471         (main): Invoke test_ascii and test_nonascii.
9472         * modules/uninorm/u8-normcmp-tests (Files): Add
9473         tests/uninorm/test-u8-normcmp.h.
9474         (Depends-on): Remove uninorm/u8-normcmp.
9475
9476 2009-03-07  Bruno Haible  <bruno@clisp.org>
9477
9478         New module 'uninorm/u32-normcoll'.
9479         * lib/uninorm/u32-normcoll.c: New file.
9480         * modules/uninorm/u32-normcoll: New file.
9481
9482         New module 'uninorm/u16-normcoll'.
9483         * lib/uninorm/u16-normcoll.c: New file.
9484         * modules/uninorm/u16-normcoll: New file.
9485
9486         New module 'uninorm/u8-normcoll'.
9487         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
9488         declarations.
9489         * lib/uninorm/u8-normcoll.c: New file.
9490         * lib/uninorm/u-normcoll.h: New file.
9491         * modules/uninorm/u8-normcoll: New file.
9492
9493         New module 'uninorm/u32-normxfrm'.
9494         * lib/uninorm/u32-normxfrm.c: New file.
9495         * modules/uninorm/u32-normxfrm: New file.
9496
9497         New module 'uninorm/u16-normxfrm'.
9498         * lib/uninorm/u16-normxfrm.c: New file.
9499         * modules/uninorm/u16-normxfrm: New file.
9500
9501         New module 'uninorm/u8-normxfrm'.
9502         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
9503         declarations.
9504         * lib/uninorm/u8-normxfrm.c: New file.
9505         * lib/uninorm/u-normxfrm.h: New file.
9506         * modules/uninorm/u8-normxfrm: New file.
9507
9508 2009-03-07  Bruno Haible  <bruno@clisp.org>
9509
9510         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
9511         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
9512         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
9513
9514 2009-03-07  Bruno Haible  <bruno@clisp.org>
9515
9516         New module 'memxfrm'.
9517         * lib/memxfrm.h: New file.
9518         * lib/memxfrm.c: New file.
9519         * modules/memxfrm: New file.
9520
9521 2009-03-07  Bruno Haible  <bruno@clisp.org>
9522
9523         New module 'memcmp2'.
9524         * lib/memcmp2.h: New file.
9525         * lib/memcmp2.c: New file.
9526         * modules/memcmp2: New file.
9527
9528 2009-03-07  Bruno Haible  <bruno@clisp.org>
9529
9530         Tests for module 'uninorm/decomposing-form'.
9531         * modules/uninorm/decomposing-form-tests: New file.
9532         * tests/uninorm/test-decomposing-form.c: New file.
9533
9534         New module 'uninorm/decomposing-form'.
9535         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
9536         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
9537         Add 'decomposing_variant' field.
9538         * lib/uninorm/decomposing-form.c: New file.
9539         * lib/uninorm/nfc.c (uninorm_nfc): Update.
9540         * lib/uninorm/nfd.c (uninorm_nfd): Update.
9541         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
9542         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
9543         * modules/uninorm/decomposing-form: New file.
9544         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
9545         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
9546
9547 2009-03-07  Bruno Haible  <bruno@clisp.org>
9548
9549         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
9550         strings.
9551
9552 2009-03-06  Bruno Haible  <bruno@clisp.org>
9553
9554         Tests for module 'uninorm/u32-normcmp'.
9555         * tests/uninorm/test-u32-normcmp.c: New file.
9556         * modules/uninorm/u32-normcmp-tests: New file.
9557
9558         Tests for module 'uninorm/u16-normcmp'.
9559         * tests/uninorm/test-u16-normcmp.c: New file.
9560         * modules/uninorm/u16-normcmp-tests: New file.
9561
9562         Tests for module 'uninorm/u8-normcmp'.
9563         * tests/uninorm/test-u8-normcmp.c: New file.
9564         * modules/uninorm/u8-normcmp-tests: New file.
9565
9566         New module 'uninorm/u32-normcmp'.
9567         * lib/uninorm/u32-normcmp.c: New file.
9568         * modules/uninorm/u32-normcmp: New file.
9569
9570         New module 'uninorm/u16-normcmp'.
9571         * lib/uninorm/u16-normcmp.c: New file.
9572         * modules/uninorm/u16-normcmp: New file.
9573
9574         New module 'uninorm/u8-normcmp'.
9575         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
9576         declarations.
9577         * lib/uninorm/u8-normcmp.c: New file.
9578         * lib/uninorm/u-normcmp.h: New file.
9579         * modules/uninorm/u8-normcmp: New file.
9580
9581 2009-03-06  Bruno Haible  <bruno@clisp.org>
9582
9583         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
9584         Reported by Eric Blake.
9585
9586 2009-03-06  Eric Blake  <ebb9@byu.net>
9587             Bruno Haible  <bruno@clisp.org>
9588
9589         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
9590         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
9591         condition.
9592         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
9593         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
9594         condition.
9595         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
9596
9597 2009-03-06  Eric Blake  <ebb9@byu.net>
9598
9599         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
9600         to avoid compiler warnings.
9601         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
9602
9603 2009-03-05  Bruno Haible  <bruno@clisp.org>
9604
9605         * tests/test-ftell.c (main): Disable test beyond end of file on
9606         FreeMiNT.
9607         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
9608
9609 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
9610
9611         * lib/filevercmp.c: Move hidden files up in ordering.
9612         * tests/test-filevercmp.c: Add tests for hidden files.
9613
9614 2009-03-04  Bruno Haible  <bruno@clisp.org>
9615
9616         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
9617         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
9618         AM_CFLAGS.
9619         Reported by Simon Josefsson.
9620
9621 2009-03-03  Bruno Haible  <bruno@clisp.org>
9622
9623         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
9624         Reported by Simon Josefsson.
9625
9626         * doc/ld-version-script.texi: Update node reference.
9627
9628 2009-03-03  Bruno Haible  <bruno@clisp.org>
9629
9630         * modules/visibility (License): Change to 'unlimited'.
9631         Suggested by Simon Josefsson.
9632
9633 2009-03-03  Jim Meyering  <meyering@redhat.com>
9634
9635         unlinkdir: cannot_unlink_dir may modify process state
9636         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
9637         it's neither thread-safe nor appropriate for use in a library.
9638
9639 2009-03-03  Eric Blake  <ebb9@byu.net>
9640
9641         test-closein: silence test under Darwin
9642         * tests/test-closein.sh: Ignore stderr from cat, since we don't
9643         care if it dies from EPIPE or EBADF.
9644
9645 2009-03-03  Bruno Haible  <bruno@clisp.org>
9646
9647         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
9648         earlier.
9649         * doc/visibility.texi: Fix @node and @section.
9650
9651 2009-03-03  Simon Josefsson  <simon@josefsson.org>
9652
9653         * doc/gnulib.texi: Link to sections for ld version script and
9654         visibility.
9655         * doc/visibility.texi: Add @node and @section.
9656         * modules/ld-version-script: New module.
9657         * m4/ld-version-script.m4: New file.
9658         * doc/ld-version-script.texi: New file.
9659
9660 2009-03-02  David Lutterkort  <lutter@redhat.com>
9661
9662         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
9663         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9664
9665 2009-03-02  Bruno Haible  <bruno@clisp.org>
9666
9667         * doc/visibility.texi: Mention libtool's -export-symbols option.
9668
9669 2009-03-02  Jim Meyering  <meyering@redhat.com>
9670
9671         announce-gen: new option: --no-print-checksums
9672         * build-aux/announce-gen (usage): Describe it.
9673         (print_checksums): Print a newline here, not in the [*] footnote.
9674         (main): Honor it.
9675
9676 2009-03-01  Bruno Haible  <bruno@clisp.org>
9677
9678         Use socklen_t in the native Windows replacements prototypes.
9679         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
9680         instead of 'int'.
9681         * lib/getsockopt.c (rpl_getsockopt): Likewise.
9682         * lib/setsockopt.c (rpl_setsockopt): Likewise.
9683         * modules/getsockopt (Depends-on): Add socklen.
9684         * modules/setsockopt (Depends-on): Add socklen.
9685
9686 2009-03-01  Bruno Haible  <bruno@clisp.org>
9687
9688         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
9689         least 4.2.
9690
9691 2009-03-01  Eric Blake  <ebb9@byu.net>
9692             Bruno Haible  <bruno@clisp.org>
9693
9694         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
9695         error messages.
9696         * lib/wait-process.c (wait_subprocess): Omit error message about
9697         deadly signal sent to the child of termsigp != NULL.
9698
9699 2009-03-01  Eric Blake  <ebb9@byu.net>
9700
9701         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
9702
9703 2009-03-01  Bruno Haible  <bruno@clisp.org>
9704
9705         Avoid a gcc warning.
9706         * tests/test-sched.c (b): Make global.
9707         Reported by Eric Blake.
9708
9709 2009-01-19  Martin Lambers  <marlam@marlam.de>
9710
9711         Provide POSIX semantics for socket timeout options on W32.
9712         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
9713         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
9714         * modules/setsockopt: Depend on sys_time module for struct timeval.
9715         * modules/getsockopt: Depend on sys_time module for struct timeval.
9716
9717 2009-03-01  Simon Josefsson  <simon@josefsson.org>
9718
9719         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
9720         __USE_GNU, for consistency with netdb.in.h.
9721         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9722
9723 2009-03-01  Bruno Haible  <bruno@clisp.org>
9724
9725         More support for FreeMiNT.
9726         * lib/fseeko.c (rpl_fseeko): Complete last commit.
9727         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9728
9729 2009-03-01  Bruno Haible  <bruno@clisp.org>
9730
9731         More support for FreeMiNT.
9732         * lib/fpurge.c (fpurge): Correct last commit.
9733         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9734
9735 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9736
9737         Fix unportable awk script in vc-list-files.
9738         * build-aux/vc-list-files: In the replacement awk script, use
9739         substr with a second argument of 1, not zero.
9740         Report by Simon Josefsson.
9741
9742 2009-02-28  Bruno Haible  <bruno@clisp.org>
9743
9744         More support for FreeMiNT.
9745         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
9746         to FreeMiNT today.
9747         * lib/fwriting.c (fwriting): Likewise.
9748         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
9749
9750 2009-02-28  Bruno Haible  <bruno@clisp.org>
9751
9752         * tests/test-freadseek.c (main): Disable test beyond end of file on
9753         FreeMiNT.
9754         * tests/test-ftello.c (main): Likewise.
9755         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
9756
9757 2009-02-28  Bruno Haible  <bruno@clisp.org>
9758
9759         Add tentative support for FreeMiNT.
9760         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
9761         * lib/fpurge.c (fpurge): Likewise.
9762         * lib/freadable.c (freadable): Likewise.
9763         * lib/freading.c (freading): Likewise.
9764         * lib/freadptr.c (freadptr): Likewise.
9765         * lib/freadseek.c (freadptrinc): Likewise.
9766         * lib/fseeko.c (rpl_fseeko): Likewise.
9767         * lib/fseterr.c (fseterr): Likewise.
9768         * lib/fwritable.c (fwritable): Likewise.
9769         * lib/fwriting.c (fwriting): Likewise.
9770         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
9771         Hourihane.
9772         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9773
9774 2009-02-28  Bruno Haible  <bruno@clisp.org>
9775
9776         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
9777         SIGCHLD.
9778         Reported by Jim Meyering.
9779
9780 2009-02-28  Bruno Haible  <bruno@clisp.org>
9781
9782         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
9783         Mention the results of these tests on various platforms.
9784         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
9785         order.
9786         * doc/posix-functions/printf.texi: Likewise.
9787         * doc/posix-functions/snprintf.texi: Likewise.
9788         * doc/posix-functions/sprintf.texi: Likewise.
9789         * doc/posix-functions/vfprintf.texi: Likewise.
9790         * doc/posix-functions/vprintf.texi: Likewise.
9791         * doc/posix-functions/vsnprintf.texi: Likewise.
9792         * doc/posix-functions/vsprintf.texi: Likewise.
9793         * doc/glibc-functions/obstack_printf.texi: Likewise.
9794         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9795
9796 2009-02-28  Bruno Haible  <bruno@clisp.org>
9797
9798         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
9799         Reported by Loïc Minier <lool@dooz.org>.
9800
9801 2009-02-27  Bruno Haible  <bruno@clisp.org>
9802
9803         * gnulib-tool (func_import): Make the sed expression used to create the
9804         sed script for updating the .gitignore file POSIX compliant.
9805         Reported by Eric Blake.
9806
9807 2009-02-27  Bruno Haible  <bruno@clisp.org>
9808
9809         * gnulib-tool (sed): Don't alias as "sed --posix".
9810         Reported by Eric Blake.
9811
9812 2009-02-27  Bruno Haible  <bruno@clisp.org>
9813
9814         Avoid test link errors.
9815         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
9816         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
9817         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
9818         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
9819         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9820
9821 2009-02-27  Bruno Haible  <bruno@clisp.org>
9822
9823         Avoid spurious "(cached)" in configure output.
9824         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
9825         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
9826         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
9827         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
9828         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
9829         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
9830         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
9831         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
9832         Reported by Eric Blake.
9833
9834 2009-02-27  Eric Blake  <ebb9@byu.net>
9835
9836         printf: fix regression in previous patch
9837         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
9838
9839 2009-02-27  Bruno Haible  <bruno@clisp.org>
9840
9841         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
9842         value.
9843         * lib/stdint.in.h: Likewise.
9844         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
9845
9846 2009-02-27  Eric Blake  <ebb9@byu.net>
9847
9848         doc: mention more functions added in cygwin 1.7.0
9849         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
9850         addition.
9851         * doc/posix-functions/open_wmemstream.texi: Likewise.
9852         * doc/posix-functions/wcsnlen.texi: Likewise.
9853         * doc/posix-functions/wcsnrtombs.texi: Likewise.
9854         * doc/posix-functions/wcstod.texi: Likewise.
9855         * doc/posix-functions/wcstof.texi: Likewise.
9856         * doc/posix-functions/wcstoimax.texi: Likewise.
9857         * doc/posix-functions/wcstok.texi: Likewise.
9858         * doc/posix-functions/wcstoumax.texi: Likewise.
9859
9860         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
9861         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
9862         * doc/posix-functions/fprintf.texi: Update.
9863         * doc/posix-functions/printf.texi: Update.
9864         * doc/posix-functions/snprintf.texi: Update.
9865         * doc/posix-functions/sprintf.texi: Update.
9866         * doc/posix-functions/vfprintf.texi: Update.
9867         * doc/posix-functions/vprintf.texi: Update.
9868         * doc/posix-functions/vsnprintf.texi: Update.
9869         * doc/posix-functions/vsprintf.texi: Update.
9870         * doc/glibc-functions/obstack_printf.texi: Update.
9871         * doc/glibc-functions/obstack_vprintf.texi: Update.
9872
9873 2009-02-26  Eric Blake  <ebb9@byu.net>
9874
9875         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
9876         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
9877         compilation bug by using runtime conversion.
9878         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9879         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
9880         * modules/ceill-tests (Files): Use nan.h.
9881         * modules/floorl-tests (Files): Likewise.
9882         * modules/frexpl-tests (Files): Likewise.
9883         * modules/isnanl-tests (Files): Likewise.
9884         * modules/ldexpl-tests (Files): Likewise.
9885         * modules/roundl-tests (Files): Likewise.
9886         * modules/truncl-tests (Files): Likewise.
9887         * tests/test-ceill.c (main): Use a working NaN.
9888         * tests/test-floorl.c (main): Likewise.
9889         * tests/test-frexpl.c (main): Likewise.
9890         * tests/test-isnan.c (test_long_double): Likewise.
9891         * tests/test-isnanl.h (main): Likewise.
9892         * tests/test-ldexpl.h (main): Likewise.
9893         * tests/test-roundl.h (main): Likewise.
9894         * tests/test-truncl.h (main): Likewise.
9895         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
9896
9897 2009-02-26  Eric Blake  <ebb9@byu.net>
9898             Bruno Haible  <bruno@clisp.org>
9899
9900         Work around a *printf bug with %ls on Solaris.
9901         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
9902         precision is specified, sprintf stops converting the wide string
9903         argument when the number of bytes that have been produced by this
9904         conversion equals or exceeds the precision.
9905         * doc/posix-functions/fprintf.texi: Update.
9906         * doc/posix-functions/printf.texi: Update.
9907         * doc/posix-functions/snprintf.texi: Update.
9908         * doc/posix-functions/sprintf.texi: Update.
9909         * doc/posix-functions/vfprintf.texi: Update.
9910         * doc/posix-functions/vprintf.texi: Update.
9911         * doc/posix-functions/vsnprintf.texi: Update.
9912         * doc/posix-functions/vsprintf.texi: Update.
9913         * doc/glibc-functions/obstack_printf.texi: Update.
9914         * doc/glibc-functions/obstack_vprintf.texi: Update.
9915
9916 2009-02-26  Eric Blake  <ebb9@byu.net>
9917
9918         stdlib: favor compiler check of random.h
9919         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
9920         to avoid an ObjC random.h installed by Swarm.
9921
9922 2009-02-26  Bruno Haible  <bruno@clisp.org>
9923
9924         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
9925         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
9926         Reported by Gary V. Vaughan <gary@gnu.org>.
9927
9928 2009-02-26  Bruno Haible  <bruno@clisp.org>
9929
9930         Fix *printf behaviour regarding the %ls directive.
9931         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
9932         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
9933         NEED_PRINTF_DIRECTIVE_LS.
9934         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
9935         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
9936         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9937         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
9938         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
9939         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
9940         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
9941         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9942         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9943         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9944         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9945         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
9946         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9947         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9948         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9949         * doc/posix-functions/fprintf.texi: Update.
9950         * doc/posix-functions/printf.texi: Update.
9951         * doc/posix-functions/snprintf.texi: Update.
9952         * doc/posix-functions/sprintf.texi: Update.
9953         * doc/posix-functions/vfprintf.texi: Update.
9954         * doc/posix-functions/vprintf.texi: Update.
9955         * doc/posix-functions/vsnprintf.texi: Update.
9956         * doc/posix-functions/vsprintf.texi: Update.
9957         * doc/glibc-functions/obstack_printf.texi: Update.
9958         * doc/glibc-functions/obstack_vprintf.texi: Update.
9959         Reported by Eric Blake.
9960
9961 2009-02-25  Bruno Haible  <bruno@clisp.org>
9962
9963         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
9964         with known value.
9965         Reported by Gary V. Vaughan <gary@gnu.org>.
9966
9967 2009-02-25  Bruno Haible  <bruno@clisp.org>
9968
9969         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
9970         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
9971         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
9972         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
9973         Reported by Gary V. Vaughan <gary@gnu.org>.
9974
9975 2009-02-25  Bruno Haible  <bruno@clisp.org>
9976
9977         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
9978         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
9979         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
9980         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
9981         Reported by Gary V. Vaughan <gary@gnu.org>.
9982
9983 2009-02-25  Eric Blake  <ebb9@byu.net>
9984
9985         tests: skip fseek/ftell tests if ungetc is broken
9986         * m4/ungetc.m4: New file.
9987         * modules/fseek-tests: Split test, so ungetc dependency is
9988         separate from rest of test.
9989         * modules/fseeko-tests: Likewise.
9990         * modules/ftell-tests: Likewise.
9991         * modules/ftello-tests: Likewise.
9992         * tests/test-fseek.c (main): Isolate ungetc dependency.
9993         * tests/test-fseeko.c (main): Likewise.
9994         * tests/test-ftell.c (main): Likewise.
9995         * tests/test-ftello.c (main): Likewise.
9996         * tests/test-fseek2.sh: New file.
9997         * tests/test-fseeko2.sh: Likewise.
9998         * tests/test-ftell2.sh: Likewise.
9999         * tests/test-ftello2.sh: Likewise.
10000
10001 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
10002
10003         test-getaddrinfo: fix usage of skip return code 77
10004         * tests/test-gettaddrinfo.c: Return skip code 77 only
10005         for first occurance of skip (4x77 is not 77)
10006
10007 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
10008
10009         strtod: avoid C99 decl-after-statement
10010         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
10011
10012 2009-02-24  Eric Blake  <ebb9@byu.net>
10013
10014         strtod: detect HP-UX 11.31 bug
10015         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
10016         Reported by Gary V. Vaughan.
10017
10018 2009-02-23  Bruno Haible  <bruno@clisp.org>
10019
10020         Fix invalid read past end of memory block.
10021         * lib/vasnprintf.c (DCHAR_SET): Define.
10022         (local_wcslen): Define only when needed.
10023         (local_strnlen, local_wcsnlen): New functions.
10024         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
10025         directives that involve a conversion ourselves.
10026         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
10027         wcsnlen, mbrtowc, wcrtomb.
10028         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
10029         * tests/test-vasprintf-posix.c (test_function): Likewise.
10030         * tests/test-snprintf-posix.h (test_function): Likewise.
10031         * tests/test-sprintf-posix.h (test_function): Likewise.
10032         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10033
10034 2009-02-22  Bruno Haible  <bruno@clisp.org>
10035
10036         Implement new clarified decomposition of Hangul syllables.
10037         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
10038         of type LTV, return only a pairwise decomposition.
10039         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
10040         Likewise.
10041         * tests/uninorm/test-decomposition.c (main): Updated expected result.
10042         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
10043         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
10044
10045 2009-02-22  Bruno Haible  <bruno@clisp.org>
10046
10047         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
10048         zero-length results and shrink excess allocated memory.
10049         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
10050         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
10051         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
10052         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
10053         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
10054         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
10055         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
10056         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
10057         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
10058         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
10059         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
10060         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
10061
10062 2009-02-21  Bruno Haible  <bruno@clisp.org>
10063
10064         * doc/gnulib.texi: Include safe-alloc.texi earlier.
10065         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
10066         spaces after a period. Put a space between a macro name and its
10067         argument list. Trivial rewordings.
10068         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
10069         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
10070         (main): Return 0 explicitly.
10071
10072 2009-02-21  Bruno Haible  <bruno@clisp.org>
10073
10074         Tests for module 'uninorm/filter'.
10075         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
10076         * modules/uninorm/filter-tests: New file.
10077
10078         New module 'uninorm/filter'.
10079         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
10080         uninorm_filter_flush, uninorm_filter_free): New declarations.
10081         * lib/uninorm/uninorm-filter.c: New file.
10082         * modules/uninorm/filter: New file.
10083
10084 2009-02-21  Bruno Haible  <bruno@clisp.org>
10085
10086         Tests for module 'uninorm/nfkc'.
10087         * tests/uninorm/test-nfkc.c: New file.
10088         * tests/uninorm/test-u8-nfkc.c: New file.
10089         * tests/uninorm/test-u16-nfkc.c: New file.
10090         * tests/uninorm/test-u32-nfkc.c: New file.
10091         * tests/uninorm/test-u32-nfkc-big.sh: New file.
10092         * tests/uninorm/test-u32-nfkc-big.c: New file.
10093         * modules/uninorm/nfkc-tests: New file.
10094
10095         New module 'uninorm/nfkc'.
10096         * lib/uninorm/nfkc.c: New file.
10097         * modules/uninorm/nfkc: New file.
10098
10099         Tests for module 'uninorm/nfkd'.
10100         * tests/uninorm/test-nfkd.c: New file.
10101         * tests/uninorm/test-u8-nfkd.c: New file.
10102         * tests/uninorm/test-u16-nfkd.c: New file.
10103         * tests/uninorm/test-u32-nfkd.c: New file.
10104         * tests/uninorm/test-u32-nfkd-big.sh: New file.
10105         * tests/uninorm/test-u32-nfkd-big.c: New file.
10106         * modules/uninorm/nfkd-tests: New file.
10107
10108         New module 'uninorm/nfkd'.
10109         * lib/uninorm/nfkd.c: New file.
10110         * modules/uninorm/nfkd: New file.
10111
10112         Tests for module 'uninorm/nfc'.
10113         * tests/uninorm/test-nfc.c: New file.
10114         * tests/uninorm/test-u8-nfc.c: New file.
10115         * tests/uninorm/test-u16-nfc.c: New file.
10116         * tests/uninorm/test-u32-nfc.c: New file.
10117         * tests/uninorm/test-u32-nfc-big.sh: New file.
10118         * tests/uninorm/test-u32-nfc-big.c: New file.
10119         * modules/uninorm/nfc-tests: New file.
10120
10121         New module 'uninorm/nfc'.
10122         * lib/uninorm/nfc.c: New file.
10123         * modules/uninorm/nfc: New file.
10124
10125         Tests for module 'uninorm/nfd'.
10126         * tests/uninorm/test-nfd.c: New file.
10127         * tests/uninorm/test-u8-nfd.c: New file.
10128         * tests/uninorm/test-u16-nfd.c: New file.
10129         * tests/uninorm/test-u32-nfd.c: New file.
10130         * tests/uninorm/test-u32-nfd-big.sh: New file.
10131         * tests/uninorm/test-u32-nfd-big.c: New file.
10132         * tests/uninorm/test-u32-normalize-big.h: New file.
10133         * tests/uninorm/test-u32-normalize-big.c: New file.
10134         * tests/uninorm/NormalizationTest.txt: New file, created from
10135         Unicode 5.1.0 NormalizationTest.txt.
10136         * modules/uninorm/nfd-tests: New file.
10137
10138         New module 'uninorm/nfd'.
10139         * lib/uninorm/nfd.c: New file.
10140         * modules/uninorm/nfd: New file.
10141
10142         New module 'uninorm/u32-normalize'.
10143         * lib/uninorm/u32-normalize.c: New file.
10144         * modules/uninorm/u32-normalize: New file.
10145
10146         New module 'uninorm/u16-normalize'.
10147         * lib/uninorm/u16-normalize.c: New file.
10148         * modules/uninorm/u16-normalize: New file.
10149
10150         New module 'uninorm/u8-normalize'.
10151         * lib/uninorm/u8-normalize.c: New file.
10152         * lib/uninorm/normalize-internal.h: New file.
10153         * lib/uninorm/u-normalize-internal.h: New file.
10154         * modules/uninorm/u8-normalize: New file.
10155
10156         New module 'uninorm/decompose-internal'.
10157         * lib/uninorm/decompose-internal.c: New file.
10158         * modules/uninorm/decompose-internal: New file.
10159
10160         Tests for module 'uninorm/composition'.
10161         * tests/uninorm/test-composition.c: New file.
10162         * modules/uninorm/composition-tests: New file.
10163
10164         New module 'uninorm/composition'.
10165         * lib/uninorm/composition.c: New file.
10166         * lib/uninorm/composition-table.gperf: New file, generated by
10167         gen-uni-tables.
10168         * modules/uninorm/composition: New file.
10169
10170         Tests for module 'uninorm/compat-decomposition'.
10171         * tests/uninorm/test-compat-decomposition.c: New file.
10172         * modules/uninorm/compat-decomposition-tests: New file.
10173
10174         New module 'uninorm/compat-decomposition'.
10175         * lib/uninorm/decompose-internal.h: New file.
10176         * lib/uninorm/compat-decomposition.c: New file.
10177         * modules/uninorm/compat-decomposition: New file.
10178
10179         Tests for module 'uninorm/canonical-decomposition'.
10180         * tests/uninorm/test-canonical-decomposition.c: New file.
10181         * modules/uninorm/canonical-decomposition-tests: New file.
10182
10183         New module 'uninorm/canonical-decomposition'.
10184         * lib/uninorm/canonical-decomposition.c: New file.
10185         * modules/uninorm/canonical-decomposition: New file.
10186
10187         Tests for module 'uninorm/decomposition'.
10188         * tests/uninorm/test-decomposition.c: New file.
10189         * modules/uninorm/decomposition-tests: New file.
10190
10191         New module 'uninorm/decomposition'.
10192         * lib/uninorm/decomposition.c: New file.
10193         * modules/uninorm/decomposition: New file.
10194
10195         New module 'uninorm/decomposition-table'.
10196         * lib/uninorm/decomposition-table.h: New file.
10197         * lib/uninorm/decomposition-table.c: New file.
10198         * lib/uninorm/decomposition-table1.h: New file, generated by
10199         gen-uni-tables.
10200         * lib/uninorm/decomposition-table2.h: New file, generated by
10201         gen-uni-tables.
10202         * modules/uninorm/decomposition-table: New file.
10203
10204         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
10205         (UC_DECOMP_*): New enumeration items.
10206         (get_decomposition): New function.
10207         (struct decomp_table): New type.
10208         (output_decomposition, output_decomposition_tables): New functions.
10209         (unicode_composition_exclusions): New variable.
10210         (fill_composition_exclusions, debug_output_composition_tables): New
10211         functions.
10212         (main): Accept one more argument. Invoke fill_composition_exclusions.
10213         Output decomposition and composition tables.
10214
10215         New module 'uninorm/base'.
10216         * lib/uninorm.h: New file.
10217         * lib/unictype.h: Update comment.
10218         * modules/uninorm/base: New file.
10219
10220 2009-02-21  David Lutterkort  <lutter@redhat.com>
10221
10222         Tests for module 'safe-alloc'.
10223         * tests/test-safe-alloc.c: New file.
10224         * modules/safe-alloc-tests: New file.
10225
10226         New module 'safe-alloc'.
10227         * lib/safe-alloc.h: New file.
10228         * lib/safe-alloc.c: New file.
10229         * m4/safe-alloc.m4: New file.
10230         * modules/safe-alloc: New file.
10231         * doc/safe-alloc.texi: New file.
10232         * doc/gnulib.texi: Include it.
10233         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
10234         safe-alloc.
10235
10236 2009-02-18  Bruno Haible  <bruno@clisp.org>
10237
10238         Fix link error on non-glibc systems.
10239         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
10240         variable.
10241         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10242
10243 2009-02-18  Jim Meyering  <meyering@redhat.com>
10244
10245         fts: avoid used-uninitialized error due to recent change
10246         * lib/fts.c (fts_read): Guard uses of the new member,
10247         parent->fts_n_dirs_remaining, since it's not relevant for
10248         the parent of a directory specified on the command-line.
10249
10250 2009-02-17  James Youngman  <jay@gnu.org>
10251             Bruno Haible  <bruno@clisp.org>
10252
10253         * m4/include_next.m4: Reformulate comment.
10254
10255 2009-02-16  Jim Meyering  <meyering@redhat.com>
10256
10257         fts: add #if guards so that the fts_lgpl module still builds
10258         * lib/fts.c: Guard just-added hash-table-using parts with
10259         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
10260         Reported by Simon Josefsson.
10261
10262 2009-02-15  Bruno Haible  <bruno@clisp.org>
10263
10264         * modules/array-mergesort-tests: New file.
10265         * tests/test-array-mergesort.c: New file.
10266
10267         New module 'array-mergesort'.
10268         * modules/array-mergesort: New file.
10269         * lib/array-mergesort.h: New file.
10270
10271 2009-02-15  Bruno Haible  <bruno@clisp.org>
10272
10273         Fix 2009-02-07 commit.
10274         * lib/gen-uni-tables.c (output_predicate, output_category,
10275         output_combclass, output_bidi_category, output_decimal_digit,
10276         output_digit, output_numeric, output_mirror, output_scripts,
10277         output_ident_category, output_simple_mapping): Fix format directives.
10278         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
10279
10280 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
10281
10282         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
10283         fixes are available from IBM.
10284
10285 2009-02-13  Jim Meyering  <meyering@redhat.com>
10286
10287         fts: arrange not to stat non-directories in more cases
10288         This makes GNU find (when it doesn't need to stat each file)
10289         *much* more efficient at traversing reiserfs file systems.
10290         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
10291         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
10292         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
10293         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
10294         (leaf_optimization_applies): New function.
10295         (LCO_hash, LCO_compare): New helper functions.
10296         (link_count_optimize_ok): New function.
10297         (fts_stat): Initialize new member (if dir).
10298         (fts_read): Decrement parent's fts_n_dirs_remaining count if
10299         we've just stat'ed a directory.  Skip the stat call when possible.
10300         ---
10301         Note this AFS-related exchange:
10302         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
10303         and note find's pioctl call in find/fstype.c.
10304         But that is necessary only if you want to enable the
10305         optimization for AFS, and for now, I don't.
10306
10307         fts: move a function definition "up" (no semantic change)
10308         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
10309         "up" to precede upcoming use of a related function.
10310
10311 2009-02-11  Jim Meyering  <meyering@redhat.com>
10312
10313         fts: correct internal computation of nlinks (optimization-related)
10314         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
10315         whether the current entry is a directory, so don't test it.
10316
10317 2009-02-10  Bruno Haible  <bruno@clisp.org>
10318
10319         Tests for module 'uniwbrk/ulc-wordbreaks'.
10320         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
10321         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
10322         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
10323
10324         Tests for module 'uniwbrk/u32-wordbreaks'.
10325         * modules/uniwbrk/u32-wordbreaks-tests: New file.
10326         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
10327
10328         Tests for module 'uniwbrk/u16-wordbreaks'.
10329         * modules/uniwbrk/u16-wordbreaks-tests: New file.
10330         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
10331
10332         Tests for module 'uniwbrk/u8-wordbreaks'.
10333         * modules/uniwbrk/u8-wordbreaks-tests: New file.
10334         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
10335
10336 2009-02-10  Bruno Haible  <bruno@clisp.org>
10337
10338         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
10339         property.
10340         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
10341         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
10342         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
10343
10344 2009-02-10  Simon Josefsson  <simon@josefsson.org>
10345
10346         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
10347         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
10348
10349 2009-02-10  Bruno Haible  <bruno@clisp.org>
10350
10351         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
10352         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
10353         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
10354         * lib/unilbrk/u8-possible-linebreaks.c: Update.
10355         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
10356         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
10357
10358 2009-02-09  Simon Josefsson  <simon@josefsson.org>
10359
10360         * lib/sockets.h (gl_fd_to_handle): New function.
10361
10362         * tests/test-sockets.c: Call gl_fd_to_handle.
10363
10364 2009-02-09  Bruno Haible  <bruno@clisp.org>
10365
10366         * doc/havelib.texi: Document the conventions on bi-arch systems.
10367
10368 2009-02-08  Bruno Haible  <bruno@clisp.org>
10369
10370         Document the AC_LIB_LINKFLAGS macro.
10371         * doc/havelib.texi: New file, mostly written on 2005-05-24.
10372         * doc/gnulib.texi: Include it.
10373
10374 2009-02-08  Bruno Haible  <bruno@clisp.org>
10375
10376         Fix wrong order of sections, compared to TOC.
10377         * doc/gnulib.texi: Include relocatable-maint.texi after the
10378         "Regular expressions" node, not before.
10379
10380 2009-02-08  Bruno Haible  <bruno@clisp.org>
10381
10382         Tests for module 'unicase/totitle'.
10383         * modules/unicase/totitle-tests: New file.
10384
10385         Tests for module 'unicase/tolower'.
10386         * modules/unicase/tolower-tests: New file.
10387
10388         Tests for module 'unicase/toupper'.
10389         * modules/unicase/toupper-tests: New file.
10390         * tests/unicase/test-mapping-part1.h: New file.
10391         * tests/unicase/test-mapping-part2.h: New file.
10392
10393         New module 'unicase/totitle'.
10394         * modules/unicase/totitle: New file.
10395         * lib/unicase/totitle.c: New file.
10396
10397         New module 'unicase/tolower'.
10398         * modules/unicase/tolower: New file.
10399         * lib/unicase/tolower.c: New file.
10400
10401         New module 'unicase/toupper'.
10402         * modules/unicase/toupper: New file.
10403         * lib/unicase/toupper.c: New file.
10404         * lib/unicase/simple-mapping.h: New file.
10405
10406         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
10407         (mapping_table): New structure.
10408         (output_simple_mapping): New function.
10409         (main): Invoke output_simple_mapping_test and output_simple_mapping.
10410         * modules/gen-uni-tables (Description): Update.
10411         * lib/unicase/toupper.h: New file, automatically generated by
10412         gen-uni-tables.
10413         * lib/unicase/tolower.h: New file, automatically generated by
10414         gen-uni-tables.
10415         * lib/unicase/totitle.h: New file, automatically generated by
10416         gen-uni-tables.
10417         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
10418         gen-uni-tables.
10419         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
10420         gen-uni-tables.
10421         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
10422         gen-uni-tables.
10423
10424         New module 'unicase/base'.
10425         * modules/unicase/base: New file.
10426         * lib/unicase.h: New file.
10427
10428 2009-02-08  Bruno Haible  <bruno@clisp.org>
10429
10430         New module 'uniwbrk/ulc-wordbreaks'.
10431         * modules/uniwbrk/ulc-wordbreaks: New file.
10432         * lib/uniwbrk/ulc-wordbreaks.c: New file.
10433
10434         New module 'uniwbrk/u32-wordbreaks'.
10435         * modules/uniwbrk/u32-wordbreaks: New file.
10436         * lib/uniwbrk/u32-wordbreaks.c: New file.
10437
10438         New module 'uniwbrk/u16-wordbreaks'.
10439         * modules/uniwbrk/u16-wordbreaks: New file.
10440         * lib/uniwbrk/u16-wordbreaks.c: New file.
10441
10442         New module 'uniwbrk/u8-wordbreaks'.
10443         * modules/uniwbrk/u8-wordbreaks: New file.
10444         * lib/uniwbrk/u8-wordbreaks.c: New file.
10445         * lib/uniwbrk/u-wordbreaks.h: New file.
10446
10447         New module 'uniwbrk/table'.
10448         * modules/uniwbrk/table: New file.
10449         * lib/uniwbrk/wbrktable.h: New file.
10450         * lib/uniwbrk/wbrktable.c: New file.
10451
10452         New module 'uniwbrk/wordbreak-property'.
10453         * modules/uniwbrk/wordbreak-property: New file.
10454         * lib/uniwbrk/wordbreak-property.c: New file.
10455
10456         * lib/gen-uni-tables.c (WBP_*): New enum items.
10457         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
10458         (unicode_org_wbp): New variable.
10459         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
10460         New functions.
10461         (wbp_table): New structure.
10462         (output_wbp, output_wbrk_tables): New functions.
10463         (main): Accept additional argument. Invoke fill_org_wbp,
10464         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
10465         output_wbrk_tables.
10466         * modules/gen-uni-tables (Description): Update.
10467         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
10468         gen-uni-tables.
10469
10470         New module 'uniwbrk/base'.
10471         * modules/uniwbrk/base: New file.
10472         * lib/uniwbrk.h: New file.
10473
10474 2009-02-08  Bruno Haible  <bruno@clisp.org>
10475
10476         Update to Unicode 5.1.0.
10477         * lib/gen-uni-tables.c (is_property_alphabetic): Include
10478         U+2185..U+2188.
10479         (is_property_default_ignorable_code_point): Don't include characters
10480         of category Cc or Cs and not-a-characters.
10481         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
10482         U+0D79, U+109E, U+109F, U+A60C.
10483         * lib/unictype/bidi_of.h: Regenerated.
10484         * lib/unictype/blocks.h: Regenerated.
10485         * lib/unictype/categ_C.h: Regenerated.
10486         * lib/unictype/categ_Cf.h: Regenerated.
10487         * lib/unictype/categ_Cn.h: Regenerated.
10488         * lib/unictype/categ_L.h: Regenerated.
10489         * lib/unictype/categ_Ll.h: Regenerated.
10490         * lib/unictype/categ_Lm.h: Regenerated.
10491         * lib/unictype/categ_Lo.h: Regenerated.
10492         * lib/unictype/categ_Lu.h: Regenerated.
10493         * lib/unictype/categ_M.h: Regenerated.
10494         * lib/unictype/categ_Mc.h: Regenerated.
10495         * lib/unictype/categ_Me.h: Regenerated.
10496         * lib/unictype/categ_Mn.h: Regenerated.
10497         * lib/unictype/categ_N.h: Regenerated.
10498         * lib/unictype/categ_Nd.h: Regenerated.
10499         * lib/unictype/categ_Nl.h: Regenerated.
10500         * lib/unictype/categ_No.h: Regenerated.
10501         * lib/unictype/categ_P.h: Regenerated.
10502         * lib/unictype/categ_Pd.h: Regenerated.
10503         * lib/unictype/categ_Pe.h: Regenerated.
10504         * lib/unictype/categ_Pf.h: Regenerated.
10505         * lib/unictype/categ_Pi.h: Regenerated.
10506         * lib/unictype/categ_Po.h: Regenerated.
10507         * lib/unictype/categ_Ps.h: Regenerated.
10508         * lib/unictype/categ_S.h: Regenerated.
10509         * lib/unictype/categ_Sk.h: Regenerated.
10510         * lib/unictype/categ_Sm.h: Regenerated.
10511         * lib/unictype/categ_So.h: Regenerated.
10512         * lib/unictype/categ_of.h: Regenerated.
10513         * lib/unictype/combining.h: Regenerated.
10514         * lib/unictype/ctype_alnum.h: Regenerated.
10515         * lib/unictype/ctype_alpha.h: Regenerated.
10516         * lib/unictype/ctype_graph.h: Regenerated.
10517         * lib/unictype/ctype_lower.h: Regenerated.
10518         * lib/unictype/ctype_print.h: Regenerated.
10519         * lib/unictype/ctype_punct.h: Regenerated.
10520         * lib/unictype/ctype_upper.h: Regenerated.
10521         * lib/unictype/decdigit.h: Regenerated.
10522         * lib/unictype/digit.h: Regenerated.
10523         * lib/unictype/mirror.h: Regenerated.
10524         * lib/unictype/numeric.h: Regenerated.
10525         * lib/unictype/pr_alphabetic.h: Regenerated.
10526         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
10527         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
10528         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
10529         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
10530         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
10531         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
10532         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
10533         * lib/unictype/pr_combining.h: Regenerated.
10534         * lib/unictype/pr_dash.h: Regenerated.
10535         * lib/unictype/pr_decimal_digit.h: Regenerated.
10536         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
10537         * lib/unictype/pr_deprecated.h: Regenerated.
10538         * lib/unictype/pr_diacritic.h: Regenerated.
10539         * lib/unictype/pr_extender.h: Regenerated.
10540         * lib/unictype/pr_format_control.h: Regenerated.
10541         * lib/unictype/pr_grapheme_base.h: Regenerated.
10542         * lib/unictype/pr_grapheme_extend.h: Regenerated.
10543         * lib/unictype/pr_grapheme_link.h: Regenerated.
10544         * lib/unictype/pr_id_continue.h: Regenerated.
10545         * lib/unictype/pr_id_start.h: Regenerated.
10546         * lib/unictype/pr_ideographic.h: Regenerated.
10547         * lib/unictype/pr_ignorable_control.h: Regenerated.
10548         * lib/unictype/pr_lowercase.h: Regenerated.
10549         * lib/unictype/pr_math.h: Regenerated.
10550         * lib/unictype/pr_numeric.h: Regenerated.
10551         * lib/unictype/pr_other_alphabetic.h: Regenerated.
10552         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
10553         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
10554         * lib/unictype/pr_other_id_continue.h: Regenerated.
10555         * lib/unictype/pr_other_lowercase.h: Regenerated.
10556         * lib/unictype/pr_other_math.h: Regenerated.
10557         * lib/unictype/pr_punctuation.h: Regenerated.
10558         * lib/unictype/pr_sentence_terminal.h: Regenerated.
10559         * lib/unictype/pr_soft_dotted.h: Regenerated.
10560         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
10561         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
10562         * lib/unictype/pr_unified_ideograph.h: Regenerated.
10563         * lib/unictype/pr_uppercase.h: Regenerated.
10564         * lib/unictype/pr_xid_continue.h: Regenerated.
10565         * lib/unictype/pr_xid_start.h: Regenerated.
10566         * lib/unictype/pr_zero_width.h: Regenerated.
10567         * lib/unictype/scripts.h: Regenerated.
10568         * lib/unictype/scripts_byname.gperf: Regenerated.
10569         * lib/unictype/sy_java_ident.h: Regenerated.
10570         * lib/unilbrk/lbrkprop1.h: Regenerated.
10571         * lib/unilbrk/lbrkprop2.h: Regenerated.
10572         * tests/unictype/test-categ_C.c: Regenerated.
10573         * tests/unictype/test-categ_Cf.c: Regenerated.
10574         * tests/unictype/test-categ_Cn.c: Regenerated.
10575         * tests/unictype/test-categ_L.c: Regenerated.
10576         * tests/unictype/test-categ_Ll.c: Regenerated.
10577         * tests/unictype/test-categ_Lm.c: Regenerated.
10578         * tests/unictype/test-categ_Lo.c: Regenerated.
10579         * tests/unictype/test-categ_Lu.c: Regenerated.
10580         * tests/unictype/test-categ_M.c: Regenerated.
10581         * tests/unictype/test-categ_Mc.c: Regenerated.
10582         * tests/unictype/test-categ_Me.c: Regenerated.
10583         * tests/unictype/test-categ_Mn.c: Regenerated.
10584         * tests/unictype/test-categ_N.c: Regenerated.
10585         * tests/unictype/test-categ_Nd.c: Regenerated.
10586         * tests/unictype/test-categ_Nl.c: Regenerated.
10587         * tests/unictype/test-categ_No.c: Regenerated.
10588         * tests/unictype/test-categ_P.c: Regenerated.
10589         * tests/unictype/test-categ_Pd.c: Regenerated.
10590         * tests/unictype/test-categ_Pe.c: Regenerated.
10591         * tests/unictype/test-categ_Pf.c: Regenerated.
10592         * tests/unictype/test-categ_Pi.c: Regenerated.
10593         * tests/unictype/test-categ_Po.c: Regenerated.
10594         * tests/unictype/test-categ_Ps.c: Regenerated.
10595         * tests/unictype/test-categ_S.c: Regenerated.
10596         * tests/unictype/test-categ_Sk.c: Regenerated.
10597         * tests/unictype/test-categ_Sm.c: Regenerated.
10598         * tests/unictype/test-categ_So.c: Regenerated.
10599         * tests/unictype/test-ctype_alnum.c: Regenerated.
10600         * tests/unictype/test-ctype_alpha.c: Regenerated.
10601         * tests/unictype/test-ctype_graph.c: Regenerated.
10602         * tests/unictype/test-ctype_lower.c: Regenerated.
10603         * tests/unictype/test-ctype_print.c: Regenerated.
10604         * tests/unictype/test-ctype_punct.c: Regenerated.
10605         * tests/unictype/test-ctype_upper.c: Regenerated.
10606         * tests/unictype/test-decdigit.h: Regenerated.
10607         * tests/unictype/test-digit.h: Regenerated.
10608         * tests/unictype/test-numeric.h: Regenerated.
10609         * tests/unictype/test-pr_alphabetic.c: Regenerated.
10610         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
10611         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
10612         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
10613         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
10614         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
10615         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
10616         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
10617         * tests/unictype/test-pr_combining.c: Regenerated.
10618         * tests/unictype/test-pr_dash.c: Regenerated.
10619         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
10620         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
10621         * tests/unictype/test-pr_deprecated.c: Regenerated.
10622         * tests/unictype/test-pr_diacritic.c: Regenerated.
10623         * tests/unictype/test-pr_extender.c: Regenerated.
10624         * tests/unictype/test-pr_format_control.c: Regenerated.
10625         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
10626         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
10627         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
10628         * tests/unictype/test-pr_id_continue.c: Regenerated.
10629         * tests/unictype/test-pr_id_start.c: Regenerated.
10630         * tests/unictype/test-pr_ideographic.c: Regenerated.
10631         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
10632         * tests/unictype/test-pr_lowercase.c: Regenerated.
10633         * tests/unictype/test-pr_math.c: Regenerated.
10634         * tests/unictype/test-pr_numeric.c: Regenerated.
10635         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
10636         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
10637         Regenerated.
10638         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
10639         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
10640         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
10641         * tests/unictype/test-pr_other_math.c: Regenerated.
10642         * tests/unictype/test-pr_punctuation.c: Regenerated.
10643         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
10644         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
10645         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
10646         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
10647         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
10648         * tests/unictype/test-pr_uppercase.c: Regenerated.
10649         * tests/unictype/test-pr_xid_continue.c: Regenerated.
10650         * tests/unictype/test-pr_xid_start.c: Regenerated.
10651         * tests/unictype/test-pr_zero_width.c: Regenerated.
10652
10653         Update to Unicode 5.1.0.
10654         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
10655         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
10656         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
10657         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
10658         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
10659         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
10660         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
10661         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
10662         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
10663         (nonspacing_table_ind): Update.
10664         * tests/uniwidth/test-uc_width2.sh: Update expected result.
10665
10666         Update to Unicode 5.1.0.
10667         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
10668         code transform.
10669         * lib/uniname/uniname.c (unicode_character_name,
10670         unicode_name_character): Add the range 0x1Fxxx to the code transform.
10671         * lib/uniname/uninames.h: Regenerated.
10672         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
10673
10674 2009-02-07  Bruno Haible  <bruno@clisp.org>
10675
10676         Merge gen-ctype and gen-lbrk into a single program.
10677         * lib/gen-uni-tables.c: New file, incorporating
10678         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
10679         Add directory prefixes to the names of the generated files.
10680         * lib/unictype/gen-ctype.c: Remove file.
10681         * lib/unilbrk/gen-lbrk.c: Remove file.
10682         * modules/gen-uni-tables: New file.
10683         * modules/unictype/gen-ctype: Remove file.
10684         * modules/unilbrk/gen-lbrk: Remove file.
10685
10686 2009-02-07  Bruno Haible  <bruno@clisp.org>
10687
10688         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
10689
10690         New module 'unistr/u32-strcoll'.
10691         * modules/unistr/u32-strcoll: New file.
10692         * lib/unistr/u32-strcoll.c: New file.
10693
10694         New module 'unistr/u16-strcoll'.
10695         * modules/unistr/u16-strcoll: New file.
10696         * lib/unistr/u16-strcoll.c: New file.
10697
10698         New module 'unistr/u8-strcoll'.
10699         * modules/unistr/u8-strcoll: New file.
10700         * lib/unistr/u8-strcoll.c: New file.
10701         * lib/unistr/u-strcoll.h: New file.
10702
10703 2009-02-07  Bruno Haible  <bruno@clisp.org>
10704
10705         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
10706         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
10707         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
10708         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
10709         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
10710         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
10711
10712 2009-02-07  Bruno Haible  <bruno@clisp.org>
10713
10714         Make 64-bit clean.
10715         * lib/unictype/gen-ctype.c (output_predicate, output_category,
10716         output_combclass, output_bidi_category, output_decimal_digit,
10717         output_digit, output_numeric, output_mirror, output_scripts,
10718         output_ident_category): Use proper width specifier in format strings.
10719
10720 2009-02-07  Bruno Haible  <bruno@clisp.org>
10721
10722         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
10723         failure behaviour.
10724
10725 2009-02-07  Jim Meyering  <meyering@redhat.com>
10726
10727         regex: avoid compilation failure with upcoming gcc-4.4
10728         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
10729         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
10730         "... error: integer overflow in preprocessor expression".
10731
10732 2009-02-05  Ben Pfaff  <blp@gnu.org>
10733
10734         Fix link errors on Windows when close module is used.
10735         * modules/close: Add $(LIB_CLOSE) to Link section.
10736         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
10737         $(LIB_CLOSE) on Windows.
10738
10739 2009-02-05  Jim Meyering  <meyering@redhat.com>
10740
10741         still avoid unused-parameter warnings, but do it cleanly
10742         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
10743         (get_fs_usage): Cast to void instead.
10744         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
10745         (dev_from_mount_options, read_file_system_list): Cast to void.
10746         Prompted by Bruno Haible.
10747
10748 2009-02-04  Jim Meyering  <meyering@redhat.com>
10749
10750         fsusage.c: correct copyright year
10751         * lib/fsusage.c: Reflect year in which the change is pushed into
10752
10753         avoid misc. warnings
10754         * lib/fsusage.c (UNUSED_PARAM): Define.
10755         (get_fs_usage): Mark parameter "disk" as unused.
10756         * lib/getugroups.c (getgrent): Use "void" in prototype.
10757         * lib/mountlist.c: Mark unused parameters.
10758         (read_file_system_list): Declare a local with "const".
10759         * lib/nanosleep.c (getnow): Declare static.
10760         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
10761
10762         dirfd: set errno upon failure
10763         * lib/dirfd.c: Include <errno.h>.
10764         Set errno to ENOTSUP when returning -1.
10765         * modules/dirfd (Depends-on): Add errno.
10766         Suggested by John Kodis <kodis@comcast.net>.
10767
10768 2009-02-01  Bruno Haible  <bruno@clisp.org>
10769
10770         Don't assume sizeof (long) >= sizeof (void *).
10771         * lib/memcmp.c: Include stdint.h.
10772         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
10773         srcp2 to 'const byte *'.
10774         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
10775         types to uintptr_t.
10776         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
10777         * modules/memcmp (Depends-on): Add stdint.
10778         Reported by Ozkan Sezer <sezeroz@gmail.com>.
10779
10780 2009-01-30  Eric Blake  <ebb9@byu.net>
10781
10782         fix more require-before-expand issues
10783         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
10784         expand, AC_PROG_AWK.
10785         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
10786
10787 2009-01-28  Eric Blake  <ebb9@byu.net>
10788
10789         version-etc: use consistent URL formatting
10790         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
10791         Improve formatting.  Use fputs for string without %.
10792
10793 2009-01-28  Jim Meyering  <meyering@redhat.com>
10794
10795         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
10796         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
10797         "underquoted definition of NAME" from autoconf-2.59.
10798
10799 2009-01-28  Bruno Haible  <bruno@clisp.org>
10800
10801         * doc/gnulib.texi: Add "Obsolete modules" to index.
10802
10803 2009-01-28  Jim Meyering  <meyering@redhat.com>
10804
10805         useless-if-before-free: recognize more variants
10806         * build-aux/useless-if-before-free: Also recognize e.g.,
10807         if (NULL != p) free (p);
10808
10809 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
10810
10811         test-getaddrinfo: skip (don't fail) this test when there's no network
10812         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
10813         on the presumption that it means you lack network access.
10814
10815 2009-01-26  Jim Meyering  <meyering@redhat.com>
10816
10817         fflush: avoid warnings on modern systems
10818         * lib/fflush.c (rpl_fflush): Move declarations of locals,
10819         pos and result, into scopes where they're used.
10820
10821 2009-01-26  Eric Blake  <ebb9@byu.net>
10822
10823         Silence warning reintroduced by recent extensions patch.
10824         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
10825         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
10826         autoconf.
10827
10828         Backport improved autoconf semantics of AC_DEFUN_ONCE.
10829         * m4/00gnulib.m4: New file.
10830         * gnulib-tool (func_get_filelist): Always use it.
10831         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
10832         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
10833
10834 2009-01-25  Bruno Haible  <bruno@clisp.org>
10835
10836         Make test-quotearg work on MacOS X and AIX.
10837         * tests/test-quotearg.sh: New file.
10838         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
10839         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
10840         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
10841         include <libintl.h>.
10842         (fake_locale): Remove variable.
10843         (gettext, dgettext, dcgettext): Remove functions.
10844         (main): Instead of setting a fake locale, set a real locale. Call
10845         textdomain and bindtextdomain.
10846         * modules/quotearg-tests (Files): Add the new files.
10847         (Depends-on): Add gettext, setenv, unsetenv.
10848         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
10849         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
10850         Augment TESTS_ENVIRONMENT.
10851
10852 2009-01-25  Bruno Haible  <bruno@clisp.org>
10853
10854         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
10855         fr_FR.ISO8859-1 locale on MacOS X.
10856         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
10857         ja_JP.eucJP locale on MacOS X.
10858         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
10859         zh_CN.GB18030 locale on MacOS X.
10860
10861 2009-01-25  Bruno Haible  <bruno@clisp.org>
10862
10863         Avoid link errors on MacOS X 10.3.
10864         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
10865         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
10866
10867 2009-01-25  Bruno Haible  <bruno@clisp.org>
10868
10869         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
10870         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
10871         * modules/pipe (Files): Remove m4/posix_spawn.m4.
10872         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
10873         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
10874         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
10875         posix_spawnattr_init, posix_spawnattr_setsigmask,
10876         posix_spawnattr_setflags, posix_spawnattr_destroy.
10877
10878         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
10879         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
10880         * modules/execute (Files): Remove m4/posix_spawn.m4.
10881         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
10882         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
10883         posix_spawnattr_init, posix_spawnattr_setsigmask,
10884         posix_spawnattr_setflags, posix_spawnattr_destroy.
10885
10886 2009-01-25  Bruno Haible  <bruno@clisp.org>
10887
10888         * lib/glthread/threadlib.c: Include <stdlib.h>.
10889
10890 2009-01-25  Bruno Haible  <bruno@clisp.org>
10891
10892         * lib/glthread/threadlib.c (dummy): New declaration.
10893
10894 2009-01-25  Bruno Haible  <bruno@clisp.org>
10895
10896         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
10897         multibyte characters also for the GB18030 encoding. Don't crash when
10898         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
10899
10900 2009-01-25  Bruno Haible  <bruno@clisp.org>
10901
10902         Avoid redefining 'struct random_data' on OSF/1 5.1.
10903         * lib/stdlib.in.h: Include <random.h> if it exists.
10904         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
10905         HAVE_RANDOM_H. Include <random.h> when testing whether
10906         'struct random_data' exists.
10907         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
10908
10909 2009-01-25  Bruno Haible  <bruno@clisp.org>
10910
10911         Don't install charset.alias on MacOS X >= 10.3.
10912         * lib/localcharset.c (DARWIN7): New macro.
10913         (get_charset_aliases): Hardcode the result for Darwin7.
10914         * modules/localcharset (install-exec-local): Don't install
10915         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
10916
10917 2009-01-25  Bruno Haible  <bruno@clisp.org>
10918
10919         Don't install charset.alias on mingw and Cygwin.
10920         * modules/localcharset (install-exec-local): Don't install
10921         charset.alias on mingw and Cygwin, if the file does not yet exist.
10922         The result for these platforms is hardcoded in localcharset.c.
10923
10924 2009-01-25  Bruno Haible  <bruno@clisp.org>
10925
10926         Make it possible again to use AC_GNU_SOURCE together with gnulib.
10927         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
10928         before requiring AC_USE_SYSTEM_EXTENSIONS.
10929
10930 2009-01-25  Jim Meyering  <meyering@redhat.com>
10931
10932         c-strtod: avoid warnings
10933         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
10934         "assignment discards qualifiers from pointer target type" warnings.
10935
10936 2009-01-24  Bruno Haible  <bruno@clisp.org>
10937
10938         Add support for non-UTF-8 locales on MacOS X.
10939         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
10940         canonical encodings. For Darwin 7 and newer, don't map traditional
10941         encodings to UTF-8.
10942         Reported by Vincent Lefevre <vincent@vinc17.org>
10943         at <http://savannah.gnu.org/bugs/?25235>.
10944
10945 2009-01-24  Bruno Haible  <bruno@clisp.org>
10946
10947         * doc/gnulib.texi (Obsolete modules): New section.
10948         Reported by Mike Frysinger <vapier@gentoo.org>.
10949
10950 2009-01-24  Bruno Haible  <bruno@clisp.org>
10951
10952         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
10953         (%.dvi): New rule.
10954
10955 2009-01-24  Bruno Haible  <bruno@clisp.org>
10956
10957         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
10958         Reported by Eric Blake.
10959
10960 2009-01-24  Bruno Haible  <bruno@clisp.org>
10961
10962         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
10963         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
10964         Reported by Gary V. Vaughan <gary@gnu.org>.
10965
10966 2009-01-24  Bruno Haible  <bruno@clisp.org>
10967
10968         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
10969
10970 2009-01-23  Bruno Haible  <bruno@clisp.org>
10971
10972         Make c-strtod, c-strtold usable in libraries.
10973         * lib/c-strtod.c: Include string.h instead of xalloc.h.
10974         (C_STRTOD): Call strdup instead of xstrdup.
10975         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
10976         * modules/c-strtold (Depends-on): Likewise.
10977         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
10978         * NEWS: Mention the change.
10979         Reported by Michael Gold <mgold@ncf.ca>.
10980
10981 2009-01-23  Jim Meyering  <meyering@redhat.com>
10982
10983         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
10984         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
10985         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
10986
10987 2009-01-23  Simon Josefsson  <simon@josefsson.org>
10988
10989         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
10990         GNU CoreUtils.
10991         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
10992         * modules/version-etc (Description): Update.
10993
10994 2009-01-22  Bruno Haible  <bruno@clisp.org>
10995
10996         Cache the C locale object.
10997         * lib/c-strtod.c (c_locale_cache): New variable.
10998         (c_locale): New function.
10999         (C_STRTOD): Use it, and don't call freelocale.
11000         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
11001         Suggested by Paolo Bonzini.
11002
11003 2009-01-21  Bruno Haible  <bruno@clisp.org>
11004
11005         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
11006         conditions other than overflow.
11007
11008 2009-01-21  Bruno Haible  <bruno@clisp.org>
11009
11010         * lib/c-strtod.c: Include errno.h.
11011         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
11012         value from STRTOD_L and STRTOD.
11013
11014 2009-01-21  Bruno Haible  <bruno@clisp.org>
11015         and Jim Meyering  <meyering@redhat.com>
11016
11017         nanosleep: skip configure test (fail it) for apple universal builds
11018         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
11019         universal builds, assume that nanosleep does not work.
11020         * modules/nanosleep (Depends-on): Add multiarch.
11021
11022         mktime: skip configure test (fail it) for apple universal builds
11023         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
11024         universal builds, assume that mktime does not work.
11025         * modules/mktime (Depends-on): Add multiarch.
11026
11027 2009-01-21  Eric Blake  <ebb9@byu.net>
11028
11029         multiarch: avoid expand-before-require warning
11030         * modules/multiarch (configure.ac): Require, rather than expand,
11031         gl_MULTIARCH.
11032         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
11033         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
11034         enforce that all clients require it.  Partial reversion of
11035         2008-12-29 patch.
11036
11037         error: avoid expand-before-require warning
11038         * modules/errno (configure.ac): Require, rather than expand,
11039         gl_HEADER_ERRNO_H.
11040         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
11041         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
11042         enforce that all clients require it.
11043
11044         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
11045         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
11046         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
11047         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
11048
11049 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
11050
11051         Revert:
11052         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
11053
11054         regex: do not depend on obsolete modules.
11055         * modules/regex: Remove memcmp and memmove.
11056
11057 2009-01-20  Bruno Haible  <bruno@clisp.org>
11058
11059         Make the 'link' module link on Windows NT 4.
11060         * lib/link.c (_WIN32_WINNT): Don't define.
11061         (CreateHardLinkFuncType): New type.
11062         (CreateHardLinkFunc, initialized): New variables.
11063         (initialize): New function.
11064         (link): Invoke CreateHardLink indirectly through the function pointer.
11065
11066 2009-01-20  Bruno Haible  <bruno@clisp.org>
11067
11068         Fix compilation failure on mingw.
11069         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
11070
11071 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
11072
11073         * doc/c-strtod.texi: Mention a couple of restrictions.
11074
11075 2009-01-20  Jim Meyering  <meyering@redhat.com>
11076
11077         gettimeofday: move more declarations out of functions
11078         * lib/gettimeofday.c: Move extern declarations of tzset and
11079         gmtime out of containing functions.  Prompted by Bruno Haible.
11080
11081 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
11082
11083         regex: do not depend on obsolete modules.
11084         * modules/regex: Remove memcmp and memmove.
11085
11086 2009-01-19  Bruno Haible  <bruno@clisp.org>
11087
11088         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
11089         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
11090         gl_BIGENDIAN, not AC_C_BIGENDIAN.
11091         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
11092         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
11093
11094 2009-01-19  Bruno Haible  <bruno@clisp.org>
11095
11096         * tests/test-link.c: Include <errno.h>.
11097         (main): Exit with code 77 when a hard link cannot be created due to
11098         the file system.
11099         * tests/test-link.sh: Skip test when a hard link cannot be created due
11100         to the file system.
11101         Suggested by Eric Blake.
11102
11103 2009-01-19  Martin Lambers  <marlam@marlam.de>
11104
11105         * modules/link-tests: New file.
11106         * tests/test-link.sh: New file.
11107         * tests/test-link.c: New file.
11108
11109 2009-01-19  Eric Blake  <ebb9@byu.net>
11110
11111         doc: mention another function added in cygwin 1.7.0
11112         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
11113         Another new function in cygwin 1.7.
11114
11115 2009-01-19  Bruno Haible  <bruno@clisp.org>
11116
11117         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
11118         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
11119         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
11120         gl_BIGENDIAN, not AC_C_BIGENDIAN.
11121         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
11122         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
11123         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11124         * m4/md4.m4 (gl_MD4): Likewise.
11125         * m4/md5.m4 (gl_MD5): Likewise.
11126         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
11127         * m4/sha1.m4 (gl_SHA1): Likewise.
11128         * m4/sha256.m4 (gl_SHA256): Likewise.
11129         * m4/sha512.m4 (gl_SHA512): Likewise.
11130
11131 2009-01-19  Bruno Haible  <bruno@clisp.org>
11132
11133         * modules/uniname/uniname-tests (Depends-on): Add progname.
11134         * tests/uniname/test-uninames.c: Include progname.h.
11135         (main): Call set_program_name.
11136
11137         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
11138         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
11139         (main): Call set_program_name.
11140
11141         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
11142         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
11143         (main): Call set_program_name.
11144
11145         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
11146         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
11147         (main): Call set_program_name.
11148
11149         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
11150         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
11151         (main): Call set_program_name.
11152
11153         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
11154         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
11155         (main): Call set_program_name.
11156
11157         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
11158         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
11159         (main): Call set_program_name.
11160
11161         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
11162         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
11163         (main): Call set_program_name.
11164
11165         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
11166         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
11167         (main): Call set_program_name.
11168
11169 2009-01-19  Eric Blake  <ebb9@byu.net>
11170
11171         test-unistd: test previous patch
11172         * tests/test-unistd.c: Test *_FILENO macros.
11173
11174         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
11175         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
11176         Guarantee a definition.
11177         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
11178         * modules/unistd-safer (Depends-on): Add dependency on unistd.
11179         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
11180         * lib/dup-safer.c (STDERR_FILENO): Likewise.
11181         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
11182         Likewise.
11183         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
11184         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
11185         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
11186         Likewise.
11187         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
11188         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
11189         (STDERR_FILENO): Likewise.
11190         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
11191         (STDERR_FILENO): Likewise.
11192         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
11193         (STDERR_FILENO): Likewise.
11194         Reported by Elbert Pol.
11195
11196 2009-01-19  Eric Blake  <ebb9@byu.net>
11197
11198         doc: mention more functions added in cygwin 1.7.0
11199         * doc/posix-functions/abort.texi (abort): Update wording related
11200         to cygwin.
11201         * doc/posix-functions/daylight.texi (daylight): Likewise.
11202         * doc/posix-functions/optarg.texi (optarg): Likewise.
11203         * doc/posix-functions/optarg.texi (opterr): Likewise.
11204         * doc/posix-functions/optarg.texi (optind): Likewise.
11205         * doc/posix-functions/optarg.texi (optopt): Likewise.
11206         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
11207         worked in 1.5.x, and was withdrawn in 1.7.
11208         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
11209         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
11210         cygwin versions.
11211         * doc/posix-functions/perror.texi (perror): Likewise.
11212         * doc/posix-functions/printf.texi (printf): Likewise.
11213         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
11214         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
11215         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11216         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11217         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11218         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
11219         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
11220         Likewise.
11221         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
11222         Likewise.
11223         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
11224         this function.
11225         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
11226         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
11227         Likewise.
11228         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
11229         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
11230         * doc/posix-functions/confstr.texi (confstr): Likewise.
11231         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
11232         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
11233         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
11234         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
11235         * doc/posix-functions/fputws.texi (fputws): Likewise.
11236         * doc/posix-functions/fwide.texi (fwide): Likewise.
11237         * doc/posix-functions/getwc.texi (getwc): Likewise.
11238         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
11239         * doc/posix-functions/putwc.texi (putwc): Likewise.
11240         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
11241         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
11242         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
11243         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
11244         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
11245         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
11246         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
11247         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
11248         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
11249         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
11250         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
11251
11252 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
11253
11254         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
11255         * lib/ioctl.c: Include <sys/ioctl.h>.
11256
11257 2009-01-19  Simon Josefsson  <simon@josefsson.org>
11258
11259         * modules/getdate-tests (Depends-on): Add progname.
11260         * tests/test-getdate.c: Use progname module, to avoid link errors
11261         on non-glibc systems.
11262
11263 2009-01-18  Simon Josefsson  <simon@josefsson.org>
11264
11265         * modules/filenamecat-tests (Depends-on): Add progname.
11266         * modules/fstrcmp-tests (Depends-on): Likewise.
11267
11268         * tests/test-filenamecat.c: Use progname module, to avoid link
11269         errors on non-glibc systems.
11270         * tests/test-fstrcmp.c: Likewise.
11271
11272 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
11273
11274         gettimeofday: avoid warning: nested extern declaration of 'localtime'
11275         * lib/gettimeofday.c: Move extern declaration out of function.
11276
11277 2009-01-18  Bruno Haible  <bruno@clisp.org>
11278
11279         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
11280         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
11281         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
11282
11283 2009-01-18  Bruno Haible  <bruno@clisp.org>
11284
11285         * lib/strftime.c (MEMPCPY): Remove unused macro.
11286         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
11287
11288 2009-01-18  Martin Lambers  <marlam@marlam.de>
11289
11290         New module 'link'.
11291         * lib/unistd.in.h (link): New declaration.
11292         * lib/link.c: New file.
11293         * m4/link.m4: New file.
11294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
11295         HAVE_LINK.
11296         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
11297         * modules/link: New file.
11298         * doc/posix-functions/link.texi: Mention the new module.
11299
11300 2009-01-18  Bruno Haible  <bruno@clisp.org>
11301
11302         * tests/test-avltree_list.c (main): Call set_program_name.
11303         * tests/test-avltree_oset.c (main): Likewise.
11304         * tests/test-obstack-printf.c: Include progname.h.
11305         (main): Call set_program_name.
11306         * tests/test-quotearg.c: Include progname.h.
11307         (main): Call set_program_name.
11308         * tests/test-xmemdup0.c: Include progname.h.
11309         (main): Call set_program_name.
11310
11311 2009-01-18  Bruno Haible  <bruno@clisp.org>
11312
11313         New module 'alphasort'.
11314         * lib/dirent.in.h (alphasort): New declaration.
11315         * lib/alphasort.c: New file, from glibc with modifications.
11316         * m4/alphasort.m4: New file.
11317         * modules/alphasort: New file.
11318         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
11319         HAVE_ALPHASORT.
11320         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
11321         HAVE_ALPHASORT.
11322         * doc/posix-functions/alphasort.texi: Mention the new module and the
11323         portability problems.
11324
11325 2009-01-18  Bruno Haible  <bruno@clisp.org>
11326
11327         New module 'scandir'.
11328         * lib/dirent.in.h (scandir): New declaration.
11329         * lib/scandir.c: New file, from glibc with modifications.
11330         * m4/scandir.m4: New file.
11331         * modules/scandir: New file.
11332         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
11333         HAVE_SCANDIR.
11334         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
11335         HAVE_SCANDIR.
11336         * doc/posix-functions/scandir.texi: Mention the new module and the
11337         portability problems.
11338
11339 2009-01-17  Bruno Haible  <bruno@clisp.org>
11340
11341         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
11342         Update documentation.
11343         (func_remove_suffix): Escape all dots in the suffix. Update
11344         documentation.
11345         (func_filter_filelist): Update documentation.
11346         Reported by Ralf Wildenhues.
11347
11348 2009-01-17  Bruno Haible  <bruno@clisp.org>
11349
11350         * modules/dprintf-posix-tests: New file.
11351         * tests/test-dprintf-posix.sh: New file.
11352         * tests/test-dprintf-posix.c: New file.
11353
11354         New modules 'dprintf', 'dprintf-posix'.
11355         * lib/stdio.in.h (dprintf): New declaration.
11356         * lib/dprintf.c: New file.
11357         * m4/dprintf.m4: New file.
11358         * m4/dprintf-posix.m4: New file.
11359         * modules/dprintf: New file.
11360         * modules/dprintf-posix: New file.
11361         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
11362         HAVE_DPRINTF, REPLACE_DPRINTF.
11363         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
11364         HAVE_DPRINTF, REPLACE_DPRINTF.
11365         * doc/posix-functions/dprintf.texi: Mention the new modules.
11366
11367 2009-01-17  Bruno Haible  <bruno@clisp.org>
11368
11369         * modules/vdprintf-posix-tests: New file.
11370         * tests/test-vdprintf-posix.sh: New file.
11371         * tests/test-vdprintf-posix.c: New file.
11372
11373         New modules 'vdprintf', 'vdprintf-posix'.
11374         * lib/stdio.in.h (vdprintf): New declaration.
11375         * lib/vdprintf.c: New file.
11376         * m4/vdprintf.m4: New file.
11377         * m4/vdprintf-posix.m4: New file.
11378         * modules/vdprintf: New file.
11379         * modules/vdprintf-posix: New file.
11380         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
11381         HAVE_VDPRINTF, REPLACE_VDPRINTF.
11382         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
11383         HAVE_VDPRINTF, REPLACE_VDPRINTF.
11384         * doc/posix-functions/vdprintf.texi: Mention the new modules.
11385
11386 2009-01-17  Bruno Haible  <bruno@clisp.org>
11387
11388         Fix replacement of fopen on mingw.
11389         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
11390         mingw.
11391
11392 2009-01-17  Bruno Haible  <bruno@clisp.org>
11393
11394         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
11395         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
11396
11397 2009-01-17  Bruno Haible  <bruno@clisp.org>
11398
11399         Avoid test-fflush2.sh failure on mingw.
11400         * tests/test-fflush2.c: Include binary-io.h.
11401         (main): Put standard input into binary mode.
11402         * modules/fflush-tests (Depends-on): Add binary-io.
11403
11404 2009-01-17  Bruno Haible  <bruno@clisp.org>
11405
11406         * lib/wchar.in.h: In another particular situation, include only the
11407         system's <wchar.h> file.
11408         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
11409         Reported by Albert Chin-A-Young <china@thewrittenword.com>
11410         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
11411
11412 2009-01-17  Bruno Haible  <bruno@clisp.org>
11413
11414         Support for stripping executables in --enable-relocatable.
11415         * build-aux/install-reloc: Expect one more argument, or an environment
11416         variable RELOC_STRIP_PROG. If set, strip the destination program and
11417         its wrapper.
11418         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
11419         RELOC_STRIP_PROG.
11420         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
11421         to set RELOCATABLE_STRIP.
11422         * NEWS: Mention the new Makefile requirement.
11423
11424 2009-01-17  Bruno Haible  <bruno@clisp.org>
11425
11426         * build-aux/install-reloc: Remove debugging information left over by
11427         C compiler on MacOS X.
11428
11429 2009-01-17  Bruno Haible  <bruno@clisp.org>
11430
11431         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
11432         * lib/progreloc.c (find_executable): Fix type of pointer passed to
11433         _NSGetExecutablePath.
11434
11435 2009-01-16  Jim Meyering  <meyering@redhat.com>
11436
11437         strerror: avoid warnings about discarding "const"
11438         * lib/strerror.c (rpl_strerror): Instead of returning a const
11439         string from each and every "case", use a variable, and add a single
11440         cast after the switch.
11441
11442 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
11443
11444         * lib/arpa_inet.in.h: Add extern "C" block for C++.
11445
11446 2009-01-16  Bruno Haible  <bruno@clisp.org>
11447
11448         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
11449         array initializer syntax that also works in C++ mode.
11450         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11451
11452 2009-01-16  Jim Meyering  <meyering@redhat.com>
11453
11454         poll: suppress a warning
11455         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
11456         to ignore "...unsigned expression < 0 is always false" warnings.
11457
11458 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
11459
11460         poll: remove declarations of unused variables
11461         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
11462         sockbuf and optlen.
11463
11464 2009-01-15  Bruno Haible  <bruno@clisp.org>
11465
11466         Make fflush-after-ungetc POSIX compliant on BSD systems.
11467         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
11468         (clear_ungetc_buffer): Implement also for other systems.
11469         (rpl_fflush): On glibc systems, invoke
11470         clear_ungetc_buffer_preserving_position. Otherwise, invoke
11471         clear_ungetc_buffer after fetching the stream's position, not before.
11472
11473 2009-01-15  Bruno Haible  <bruno@clisp.org>
11474
11475         Make fflush-after-ungetc POSIX compliant on glibc systems.
11476         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
11477         after ungetc.
11478         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
11479         (rpl_fflush): On glibc systems, simply call the system's fflush
11480         function after clearing the ungetc buffer.
11481         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
11482         Instead, lseek only to the end of file, then use the system's fseeko
11483         for the rest. On glibc systems, reset the EOF indicator bit.
11484
11485 2009-01-15  Jim Meyering  <meyering@redhat.com>
11486
11487         openmp.m4: revert quote-adding change, for portability to older autoconf
11488         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
11489         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
11490         Simon Josefsson noticed the problem when using autoconf-2.61.
11491
11492 2009-01-15  Bruno Haible  <bruno@clisp.org>
11493
11494         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
11495         * tests/test-fflush2.c (ASSERT): Always fail.
11496         (main): Add two tests for fflush() after ungetc(), taking into account
11497         the Austin Group's clarification.
11498         Suggested by Eric Blake.
11499
11500 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
11501
11502         mktime.m4: remove K&R-style function prototypes
11503         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
11504         for the Sun C++ compiler.
11505
11506 2009-01-14  Bruno Haible  <bruno@clisp.org>
11507
11508         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
11509         while including <wchar.h>.
11510         * lib/wchar.in.h: In two particular situations on HP-UX, include only
11511         the system's <wchar.h> file.
11512         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11513
11514 2009-01-14  Bruno Haible  <bruno@clisp.org>
11515
11516         * m4/csharp.m4: Don't mention gettext on the serial number line.
11517         * m4/csharpexec.m4: Likewise.
11518         * m4/eaccess.m4: Likewise.
11519         * m4/javaexec.m4: Likewise.
11520         * m4/sig_atomic_t.m4: Likewise.
11521         * m4/tmpdir.m4: Likewise.
11522         * m4/intldir.m4: Bump gettext version.
11523         * m4/lib-ld.m4: Likewise.
11524
11525 2009-01-14  Bruno Haible  <bruno@clisp.org>
11526
11527         * lib/progname.c (set_program_name): Add more comments.
11528         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
11529
11530 2009-01-14  Simon Josefsson  <simon@josefsson.org>
11531
11532         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
11533         were sys/stat.h does not define it.
11534
11535 2009-01-14  Jim Meyering  <meyering@redhat.com>
11536
11537         many *.m4 files: improve m4 quoting
11538         99% of this change was performed by running the following commands:
11539         git ls-files | grep '\.m4$' | xargs perl -pi \
11540           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
11541           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
11542           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
11543           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
11544         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
11545         The remainder were to add Copyright dates, increment serial numbers,
11546         undo some changes in comments, exclude m4/intl.m4, and add quotes
11547         around the "1" in ",1" where the unusual spacing prohibited the
11548         above regexps from doing the job.  For more details, see
11549         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
11550         * m4/acl.m4: Modified.
11551         * m4/afs.m4: Likewise.
11552         * m4/alloca.m4: Likewise.
11553         * m4/argp.m4: Likewise.
11554         * m4/argz.m4: Likewise.
11555         * m4/atexit.m4: Likewise.
11556         * m4/bison-i18n.m4: Likewise.
11557         * m4/bison.m4: Likewise.
11558         * m4/byteswap.m4: Likewise.
11559         * m4/c-stack.m4: Likewise.
11560         * m4/c-strtod.m4: Likewise.
11561         * m4/calloc.m4: Likewise.
11562         * m4/canonicalize-lgpl.m4: Likewise.
11563         * m4/chown.m4: Likewise.
11564         * m4/clock_time.m4: Likewise.
11565         * m4/codeset.m4: Likewise.
11566         * m4/copy-file.m4: Likewise.
11567         * m4/csharp.m4: Likewise.
11568         * m4/csharpcomp.m4: Likewise.
11569         * m4/csharpexec.m4: Likewise.
11570         * m4/d-ino.m4: Likewise.
11571         * m4/d-type.m4: Likewise.
11572         * m4/dirfd.m4: Likewise.
11573         * m4/double-slash-root.m4: Likewise.
11574         * m4/eaccess.m4: Likewise.
11575         * m4/eealloc.m4: Likewise.
11576         * m4/environ.m4: Likewise.
11577         * m4/errno_h.m4: Likewise.
11578         * m4/euidaccess.m4: Likewise.
11579         * m4/execute.m4: Likewise.
11580         * m4/fatal-signal.m4: Likewise.
11581         * m4/fchdir.m4: Likewise.
11582         * m4/fcntl_h.m4: Likewise.
11583         * m4/fileblocks.m4: Likewise.
11584         * m4/filenamecat.m4: Likewise.
11585         * m4/findprog.m4: Likewise.
11586         * m4/flexmember.m4: Likewise.
11587         * m4/fnmatch.m4: Likewise.
11588         * m4/fopen.m4: Likewise.
11589         * m4/fpending.m4: Likewise.
11590         * m4/fprintf-posix.m4: Likewise.
11591         * m4/free.m4: Likewise.
11592         * m4/frexp.m4: Likewise.
11593         * m4/frexpl.m4: Likewise.
11594         * m4/fsusage.m4: Likewise.
11595         * m4/ftruncate.m4: Likewise.
11596         * m4/gc-camellia.m4: Likewise.
11597         * m4/gc-random.m4: Likewise.
11598         * m4/gc.m4: Likewise.
11599         * m4/getaddrinfo.m4: Likewise.
11600         * m4/getcwd-abort-bug.m4: Likewise.
11601         * m4/getcwd-path-max.m4: Likewise.
11602         * m4/getdate.m4: Likewise.
11603         * m4/getdomainname.m4: Likewise.
11604         * m4/getgroups.m4: Likewise.
11605         * m4/gethostname.m4: Likewise.
11606         * m4/gethrxtime.m4: Likewise.
11607         * m4/getline.m4: Likewise.
11608         * m4/getloadavg.m4: Likewise.
11609         * m4/getndelim2.m4: Likewise.
11610         * m4/getpass.m4: Likewise.
11611         * m4/gettext.m4: Likewise.
11612         * m4/gettime.m4: Likewise.
11613         * m4/gettimeofday.m4: Likewise.
11614         * m4/gnulib-common.m4: Likewise.
11615         * m4/group-member.m4: Likewise.
11616         * m4/host-os.m4: Likewise.
11617         * m4/iconv.m4: Likewise.
11618         * m4/iconv_open.m4: Likewise.
11619         * m4/inet_ntop.m4: Likewise.
11620         * m4/inet_pton.m4: Likewise.
11621         * m4/inline.m4: Likewise.
11622         * m4/intldir.m4: Likewise.
11623         * m4/intlmacosx.m4: Likewise.
11624         * m4/intmax.m4: Likewise.
11625         * m4/intmax_t.m4: Likewise.
11626         * m4/inttypes.m4: Likewise.
11627         * m4/inttypes_h.m4: Likewise.
11628         * m4/inttypes-pri.m4: Likewise.
11629         * m4/isapipe.m4: Likewise.
11630         * m4/isnand.m4: Likewise.
11631         * m4/isnanf.m4: Likewise.
11632         * m4/isnanl.m4: Likewise.
11633         * m4/javacomp.m4: Likewise.
11634         * m4/javaexec.m4: Likewise.
11635         * m4/jm-winsz1.m4: Likewise.
11636         * m4/jm-winsz2.m4: Likewise.
11637         * m4/lchown.m4: Likewise.
11638         * m4/lcmessage.m4: Likewise.
11639         * m4/ldexpl.m4: Likewise.
11640         * m4/lib-ld.m4: Likewise.
11641         * m4/lib-link.m4: Likewise.
11642         * m4/libsigsegv.m4: Likewise.
11643         * m4/link-follow.m4: Likewise.
11644         * m4/localcharset.m4: Likewise.
11645         * m4/locale-fr.m4: Likewise.
11646         * m4/locale-ja.m4: Likewise.
11647         * m4/locale-tr.m4: Likewise.
11648         * m4/locale-zh.m4: Likewise.
11649         * m4/lock.m4: Likewise.
11650         * m4/longlong.m4: Likewise.
11651         * m4/ls-mntd-fs.m4: Likewise.
11652         * m4/lstat.m4: Likewise.
11653         * m4/malloc.m4: Likewise.
11654         * m4/mathl.m4: Likewise.
11655         * m4/mbrtowc.m4: Likewise.
11656         * m4/mbstate_t.m4: Likewise.
11657         * m4/mbswidth.m4: Likewise.
11658         * m4/memchr.m4: Likewise.
11659         * m4/memcmp.m4: Likewise.
11660         * m4/memcpy.m4: Likewise.
11661         * m4/memmem.m4: Likewise.
11662         * m4/memmove.m4: Likewise.
11663         * m4/mempcpy.m4: Likewise.
11664         * m4/memrchr.m4: Likewise.
11665         * m4/memset.m4: Likewise.
11666         * m4/minmax.m4: Likewise.
11667         * m4/mkdir-slash.m4: Likewise.
11668         * m4/mkdtemp.m4: Likewise.
11669         * m4/mktime.m4: Likewise.
11670         * m4/mmap-anon.m4: Likewise.
11671         * m4/mountlist.m4: Likewise.
11672         * m4/nanosleep.m4: Likewise.
11673         * m4/nls.m4: Likewise.
11674         * m4/nocrash.m4: Likewise.
11675         * m4/open.m4: Likewise.
11676         * m4/openat.m4: Likewise.
11677         * m4/openmp.m4: Likewise.
11678         * m4/pathmax.m4: Likewise.
11679         * m4/perl.m4: Likewise.
11680         * m4/physmem.m4: Likewise.
11681         * m4/pipe.m4: Likewise.
11682         * m4/po.m4: Likewise.
11683         * m4/poll.m4: Likewise.
11684         * m4/posixtm.m4: Likewise.
11685         * m4/posixver.m4: Likewise.
11686         * m4/printf-frexp.m4: Likewise.
11687         * m4/printf-frexpl.m4: Likewise.
11688         * m4/printf-posix.m4: Likewise.
11689         * m4/printf-posix-rpl.m4: Likewise.
11690         * m4/printf.m4: Likewise.
11691         * m4/progtest.m4: Likewise.
11692         * m4/putenv.m4: Likewise.
11693         * m4/readline.m4: Likewise.
11694         * m4/readlink.m4: Likewise.
11695         * m4/readutmp.m4: Likewise.
11696         * m4/realloc.m4: Likewise.
11697         * m4/regex.m4: Likewise.
11698         * m4/relocatable.m4: Likewise.
11699         * m4/relocatable-lib.m4: Likewise.
11700         * m4/rename-dest-slash.m4: Likewise.
11701         * m4/rename.m4: Likewise.
11702         * m4/rmdir-errno.m4: Likewise.
11703         * m4/rmdir.m4: Likewise.
11704         * m4/roundf.m4: Likewise.
11705         * m4/roundl.m4: Likewise.
11706         * m4/rpmatch.m4: Likewise.
11707         * m4/save-cwd.m4: Likewise.
11708         * m4/selinux-selinux-h.m4: Likewise.
11709         * m4/setenv.m4: Likewise.
11710         * m4/settime.m4: Likewise.
11711         * m4/sig2str.m4: Likewise.
11712         * m4/sig_atomic_t.m4: Likewise.
11713         * m4/signalblocking.m4: Likewise.
11714         * m4/signbit.m4: Likewise.
11715         * m4/sigpipe.m4: Likewise.
11716         * m4/sockets.m4: Likewise.
11717         * m4/sockpfaf.m4: Likewise.
11718         * m4/st_dm_mode.m4: Likewise.
11719         * m4/stat-time.m4: Likewise.
11720         * m4/stdbool.m4: Likewise.
11721         * m4/stdint.m4: Likewise.
11722         * m4/stdint_h.m4: Likewise.
11723         * m4/stpcpy.m4: Likewise.
11724         * m4/stpncpy.m4: Likewise.
11725         * m4/strcase.m4: Likewise.
11726         * m4/strchrnul.m4: Likewise.
11727         * m4/strcspn.m4: Likewise.
11728         * m4/strdup.m4: Likewise.
11729         * m4/strftime.m4: Likewise.
11730         * m4/strndup.m4: Likewise.
11731         * m4/strnlen.m4: Likewise.
11732         * m4/strpbrk.m4: Likewise.
11733         * m4/strptime.m4: Likewise.
11734         * m4/strsep.m4: Likewise.
11735         * m4/strtod.m4: Likewise.
11736         * m4/strtoimax.m4: Likewise.
11737         * m4/strtok_r.m4: Likewise.
11738         * m4/strtol.m4: Likewise.
11739         * m4/strtoll.m4: Likewise.
11740         * m4/strtoul.m4: Likewise.
11741         * m4/strtoull.m4: Likewise.
11742         * m4/strtoumax.m4: Likewise.
11743         * m4/strverscmp.m4: Likewise.
11744         * m4/threadlib.m4: Likewise.
11745         * m4/timegm.m4: Likewise.
11746         * m4/tm_gmtoff.m4: Likewise.
11747         * m4/tmpdir.m4: Likewise.
11748         * m4/tmpfile.m4: Likewise.
11749         * m4/tzset.m4: Likewise.
11750         * m4/uintmax_t.m4: Likewise.
11751         * m4/unlinkdir.m4: Likewise.
11752         * m4/unlocked-io.m4: Likewise.
11753         * m4/uptime.m4: Likewise.
11754         * m4/userspec.m4: Likewise.
11755         * m4/utimbuf.m4: Likewise.
11756         * m4/utime.m4: Likewise.
11757         * m4/utimes-null.m4: Likewise.
11758         * m4/utimes.m4: Likewise.
11759         * m4/vararrays.m4: Likewise.
11760         * m4/vasnprintf.m4: Likewise.
11761         * m4/vfprintf-posix.m4: Likewise.
11762         * m4/vprintf-posix.m4: Likewise.
11763         * m4/wait-process.m4: Likewise.
11764         * m4/wchar_t.m4: Likewise.
11765         * m4/wint_t.m4: Likewise.
11766         * m4/write-any-file.m4: Likewise.
11767         * m4/yield.m4: Likewise.
11768
11769 2009-01-13  Bruno Haible  <bruno@clisp.org>
11770
11771         Avoid test-copy-file.sh failures when ACL support insufficient.
11772         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
11773         TESTS_ENVIRONMENT.
11774         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
11775         Reported by Jim Meyering.
11776
11777 2009-01-13  Bruno Haible  <bruno@clisp.org>
11778
11779         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
11780         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
11781         * modules/unistdio/u8-printf-parse (Files): Likewise.
11782         * modules/unistdio/u32-printf-parse (Files): Likewise.
11783         * modules/unistdio/ulc-printf-parse (Files): Likewise.
11784
11785 2009-01-13  Simon Josefsson  <simon@josefsson.org>
11786
11787         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
11788         and m4/inttypes_h.m4 too.
11789
11790 2009-01-12  Eric Blake  <ebb9@byu.net>
11791
11792         tests: IRIX 6.2 cc can't compile -0.0 into .data
11793         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
11794         rather than at compile-time.
11795         * tests/test-floorl.c (minus_zero): Likewise.
11796         * tests/test-frexpl.c (minus_zero): Likewise.
11797         * tests/test-isnan.c (minus_zerol): Likewise.
11798         * tests/test-isnanl.h (minus_zero): Likewise.
11799         * tests/test-ldexpl.c (minus_zero): Likewise.
11800         * tests/test-roundl.c (minus_zero): Likewise.
11801         * tests/test-signbit.c (minus_zerol): Likewise.
11802         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
11803         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
11804         * tests/test-truncl.c (minus_zero): Likewise.
11805         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
11806         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
11807         Reported by Tom G. Christensen and Nelson H. F. Beebe.
11808
11809 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
11810
11811         regex: fix glibc bug 9697
11812         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
11813         handling.
11814
11815 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
11816
11817         regex: fix glibc bug 697
11818         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
11819         being NULL also if there are no backreferences.
11820
11821 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
11822
11823         regex: merge glibc changes
11824         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
11825         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
11826         re_string_skip_chars, re_string_reconstruct): Likewise.
11827         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
11828
11829 2009-01-07  Jim Meyering  <meyering@redhat.com>
11830
11831         poll: filter through cppi
11832         * lib/poll.c: Indent cpp directives to reflect nesting.
11833
11834 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
11835
11836         poll: don't return uninitialized
11837         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
11838
11839 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
11840
11841         avoid compile failure on AIX 6.1
11842         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
11843         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
11844
11845 2009-01-04  Jim Meyering  <meyering@redhat.com>
11846
11847         remove duplicate inclusion of <stdio.h>
11848         * tests/test-fprintf-posix.c: Likewise.
11849         * tests/test-printf-posix.c: Likewise.
11850         * tests/test-snprintf-posix.c: Likewise.
11851         * tests/test-sprintf-posix.c: Likewise.
11852         * tests/test-vasprintf-posix.c: Likewise.
11853         * tests/test-vfprintf-posix.c: Likewise.
11854         * tests/test-vprintf-posix.c: Likewise.
11855         * tests/test-vsnprintf-posix.c: Likewise.
11856         * tests/test-vsprintf-posix.c: Likewise.
11857
11858 2009-01-03  Jim Meyering  <meyering@redhat.com>
11859
11860         gnulib-tool: fix sed-based filtering
11861         * gnulib-tool (func_filter_filelist): Remove extra backslash
11862         in sed_fff_filter definition.
11863
11864 2009-01-02  Jim Meyering  <meyering@redhat.com>
11865
11866         strftime: avoid compilation failure on Solaris 2.6
11867         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
11868         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
11869         Don't #define mbrlen or mbsinit, since now they're guaranteed to
11870         be available.  Reported by Tom G. Christensen.  Details in
11871         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
11872
11873 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11874             Bruno Haible  <bruno@clisp.org>
11875
11876         Speed up gnulib-tool by doing more string processing through shell
11877         built-ins.
11878         * gnulib-tool (fast_func_append): New variable.
11879         (func_remove_prefix, func_remove_suffix): New functions.
11880         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
11881         (func_filter_filelist): New function.
11882         (func_get_dependencies): Use func_remove_suffix instead of sed.
11883         (func_get_automake_snippet): Use func_filter_filelist instead of a
11884         subshell and sed invocation.
11885
11886 2009-01-01  Bruno Haible  <bruno@clisp.org>
11887
11888         Fix a security bug.
11889         * gnulib-tool (func_import, import, update): Don't allow the characters
11890         '"', '$', '`', '\' in macro arguments that become part of commands that
11891         are evaluated.
11892
11893 2009-01-01  Bruno Haible  <bruno@clisp.org>
11894
11895         * gnulib-tool (func_reset_sigpipe): Add more comments.
11896
11897 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11898
11899         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
11900         func_emit_tests_Makefile_am, func_import): Abort loops early if we
11901         already know the answer.
11902
11903 2009-01-01  Jim Meyering  <meyering@redhat.com>
11904
11905         * lib/version-etc.c (version_etc_va): Update copyright year.
11906
11907 2008-12-30  Bruno Haible  <bruno@clisp.org>
11908
11909         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
11910         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
11911         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
11912
11913 2008-12-29  Eric Blake  <ebb9@byu.net>
11914
11915         multiarch: avoid autoconf AC_REQUIRE bug
11916         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
11917         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
11918         2.63 and older.
11919         Reported by Bruno Haible, and analyzed in
11920         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
11921
11922 2008-12-29  Bruno Haible  <bruno@clisp.org>
11923
11924         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
11925         files in subdirectories correctly.
11926         Reported by Ralf Wildenhues.
11927
11928 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11929
11930         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
11931         rather than 'join FILE -', for Solaris join.
11932
11933 2008-12-29  Bruno Haible  <bruno@clisp.org>
11934
11935         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
11936         quoting.
11937         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
11938         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
11939         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
11940         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
11941         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
11942         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
11943         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
11944         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
11945         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
11946         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
11947         * m4/nls.m4 (AM_NLS): Likewise.
11948         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
11949         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
11950         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
11951         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
11952         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
11953         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11954         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
11955         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
11956         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
11957         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
11958         * m4/xsize.m4 (gl_XSIZE): Likewise.
11959         Suggested by Jim Meyering.
11960
11961 2008-11-17  Bruce Korb  <bkorb@gnu.org>
11962
11963         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
11964         * lib/parse-duration.c: use a switch instead of cascading if's.
11965
11966 2008-12-29  Eric Blake  <ebb9@byu.net>
11967
11968         wchar.h: supply WEOF on Irix 5.3
11969         * lib/wchar.in.h (wint_t): Also supply WEOF.
11970         * lib/wctype.in.h (wint_t): Likewise.
11971         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
11972         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
11973         Reported by Tom G. Christensen.
11974
11975 2008-12-26  Bruno Haible  <bruno@clisp.org>
11976
11977         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
11978         i486, i586, i686.
11979
11980 2008-12-26  Bruno Haible  <bruno@clisp.org>
11981
11982         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
11983
11984 2008-12-26  Bruno Haible  <bruno@clisp.org>
11985
11986         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
11987         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
11988         not __STDC_CONSTANT_MACROS.
11989         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
11990
11991 2008-12-25  Bruno Haible  <bruno@clisp.org>
11992
11993         Add support for universal builds to vasnprintf.
11994         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
11995         universal builds, guess no.
11996         * modules/vasnprintf-posix (Depends-on): Add multiarch.
11997         * modules/vasprintf-posix (Depends-on): Likewise.
11998         * modules/fprintf-posix (Depends-on): Likewise.
11999         * modules/vfprintf-posix (Depends-on): Likewise.
12000         * modules/snprintf-posix (Depends-on): Likewise.
12001         * modules/vsnprintf-posix (Depends-on): Likewise.
12002         * modules/sprintf-posix (Depends-on): Likewise.
12003         * modules/vsprintf-posix (Depends-on): Likewise.
12004         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
12005         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12006         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12007         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12008         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12009         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12010         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12011
12012         Add support for universal builds to <inttypes.h>.
12013         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
12014         _SCNu64_PREFIX): In Apple
12015         universal builds, define directly, using _LP64.
12016         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
12017         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
12018         * modules/inttypes (Depends-on): Add multiarch.
12019         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
12020
12021         Add support for universal builds to <stdint.h>.
12022         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
12023         universal builds, define directly, using _LP64.
12024         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
12025         Apple universal builds, don't test for the size and suffix of ptrdiff_t
12026         and size_t.
12027         * modules/stdint (Depends-on): Add multiarch.
12028         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
12029
12030         New module 'multiarch'.
12031         * modules/multiarch: New file.
12032         * m4/multiarch.m4: New file.
12033
12034 2008-12-25  Bruno Haible  <bruno@clisp.org>
12035
12036         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
12037
12038 2008-12-25  Bruno Haible  <bruno@clisp.org>
12039
12040         * modules/btowc (License): Relicense under LGPLv2+.
12041         * modules/mbsinit (License): Likewise.
12042         * modules/mbrtowc (License): Likewise.
12043         * modules/wcrtomb (License): Likewise.
12044         * modules/streq (License): Likewise.
12045         Reported by David Lutterkort <lutter@redhat.com>.
12046
12047 2008-12-23  Bruno Haible  <bruno@clisp.org>
12048
12049         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
12050
12051 2008-12-23  Bruno Haible  <bruno@clisp.org>
12052
12053         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
12054         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
12055         GETADDRINFO_LIB, not in LIBS.
12056         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
12057         * modules/canon-host (Link): Likewise.
12058         * NEWS: Mention the change.
12059         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
12060         GETADDRINFO_LIB.
12061
12062 2008-12-22  Bruno Haible  <bruno@clisp.org>
12063
12064         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
12065         * doc/posix-functions/iswalpha_l.texi: Likewise.
12066         * doc/posix-functions/iswblank_l.texi: Likewise.
12067         * doc/posix-functions/iswcntrl_l.texi: Likewise.
12068         * doc/posix-functions/iswctype_l.texi: Likewise.
12069         * doc/posix-functions/iswdigit_l.texi: Likewise.
12070         * doc/posix-functions/iswgraph_l.texi: Likewise.
12071         * doc/posix-functions/iswlower_l.texi: Likewise.
12072         * doc/posix-functions/iswprint_l.texi: Likewise.
12073         * doc/posix-functions/iswpunct_l.texi: Likewise.
12074         * doc/posix-functions/iswspace_l.texi: Likewise.
12075         * doc/posix-functions/iswupper_l.texi: Likewise.
12076         * doc/posix-functions/iswxdigit_l.texi: Likewise.
12077         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
12078         * doc/posix-functions/open_wmemstream.texi: Likewise.
12079         * doc/posix-functions/swscanf.texi: Likewise.
12080         * doc/posix-functions/towctrans_l.texi: Likewise.
12081         * doc/posix-functions/towlower.texi: Likewise.
12082         * doc/posix-functions/towlower_l.texi: Likewise.
12083         * doc/posix-functions/towupper.texi: Likewise.
12084         * doc/posix-functions/towupper_l.texi: Likewise.
12085         * doc/posix-functions/vfwprintf.texi: Likewise.
12086         * doc/posix-functions/vfwscanf.texi: Likewise.
12087         * doc/posix-functions/vswscanf.texi: Likewise.
12088         * doc/posix-functions/vwprintf.texi: Likewise.
12089         * doc/posix-functions/vwscanf.texi: Likewise.
12090         * doc/posix-functions/wcpcpy.texi: Likewise.
12091         * doc/posix-functions/wcpncpy.texi: Likewise.
12092         * doc/posix-functions/wcscasecmp.texi: Likewise.
12093         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
12094         * doc/posix-functions/wcscoll_l.texi: Likewise.
12095         * doc/posix-functions/wcsdup.texi: Likewise.
12096         * doc/posix-functions/wcsncasecmp.texi: Likewise.
12097         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
12098         * doc/posix-functions/wcsnlen.texi: Likewise.
12099         * doc/posix-functions/wcsnrtombs.texi: Likewise.
12100         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
12101         * doc/posix-functions/wctrans_l.texi: Likewise.
12102         * doc/posix-functions/wctype_l.texi: Likewise.
12103         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
12104         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
12105         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
12106         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
12107         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
12108         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
12109         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
12110         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
12111         * doc/glibc-functions/wcschrnul.texi: Likewise.
12112         * doc/glibc-functions/wcsftime_l.texi: Likewise.
12113         * doc/glibc-functions/wcstod_l.texi: Likewise.
12114         * doc/glibc-functions/wcstof_l.texi: Likewise.
12115         * doc/glibc-functions/wcstol_l.texi: Likewise.
12116         * doc/glibc-functions/wcstold_l.texi: Likewise.
12117         * doc/glibc-functions/wcstoll_l.texi: Likewise.
12118         * doc/glibc-functions/wcstoq.texi: Likewise.
12119         * doc/glibc-functions/wcstoul_l.texi: Likewise.
12120         * doc/glibc-functions/wcstoull_l.texi: Likewise.
12121         * doc/glibc-functions/wcstouq.texi: Likewise.
12122         * doc/glibc-functions/wmempcpy.texi: Likewise.
12123
12124 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
12125             Eric Blake  <ebb9@byu.net>
12126             Paolo Bonzini  <bonzini@gnu.org>
12127             Bruno Haible  <bruno@clisp.org>
12128
12129         Make c-stack work on Haiku.
12130         * lib/c-stack.c (SA_ONSTACK): Define fallback.
12131         (c_stack_action): Use SA_ONSTACK flag.
12132
12133 2008-12-22  Bruno Haible  <bruno@clisp.org>
12134
12135         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
12136
12137 2008-12-22  Bruno Haible  <bruno@clisp.org>
12138
12139         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
12140         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
12141         being overridden.
12142         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
12143         New macros.
12144         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
12145         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
12146         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
12147         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
12148
12149 2008-12-22  Bruno Haible  <bruno@clisp.org>
12150
12151         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
12152         from test code.
12153
12154 2008-12-22  Eric Blake  <ebb9@byu.net>
12155
12156         Avoid gcc warnings on cygwin.
12157         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
12158         Avoid unused variable.
12159         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
12160         Likewise.
12161
12162 2008-12-22  Bruno Haible  <bruno@clisp.org>
12163
12164         Remove HAVE_MBRTOWC conditionals.
12165         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
12166         (mbscasecmp): Assume mbrtowc function.
12167         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
12168         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
12169         * lib/mbschr.c: Include mbuiter.h unconditionally.
12170         (mbschr): Assume mbrtowc function.
12171         * lib/mbscspn.c: Include mbuiter.h unconditionally.
12172         (mbscspn): Assume mbrtowc function.
12173         * lib/mbslen.c: Include mbuiter.h unconditionally.
12174         (mbslen): Assume mbrtowc function.
12175         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
12176         (mbsncasecmp): Assume mbrtowc function.
12177         * lib/mbsnlen.c: Include mbiter.h unconditionally.
12178         (mbsnlen): Assume mbrtowc function.
12179         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
12180         (mbspbrk): Assume mbrtowc function.
12181         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
12182         (mbspcasecmp): Assume mbrtowc function.
12183         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
12184         (mbsrchr): Assume mbrtowc function.
12185         * lib/mbssep.c: Include mbuiter.h unconditionally.
12186         (mbssep): Assume mbrtowc function.
12187         * lib/mbsspn.c: Include mbuiter.h unconditionally.
12188         (mbsspn): Assume mbrtowc function.
12189         * lib/mbsstr.c: Include mbuiter.h unconditionally.
12190         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
12191         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
12192         (mbstok_r): Assume mbrtowc function.
12193         * lib/propername.c: Include mbuiter.h unconditionally.
12194         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
12195         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
12196         (trim2): Assume mbrtowc function.
12197         * lib/mbswidth.c (mbsinit): Remove fallback definition.
12198         (mbsnwidth): Assume mbrtowc function.
12199         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
12200         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
12201         fallback definitions.
12202         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
12203
12204 2008-12-22  Bruno Haible  <bruno@clisp.org>
12205
12206         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
12207
12208 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
12209
12210         * modules/regex: Request emulations for the mb*/wc* functions we need.
12211         * m4/regex.m4: Don't look for those functions here.
12212         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
12213
12214 2008-12-22  Bruno Haible  <bruno@clisp.org>
12215
12216         * modules/fnmatch (Depends-on): Remove duplicated dependency.
12217
12218 2008-12-21  Bruno Haible  <bruno@clisp.org>
12219
12220         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
12221         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
12222         (Include): Remove conditionalization.
12223         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
12224         (Include): Remove conditionalization.
12225         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
12226         (Include): Remove conditionalization.
12227         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
12228         * m4/mbfile.m4 (gl_MBFILE): Likewise.
12229         * NEWS: Mention the change.
12230         Reported by Alan Hourihane <alanh@fairlite.co.uk>
12231         via Sergey Poznyakoff <gray@gnu.org.ua>.
12232
12233 2008-12-21  Bruno Haible  <bruno@clisp.org>
12234
12235         * MODULES.html.sh (Extended multibyte and wide character utilities
12236         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
12237         wcrtomb, wcsrtombs.
12238         (Support for systems lacking POSIX:2008): Add accept, bind, close,
12239         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
12240         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
12241         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
12242
12243 2008-12-21  Bruno Haible  <bruno@clisp.org>
12244
12245         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
12246
12247 2008-12-21  Bruno Haible  <bruno@clisp.org>
12248
12249         * modules/wcsnrtombs-tests: New file.
12250         * tests/test-wcsnrtombs1.sh: New file.
12251         * tests/test-wcsnrtombs2.sh: New file.
12252         * tests/test-wcsnrtombs3.sh: New file.
12253         * tests/test-wcsnrtombs4.sh: New file.
12254         * tests/test-wcsnrtombs.c: New file.
12255
12256         New module 'wcsnrtombs'.
12257         * lib/wchar.in.h (wcsnrtombs): New declaration.
12258         * lib/wcsnrtombs.c: New file.
12259         * lib/wcsrtombs-state.c: New file.
12260         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
12261         (internal_state): Remove variable.
12262         * m4/wcsnrtombs.m4: New file.
12263         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
12264         compilation units.
12265         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
12266         HAVE_WCSNRTOMBS.
12267         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
12268         HAVE_WCSNRTOMBS.
12269         * modules/wcsnrtombs: New file.
12270         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
12271         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
12272
12273 2008-12-21  Bruno Haible  <bruno@clisp.org>
12274
12275         * modules/wcsrtombs-tests: New file.
12276         * tests/test-wcsrtombs1.sh: New file.
12277         * tests/test-wcsrtombs2.sh: New file.
12278         * tests/test-wcsrtombs3.sh: New file.
12279         * tests/test-wcsrtombs4.sh: New file.
12280         * tests/test-wcsrtombs.c: New file.
12281
12282         New module 'wcsrtombs'.
12283         * lib/wchar.in.h (wcsrtombs): New declaration.
12284         * lib/wcsrtombs.c: New file.
12285         * m4/wcsrtombs.m4: New file.
12286         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
12287         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
12288         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
12289         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
12290         * modules/wcsrtombs: New file.
12291         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
12292         bugs.
12293
12294 2008-12-21  Bruno Haible  <bruno@clisp.org>
12295
12296         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
12297         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
12298         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
12299         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
12300         if not correct.
12301         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
12302         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
12303         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
12304         m4/locale-zh.m4, m4/codeset.m4.
12305         * doc/posix-functions/wcrtomb.texi: Document the bug.
12306
12307 2008-12-21  Bruno Haible  <bruno@clisp.org>
12308
12309         Work around a btowc() bug on IRIX 6.5.
12310         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
12311         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
12312         REPLACE_WTOBC if not.
12313         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
12314         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
12315         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
12316
12317 2008-12-21  Bruno Haible  <bruno@clisp.org>
12318
12319         * modules/wcrtomb-tests: New file.
12320         * tests/test-wcrtomb.sh: New file.
12321         * tests/test-wcrtomb.c: New file.
12322
12323         New module 'wcrtomb'.
12324         * lib/wchar.in.h (wcrtomb): New declaration.
12325         * lib/wcrtomb.c: New file.
12326         * m4/wcrtomb.m4: New file.
12327         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
12328         HAVE_WCRTOMB.
12329         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
12330         HAVE_WCRTOMB.
12331         * modules/wcrtomb: New file.
12332         * doc/posix-functions/wcrtomb.texi: Mention the new module.
12333
12334 2008-12-21  Bruno Haible  <bruno@clisp.org>
12335
12336         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
12337         * modules/mbsrtowcs (Files): Likewise.
12338         * modules/wctob (Files): Likewise.
12339         * modules/c-strcase-tests (Files): Likewise.
12340         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
12341         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
12342         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
12343         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
12344         * modules/vasnprintf-posix-tests (Files): Likewise.
12345
12346 2008-12-21  William Pursell  <bill.pursell@gmail.com>
12347
12348         gitlog-to-changelog: pass all command-line arguments to git-log
12349         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
12350         it is sometimes convenient to filter the commits in various ways.
12351         gitlog-to-changelog only allows --since to specify a start date,
12352         but git-log itself supports many other filtering mechanisms.
12353         At the moment, I want to filter by branch name.  Rather than
12354         adding a --branch option to gitlog-to-changelog, it seems more
12355         flexible to simply pass all options directly to git-log and let
12356         git do the work.  Notice that this effectively makes --since a
12357         redundant option for gitlog-to-changelog, but removing it would
12358         require current usage to change since calls would then require
12359         an additional '--'.
12360
12361 2008-12-21  Bruno Haible  <bruno@clisp.org>
12362
12363         * modules/mbsnrtowcs-tests: New file.
12364         * tests/test-mbsnrtowcs1.sh: New file.
12365         * tests/test-mbsnrtowcs2.sh: New file.
12366         * tests/test-mbsnrtowcs3.sh: New file.
12367         * tests/test-mbsnrtowcs4.sh: New file.
12368         * tests/test-mbsnrtowcs.c: New file.
12369
12370         New module 'mbsnrtowcs'.
12371         * lib/wchar.in.h (mbsnrtowcs): New declaration.
12372         * lib/mbsnrtowcs.c: New file.
12373         * lib/mbsrtowcs-state.c: New file.
12374         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
12375         (internal_state): Remove variable.
12376         * m4/mbsnrtowcs.m4: New file.
12377         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
12378         compilation units.
12379         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
12380         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
12381         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
12382         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
12383         * modules/mbsnrtowcs: New file.
12384         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
12385         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
12386         portability problem.
12387
12388 2008-12-21  Bruno Haible  <bruno@clisp.org>
12389
12390         Work around mbsrtowcs bug.
12391         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
12392         (gl_FUNC_MBSRTOWCS): Invoke it.
12393         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
12394         m4/locale-zh.m4.
12395         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
12396
12397 2008-12-21  Bruno Haible  <bruno@clisp.org>
12398
12399         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
12400
12401 2008-12-21  Bruno Haible  <bruno@clisp.org>
12402
12403         Update doc for AIX.
12404         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
12405         16-bit wchar_t type.
12406         * doc/posix-functions/btowc.texi: Likewise.
12407         * doc/posix-functions/fgetwc.texi: Likewise.
12408         * doc/posix-functions/fgetws.texi: Likewise.
12409         * doc/posix-functions/fputwc.texi: Likewise.
12410         * doc/posix-functions/fputws.texi: Likewise.
12411         * doc/posix-functions/fwide.texi: Likewise.
12412         * doc/posix-functions/fwprintf.texi: Likewise.
12413         * doc/posix-functions/fwscanf.texi: Likewise.
12414         * doc/posix-functions/getwchar.texi: Likewise.
12415         * doc/posix-functions/getwc.texi: Likewise.
12416         * doc/posix-functions/iswalnum.texi: Likewise.
12417         * doc/posix-functions/iswalpha.texi: Likewise.
12418         * doc/posix-functions/iswblank.texi: Likewise.
12419         * doc/posix-functions/iswcntrl.texi: Likewise.
12420         * doc/posix-functions/iswctype.texi: Likewise.
12421         * doc/posix-functions/iswdigit.texi: Likewise.
12422         * doc/posix-functions/iswgraph.texi: Likewise.
12423         * doc/posix-functions/iswlower.texi: Likewise.
12424         * doc/posix-functions/iswprint.texi: Likewise.
12425         * doc/posix-functions/iswpunct.texi: Likewise.
12426         * doc/posix-functions/iswspace.texi: Likewise.
12427         * doc/posix-functions/iswupper.texi: Likewise.
12428         * doc/posix-functions/iswxdigit.texi: Likewise.
12429         * doc/posix-functions/mbrtowc.texi: Likewise.
12430         * doc/posix-functions/mbsrtowcs.texi: Likewise.
12431         * doc/posix-functions/mbstowcs.texi: Likewise.
12432         * doc/posix-functions/mbtowc.texi: Likewise.
12433         * doc/posix-functions/putwchar.texi: Likewise.
12434         * doc/posix-functions/putwc.texi: Likewise.
12435         * doc/posix-functions/swprintf.texi: Likewise.
12436         * doc/posix-functions/tolower.texi: Likewise.
12437         * doc/posix-functions/toupper.texi: Likewise.
12438         * doc/posix-functions/towctrans.texi: Likewise.
12439         * doc/posix-functions/ungetwc.texi: Likewise.
12440         * doc/posix-functions/vswprintf.texi: Likewise.
12441         * doc/posix-functions/wcrtomb.texi: Likewise.
12442         * doc/posix-functions/wcscat.texi: Likewise.
12443         * doc/posix-functions/wcschr.texi: Likewise.
12444         * doc/posix-functions/wcscmp.texi: Likewise.
12445         * doc/posix-functions/wcscoll.texi: Likewise.
12446         * doc/posix-functions/wcscpy.texi: Likewise.
12447         * doc/posix-functions/wcscspn.texi: Likewise.
12448         * doc/posix-functions/wcsftime.texi: Likewise.
12449         * doc/posix-functions/wcslen.texi: Likewise.
12450         * doc/posix-functions/wcsncat.texi: Likewise.
12451         * doc/posix-functions/wcsncmp.texi: Likewise.
12452         * doc/posix-functions/wcsncpy.texi: Likewise.
12453         * doc/posix-functions/wcspbrk.texi: Likewise.
12454         * doc/posix-functions/wcsrchr.texi: Likewise.
12455         * doc/posix-functions/wcsrtombs.texi: Likewise.
12456         * doc/posix-functions/wcsspn.texi: Likewise.
12457         * doc/posix-functions/wcsstr.texi: Likewise.
12458         * doc/posix-functions/wcstod.texi: Likewise.
12459         * doc/posix-functions/wcstof.texi: Likewise.
12460         * doc/posix-functions/wcstoimax.texi: Likewise.
12461         * doc/posix-functions/wcstok.texi: Likewise.
12462         * doc/posix-functions/wcstold.texi: Likewise.
12463         * doc/posix-functions/wcstoll.texi: Likewise.
12464         * doc/posix-functions/wcstol.texi: Likewise.
12465         * doc/posix-functions/wcstombs.texi: Likewise.
12466         * doc/posix-functions/wcstoull.texi: Likewise.
12467         * doc/posix-functions/wcstoul.texi: Likewise.
12468         * doc/posix-functions/wcstoumax.texi: Likewise.
12469         * doc/posix-functions/wcswidth.texi: Likewise.
12470         * doc/posix-functions/wcsxfrm.texi: Likewise.
12471         * doc/posix-functions/wctob.texi: Likewise.
12472         * doc/posix-functions/wctomb.texi: Likewise.
12473         * doc/posix-functions/wctrans.texi: Likewise.
12474         * doc/posix-functions/wctype.texi: Likewise.
12475         * doc/posix-functions/wcwidth.texi: Likewise.
12476         * doc/posix-functions/wmemchr.texi: Likewise.
12477         * doc/posix-functions/wmemcmp.texi: Likewise.
12478         * doc/posix-functions/wmemcpy.texi: Likewise.
12479         * doc/posix-functions/wmemmove.texi: Likewise.
12480         * doc/posix-functions/wmemset.texi: Likewise.
12481         * doc/posix-functions/wprintf.texi: Likewise.
12482         * doc/posix-functions/wscanf.texi: Likewise.
12483
12484 2008-12-21  Bruno Haible  <bruno@clisp.org>
12485
12486         Update doc for HP-UX 11.11.
12487         * doc/posix-functions/btowc.texi: Clarify that the function is missing
12488         in HP-UX version 11.00, not in all versions of HP-UX 11.
12489         * doc/posix-functions/fwide.texi: Likewise.
12490         * doc/posix-functions/fwprintf.texi: Likewise.
12491         * doc/posix-functions/fwscanf.texi: Likewise.
12492         * doc/posix-functions/inet_ntop.texi: Likewise.
12493         * doc/posix-functions/inet_pton.texi: Likewise.
12494         * doc/posix-functions/mbrlen.texi: Likewise.
12495         * doc/posix-functions/mbrtowc.texi: Likewise.
12496         * doc/posix-functions/mbsinit.texi: Likewise.
12497         * doc/posix-functions/mbsrtowcs.texi: Likewise.
12498         * doc/posix-functions/swprintf.texi: Likewise.
12499         * doc/posix-functions/swscanf.texi: Likewise.
12500         * doc/posix-functions/towctrans.texi: Likewise.
12501         * doc/posix-functions/vfwprintf.texi: Likewise.
12502         * doc/posix-functions/vswprintf.texi: Likewise.
12503         * doc/posix-functions/vwprintf.texi: Likewise.
12504         * doc/posix-functions/wcrtomb.texi: Likewise.
12505         * doc/posix-functions/wcsrtombs.texi: Likewise.
12506         * doc/posix-functions/wcsstr.texi: Likewise.
12507         * doc/posix-functions/wctob.texi: Likewise.
12508         * doc/posix-functions/wctrans.texi: Likewise.
12509         * doc/posix-functions/wmemchr.texi: Likewise.
12510         * doc/posix-functions/wmemcmp.texi: Likewise.
12511         * doc/posix-functions/wmemcpy.texi: Likewise.
12512         * doc/posix-functions/wmemmove.texi: Likewise.
12513         * doc/posix-functions/wmemset.texi: Likewise.
12514         * doc/posix-functions/wprintf.texi: Likewise.
12515         * doc/posix-functions/wscanf.texi: Likewise.
12516
12517 2008-12-21  Bruno Haible  <bruno@clisp.org>
12518
12519         Work around a portability problem.
12520         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
12521         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
12522
12523 2008-12-20  Bruno Haible  <bruno@clisp.org>
12524
12525         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
12526         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
12527         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
12528         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
12529         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
12530
12531         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
12532         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
12533         set.
12534         (GNULIB_defined_mbstate_t): New macro.
12535         (mbsinit): Redefine if REPLACE_MBSINIT is set.
12536         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
12537         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
12538         reuses the system's mbrtowc function but works around the bugs.
12539         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
12540         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
12541         macros.
12542         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
12543         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
12544         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
12545         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
12546         REPLACE_MBSINIT if mbsinit needs to be overridden.
12547         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
12548         REPLACE_MBSINIT, REPLACE_MBRTOWC.
12549         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
12550         REPLACE_MBSINIT, REPLACE_MBRTOWC.
12551         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
12552         m4/locale-zh.m4.
12553         (Depends): Add mbsinit.
12554         * modules/mbsinit (Depends): Add mbrtowc.
12555         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
12556
12557 2008-12-20  Bruno Haible  <bruno@clisp.org>
12558
12559         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
12560         so that there are no conversion errors on AIX.
12561         * tests/test-mbsrtowcs.c (main): LIkewise.
12562
12563 2008-12-20  Bruno Haible  <bruno@clisp.org>
12564
12565         Work around wctob bug on Solaris <= 9.
12566         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
12567         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
12568         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
12569         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
12570         * modules/wctob (Files): Add m4/locale-fr.m4.
12571         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
12572
12573 2008-12-20  Bruno Haible  <bruno@clisp.org>
12574
12575         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
12576         /dev/null.
12577         * tests/test-select-in.sh: Likewise.
12578         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12579
12580 2008-12-20  Bruno Haible  <bruno@clisp.org>
12581
12582         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
12583         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
12584         Cygwin 1.5.x.
12585
12586 2008-12-20  Bruno Haible  <bruno@clisp.org>
12587
12588         Ensure mbstate_t is defined on HP-UX 11.11.
12589         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
12590         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
12591         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
12592         AC_USE_SYSTEM_EXTENSIONS.
12593         * modules/fnmatch (Depends-on): Add extensions.
12594         * modules/mbrlen (Depends-on): Likewise.
12595         * modules/mbrtowc (Depends-on): Likewise.
12596         * modules/mbsinit (Depends-on): Likewise.
12597         * modules/mbsrtowcs (Depends-on): Likewise.
12598         * modules/mbswidth (Depends-on): Likewise.
12599         * modules/quotearg (Depends-on): Likewise.
12600         * modules/strftime (Depends-on): Likewise.
12601
12602 2008-12-20  Bruno Haible  <bruno@clisp.org>
12603
12604         Ensure wctob is declared on IRIX 6.5.
12605         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
12606         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
12607         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
12608         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
12609         of HAVE_WCTOB.
12610         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
12611         HAVE_WCTOB.
12612         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
12613
12614 2008-12-19  Bruno Haible  <bruno@clisp.org>
12615
12616         * modules/mbsrtowcs-tests: New file.
12617         * tests/test-mbsrtowcs1.sh: New file.
12618         * tests/test-mbsrtowcs2.sh: New file.
12619         * tests/test-mbsrtowcs3.sh: New file.
12620         * tests/test-mbsrtowcs4.sh: New file.
12621         * tests/test-mbsrtowcs.c: New file.
12622
12623         New module 'mbsrtowcs'.
12624         * lib/wchar.in.h (mbsrtowcs): New declaration.
12625         * lib/mbsrtowcs.c: New file.
12626         * m4/mbsrtowcs.m4: New file.
12627         * modules/mbsrtowcs: New file.
12628         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
12629         HAVE_MBSRTOWCS.
12630         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
12631         HAVE_MBSRTOWCS.
12632         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
12633
12634 2008-12-19  Bruno Haible  <bruno@clisp.org>
12635
12636         New module 'mbrlen'.
12637         * lib/wchar.in.h (mbrlen): New declaration.
12638         * lib/mbrlen.c: New file.
12639         * m4/mbrlen.m4: New file.
12640         * modules/mbrlen: New file.
12641         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
12642         HAVE_MBRLEN.
12643         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
12644         HAVE_MBRLEN.
12645         * doc/posix-functions/mbrlen.texi: Document the new module.
12646
12647 2008-12-19  Bruno Haible  <bruno@clisp.org>
12648
12649         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
12650         * modules/mbrtowc (Depends-on): Add verify.
12651         Suggested by Paul Eggert.
12652
12653 2008-12-18  Bruno Haible  <bruno@clisp.org>
12654
12655         * modules/mbsinit-tests: New file.
12656         * tests/test-mbsinit.sh: New file.
12657         * tests/test-mbsinit.c: New file.
12658
12659 2008-12-18  Bruno Haible  <bruno@clisp.org>
12660
12661         * modules/mbrtowc-tests: New file.
12662         * tests/test-mbrtowc1.sh: New file.
12663         * tests/test-mbrtowc2.sh: New file.
12664         * tests/test-mbrtowc3.sh: New file.
12665         * tests/test-mbrtowc4.sh: New file.
12666         * tests/test-mbrtowc.c: New file.
12667
12668         New module 'mbrtowc'.
12669         * lib/wchar.in.h (mbstate_t): Override when the system does not have
12670         mbsinit and mbrtowc.
12671         (mbrtowc): New declaration.
12672         * lib/mbrtowc.c: New file.
12673         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
12674         * modules/mbrtowc: New file.
12675         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
12676         HAVE_MBRTOWC.
12677         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
12678         HAVE_MBRTOWC.
12679         * doc/posix-functions/mbrtowc.texi: Document the new module.
12680
12681 2008-12-18  Bruno Haible  <bruno@clisp.org>
12682
12683         New module 'wctob'.
12684         * lib/wchar.in.h (wctob): New declaration.
12685         * lib/wctob.c: New file.
12686         * m4/wctob.m4: New file.
12687         * modules/wctob: New file.
12688         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
12689         HAVE_WCTOB.
12690         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
12691         * doc/posix-functions/wctob.texi: Document the new module.
12692
12693 2008-12-18  Bruno Haible  <bruno@clisp.org>
12694
12695         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
12696         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
12697
12698 2008-12-18  Simon Josefsson  <simon@josefsson.org>
12699
12700         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
12701         G. Christensen" <tgc@jupiterrise.com>.
12702
12703         * lib/flock.c: Need to include errno.h.  Reported by "Tom
12704         G. Christensen" <tgc@jupiterrise.com>.
12705
12706         * lib/flock.c: Need to include string.h.  Reported by "Tom
12707         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
12708         <ebb9@byu.net>.
12709
12710 2008-12-18  Bruno Haible  <bruno@clisp.org>
12711
12712         * m4/locale-ja.m4: New file, from GNU gettext.
12713
12714 2008-12-17  Bruno Haible  <bruno@clisp.org>
12715
12716         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
12717         Suggested by Eric Blake.
12718
12719 2008-12-17  Bruno Haible  <bruno@clisp.org>
12720
12721         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
12722
12723 2008-12-17  Bruno Haible  <bruno@clisp.org>
12724
12725         * lib/mbsinit.c: Include verify.h. Verify an assumption.
12726         * modules/mbsinit (Depends-on): Add verify.
12727         Suggested by Paul Eggert.
12728
12729 2008-12-17  Bruno Haible  <bruno@clisp.org>
12730
12731         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
12732         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
12733         gl_FUNC_MBRTOWC.
12734         * m4/mbiter.m4 (gl_MBITER): LIkewise.
12735         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
12736         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
12737         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
12738         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
12739         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
12740         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
12741         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
12742         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
12743         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
12744         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
12745         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
12746         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
12747         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
12748         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
12749         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
12750         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
12751         * modules/trim (configure.ac): Likewise.
12752
12753 2008-12-17  Bruno Haible  <bruno@clisp.org>
12754
12755         * modules/btowc-tests: New file.
12756         * tests/test-btowc1.sh: New file.
12757         * tests/test-btowc2.sh: New file.
12758         * tests/test-btowc.c: New file.
12759
12760         New module 'btowc'.
12761         * lib/wchar.in.h (btowc): New declaration.
12762         * lib/btowc.c: New file.
12763         * m4/btowc.m4: New file.
12764         * modules/btowc: New file.
12765         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
12766         HAVE_BTOWC.
12767         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
12768         * doc/posix-functions/btowc.texi: Document the new module.
12769
12770 2008-12-17  Bruno Haible  <bruno@clisp.org>
12771
12772         New module 'mbsinit'.
12773         * lib/wchar.in.h (mbsinit): New declaration.
12774         * lib/mbsinit.c: New file.
12775         * m4/mbsinit.m4: New file.
12776         * modules/mbsinit: New file.
12777         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
12778         HAVE_MBSINIT.
12779         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
12780         HAVE_MBSINIT.
12781         * doc/posix-functions/mbsinit.texi: Document the new module.
12782
12783 2008-12-16  Bruno Haible  <bruno@clisp.org>
12784
12785         * lib/unistd.in.h: Add comment.
12786         * tests/test-environ.c: Don't include <stdlib.h>.
12787
12788 2008-12-16  Bruno Haible  <bruno@clisp.org>
12789
12790         * lib/parse-duration.h (parse_duration): Document return value
12791         convention.
12792         * lib/parse-duration.c: Include specification header first. Add
12793         comments.
12794         (_): Remove macro.
12795         (parse_year_month_day, parse_hour_minute_second): Move side effects
12796         outside of strchr call.
12797         (parse_non_iso8601): Move side effects outside of isspace call.
12798         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
12799         call.
12800
12801 2008-12-16  Bruno Haible  <bruno@clisp.org>
12802
12803         * tests/test-parse-duration.sh: Produce no output when the test
12804         succeeds.
12805
12806 2008-12-16  Bruno Haible  <bruno@clisp.org>
12807
12808         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
12809         expressions.
12810
12811 2008-12-15  Bruno Haible  <bruno@clisp.org>
12812
12813         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
12814         * doc/glibc-functions/flistxattr.texi: Likewise.
12815         * doc/glibc-functions/fopencookie.texi: Likewise.
12816         * doc/glibc-functions/fremovexattr.texi: Likewise.
12817         * doc/glibc-functions/fsetxattr.texi: Likewise.
12818         * doc/glibc-functions/getxattr.texi: Likewise.
12819         * doc/glibc-functions/lgetxattr.texi: Likewise.
12820         * doc/glibc-functions/listxattr.texi: Likewise.
12821         * doc/glibc-functions/llistxattr.texi: Likewise.
12822         * doc/glibc-functions/lremovexattr.texi: Likewise.
12823         * doc/glibc-functions/lsetxattr.texi: Likewise.
12824         * doc/glibc-functions/removexattr.texi: Likewise.
12825         * doc/glibc-functions/setxattr.texi: Likewise.
12826         * doc/posix-functions/open_memstream.texi: Likewise.
12827
12828 2008-12-15  Eric Blake  <ebb9@byu.net>
12829
12830         Update doc for cygwin 1.7.
12831         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
12832         functions.
12833         * doc/posix-functions/fchmodat.texi: Likewise.
12834         * doc/posix-functions/fchownat.texi: Likewise.
12835         * doc/posix-functions/fdopendir.texi: Likewise.
12836         * doc/posix-functions/fmemopen.texi: Likewise.
12837         * doc/posix-functions/freeaddrinfo.texi: Likewise.
12838         * doc/posix-functions/fstatat.texi: Likewise.
12839         * doc/posix-functions/futimens.texi: Likewise.
12840         * doc/posix-functions/gai_strerror.texi: Likewise.
12841         * doc/posix-functions/getaddrinfo.texi: Likewise.
12842         * doc/posix-functions/getnameinfo.texi: Likewise.
12843         * doc/posix-functions/if_freenameindex.texi: Likewise.
12844         * doc/posix-functions/if_indextoname.texi: Likewise.
12845         * doc/posix-functions/if_nameindex.texi: Likewise.
12846         * doc/posix-functions/if_nametoindex.texi: Likewise.
12847         * doc/posix-functions/insque.texi: Likewise.
12848         * doc/posix-functions/linkat.texi: Likewise.
12849         * doc/posix-functions/llrint.texi: Likewise.
12850         * doc/posix-functions/llrintf.texi: Likewise.
12851         * doc/posix-functions/llrintl.texi: Likewise.
12852         * doc/posix-functions/lockf.texi: Likewise.
12853         * doc/posix-functions/lrintl.texi: Likewise.
12854         * doc/posix-functions/mkdirat.texi: Likewise.
12855         * doc/posix-functions/mkfifoat.texi: Likewise.
12856         * doc/posix-functions/mknodat.texi: Likewise.
12857         * doc/posix-functions/mq_close.texi: Likewise.
12858         * doc/posix-functions/mq_getattr.texi: Likewise.
12859         * doc/posix-functions/mq_notify.texi: Likewise.
12860         * doc/posix-functions/mq_open.texi: Likewise.
12861         * doc/posix-functions/mq_receive.texi: Likewise.
12862         * doc/posix-functions/mq_send.texi: Likewise.
12863         * doc/posix-functions/mq_setattr.texi: Likewise.
12864         * doc/posix-functions/mq_timedreceive.texi: Likewise.
12865         * doc/posix-functions/mq_timedsend.texi: Likewise.
12866         * doc/posix-functions/mq_unlink.texi: Likewise.
12867         * doc/posix-functions/open_memstream.texi: Likewise.
12868         * doc/posix-functions/openat.texi: Likewise.
12869         * doc/posix-functions/posix_fadvise.texi: Likewise.
12870         * doc/posix-functions/posix_fallocate.texi: Likewise.
12871         * doc/posix-functions/posix_madvise.texi: Likewise.
12872         * doc/posix-functions/posix_memalign.texi: Likewise.
12873         * doc/posix-functions/posix_openpt.texi: Likewise.
12874         * doc/posix-functions/readlinkat.texi: Likewise.
12875         * doc/posix-functions/remque.texi: Likewise.
12876         * doc/posix-functions/renameat.texi: Likewise.
12877         * doc/posix-functions/rintl.texi: Likewise.
12878         * doc/posix-functions/sem_unlink.texi: Likewise.
12879         * doc/posix-functions/shm_open.texi: Likewise.
12880         * doc/posix-functions/shm_unlink.texi: Likewise.
12881         * doc/posix-functions/signgam.texi: Likewise.
12882         * doc/posix-functions/sigset.texi: Likewise.
12883         * doc/posix-functions/stpcpy.texi: Likewise.
12884         * doc/posix-functions/stpncpy.texi: Likewise.
12885         * doc/posix-functions/strerror.texi: Likewise.
12886         * doc/posix-functions/strtod.texi: Likewise.
12887         * doc/posix-functions/symlinkat.texi: Likewise.
12888         * doc/posix-functions/unlinkat.texi: Likewise.
12889         * doc/posix-functions/utimensat.texi: Likewise.
12890         * doc/glibc-functions/bindresvport.texi: Likewise.
12891         * doc/glibc-functions/dn_expand.texi: Likewise.
12892         * doc/glibc-functions/exp10.texi: Likewise.
12893         * doc/glibc-functions/exp10f.texi: Likewise.
12894         * doc/glibc-functions/fgetxattr.texi: Likewise.
12895         * doc/glibc-functions/flistxattr.texi: Likewise.
12896         * doc/glibc-functions/fopencookie.texi: Likewise.
12897         * doc/glibc-functions/freeifaddrs.texi: Likewise.
12898         * doc/glibc-functions/fremovexattr.texi: Likewise.
12899         * doc/glibc-functions/fsetxattr.texi: Likewise.
12900         * doc/glibc-functions/getifaddrs.texi: Likewise.
12901         * doc/glibc-functions/getxattr.texi: Likewise.
12902         * doc/glibc-functions/lgetxattr.texi: Likewise.
12903         * doc/glibc-functions/listxattr.texi: Likewise.
12904         * doc/glibc-functions/llistxattr.texi: Likewise.
12905         * doc/glibc-functions/lremovexattr.texi: Likewise.
12906         * doc/glibc-functions/lsetxattr.texi: Likewise.
12907         * doc/glibc-functions/pow10.texi: Likewise.
12908         * doc/glibc-functions/pow10f.texi: Likewise.
12909         * doc/glibc-functions/rcmd_af.texi: Likewise.
12910         * doc/glibc-functions/removexattr.texi: Likewise.
12911         * doc/glibc-functions/res_init.texi: Likewise.
12912         * doc/glibc-functions/res_mkquery.texi: Likewise.
12913         * doc/glibc-functions/res_query.texi: Likewise.
12914         * doc/glibc-functions/res_querydomain.texi: Likewise.
12915         * doc/glibc-functions/res_send.texi: Likewise.
12916         * doc/glibc-functions/rresvport_af.texi: Likewise.
12917         * doc/glibc-functions/setxattr.texi: Likewise.
12918         * doc/glibc-functions/strcasestr.texi: Likewise.
12919
12920 2008-12-15  Bruno Haible  <bruno@clisp.org>
12921
12922         Fix compilation error on OSF/1 4.0.
12923         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
12924         <sys/time.h>, simply delegate to the system header.
12925         Reported by Daniel Richard G. <oss@teragram.com>.
12926
12927 2008-12-15  Bruno Haible  <bruno@clisp.org>
12928
12929         * doc/posix-functions/openat.texi: Mention the 'openat' module.
12930         * doc/posix-functions/fchmodat.texi: Likewise.
12931         * doc/posix-functions/fchownat.texi: Likewise.
12932         * doc/posix-functions/fdopendir.texi: Likewise.
12933         * doc/posix-functions/fstatat.texi: Likewise.
12934         * doc/posix-functions/mkdirat.texi: Likewise.
12935         * doc/posix-functions/unlinkat.texi: Likewise.
12936
12937 2008-12-14  Bruno Haible  <bruno@clisp.org>
12938
12939         Update doc for POSIX:2008.
12940         * doc/posix-functions/faccessat.texi: New file.
12941         * doc/posix-functions/fchmodat.texi: New file.
12942         * doc/posix-functions/fchownat.texi: New file.
12943         * doc/posix-functions/fdopendir.texi: New file.
12944         * doc/posix-functions/fstatat.texi: New file.
12945         * doc/posix-functions/futimens.texi: New file.
12946         * doc/posix-functions/linkat.texi: New file.
12947         * doc/posix-functions/mkdirat.texi: New file.
12948         * doc/posix-functions/mkfifoat.texi: New file.
12949         * doc/posix-functions/mknodat.texi: New file.
12950         * doc/posix-functions/open_wmemstream.texi: New file.
12951         * doc/posix-functions/openat.texi: New file.
12952         * doc/posix-functions/psiginfo.texi: New file.
12953         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
12954         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
12955         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
12956         * doc/posix-functions/readlinkat.texi: New file.
12957         * doc/posix-functions/renameat.texi: New file.
12958         * doc/posix-functions/strerror_l.texi: New file.
12959         * doc/posix-functions/symlinkat.texi: New file.
12960         * doc/posix-functions/unlinkat.texi: New file.
12961         * doc/posix-functions/utimensat.texi: New file.
12962         * doc/gnulib.texi (Function Substitutes): Add these subsections.
12963
12964 2008-12-14  Bruno Haible  <bruno@clisp.org>
12965
12966         Update doc for POSIX:2008.
12967         * doc/posix-functions/alphasort.texi: Renamed from
12968         doc/glibc-functions/alphasort.texi.
12969         * doc/posix-functions/dirfd.texi: Renamed from
12970         doc/glibc-functions/dirfd.texi.
12971         * doc/posix-functions/dprintf.texi: Renamed from
12972         doc/glibc-functions/dprintf.texi.
12973         * doc/posix-functions/duplocale.texi: Renamed from
12974         doc/glibc-functions/duplocale.texi.
12975         * doc/posix-functions/fexecve.texi: Renamed from
12976         doc/glibc-functions/fexecve.texi.
12977         * doc/posix-functions/fmemopen.texi: Renamed from
12978         doc/glibc-functions/fmemopen.texi.
12979         * doc/posix-functions/freelocale.texi: Renamed from
12980         doc/glibc-functions/freelocale.texi.
12981         * doc/posix-functions/getdate_err.texi: Renamed from
12982         doc/glibc-functions/getdate_err.texi.
12983         * doc/posix-functions/isalnum_l.texi: Renamed from
12984         doc/glibc-functions/isalnum_l.texi.
12985         * doc/posix-functions/isalpha_l.texi: Renamed from
12986         doc/glibc-functions/isalpha_l.texi.
12987         * doc/posix-functions/isblank_l.texi: Renamed from
12988         doc/glibc-functions/isblank_l.texi.
12989         * doc/posix-functions/iscntrl_l.texi: Renamed from
12990         doc/glibc-functions/iscntrl_l.texi.
12991         * doc/posix-functions/isdigit_l.texi: Renamed from
12992         doc/glibc-functions/isdigit_l.texi.
12993         * doc/posix-functions/isgraph_l.texi: Renamed from
12994         doc/glibc-functions/isgraph_l.texi.
12995         * doc/posix-functions/islower_l.texi: Renamed from
12996         doc/glibc-functions/islower_l.texi.
12997         * doc/posix-functions/isprint_l.texi: Renamed from
12998         doc/glibc-functions/isprint_l.texi.
12999         * doc/posix-functions/ispunct_l.texi: Renamed from
13000         doc/glibc-functions/ispunct_l.texi.
13001         * doc/posix-functions/isspace_l.texi: Renamed from
13002         doc/glibc-functions/isspace_l.texi.
13003         * doc/posix-functions/isupper_l.texi: Renamed from
13004         doc/glibc-functions/isupper_l.texi.
13005         * doc/posix-functions/iswalnum_l.texi: Renamed from
13006         doc/glibc-functions/iswalnum_l.texi.
13007         * doc/posix-functions/iswalpha_l.texi: Renamed from
13008         doc/glibc-functions/iswalpha_l.texi.
13009         * doc/posix-functions/iswblank_l.texi: Renamed from
13010         doc/glibc-functions/iswblank_l.texi.
13011         * doc/posix-functions/iswcntrl_l.texi: Renamed from
13012         doc/glibc-functions/iswcntrl_l.texi.
13013         * doc/posix-functions/iswctype_l.texi: Renamed from
13014         doc/glibc-functions/iswctype_l.texi.
13015         * doc/posix-functions/iswdigit_l.texi: Renamed from
13016         doc/glibc-functions/iswdigit_l.texi.
13017         * doc/posix-functions/iswgraph_l.texi: Renamed from
13018         doc/glibc-functions/iswgraph_l.texi.
13019         * doc/posix-functions/iswlower_l.texi: Renamed from
13020         doc/glibc-functions/iswlower_l.texi.
13021         * doc/posix-functions/iswprint_l.texi: Renamed from
13022         doc/glibc-functions/iswprint_l.texi.
13023         * doc/posix-functions/iswpunct_l.texi: Renamed from
13024         doc/glibc-functions/iswpunct_l.texi.
13025         * doc/posix-functions/iswspace_l.texi: Renamed from
13026         doc/glibc-functions/iswspace_l.texi.
13027         * doc/posix-functions/iswupper_l.texi: Renamed from
13028         doc/glibc-functions/iswupper_l.texi.
13029         * doc/posix-functions/iswxdigit_l.texi: Renamed from
13030         doc/glibc-functions/iswxdigit_l.texi.
13031         * doc/posix-functions/isxdigit_l.texi: Renamed from
13032         doc/glibc-functions/isxdigit_l.texi.
13033         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
13034         doc/glibc-functions/mbsnrtowcs.texi.
13035         * doc/posix-functions/mkdtemp.texi: Renamed from
13036         doc/glibc-functions/mkdtemp.texi.
13037         * doc/posix-functions/newlocale.texi: Renamed from
13038         doc/glibc-functions/newlocale.texi.
13039         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
13040         doc/glibc-functions/nl_langinfo_l.texi.
13041         * doc/posix-functions/open_memstream.texi: Renamed from
13042         doc/glibc-functions/open_memstream.texi.
13043         * doc/posix-functions/opterr.texi: Renamed from
13044         doc/glibc-functions/opterr.texi.
13045         * doc/posix-functions/optind.texi: Renamed from
13046         doc/glibc-functions/optind.texi.
13047         * doc/posix-functions/optopt.texi: Renamed from
13048         doc/glibc-functions/optopt.texi.
13049         * doc/posix-functions/psignal.texi: Renamed from
13050         doc/glibc-functions/psignal.texi.
13051         * doc/posix-functions/scandir.texi: Renamed from
13052         doc/glibc-functions/scandir.texi.
13053         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
13054         doc/glibc-functions/sched_get_priority_min.texi.
13055         * doc/posix-functions/signgam.texi: Renamed from
13056         doc/glibc-functions/signgam.texi.
13057         * doc/posix-functions/stpcpy.texi: Renamed from
13058         doc/glibc-functions/stpcpy.texi.
13059         * doc/posix-functions/stpncpy.texi: Renamed from
13060         doc/glibc-functions/stpncpy.texi.
13061         * doc/posix-functions/strcasecmp_l.texi: Renamed from
13062         doc/glibc-functions/strcasecmp_l.texi.
13063         * doc/posix-functions/strcoll_l.texi: Renamed from
13064         doc/glibc-functions/strcoll_l.texi.
13065         * doc/posix-functions/strfmon_l.texi: Renamed from
13066         doc/glibc-functions/strfmon_l.texi.
13067         * doc/posix-functions/strftime_l.texi: Renamed from
13068         doc/glibc-functions/strftime_l.texi.
13069         * doc/posix-functions/strncasecmp_l.texi: Renamed from
13070         doc/glibc-functions/strncasecmp_l.texi.
13071         * doc/posix-functions/strndup.texi: Renamed from
13072         doc/glibc-functions/strndup.texi.
13073         * doc/posix-functions/strnlen.texi: Renamed from
13074         doc/glibc-functions/strnlen.texi.
13075         * doc/posix-functions/strsignal.texi: Renamed from
13076         doc/glibc-functions/strsignal.texi.
13077         * doc/posix-functions/strxfrm_l.texi: Renamed from
13078         doc/glibc-functions/strxfrm_l.texi.
13079         * doc/posix-functions/timer_gettime.texi: Renamed from
13080         doc/glibc-functions/timer_gettime.texi.
13081         * doc/posix-functions/tolower_l.texi: Renamed from
13082         doc/glibc-functions/tolower_l.texi.
13083         * doc/posix-functions/toupper_l.texi: Renamed from
13084         doc/glibc-functions/toupper_l.texi.
13085         * doc/posix-functions/towctrans_l.texi: Renamed from
13086         doc/glibc-functions/towctrans_l.texi.
13087         * doc/posix-functions/towlower_l.texi: Renamed from
13088         doc/glibc-functions/towlower_l.texi.
13089         * doc/posix-functions/towupper_l.texi: Renamed from
13090         doc/glibc-functions/towupper_l.texi.
13091         * doc/posix-functions/uselocale.texi: Renamed from
13092         doc/glibc-functions/uselocale.texi.
13093         * doc/posix-functions/vdprintf.texi: Renamed from
13094         doc/glibc-functions/vdprintf.texi.
13095         * doc/posix-functions/wcpcpy.texi:
13096         Renamed from doc/glibc-functions/wcpcpy.texi.
13097         * doc/posix-functions/wcpncpy.texi: Renamed from
13098         doc/glibc-functions/wcpncpy.texi.
13099         * doc/posix-functions/wcscasecmp.texi: Renamed from
13100         doc/glibc-functions/wcscasecmp.texi.
13101         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
13102         doc/glibc-functions/wcscasecmp_l.texi.
13103         * doc/posix-functions/wcscoll_l.texi: Renamed from
13104         doc/glibc-functions/wcscoll_l.texi.
13105         * doc/posix-functions/wcsdup.texi: Renamed from
13106         doc/glibc-functions/wcsdup.texi.
13107         * doc/posix-functions/wcsncasecmp.texi: Renamed from
13108         doc/glibc-functions/wcsncasecmp.texi.
13109         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
13110         doc/glibc-functions/wcsncasecmp_l.texi.
13111         * doc/posix-functions/wcsnlen.texi: Renamed from
13112         doc/glibc-functions/wcsnlen.texi.
13113         * doc/posix-functions/wcsnrtombs.texi: Renamed from
13114         doc/glibc-functions/wcsnrtombs.texi.
13115         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
13116         doc/glibc-functions/wcsxfrm_l.texi.
13117         * doc/posix-functions/wctrans_l.texi: Renamed from
13118         doc/glibc-functions/wctrans_l.texi.
13119         * doc/posix-functions/wctype_l.texi: Renamed from
13120         doc/glibc-functions/wctype_l.texi.
13121         * doc/gnulib.texi (Function Substitutes): Add these subsections.
13122         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
13123         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
13124         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
13125         these subsections.
13126         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
13127         Remove sections.
13128
13129 2008-12-14  Bruno Haible  <bruno@clisp.org>
13130
13131         Update doc for POSIX:2008.
13132         * doc/posix-functions/*.texi: Update URL of POSIX specification.
13133
13134 2008-12-14  Bruno Haible  <bruno@clisp.org>
13135
13136         Update doc for POSIX:2008.
13137         * doc/pastposix-functions/bcmp.texi: Renamed from
13138         doc/posix-functions/bcmp.texi.
13139         * doc/pastposix-functions/bcopy.texi: Renamed from
13140         doc/posix-functions/bcopy.texi.
13141         * doc/pastposix-functions/bsd_signal.texi: Renamed from
13142         doc/posix-functions/bsd_signal.texi.
13143         * doc/pastposix-functions/bzero.texi: Renamed from
13144         doc/posix-functions/bzero.texi.
13145         * doc/pastposix-functions/ecvt.texi: Renamed from
13146         doc/posix-functions/ecvt.texi.
13147         * doc/pastposix-functions/fcvt.texi: Renamed from
13148         doc/posix-functions/fcvt.texi.
13149         * doc/pastposix-functions/ftime.texi: Renamed from
13150         doc/posix-functions/ftime.texi.
13151         * doc/pastposix-functions/gcvt.texi: Renamed from
13152         doc/posix-functions/gcvt.texi.
13153         * doc/pastposix-functions/getcontext.texi: Renamed from
13154         doc/posix-functions/getcontext.texi.
13155         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
13156         doc/posix-functions/gethostbyaddr.texi.
13157         * doc/pastposix-functions/gethostbyname.texi: Renamed from
13158         doc/posix-functions/gethostbyname.texi.
13159         * doc/pastposix-functions/getwd.texi: Renamed from
13160         doc/posix-functions/getwd.texi.
13161         * doc/pastposix-functions/h_errno.texi: Renamed from
13162         doc/posix-functions/h_errno.texi.
13163         * doc/pastposix-functions/index.texi: Renamed from
13164         doc/posix-functions/index.texi.
13165         * doc/pastposix-functions/makecontext.texi: Renamed from
13166         doc/posix-functions/makecontext.texi.
13167         * doc/pastposix-functions/mktemp.texi: Renamed from
13168         doc/posix-functions/mktemp.texi.
13169         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
13170         doc/posix-functions/pthread_attr_getstackaddr.texi.
13171         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
13172         doc/posix-functions/pthread_attr_setstackaddr.texi.
13173         * doc/pastposix-functions/rindex.texi: Renamed from
13174         doc/posix-functions/rindex.texi.
13175         * doc/pastposix-functions/scalb.texi: Renamed from
13176         doc/posix-functions/scalb.texi.
13177         * doc/pastposix-functions/setcontext.texi: Renamed from
13178         doc/posix-functions/setcontext.texi.
13179         * doc/pastposix-functions/swapcontext.texi: Renamed from
13180         doc/posix-functions/swapcontext.texi.
13181         * doc/pastposix-functions/ualarm.texi: Renamed from
13182         doc/posix-functions/ualarm.texi.
13183         * doc/pastposix-functions/usleep.texi: Renamed from
13184         doc/posix-functions/usleep.texi.
13185         * doc/pastposix-functions/vfork.texi: Renamed from
13186         doc/posix-functions/vfork.texi.
13187         * doc/pastposix-functions/wcswcs.texi: Renamed from
13188         doc/posix-functions/wcswcs.texi.
13189         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
13190         (Function Substitutes): Update.
13191
13192 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13193
13194         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
13195         m4/strerror.m4.
13196
13197 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13198             Bruno Haible  <bruno@clisp.org>
13199
13200         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
13201
13202 2008-12-13  Bruno Haible  <bruno@clisp.org>
13203
13204         * modules/strtoull (Depends-on): Remove unistd.
13205
13206 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13207
13208         * modules/strtoull (Depends-on): Add stdlib.
13209
13210 2008-12-11  Simon Josefsson  <simon@josefsson.org>
13211
13212         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
13213
13214 2008-12-10  Jim Meyering  <meyering@redhat.com>
13215
13216         gl_ASSERT: don't say assertions are disabled when they're not
13217         * m4/assert.m4 (gl_ASSERT): Do not make configure report
13218         "checking whether to enable assertions... no", when they are in
13219         fact enabled.  This is solely a bug in the output of configure.
13220         In spite of saying "no", NDEBUG was not defined in that case.
13221         Also, as noted by Eric Blake, leave assertions enabled upon
13222         --enable-assert=INVALID.
13223
13224 2008-12-10  Bruno Haible  <bruno@clisp.org>
13225
13226         Change MODULES.html to refer to POSIX:2008 where possible.
13227         * MODULES.html.sh (POSIX2008_URL): New variable.
13228         (posix_headers): Remove sys/timeb, ucontext.
13229         (posix2001_headers): New variable.
13230         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
13231         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
13232         index, makecontext, mktemp, pthread_attr_getstackaddr,
13233         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
13234         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
13235         (posix2001_functions): New variable.
13236         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
13237         otherwise.
13238
13239 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13240
13241         add missing include to parse-duration.c
13242         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
13243         * modules/parse-duration (Depends-on): Add xalloc.
13244
13245         fix sed script reading maint.mk
13246         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
13247         (syntax-check-rules): Use it.
13248
13249 2008-12-09  Bruno Haible  <bruno@clisp.org>
13250
13251         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
13252         MacOS X 10.4/PowerPC.
13253         Reported by Simon Josefsson.
13254
13255 2008-12-08  Jim Meyering  <meyering@redhat.com>
13256
13257         work around mingw's lack of some S_IF definitions
13258         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
13259         Reported by Simon Josefsson.
13260
13261 2008-12-08  Bruno Haible  <bruno@clisp.org>
13262
13263         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
13264         applied to variables. Needed on MacOS X 10.4/PowerPC.
13265         Reported by Simon Josefsson.
13266
13267 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
13268         and Eric Blake  <ebb9@byu.net>
13269
13270         assert: honor --enable-assert
13271         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
13272         order to honor --enable-assert, rather than treating it as a
13273         synonym for --disable-assert.
13274
13275 2008-12-08  Jim Meyering  <meyering@redhat.com>
13276
13277         * lib/posixtm.c: Remove now-useless declaration of mktime.
13278
13279         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
13280
13281 2008-12-07  Bruno Haible  <bruno@clisp.org>
13282
13283         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
13284         test_once): Mark functions as static.
13285         * tests/test-tls.c (test_tls): Likewise.
13286
13287 2008-12-07  Bruno Haible  <bruno@clisp.org>
13288
13289         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
13290         iconv_register_autodetect.
13291
13292 2008-12-07  Jim Meyering  <meyering@redhat.com>
13293
13294         posixtm.c: avoid a warning
13295         * lib/posixtm.c (posixtime): Don't initialize tm0.
13296         It's no longer needed to placate gcc4's -Wuninitialized,
13297         and the attempt to placate would elicit a new warning.
13298
13299         unicodeio.c: mark unused parameters
13300         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
13301         (fallback_failure_callback): Likewise.
13302
13303 2008-12-07  Bruno Haible  <bruno@clisp.org>
13304
13305         * gnulib-tool (func_create_testdir): When building the tests
13306         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
13307         Reported by Simon Josefsson.
13308
13309 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13310
13311         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
13312
13313 2008-12-06  Bruno Haible  <bruno@clisp.org>
13314
13315         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
13316         Suggested by Eric Blake.
13317
13318 2008-12-06  Bruno Haible  <bruno@clisp.org>
13319
13320         Fix a c-stack test failure on MacOS X.
13321         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
13322         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
13323         handler for SIGBUS as well.
13324         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
13325         install a signal handler for SIGBUS as well.
13326         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
13327
13328 2008-12-06  Bruno Haible  <bruno@clisp.org>
13329
13330         Advocacy documentation.
13331         * doc/gnulib-intro.texi (Benefits): New section.
13332         * doc/gnulib.texi: Update.
13333
13334 2008-12-06  Bruno Haible  <bruno@clisp.org>
13335
13336         Document the 'manywarnings' module.
13337         * doc/manywarnings.texi: New file.
13338         * doc/gnulib.texi: Include it.
13339
13340 2008-12-05  Eric Blake  <ebb9@byu.net>
13341
13342         tests: silence some gcc warnings
13343         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
13344         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
13345         type mismatches.
13346
13347 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13348             Bruno Haible  <bruno@clisp.org>
13349
13350         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
13351
13352 2008-11-29  Jim Meyering  <meyering@redhat.com>
13353
13354         unicodeio.c: mark unused parameters
13355         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
13356         (fallback_failure_callback): Likewise.
13357
13358         fts: fix a thinko
13359         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
13360         (set_stat_type): Return S_IF*-valued "type" directly.
13361         Prompted by James Youngman's spotting a related bug.
13362         Confirmed by further testing through find.
13363
13364         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
13365         * lib/fts.c (D_TYPE): Define.
13366         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
13367         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
13368         (s_ifmt_shift_bits): New function.
13369         (set_stat_type): New function.
13370         (fts_build): When not calling fts_stat, call set_stat_type
13371         to propagate dirent.d_type info to fts_read caller.
13372         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
13373         fts_statp->st_mode type information may be valid.
13374
13375 2008-11-28  Simon Josefsson  <simon@josefsson.org>
13376
13377         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
13378         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
13379         <sds@gnu.org>.
13380
13381 2008-11-20  Bruno Haible  <bruno@clisp.org>
13382
13383         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
13384         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
13385         INCLUDE_NEXT.
13386         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
13387         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
13388         * modules/math (Makefile.am): Substitute
13389         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
13390         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13391
13392 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
13393             Bruno Haible  <bruno@clisp.org>
13394
13395         * lib/stdint.in.h: Define all type macros so that their expansion is
13396         a single typedef'ed token. Fixes a compilation failure in Boost which
13397         does "using ::int8_t;".
13398
13399 2008-11-18  Simon Josefsson  <simon@josefsson.org>
13400
13401         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
13402         gl_MANYWARN_ALL_GCC.
13403         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
13404         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
13405         * modules/manywarnings: New file.
13406         * MODULES.html.sh: Mention manywarnings module.
13407
13408 2008-11-18  Bruno Haible  <bruno@clisp.org>
13409
13410         * doc/gnulib-tool.texi (Unit tests): New section.
13411
13412 2008-11-18  Simon Josefsson  <simon@josefsson.org>
13413
13414         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
13415         paths like 'lib/po/foo.po'.
13416
13417 2008-11-17  Simon Josefsson  <simon@josefsson.org>
13418
13419         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
13420         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
13421
13422 2008-11-17  Simon Josefsson  <simon@josefsson.org>
13423
13424         * m4/warnings.m4: Use CPPFLAGS to really check whether the
13425         parameter works.
13426
13427 2008-11-17  Simon Josefsson  <simon@josefsson.org>
13428
13429         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
13430
13431 2008-11-17  Bruce Korb  <bkorb@gnu.org>
13432
13433         * modules/parse-duration-tests: New file.
13434         * tests/test-parse-duration.sh: New file.
13435         * tests/test-parse-duration.c: New file.
13436
13437         New module 'parse-duration'.
13438         * lib/parse-duration.h: New file.
13439         * lib/parse-duration.c: New file.
13440         * modules/parse-duration: New file.
13441
13442 2008-11-17  Bruno Haible  <bruno@clisp.org>
13443
13444         * tests/test-select-out.sh: Comment out the first pipe test.
13445         Reported by Simon Josefsson.
13446
13447 2008-11-17  Bruno Haible  <bruno@clisp.org>
13448
13449         * modules/getaddrinfo (Depends-on): Add servent, hostent.
13450         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
13451         gl_HOSTENT.
13452
13453 2008-11-17  Bruno Haible  <bruno@clisp.org>
13454
13455         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
13456         -lnetwork and -lnet. Needed for Haiku and BeOS.
13457
13458 2008-11-16  Bruno Haible  <bruno@clisp.org>
13459
13460         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
13461
13462 2008-11-16  Bruno Haible  <bruno@clisp.org>
13463
13464         Avoid test failure on Haiku.
13465         * tests/test-fsync.c: Include <errno.h>.
13466         (main): Don't require that fsync (0) fails.
13467
13468 2008-11-15  Bruno Haible  <bruno@clisp.org>
13469
13470         New module 'hostent'.
13471         * modules/hostent: New file.
13472         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
13473
13474 2008-11-15  Bruno Haible  <bruno@clisp.org>
13475
13476         New module 'servent'.
13477         * modules/servent: New file.
13478         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
13479
13480 2008-11-15  Bruno Haible  <bruno@clisp.org>
13481
13482         Avoid generating same test program with two different rules.
13483         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
13484         test-frexp to test-frexp-nolibm.
13485         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
13486         test-frexpl to test-frexpl-nolibm.
13487
13488 2008-11-15  Bruno Haible  <bruno@clisp.org>
13489
13490         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
13491         $(FREXPL_LIBM).
13492
13493 2008-11-15  Bruno Haible  <bruno@clisp.org>
13494
13495         * lib/netdb.in.h: Activate the definitions also when the system's
13496         <netdb.h> has 'struct addrinfo'.
13497         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
13498         EAI_OVERFLOW or AI_NUMERICSERV.
13499         * doc/posix-headers/netdb.texi: Document the problem.
13500
13501 2008-11-15  Bruno Haible  <bruno@clisp.org>
13502
13503         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
13504
13505         Make the 'sched' module work on platforms where <sched.h> exists but
13506         is incomplete (such as Haiku).
13507         * lib/sched.in.h; Include the system's <sched.h> if it exists.
13508         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
13509         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
13510         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
13511         HAVE_STRUCT_SCHED_PARAM.
13512         * modules/sched (Depends-on): Add include_next.
13513         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
13514         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
13515         * doc/posix-headers/sched.texi: Document the issue.
13516
13517 2008-11-13  Jim Meyering  <meyering@redhat.com>
13518
13519         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
13520         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
13521         test would fail due to the difference in the Report bugs to ...
13522         line.  The expected address is empty, "<>", while the actual
13523         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
13524
13525 2008-11-12  Bruno Haible  <bruno@clisp.org>
13526
13527         lstat: don't compile lstat.c on systems lacking lstat
13528         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
13529         which don't have lstat; this is handled by lib/sys_stat.in.h already.
13530         Reported by Daniel P. Berrange via Jim Meyering.
13531
13532 2008-11-12  Jim Meyering  <meyering@redhat.com>
13533
13534         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
13535
13536 2008-11-12  Simon Josefsson  <simon@josefsson.org>
13537
13538         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
13539         instead.
13540
13541 2008-11-12  Bruno Haible  <bruno@clisp.org>
13542
13543         * lib/unicodeio.c: Include unistr.h.
13544         (utf8_wctomb): Remove function.
13545         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
13546
13547 2008-11-12  Simon Josefsson  <simon@josefsson.org>
13548
13549         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
13550         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
13551         <bruno@clisp.org>.
13552         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
13553
13554 2008-11-12  Simon Josefsson  <simon@josefsson.org>
13555
13556         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
13557         * doc/gnulib.texi: Add section for warnings.
13558
13559 2008-11-11  Bruno Haible  <bruno@clisp.org>
13560
13561         * lib/sockets.h: Add a comment.
13562
13563 2008-11-11  Karl Berry  <karl@gnu.org>
13564
13565         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
13566
13567 2008-11-11  Eric Blake  <ebb9@byu.net>
13568
13569         fdl.texi: avoid git symlinks
13570         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
13571
13572 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
13573
13574         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
13575
13576 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
13577
13578         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
13579         (gl_WARN_ADD): Substitute $2 if literal.
13580
13581 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
13582
13583         * m4/warning.m4: Remove.
13584
13585 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
13586
13587         * m4/warnings.m4: Almost complete rewrite. :-)
13588
13589 2008-11-10  Simon Josefsson  <simon@josefsson.org>
13590
13591         * modules/warnings: New module.
13592         * m4/warnings.m4: New file.
13593         * MODULES.html.sh: Mention warnings module.
13594         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
13595         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13596
13597 2008-11-10  Eric Blake  <ebb9@byu.net>
13598
13599         fdl.texi: make a symlink to the latest version
13600         * doc/standards.texi: Revert today's earlier change.
13601         * doc/fdl-1.2.texi: Rename from old fdl.texi...
13602         * doc/fdl.texi: ...and replace this with a symlink to the newer
13603         fdl-1.3.texi.
13604
13605 2008-11-10  Bruno Haible  <bruno@clisp.org>
13606
13607         * tests/test-select-fd.c (main): Accept the result file name as fourth
13608         argument.
13609         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
13610         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
13611
13612 2008-11-10  Bruno Haible  <bruno@clisp.org>
13613
13614         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
13615         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
13616         as autoconf-substituted macros.
13617         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
13618         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
13619         gl_NETDB_H_DEFAULTS. Set these variables.
13620         * modules/netdb (Makefile.am): Substitute these variables.
13621
13622 2008-11-10  Eric Blake  <ebb9@byu.net>
13623
13624         standards.texi: include correct file for FDL 1.3
13625         * doc/standards.texi (GNU Free Documentation License): Change
13626         include file to pull in FDL 1.3, not 1.2.
13627
13628         fdl.texi: revert accidental change to license
13629         * doc/fdl.texi: This is FDL 1.2, not 1.3.
13630
13631 2008-11-10  Bruno Haible  <bruno@clisp.org>
13632
13633         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
13634         cross-compiling guesses also when the native compile gives no result.
13635
13636 2008-11-10  Bruno Haible  <bruno@clisp.org>
13637
13638         * lib/spawni.c (__spawni): Force variable into the stack.
13639
13640 2008-11-10  Bruno Haible  <bruno@clisp.org>
13641
13642         Add support for Haiku.
13643         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
13644         glibc and BeOS, but also on Haiku.
13645         * lib/fpurge.c (fpurge): Likewise.
13646         * lib/freadable.c (freadable): Likewise.
13647         * lib/freadahead.c (freadahead): Likewise.
13648         * lib/freading.c (freading): Likewise.
13649         * lib/freadptr.c (freadptr): Likewise.
13650         * lib/freadseek.c (freadptrinc): Likewise.
13651         * lib/fseeko.c (rpl_fseeko): Likewise.
13652         * lib/fseterr.c (fseterr): Likewise.
13653         * lib/fwritable.c (fwritable): Likewise.
13654         * lib/fwriting.c (fwriting): Likewise.
13655         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
13656
13657 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
13658
13659         * lib/config.charset: Treat Haiku like BeOS.
13660
13661 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
13662
13663         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
13664         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
13665
13666 2008-11-08  Bruno Haible  <bruno@clisp.org>
13667
13668         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
13669         AC_CACHE_CHECK.
13670
13671 2008-11-08  Bruno Haible  <bruno@clisp.org>
13672
13673         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
13674
13675 2008-11-08  Bruno Haible  <bruno@clisp.org>
13676
13677         * tests/test-select-fd.c: New file.
13678         * tests/test-select-in.sh: New file.
13679         * tests/test-select-out.sh: New file.
13680         * tests/test-select-stdin.c: New file.
13681         * modules/select-tests (Files): Add the new files.
13682         (Depends-on): Add gettimeofday.
13683         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
13684         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
13685         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
13686
13687 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
13688             Bruno Haible  <bruno@clisp.org>
13689
13690         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
13691
13692 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
13693
13694         * build-aux/pmccabe2html: Added support for C++ source files.
13695
13696 2008-11-05  Ben Pfaff  <blp@gnu.org>
13697
13698         Fix lib/close.c build on Windows.
13699         * modules/close (Files): Add lib/w32sock.h.
13700
13701 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
13702
13703         Accept Bison's NEWS format.
13704         * build-aux/announce-gen (print_news_deltas): Tweak
13705         $re_prefix.
13706
13707 2008-11-04  Bruno Haible  <bruno@clisp.org>
13708
13709         * modules/random_r (Maintainer): Add glibc.
13710
13711 2008-11-04  Simon Josefsson  <simon@josefsson.org>
13712
13713         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
13714         by karl@freefriends.org (Karl Berry).
13715         * doc/alloca.texi: Likewise.
13716         * doc/c-ctype.texi: Likewise.
13717         * doc/c-strcase.texi: Likewise.
13718         * doc/c-strcaseeq.texi: Likewise.
13719         * doc/c-strcasestr.texi: Likewise.
13720         * doc/c-strstr.texi: Likewise.
13721         * doc/c-strtod.texi: Likewise.
13722         * doc/c-strtold.texi: Likewise.
13723         * doc/ctime.texi: Likewise.
13724         * doc/error.texi: Likewise.
13725         * doc/fdl.texi: Likewise.
13726         * doc/gcd.texi: Likewise.
13727         * doc/getdate.texi: Likewise.
13728         * doc/gnulib-intro.texi: Likewise.
13729         * doc/gnulib-tool.texi: Likewise.
13730         * doc/gnulib.texi: Likewise.
13731         * doc/inet_ntoa.texi: Likewise.
13732         * doc/maintain.texi: Likewise.
13733         * doc/make-stds.texi: Likewise.
13734         * doc/quote.texi: Likewise.
13735         * doc/regexprops-generic.texi: Likewise.
13736         * doc/standards.texi: Likewise.
13737         * doc/verify.texi: Likewise.
13738         * doc/visibility.texi: Likewise.
13739         * doc/gnulib.texi (GNU Free Documentation License): Include
13740         fdl-1.3.texi instead of fdl.texi.
13741
13742 2008-11-04  Simon Josefsson  <simon@josefsson.org>
13743
13744         * doc/fdl-1.3.texi: New file, from
13745         <http://www.gnu.org/licenses/fdl-1.3.texi>.
13746         * modules/fdl-1.3: Add.
13747         * MODULES.html.sh: Add fdl-1.3.
13748
13749 2008-11-03  Bruno Haible  <bruno@clisp.org>
13750
13751         Make determination of absolute name of header file work with AIX xlc.
13752         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
13753         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
13754         preprocessing.
13755         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
13756         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
13757
13758 2008-11-03  Simon Josefsson  <simon@josefsson.org>
13759
13760         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
13761         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
13762         <ludo@gnu.org>.
13763
13764 2008-11-02  Bruno Haible  <bruno@clisp.org>
13765
13766         Mark 'strpbrk' obsolete.
13767         * modules/strpbrk (Status, Notice): New sections.
13768         * modules/strtok_r (Depends-on): Add strpbrk.
13769
13770 2008-11-02  Bruno Haible  <bruno@clisp.org>
13771
13772         Mark 'strdup' obsolete.
13773         * modules/strdup (Status, Notice): New sections.
13774         * modules/findprog (Depends-on): Add strdup.
13775         * modules/getaddrinfo (Depends-on): Likewise.
13776         * modules/localename (Depends-on): Likewise.
13777         * modules/relocatable-lib (Depends-on): Likewise.
13778         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
13779         * modules/relocatable-prog (Depends-on): Likewise.
13780         * modules/trim (Depends-on): Likewise.
13781         * modules/unictype/gen-ctype (Depends-on): Likewise.
13782         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
13783
13784 2008-11-02  Bruno Haible  <bruno@clisp.org>
13785
13786         Mark 'strcspn' obsolete.
13787         * modules/strcspn (Status, Notice): New sections.
13788
13789 2008-11-02  Bruno Haible  <bruno@clisp.org>
13790
13791         Mark 'rmdir' obsolete.
13792         * modules/rmdir (Status, Notice): New sections.
13793         * modules/clean-temp (Depends-on): Add rmdir.
13794         * modules/openat (Depends-on): Likewise.
13795
13796 2008-11-02  Bruno Haible  <bruno@clisp.org>
13797
13798         Mark 'raise' obsolete.
13799         * modules/raise (Status, Notice): New sections.
13800         (Include): Specify <signal.h>.
13801         * modules/stdio (Depends-on): Add raise.
13802         * modules/write (Depends-on): Likewise.
13803
13804 2008-11-02  Bruno Haible  <bruno@clisp.org>
13805
13806         Mark 'memset' obsolete.
13807         * modules/memset (Status, Notice): New sections.
13808
13809 2008-11-02  Bruno Haible  <bruno@clisp.org>
13810
13811         Mark 'memmove' obsolete.
13812         * modules/memmove (Status, Notice): New sections.
13813         * modules/argp (Depends-on): Add memmove.
13814         * modules/argz (Depends-on): Likewise.
13815         * modules/canonicalize (Depends-on): Likewise.
13816         * modules/canonicalize-lgpl (Depends-on): Likewise.
13817         * modules/fts (Depends-on): Likewise.
13818         * modules/getcwd (Depends-on): Likewise.
13819         * modules/human (Depends-on): Likewise.
13820         * modules/regex (Depends-on): Likewise.
13821         * modules/striconveh (Depends-on): Likewise.
13822         * modules/trim (Depends-on): Likewise.
13823         * modules/unistr/u8-move (Depends-on): Likewise.
13824         * modules/unistr/u16-move (Depends-on): Likewise.
13825         * modules/unistr/u32-move (Depends-on): Likewise.
13826
13827 2008-11-02  Bruno Haible  <bruno@clisp.org>
13828
13829         Mark 'memcpy' obsolete.
13830         * modules/memcpy (Status, Notice): New sections.
13831
13832 2008-11-02  Bruno Haible  <bruno@clisp.org>
13833
13834         Mark 'memcmp' obsolete.
13835         * modules/memcmp (Status, Notice): New sections.
13836         * modules/argmatch (Depends-on): Add memchr.
13837         * modules/backupfile (Depends-on): Likewise.
13838         * modules/c-strcasestr (Depends-on): Likewise.
13839         * modules/crypto/des (Depends-on): Likewise.
13840         * modules/csharpcomp (Depends-on): Likewise.
13841         * modules/fnmatch (Depends-on): Likewise.
13842         * modules/git-merge-changelog (Depends-on): Likewise.
13843         * modules/isnand (Depends-on): Likewise.
13844         * modules/isnand-nolibm (Depends-on): Likewise.
13845         * modules/isnanf (Depends-on): Likewise.
13846         * modules/isnanf-nolibm (Depends-on): Likewise.
13847         * modules/isnanl (Depends-on): Likewise.
13848         * modules/isnanl-nolibm (Depends-on): Likewise.
13849         * modules/mbchar (Depends-on): Likewise.
13850         * modules/memcoll (Depends-on): Likewise.
13851         * modules/quotearg (Depends-on): Likewise.
13852         * modules/regex (Depends-on): Likewise.
13853         * modules/relocatable-prog (Depends-on): Likewise.
13854         * modules/same (Depends-on): Likewise.
13855         * modules/signbit (Depends-on): Likewise.
13856         * modules/strcasestr-simple (Depends-on): Likewise.
13857         * modules/unictype/gen-ctype (Depends-on): Likewise.
13858         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
13859         * modules/uniname/uniname (Depends-on): Likewise.
13860         * modules/unistr/u8-cmp (Depends-on): Likewise.
13861
13862 2008-11-02  Bruno Haible  <bruno@clisp.org>
13863
13864         Mark 'memchr' obsolete.
13865         * modules/memchr (Status, Notice): New sections.
13866         * modules/argp (Depends-on): Add memchr.
13867         * modules/base64 (Depends-on): Likewise.
13868         * modules/c-strcasestr (Depends-on): Likewise.
13869         * modules/chdir-long (Depends-on): Likewise.
13870         * modules/fnmatch (Depends-on): Likewise.
13871         * modules/getsubopt (Depends-on): Likewise.
13872         * modules/git-merge-changelog (Depends-on): Likewise.
13873         * modules/glob (Depends-on): Likewise.
13874         * modules/strcasestr-simple (Depends-on): Likewise.
13875         * modules/strnlen (Depends-on): Likewise.
13876
13877 2008-11-02  Bruno Haible  <bruno@clisp.org>
13878
13879         Mark 'atexit' obsolete.
13880         * modules/atexit (Status, Notice): New sections.
13881         * modules/chdir-long (Depends-on): Add atexit.
13882         * modules/wait-process (Depends-on): Likewise.
13883
13884 2008-11-02  Bruno Haible  <bruno@clisp.org>
13885
13886         * gnulib-tool: New option --with-obsolete.
13887         (func_usage): Document it.
13888         (func_modules_transitive_closure): Drop obsolete dependencies if
13889         incobsolete is not true.
13890         (func_import): Read and save the incobsolete variable to the cache.
13891
13892 2008-11-02  Bruno Haible  <bruno@clisp.org>
13893
13894         * modules/TEMPLATE-EXTENDED: New field 'Status'.
13895         * gnulib-tool: New option --extract-status.
13896         (func_usage): Document it.
13897         (sed_extract_prog): Recognize it.
13898         (func_get_status): New function.
13899
13900 2008-10-30  Simon Josefsson  <simon@josefsson.org>
13901
13902         * modules/sockets (License): Change from LGPL to LGPLv2+.
13903
13904 2008-10-28  Simon Josefsson  <simon@josefsson.org>
13905
13906         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
13907
13908 2008-10-28  Simon Josefsson  <simon@josefsson.org>
13909
13910         * MODULES.html.sh (Support for systems lacking POSIX:2001):
13911         Mention times and sys_times.
13912         * modules/sys_times, modules/sys_times-tests: New modules.
13913         * modules/times, modules/times-tests: Likewise
13914         * m4/sys_times_h.m4: New file.
13915         * lib/sys_times.in.h: Likewise
13916         * lib/times.c: Likewise.
13917         * tests/test-sys_times.c: Likewise.
13918         * tests/test-times.c: Likewise.
13919         * doc/posix-headers/sys_times.texi: Update.
13920         * doc/posix-functions/times.texi: Update.
13921
13922 2008-10-28  Jim Meyering  <meyering@redhat.com>
13923
13924         * modules/tempname (Depends-on): Add lstat.
13925
13926         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
13927
13928 2008-10-28  Simon Josefsson  <simon@josefsson.org>
13929
13930         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
13931         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
13932         using idiom used elsewhere in gnulib.
13933
13934 2008-10-27  Jim Meyering  <meyering@redhat.com>
13935
13936         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
13937
13938 2008-10-27  Simon Josefsson  <simon@josefsson.org>
13939
13940         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
13941         TESTS_ENVIRONMENT, for shell scripts that needs to call built
13942         programs.
13943         * tests/test-argp-2.sh: Use $EXEEXT when needed.
13944
13945 2008-10-27  Simon Josefsson  <simon@josefsson.org>
13946
13947         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
13948
13949 2008-10-27  Bruno Haible  <bruno@clisp.org>
13950
13951         * tests/test-lstat.c: Include <stdio.h>.
13952
13953 2008-10-27  Simon Josefsson  <simon@josefsson.org>
13954
13955         * modules/lstat-tests: New module.
13956         * tests/test-lstat.c: New file.
13957
13958 2008-10-26  Jim Meyering  <meyering@redhat.com>
13959
13960         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
13961
13962 2008-10-26  Simon Josefsson  <simon@josefsson.org>
13963             Bruno Haible  <bruno@clisp.org>
13964
13965         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
13966         * modules/configmake (Include): Add a note that the include must come
13967         after all system headers.
13968         * lib/javaversion.c: Include configmake.h after all other includes.
13969
13970 2008-10-26  Bruno Haible  <bruno@clisp.org>
13971
13972         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
13973         HAVE_STRUCT_RANDOM_DATA to 1.
13974         (gl_STDLIB_H): Simplify.
13975
13976 2008-10-26  Simon Josefsson  <simon@josefsson.org>
13977
13978         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
13979         substitute HAVE_STRUCT_RANDOM_DATA.
13980         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
13981         random_data.
13982         * modules/stdlib (Makefile.am): Substitute
13983         HAVE_STRUCT_RANDOM_DATA.
13984
13985 2008-10-26  Simon Josefsson  <simon@josefsson.org>
13986
13987         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
13988         * doc/gnulib-intro.texi (Copyright): Likewise.
13989
13990 2008-10-26  Simon Josefsson  <simon@josefsson.org>
13991
13992         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
13993         findings.
13994
13995 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
13996             Bruno Haible  <bruno@clisp.org>
13997
13998         * lib/unistd.in.h: Include <winsock2.h>.
13999         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
14000         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
14001         Provide dummy declarations.
14002         (gethostname): Override.
14003         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
14004         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
14005         gl_PREREQ_SYS_H_WINSOCK2.
14006         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
14007         * doc/posix-functions/gethostname.texi: More details.
14008
14009 2008-10-25  Bruno Haible  <bruno@clisp.org>
14010
14011         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
14012         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
14013         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
14014
14015         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
14016         here ...
14017         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
14018         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
14019         gl_UNISTD_H_DEFAULTS.
14020
14021 2008-10-25  Eric Blake  <ebb9@byu.net>
14022
14023         signbit: avoid spurious compiler failure
14024         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
14025         declarations inside function.
14026
14027 2008-10-24  Simon Josefsson  <simon@josefsson.org>
14028             Bruno Haible  <bruno@clisp.org>
14029
14030         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
14031         * modules/random_r (Depends-on): Add stdint.
14032
14033 2008-10-24  Bruno Haible  <bruno@clisp.org>
14034
14035         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
14036         Eggert.
14037         * modules/strerror (License): Likewise.
14038
14039 2008-10-24  Jim Meyering  <meyering@redhat.com>
14040
14041         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
14042         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
14043
14044 2008-10-24  Eric Blake  <ebb9@byu.net>
14045
14046         getgroups: fix compilation when getgroups is available
14047         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
14048         but with <config.h> override of getgroups disabled.
14049
14050 2008-10-24  Simon Josefsson  <simon@josefsson.org>
14051
14052         * doc/gnulib.texi (Header files): Add note about C++ problems.
14053         Explained by Bruno Haible <bruno@clisp.org>.
14054
14055 2008-10-23  Bruno Haible  <bruno@clisp.org>
14056
14057         Define a dummy SA_NODEFER macro on Interix.
14058         * lib/signal.in.h (SA_NODEFER): Define fallback.
14059         Reported by Aleksey Cheusov <cheusov@tut.by> via
14060         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
14061
14062 2008-10-23  Bruno Haible  <bruno@clisp.org>
14063
14064         * modules/freadahead (License): Change to LGPLv2+.
14065         Suggested by Simon Josefsson.
14066
14067 2008-10-23  Jim Meyering  <meyering@redhat.com>
14068
14069         random_r: new module
14070         * modules/random_r: New file.
14071         * m4/random_r.m4: New file.
14072         * lib/random_r.c: New file, from glibc.
14073         * modules/random_r-tests: New file.
14074         * tests/test-random_r.c: New file.
14075         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
14076          Declare.
14077         (RAND_MAX): Define.
14078         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
14079         * modules/stdlib: Substitute them, too.
14080         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
14081         * doc/glibc-functions/initstate_r.texi: Mention the new module.
14082         * doc/glibc-functions/random_r.texi: Likewise.
14083         * doc/glibc-functions/setstate_r.texi: Likewise.
14084         * doc/glibc-functions/srandom_r.texi: Likewise.
14085         * config/srclist.txt: Mention it.
14086
14087 2008-10-23  David Lutterkort  <lutter@redhat.com>
14088
14089         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
14090         link requirement
14091
14092 2008-10-23  Jim Meyering  <meyering@redhat.com>
14093
14094         selinux-h: mark parameters of stub functions as intentionally unused
14095         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
14096         * lib/se-context.in.h: Likewise.
14097
14098 2008-10-22  Simon Josefsson  <simon@josefsson.org>
14099
14100         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
14101
14102 2008-10-22  Simon Josefsson  <simon@josefsson.org>
14103
14104         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
14105
14106 2008-10-22  Eric Blake  <ebb9@byu.net>
14107
14108         glthread/thread: avoid compiler warning
14109         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
14110         Add unreachable abort to silence compiler.
14111
14112 2008-10-22  Eric Blake  <ebb9@byu.net>
14113
14114         netdb: also supply struct addrinfo for cygwin 1.5.x
14115         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
14116         older cygwin.
14117         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
14118         cygwin.
14119         * doc/posix-headers/netdb.texi (netdb.h): Document this.
14120
14121 2008-10-22  Bruno Haible  <bruno@clisp.org>
14122
14123         * users.txt: Update entry about pspp.
14124
14125 2008-10-21  Bruno Haible  <bruno@clisp.org>
14126
14127         Simplification.
14128         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
14129         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
14130
14131         Simplification.
14132         * lib/ioctl.c (ioctl): Don't undefine.
14133         * lib/socket.c (socket): Don't undefine.
14134
14135         Remove unused module indicator macros.
14136         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
14137         GNULIB_$1 as a C macro.
14138
14139         * doc/posix-functions/close.texi: Undo last change.
14140         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
14141         Windows platforms.
14142
14143 2008-10-21  Bruno Haible  <bruno@clisp.org>
14144
14145         Add gethostname() declaration to <unistd.h>.
14146         * lib/unistd.in.h (gethostname): New declaration.
14147         * lib/gethostname.c: Include <unistd.h>.
14148         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
14149         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
14150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
14151         and HAVE_GETHOSTNAME.
14152         * modules/gethostname (Depends-on): Add unistd.
14153         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14154         (Include): Specify <unistd.h>.
14155         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
14156         HAVE_GETHOSTNAME.
14157         * tests/test-gethostname.c: Include <unistd.h> first.
14158
14159 2008-10-21  Bruno Haible  <bruno@clisp.org>
14160
14161         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
14162         * modules/select-tests (Depends-on): Likewise.
14163         Reported by Simon Josefsson.
14164
14165 2008-10-21  Simon Josefsson  <simon@josefsson.org>
14166
14167         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
14168         * lib/accept.c: New file, based on winsock.c.
14169         * lib/bind.c: New file, based on winsock.c.
14170         * lib/connect.c: New file, based on winsock.c.
14171         * lib/getpeername.c: New file, based on winsock.c.
14172         * lib/getsockname.c: New file, based on winsock.c.
14173         * lib/getsockopt.c: New file, based on winsock.c.
14174         * lib/ioctl.c: New file, based on winsock.c.
14175         * lib/listen.c: New file, based on winsock.c.
14176         * lib/recv.c: New file, based on winsock.c.
14177         * lib/recvfrom.c: New file, based on winsock.c.
14178         * lib/send.c: New file, based on winsock.c.
14179         * lib/sendto.c: New file, based on winsock.c.
14180         * lib/setsockopt.c: New file, based on winsock.c.
14181         * lib/shutdown.c: New file, based on winsock.c.
14182         * lib/socket.c: New file, based on winsock.c.
14183         * lib/w32sock.h: New file, based on winsock.c.
14184         * lib/winsock.c: Remove file.
14185         * modules/accept: Likewise.
14186         * modules/bind: Likewise.
14187         * modules/connect: Likewise.
14188         * modules/getpeername: Likewise.
14189         * modules/getsockname: Likewise.
14190         * modules/getsockopt: Likewise.
14191         * modules/ioctl: Likewise.
14192         * modules/listen: Likewise.
14193         * modules/recv: Likewise.
14194         * modules/recvfrom: Likewise.
14195         * modules/send: Likewise.
14196         * modules/sendto: Likewise.
14197         * modules/setsockopt: Likewise.
14198         * modules/shutdown: Likewise.
14199         * modules/socket: Use socket.c instead of winsock.c.
14200         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
14201         * doc/posix-functions/accept.texi: Doc fix.
14202         * doc/posix-functions/bind.texi: Doc fix.
14203         * doc/posix-functions/close.texi: Doc fix.
14204         * doc/posix-functions/connect.texi: Doc fix.
14205         * doc/posix-functions/getpeername.texi: Doc fix.
14206         * doc/posix-functions/getsockname.texi: Doc fix.
14207         * doc/posix-functions/getsockopt.texi: Doc fix.
14208         * doc/posix-functions/ioctl.texi: Doc fix.
14209         * doc/posix-functions/listen.texi: Doc fix.
14210         * doc/posix-functions/recv.texi: Doc fix.
14211         * doc/posix-functions/recvfrom.texi: Doc fix.
14212         * doc/posix-functions/send.texi: Doc fix.
14213         * doc/posix-functions/sendto.texi: Doc fix.
14214         * doc/posix-functions/setsockopt.texi: Doc fix.
14215         * doc/posix-functions/shutdown.texi: Doc fix.
14216         * doc/posix-functions/socket.texi: Doc fix.
14217
14218 2008-10-20  Bruno Haible  <bruno@clisp.org>
14219
14220         Take into account the role of SIGABRT_COMPAT on Windows 2008.
14221         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
14222         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
14223         as an alias for SIGABRT.
14224         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
14225         (sigaction): Map it to SIGABRT.
14226         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
14227
14228 2008-10-20  Bruno Haible  <bruno@clisp.org>
14229
14230         * lib/fts.c: Don't include lstat.h.
14231         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
14232
14233         Move the lstat() declaration to <sys/stat.h>.
14234         * lib/lstat.h: Remove file.
14235         * lib/sys_stat.in.h: Add special invocation convention.
14236         (lstat): New declaration.
14237         * lib/lstat.c (orig_lstat): New function.
14238         (rpl_lstat): Use orig_lstat instead of lstat.
14239         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
14240         AC_C_INLINE. Set REPLACE_LSTAT.
14241         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
14242         and REPLACE_LSTAT.
14243         * modules/lstat (Files): Remove lib/lstat.h.
14244         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
14245         (Include): Specify <sys/stat.h> instead of lstat.h.
14246         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
14247         REPLACE_LSTAT.
14248         * NEWS: Mention the change.
14249
14250 2008-10-20  Bruno Haible  <bruno@clisp.org>
14251
14252         * modules/posix_spawn-tests: New file.
14253         * tests/test-posix_spawn3.c: New file.
14254
14255 2008-10-20  Bruno Haible  <bruno@clisp.org>
14256
14257         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
14258         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
14259         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
14260         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
14261         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
14262
14263 2008-10-20  Bruno Haible  <bruno@clisp.org>
14264
14265         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
14266         of posix_spawn on AIX 5.3.
14267
14268 2008-10-20  Bruno Haible  <bruno@clisp.org>
14269
14270         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
14271
14272 2008-10-20  Bruno Haible  <bruno@clisp.org>
14273
14274         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
14275         of AC_LANG_PROGRAM.
14276
14277 2008-10-20  Simon Josefsson  <simon@josefsson.org>
14278
14279         * lib/netdb.in.h: Don't define GNU specific constants until they
14280         are supported or needed.  Reported by Bruno Haible
14281         <bruno@clisp.org>.
14282
14283 2008-10-20  Simon Josefsson  <simon@josefsson.org>
14284
14285         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
14286
14287 2008-10-20  Simon Josefsson  <simon@josefsson.org>
14288
14289         * lib/getaddrinfo.h: Remove file.
14290         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
14291         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
14292         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
14293         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
14294         * modules/netdb: Substitute GNULIB_GETADDRINFO.
14295         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
14296         * tests/test-getaddrinfo.c: Likewise.
14297         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
14298         * NEWS: Mention change.
14299
14300 2008-10-19  Bruno Haible  <bruno@clisp.org>
14301
14302         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
14303
14304 2008-10-19  Bruno Haible  <bruno@clisp.org>
14305
14306         * lib/wait-process.c: Include simply <sys/wait.h>.
14307         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
14308         WIFSTOPPED): Remove fallback definitions.
14309         * modules/wait-process (Depends-on): Add sys_wait.
14310
14311         New module 'sys_wait'.
14312         * modules/sys_wait: New file.
14313         * lib/sys_wait.in.h: New file, partially copied from
14314         lib/wait-process.c.
14315         * m4/sys_wait_h.m4: New file.
14316         * doc/posix-headers/sys_wait.texi: Mention the new module.
14317
14318 2008-10-19  Bruno Haible  <bruno@clisp.org>
14319
14320         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
14321
14322 2008-10-19  Bruno Haible  <bruno@clisp.org>
14323
14324         Assume that waitpid() fills an 'int' status, not a 'union wait'.
14325         * lib/wait-process.c (WAIT_T): Remove type.
14326         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
14327         (wait_subprocess): Update.
14328
14329 2008-10-19  Bruno Haible  <bruno@clisp.org>
14330
14331         New module 'atoll'.
14332         * modules/atoll: New file.
14333         * lib/stdlib.in.h (atoll): New declaration.
14334         * lib/atoll.c: New file, from glibc with modifications.
14335         * m4/atoll.m4: New file.
14336         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
14337         HAVE_ATOLL.
14338         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
14339         * doc/posix-functions/atoll.texi: Mention the new module.
14340
14341 2008-10-19  Bruno Haible  <bruno@clisp.org>
14342
14343         Add strtoull() declaration to <stdlib.h>.
14344         * lib/stdlib.in.h (strtoull): New declaration.
14345         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
14346         Set HAVE_STRTOULL.
14347         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
14348         HAVE_STRTOULL.
14349         * modules/strtoull (Depends-on): Add stdlib.
14350         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14351         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
14352         HAVE_STRTOULL.
14353
14354 2008-10-19  Bruno Haible  <bruno@clisp.org>
14355
14356         Add strtoll() declaration to <stdlib.h>.
14357         * lib/stdlib.in.h (strtoll): New declaration.
14358         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
14359         Set HAVE_STRTOLL.
14360         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
14361         HAVE_STRTOLL.
14362         * modules/strtoll (Depends-on): Add stdlib.
14363         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14364         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
14365
14366 2008-10-19  Bruno Haible  <bruno@clisp.org>
14367
14368         * modules/bcopy (Depends-on): Add strings.
14369         (Include): Specify <strings.h>.
14370
14371 2008-10-19  Bruno Haible  <bruno@clisp.org>
14372
14373         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
14374
14375 2008-10-19  Bruno Haible  <bruno@clisp.org>
14376
14377         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
14378         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
14379         mingw.
14380
14381 2008-10-19  Bruno Haible  <bruno@clisp.org>
14382
14383         * lib/atanl.c: Don't include isnanl.h.
14384         * lib/cosl.c: Likewise.
14385         * lib/ldexpl.c: Likewise.
14386         * lib/logl.c: Likewise.
14387         * lib/sinl.c: Likewise.
14388         * lib/sqrtl.c: Likewise.
14389         * lib/tanl.c: Likewise.
14390
14391         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
14392         * lib/isnanf.h: Remove file.
14393         * lib/isnand.h: Remove file.
14394         * lib/isnanl.h: Remove file.
14395         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
14396         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
14397         macros.
14398         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
14399         HAVE_ISNANF, don't define it as a C macro.
14400         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
14401         HAVE_ISNAND, don't define it as a C macro.
14402         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
14403         HAVE_ISNANL, don't define it as a C macro.
14404         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
14405         HAVE_ISNAN[FDL].
14406         * modules/isnanf (Files): Remove lib/isnanf.h.
14407         (Depends-on): Add math.
14408         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14409         (Include): Specify <math.h> instead of isnanf.h.
14410         * modules/isnand (Files): Remove lib/isnand.h.
14411         (Depends-on): Add math.
14412         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14413         (Include): Specify <math.h> instead of isnand.h.
14414         * modules/isnanl (Files): Remove lib/isnanl.h.
14415         (Depends-on): Add math.
14416         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14417         (Include): Specify <math.h> instead of isnanl.h.
14418         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
14419         HAVE_ISNAN[FDL].
14420         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
14421         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
14422         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
14423         * NEWS: Mention the change.
14424
14425 2008-10-18  Bruno Haible  <bruno@clisp.org>
14426
14427         Add getusershell(), setusershell(), endusershell() declarations to
14428         <unistd.h>.
14429         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
14430         declarations.
14431         * lib/getusershell.c: Include unistd.h.
14432         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
14433         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
14434         HAVE_GETUSERSHELL.
14435         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
14436         and HAVE_GETUSERSHELL.
14437         * modules/getusershell (Depends-on): Add unistd, extensions.
14438         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14439         (Include): Specify <unistd.h>.
14440         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
14441         HAVE_GETUSERSHELL.
14442
14443 2008-10-18  Bruno Haible  <bruno@clisp.org>
14444
14445         Add a getloadavg() declaration to <stdlib.h>.
14446         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
14447         getloadavg declaration.
14448         (getloadavg): New declaration.
14449         * lib/getloadavg.c: Include <stdlib.h> first.
14450         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
14451         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
14452         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
14453         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
14454         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
14455         * modules/getloadavg (Depends-on): Add stdlib, extensions.
14456         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14457         (Include): Specify <stdlib.h>.
14458         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
14459         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
14460
14461 2008-10-18  Bruno Haible  <bruno@clisp.org>
14462
14463         * lib/dirchownmod.c: Don't include lchmod.h.
14464
14465         Move the lchmod() declaration to <sys/stat.h>.
14466         * lib/lchmod.h: Remove file.
14467         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
14468         (lchmod): New declaration, moved here from lib/lchown.h.
14469         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
14470         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
14471         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
14472         and HAVE_LCHMOD.
14473         * modules/lchmod (Files): Remove lib/lchmod.h.
14474         (Depends-on): Add sys_stat, extensions.
14475         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
14476         (Include): Specify <sys/stat.h> instead of lchmod.h.
14477         * modules/sys_stat (Depends-on): Add link-warning.
14478         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
14479         definition of GL_LINK_WARNING.
14480         * NEWS: Mention the change.
14481
14482 2008-10-18  Bruno Haible  <bruno@clisp.org>
14483
14484         * lib/fchdir.c: Don't include dirfd.h.
14485         * lib/fts.c: Likewise.
14486         * lib/getcwd.c: Likewise.
14487         * lib/glob.c: Likewise.
14488
14489         Move the dirfd() declaration to <dirent.h>.
14490         * lib/dirfd.h: Remove file.
14491         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
14492         (dirfd): New declaration.
14493         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
14494         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
14495         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
14496         HAVE_DECL_DIRFD.
14497         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
14498         HAVE_DECL_DIRFD.
14499         * modules/dirfd (Files): Remove lib/dirfd.h.
14500         (Depends-on): Add dirent, extensions.
14501         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
14502         (Include): Specify <dirent.h> instead of dirfd.h.
14503         * modules/dirent (Depends-on): Add link-warning.
14504         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
14505         definition of GL_LINK_WARNING.
14506         * NEWS: Mention the change.
14507
14508 2008-10-18  Bruno Haible  <bruno@clisp.org>
14509
14510         Move the euidaccess() declaration to <unistd.h>.
14511         * lib/euidaccess.h: Remove file.
14512         * lib/unistd.in.h (euidaccess): New declaration.
14513         * lib/euidaccess.c: Don't include euidaccess.h.
14514         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
14515         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
14516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
14517         and HAVE_EUIDACCESS.
14518         * modules/euidaccess (Files): Remove lib/euidaccess.h.
14519         (Depends-on): Add unistd.
14520         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14521         (Include): Specify <unistd.h> instead of euidaccess.h.
14522         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
14523         HAVE_EUIDACCESS.
14524         * NEWS: Mention the change.
14525
14526 2008-10-18  Bruno Haible  <bruno@clisp.org>
14527
14528         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
14529
14530         Move the getdomainname() declaration to <unistd.h>.
14531         * lib/getdomainname.h: Remove file.
14532         * lib/unistd.in.h (getdomainname): New declaration.
14533         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
14534         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
14535         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
14536         HAVE_GETDOMAINNAME.
14537         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14538         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
14539         * modules/getdomainname (Files): Remove lib/getdomainname.h.
14540         (Depends-on): Add unistd, extensions.
14541         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14542         (Includes): Specify <unistd.h> instead of getdomainname.h.
14543         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
14544         HAVE_GETDOMAINNAME.
14545         * NEWS: Mention the change.
14546
14547 2008-10-18  Bruno Haible  <bruno@clisp.org>
14548
14549         * modules/dirent: New file.
14550         * m4/dirent_h.m4: New file.
14551         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
14552         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
14553         * modules/fchdir (Files): Remove lib/dirent.in.h.
14554         (Depends-on): Add dirent.
14555         (Makefile.am): Move rules to modules/dirent.
14556         * doc/posix-headers/dirent.texi: Mention the new module.
14557
14558 2008-10-18  Bruno Haible  <bruno@clisp.org>
14559
14560         Avoid -Wunused-parameter warnings in public gnulib header files.
14561         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
14562         macro.
14563         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
14564
14565 2008-10-18  Bruno Haible  <bruno@clisp.org>
14566
14567         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
14568         * doc/glibc-functions/error.texi: Mention the module 'error'.
14569         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
14570         * doc/glibc-functions/getdomainname.texi: Mention the module
14571         'getdomainname'.
14572         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
14573         * doc/glibc-functions/getpagesize.texi: Mention the module
14574         'getpagesize'.
14575         * doc/glibc-functions/getusershell.texi: Mention the module
14576         'getusershell'.
14577         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
14578         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
14579         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
14580         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
14581         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
14582         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
14583         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
14584         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
14585         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
14586         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
14587         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
14588         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
14589         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
14590         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
14591
14592 2008-10-17  Bruno Haible  <bruno@clisp.org>
14593
14594         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
14595         HP-UX and IRIX, use -0.0L.
14596         * tests/test-ceill.c (minus_zero): Likewise.
14597         * tests/test-floorl.c (minus_zero): Likewise.
14598         * tests/test-frexpl.c (minus_zero): Likewise.
14599         * tests/test-isnan.c (minus_zerol): Likewise.
14600         * tests/test-isnanl.h (minus_zero): Likewise.
14601         * tests/test-ldexpl.c (minus_zero): Likewise.
14602         * tests/test-roundl.c (minus_zero): Likewise.
14603         * tests/test-signbit.c (minus_zerol): Likewise.
14604         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
14605         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
14606         * tests/test-truncl.c (minus_zero): Likewise.
14607         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
14608         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
14609         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
14610         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
14611
14612 2008-10-17  Bruno Haible  <bruno@clisp.org>
14613
14614         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
14615         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
14616         that it gets activated only for gcc >= 3.0.
14617         * lib/dirent.in.h: Likewise.
14618         * lib/errno.in.h: Likewise.
14619         * lib/fcntl.in.h: Likewise.
14620         * lib/float.in.h: Likewise.
14621         * lib/iconv.in.h: Likewise.
14622         * lib/inttypes.in.h: Likewise.
14623         * lib/locale.in.h: Likewise.
14624         * lib/math.in.h: Likewise.
14625         * lib/netdb.in.h: Likewise.
14626         * lib/netinet_in.in.h: Likewise.
14627         * lib/search.in.h: Likewise.
14628         * lib/signal.in.h: Likewise.
14629         * lib/spawn.in.h: Likewise.
14630         * lib/stdarg.in.h: Likewise.
14631         * lib/stdint.in.h: Likewise.
14632         * lib/stdio.in.h: Likewise.
14633         * lib/stdlib.in.h: Likewise.
14634         * lib/string.in.h: Likewise.
14635         * lib/strings.in.h: Likewise.
14636         * lib/sys_file.in.h: Likewise.
14637         * lib/sys_ioctl.in.h: Likewise.
14638         * lib/sys_select.in.h: Likewise.
14639         * lib/sys_socket.in.h: Likewise.
14640         * lib/sys_stat.in.h: Likewise.
14641         * lib/sys_time.in.h: Likewise.
14642         * lib/sysexits.in.h: Likewise.
14643         * lib/time.in.h: Likewise.
14644         * lib/unistd.in.h: Likewise.
14645         * lib/wchar.in.h: Likewise.
14646         * lib/wctype.in.h: Likewise.
14647         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
14648
14649 2008-10-17  Jim Meyering  <meyering@redhat.com>
14650
14651         ignore-value: don't depend on inline module
14652         * modules/ignore-value (Depends-on): Remove 'inline'.
14653         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
14654         Suggestion from Bruno Haible.
14655
14656 2008-10-17  Bruno Haible  <bruno@clisp.org>
14657
14658         New implementation of condition variables for Win32.
14659         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
14660         (gl_linked_waitqueue_t): New type.
14661         (gl_cond_t): Use it.
14662         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
14663         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
14664         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
14665         (glthread_cond_init_func, glthread_cond_wait_func,
14666         glthread_cond_timedwait_func, glthread_cond_signal_func,
14667         glthread_cond_broadcast_func, glthread_cond_destroy_func):
14668         Reimplemented on the basis of gl_linked_waitqueue_t.
14669         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
14670         gl_waitqueue_t.
14671         (gl_rwlock_t): Update.
14672         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
14673
14674 2008-10-17  Simon Josefsson  <simon@josefsson.org>
14675
14676         * modules/recvfrom (Depends-on): Add dependency on getpeername.
14677         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
14678
14679 2008-10-17  Jim Meyering  <meyering@redhat.com>
14680
14681         ignore-value: new module
14682         * modules/ignore-value: New file.
14683         * lib/ignore-value.h: New file.
14684         * MODULES.html.sh (Compiler warning management): New section,
14685         just for this module.  More to come.
14686
14687 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
14688
14689         open-safer.c: avoid 'signed and unsigned in conditional...' warning
14690         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
14691         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
14692
14693 2008-10-16  Jim Meyering  <meyering@redhat.com>
14694
14695         openat-die.c: avoid 'no previous prototype' warning
14696         * lib/openat-die.c: Include "openat.h".
14697         Reported by Reuben Thomas <rrt@sc3d.org>.
14698
14699 2008-10-16  Simon Josefsson  <simon@josefsson.org>
14700
14701         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
14702         * lib/netdb.in.h: Fix typo.
14703         Reported by Bruno Haible  <bruno@clisp.org>
14704
14705         * lib/netdb.in.h: Include sys/socket.h for platforms without
14706         netdb.h, to get structures like hostent on MinGW.
14707         * modules/netdb (Depends-on): Add sys_socket.
14708
14709 2008-10-15  Simon Josefsson  <simon@josefsson.org>
14710
14711         * modules/netdb, modules/netdb-tests: New file.
14712         * m4/netdb_h.m4: New file.
14713         * lib/netdb.in.h: Add, currently just an empty file pending
14714         definitions.
14715         * tests/test-netdb.c: New file.
14716         * doc/posix-headers/netdb.texi: Mention that we replace it if
14717         needed.
14718         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14719         netdb.
14720
14721 2008-10-15  Simon Josefsson  <simon@josefsson.org>
14722
14723         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
14724         with code.
14725
14726 2008-10-13  Bruno Haible  <bruno@clisp.org>
14727
14728         * lib/glthread/cond.c (glthread_cond_wait_func,
14729         glthread_cond_timedwait_func): Add a comment.
14730
14731 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
14732
14733         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
14734         * tests/test-select.c: Likewise,
14735
14736 2008-10-13  Bruno Haible  <bruno@clisp.org>
14737
14738         * lib/glthread/cond.c (glthread_cond_wait_func,
14739         glthread_cond_timedwait_func): Fix variable name.
14740         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
14741
14742 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
14743
14744         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
14745         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
14746         struct sockaddr.sa_len.
14747         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
14748
14749 2008-10-13  Simon Josefsson  <simon@josefsson.org>
14750
14751         * build-aux/pmccabe2html: Add css and css_url parameters.
14752
14753 2008-10-12  Bruno Haible  <bruno@clisp.org>
14754
14755         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
14756         calling aclx_get.
14757         Reported by Rainer Tammer <tammer@tammer.net>.
14758
14759 2008-10-12  Bruno Haible  <bruno@clisp.org>
14760
14761         Use msvcrt aware primitives for creation/termination of Win32 threads.
14762         * lib/glthread/thread.c: Include <process.h>.
14763         (glthread_create_func): Use _beginthreadex instead of CreateThread.
14764         (wrapper_func): Update signature.
14765         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
14766
14767 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
14768             Bruno Haible  <bruno@clisp.org>
14769
14770         Provide a Win32 implementation of the 'cond' module.
14771         * lib/glthread/cond.h [USE_WIN32]: New implementation.
14772         * lib/glthread/cond.c (glthread_cond_init_func,
14773         glthread_cond_wait_func, glthread_cond_timedwait_func,
14774         glthread_cond_signal_func, glthread_cond_broadcast_func,
14775         glthread_cond_destroy_func) [USE_WIN32]: New functions.
14776         * modules/cond (Dependencies): Add gettimeofday.
14777
14778 2008-10-11  Bruno Haible  <bruno@clisp.org>
14779
14780         Make sleep work on older versions of mingw.
14781         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
14782         only whether it exists.
14783         * doc/posix-functions/sleep.texi: Mention the problem with older
14784         versions of mingw.
14785
14786 2008-10-11  Bruno Haible  <bruno@clisp.org>
14787
14788         New module 'shutdown'.
14789         * modules/shutdown: New file.
14790         * lib/sys_socket.in.h (shutdown): New declaration.
14791         * lib/winsock.c (shutdown): New function.
14792         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14793         GNULIB_SHUTDOWN.
14794         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
14795         * doc/posix-functions/shutdown.texi: Document the new module.
14796
14797 2008-10-11  Jim Meyering  <meyering@redhat.com>
14798
14799         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
14800
14801 2008-10-11  Bruno Haible  <bruno@clisp.org>
14802
14803         New module 'fclose'.
14804         * modules/fclose: New file.
14805         * lib/stdio.in.h (fclose): New declaration.
14806         * lib/fclose.c: New file.
14807         * m4/fclose.m4: New file.
14808         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
14809         REPLACE_FCLOSE.
14810         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
14811         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
14812         REPLACE_FCLOSE.
14813         * modules/close (Depends-on): fclose.
14814         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
14815
14816 2008-10-11  Bruno Haible  <bruno@clisp.org>
14817
14818         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
14819         set errno and don't call _close.
14820
14821 2008-10-10  Bruno Haible  <bruno@clisp.org>
14822
14823         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
14824         ACL, not afterwards. Fixes test failure on Cygwin.
14825
14826 2008-10-09  Ben Pfaff  <blp@gnu.org>
14827
14828         * build-aux/announce-gen: Fix gnulib version related part of usage
14829         message.  Die with a useful error message if no tarballs are
14830         found.
14831
14832 2008-10-10  Jim Meyering  <meyering@redhat.com>
14833
14834         bootstrap: use git's --depth=N option only if it's supported
14835         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
14836         recognize the --depth option.  Reported by Pádraig Brady.
14837
14838 2008-10-09  Bruno Haible  <bruno@clisp.org>
14839
14840         New module 'ioctl'.
14841         * modules/ioctl: New file.
14842         * lib/sys_socket.in.h (ioctl): Remove declaration.
14843         * lib/winsock.c: Include <sys/ioctl.h>.
14844         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
14845         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
14846         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
14847         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
14848         * doc/posix-functions/ioctl.texi: Mention the new module.
14849
14850 2008-10-09  Bruno Haible  <bruno@clisp.org>
14851
14852         New module 'sys_ioctl'.
14853         * lib/sys_ioctl.in.h: New file.
14854         * m4/sys_ioctl_h.m4: New file.
14855         * modules/sys_ioctl: New file.
14856         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
14857
14858 2008-10-09  Bruno Haible  <bruno@clisp.org>
14859
14860         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
14861         * lib/winsock.c: Include <stdarg.h>.
14862         (rpl_ioctl): Change to second argument 'int' and then varargs.
14863
14864 2008-10-09  Bruno Haible  <bruno@clisp.org>
14865
14866         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
14867         when the sys_socket module is present and the system has <winsock2.h>.
14868
14869 2008-10-09  Bruno Haible  <bruno@clisp.org>
14870
14871         * doc/posix-functions/close.texi: Mention module 'close' instead of
14872         module 'sys_socket'.
14873
14874 2008-10-09  Bruno Haible  <bruno@clisp.org>
14875
14876         * doc/glibc-headers/sys_ioctl.texi: New file.
14877         * doc/gnulib.texi: Include it.
14878
14879 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
14880             Bruno Haible  <bruno@clisp.org>
14881
14882         Combine the two replacements of 'close'.
14883         * lib/sys_socket.in.h (close): Define to a reminder to include
14884         <unistd.h>.
14885         (_gl_close_fd_maybe_socket): New declaration.
14886         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
14887         * lib/winsock.c (close): Remove undefinition.
14888         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
14889         needed for the gnulib module 'close'.
14890         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
14891         define to an error symbol or to a warning, if suitable.
14892         * lib/close.c: Include <sys/socket.h>.
14893         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
14894         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
14895         UNISTD_H_HAVE_WINSOCK2_H.
14896         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
14897         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14898         UNISTD_H_HAVE_WINSOCK2_H.
14899         * modules/sys_socket (Files): Add m4/unistd_h.m4.
14900         (configure.ac): Set a module indicator.
14901         (Makefile.am): Substitute GNULIB_CLOSE.
14902         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
14903         * modules/poll-tests (Depends-on): Add close.
14904         * modules/select-tests (Depends-on): Likewise.
14905
14906 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
14907             Bruno Haible  <bruno@clisp.org>
14908
14909         New module 'close'.
14910         * modules/close: New file.
14911         * lib/unistd.in.h (close): Move declaration out of the
14912         FCHDIR_REPLACEMENT scope.
14913         (_gl_unregister_fd): New declaration.
14914         * lib/close.c: New file.
14915         * lib/fchdir.c (rpl_close): Remove function.
14916         * m4/close.m4: New file.
14917         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
14918         close.
14919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
14920         REPLACE_CLOSE.
14921         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
14922         REPLACE_CLOSE.
14923         * modules/fchdir (Depends-on): Add close.
14924
14925 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
14926             Bruno Haible  <bruno@clisp.org>
14927
14928         * lib/fcntl.in.h (open): Simplify conditionals.
14929         (_gl_register_fd): New declaration.
14930         * lib/fchdir.c (rpl_open): Remove function.
14931         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
14932         also.
14933         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
14934         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
14935         open.
14936
14937 2008-10-09  Jim Meyering  <meyering@redhat.com>
14938
14939         GNUmakefile: use the more name-space-friendly "_version"
14940         * top/GNUmakefile (_dummy): Update.
14941         (_version): Rename from "version".
14942
14943 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
14944             Bruno Haible  <bruno@clisp.org>
14945
14946         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
14947         rpl_close.
14948         (_gl_register_fd): New function, extracted from rpl_open.
14949         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
14950         (rpl_open, rpl_opendir): Use _gl_register_fd.
14951
14952 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
14953
14954         Fix organization of 'open' replacement.
14955         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
14956         (gl_FUNC_OPEN): Use it.
14957         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
14958
14959 2008-10-08  Bruno Haible  <bruno@clisp.org>
14960
14961         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
14962
14963 2008-10-08  Simon Josefsson  <simon@josefsson.org>
14964
14965         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
14966         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
14967         listen).
14968
14969 2008-10-08  Eric Blake  <ebb9@byu.net>
14970
14971         GNUmakefile: add 'make version' target
14972         * top/GNUmakefile (_curr-ver): Split version update rules...
14973         (version): ...into a target.
14974
14975 2008-10-07  Bruno Haible  <bruno@clisp.org>
14976
14977         Use a more portable replacement expression for -0.0L.
14978         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
14979         instead of -0.0L. Fix m4 quotation.
14980
14981         * tests/test-signbit.c: Include <float.h>.
14982         (minus_zero): New variable.
14983         (test_signbitl): Use minus_zero instead of -zero.
14984         * modules/signbit-tests (Depends-on): Add float.
14985
14986         * tests/test-ceill.c: Include <float.h>.
14987         (zero): Remove variable.
14988         (minus_zero): New variable.
14989         (main): Use minus_zero instead of -zero.
14990         * modules/ceill-tests (Depends-on): Add float.
14991
14992         * tests/test-floorl.c: Include <float.h>.
14993         (zero): Remove variable.
14994         (minus_zero): New variable.
14995         (main): Use minus_zero instead of -zero.
14996         * modules/floorl-tests (Depends-on): Add float.
14997
14998         * tests/test-roundl.c: Include <float.h>.
14999         (zero): Remove variable.
15000         (minus_zero): New variable.
15001         (main): Use minus_zero instead of -zero.
15002         * modules/roundl-tests (Depends-on): Add float.
15003
15004         * tests/test-truncl.c: Include <float.h>.
15005         (zero): Remove variable.
15006         (minus_zero): New variable.
15007         (main): Use minus_zero instead of -zero.
15008         * modules/truncl-tests (Depends-on): Add float.
15009
15010         * tests/test-frexpl.c (zero): Remove variable.
15011         (minus_zero): New variable.
15012         (main): Use minus_zero instead of -zero.
15013         * modules/frexpl-tests (Depends-on): Add float.
15014
15015         * tests/test-isnan.c (zerol): Remove variable.
15016         (minus_zerol): New variable.
15017         (test_long_double): Use minus_zerol instead of -zerol.
15018         * modules/isnan-tests (Depends-on): Add float.
15019
15020         * tests/test-isnanl.h (zero): Remove variable.
15021         (minus_zero): New variable.
15022         (main): Use minus_zero instead of -zero.
15023         * modules/isnanl-nolibm-tests (Depends-on): Add float.
15024         * modules/isnanl-tests (Depends-on): Add float.
15025
15026         * tests/test-ldexpl.c (zero): Remove variable.
15027         (minus_zero): New variable.
15028         (main): Use minus_zero instead of -zero.
15029         * modules/ldexpl-tests (Depends-on): Add float.
15030
15031         * tests/test-snprintf-posix.h (zerol): Remove variable.
15032         (minus_zerol): New variable.
15033         (test_function): Use minus_zerol instead of -zerol.
15034         * modules/snprintf-posix-tests (Depends-on): Add float.
15035         * modules/vsnprintf-posix-tests (Depends-on): Add float.
15036
15037         * tests/test-sprintf-posix.h (zerol): Remove variable.
15038         (minus_zerol): New variable.
15039         (test_function): Use minus_zerol instead of -zerol.
15040         * modules/sprintf-posix-tests (Depends-on): Add float.
15041         * modules/vsprintf-posix-tests (Depends-on): Add float.
15042
15043         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
15044         (minus_zerol): New variable.
15045         (test_function): Use minus_zerol instead of -zerol.
15046         * modules/vasnprintf-posix-tests (Depends-on): Add float.
15047
15048         * tests/test-vasprintf-posix.c (zerol): Remove variable.
15049         (minus_zerol): New variable.
15050         (test_function): Use minus_zerol instead of -zerol.
15051         * modules/vasprintf-posix-tests (Depends-on): Add float.
15052
15053 2008-10-07  Simon Josefsson  <simon@josefsson.org>
15054
15055         * MODULES.html.sh (Support for building documentation): Mention
15056         pmccabe2html.  Sort entries.
15057
15058         Add pmccabe2html module, from gnupdf.
15059         * build-aux/pmccabe.css: New file.
15060         * build-aux/pmccabe2html: New file.
15061         * m4/pmccabe2html.m4: New file.
15062         * modules/pmccabe2html: New file.
15063
15064 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
15065
15066         flock: new module
15067         * MODULES.html.sh: Add to list of modules.
15068         * lib/flock.c: flock implementation for Windows and Unix systems
15069         which have fcntl.
15070         * doc/glibc-functions/flock.texi: Update documentation.
15071         * lib/sys_file.in.h: <sys/file.h> header file.
15072         * m4/flock.m4: M4 macros.
15073         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
15074         * modules/flock: flock module.
15075         * modules/flock-tests: flock tests module.
15076         * modules/sys_file: sys/file.h module.
15077         * tests/test-flock.c: test suite for flock.
15078
15079 2008-10-06  Jim Meyering  <meyering@redhat.com>
15080
15081         bootstrap: check for LT_INIT more portably still ;-)
15082         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
15083         Spotted by Bruno Haible.
15084
15085 2008-10-06  Eric Blake  <ebb9@byu.net>
15086
15087         test-signbit: avoid tripping Irix cc bug on -0.0L
15088         * tests/test-signbit.c (minus_zerol): Delete, and replace with
15089         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
15090         entire testsuite consistent and avoids an Irix 6.2 bug.
15091
15092 2008-10-05  Bruno Haible  <bruno@clisp.org>
15093             Jim Meyering  <jim@meyering.net>
15094
15095         Add an option for ignoring EPIPE during close_stdout.
15096         * lib/closeout.h: Include <stdbool.h>.
15097         (close_stdout_set_ignore_EPIPE): New declaration.
15098         * lib/closeout.c: Include <stdbool.h>.
15099         (ignore_EPIPE): New variable.
15100         (close_stdout_set_ignore_EPIPE): New function.
15101         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
15102         * lib/close-stream.c (close_stream): Mention the possible EPIPE
15103         failure.
15104         * modules/closeout (Depends-on): Add stdbool.
15105
15106 2008-10-05  Bruno Haible  <bruno@clisp.org>
15107
15108         * modules/accept: New file.
15109         * modules/bind: New file.
15110         * modules/connect: New file.
15111         * modules/getpeername: New file.
15112         * modules/getsockname: New file.
15113         * modules/getsockopt: New file.
15114         * modules/listen: New file.
15115         * modules/recv: New file.
15116         * modules/recvfrom: New file.
15117         * modules/send: New file.
15118         * modules/sendto: New file.
15119         * modules/setsockopt: New file.
15120         * modules/socket: New file.
15121         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
15122         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
15123         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
15124         the particular module is requested. Add a link warning when the
15125         particular module is not requested.
15126         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
15127         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
15128         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
15129         the particular module is requested.
15130         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
15131         gl_SYS_SOCKET_H_DEFAULTS): New macros.
15132         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
15133         * modules/sys_socket (Depends-on): Add link-warning.
15134         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
15135         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
15136         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
15137         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
15138         GL_LINK_WARNING.
15139         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
15140         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
15141         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
15142         * doc/posix-functions/getpeername.texi: Mention the new module
15143         'getpeername'.
15144         * doc/posix-functions/getsockname.texi: Mention the new module
15145         'getsockname'.
15146         * doc/posix-functions/getsockopt.texi: Mention the new module
15147         'getsockopt'.
15148         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
15149         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
15150         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
15151         * doc/posix-functions/send.texi: Mention the new module 'send'.
15152         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
15153         * doc/posix-functions/setsockopt.texi: Mention the new module
15154         'setsockopt'.
15155         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
15156         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
15157         listen, connect, accept.
15158         * modules/select-tests (Depends-on): Likewise.
15159
15160 2008-10-05  Bruno Haible  <bruno@clisp.org>
15161
15162         * lib/winsock.c (strerror): Remove unused #undef.
15163         (rpl_close): Remove unused local variable.
15164
15165         * modules/sys_socket (Depends-on); Add errno.
15166
15167 2008-10-05  Bruno Haible  <bruno@clisp.org>
15168
15169         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
15170         (select): Add a link warning when the 'select' module is not used.
15171         * modules/sys_select (Depends-on): Add link-warning.
15172         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
15173         Suggested by Paolo Bonzini.
15174
15175 2008-10-05  Jim Meyering  <meyering@redhat.com>
15176
15177         bootstrap: check for LT_INIT more portably
15178         * build-aux/bootstrap: Avoid using grep -E, since it's not
15179         portable enough.  Suggestion from Bruno Haible.
15180
15181 2008-10-05  Bruno Haible  <bruno@clisp.org>
15182
15183         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
15184         as being fixed by gnulib.
15185
15186 2008-10-05  Bruno Haible  <bruno@clisp.org>
15187
15188         * modules/select-tests: New file, mostly copied from
15189         modules/sys_select-tests.
15190         * tests/test-select.c: New file, mostly copied from
15191         tests/test-sys_select.c.
15192         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
15193         * modules/sys_select-tests (Depends-on): Remove all dependencies.
15194         (Makefile.am): Remove test_sys_select_LDADD.
15195
15196         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
15197         to an undefined symbol, for an error message.
15198         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
15199         (gl_SYS_SELECT_H_DEFAULTS): New macro.
15200         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
15201         winsock-select.c here.
15202         * modules/sys_select (Files): Remove lib/winsock-select.c.
15203         (Depends-on): Remove alloca.
15204         (Makefile.am): Substitute GNULIB_SELECT.
15205         * modules/select: New file.
15206         * doc/posix-functions/select.texi: Update.
15207
15208 2008-10-05  Bruno Haible  <bruno@clisp.org>
15209
15210         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
15211         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
15212         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
15213         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
15214         getdtablesize.
15215         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
15216         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
15217
15218 2008-10-05  Bruno Haible  <bruno@clisp.org>
15219
15220         * modules/getdtablesize-tests: New file.
15221         * tests/test-getdtablesize.c: New file.
15222
15223         New module 'getdtablesize'.
15224         * lib/unistd.in.h (getdtablesize): New declaration.
15225         * lib/getdtablesize.c: New file.
15226         * m4/getdtablesize.m4: New file.
15227         * modules/getdtablesize: New file.
15228         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15229         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
15230         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
15231         HAVE_GETDTABLESIZE.
15232         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
15233
15234 2008-10-05  Bruno Haible  <bruno@clisp.org>
15235
15236         * modules/sched (Makefile.am): Fix typo.
15237         Reported by Simon Josefsson.
15238
15239 2008-10-05  Jim Meyering  <meyering@redhat.com>
15240
15241         bootstrap: check for LT_INIT, too
15242         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
15243         are deprecated.  Suggestion from Ralf Wildenhues.
15244
15245 2008-10-05  Bruno Haible  <bruno@clisp.org>
15246
15247         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
15248         overriding them by ours.
15249         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
15250
15251 2008-10-05  Jim Meyering  <meyering@redhat.com>
15252
15253         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
15254         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
15255         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
15256
15257 2008-10-04  Bruno Haible  <bruno@clisp.org>
15258
15259         * modules/dup2 (License): Change to LGPLv2+.
15260         * modules/sleep (License): Likewise.
15261         * modules/perror (License): Likewise.
15262         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
15263         Blake.
15264         * modules/signal (License): Likewise.
15265         * modules/sigprocmask (License): Likewise.
15266         * modules/raise (License): Change to LGPLv2+, with approval by Jim
15267         Meyering.
15268
15269 2008-10-04  Bruno Haible  <bruno@clisp.org>
15270
15271         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
15272         Reported by Rainer Tammer <tammer@tammer.net>.
15273
15274 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
15275             Bruno Haible  <bruno@clisp.org>
15276
15277         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
15278         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
15279         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
15280
15281 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
15282
15283         filevercmp: new module
15284         * lib/filevercmp.h: New function filevercmp comparing version strings.
15285         * lib/filevercmp.c: Implementation of filevercmp function.
15286         * modules/filevercmp: Module metadata.
15287         * tests/test-filevercmp.c: Unit test for new module.
15288         * modules/filevercmp-tests: Unit test metadata.
15289         * MODULES.html.sh: Add filevercmp module.
15290
15291 2008-10-03  Bruno Haible  <bruno@clisp.org>
15292
15293         * lib/c-ctype.h: Add comment.
15294         Reported by Jim Meyering.
15295
15296 2008-10-02  Bruno Haible  <bruno@clisp.org>
15297
15298         * modules/posix_spawn-internal (Depends-on): Add 'open'.
15299
15300 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
15301
15302         * build-aux/bootstrap: Allow renaming bootstrap, and change the
15303         name of bootstrap.conf accordingly.
15304
15305 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
15306
15307         * build-aux/bootstrap: Install git-merge-changelog configuration
15308         items into .gitconfig if needed.
15309
15310 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
15311
15312         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
15313         git repository, and initialize/update it accordingly.
15314
15315 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
15316
15317         * modules/fsync-tests: New file.
15318         * tests/test-fsync.c: New file.
15319
15320         New module 'fsync'.
15321         * lib/fsync.c: New file.
15322         * m4/fsync.m4: New file.
15323         * modules/fsync: New file.
15324         * lib/unistd.in.h (fsync): New declaration.
15325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
15326         GNULIB_FSYNC and HAVE_FSYNC.
15327         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
15328         * MODULES.html.sh (posix_functions): Add fsync.
15329         * doc/posix-functions/fsync.texi: Mention the new module.
15330
15331 2008-10-02  Jim Meyering  <meyering@redhat.com>
15332
15333         fts.c: sync with similar code from coreutils' remove.c
15334         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
15335         Guard also with "#if defined __linux__", since for now at least,
15336         this code is Linux-kernel-specific.
15337
15338 2008-10-02  Jim Meyering  <meyering@redhat.com>
15339
15340         fts: bug fixes
15341         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
15342         Include <sys/vfs.h>, not <sys/statfs.h>.
15343
15344         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
15345         Include <sys/vfs.h>, not <sys/statfs.h>.
15346
15347 2008-10-01  Bruno Haible  <bruno@clisp.org>
15348
15349         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
15350         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
15351         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
15352         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
15353         * doc/posix-functions/posix_spawnp.texi: Likewise.
15354         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
15355         whether posix_spawn actually works.
15356         * m4/pipe.m4 (gl_PIPE): Likewise.
15357         * modules/execute (Files): Add m4/posix_spawn.m4.
15358         * modules/pipe (Files): Add m4/posix_spawn.m4.
15359         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
15360
15361 2008-10-01  Jim Meyering  <meyering@redhat.com>
15362
15363         remove trailing spaces
15364         * NEWS: Likewise.
15365         * lib/poll.c (poll): Likewise.
15366         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
15367         * lib/winsock.c (rpl_close): Likewise.
15368         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
15369         * modules/yield: Likewise.
15370         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
15371         * tests/test-sys_select.c (connect_to_socket): Likewise.
15372
15373         fts.c: adjust a new interface to be more generally useful
15374         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
15375         (fts_build): Adjust caller.
15376
15377 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15378
15379         * modules/cond-tests: New file.
15380         * tests/test-cond.c: New file.
15381
15382 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15383             Bruno Haible  <bruno@clisp.org>
15384
15385         * modules/cond (Dependencies): Add errno, time.
15386         * lib/glthread/cond.h: Include <time.h>.
15387         (gl_cond_define, gl_cond_define_initialized): Use the same definition
15388         across platforms.
15389
15390 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15391             Bruno Haible  <bruno@clisp.org>
15392
15393         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
15394
15395 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15396             Bruno Haible  <bruno@clisp.org>
15397
15398         * modules/tls-tests (Depends-on): Add thread, yield.
15399         (configure.ac): Remove all checks.
15400         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
15401         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
15402         gl_thread_self): Remove definitions. Include glthread/thread.h and
15403         glthread/yield.h instead.
15404         (test_tls): Pass an additional NULL argument to gl_thread_join.
15405
15406 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15407             Bruno Haible  <bruno@clisp.org>
15408
15409         * modules/lock-tests (Depends-on): Add thread, yield.
15410         (configure.ac): Remove all checks.
15411         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
15412         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
15413         gl_thread_self): Remove definitions. Include glthread/thread.h and
15414         glthread/yield.h instead.
15415         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
15416         additional NULL argument to gl_thread_join.
15417
15418 2008-09-30  Bruno Haible  <bruno@clisp.org>
15419
15420         Fix the Win32 implementation of the 'thread' module.
15421         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
15422         pointer type.
15423         (gl_thread_self): Invoke gl_thread_self_func.
15424         (gl_thread_self_func): New declaration.
15425         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
15426         (do_init_self_key, init_self_key): New functions.
15427         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
15428         Remove some fields.
15429         (running_threads, running_lock): Remove variables.
15430         (get_current_thread_handle): New function.
15431         (gl_thread_self_func, wrapper_func, glthread_create_func,
15432         glthread_join_func, gl_thread_exit_func): Largely rewritten and
15433         simplified.
15434
15435 2008-09-30  Bruno Haible  <bruno@clisp.org>
15436
15437         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
15438         files.
15439
15440 2008-09-30  Jim Meyering  <meyering@redhat.com>
15441
15442         fts.m4: correct the test for statfs.f_type
15443         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
15444         when checking for statfs.f_type.
15445
15446 2008-09-15  Simon Josefsson  <simon@josefsson.org>
15447
15448         tests: avoid some compiler warnings
15449         * tests/test-memchr.c (main): Pass NULL indirectly.
15450         * tests/test-getdate.c (main): Remove unused variable 'ret'.
15451
15452 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
15453
15454         getdate.y: disallow countable dayshifts like "4 yesterday ago"
15455         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
15456         exactly specified dayshifts.
15457         (dayshift): New rule.
15458         (rel): Add dayshift.
15459         (relative_time_table) [tomorrow, yesterday, today, now]:
15460         Use tDAY_SHIFT in place of tDAY_UNIT.
15461         * tests/test-getdate.c: Add tests for now-disallowed countable
15462         dayshifts, e.g., "4 yesterday ago".
15463
15464 2008-09-29  Bruno Haible  <bruno@clisp.org>
15465
15466         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
15467         * tests/test-posix_spawn1.in.sh: Renamed from
15468         tests/test-posix_spawn.in.sh.
15469         * tests/test-posix_spawn2.c: New file.
15470         * tests/test-posix_spawn2.in.sh: New file.
15471         * modules/posix_spawnp-tests (Files): Update.
15472         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
15473
15474 2008-09-29  Bruno Haible  <bruno@clisp.org>
15475
15476         Propagate effects of putenv/setenv/unsetenv to child processes.
15477         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
15478         * lib/pipe.c (create_pipe): Likewise.
15479
15480 2008-09-29  Bruno Haible  <bruno@clisp.org>
15481
15482         Enable use of shell scripts as executables in mingw.
15483         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
15484         run the program as a shell script.
15485         * lib/pipe.c (create_pipe): Likewise.
15486         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
15487         resulting array.
15488
15489 2008-09-29  Eric Blake  <ebb9@byu.net>
15490
15491         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
15492
15493 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
15494
15495         * doc/posix-functions/accept.texi: Update mingw problems.
15496         * doc/posix-functions/bind.texi: Update mingw problems.
15497         * doc/posix-functions/close.texi: Update mingw problems.
15498         * doc/posix-functions/connect.texi: Update mingw problems.
15499         * doc/posix-functions/getpeername.texi: Update mingw problems.
15500         * doc/posix-functions/getsockname.texi: Update mingw problems.
15501         * doc/posix-functions/getsockopt.texi: Update mingw problems.
15502         * doc/posix-functions/ioctl.texi: Update mingw problems.
15503         * doc/posix-functions/listen.texi: Update mingw problems.
15504         * doc/posix-functions/recv.texi: Update mingw problems.
15505         * doc/posix-functions/recvfrom.texi: Update mingw problems.
15506         * doc/posix-functions/select.texi: Update mingw problems.
15507         * doc/posix-functions/send.texi: Update mingw problems.
15508         * doc/posix-functions/sendto.texi: Update mingw problems.
15509         * doc/posix-functions/setsockopt.texi: Update mingw problems.
15510         * doc/posix-functions/socket.texi: Update mingw problems.
15511
15512 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
15513             Bruno Haible  <bruno@clisp.org>
15514
15515         * lib/sys_select.in.h: Include sys/time.h.
15516         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
15517         * modules/sys_select: Depend on sys_time.
15518         * tests/test-sys_select.c: Test that sys/select.h defines struct
15519         timeval fully.
15520
15521 2008-09-29  Bruno Haible  <bruno@clisp.org>
15522
15523         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
15524         * lib/sys_select.in.h: Likewise.
15525
15526 2008-09-29  Bruno Haible  <bruno@clisp.org>
15527
15528         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
15529
15530 2008-09-29  Bruno Haible  <bruno@clisp.org>
15531
15532         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
15533         Set LIBSOCKET instead of augmenting LIBS.
15534         * modules/sockets (Link): New section.
15535         * modules/sockets-tests (test_sockets_LDADD): New variable.
15536         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
15537         * modules/poll-tests (test_poll_LDADD): New variable.
15538         * NEWS: Document the change.
15539
15540 2008-09-29  Bruno Haible  <bruno@clisp.org>
15541
15542         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
15543         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
15544         ARPA_INET_H directly.
15545         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
15546
15547 2008-09-28  Bruno Haible  <bruno@clisp.org>
15548
15549         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
15550         from gl_HEADER_SYS_SOCKET.
15551         (gl_HEADER_SYS_SOCKET): Invoke it.
15552         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15553
15554 2008-09-28  Bruno Haible  <bruno@clisp.org>
15555
15556         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
15557         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
15558         Needed on OSF/1 4.0.
15559
15560 2008-09-28  Bruno Haible  <bruno@clisp.org>
15561
15562         Override open more carefully.
15563         * lib/open.c (orig_open): New function.
15564         (rpl_open): Use orig_open instead of open.
15565         * lib/fcntl.in.h: Add special invocation convention.
15566         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
15567         (gl_FUNC_OPEN): Invoke it.
15568
15569         Override freopen more carefully.
15570         * lib/freopen.c (orig_freopen): New function.
15571         (rpl_freopen): Use orig_freopen instead of freopen.
15572         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
15573         (gl_FUNC_FREOPEN): Invoke it.
15574
15575         Override fopen more carefully.
15576         * lib/fopen.c (orig_fopen): New function.
15577         (rpl_fopen): Use orig_fopen instead of fopen.
15578         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
15579         (gl_FUNC_FOPEN): Invoke it.
15580         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
15581
15582 2008-09-28  Bruno Haible  <bruno@clisp.org>
15583
15584         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
15585         SIGPIPE.
15586
15587 2008-09-28  Bruno Haible  <bruno@clisp.org>
15588
15589         * tests/test-sigaction.c (handler, main): Disable the check whether
15590         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
15591         glibc systems with LinuxThreads.
15592
15593 2008-09-28  Bruno Haible  <bruno@clisp.org>
15594
15595         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
15596
15597         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
15598         with AIX xlc.
15599         * lib/fcntl.in.h (open): Likewise.
15600         Reported by Rainer Tammer <tammer@tammer.net>.
15601
15602 2008-09-28  Bruno Haible  <bruno@clisp.org>
15603
15604         * modules/posix_spawnp-tests: New file.
15605         * tests/test-posix_spawn.c: New file.
15606         * tests/test-posix_spawn.in.sh: New file.
15607
15608         New module 'posix_spawnp'.
15609         * modules/posix_spawnp: New file.
15610         * lib/spawnp.c: New file, from GNU libc with modifications.
15611         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
15612
15613         New module 'posix_spawn'.
15614         * modules/posix_spawn: New file.
15615         * lib/spawn.c: New file, from GNU libc with modifications.
15616         * doc/posix-functions/posix_spawn.texi: Mention the new module.
15617
15618         New module 'posix_spawnattr_destroy'.
15619         * modules/posix_spawnattr_destroy: New file.
15620         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
15621         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
15622         module.
15623
15624         New module 'posix_spawnattr_setsigmask'.
15625         * modules/posix_spawnattr_setsigmask: New file.
15626         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
15627         modifications.
15628         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
15629         new module.
15630
15631         New module 'posix_spawnattr_getsigmask'.
15632         * modules/posix_spawnattr_getsigmask: New file.
15633         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
15634         modifications.
15635         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
15636         new module.
15637
15638         New module 'posix_spawnattr_setsigdefault'.
15639         * modules/posix_spawnattr_setsigdefault: New file.
15640         * lib/spawnattr_setdefault.c: New file, from GNU libc with
15641         modifications.
15642         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
15643         new module.
15644
15645         New module 'posix_spawnattr_getsigdefault'.
15646         * modules/posix_spawnattr_getsigdefault: New file.
15647         * lib/spawnattr_getdefault.c: New file, from GNU libc with
15648         modifications.
15649         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
15650         new module.
15651
15652         New module 'posix_spawnattr_setschedpolicy'.
15653         * modules/posix_spawnattr_setschedpolicy: New file.
15654         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
15655         modifications.
15656         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
15657         new module.
15658
15659         New module 'posix_spawnattr_getschedpolicy'.
15660         * modules/posix_spawnattr_getschedpolicy: New file.
15661         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
15662         modifications.
15663         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
15664         new module.
15665
15666         New module 'posix_spawnattr_setschedparam'.
15667         * modules/posix_spawnattr_setschedparam: New file.
15668         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
15669         modifications.
15670         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
15671         new module.
15672
15673         New module 'posix_spawnattr_getschedparam'.
15674         * modules/posix_spawnattr_getschedparam: New file.
15675         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
15676         modifications.
15677         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
15678         new module.
15679
15680         New module 'posix_spawnattr_setpgroup'.
15681         * modules/posix_spawnattr_setpgroup: New file.
15682         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
15683         modifications.
15684         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
15685         module.
15686
15687         New module 'posix_spawnattr_getpgroup'.
15688         * modules/posix_spawnattr_getpgroup: New file.
15689         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
15690         modifications.
15691         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
15692         module.
15693
15694         New module 'posix_spawnattr_setflags'.
15695         * modules/posix_spawnattr_setflags: New file.
15696         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
15697         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
15698         module.
15699
15700         New module 'posix_spawnattr_getflags'.
15701         * modules/posix_spawnattr_getflags: New file.
15702         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
15703         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
15704         module.
15705
15706         New module 'posix_spawnattr_init'.
15707         * modules/posix_spawnattr_init: New file.
15708         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
15709         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
15710         module.
15711
15712         New module 'posix_spawn_file_actions_destroy'.
15713         * modules/posix_spawn_file_actions_destroy: New file.
15714         * lib/spawn_faction_destroy.c: New file, from GNU libc with
15715         modifications.
15716         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
15717         the new module.
15718
15719         New module 'posix_spawn_file_actions_addopen'.
15720         * modules/posix_spawn_file_actions_addopen: New file.
15721         * lib/spawn_faction_addopen.c: New file, from GNU libc with
15722         modifications.
15723         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
15724         the new module.
15725
15726         New module 'posix_spawn_file_actions_adddup2'.
15727         * modules/posix_spawn_file_actions_adddup2: New file.
15728         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
15729         modifications.
15730         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
15731         the new module.
15732
15733         New module 'posix_spawn_file_actions_addclose'.
15734         * modules/posix_spawn_file_actions_addclose: New file.
15735         * lib/spawn_faction_addclose.c: New file, from GNU libc with
15736         modifications.
15737         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
15738         the new module.
15739
15740         New module 'posix_spawn_file_actions_init'.
15741         * modules/posix_spawn_file_actions_init: New file.
15742         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
15743         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
15744         new module.
15745
15746         New module 'posix_spawn-internal'.
15747         * modules/posix_spawn-internal: New file.
15748         * lib/spawn_int.h: New file, from GNU libc with modifications.
15749         * lib/spawni.c: New file, from GNU libc with modifications.
15750         * m4/posix_spawn.m4: New file.
15751
15752         New module 'spawn'.
15753         * modules/spawn: New file.
15754         * lib/spawn.in.h: New file, from GNU libc with modifications.
15755         * m4/spawn_h.m4: New file.
15756         * doc/posix-headers/spawn.texi: Mention the new module.
15757
15758 2008-09-28  Bruno Haible  <bruno@clisp.org>
15759
15760         * modules/sched-tests: New file.
15761         * tests/test-sched.c: New file.
15762
15763         New module 'sched'.
15764         * modules/sched: New file.
15765         * lib/sched.in.h: New file.
15766         * m4/sched_h.m4: New file.
15767         * doc/posix-headers/sched.texi: Mention the new module.
15768
15769 2008-09-27  Eric Blake  <ebb9@byu.net>
15770
15771         Fix previous patch, and tweak references to $0.
15772         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
15773         (func_version, func_gnulib_dir): Don't call this program
15774         gnulib-tool.
15775         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
15776         with using $0 in function.
15777         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
15778         (func_fatal_error): Reuse the name the user invoked us with.
15779
15780 2008-09-27  Bruno Haible  <bruno@clisp.org>
15781
15782         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
15783         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
15784         (gl_ICONV_H): Not here.
15785         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
15786         instead of assigning ICONV_H directly.
15787
15788         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
15789         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
15790         WCHAR_H directly.
15791
15792 2008-09-27  Bruno Haible  <bruno@clisp.org>
15793
15794         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
15795         * modules/arpa_inet (Depends-on): Add link-warning.
15796         (Makefile.am): Insert the definition of GL_LINK-WARNING.
15797         * modules/unistd (Makefile.am): Likewise.
15798
15799 2008-09-26  Bruno Haible  <bruno@clisp.org>
15800
15801         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
15802         variables.
15803         (func_version): Essentially copied from gnulib-tool.
15804         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
15805         func_readlink): Copied from gnulib-tool.
15806
15807 2008-09-26  Bruno Haible  <bruno@clisp.org>
15808
15809         * gnulib-tool (func_version): Change directory to $gnulib_dir before
15810         invoking git-version-gen.
15811
15812 2008-09-26  Bruno Haible  <bruno@clisp.org>
15813
15814         * posix-modules: Update to directory names changed on 2008-01-19.
15815         Remove commas in output before splitting into words. No more need to
15816         avoid 'ftruncate' since 2007-02-19.
15817
15818 2008-09-26  Bruno Haible  <bruno@clisp.org>
15819
15820         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
15821
15822 2008-09-26  Bruno Haible  <bruno@clisp.org>
15823
15824         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
15825         * modules/fwriteerror (Depends-on): Add errno.
15826
15827 2008-09-26  Bruno Haible  <bruno@clisp.org>
15828
15829         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
15830         * tests/test-vc-list-files-cvs.sh: Likewise.
15831
15832 2008-09-26  Bruno Haible  <bruno@clisp.org>
15833
15834         * doc/posix-headers/sys_resource.texi: Reorder items.
15835
15836 2008-09-26  Jim Meyering  <meyering@redhat.com>
15837
15838         fts: tweak inode comparison function
15839         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
15840         inode numbers, as documented.
15841
15842         fts: sort dirent entries on inode number before traversing
15843         This avoids a quadratic, seek-related performance penalty when
15844         operating on a directory containing many entries (measurable at 10k;
15845         3.5 hours at 2 million entries with a cold cache) on certain types
15846         of file systems, including ext3 and ext4, but not tmpfs.
15847         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
15848         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
15849         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
15850         (fs_handles_readdir_ordered_dirents_efficiently): New function.
15851         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
15852         (fts_build): Set the stat.st_ino member from D_INO.
15853         If it is likely to be useful, sort dirent entries on inode number.
15854
15855         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
15856         and the struct statfs.f_type member.
15857         * modules/fts (Depends-on): Add d-ino.
15858
15859 2008-09-26  Bruno Haible  <bruno@clisp.org>
15860
15861         * modules/sigpipe-die (Depends-on): Add sigpipe.
15862
15863         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
15864         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
15865         and GNULIB_STDIO_H_SIGPIPE are set.
15866         * lib/stdio-write.c: New file.
15867         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
15868         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
15869         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
15870         REPLACE_STDIO_WRITE_FUNCS.
15871         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
15872         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
15873         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
15874         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
15875         * modules/stdio (Files): Add lib/stdio-write.c.
15876         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
15877         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
15878         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
15879         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
15880         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
15881         REPLACE_FPRINTF_POSIX.
15882         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
15883         REPLACE_PRINTF_POSIX.
15884         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
15885         REPLACE_VFPRINTF_POSIX.
15886         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
15887         REPLACE_VPRINTF_POSIX.
15888         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
15889         SIGPIPE issue.
15890         * doc/posix-functions/fputc.texi: Likewise.
15891         * doc/posix-functions/fputs.texi: Likewise.
15892         * doc/posix-functions/fwrite.texi: Likewise.
15893         * doc/posix-functions/printf.texi: Likewise.
15894         * doc/posix-functions/putc.texi: Likewise.
15895         * doc/posix-functions/putchar.texi: Likewise.
15896         * doc/posix-functions/puts.texi: Likewise.
15897         * doc/posix-functions/vfprintf.texi: Likewise.
15898         * doc/posix-functions/vprintf.texi: Likewise.
15899
15900         * modules/safe-write (Depends-on): Add write.
15901
15902         * modules/sigpipe-tests: New file.
15903         * tests/test-sigpipe.c: New file.
15904         * tests/test-sigpipe.sh: New file.
15905
15906         * modules/write: New file.
15907         * lib/unistd.in.h: Include <sys/types.h>.
15908         (write): New declaration.
15909         * lib/write.c: New file.
15910         * m4/write.m4: New file.
15911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15912         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
15913         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
15914         GNULIB_WRITE, REPLACE_WRITE.
15915         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
15916         and the SIGPIPE issue.
15917
15918         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
15919         (raise): New declaration.
15920         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
15921         (ext_signal): New function.
15922         (rpl_raise): New function.
15923         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15924         GNULIB_SIGNAL_H_SIGPIPE.
15925         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
15926         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
15927
15928         * modules/sigpipe: New file.
15929         * m4/sigpipe.m4: New file.
15930
15931 2008-09-25  Derek Price  <derek@ximbiot.com>
15932             Bruno Haible  <bruno@clisp.org>
15933
15934         * gnulib-tool (func_import): Report all license incompatibilities, not
15935         just the first one.
15936
15937 2008-09-25  Bruno Haible  <bruno@clisp.org>
15938
15939         * gnulib-tool (func_import): When computing the edits, consider not
15940         only the Makefile.ams that exist but also those that will be generated.
15941
15942 2008-09-25  Simon Josefsson  <simon@josefsson.org>
15943
15944         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
15945         fixes gnulib-tool --test warning about duplicate dependency.
15946
15947 2008-09-25  Bruno Haible  <bruno@clisp.org>
15948
15949         * gnulib-tool: Don't ask the user to perform edits in the generated
15950         Makefile.ams.
15951         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
15952         apply to the Makefile.am being generated.
15953         (func_emit_tests_Makefile_am): Execute edits that apply to the
15954         Makefile.am being generated.
15955         (func_import): Setup list of Makefile.am edits before emitting the
15956         Makefile.ams, not at the end.
15957         (func_create_testdir): Update.
15958         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
15959
15960 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15961
15962         * gnulib-tool (func_import): Store the --tests-base option in the
15963         comment in gnulib-cache.m4.
15964
15965 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
15966
15967         * NEWS: Document increased portability that sys_select now provides.
15968
15969         * lib/sys_select.in.h: Install select wrapper.
15970         * lib/sys_socket.in.h: Use more descriptive name when there is no
15971         select wrapper.
15972         * lib/winsock-select.c: New.
15973         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
15974         Require gl_HEADER_SYS_SOCKET.
15975         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
15976         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
15977         * tests/test-sys_select.c: Add functional tests.
15978
15979 2008-09-24  Eric Blake  <ebb9@byu.net>
15980
15981         open, fopen: close fd leak in last patch
15982         * lib/open.c (rpl_open): Close fd before returning error.
15983         * lib/fopen.c (rpl_fopen): Close fd before returning error.
15984         * doc/posix-functions/open.texi (open): Document that Irix also
15985         has the bug.
15986         * doc/posix-functions/fopen.texi (fopen): Likewise.
15987         Reported by Paolo Bonzini.
15988
15989 2008-09-24  Bruno Haible  <bruno@clisp.org>
15990
15991         Ensure that a filename ending in a slash cannot be used to access a
15992         non-directory.
15993         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
15994         to check whether it's really a directory.
15995         * lib/fopen.c: Include fcntl.h, unistd.h.
15996         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
15997         and fdopen().
15998         * modules/fopen (Depends-on): Add unistd.
15999         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
16000         * tests/test-fopen.c (main): Likewise.
16001         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
16002         * doc/posix-functions/fopen.texi: Likewise.
16003         Reported by Eric Blake.
16004
16005 2008-09-23  Eric Blake  <ebb9@byu.net>
16006
16007         c-stack: avoid compiler optimizations when provoking overflow
16008         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
16009         recursion harder to optimize, to ensure a stack overflow occurs.
16010         * tests/test-c-stack.c (recurse): Likewise.
16011         Borrowed from libsigsegv.
16012
16013         c-stack: work around Irix sigaltstack bug
16014         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
16015         whether sigaltstack uses wrong end of stack_t (copied in part from
16016         libsigsegv).
16017         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
16018         Irix bug, without requiring an over-allocation.
16019         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
16020         bug.
16021
16022         fopen: document mingw bug on directories
16023         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
16024         not allowing a stream visiting a directory, even though reading
16025         from such a stream is not portable.
16026
16027 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
16028
16029         * lib/poll.c: Rewrite.
16030         * modules/poll: Depend on alloca.
16031
16032 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
16033
16034         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
16035         instead define prototypes for a full set of wrappers.  Ensure
16036         that Cygwin does not use the compatibility code, which is only
16037         for MinGW.
16038         * lib/winsock.c: New.
16039         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
16040         * modules/sys_socket: Add lib/winsock.c.
16041
16042         * modules/poll-tests: Add errno and perror.
16043         * tests/test-poll.c: Use ioctl, not ioctlsocket.
16044
16045 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
16046
16047         * tests/test-poll.c: Downgrade minimum needed Winsock version.
16048
16049 2008-09-23  Bruno Haible  <bruno@clisp.org>
16050
16051         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
16052         * doc/glibc-functions/*: Likewise.
16053
16054 2008-09-23  Simon Josefsson  <simon@josefsson.org>
16055
16056         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
16057         success.
16058
16059 2008-09-22  Eric Blake  <ebb9@byu.net>
16060             Bruno Haible  <bruno@clisp.org>
16061
16062         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
16063         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
16064         supply %A but mishandle pseudo-NaN.
16065         Reported by Simon Josefsson.
16066
16067 2008-09-21  Bruno Haible  <bruno@clisp.org>
16068
16069         * tests/test-lock.c (main): Tweak skip message.
16070         * tests/test-tls.c (main): Likewise.
16071
16072 2008-09-21  Bruno Haible  <bruno@clisp.org>
16073
16074         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
16075         whether 'struct sigaction' has sa_sigaction here...
16076         (gl_PREREQ_SIG_HANDLER_H): ... not here.
16077         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
16078
16079 2008-09-21  Bruno Haible  <bruno@clisp.org>
16080
16081         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
16082         section.
16083         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
16084         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
16085         the new section.
16086         (Support for obsolete systems lacking POSIX:2001): New section.
16087         (String handling <string.h>): Move strdup to the new section.
16088         Suggested by Simon Josefsson and Paolo Bonzini.
16089
16090 2008-09-21  Bruno Haible  <bruno@clisp.org>
16091
16092         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
16093         exponents in %e and %g results on 'long double'. Needed for mingw's
16094         improved *printf functions.
16095         * tests/test-vasprintf-posix.c (test_function): Likewise.
16096         * tests/test-snprintf-posix.h (test_function): Likewise.
16097         * tests/test-sprintf-posix.h (test_function): Likewise.
16098         Reported by Eric Blake.
16099
16100 2008-09-21  Bruno Haible  <bruno@clisp.org>
16101
16102         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
16103         * tests/test-sprintf-posix.h (test_function): Likewise.
16104
16105 2008-09-21  Bruno Haible  <bruno@clisp.org>
16106
16107         * modules/getpass (Depends-on): Add strdup-posix.
16108
16109         New module 'strdup-posix'.
16110         * modules/strdup-posix: New file.
16111         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
16112         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
16113         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16114         REPLACE_STRDUP.
16115         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
16116         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
16117         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16118         strdup-posix.
16119
16120         * modules/strdup (Depends-on): Remove malloc-posix.
16121
16122 2008-09-20  Bruno Haible  <bruno@clisp.org>
16123
16124         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
16125         Wildenhues.
16126
16127 2008-09-20  Bruno Haible  <bruno@clisp.org>
16128
16129         Ensure that wint_t gets defined on IRIX 5.3.
16130         * lib/wchar.in.h (wint_t): Define if not defined by the system.
16131         * lib/wctype.in.h (wint_t): Likewise.
16132         (__wctype_wint_t): Remove type.
16133         (isw*): Use wint_t instead of __wctype_wint_t.
16134         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
16135         * modules/wchar (Files): Add m4/wint_t.m4.
16136         (Makefile.am): Substitute HAVE_WINT_T.
16137         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
16138         * tests/test-wctype.c: Check that wint_t is defined.
16139         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
16140         * doc/posix-headers/wctype.texi: Likewise.
16141         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16142
16143 2008-09-18  Bruno Haible  <bruno@clisp.org>
16144
16145         * gnulib-tool (func_exit): Update comment.
16146
16147 2008-09-18  Simon Josefsson  <simon@josefsson.org>
16148
16149         * modules/getaddrinfo (Depends-on): Remove strdup, this module
16150         assumes strdup exists and does not depend on strdup to return
16151         ENOMEM on out of memory conditions.
16152
16153 2008-09-18  Bruno Haible  <bruno@clisp.org>
16154
16155         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
16156         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
16157         digits for the exponent.
16158
16159 2008-09-18  Jim Meyering  <meyering@redhat.com>
16160             Bruno Haible  <bruno@clisp.org>
16161
16162         * lib/vasnprintf.c (decimal_point_char): Define also if
16163         NEED_PRINTF_INFINITE_LONG_DOUBLE.
16164
16165 2008-09-16  Bruno Haible  <bruno@clisp.org>
16166         and Eric Blake  <ebb9@byu.net>
16167
16168         vasnprintf: support Irix 5.3
16169         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
16170         that mishandle long double infinity.
16171         Reported by Tom G. Christensen.
16172
16173 2008-09-16  Bruno Haible  <bruno@clisp.org>
16174
16175         * doc/glibc-functions/scandir.texi: Mention the function is missing on
16176         Solaris 9.
16177         * doc/glibc-functions/alphasort.texi: Likewise.
16178         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
16179
16180 2008-09-16  Jim Meyering  <meyering@redhat.com>
16181
16182         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
16183         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
16184         a umask modification leak out of a subshell.  Otherwise, the
16185         opensolaris /bin/sh would be accepted and thus cause unwarranted
16186         failures in the coreutils test suite.
16187
16188 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
16189
16190         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
16191         to succeed.
16192
16193 2008-09-16  Jim Meyering  <meyering@redhat.com>
16194
16195         avoid spurious test failure when library is built without ACL support
16196         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
16197         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
16198         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
16199         * tests/test-copy-acl.sh: Likewise.
16200
16201 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16202
16203         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
16204         based on character occurrence counts.
16205
16206 2008-09-15  Eric Blake  <ebb9@byu.net>
16207
16208         tests: avoid some compiler warnings
16209         * tests/test-memchr.c (main): Pass NULL indirectly.
16210         * tests/test-closein.c (main): Avoid unused variable.
16211
16212 2008-09-15  Bruno Haible  <bruno@clisp.org>
16213
16214         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
16215         are missing on OpenBSD 4.0 individually.
16216         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
16217
16218 2008-09-15  Bruno Haible  <bruno@clisp.org>
16219
16220         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
16221         * doc/posix-functions/strerror.texi: Mention also Cygwin.
16222         * doc/posix-functions/perror.texi: Likewise.
16223         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
16224         is missing.
16225         Reported by Eric Blake.
16226
16227         * lib/errno.in.h: Use replacement values >= 2000.
16228         Reported by Eric Blake.
16229
16230 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16231
16232         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
16233         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
16234         limit.
16235         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
16236         compareseq was aborted.
16237
16238 2008-09-14  Bruno Haible  <bruno@clisp.org>
16239
16240         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
16241         yvec_edit_count.
16242         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
16243         (fstrcmp_bounded): Simplify result computation accordingly.
16244
16245 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16246
16247         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
16248         (fstrcmp): Define in terms of fstrcmp_bounded.
16249         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
16250         lower_bound argument.
16251         Return quickly if the result is certainly < lower_bound.
16252         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
16253
16254 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16255
16256         * lib/diffseq.h (EARLY_ABORT): New macro.
16257         (compareseq): Change return type to bool. Return true when EARLY_ABORT
16258         evaluates to true.
16259
16260 2008-09-14  Bruno Haible  <bruno@clisp.org>
16261
16262         * modules/perror-tests: New file.
16263         * tests/test-perror.sh: New file.
16264         * tests/test-perror.c: New file.
16265
16266         New module 'perror'.
16267         * lib/stdio.in.h (perror): New declaration.
16268         * lib/perror.c: New file.
16269         * m4/perror.m4: New file.
16270         * modules/perror: New file.
16271         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
16272         * doc/posix-functions/perror.texi: Mention the perror module.
16273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
16274         REPLACE_PERROR.
16275         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
16276         REPLACE_PERROR.
16277
16278 2008-09-14  Bruno Haible  <bruno@clisp.org>
16279
16280         * modules/stdio (Makefile.am): Reorder to match the order in
16281         lib/stdio.in.h.
16282         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
16283
16284 2008-09-13  Bruno Haible  <bruno@clisp.org>
16285
16286         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
16287
16288 2008-09-13  Bruno Haible  <bruno@clisp.org>
16289
16290         Extend strerror to cover the added errno values.
16291         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
16292         (rpl_strerror): Provide error messages for the added errno values and
16293         for the WSA* values.
16294         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
16295         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
16296         strerror.
16297         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
16298         * modules/strerror (Depends-on): Add errno.
16299         * doc/posix-functions/strerror.texi: Document the change.
16300         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
16301         and EOVERFLOW.
16302
16303 2008-09-13  Bruno Haible  <bruno@clisp.org>
16304
16305         * modules/EOVERFLOW: Remove file.
16306         * m4/eoverflow.m4: Remove file.
16307         * modules/EOVERFLOW-tests: Remove file.
16308         * tests/test-EOVERFLOW.c: Remove file.
16309         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
16310         * modules/ftell (Depends-on): Likewise.
16311         * modules/getdelim (Depends-on): Likewise.
16312         * modules/getugroups (Depends-on): Likewise.
16313         * modules/poll (Depends-on): Likewise.
16314         * modules/snprintf (Depends-on): Likewise.
16315         * modules/sprintf-posix (Depends-on): Likewise.
16316         * modules/vasnprintf (Depends-on): Likewise.
16317         * modules/vasprintf (Depends-on): Likewise.
16318         * modules/vfprintf-posix (Depends-on): Likewise.
16319         * modules/vsnprintf (Depends-on): Likewise.
16320         * modules/vsprintf-posix (Depends-on): Likewise.
16321         * modules/xvasprintf (Depends-on): Likewise.
16322         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16323         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
16324         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
16325         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
16326         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16327         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
16328         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
16329         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
16330         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16331         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
16332         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
16333         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
16334         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16335         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
16336         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
16337         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
16338         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16339         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
16340         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
16341         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
16342         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16343         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
16344         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
16345         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
16346         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
16347         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16348         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
16349         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
16350         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
16351         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
16352         * MODULES.html.sh: Remove EOVERFLOW.
16353         * NEWS: Mention the change.
16354
16355 2008-09-13  Bruno Haible  <bruno@clisp.org>
16356
16357         * modules/errno-tests: New file.
16358         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
16359
16360         * lib/errno.in.h: New file.
16361         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
16362         * modules/errno: New file.
16363         * doc/posix-headers/errno.texi: Update documentation.
16364         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
16365
16366 2008-09-13  Bruno Haible  <bruno@clisp.org>
16367
16368         * tests/test-poll.c: Use #if for native Windows, rather than testing
16369         __MSVCRT__.
16370
16371 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
16372             Bruno Haible  <bruno@clisp.org>
16373
16374         * lib/glob.c: Don't include <pwd.h> on native Windows.
16375         (WINDOWS32): New macro.
16376         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
16377
16378 2008-09-13  Bruno Haible  <bruno@clisp.org>
16379
16380         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
16381         (ETIMEDOUT): Remove macro.
16382         (glthread_cond_timedwait_multithreaded): New declaration.
16383         (glthread_cond_timedwait): Use it.
16384         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
16385         (glthread_cond_timedwait_multithreaded): New function.
16386
16387 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
16388
16389         * modules/poll-tests: Do not check for io.h.
16390         * tests/test-poll.c: Check for __MSVCRT__ instead.
16391
16392 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
16393
16394         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
16395         * modules/poll-tests: Add inet_pton, stdbool, sockets.
16396         * tests/test-poll.c: Use them.  Use _pipe on Windows.
16397
16398 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
16399
16400         * modules/poll-tests: New.
16401         * tests/test-poll.c: New.
16402
16403 2008-09-12  Eric Blake  <ebb9@byu.net>
16404
16405         frexp: test for NetBSD failure on -0.0
16406         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
16407         not all, bugs from NetBSD 3.0 have been fixed.
16408         * doc/posix-functions/frexp.texi (frexp): Document bug.
16409         Reported by Thomas Klausner.
16410
16411         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
16412         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
16413         literal -0.0.
16414         Reported by Jonathan C. Patschke <jp@centtech.com>.
16415
16416 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
16417
16418         * lib/glthread/cond.h: Use dummy implementation also if
16419         USE_WIN32_THREADS.
16420
16421 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
16422
16423         * modules/fnmatch-posix (License): Change to LGPLv2+.
16424         * modules/fnmatch-gnu (License): Likewise.
16425
16426 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
16427
16428         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
16429
16430 2008-09-11  Jim Meyering  <meyering@redhat.com>
16431
16432         * users.txt: Add gtk-vnc.
16433
16434 2008-09-08  Simon Josefsson  <simon@josefsson.org>
16435
16436         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
16437         rotate amounts.
16438
16439         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
16440         required for 16-bit and 8-bit rotates.
16441         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
16442         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
16443         UINT8_MAX instead of hard-coded constants.
16444         Suggested by Paul Eggert.
16445
16446 2008-09-07  Bruno Haible  <bruno@clisp.org>
16447
16448         * tests/test-striconveh.c (main): Check behaviour when converting from
16449         UTF-7.
16450
16451         Make striconveh work better with stateful encodings.
16452         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
16453         that iconv does not increment the inptr when returning -1/EINVAL.
16454
16455 2008-09-07  Bruno Haible  <bruno@clisp.org>
16456
16457         * build-aux/config.rpath: Update according to libtool-2.2.6.
16458         * build-aux/config.libpath: Likewise.
16459
16460 2008-09-06  Bruno Haible  <bruno@clisp.org>
16461
16462         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
16463         * lib/freadptr.c (freadptr): Likewise.
16464         * lib/freadseek.c (freadptrinc): Likewise.
16465         Reported by Simon Josefsson.
16466
16467 2008-09-06  Bruno Haible  <bruno@clisp.org>
16468
16469         * modules/freadptr (License): Change to LGPLv2+.
16470         * modules/freadseek (License): Likewise.
16471         Suggested by Eric Blake.
16472
16473         * modules/memchr2 (License): Change to LGPLv2+.
16474         Approved by Eric Blake.
16475
16476 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16477             Bruno Haible  <bruno@clisp.org>
16478
16479         Make gnulib-tool work with native 'sed' on AIX.
16480         * gnulib-tool (sed_noop): New variable.
16481         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
16482         func_add_or_update, func_create_testdir): Use it to initialize sed
16483         script variables.
16484         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16485
16486 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
16487             Bruno Haible  <bruno@clisp.org>
16488
16489         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
16490         also works after #include directives.
16491
16492 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
16493
16494         getdate.y: reject an out-of-range timezone value
16495         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
16496         the range [-24...+24].  When specified with only one or two digits,
16497         * tests/test-getdate.c: Tests for the fix.
16498         * doc/getdate.texi: Document this change.
16499
16500 2008-09-03  Bruno Haible  <bruno@clisp.org>
16501
16502         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
16503
16504 2008-09-02  Simon Josefsson  <simon@josefsson.org>
16505
16506         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
16507         <bruce.korb@gmail.com> with ideas from Ben Pfaff
16508         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
16509         Blake <ebb9@byu.net>.
16510
16511         * tests/test-bitrotate.c: Add more test vectors.
16512
16513 2008-09-02  Eric Blake  <ebb9@byu.net>
16514
16515         vasnprintf-posix: handle large precision via %.*d
16516         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
16517         when handling it ourselves.
16518         * tests/test-vasnprintf-posix.c (test_function): Add test.
16519         * tests/test-snprintf-posix.h (test_function): Likewise.
16520         * tests/test-sprintf-posix.h (test_function): Likewise.
16521         * tests/test-vasprintf-posix.c (test_function): Likewise.
16522         Reported by Alain Guibert.
16523
16524 2008-09-01  Eric Blake  <ebb9@byu.net>
16525
16526         c-stack: make configure-time check more robust
16527         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
16528         successful sigaction call.
16529         Reported by Tom G. Christensen.
16530
16531 2008-09-01  Bruno Haible  <bruno@clisp.org>
16532
16533         New module 'findprog-lgpl'.
16534         * modules/findprog-lgpl: New file.
16535         * lib/findprog-lgpl.c: New file.
16536         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
16537         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
16538         to decide whether to use strdup or xstrdup, concatenated_filename or
16539         xconcatenated_filename.
16540
16541 2008-09-01  Bruno Haible  <bruno@clisp.org>
16542
16543         Split module 'concat-filename' into 'concat-filename' (LGPL) and
16544         'xconcat-filename' (GPL).
16545         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
16546         (License): Change to LGPLv2+.
16547         * modules/xconcat-filename: New file.
16548         * lib/concat-filename.h (concatenated_filename): Change specification.
16549         (xconcatenated_filename): New declaration.
16550         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
16551         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
16552         memory situations.
16553         * lib/xconcat-filename.c: New file.
16554         * NEWS: Mention the change.
16555         * lib/findprog.c: Include concat-filename.h, not filename.h.
16556         (find_in_path): Use xconcatenated_filename instead of
16557         concatenated_filename.
16558         * lib/javacomp.c: Include concat-filename.h, not filename.h.
16559         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
16560         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
16561         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
16562         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
16563         instead of concatenated_filename.
16564         * lib/javaexec.c: Include concat-filename.h, not filename.h.
16565         (execute_java_class): Use xconcatenated_filename instead of
16566         concatenated_filename.
16567         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
16568         * modules/javacomp (Depends-on): Likewise.
16569         * modules/javaexec (Depends-on): Likewise.
16570
16571 2008-09-01  Bruno Haible  <bruno@clisp.org>
16572
16573         Split module 'filename' into 'filename' and 'concat-filename'.
16574         * modules/filename: Keep only lib/filename.h.
16575         (License): Change to LGPLv2+.
16576         * modules/concat-filename: New file, extracted from modules/filename.
16577         * lib/filename.h (concatenated_filename): Remove declaration.
16578         * lib/concat-filename.h: New file, extracted from lib/filename.h.
16579         * lib/concat-filename.c: Include concat-filename.h.
16580         * NEWS: Mention the change.
16581
16582 2008-09-01  Simon Josefsson  <simon@josefsson.org>
16583
16584         * lib/bitrotate.h (rotl8, rotr8): Add.
16585
16586         * modules/bitrotate (configure.ac): Need
16587         AC_REQUIRE([AC_C_INLINE]).
16588         (Description): Mention stdint.h.  Reported by Bruno Haible
16589         <bruno@clisp.org>.
16590
16591         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
16592         Paolo Bonzini <bonzini@gnu.org>.
16593
16594 2008-08-31  Bruno Haible  <bruno@clisp.org>
16595
16596         Assume Solaris specific bi-arch conventions on Solaris systems.
16597         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
16598         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
16599         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
16600         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
16601         like acl_libdirstem.
16602         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
16603         acl_libdirstem.
16604         * NEWS: Mention the change.
16605         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
16606
16607 2008-08-31  Jim Meyering  <meyering@redhat.com>
16608
16609         * lib/strftime.h: Add comments describing the two added arguments.
16610
16611         remove duplicate #include directives
16612         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
16613         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
16614
16615 2008-08-31  Bruno Haible  <bruno@clisp.org>
16616
16617         New module 'sigpipe-die'.
16618         * modules/sigpipe-die: New file.
16619         * lib/sigpipe-die.h: New file.
16620         * lib/sigpipe-die.c: New file.
16621         * MODULES.html.sh (Signal handling): Add sigpipe-die.
16622
16623 2008-08-31  Bruno Haible  <bruno@clisp.org>
16624
16625         Don't override previously installed signal handlers.
16626         * lib/fatal-signal.c (saved_sigactions): New variable.
16627         (uninstall_handlers): Reset the signal to the saved handler, not
16628         to SIG_DFL (except when ignored).
16629         (install_handlers): Save the previous handlers.
16630
16631 2008-08-30  Bruno Haible  <bruno@clisp.org>
16632
16633         * gnulib-tool (func_reset_sigpipe): New function.
16634         (func_get_automake_snippet, func_modules_transitive_closure,
16635         func_import): Invoke it before a join command that reads from stdin,
16636         to avoid "echo: write error: Broken pipe" error messages on stderr.
16637         Reported by Sam Steingold <sds@gnu.org>.
16638
16639 2008-08-30  Bruno Haible  <bruno@clisp.org>
16640
16641         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
16642         Code copied from m4/open.m4.
16643         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
16644         access and the filename ends in a slash. Code copied from lib/open.c.
16645         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
16646         * tests/test-fopen.c (main): Check against bug with trailing slash.
16647
16648 2008-08-29  Bruno Haible  <bruno@clisp.org>
16649
16650         Avoid some "gcc -pedantic" warnings.
16651         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
16652         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
16653         * lib/dirent.in.h: Likewise.
16654         * lib/fcntl.in.h: Likewise.
16655         * lib/float.in.h: Likewise.
16656         * lib/iconv.in.h: Likewise.
16657         * lib/inttypes.in.h: Likewise.
16658         * lib/locale.in.h: Likewise.
16659         * lib/math.in.h: Likewise.
16660         * lib/netinet_in.in.h: Likewise.
16661         * lib/search.in.h: Likewise.
16662         * lib/signal.in.h: Likewise.
16663         * lib/stdarg.in.h: Likewise.
16664         * lib/stdint.in.h: Likewise.
16665         * lib/stdio.in.h: Likewise.
16666         * lib/stdlib.in.h: Likewise.
16667         * lib/string.in.h: Likewise.
16668         * lib/strings.in.h: Likewise.
16669         * lib/sys_select.in.h: Likewise.
16670         * lib/sys_socket.in.h: Likewise.
16671         * lib/sys_stat.in.h: Likewise.
16672         * lib/sys_time.in.h: Likewise.
16673         * lib/sysexits.in.h: Likewise.
16674         * lib/time.in.h: Likewise.
16675         * lib/unistd.in.h: Likewise.
16676         * lib/wchar.in.h: Likewise.
16677         * lib/wctype.in.h: Likewise.
16678         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
16679         * modules/fchdir (Makefile.am): Likewise.
16680         * modules/fcntl (Makefile.am): Likewise.
16681         * modules/float (Makefile.am): Likewise.
16682         * modules/iconv_open (Makefile.am): Likewise.
16683         * modules/inttypes (Makefile.am): Likewise.
16684         * modules/locale (Makefile.am): Likewise.
16685         * modules/math (Makefile.am): Likewise.
16686         * modules/netinet_in (Makefile.am): Likewise.
16687         * modules/search (Makefile.am): Likewise.
16688         * modules/signal (Makefile.am): Likewise.
16689         * modules/stdarg (Makefile.am): Likewise.
16690         * modules/stdint (Makefile.am): Likewise.
16691         * modules/stdio (Makefile.am): Likewise.
16692         * modules/stdlib (Makefile.am): Likewise.
16693         * modules/string (Makefile.am): Likewise.
16694         * modules/strings (Makefile.am): Likewise.
16695         * modules/sys_select (Makefile.am): Likewise.
16696         * modules/sys_socket (Makefile.am): Likewise.
16697         * modules/sys_stat (Makefile.am): Likewise.
16698         * modules/sys_time (Makefile.am): Likewise.
16699         * modules/sysexits (Makefile.am): Likewise.
16700         * modules/time (Makefile.am): Likewise.
16701         * modules/unistd (Makefile.am): Likewise.
16702         * modules/wchar (Makefile.am): Likewise.
16703         * modules/wctype (Makefile.am): Likewise.
16704         Reported by Reuben Thomas <rrt@sc3d.org>.
16705
16706 2008-08-29  Bruno Haible  <bruno@clisp.org>
16707
16708         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
16709         any more.
16710
16711 2008-08-29  Simon Josefsson  <simon@josefsson.org>
16712
16713         * MODULES.html.sh (Misc): Add bitrotate.
16714
16715         * modules/bitrotate: New file.
16716
16717         * lib/bitrotate.h: New file.
16718
16719         * modules/bitrotate-tests: New file.
16720
16721         * tests/test-bitrotate.c: New file.
16722
16723         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
16724         on the bitrotate module.
16725
16726         * lib/arctwo.c: Use new bitrotate module.
16727
16728 2008-08-29  Jim Meyering  <meyering@redhat.com>
16729
16730         bootstrap: merge changes from coreutils
16731         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
16732         of copied files.  Remove a kludge, now that this is fixed.
16733         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
16734         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
16735         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
16736
16737 2008-08-29  Bruno Haible  <bruno@clisp.org>
16738
16739         * MODULES.html.sh: Remove --cvs-urls option.
16740
16741 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
16742
16743         maint.mk: adjust to file name change
16744         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
16745
16746 2008-08-28  Jim Meyering  <meyering@redhat.com>
16747
16748         * modules/getndelim2 (License): Relicense to LGPLv2+.
16749         Approved by Richard Stallman for the version of 1995, and by
16750         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
16751
16752 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
16753
16754         * lib/getdelim.c (flockfile, funlockfile): Make all of them
16755         dummy if one is not available.  Do not touch them if
16756         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
16757         (getc_maybe_unlocked): New.
16758         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
16759
16760 2008-08-26  Eric Blake  <ebb9@byu.net>
16761
16762         doc/INSTALL: resync from autoconf
16763         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
16764         (INSTALL_PRELUDE): Delete; this is done more efficiently by
16765         moving...
16766         * install.texi [!autoconf]: ...here.  Resync from autoconf.
16767         * INSTALL: Regenerate.
16768         * INSTALL.ISO: New file.
16769         * INSTALL.UTF-8: Likewise.
16770
16771 2008-08-26  Jim Meyering  <meyering@redhat.com>
16772
16773         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
16774         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
16775         these definitions conditional, so that they may be overridden, too.
16776
16777 2008-08-26  Bruno Haible  <bruno@clisp.org>
16778
16779         Generate INSTALL file variants with prettier quotes.
16780         * doc/Makefile (INSTALL_PRELUDE): New macro.
16781         (INSTALL): Use it.
16782         (INSTALL.ISO, INSTALL.UTF-8): New rules.
16783
16784 2008-08-26  Bruno Haible  <bruno@clisp.org>
16785
16786         Run makeinfo in an English locale.
16787         * doc/Makefile (MAKEINFO): New variable.
16788
16789 2008-08-26  Bruno Haible  <bruno@clisp.org>
16790
16791         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
16792         Suggested by Eric Blake.
16793
16794 2008-08-25  Bruno Haible  <bruno@clisp.org>
16795
16796         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
16797
16798 2008-08-25  Eric Blake  <ebb9@byu.net>
16799
16800         c-stack: test that stack overflow can be caught
16801         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
16802         that platform allows handling stack overflow; at least OS/2 EMX
16803         has sigaltstack, but crashes before transferring control to
16804         handler on stack overflow.
16805         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
16806         check for HAVE_STACK_OVERFLOW_HANDLING.
16807         Reported by Elbert Pol.
16808
16809 2008-08-25  Bruno Haible  <bruno@clisp.org>
16810
16811         * doc/posix-functions/strftime.texi: Fix description of strftime
16812         module.
16813
16814 2008-08-24  Bruno Haible  <bruno@clisp.org>
16815
16816         * tests/uniwidth/test-uc_width2.c: New file.
16817         * tests/uniwidth/test-uc_width2.sh: New file.
16818         * modules/uniwidth/width-tests (Files): Add the new files.
16819         (TESTS): Add uniwidth/test-uc_width2.sh.
16820         (TESTS_ENVIRONMENT): New variable.
16821         (check_PROGRAMS): Add test-uc_width2.
16822         (test_uc_width2_SOURCES): New variable.
16823
16824         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
16825         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
16826         not 0x00AB.
16827         Reported by Alexander V. Lukyanov <lav@netis.ru>.
16828
16829 2008-08-22  Eric Blake  <ebb9@byu.net>
16830
16831         test-lock, test-tls: mention why a test is skipped
16832         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
16833         skipped.
16834         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
16835
16836         count-one-bits: relax license
16837         * modules/count-one-bits (License): Relicense to LGPLv2+.
16838         Suggested by Ludovic Courtès, approved by Ben Pfaff.
16839
16840 2008-08-22  Andreas Schwab  <schwab@suse.de>
16841
16842         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
16843         Remove spurious space in assignment.
16844
16845 2008-08-21  Simon Josefsson  <simon@josefsson.org>
16846
16847         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
16848         Paul Eggert <eggert@CS.UCLA.EDU>.
16849
16850 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
16851
16852         * modules/gettext: Add m4/threadlib.m4.
16853
16854 2008-08-19  Eric Blake  <ebb9@byu.net>
16855
16856         test-c-stack: fix compilation failure on FreeBSD 5.0
16857         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
16858         headers before <sys/resource.h>.
16859         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
16860         the bug.
16861         Reported by Nelson H. F. Beebe.
16862
16863         strverscmp: migrate from "strverscmp.h" to <string.h>
16864         * modules/string (Makefile.am): Add new hooks.
16865         * modules/strverscmp (Files): Remove strverscmp.h.
16866         (Depends-on): Add string.
16867         (configure.ac): Add indicator.
16868         (Include): Mention new header.
16869         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
16870         defaults.
16871         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
16872         results.
16873         * lib/strverscmp.h: Delete.
16874         * lib/string.in.h (strverscmp): Provide declaration, when needed.
16875         * tests/test-strverscmp.c (includes): Adjust client.
16876         * lib/check-version.c (includes): Likewise.
16877         * NEWS: Document the change.
16878
16879         strverscmp: add unit test
16880         * modules/strverscmp-tests: New file.
16881         * tests/test-strverscmp.c: Likewise.
16882
16883 2008-08-19  Simon Josefsson  <simon@josefsson.org>
16884
16885         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
16886         regarding Windows crypto stuff, from Mono.
16887
16888 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
16889
16890         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
16891         if present, for intel RND.  Return error on failures.
16892
16893 2008-08-18  Ben Pfaff  <blp@gnu.org>
16894
16895         gitlog-to-changelog: give better diagnostic for failed pipe-open
16896         * build-aux/gitlog-to-changelog: Improve error message: suggest
16897         that the version of Git may be too old.
16898
16899 2008-08-18  Simon Josefsson  <simon@josefsson.org>
16900
16901         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
16902         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
16903
16904 2008-08-18  Bruno Haible  <bruno@clisp.org>
16905
16906         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
16907         pthread_in_use().
16908
16909 2008-08-18  Bruno Haible  <bruno@clisp.org>
16910
16911         * lib/glthread/threadlib.c: Include <pthread.h>.
16912
16913 2008-08-18  Bruno Haible  <bruno@clisp.org>
16914
16915         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
16916         glthread_recursive_lock_* macros.
16917         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
16918         Fix syntax error.
16919
16920 2008-08-18  Bruno Haible  <bruno@clisp.org>
16921
16922         * lib/glthread/thread.c: Avoid forcing a context switch right after
16923         thread creation.
16924
16925 2008-08-17  Bruno Haible  <bruno@clisp.org>
16926
16927         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
16928         * lib/glthread/thread.h: Provide Win32 specific implementation.
16929         * modules/thread (Files): Add lib/glthread/thread.c.
16930         (Depends-on): Add lock.
16931         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
16932
16933 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
16934
16935         New module 'yield'.
16936         * modules/yield: New file.
16937         * lib/glthread/yield.h: New file.
16938         * m4/yield.m4: New file.
16939         * MODULES.html.sh (Multithreading): Add yield.
16940
16941 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
16942
16943         New module 'thread'.
16944         * modules/thread: New file.
16945         * lib/glthread/thread.h: New file.
16946         * m4/thread.m4: New file.
16947         * MODULES.html.sh (Multithreading): Add thread.
16948
16949 2008-08-17  Bruno Haible  <bruno@clisp.org>
16950
16951         * lib/glthread/lock.h: Include <stdlib.h> always.
16952         * lib/glthread/tls.h: Likewise.
16953         * lib/glthread/cond.h: Likewise.
16954
16955 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
16956
16957         New module 'cond'.
16958         * modules/cond: New file.
16959         * lib/glthread/cond.h: New file.
16960         * lib/glthread/cond.c: New file.
16961         * m4/cond.m4: New file.
16962         * MODULES.html.sh (Multithreading): Add cond.
16963
16964 2008-08-16  Eric Blake  <ebb9@byu.net>
16965
16966         c-stack: fix regression on Irix 5.3 from 2008-06-21
16967         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
16968         sa_sigaction...
16969         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
16970         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
16971         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
16972         * modules/signal (Makefile.am): Use the value.
16973         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
16974         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
16975         * doc/posix-headers/signal.texi (signal.h): Document this
16976         portability issue.
16977         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
16978         Reported by Tom G. Christensen.
16979
16980 2008-08-17  Bruno Haible  <bruno@clisp.org>
16981
16982         New module 'threadlib'.
16983         * modules/threadlib: New file.
16984         * lib/glthread/threadlib.c: New file, extracted from
16985         lib/glthread/lock.c.
16986         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
16987         functions.
16988         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
16989         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
16990         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
16991         macros.
16992         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
16993         (gl_DISABLE_THREADS): Remove macro.
16994         * modules/lock (Files): Remove build-aux/config.rpath.
16995         (Depends-on): Remove havelib. Add threadlib.
16996         (configure.ac-early): Remove section.
16997         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
16998         * modules/tls (Depends-on): Remove lock. Add threadlib.
16999         (Link): New section, copied from threadlib.
17000         * MODULES.html.sh (Multithreading): Add threadlib.
17001
17002 2008-08-14  Bruno Haible  <bruno@clisp.org>
17003
17004         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
17005         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
17006         glthread_rwlock_unlock, glthread_rwlock_destroy,
17007         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
17008         glthread_recursive_lock_destroy): Define as macros always.
17009         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
17010         glthread_lock_lock.
17011         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
17012         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
17013         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
17014         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
17015         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
17016         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
17017         (glthread_recursive_lock_lock_func): Renamed from
17018         glthread_recursive_lock_lock.
17019         (glthread_recursive_lock_unlock_func): Renamed from
17020         glthread_recursive_lock_unlock.
17021         (glthread_recursive_lock_destroy_func): Renamed from
17022         glthread_recursive_lock_destroy.
17023
17024 2008-08-14  Bruno Haible  <bruno@clisp.org>
17025
17026         * lib/glthread/lock.h: Renamed from lib/lock.h.
17027         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
17028         * lib/glthread/tls.h: Renamed from lib/tls.h.
17029         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
17030         * lib/fstrcmp.c: Update includes.
17031         * lib/strsignal.c: Update includes.
17032         * modules/lock (Files, Makefile.am): Update.
17033         (Include): Change to "glthread/lock.h".
17034         * modules/tls (Files, Makefile.am): Update.
17035         (Include): Change to "glthread/tls.h".
17036         * tests/test-lock.c: Update includes.
17037         * tests/test-tls.c: Update includes.
17038         * NEWS: Mention the renamed header files.
17039
17040 2008-08-11  Jim Meyering  <meyering@redhat.com>
17041
17042         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
17043
17044 2008-08-11  Eric Blake  <ebb9@byu.net>
17045
17046         test-c-stack: avoid C99-ism
17047         * tests/test-c-stack.c (main): Fix whitespace, move declaration
17048         before statement.
17049         Reported by Alain Guibert.
17050
17051 2008-08-10  Jim Meyering  <meyering@redhat.com>
17052
17053         ensure that return value of uinttostr et al are not ignored
17054         * lib/inttostr.h (__GNUC_PREREQ): Define.
17055         (__attribute_warn_unused_result__): Define.
17056         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
17057
17058 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
17059
17060         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
17061         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
17062
17063 2008-08-07  Jim Meyering  <meyering@redhat.com>
17064
17065         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
17066
17067         * modules/mkstemp (License): Relicense under LGPLv2+.
17068         * modules/tempname (License): Likewise.
17069
17070 2008-08-06  Bruno Haible  <bruno@clisp.org>
17071
17072         * lib/poll.c (poll): Further micro-optimization.
17073
17074 2008-08-06  Jim Meyering  <meyering@redhat.com>
17075
17076         inet_pton.c: use locale-independent tolower
17077         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
17078         (inet_pton6): Use c_tolower rather than tolower.
17079         * modules/inet_pton (Depends-on): Add c-ctype.
17080
17081 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
17082
17083         * lib/poll.c (poll): Avoid division when timeout is 0, cache
17084         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
17085
17086 2008-08-06  Jim Meyering  <meyering@redhat.com>
17087
17088         * modules/inet_pton (License): Relicense under LGPLv2+.
17089
17090 2008-08-03  Bruno Haible  <bruno@clisp.org>
17091
17092         Additional non-aborting API for lock and tls.
17093         * lib/lock.h: Include <errno.h>.
17094         (glthread_lock_init): New macro/function.
17095         (gl_lock_init): Define as wrapper around glthread_lock_init.
17096         (glthread_lock_lock): New macro/function.
17097         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
17098         (glthread_lock_unlock): New macro/function.
17099         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
17100         (glthread_lock_destroy): New macro/function.
17101         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
17102         (glthread_rwlock_init): New macro/function.
17103         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
17104         (glthread_rwlock_rdlock): New macro/function.
17105         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
17106         (glthread_rwlock_wrlock): New macro/function.
17107         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
17108         (glthread_rwlock_unlock): New macro/function.
17109         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
17110         (glthread_rwlock_destroy): New macro/function.
17111         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
17112         (glthread_recursive_lock_init): New macro/function.
17113         (gl_recursive_lock_init): Define as wrapper around
17114         glthread_recursive_lock_init.
17115         (glthread_recursive_lock_lock): New macro/function.
17116         (gl_recursive_lock_lock): Define as wrapper around
17117         glthread_recursive_lock_lock.
17118         (glthread_recursive_lock_unlock): New macro/function.
17119         (gl_recursive_lock_unlock): Define as wrapper around
17120         glthread_recursive_lock_unlock.
17121         (glthread_recursive_lock_destroy): New macro/function.
17122         (gl_recursive_lock_destroy): Define as wrapper around
17123         glthread_recursive_lock_destroy.
17124         (glthread_once): New macro/function.
17125         (gl_once): Define as wrapper around glthread_once.
17126         Update function declarations.
17127         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
17128         glthread_rwlock_init. Return error code.
17129         (glthread_rwlock_rdlock_multithreaded): Renamed from
17130         glthread_rwlock_rdlock. Return error code.
17131         (glthread_rwlock_wrlock_multithreaded): Renamed from
17132         glthread_rwlock_wrlock. Return error code.
17133         (glthread_rwlock_unlock_multithreaded): Renamed from
17134         glthread_rwlock_unlock. Return error code.
17135         (glthread_rwlock_destroy_multithreaded): Renamed from
17136         glthread_rwlock_destroy. Return error code.
17137         (glthread_recursive_lock_init_multithreaded): Renamed from
17138         glthread_recursive_lock_init. Return error code.
17139         (glthread_recursive_lock_lock_multithreaded): Renamed from
17140         glthread_recursive_lock_lock. Return error code.
17141         (glthread_recursive_lock_unlock_multithreaded): Renamed from
17142         glthread_recursive_lock_unlock. Return error code.
17143         (glthread_recursive_lock_destroy_multithreaded): Renamed from
17144         glthread_recursive_lock_destroy. Return error code.
17145         (glthread_once_call): Make static.
17146         (glthread_once_multithreaded): Renamed from glthread_once.
17147         * lib/tls.h: Include <errno.h>.
17148         (glthread_tls_key_init): New macro/function.
17149         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
17150         (glthread_tls_set): New macro/function.
17151         (gl_tls_set): Define as wrapper around glthread_tls_set.
17152         (glthread_tls_key_destroy): New macro/function.
17153         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
17154         Update function declarations.
17155         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
17156         glthread_tls_get.
17157         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
17158
17159 2008-08-04  Eric Blake  <ebb9@byu.net>
17160
17161         gnumakefile: use space, not TAB, outside of targets
17162         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
17163
17164 2008-08-02  Jim Meyering  <meyering@redhat.com>
17165
17166         getdate.y: avoid locale-dependent date parsing failure
17167         In Turkish locales, getdate would fail to recognize keywords
17168         containing a lowercase "i".  The solution is not to rely on
17169         locale-sensitive case-conversion.
17170         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
17171         (lookup_word): Use c_toupper in place of toupper.
17172         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
17173         Reported by Vefa Bicakci <bicave@superonline.com> in
17174         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
17175         * modules/getdate (Depends-on): Add c-ctype.
17176
17177 2008-08-02  Bruno Haible  <bruno@clisp.org>
17178
17179         * gnulib-tool (func_import): When updating or creating a .gitignore
17180         file, prepend each added line with a slash, and ignore leading slashes
17181         from the existing lines.
17182         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
17183
17184 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17185
17186         Portability fix for GNU make 3.79.1.
17187         * top/GNUmakefile: Avoid 'else COND', which older GNU make
17188         versions do not understand.
17189
17190 2008-08-01  Bruno Haible  <bruno@clisp.org>
17191
17192         Work around bug of HP-UX 10.20 cc with -0.0 literal.
17193         * tests/test-isnanf.h (zero): New variable.
17194         (main): Avoid literal -0.0f.
17195         * tests/test-isnand.h (zero): New variable.
17196         (main): Avoid literal -0.0.
17197         * tests/test-isnanl.h (zero): New variable.
17198         (main): Avoid literal -0.0L.
17199         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
17200         (test_float, test_double, test_long_double): Avoid literals -0.0f,
17201         -0.0, -0.0L.
17202         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
17203         (test_signbitd): Avoid literal -0.0.
17204         (test_signbitl): Avoid literal -0.0L.
17205         * tests/test-ceilf1.c (zero): New variable.
17206         (main): Avoid literal -0.0f.
17207         * tests/test-ceill.c (zero): New variable.
17208         (main): Avoid literal -0.0L.
17209         * tests/test-floorf1.c (zero): New variable.
17210         (main): Avoid literal -0.0f.
17211         * tests/test-floorl.c (zero): New variable.
17212         (main): Avoid literal -0.0L.
17213         * tests/test-roundf1.c (zero): New variable.
17214         (main): Avoid literal -0.0f.
17215         * tests/test-round1.c (zero): New variable.
17216         (main): Avoid literal -0.0.
17217         * tests/test-roundl.c (zero): New variable.
17218         (main): Avoid literal -0.0L.
17219         * tests/test-truncf1.c (zero): New variable.
17220         (main): Avoid literal -0.0f.
17221         * tests/test-trunc1.c (zero): New variable.
17222         (main): Avoid literal -0.0.
17223         * tests/test-truncl.c (zero): New variable.
17224         (main): Avoid literal -0.0L.
17225         * tests/test-frexp.c (zero): New variable.
17226         (main): Avoid literal -0.0.
17227         * tests/test-frexpl.c (zero): New variable.
17228         (main): Avoid literal -0.0L.
17229         * tests/test-ldexpl.c (zero): New variable.
17230         (main): Avoid literal -0.0L.
17231         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
17232         (zerod, zerol): New variables.
17233         (test_function): Avoid literals -0.0, -0.0L.
17234         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
17235         (zerod, zerol): New variables.
17236         (test_function): Avoid literals -0.0, -0.0L.
17237         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
17238         (zerod, zerol): New variables.
17239         (test_function): Avoid literals -0.0, -0.0L.
17240         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
17241         (zerod, zerol): New variables.
17242         (test_function): Avoid literals -0.0, -0.0L.
17243         * tests/test-strtod.c (zero): New variable.
17244         (main): Avoid literal -0.0.
17245         Reported by Jonathan C. Patschke <jp@centtech.com>.
17246
17247 2008-07-31  Jim Meyering  <meyering@redhat.com>
17248
17249         sha256.h: correct definition of SHA224_DIGEST_SIZE
17250         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
17251         Reported by Paulie Pena IV <paulie4@gmail.com>.
17252         Define as 224 / 8, rather than as a literal.
17253         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
17254         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
17255         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
17256
17257 2008-07-31  Bruno Haible  <bruno@clisp.org>
17258
17259         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
17260         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
17261         Reported by Jonathan Patschke <jp@centtech.com>.
17262
17263 2008-07-31  Bruno Haible  <bruno@clisp.org>
17264
17265         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
17266         Reported by Paolo Bonzini <bonzini@gnu.org>.
17267
17268 2008-07-30  Eric Blake  <ebb9@byu.net>
17269
17270         test-strtod: allow compilation without -lm
17271         * tests/test-strtod.c (main): Avoid link dependence on fabs.
17272         Reported by Dennis Clarke <blastwave@gmail.com>.
17273
17274 2008-07-28  Jim Meyering  <meyering@redhat.com>
17275
17276         bootstrap: work also when there are no .po files in po/
17277         * build-aux/bootstrap (update_po_files): Complete the change
17278         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
17279
17280 2008-07-27  Jim Meyering  <meyering@redhat.com>
17281
17282         * users.txt: Add zile.
17283
17284 2008-07-26  Ben Pfaff  <blp@gnu.org>
17285
17286         Add missing dependencies on new m4/exponent[fdl].m4 files.
17287         * modules/isnanf-nolibm: Add m4/exponentf.m4.
17288         * modules/isnand-nolibm: Add m4/exponentd.m4.
17289         * modules/isnanl-nolibm: Add m4/exponentl.m4.
17290         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
17291         m4/isnan[fdl].m4, because the macros actually used moved.
17292         Reported by Jim Meyering.
17293
17294 2008-07-14  Ben Pfaff  <blp@gnu.org>
17295
17296         Add isinf module.
17297         * lib/isinf.c: New file.
17298         * lib/math.in.h: Define isinf macro if we have decided to replace
17299         it.
17300         * m4/isinf.m4: New file.
17301         * m4/math_h.m4: Initialize and substitute variables for isinf
17302         module.
17303         * modules/isinf: New file.
17304         * modules/isinf-tests: New file.
17305         * modules/math: Add substitutions for new module.
17306         * tests/test-isinf.c: New file.
17307         * doc/posix-functions/isinf.texi: Mention new module.
17308         * MODULES.html.sh: Mention new module.
17309
17310 2008-07-14  Ben Pfaff  <blp@gnu.org>
17311
17312         Factor out some macros for use by additional modules.
17313         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
17314         exponentf.m4.
17315         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
17316         exponentd.m4.
17317         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
17318         file exponentl.m4.
17319         * m4/exponentf.m4: New file.
17320         * m4/exponentd.m4: New file.
17321         * m4/exponentl.m4: New file.
17322         * modules/isnanf: Use new file m4/exponentf.m4.
17323         * modules/isnand: Use new file m4/exponentd.m4.
17324         * modules/isnanl: Use new file m4/exponentl.m4.
17325
17326 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
17327
17328         mktime.c: normalize tp->tm_isdst value to -1/0/1.
17329         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
17330         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
17331         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
17332
17333         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
17334         readlink on platforms without PATH_MAX.
17335
17336 2008-07-21  Eric Blake  <ebb9@byu.net>
17337
17338         Warn, not fail, on stale version.
17339         * top/GNUmakefile (_curr-ver): Tone down previous patch.
17340
17341         Don't allow installation with stale devel version number.
17342         * top/GNUmakefile (_is-install-target): New macro.
17343         (_curr-ver): Forbid installation with stale version number.
17344
17345 2008-07-20  Bruno Haible  <bruno@clisp.org>
17346
17347         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
17348         TESTS_ENVIRONMENT.
17349         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
17350
17351 2008-07-20  Bruno Haible  <bruno@clisp.org>
17352
17353         * lib/c-stack.h (c_stack_action): Add documentation.
17354         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
17355
17356 2008-07-20  Bruno Haible  <bruno@clisp.org>
17357
17358         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
17359         * modules/readlink (License): Likewise.
17360
17361 2008-07-17  Eric Blake  <ebb9@byu.net>
17362
17363         * modules/c-stack (Link): Fix typo.
17364
17365         Make c-stack use libsigsegv, when available.
17366         * modules/c-stack (Depends-on): Add libsigsegv.
17367         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
17368         needed.
17369         * lib/c-stack.c (SIGSTKSZ): Define fallback.
17370         (segv_handler, overflow_handler, c_stack_action)
17371         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
17372         implementation when libsigsegv is available, but only when using
17373         the library is necessary.
17374         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
17375         comment, explaining why XSI check fails on Linux.
17376         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
17377         * tests/test-c-stack2.sh: Tweak skip message.
17378         * NEWS: Document new link-time requirements.
17379
17380 2008-07-16  Eric Blake  <ebb9@byu.net>
17381
17382         c-stack: Expose false positives when not using libsigsegv.
17383         * modules/c-stack-tests (Files): Expand test.
17384         * tests/test-c-stack.c (main): Add means to conditionally trigger
17385         non-overflow SIGSEGV.
17386         * tests/test-c-stack2.sh: New file.
17387
17388 2008-07-14  Bruno Haible  <bruno@clisp.org>
17389
17390         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
17391         Reported by Eric Blake.
17392
17393 2008-07-14  Sam Steingold  <sds@gnu.org>
17394             Bruno Haible  <bruno@clisp.org>
17395
17396         New module libsigsegv.
17397         * modules/libsigsegv: New file.
17398         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
17399         modifications.
17400         * MODULES.html.sh (Signal handling): New section.
17401
17402 2008-07-14  Bruno Haible  <bruno@clisp.org>
17403
17404         * modules/unictype/ctype-* (Description): Add the word "function".
17405         Improves the resulting doc in MODULES.html.
17406
17407 2008-07-12  Ben Pfaff  <blp@gnu.org>
17408
17409         Add longlong module.
17410         * modules/longlong: New file.
17411
17412 2008-07-12  Bruno Haible  <bruno@clisp.org>
17413
17414         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
17415         to empty.
17416
17417 2008-07-10  Ben Pfaff  <blp@gnu.org>
17418
17419         Add isnan module.
17420         * doc/posix-functions/isnan.texi: Mention new module.
17421         * lib/math.in.h: Define isnan macro if we have decided to replace
17422         it.
17423         * m4/isnan.m4: New file.
17424         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
17425         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
17426         also.
17427         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
17428         redundancy.
17429         * m4/math_h.m4: Initialize and substitute variables for isnan
17430         module.
17431         * modules/isnan: New file.
17432         * modules/isnan-tests: New file.
17433         * modules/math: Add substitutions for new module.
17434         * tests/test-isnan.c: New file.
17435         * MODULES.html.sh: Mention new module.
17436
17437 2008-07-10  Ben Pfaff  <blp@gnu.org>
17438
17439         Add isnanf module.
17440         * lib/isnanf.m4: New file.
17441         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
17442         (gl_HAVE_ISNANF_IN_LIBM): New macro.
17443         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
17444         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
17445         * modules/isnanf: New file.
17446         * modules/isnanf-tests: New file.
17447         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
17448         files.
17449         * tests/test-isnanf-nolibm.c: factored most of its contents into
17450         new file tests/test-isnanf.h.
17451         * tests/test-isnanf.h: New file.
17452         * tests/test-isnanf.c: New file.
17453         * MODULES.html.sh: Mention new module.
17454         * doc/glibc-functions/isnanf.texi: Mention new module.
17455
17456 2008-07-10  Ben Pfaff  <blp@gnu.org>
17457
17458         Add isnand module.
17459         * lib/isnand.h: New file.
17460         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
17461         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
17462         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
17463         functionality also.
17464         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
17465         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
17466         (gl_HAVE_ISNAND_IN_LIBM): New macro.
17467         * modules/isnand: New file.
17468         * modules/isnand-tests: New file.
17469         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
17470         files.
17471         * tests/test-isnand-nolibm.c: factored most of its contents into
17472         new file tests/test-isnand.h.
17473         * tests/test-isnand.h: New file.
17474         * tests/test-isnand.c: New file.
17475         * MODULES.html.sh: Mention new module.
17476
17477 2008-07-10  Ben Pfaff  <blp@gnu.org>
17478
17479         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
17480         * lib/isnand.h: Rename lib/isnand-nolibm.h.
17481         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
17482         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
17483         * modules/isnanf-nolibm: Update references to renamed files.
17484         * modules/isnand-nolibm: Likewise.
17485         * modules/isnanf-nolibm-tests: Likewise.
17486         * modules/isnand-nolibm-tests: Likewise.
17487         * lib/frexp.c: Likewise.
17488         * lib/isfinite.c: Likewise.
17489         * lib/signbitd.c: Likewise.
17490         * lib/signbitf.c: Likewise.
17491         * lib/vasnprintf.c: Likewise.
17492         * tests/test-ceilf1.c: Likewise.
17493         * tests/test-ceilf2.c: Likewise.
17494         * tests/test-floorf1.c: Likewise.
17495         * tests/test-floorf2.c: Likewise.
17496         * tests/test-frexp.c: Likewise.
17497         * tests/test-round1.c: Likewise.
17498         * tests/test-round2.c: Likewise.
17499         * tests/test-roundf1.c: Likewise.
17500         * tests/test-strtod.c: Likewise.
17501         * tests/test-trunc1.c: Likewise.
17502         * tests/test-trunc2.c: Likewise.
17503         * tests/test-truncf1.c: Likewise.
17504         * tests/test-truncf2.c: Likewise.
17505         * NEWS: Mention the renamed header files.
17506
17507 2008-07-11  Jim Meyering  <meyering@redhat.com>
17508
17509         vc-list-files: make the last-resort awk code more portable
17510         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
17511         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
17512         does not support it.
17513
17514 2008-07-10  Eric Blake  <ebb9@byu.net>
17515
17516         Work with tar's bootstrap.
17517         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
17518         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
17519         an m4 comment.
17520
17521 2008-07-09  Jim Meyering  <meyering@redhat.com>
17522
17523         posix-shell.m4: fix typo that made this test malfunction
17524         * m4/posix-shell.m4: Remove capitalization in variable name.
17525
17526 2008-07-08  Bruno Haible  <bruno@clisp.org>
17527
17528         * m4/onceonly.m4: Update comments.
17529         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17530
17531 2008-07-04  Jim Meyering  <meyering@redhat.com>
17532
17533         * users.txt: Add vc-dwim.
17534         (bison, coreutils): Use the gitweb URL.
17535
17536 2008-07-03  Jim Meyering  <meyering@redhat.com>
17537
17538         * users.txt: Add libffcall.  From Sam Steingold.
17539
17540 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
17541
17542         getdate.y: do not ignore TZ with relative day, month or year offset
17543         * lib/getdate.y (get_date): Move the tz-handling block to follow the
17544         relative-date-handling, since otherwise, the latter would clobber the
17545         sole output (an updated Start value) of the tz-handling block.
17546         * tests/test-getdate.c: Tests for the fix
17547
17548 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17549
17550         Recognize 'foo_LIBRARIES += libgnu.a'.
17551         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
17552         makefile snippet has already specified an installation location,
17553         also using '+='.
17554
17555 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
17556
17557         getdate.y: factor out common actions
17558         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
17559         Use them in place of open-coded actions.
17560
17561 2008-07-01  Simon Josefsson  <simon@josefsson.org>
17562
17563         Add self-test for getdate module.
17564         * modules/getdate-tests: New file.
17565         * tests/test-getdate.c: New file.
17566
17567 2008-06-29  Bruno Haible  <bruno@clisp.org>
17568
17569         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
17570         .gitignore.
17571         Reported by Sylvain Beucler <beuc@beuc.net>.
17572
17573 2008-06-29  Bruno Haible  <bruno@clisp.org>
17574
17575         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
17576         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
17577
17578 2008-06-29  Bruno Haible  <bruno@clisp.org>
17579
17580         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
17581         EXTRA_DIST.
17582         Reported by Sylvain Beucler <beuc@beuc.net>.
17583
17584 2008-06-26  Jim Meyering  <meyering@redhat.com>
17585
17586         make several modules depend on the "open" module
17587         This provides slightly increased consistency when opening-for-write
17588         the name of a non-directory spelled with a trailing slash.
17589         * modules/chdir-safer: Likewise.
17590         * modules/chown: Likewise.
17591         * modules/clean-temp: Likewise.
17592         * modules/copy-file: Likewise.
17593         * modules/fchdir: Likewise.
17594         * modules/fcntl-safer: Likewise.
17595         * modules/pipe: Likewise.
17596         * modules/utime: Likewise.
17597         Prompted by Eric Blake and Bruno Haible.
17598
17599 2008-06-24  Andreas Schwab  <schwab@suse.de>
17600
17601         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
17602         literals can be used as initializers for global variables.
17603
17604 2008-06-23  Eric Blake  <ebb9@byu.net>
17605
17606         Make gnulib-cache.m4 easier to diff.
17607         * gnulib-tool (func_import): Allow newlines when reading cached
17608         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
17609
17610 2008-06-23  Bruno Haible  <bruno@clisp.org>
17611
17612         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
17613         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
17614         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
17615         m4/signalblocking.m4.
17616         (gl_PREREQ_SIGACTION): Don't invoke it.
17617         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
17618         gl_PREREQ_SIG_HANDLER_H.
17619         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
17620         Don't check for sigaction here.
17621
17622 2008-06-23  Bruno Haible  <bruno@clisp.org>
17623
17624         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
17625         (install_handlers): Don't set the SA_RESETHAND flag.
17626
17627 2008-06-23  Bruno Haible  <bruno@clisp.org>
17628
17629         * m4/sigaction.m4: Comment fixes.
17630         * lib/signal.in.h: Likewise.
17631
17632 2008-06-23  Eric Blake  <ebb9@byu.net>
17633
17634         Fix typo.
17635         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
17636
17637         Avoid SA_ namespace.
17638         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
17639         Reported by Ralf Wildenhues.
17640
17641         Avoid test failure due to SA_RESTORER.
17642         * tests/test-sigaction.c (SA_MASK): New macro.
17643         (main): Avoid failing due to extension flags being set.
17644         Reported by Jim Meyering.
17645
17646         Revert use of sig-handler.h in sigprocmask.c.
17647         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
17648         it requires the existence of struct sigaction.
17649         * lib/sigprocmask.c (handler_t): Restore typedef.
17650         (rpl_signal, old_handlers): Use local type.
17651
17652 2008-06-22  Bruno Haible  <bruno@clisp.org>
17653
17654         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
17655         conditionally.
17656         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17657
17658 2008-06-22  Bruno Haible  <bruno@clisp.org>
17659
17660         * doc/posix-functions/siginterrupt.texi: Move note.
17661
17662         * lib/signal.in.h (SA_RESTART): New macro.
17663         * lib/sigaction.c: Update comment.
17664
17665         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
17666
17667         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
17668         (gl_PREREQ_SIGPROCMASK): Invoke it.
17669         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
17670
17671         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
17672
17673         * lib/sigprocmask.c: Update a comment.
17674
17675 2008-06-21  Eric Blake  <ebb9@byu.net>
17676
17677         Use sigaction module rather than signal().
17678         * modules/c-stack (Depends-on): Add sigaction.
17679         * modules/fatal-signal (Depends-on): Likewise.
17680         * modules/nanosleep (Depends-on): Likewise.
17681         * modules/sigprocmask (Files): Add sig-handler.h.
17682         * modules/sigaction (Files): Likewise.
17683         * lib/sig-handler.h (get_handler): New file, suggested by Paul
17684         Eggert.
17685         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
17686         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
17687         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
17688         (init_fatal_signals): Likewise.
17689         * lib/nanosleep.c (rpl_nanosleep): Likewise.
17690         (siginterrupt): Delete fallback.
17691         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
17692         instead.
17693         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
17694         siginterrupt.
17695
17696         New module sigaction, for mingw.
17697         * modules/sigaction: New module...
17698         * modules/sigaction-tests: ...and its test.
17699         * m4/sigaction.m4: New file.
17700         * lib/sigaction.c: Likewise.
17701         * tests/test-sigaction.c: Likewise.
17702         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
17703         * modules/signal (Makefile.am): Likewise.
17704         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
17705         needed.
17706         * doc/posix-headers/signal.texi (signal.h): Mention provided
17707         types.
17708         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
17709         that sigaction is preferable.
17710         * doc/posix-functions/sigaction.texi (sigaction): Mention new
17711         module.
17712         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17713         sigaction.
17714
17715         Improve robustness of sigprocmask by overriding signal.
17716         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
17717         is in use.
17718         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
17719         (SIGKILL, SIGSTOP): Provide fallbacks.
17720         (rpl_signal): Implement.
17721         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
17722         signal can be called inside handlers.
17723
17724         Fix nanosleep module on mingw.
17725         * modules/nanosleep (Depends-on): Add sys_select.
17726         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
17727
17728         Fix licensing of sigprocmask.
17729         * modules/raise (License): Relicense as LGPL.
17730
17731 2008-06-21  Bruno Haible  <bruno@clisp.org>
17732
17733         * lib/propername.c (proper_name_utf8): Don't use the transliterated
17734         result if it contains question marks.
17735         Reported by Michael Geng <linux@michaelgeng.de>.
17736
17737 2008-06-19  Bruno Haible  <bruno@clisp.org>
17738
17739         Fix CVS-ism.
17740         * doc/gnulib.texi: Include updated-stamp.texi.
17741         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
17742         (updated-stamp.texi): New rule.
17743         (gnulib.info): Depend on it.
17744         * doc/.gitignore: Add updated-stamp.texi.
17745         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
17746
17747 2008-06-19  Bruno Haible  <bruno@clisp.org>
17748
17749         * doc/Makefile (gnulib.info): Update and simplify dependencies.
17750         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
17751
17752 2008-06-19  Eric Blake  <ebb9@byu.net>
17753
17754         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
17755         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
17756         Reported by Stepan Kasal.
17757
17758 2008-06-18  Bruno Haible  <bruno@clisp.org>
17759
17760         * lib/fatal-signal.c (init_fatal_signals): Add comment.
17761         Reported by Eric Blake.
17762
17763 2008-06-18  Eric Blake  <ebb9@byu.net>
17764
17765         Work around cygwin 1.5.25 strsignal bug.
17766         * tests/test-strsignal.c: Allow for const char *.
17767         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
17768
17769 2008-06-18  Simon Josefsson  <simon@josefsson.org>
17770
17771         * users.txt: Update URL to article and add author/date
17772         information.
17773
17774 2008-06-17  Bruno Haible  <bruno@clisp.org>
17775
17776         New macro gl_DISABLE_THREADS.
17777         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
17778         if the user did not pass --enable-threads or --disable-threads option.
17779         (gl_DISABLE_THREADS): New macro.
17780         Reported by Eric Blake <ebb9@byu.net>.
17781
17782 2008-06-17  Bruno Haible  <bruno@clisp.org>
17783
17784         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
17785         when the macro ignores it.
17786         Based on a patch by Eric Blake <ebb9@byu.net>.
17787
17788 2008-06-17  Bruno Haible  <bruno@clisp.org>
17789
17790         * modules/tls (License): Change to LGPLv2+.
17791         Reported by Eric Blake.
17792
17793 2008-06-17  Eric Blake  <ebb9@byu.net>
17794
17795         Simplify c-stack prerequisites.
17796         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
17797         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
17798         no longer requires <ucontext.h> to exist.  Optimize setrlimit
17799         check.
17800         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
17801         <sys/resource.h>.
17802
17803         Move c-stack test into testsuite.
17804         * modules/c-stack-tests: New file.
17805         * lib/c-stack.c [DEBUG]: Move test program...
17806         * tests/test-c-stack.c: ...into this new file.  Skip rather than
17807         fail test if sigaltstack is lacking.
17808         * tests/test-c-stack.sh: New driver file.
17809
17810 2008-06-16  Eric Blake  <ebb9@byu.net>
17811
17812         Use raise module consistently.
17813         * modules/fatal-signal (Depends-on): Add raise.
17814         * modules/sigprocmask (Depends-on): Likewise.
17815         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
17816         * lib/sigprocmask.c (sigprocmask): Likewise.
17817         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
17818         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
17819
17820         Fix compliance bug in sigpending.
17821         * lib/sigprocmask.c (sigpending): Return pending array via
17822         parameter, not return value.
17823
17824 2008-06-14  Eric Blake  <ebb9@byu.net>
17825
17826         Improve obstack-printf test code.
17827         * tests/test-obstack-printf.c (test_function): Fix comment, and
17828         simplify usage of obstack_* in macros.  Add a test for coverage.
17829         Reported by Bruno Haible.
17830
17831 2008-06-14  Bruno Haible  <bruno@clisp.org>
17832
17833         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
17834         array size as a constant, not as a const variable.
17835         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
17836         AC_USE_SYSTEM_EXTENSIONS.
17837         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
17838         Test whether the obstack_printf function actually exists.
17839         * modules/obstack-printf (Depends-on): Add extensions.
17840         (Include): Remove obstack.h.
17841         * modules/obstack-printf-posix (Depends-on): Add extensions.
17842         (Include): Remove obstack.h.
17843
17844 2008-06-13  Eric Blake  <ebb9@byu.net>
17845
17846         Add obstack-printf and obstack-printf-posix modules.
17847         * modules/obstack-printf: New file.
17848         * modules/obstack-printf-posix: Likewise.
17849         * MODULES.html.sh (Misc): Mention them.
17850         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
17851         Likewise.
17852         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
17853         Likewise.
17854         * modules/stdio (Makefile.am): Accomodate new modules.
17855         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
17856         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
17857         Declare.
17858         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
17859         functions.
17860         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
17861         (gl_REPLACE_OBSTACK_PRINTF): New macros
17862         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
17863         * tests/test-obstack-printf.c: New file.
17864         * modules/obstack-printf-tests: Likewise.
17865         * modules/obstack-printf-posix-tests: Likewise.
17866
17867 2008-06-11  Bruno Haible  <bruno@clisp.org>
17868
17869         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
17870         * lib/open.c: Include errno.h.
17871         (open): Fail when attempting to write to a file that has a trailing
17872         slash.
17873         * tests/test-open.c (main): Test against trailing slash bug.
17874         * doc/posix-functions/open.texi: Mention the trailing slash bug.
17875
17876 2008-06-10  Bruno Haible  <bruno@clisp.org>
17877
17878         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
17879         for $? to work inside the trap command, with various /bin/sh-s.
17880         * tests/test-vc-list-files-cvs.sh: Likewise.
17881
17882 2008-06-10  Bruno Haible  <bruno@clisp.org>
17883
17884         * lib/acl-internal.h: Don't include gettext.h here.
17885         * lib/set-mode-acl.c: Include gettext.h here.
17886         * lib/copy-acl.c: Likewise.
17887
17888 2008-06-10  Bruno Haible  <bruno@clisp.org>
17889
17890         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
17891         * lib/wait-process.c (wait_subprocess): Likewise.
17892         * lib/execute.h (execute): Add termsigp argument.
17893         * lib/execute.c (execute): Likewise.
17894         * lib/csharpcomp.c (compile_csharp_using_pnet,
17895         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
17896         * lib/csharpexec.c (execute_csharp_using_pnet,
17897         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
17898         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
17899         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
17900         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
17901         is_jikes_present): Update.
17902         * lib/javaexec.c (execute_java_class): Update.
17903         * lib/javaversion.c (execute_and_read_line): Update.
17904         * NEWS: Document the changes.
17905         Reported by Eric Blake.
17906
17907 2008-06-10  Eric Blake  <ebb9@byu.net>
17908
17909         Add missing include.
17910         * tests/test-strstr.c (includes): Add <signal.h>.
17911         * tests/test-strcasestr.c (includes): Likewise.
17912         * tests/test-memmem.c (includes): Likewise.
17913
17914 2008-06-10  Bruno Haible  <bruno@clisp.org>
17915
17916         * lib/wait-process.c (wait_subprocess): Add an assertion.
17917
17918 2008-06-10  Bruno Haible  <bruno@clisp.org>
17919
17920         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
17921
17922 2008-06-10  Bruno Haible  <bruno@clisp.org>
17923
17924         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
17925         using alarm().
17926         * tests/test-strcasestr.c (main): Likewise.
17927         * tests/test-strstr.c (main): Likewise.
17928
17929 2008-06-09  Bruno Haible  <bruno@clisp.org>
17930
17931         Work around the Solaris 10 ACE ACLs ABI change.
17932         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
17933         declare if ACL_NO_TRIVIAL is present.
17934         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
17935         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
17936         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
17937         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
17938         define if ACL_NO_TRIVIAL is present.
17939         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
17940         and use the current ABI.
17941         (file_has_acl): Use same #if condition as elsewhere.
17942         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
17943         in use, and use the current ABI.
17944         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
17945         Reported by Jim Meyering.
17946
17947 2008-06-09  Eric Blake  <ebb9@byu.net>
17948
17949         Work around environments that (stupidly) ignore SIGALRM.
17950         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
17951         before using alarm().
17952         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17953         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17954         Reported by Ian Beckwith <ianb@erislabs.net>.
17955
17956         Produce autobuild blurb earlier in log.
17957         * modules/autobuild (configure.ac-early): Move AB_INIT here.
17958
17959 2008-06-09  Jim Meyering  <meyering@redhat.com>
17960         and OndÅ™ej Vašík  <ovasik@redhat.com>
17961
17962         utimens.c: correct kernel bug work-around
17963         OndÅ™ej Vašík found that the invalid return value of 280 indicates
17964         failure, not success, and the kernel bug we're trying to work
17965         around affects not just the utimensat call, but also the fallback
17966         futimens call.
17967         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
17968         not success.
17969         [HAVE_FUTIMENS]: Use the same work-around, here.
17970
17971 2008-06-09  Jim Meyering  <meyering@redhat.com>
17972
17973         add more guards around definition of ACE_-related code
17974         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
17975         ALLOW and ACE_OWNER are also defined.
17976
17977 2008-06-08  Bruno Haible  <bruno@clisp.org>
17978
17979         * lib/acl-internal.h: Add me as co-author.
17980         * lib/file-has-acl.c: Likewise.
17981         * lib/set-mode-acl.c: Likewise.
17982         * lib/copy-acl.c: Likewise.
17983
17984 2008-06-08  Bruno Haible  <bruno@clisp.org>
17985
17986         Add support for AIX ACLs.
17987         * lib/acl-internal.h (acl_nontrivial): New declaration.
17988         * lib/file-has-acl.c (acl_nontrivial): New function.
17989         (file_has_acl): Add implementation using AIX 4 ACL API.
17990         * lib/set-mode-acl.c (qset_acl): Likewise.
17991         * lib/copy-acl.c (qcopy_acl): Likewise.
17992
17993 2008-06-08  Bruno Haible  <bruno@clisp.org>
17994
17995         Add support for HP-UX ACLs.
17996         * lib/acl-internal.h (acl_nontrivial): New declaration.
17997         * lib/file-has-acl.c (acl_nontrivial): New function.
17998         (file_has_acl): Add implementation using HP-UX 11 ACL API.
17999         * lib/set-mode-acl.c (qset_acl): Likewise.
18000         * lib/copy-acl.c (qcopy_acl): Likewise.
18001
18002 2008-06-08  Bruno Haible  <bruno@clisp.org>
18003
18004         Add support for Cygwin ACLs.
18005         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
18006         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
18007         the chmod_or_fchmod call.
18008         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
18009
18010 2008-06-08  Bruno Haible  <bruno@clisp.org>
18011
18012         Fix bug with setuid modes in Solaris 10+ code.
18013         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
18014         succeeded, when the mode contains some special bits.
18015
18016 2008-06-08  Bruno Haible  <bruno@clisp.org>
18017
18018         Add support for Solaris 7..10 ACLs.
18019         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
18020         declarations.
18021         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
18022         functions.
18023         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
18024         * lib/set-mode-acl.c (qset_acl): Likewise.
18025         * lib/copy-acl.c (qcopy_acl): Likewise.
18026
18027 2008-06-08  Bruno Haible  <bruno@clisp.org>
18028
18029         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
18030         declaration.
18031         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
18032         (acl_access_nontrivial): Remove MacOS X case.
18033         (file_has_acl): Use acl_extended_nontrivial.
18034         * lib/copy-acl.c (qcopy_acl): Likewise.
18035
18036 2008-06-08  Bruno Haible  <bruno@clisp.org>
18037
18038         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
18039
18040 2008-06-08  Jim Meyering  <meyering@redhat.com>
18041
18042         * modules/acl (Maintainer): Add Bruno Haible.
18043
18044 2008-06-07  Bruno Haible  <bruno@clisp.org>
18045
18046         Improve support for Tru64 ACLs.
18047         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
18048         ACL on OSF/1.
18049
18050 2008-06-07  Bruno Haible  <bruno@clisp.org>
18051
18052         Add support for MacOS X ACLs.
18053         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
18054         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
18055         * lib/set-mode-acl.c (qset_acl): Likewise.
18056         * lib/copy-acl.c (qcopy_acl): Likewise.
18057
18058 2008-06-07  Bruno Haible  <bruno@clisp.org>
18059
18060         Fix memory leak introduced on 2008-05-22.
18061         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
18062         use.
18063
18064 2008-06-07  Bruno Haible  <bruno@clisp.org>
18065
18066         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
18067         to construct an empty ACL.
18068
18069 2008-06-07  Bruno Haible  <bruno@clisp.org>
18070
18071         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
18072         precisely.
18073         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
18074
18075 2008-06-07  Bruno Haible  <bruno@clisp.org>
18076
18077         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
18078         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
18079
18080 2008-06-07  Bruno Haible  <bruno@clisp.org>
18081
18082         * doc/posix-functions/_setjmp.texi: Explain the use of this function
18083         regardless of POSIX.
18084         * doc/posix-functions/_longjmp.texi: Likewise.
18085         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
18086         SystemV platform in this case.
18087
18088 2008-06-06  Eric Blake  <ebb9@byu.net>
18089
18090         Document abort() bugs.
18091         * doc/posix-functions/abort.texi (abort): Mention anomalies.
18092
18093         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
18094         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
18095         sigsetjmp.
18096         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
18097         siglongjmp, but only as a macro.
18098         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
18099         is obsolete.
18100         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
18101
18102         Tweak documentation to cover cygwin argz bugs.
18103         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
18104         argz bug fix; no code change needed since no cygwin releases
18105         occurred between the last fix and the bug being tested.
18106         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
18107         module and recently fixed cygwin bugs.
18108         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
18109         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
18110         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
18111         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
18112         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
18113         Likewise.
18114         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
18115         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
18116         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
18117         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
18118         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
18119         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
18120         Likewise.
18121
18122         Avoid gcc warning on cygwin.
18123         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
18124         !ACL_NO_TRIVIAL]: Avoid unused variable.
18125
18126 2008-06-05  Eric Blake  <ebb9@byu.net>
18127
18128         Be tolerant of UNKNOWN version in gnulib-tool test dir.
18129         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
18130         git-version-gen fails to come up with a version.
18131         Reported by Simon Josefsson.
18132
18133 2008-06-05  Jim Meyering  <meyering@redhat.com>
18134             Paul Eggert  <eggert@cs.ucla.edu>
18135
18136         utimens.c: work around a probable Linux kernel bug
18137         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
18138         appears to be a kernel bug that causes utimensat to return 280
18139         instead of 0, indicating success.
18140
18141 2008-06-04  Bruno Haible  <bruno@clisp.org>
18142
18143         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
18144         2008-06-01 commit.
18145
18146 2008-06-04  Bruno Haible  <bruno@clisp.org>
18147
18148         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
18149         * lib/file-has-acl.c (acl_access_nontrivial): New function.
18150         (file_has_acl): Use it. Save errno afterwards.
18151         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
18152
18153 2008-06-03  Bruno Haible  <bruno@clisp.org>
18154
18155         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
18156         draft code. Simplify #ifs.
18157         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
18158         Put Solaris code after POSIX-draft code. Fix comments regarding
18159         Solaris 10, HP-UX. Mention Cygwin.
18160         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
18161
18162 2008-06-03  Eric Blake  <ebb9@byu.net>
18163
18164         Provide fallback for older kernels.
18165         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
18166         Provide runtime fallback if kernel lacks support.
18167         Reported by Mike Frysinger.
18168
18169 2008-06-02  Bruno Haible  <bruno@clisp.org>
18170
18171         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
18172         it exists.
18173
18174 2008-06-02  Bruno Haible  <bruno@clisp.org>
18175
18176         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
18177         * lib/copy-acl.c (qcopy_acl): Update comment.
18178
18179 2008-06-02  Bruno Haible  <bruno@clisp.org>
18180
18181         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
18182         like ACL APIs.
18183
18184 2008-06-02  Bruno Haible  <bruno@clisp.org>
18185
18186         * tests/test-file-has-acl.sh: Use different code for Cygwin.
18187         * tests/test-set-mode-acl.sh: Likewise.
18188         * tests/test-copy-acl.sh: Likewise.
18189         * tests/test-copy-file.sh: Likewise.
18190
18191 2008-06-02  Bruno Haible  <bruno@clisp.org>
18192
18193         * tests/test-file-has-acl.sh: Remove unused code.
18194
18195 2008-06-01  Bruno Haible  <bruno@clisp.org>
18196
18197         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
18198         (copy_acl): Just a wrapper around qcopy_acl that emits the error
18199         messages.
18200         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
18201
18202 2008-06-01  Bruno Haible  <bruno@clisp.org>
18203
18204         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
18205         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
18206         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
18207         APIs.
18208         * modules/acl-tests (configure.ac): Remove tests now contained in
18209         m4/acl.m4.
18210
18211 2008-06-02  Jim Meyering  <meyering@redhat.com>
18212
18213         announce-gen: use a better key-server host name
18214         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
18215         it may be more consistently reliable.  Suggested by Werner Koch
18216         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
18217
18218 2008-06-01  Bruno Haible  <bruno@clisp.org>
18219
18220         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
18221         Reported by Voroskoi Andras <voroskoi@gmail.com>.
18222
18223 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
18224
18225         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
18226
18227 2008-06-01  Bruno Haible  <bruno@clisp.org>
18228
18229         New ACL tests.
18230         * tests/test-file-has-acl.sh: New file.
18231         * tests/test-file-has-acl.c: New file.
18232         * tests/test-set-mode-acl.sh: New file.
18233         * tests/test-set-mode-acl.c: New file.
18234         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
18235         * tests/test-copy-acl.c: New file.
18236         * modules/acl-tests: New file, based on modules/copy-file-tests.
18237         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
18238         (Depends-on): Add acl-tests.
18239         (configure.ac): Remove checks.
18240         (Makefile.am): Don't create test-sameacls program here any more.
18241
18242 2008-06-01  Bruno Haible  <bruno@clisp.org>
18243
18244         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
18245         * tests/test-sameacls.c: Include progname.h.
18246         (main): Invoke set_program_name. Portability fixes for MacOS X,
18247         Solaris, HP-UX.
18248
18249 2008-06-01  Bruno Haible  <bruno@clisp.org>
18250
18251         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
18252         function.
18253         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
18254
18255 2008-06-01  Bruno Haible  <bruno@clisp.org>
18256
18257         * modules/rpmatch (Depends-on): Add strdup.
18258
18259 2008-06-01  Bruno Haible  <bruno@clisp.org>
18260
18261         * lib/pipe.c: Include unistd-safer.h.
18262         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
18263         * modules/pipe (Depends-on): Add unistd-safer.
18264
18265 2008-05-30  Simon Josefsson  <simon@josefsson.org>
18266
18267         * modules/autobuild (configure.ac): Call AB_INIT.
18268
18269 2008-05-30  Simon Josefsson  <simon@josefsson.org>
18270
18271         * tests/test-getaddrinfo.c: Don't print debug messages by default.
18272         Suggested by Bruno Haible <bruno@clisp.org>.
18273
18274 2008-05-30  Simon Josefsson  <simon@josefsson.org>
18275
18276         * tests/test-base64.c: Cast size_t to unsigned long when invoking
18277         printf.  Use %lu instead of %d.  Reported by Bruno Haible
18278         <bruno@clisp.org>.
18279
18280 2008-05-29  Eric Blake  <ebb9@byu.net>
18281
18282         Prefer new POSIX 200x interfaces over futimesat.
18283         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
18284         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
18285         when available.
18286         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
18287
18288 2008-05-28  Bruno Haible  <bruno@clisp.org>
18289
18290         * modules/stpcpy (License): Change to LGPLv2+.
18291         Requested by David Lutterkort <dlutter@redhat.com>.
18292
18293 2008-05-27  Bruno Haible  <bruno@clisp.org>
18294
18295         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
18296         current mingw.
18297         Reported by Jose E. Marchesi <jemarch@gnu.org>.
18298
18299 2008-05-27  Bruno Haible  <bruno@clisp.org>
18300
18301         * modules/iconv_open (Link): New section, from module 'iconv'.
18302         * modules/striconv (Link): Likewise.
18303         * modules/striconveh (Link): Likewise.
18304         * modules/xstriconv (Link): Likewise.
18305         * modules/unicodeio (Link): Likewise.
18306         * modules/propername (Link): Likewise.
18307         Reported by Jim Meyering.
18308
18309 2008-05-26  Jim Meyering  <meyering@redhat.com>
18310
18311         sha256: do not artificially restrict buffer length to be < 2^32
18312         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
18313         uint32_t to size_t.
18314         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
18315         to match.
18316
18317         avoid unaligned access errors, e.g., on sparc
18318         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
18319         direct access through a possibly-unaligned uint64* pointer.
18320         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
18321         direct access through a possibly-unaligned uint32* pointer.
18322         Prompted by this patch from Tom "spot" Callaway:
18323         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
18324
18325         sha512.c: fix typo in comment
18326         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
18327
18328 2008-05-25  Bruno Haible  <bruno@clisp.org>
18329
18330         * lib/set-mode-acl.c: Renamed from lib/acl.c.
18331         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
18332         (Makefile.am): Update lib_SOURCES.
18333
18334 2008-05-25  Bruno Haible  <bruno@clisp.org>
18335
18336         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
18337
18338 2008-05-25  Jim Meyering  <meyering@redhat.com>
18339
18340         useless-if-before-free: freed expr may have white-space differences
18341         * build-aux/useless-if-before-free: Recognize cases in which the
18342         freed expression differs from the tested one in embedded white
18343         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
18344         $1 was used, so we can't make any regexp shy.  Improved tests now
18345         detect this.
18346
18347         useless-if-before-free: accept white space in the expression.
18348         * build-aux/useless-if-before-free: For now, any white space
18349         in the expression must be identical in the free argument.
18350
18351         useless-if-before-free: efficiency tweak
18352         * build-aux/useless-if-before-free: Make the expression-matching
18353         regexp "shy".
18354         Make the *outer* regexp shy, not the expr-matching one.
18355
18356         update code-in-comment to accept cast of free arg
18357         * build-aux/useless-if-before-free: Update regexp.
18358
18359 2008-05-25  Bruno Haible  <bruno@clisp.org>
18360
18361         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
18362         * modules/copy-file-tests (Files, Makefile.am): Update.
18363         * tests/test-copy-file.c (func_test_copy): Update.
18364
18365 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
18366
18367         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
18368
18369 2008-05-23  Bruno Haible  <bruno@clisp.org>
18370
18371         Improve support for ACLs on OSF/1.
18372         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
18373         Remove fallback for unknown flavors of ACLs.
18374
18375 2008-05-22  Bruno Haible  <bruno@clisp.org>
18376
18377         Add support for ACLs on OSF/1.
18378         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
18379         replacements.
18380         (acl_free_text): New macro fallback.
18381         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
18382         acl_free.
18383         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
18384         acl_free_text function. Require AC_C_INLINE.
18385
18386 2008-05-22  Bruno Haible  <bruno@clisp.org>
18387
18388         Make copy_acl work on MacOS X 10.5.
18389         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
18390         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
18391         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
18392         If MODE_INSIDE_ACL, don't assume that every system has the same text
18393         representation for ACLs as FreeBSD.
18394         * lib/copy-acl.c (copy_acl): Add support for platforms with
18395         !MODE_INSIDE_ACL.
18396         * lib/file-has-acl.c (file_has_acl): Likewise.
18397         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
18398         FreeBSD, MacOS X, or IRIX, respectively.
18399
18400 2008-05-22  Bruno Haible  <bruno@clisp.org>
18401
18402         * lib/acl.h: Don't include <sys/acl.h>.
18403         (GETACLCNT): Move fallback to lib/acl-internal.h.
18404         * lib/acl-internal.h: Include <sys/acl.h> here.
18405         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
18406
18407 2008-05-22  Bruno Haible  <bruno@clisp.org>
18408
18409         Split off copy_acl function to separate file.
18410         * lib/copy-acl.c: New file, extracted from lib/acl.c.
18411         * lib/acl.c (copy_acl): Moved function to separate file.
18412         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
18413         * modules/acl (Files): Add lib/copy-acl.c.
18414         (Makefiles.am): Augment lib_SOURCES.
18415
18416 2008-05-22  Bruno Haible  <bruno@clisp.org>
18417
18418         * modules/copy-file-tests: New file.
18419         * tests/test-copy-file.sh: New file.
18420         * tests/test-copy-file.c: New file.
18421         * tests/test-copy-file-sameacls.c: New file.
18422
18423 2008-05-22  Eric Blake  <ebb9@byu.net>
18424
18425         Avoid gcc warning.
18426         * tests/test-memcmp.c (main): Pass NULL indirectly.
18427
18428 2008-05-21  Bruno Haible  <bruno@clisp.org>
18429
18430         Add reference doc about ACLs.
18431         * doc/acl-resources.txt: New file.
18432         * doc/acl-cygwin.txt: New file.
18433
18434 2008-05-21  Bruno Haible  <bruno@clisp.org>
18435
18436         Avoid one more warning from gcc.
18437         * lib/vasnprintf.c (IF_LINT): Update comments.
18438         (VASNPRINTF): Use it also for the 'prefix' array initializer.
18439
18440 2008-05-21  Jim Meyering  <meyering@redhat.com>
18441
18442         avoid a warning from gcc
18443         * lib/vasnprintf.c (IF_LINT): Define.
18444         (scale10_round_decimal_long_double):
18445         Use it to avoid a "may be used uninitialized" warning.
18446         (scale10_round_decimal_double): Likewise.
18447
18448 2008-05-21  Simon Josefsson  <simon@josefsson.org>
18449
18450         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
18451         declared.
18452
18453 2008-05-20  Bruno Haible  <bruno@clisp.org>
18454
18455         * tests/test-memcmp.c (main): Test also the sign of the result. Test
18456         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
18457
18458 2008-05-20  Simon Josefsson  <simon@josefsson.org>
18459
18460         * modules/memcmp-tests: New file.
18461         * tests/test-memcmp.c: New file.
18462
18463 2008-05-19  Bruno Haible  <bruno@clisp.org>
18464
18465         * modules/propername (Notice, configure.ac): Put quoted "..." into
18466         --keyword option.
18467         * lib/propername.h: Update comments accordingly.
18468         Reported by Eric Blake.
18469
18470 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
18471
18472         * modules/getpass-gnu (Depends-on): Add fseeko.
18473
18474 2008-05-19  Simon Josefsson  <simon@josefsson.org>
18475
18476         * modules/base64-tests: New file.
18477
18478 2008-05-19  Bo Borgerson <gigabo@gmail.com>
18479
18480         * lib/base64.c (base64_decode_ctx): If a decode context structure
18481         was passed in use it to ignore newlines.  If a context structure
18482         was _not_ passed in, continue to treat newlines as garbage (this
18483         is the historical behavior).  Formerly base64_decode.
18484         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
18485         takes a decode context structure.
18486         * lib/base64.h (base64_decode): Macro for four-argument calls.
18487         (base64_decode_alloc): Likewise.
18488         * lib/base64.c (base64_decode_ctx): If a decode context structure
18489         was passed in use it to ignore newlines.  If a context structure
18490         was _not_ passed in, continue to treat newlines as garbage (this
18491         is the historical behavior).  Formerly base64_decode.
18492         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
18493         takes a decode context structure.
18494         * lib/base64.h (base64_decode): Macro for four-argument calls.
18495         (base64_decode_alloc): Likewise.
18496
18497 2008-05-19  Jim Meyering  <meyering@redhat.com>
18498
18499         avoid a warning from gcc
18500         * lib/trim.c (IF_LINT): Define.
18501         (trim2): Use it to avoid a "may be used uninitialized" warning.
18502
18503         Fix doc typo.
18504         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
18505
18506 2008-05-19  Bruno Haible  <bruno@clisp.org>
18507
18508         * doc/glibc-functions/getpass.texi: Document limits of other
18509         implementations.
18510
18511 2008-05-19  Simon Josefsson  <simon@josefsson.org>
18512             Bruno Haible <bruno@clisp.org>
18513
18514         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
18515
18516 2008-05-18  Bruno Haible  <bruno@clisp.org>
18517
18518         * modules/propername: New file, from GNU gettext.
18519         * lib/propername.h: New file, from GNU gettext.
18520         * lib/propername.c: New file, from GNU gettext.
18521         * MODULES.html.sh (Internationalization functions): Add propername.
18522
18523 2008-05-16  Jim Meyering  <meyering@redhat.com>
18524             Bruno Haible  <bruno@clisp.org>
18525
18526         Avoid some warnings from "gcc -Wshadow".
18527         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
18528
18529 2008-05-15  Eric Blake  <ebb9@byu.net>
18530
18531         Extend previous patch to cygwin 1.7.0.
18532         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
18533         fast implementation in cygwin >= 1.7.0.
18534         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18535         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18536
18537 2008-05-15  Bruno Haible  <bruno@clisp.org>
18538
18539         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
18540         implementation in glibc >= 2.9.
18541         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18542         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18543
18544 2008-05-15  Bruno Haible  <bruno@clisp.org>
18545
18546         * MODULES.html.sh (Internationalization functions): Remove linebreak.
18547         (Unicode string functions): Add unilbrk/*.
18548         Reported by Karl Berry.
18549
18550 2008-05-15  Eric Blake  <ebb9@byu.net>
18551
18552         Fix violation of <stdbool.h> replacement in regex.
18553         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
18554         * lib/regexec.c (re_search_internal): Likewise.
18555         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
18556
18557 2008-05-15  Jim Meyering  <meyering@redhat.com>
18558
18559         avoid distracting test output when git or cvs is not found
18560         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
18561         * tests/test-vc-list-files-git.sh: Likewise.
18562
18563 2008-05-15  Eric Blake  <ebb9@byu.net>
18564
18565         Glibc finally accepted the memmem speedup code, bugzilla #5514.
18566         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
18567         glibc version.
18568         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18569         * doc/posix-functions/strstr.texi (strstr): Likewise.
18570         * lib/str-two-way.h (MAX): Sychronize with glibc.
18571
18572 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
18573
18574         * lib/regcomp.c (optimize_utf8): Add a note on why we test
18575         opr.ctx_type.
18576         (calc_first): Initialize constraint field.
18577         (duplicate_node_closure): Use it instead of special casing ANCHORS.
18578         Fix grammar.
18579         (duplicate_node): Merge constraint field for all node types.
18580         (calc_eclosure_iter): Look at constraint field for all node types.
18581         * lib/regex_internal.c (create_cd_newstate): Don't look at
18582         opr.ctx_type.
18583
18584 2008-05-14  Bruno Haible  <bruno@clisp.org>
18585
18586         Help GCC to do better code generation.
18587         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
18588         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
18589         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
18590         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
18591         Declare with attribute 'malloc' if supported.
18592
18593 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
18594
18595         use "echo STR|wc -c" rather than unportable "expr length STR"
18596         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
18597         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
18598
18599 2008-05-14  Jim Meyering  <meyering@redhat.com>
18600
18601         use dd ibs=$n count=1 ... rather than less-portable head -c$n
18602         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
18603         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
18604         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
18605         via Collin Lasse.
18606
18607 2008-05-14  Eric Blake  <ebb9@byu.net>
18608
18609         Avoid quadratic growth in gl_LIBSOURCES.
18610         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
18611         Suggested by Bruno Haible.
18612
18613         Test xmemdup0.
18614         * modules/xmemdup0-tests: New file.
18615         * tests/test-xmemdup0.c: Likewise.
18616
18617 2008-05-13  Eric Blake  <ebb9@byu.net>
18618
18619         Split xmemdup0 into its own module.
18620         * modules/xmemdup0: New file.
18621         * lib/xmemdup0.h: Likewise.
18622         * lib/xmemdup0.c: Likewise.
18623         * MODULES.html.sh (Memory management functions): Add xmemdup0.
18624         * lib/xalloc.h (xmemdup0): Remove.
18625         * lib/xmalloc.c (xmemdup0): Likewise.
18626
18627 2008-05-13  Eric Blake  <ebb9@byu.net>
18628             Bruno Haible  <bruno@clisp.org>
18629
18630         Reduce number of forks required during autoconf.
18631         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
18632         and gl_LIBSOURCES_DIR.
18633         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
18634         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
18635         m4_syscmd per file.
18636         <m4_foreach_w>: Move...
18637         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
18638
18639 2008-05-13  Eric Blake  <ebb9@byu.net>
18640
18641         * gnulib-tool: Fix various comment typos.
18642
18643 2008-05-12  Bruno Haible  <bruno@clisp.org>
18644
18645         Tailor the linebreaking algorithm.
18646         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
18647
18648 2008-05-12  Bruno Haible  <bruno@clisp.org>
18649
18650         Update to Unicode 5.0.0.
18651         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
18652         LBP_JV, LBP_JT. Redistribute values.
18653         (unilbrk_table): Change size.
18654         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
18655         Unicode TR#14 rev. 22.
18656         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
18657         LBP_JV, LBP_JT. Redistribute values.
18658         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
18659         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
18660         Update.
18661         * lib/unilbrk/lbrkprop1.h: Regenerated.
18662         * lib/unilbrk/lbrkprop2.h: Regenerated.
18663         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
18664         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
18665         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
18666         Likewise.
18667         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
18668         Likewise.
18669         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
18670         result.
18671         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18672         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18673         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
18674         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
18675         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
18676         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
18677
18678 2008-05-11  Bruno Haible  <bruno@clisp.org>
18679
18680         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
18681
18682 2008-05-11  Bruno Haible  <bruno@clisp.org>
18683
18684         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
18685         * modules/unilbrk/gen-lbrk: New file.
18686
18687 2008-05-11  Bruno Haible  <bruno@clisp.org>
18688
18689         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
18690         * m4/sha512.m4 (gl_SHA512): Likewise.
18691
18692 2008-05-11  Jim Meyering  <meyering@redhat.com>
18693
18694         New modules: crypto/sha256, crypto/sha512 (from coreutils)
18695         * modules/crypto/sha256: New file.
18696         * modules/crypto/sha512: Likewise.
18697         * lib/sha256.c: Likewise.
18698         * lib/sha256.h: Likewise.
18699         * lib/sha512.c: Likewise.
18700         * lib/sha512.h: Likewise.
18701         * lib/u64.h: Likewise.
18702         * m4/sha256.m4: Likewise.
18703         * m4/sha512.m4: Likewise.
18704         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
18705
18706 2008-05-10  Bruno Haible  <bruno@clisp.org>
18707
18708         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
18709         (Input/Output <stdio.h>): Add xprintf.
18710         (Signal handling <signal.h>): Add strsignal.
18711         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
18712         (Core language properties): Add func.
18713         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
18714         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
18715         strings.
18716         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
18717         (Input/output): New section.
18718         (File system functions): Add openat-die, stat-macros.
18719         (Networking functions): Add sockets.
18720         (Unicode string functions): Add unictype/*.
18721         (Support for building libraries and executables): Add gperf.
18722         (Support for building documentation): Add agpl-3.0.
18723         (Misc): Add nocrash.
18724
18725 2008-05-10  Bruno Haible  <bruno@clisp.org>
18726
18727         * modules/unictype/gen-ctype: New file.
18728
18729 2008-05-10  Jim Meyering  <meyering@redhat.com>
18730
18731         Make chdir-safer.c more efficient on a system with no symlinks.
18732         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
18733         also if ELOOP is zero.  Suggested by Bruno Haible.
18734
18735         Make chdir-safer.c slightly safer.
18736         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
18737         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
18738
18739         Avoid compile failure on systems without ELOOP (like mingw).
18740         * lib/chdir-safer.c (ELOOP): Define if not already defined.
18741         Reported by Bruno Haible.
18742
18743 2008-05-10  Bruno Haible  <bruno@clisp.org>
18744
18745         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
18746         (is_utf8_encoding): Use a case-insensitive comparison.
18747         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
18748         streq.
18749
18750 2008-05-10  Bruno Haible  <bruno@clisp.org>
18751
18752         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
18753         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
18754         * lib/unilbrk/ulc-common.h (iconv_string_length,
18755         iconv_string_keeping_offsets): Remove declarations.
18756         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
18757         Don't include <iconv.h>, streq.h, xsize.h.
18758         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
18759         conversion.
18760         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
18761         <iconv.h>, streq.h, xsize.h.
18762         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
18763         conversion.
18764         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
18765         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
18766         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
18767         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
18768
18769 2008-05-10  Bruno Haible  <bruno@clisp.org>
18770
18771         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
18772         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
18773
18774         * modules/unilbrk/u32-width-linebreaks-tests: New file.
18775         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
18776
18777         * modules/unilbrk/u16-width-linebreaks-tests: New file.
18778         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
18779
18780         * modules/unilbrk/u8-width-linebreaks-tests: New file.
18781         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
18782
18783         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
18784         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
18785
18786         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
18787         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
18788
18789         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
18790         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
18791
18792         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
18793         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
18794
18795 2008-05-10  Bruno Haible  <bruno@clisp.org>
18796
18797         Split up 'linebreak' module.
18798         * lib/unilbrk.h: New file, based on lib/linebreak.h.
18799         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
18800         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
18801         modifications.
18802         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
18803         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
18804         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
18805         lib/linebreak.c.
18806         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
18807         lib/linebreak.c.
18808         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
18809         lib/linebreak.c.
18810         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
18811         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
18812         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
18813         lib/linebreak.c.
18814         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
18815         lib/linebreak.c.
18816         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
18817         lib/linebreak.c.
18818         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
18819         lib/linebreak.c.
18820         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
18821         lib/linebreak.c.
18822         * modules/unilbrk/base: New file.
18823         * modules/unilbrk/tables: New file.
18824         * modules/unilbrk/u8-possible-linebreaks: New file.
18825         * modules/unilbrk/u16-possible-linebreaks: New file.
18826         * modules/unilbrk/u32-possible-linebreaks: New file.
18827         * modules/unilbrk/ulc-common: New file.
18828         * modules/unilbrk/ulc-possible-linebreaks: New file.
18829         * modules/unilbrk/u8-width-linebreaks: New file.
18830         * modules/unilbrk/u16-width-linebreaks: New file.
18831         * modules/unilbrk/u32-width-linebreaks: New file.
18832         * modules/unilbrk/ulc-width-linebreaks: New file.
18833         * lib/linebreak.h: Remove file.
18834         * lib/linebreak.c: Remove file.
18835         * m4/linebreak.m4: Remove file.
18836         * modules/linebreak: Remove file.
18837         * NEWS: Mention the changes.
18838
18839 2008-05-09  Eric Blake  <ebb9@byu.net>
18840
18841         Add xmemdup0.
18842         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
18843         implementation.
18844         * lib/xmalloc.c (xmemdup0): New C implementation.
18845
18846 2008-05-08  Bruno Haible  <bruno@clisp.org>
18847
18848         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
18849
18850 2008-05-07  Eric Blake  <ebb9@byu.net>
18851
18852         Support cross-compilation of <wctype.h>.
18853         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
18854         AC_CACHE_CHECK.
18855
18856 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
18857
18858         * build-aux/vc-list-files: Add support for bzr.
18859
18860 2008-05-03  Jim Meyering  <meyering@redhat.com>
18861
18862         avoid failed assertion with tight malloc
18863         * tests/test-getndelim2.c: Correct an off-by-one assertion.
18864
18865 2008-05-03  Simon Josefsson  <simon@josefsson.org>
18866
18867         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
18868         are needed from arpa/inet.h.
18869         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
18870         Reported by Bruno Haible.
18871
18872 2008-05-02  Jim Meyering  <meyering@redhat.com>
18873
18874         avoid compilation error on FreeBSD 6
18875         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
18876
18877 2008-05-01  Jim Meyering  <meyering@redhat.com>
18878
18879         useless-if-before-free: correct --help's exit status description
18880         * build-aux/useless-if-before-free (usage): Like grep, exit 0
18881         for one or more matches, etc.  Reported by Bruno Haible.
18882
18883         vc-list-files: make the stand-alone gnulib test work
18884         * modules/vc-list-files-tests (configure.ac):
18885         Define and AC_SUBST abs_aux_dir.
18886         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
18887         $(abs_top_srcdir) to each script and having each of them
18888         duplicate the work of setting PATH, set PATH here, using
18889         the new variable, abs_aux_dir instead.
18890         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
18891         * tests/test-vc-list-files-git.sh: Likewise.
18892         Reported by Bruno Haible.
18893
18894 2008-05-01  Bruno Haible  <bruno@clisp.org>
18895
18896         * lib/getndelim2.c (getndelim2): Fix newsize computation during
18897         reallocation. Rename 'done' to 'found_delimiter'.
18898
18899 2008-05-01  Jim Meyering  <meyering@redhat.com>
18900
18901         vc-list-files: accommodate /bin/sh like the one from Solaris 10
18902         * build-aux/vc-list-files: Use `...`, not $(...).
18903
18904 2008-04-30  Jim Meyering  <meyering@redhat.com>
18905
18906         add tests for vc-list-files
18907         * modules/vc-list-files-tests: New module.
18908         * tests/test-vc-list-files-cvs.sh: New file.
18909         * tests/test-vc-list-files-git.sh: New file.
18910
18911         avoid a warning from gcc
18912         * lib/getndelim2.c (IF_LINT): Define.
18913         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
18914
18915         vc-list-files: work properly with build-aux/cvsu, too
18916         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
18917         to all cvs-based clauses.
18918
18919         vc-list-files: work properly in the CVS+awk case, too
18920         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
18921
18922         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
18923         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
18924         take more than one file argument, so .  Add quotes, just in case $dir
18925         ever contains a shell meta-character.  Prompted by Soren Hansen in
18926         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
18927
18928 2008-04-29  Eric Blake  <ebb9@byu.net>
18929
18930         Optimize getndelim2 to use block operations when possible.
18931         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
18932         freadseek, and memchr2.
18933         * lib/getndelim2.c (getndelim2): Use them for block reads.
18934
18935 2008-04-29  Bruno Haible  <bruno@clisp.org>
18936
18937         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
18938         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18939         * modules/inet_ntop (Depends-on): Add extensions.
18940         * modules/inet_pton (Depends-on): Likewise.
18941         Reported by Simon Josefsson.
18942
18943 2008-04-29  Jim Meyering  <meyering@redhat.com>
18944
18945         When the is more than one match in a block, match all of them.
18946         * build-aux/useless-if-before-free: Iterate through each block
18947         until there are no more matches.
18948
18949         Fix broken useless-if-before-free script.
18950         * build-aux/useless-if-before-free: Fix typo: missing "?" after
18951         the expression to match cast of argument to free-like function.
18952
18953 2008-04-29  Eric Blake  <ebb9@byu.net>
18954
18955         Use new header.
18956         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
18957
18958 2008-04-29  Jim Meyering  <meyering@redhat.com>
18959
18960         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
18961         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
18962         by gnulib to exist and to declare e.g., inet_ntop.
18963         Don't include "inet_ntop.h", now removed.
18964
18965         * m4/arpa_inet_h.m4: Remove trailing blanks.
18966
18967 2008-04-29  Eric Blake  <ebb9@byu.net>
18968
18969         Silence valgrind on safe reads beyond potential array bounds.
18970         * lib/rawmemchr.valgrind: New file.
18971         * lib/strchrnul.valgrind: Likewise.
18972         * modules/rawmemchr (Files): Distribute new file.
18973         * modules/strchrnul (Files): Likewise.
18974         Suggested by Bruno Haible.
18975
18976 2008-04-29  Bruno Haible  <bruno@clisp.org>
18977
18978         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
18979         (inet_ntop, inet_pton): Change portability warning's wording.
18980         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
18981         Invoke gl_CHECK_NEXT_HEADERS.
18982         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
18983         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
18984         set ARPA_INET_H.
18985         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18986         * modules/arpa_inet (Description): No longer only for systems that
18987         lack it.
18988         (Depends-on): Add include_next.
18989         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
18990         HAVE_ARPA_INET_H.
18991
18992 2008-04-29  Jim Meyering  <meyering@redhat.com>
18993
18994         * modules/mkdir (License): Re-license as LGPLv2+.
18995
18996 2008-04-29  Bruno Haible  <bruno@clisp.org>
18997
18998         * modules/rawmemchr (Maintainer): Set to Eric.
18999         * modules/strchrnul (Maintainer): Likewise.
19000
19001 2008-04-29  Simon Josefsson  <simon@josefsson.org>
19002
19003         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
19004         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
19005
19006         * modules/arpa_inet (arpa/inet.h): Use them.
19007
19008 2008-04-28  Eric Blake  <ebb9@byu.net>
19009
19010         Test getndelim2.
19011         * modules/getndelim2-tests: New file.
19012         * tests/test-getndelim2.c: Likewise.
19013         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
19014         stream.
19015         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
19016
19017         * MODULES.html.sh: Document new module.
19018
19019 2008-04-20  Bruno Haible  <bruno@clisp.org>
19020
19021         * lib/c-stack.c (die): Use raise.
19022         * modules/c-stack (Depends-on): Add raise.
19023
19024 2008-04-28  Bruno Haible  <bruno@clisp.org>
19025
19026         Expect rpmatch to be declared.
19027         * lib/yesno.c (rpmatch): Remove declaration.
19028
19029         Declare rpmatch.
19030         * lib/stdlib.in.h (rpmatch): New declaration.
19031         * lib/rpmatch.c: Include <stdlib.h> first.
19032         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
19033         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
19034         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
19035         HAVE_RPMATCH.
19036         * modules/rpmatch (Depends-on): Add stdlib, extensions.
19037         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19038         (Include): Set to <stdlib.h>.
19039         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
19040         HAVE_RPMATCH.
19041         * NEWS: Document the change.
19042
19043 2008-04-28  Bruno Haible  <bruno@clisp.org>
19044
19045         Change rpmatch to use nl_langinfo when appropriate.
19046         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
19047         (N_): New macro.
19048         (localized_pattern): New function/macro.
19049         (try): Remove match, nomatch arguments. Copy the pattern into safe
19050         memory before caching it.
19051         (rpmatch): Use localized_pattern. Add translator comments.
19052         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
19053         Suggested by Eric Blake.
19054         * modules/rpmatch (Depends-on): Add stdbool.
19055
19056 2008-04-28  Eric Blake  <ebb9@byu.net>
19057
19058         Add rawmemchr module, matching glibc.
19059         * modules/string (Makefile.am): New indicator.
19060         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
19061         * lib/string.in.h (rawmemchr): Declare when appropriate.
19062         * modules/rawmemchr: New file.
19063         * m4/rawmemchr.m4: Likewise.
19064         * lib/rawmemchr.c: Likewise.
19065         * modules/rawmemchr-tests: Likewise.
19066         * tests/test-rawmemchr.c: Likewise.
19067         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
19068         module.
19069         * modules/strchrnul (Depends-on): Add rawmemchr.
19070         * lib/strchrnul.c (strchrnul): Optimize a corner case.
19071
19072         Whitespace cleanup.
19073         * tests/test-strchrnul.c: Reindent.
19074         * lib/strchrnul.c: Likewise.
19075
19076         Optimize and test strchrnul.
19077         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
19078         * modules/strchrnul-tests: New file.
19079         * tests/test-strchrnul.c: Likewise.
19080
19081         Remove intprops dependency.
19082         * modules/memchr (Depends-on): Remove intprops.
19083         * modules/memrchr (Depends-on): Likewise.
19084         * modules/memchr2 (Depends-on): Likewise.
19085         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
19086         * lib/memrchr.c (__memrchr): Likewise.
19087         * lib/memrchr2.c (memchr2): Likewise.
19088         Reported by Simon Josefsson.
19089
19090 2008-04-28  Simon Josefsson  <simon@josefsson.org>
19091
19092         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
19093         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19094
19095 2008-04-28  Simon Josefsson  <simon@josefsson.org>
19096
19097         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
19098
19099         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
19100
19101         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
19102
19103         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
19104         declarations.
19105         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
19106
19107         * m4/inet_pton.m4: Don't check for header files.
19108
19109         * m4/inet_ntop.m4: Don't check for header files.
19110
19111 2008-04-28  Simon Josefsson  <simon@josefsson.org>
19112
19113         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
19114         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
19115         trigger for cygwin).
19116         Reported by Bruno Haible  <bruno@clisp.org>.
19117
19118 2008-04-28  Bruno Haible  <bruno@clisp.org>
19119
19120         * doc/posix-functions/strdup.texi: Mention mingw problem.
19121
19122 2008-04-27  Bruno Haible  <bruno@clisp.org>
19123
19124         * modules/stat-time-tests (Depends-on): Add sleep.
19125         * tests/test-stat-time.c (force_unlink): New function.
19126         (cleanup): Use it.
19127         (test_mtime): Remove the ctime related tests.
19128         (test_ctime): New function, containing the ctime related tests.
19129         (main): Call test_ctime, except on native Windows platforms.
19130
19131 2008-04-27  Bruno Haible  <bruno@clisp.org>
19132
19133         * lib/rpmatch.c (rpmatch): Add some comments.
19134         Reported by James Youngman <jay@gnu.org>.
19135
19136 2008-04-27  Bruno Haible  <bruno@clisp.org>
19137
19138         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
19139         quiet NaNs.
19140
19141 2008-04-27  Bruno Haible  <bruno@clisp.org>
19142
19143         Make test-yesno.sh work on mingw.
19144         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
19145         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
19146         (main): Set stdin to binary mode.
19147         * modules/yesno-tests (Depends-on): Add binary-io.
19148
19149 2008-04-27  Bruno Haible  <bruno@clisp.org>
19150
19151         Fix 'isfinite' on x86, x86_64, ia64 platforms.
19152         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
19153         argument that lie outside the IEEE 854 domain.
19154         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
19155         (gl_ISFINITE): Use it.
19156         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
19157
19158 2008-04-27  Bruno Haible  <bruno@clisp.org>
19159
19160         Allow local renaming in config.h.
19161         * lib/memrchr.c (memrchr): Don't undefine outside libc.
19162
19163 2008-04-27  Bruno Haible  <bruno@clisp.org>
19164
19165         * lib/memchr.c (__memchr): Change type of 'i'.
19166         * lib/memchr2.c (memchr2): Likewise.
19167
19168 2008-04-26  Eric Blake  <ebb9@byu.net>
19169         and Bruno Haible  <bruno@clisp.org>
19170
19171         Optimize and test memrchr.
19172         * modules/memrchr (Depends-on): Add intprops.
19173         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
19174         * modules/memrchr-tests: New file.
19175         * tests/test-memrchr.c: New file.
19176
19177 2008-04-26  Bruno Haible  <bruno@clisp.org>
19178
19179         Add tentative support for DragonFly BSD.
19180         * lib/stdio-impl.h: Add macros for DragonFly BSD.
19181         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
19182         fp.
19183         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
19184         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
19185         * lib/fpurge.c (fpurge): Likewise.
19186         * lib/freadable.c (freaadable): Likewise.
19187         * lib/freadahead.c (freadahead): Likewise.
19188         * lib/freading.c (freading): Likewise.
19189         * lib/freadptr.c (freadptr): Likewise.
19190         * lib/freadseek.c (freadptrinc): Likewise.
19191         * lib/fseeko.c (fseeko): Likewise.
19192         * lib/fseterr.c (fseterr): Likewise.
19193         * lib/fwritable.c (fwritable): Likewise.
19194         * lib/fwriting.c (fwriting): Likewise.
19195
19196 2008-04-26  Bruno Haible  <bruno@clisp.org>
19197
19198         * lib/stdio-impl.h: New file.
19199         * lib/fbufmode.c: Include stdio-impl.h.
19200         (fbufmode): Use fp_, remove redundant #defines.
19201         * lib/fflush.c: Include stdio-impl.h.
19202         (clear_ungetc_buffer): Remove redundant #defines.
19203         * lib/fpurge.c: Include stdio-impl.h.
19204         (fpurge): Remove redundant #defines.
19205         * lib/freadable.c: Include stdio-impl.h.
19206         (freadable): Remove redundant #defines.
19207         * lib/freadahead.c: Include stdio-impl.h.
19208         (freadahead): Remove redundant #defines.
19209         * lib/freading.c: Include stdio-impl.h.
19210         (freading): Remove redundant #defines.
19211         * lib/freadptr.c: Include stdio-impl.h.
19212         (freadptr): Remove redundant #defines.
19213         * lib/freadseek.c: Include stdio-impl.h.
19214         (freadptrinc): Remove redundant #defines.
19215         * lib/fseeko.c: Include stdio-impl.h.
19216         (rpl_fseeko): Remove redundant #defines.
19217         * lib/fseterr.c: Include stdio-impl.h.
19218         (fseterr): Remove redundant #defines.
19219         * lib/fwritable.c: Include stdio-impl.h.
19220         (fwritable: Remove redundant #defines.
19221         * lib/fwriting.c: Include stdio-impl.h.
19222         (fwriting): Remove redundant #defines.
19223         * modules/fbufmode (Files): Add lib/stdio-impl.h.
19224         * modules/fflush (Files): Likewise.
19225         * modules/fpurge (Files): Likewise.
19226         * modules/freadable (Files): Likewise.
19227         * modules/freadahead (Files): Likewise.
19228         * modules/freading (Files): Likewise.
19229         * modules/freadptr (Files): Likewise.
19230         * modules/freadseek (Files): Likewise.
19231         * modules/fseeko (Files): Likewise.
19232         * modules/fseterr (Files): Likewise.
19233         * modules/fwritable (Files): Likewise.
19234         * modules/fwriting (Files): Likewise.
19235
19236 2008-04-26  Bruno Haible  <bruno@clisp.org>
19237
19238         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
19239         restore_seek_optimization, update_fpos_cache): New functions, extracted
19240         from rpl_fflush.
19241         (rpl_fflush): Use them.
19242         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
19243         (gl_REPLACE_FFLUSH): Use it.
19244
19245 2008-04-26  Bruno Haible  <bruno@clisp.org>
19246
19247         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
19248         on Solaris.
19249         * tests/test-xstrtoimax.sh: Likewise.
19250         * tests/test-xstrtoumax.sh: Likewise.
19251         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19252
19253 2008-04-26  Bruno Haible  <bruno@clisp.org>
19254
19255         * modules/memchr-tests: New file.
19256         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
19257
19258 2008-04-26  Eric Blake  <ebb9@byu.net>
19259             Bruno Haible  <bruno@clisp.org>
19260
19261         * lib/memchr.c: Include intprops.h.
19262         (__memchr): Optimize parallel detection of matching bytes. Rename local
19263         variables. Add explanatory comments.
19264
19265 2008-04-26  Bruno Haible  <bruno@clisp.org>
19266
19267         Fix module 'memchr', broken since 2000-10-28.
19268         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
19269
19270 2008-04-26  Bruno Haible  <bruno@clisp.org>
19271
19272         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
19273         comments.
19274
19275 2008-04-25  Eric Blake  <ebb9@byu.net>
19276
19277         Use native fstatat on cygwin 1.7.0.
19278         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
19279         first.
19280
19281 2008-04-23  Eric Blake  <ebb9@byu.net>
19282
19283         Improve memchr2 performance.
19284         * lib/memchr2.c (memchr2): Further optimize parallel detection of
19285         NUL bytes.
19286         * modules/memchr2 (Depends-on): Use intprops.h.
19287
19288 2008-04-23  Simon Josefsson  <simon@josefsson.org>
19289
19290         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
19291         an inline function instead of a CPP macro.  Patch by Ben Pfaff
19292         <blp@cs.stanford.edu>.
19293
19294 2008-04-23  Simon Josefsson  <simon@josefsson.org>
19295
19296         * lib/arpa_inet.in.h: New file.
19297
19298         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
19299         (Makefile.am): Sed in substitute header file.
19300
19301         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
19302         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
19303
19304         * modules/inet_ntop (configure.ac): Use
19305         gl_ARPA_INET_MODULE_INDICATOR.
19306
19307         * modules/inet_pton (configure.ac): Use
19308         gl_ARPA_INET_MODULE_INDICATOR.
19309
19310 2008-04-22  Jim Meyering  <meyering@redhat.com>
19311
19312         * modules/verify (License): Re-license as LGPLv2+.
19313
19314 2008-04-22  Simon Josefsson  <simon@josefsson.org>
19315
19316         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
19317         parameter to void* as per POSIX standard (MinGW uses char*).
19318
19319 2008-04-21  Bruno Haible  <bruno@clisp.org>
19320
19321         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
19322         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
19323         Define to replacements if REPLACE_ISWCNTRL is 1.
19324         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
19325         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
19326         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
19327         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
19328         what it fixes.
19329         * doc/posix-functions/iswalpha.texi: Likewise.
19330         * doc/posix-functions/iswblank.texi: Likewise.
19331         * doc/posix-functions/iswcntrl.texi: Likewise.
19332         * doc/posix-functions/iswdigit.texi: Likewise.
19333         * doc/posix-functions/iswgraph.texi: Likewise.
19334         * doc/posix-functions/iswlower.texi: Likewise.
19335         * doc/posix-functions/iswprint.texi: Likewise.
19336         * doc/posix-functions/iswpunct.texi: Likewise.
19337         * doc/posix-functions/iswspace.texi: Likewise.
19338         * doc/posix-functions/iswupper.texi: Likewise.
19339         * doc/posix-functions/iswxdigit.texi: Likewise.
19340         Reported by Alain Guibert.
19341
19342 2008-04-21  Bruno Haible  <bruno@clisp.org>
19343
19344         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
19345         Patch by Alain Guibert.
19346
19347 2008-04-21  Bruno Haible  <bruno@clisp.org>
19348
19349         Fix test failures on mingw.
19350         * tests/test-xstrtol.c (print_no_progname): New function.
19351         (main): Install it in error_print_progname hook.
19352         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
19353         * tests/test-xstrtoimax.sh: Likewise.
19354         * tests/test-xstrtoumax.sh: Likewise.
19355
19356 2008-04-21  Bruno Haible  <bruno@clisp.org>
19357
19358         Fix test failure on mingw.
19359         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
19360
19361 2008-04-21  Bruno Haible  <bruno@clisp.org>
19362
19363         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
19364         Actually assign a value.
19365
19366 2008-04-20  Bruno Haible  <bruno@clisp.org>
19367
19368         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
19369         take 2.
19370         * lib/canonicalize.c (canonicalize_file_name): Elide if the
19371         'canonicalize-lgpl' module is also used.
19372         * lib/canonicalize-lgpl.c: Undo last change.
19373         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
19374
19375 2008-04-20  Bruno Haible  <bruno@clisp.org>
19376
19377         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
19378         config.h. Provide _mkdir based fallback for mingw.
19379         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
19380         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
19381         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
19382         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
19383         rather than defining mkdir in config.h.
19384         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
19385         (gl_SYS_STAT_H_DEFAULTS): New macro.
19386         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
19387         HAVE_IO_H any more.
19388         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
19389         HAVE_DECL_MKDIR and HAVE_IO_H.
19390
19391 2008-04-20  Bruno Haible  <bruno@clisp.org>
19392
19393         * lib/isapipe.c: Port to native Windows platforms.
19394
19395 2008-04-20  Bruno Haible  <bruno@clisp.org>
19396
19397         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
19398
19399 2008-04-21  Eric Blake  <ebb9@byu.net>
19400
19401         Work around preprocessors that don't handle UINTMAX_MAX.
19402         * lib/memchr2.c (memchr2): Avoid embedded #if.
19403         Reported by Alain Guibert, fix suggested by Bruno Haible.
19404
19405 2008-04-21  Simon Josefsson  <simon@josefsson.org>
19406
19407         * doc/posix-functions/strftime.texi (strftime): Explain better
19408         Windows incompatibility.  Suggested by Micah Cowan
19409         <micah@cowan.name>.
19410
19411 2008-04-20  Bruno Haible  <bruno@clisp.org>
19412
19413         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
19414         unistr/u8-mblen.
19415
19416 2008-04-20  Bruno Haible  <bruno@clisp.org>
19417
19418         Fix test failure on platforms with non-GNU iconv.
19419         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
19420         (U_TO_U8): Use it, rather than u16_to_u8.
19421         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
19422         units at the end of the input string.
19423         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
19424
19425 2008-04-20  Bruno Haible  <bruno@clisp.org>
19426
19427         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
19428         when the resulting length is 0.
19429         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
19430
19431 2008-04-20  Bruno Haible  <bruno@clisp.org>
19432
19433         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
19434         works.
19435         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
19436
19437 2008-04-20  Bruno Haible  <bruno@clisp.org>
19438
19439         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
19440         * modules/tsearch-tests (configure.ac): Test for initstate function.
19441
19442 2008-04-20  Bruno Haible  <bruno@clisp.org>
19443
19444         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
19445         for nlink_t if missing.
19446         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
19447
19448 2008-04-19  Bruno Haible  <bruno@clisp.org>
19449
19450         Work around snprintf bug on Linux libc5.
19451         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
19452         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
19453         gl_SNPRINTF_SIZE1.
19454         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19455         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
19456         that test failed.
19457         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
19458         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
19459         * modules/snprintf (Files): Add m4/printf.m4.
19460         * modules/vsnprintf (Files): Likewise.
19461         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
19462         * doc/posix-functions/vsnprintf.texi: Likewise.
19463
19464 2008-04-19  Bruno Haible  <bruno@clisp.org>
19465
19466         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
19467         from 0.0058 to less than 10^-7.
19468
19469 2008-04-19  Bruno Haible  <bruno@clisp.org>
19470
19471         Fix rounding when a precision is given.
19472         * lib/vasnprintf.c (is_borderline): New function.
19473         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
19474         9...9x.
19475         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
19476         %e, %g.
19477         * tests/test-vasprintf-posix.c (test_function): Likewise.
19478         * tests/test-snprintf-posix.h (test_function): Likewise.
19479         * tests/test-sprintf-posix.h (test_function): Likewise.
19480         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
19481         * tests/test-printf-posix.h (test_function): Likewise.
19482         * tests/test-printf-posix.output: Update.
19483         Reported by John Darrington <john@darrington.wattle.id.au> via
19484         Ben Pfaff <blp@cs.stanford.edu>.
19485
19486 2008-04-18  Simon Josefsson  <simon@josefsson.org>
19487
19488         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
19489         Suggested by Bruno Haible <bruno@clisp.org>.
19490
19491 2008-04-17  Bruno Haible  <bruno@clisp.org>
19492
19493         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
19494         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
19495         implementation.
19496         Patch by Bruce Merry <bmerry@gmail.com>.
19497
19498 2008-04-17  Simon Josefsson  <simon@josefsson.org>
19499
19500         * doc/posix-functions/strftime.texi (strftime): Mention that %e
19501         doesn't work under Windows.
19502
19503 2008-04-16  Bruno Haible  <bruno@clisp.org>
19504
19505         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
19506         New macros.
19507         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
19508         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
19509         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
19510         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
19511         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
19512         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
19513         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
19514         macros.
19515         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
19516         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
19517         Northern Sotho, Uighur.
19518
19519 2008-04-16  Bruno Haible  <bruno@clisp.org>
19520
19521         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
19522         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
19523         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
19524         Reported by Daniel Bergström <daniel@octocode.com>.
19525
19526 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
19527             Bruno Haible  <bruno@clisp.org>
19528
19529         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
19530         function.
19531         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
19532         New functions, mostly extracted from gl_locale_name_default.
19533         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
19534
19535 2008-04-16  Eric Blake  <ebb9@byu.net>
19536
19537         Adjust strtod detection to catch glibc 2.7 bug.
19538         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
19539         Reported by John Gatewood Ham.
19540
19541 2008-04-16  Bruno Haible  <bruno@clisp.org>
19542
19543         Add tentative support for Linux libc5.
19544         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
19545         * lib/fpurge.c (fpurge): Likewise.
19546         * lib/freadable.c (freadable): Likewise.
19547         * lib/freadahead.c (freadahead): Likewise.
19548         * lib/freading.c (freading): Likewise.
19549         * lib/freadptr.c (freadptr): Likewise.
19550         * lib/freadseek.c (freadptrinc): Likewise.
19551         * lib/fseeko.c (rpl_fseeko): Likewise.
19552         * lib/fseterr.c (fseterr): Likewise.
19553         * lib/fwritable.c (fwritable): Likewise.
19554         * lib/fwriting.c (fwriting): Likewise.
19555         Reported by Alain Guibert <alguibert+bts@free.fr>.
19556
19557 2008-04-15  Bruno Haible  <bruno@clisp.org>
19558
19559         * modules/mathl (configure.ac): Define module indicator.
19560
19561 2008-04-15  Bruno Haible  <bruno@clisp.org>
19562
19563         * lib/logl.c (logl): Remove unused variables.
19564
19565 2008-04-15  Bruno Haible  <bruno@clisp.org>
19566
19567         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
19568         fails.
19569
19570 2008-04-15  Bruno Haible  <bruno@clisp.org>
19571
19572         * lib/trim.c (trim2): Fix argument of isspace() macro.
19573
19574 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
19575
19576         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
19577         to 0.
19578         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
19579
19580 2008-04-14  Bruno Haible  <bruno@clisp.org>
19581
19582         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
19583         AC_LANG_PROGRAM argument.
19584         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
19585         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
19586         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
19587         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19588         * m4/math_h.m4 (gl_MATH_H): Likewise.
19589         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
19590         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19591         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
19592         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
19593         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19594         * m4/regex.m4 (gl_REGEX): Likewise.
19595         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
19596         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
19597         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19598         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
19599         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
19600         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19601         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19602         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19603
19604 2008-04-14  Jim Meyering  <meyering@redhat.com>
19605
19606         test-strtod: fix typos: s/abs/fabs/
19607         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
19608
19609 2008-04-13  Bruno Haible  <bruno@clisp.org>
19610
19611         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
19612         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
19613         module is also used and while not building the reloc-wrapper.
19614
19615 2008-04-13  Bruno Haible  <bruno@clisp.org>
19616
19617         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
19618
19619 2008-04-13  Bruno Haible  <bruno@clisp.org>
19620
19621         Fix AIX compilation failure introduced on 2008-04-02.
19622         * tests/test-frexp.c (exp): Undefine before redefining.
19623         * tests/test-frexpl.c (exp): Likewise.
19624
19625 2008-04-13  Bruno Haible  <bruno@clisp.org>
19626
19627         Work around a HP-UX stdio bug.
19628         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
19629         * tests/test-ftello.c (main): Likewise.
19630         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
19631         * doc/posix-functions/ftello.texi: Likewise.
19632
19633 2008-04-13  Bruno Haible  <bruno@clisp.org>
19634
19635         Make test-signbit pass on HP-UX/hppa.
19636         * tests/test-signbit.c (minus_zerol): New variable.
19637         (test_signbitl): Use it.
19638
19639 2008-04-13  Bruno Haible  <bruno@clisp.org>
19640
19641         Make truncl work on OSF/1 4.0.
19642         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
19643         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
19644         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
19645         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
19646         HAVE_DECL_TRUNCL.
19647         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
19648         HAVE_DECL_TRUNCL.
19649         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
19650
19651 2008-04-13  Bruno Haible  <bruno@clisp.org>
19652
19653         * lib/unictype.h: Remove trailing comma from enumeration definitions.
19654
19655 2008-04-13  Bruno Haible  <bruno@clisp.org>
19656
19657         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
19658         expression, so as to avoid HP-UX 11 cc compiler bug.
19659
19660 2008-04-13  Bruno Haible  <bruno@clisp.org>
19661
19662         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
19663
19664 2008-04-13  Bruno Haible  <bruno@clisp.org>
19665
19666         * lib/git-merge-changelog.c: Remove empty declaration outside of
19667         functions.
19668
19669 2008-04-13  Bruno Haible  <bruno@clisp.org>
19670
19671         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
19672
19673 2008-04-13  Bruno Haible  <bruno@clisp.org>
19674
19675         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
19676         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
19677         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
19678         also if it exists but lacks definitions of the SHUT_* macros.
19679         * modules/sys_socket (Description): Update.
19680         Reported by Elbert Pol <e.pol@chello.nl>.
19681
19682 2008-04-13  Bruno Haible  <bruno@clisp.org>
19683
19684         * lib/localcharset.c (OS2): Don't redefine if already defined.
19685         Reported by Elbert Pol <e.pol@chello.nl>.
19686
19687 2008-04-13  Bruno Haible  <bruno@clisp.org>
19688
19689         * lib/binary-io.h [__EMX__]: Include <io.h>.
19690         Reported by Elbert Pol <e.pol@chello.nl>.
19691
19692 2008-04-12  Bruno Haible  <bruno@clisp.org>
19693
19694         * lib/fpucw.h: Enable the definitions also for x86_64.
19695         Needed for NetBSD/x86_64.
19696         Reported by Thomas Klausner <tk@giga.or.at>.
19697
19698 2008-04-12  Bruno Haible  <bruno@clisp.org>
19699
19700         * tests/test-strtod.c: Include isnand.h.
19701         (main): Use isnand instead of isnan.
19702         Reported by Jim Meyering.
19703
19704 2008-04-12  Bruno Haible  <bruno@clisp.org>
19705
19706         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
19707         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
19708
19709 2008-04-12  Jim Meyering  <meyering@redhat.com>
19710
19711         * m4/math_h.m4 (gl_MATH_H): Fix typos.
19712
19713 2008-04-12  Bruno Haible  <bruno@clisp.org>
19714
19715         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
19716         Reported by Elbert Pol <e.pol@chello.nl>.
19717
19718 2008-04-12  Eric Blake  <ebb9@byu.net>
19719
19720         Work around Solaris 10 math.h bug.
19721         * m4/math_h.m4 (gl_MATH_H): Check for bug.
19722         (gl_MATH_H_DEFAULTS): Set up default.
19723         * modules/math (Makefile.am): Replace new indicators.
19724         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
19725         * tests/test-math.c (main): Test this.
19726         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
19727         * doc/posix-headers/math.texi (math.h): Mention bug.
19728         Reported by Nelson H. F. Beebe and Jim Meyering.
19729
19730 2008-04-11  Bruno Haible  <bruno@clisp.org>
19731
19732         Adapt to future versions of Apple GCC.
19733         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
19734         Reported by Peter O'Gorman <peter@pogma.com>.
19735
19736 2008-04-11  Bruno Haible  <bruno@clisp.org>
19737
19738         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
19739
19740 2008-04-11  Bruno Haible  <bruno@clisp.org>
19741
19742         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
19743
19744         * modules/getaddrinfo-tests (Makefile.am): Define
19745         test_getaddrinfo_LDADD.
19746
19747 2008-04-11  Bruno Haible  <bruno@clisp.org>
19748
19749         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
19750         (init): Fix syntax error.
19751         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
19752         is declared.
19753
19754 2008-04-11  Bruno Haible  <bruno@clisp.org>
19755
19756         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
19757         * modules/glob (Depends-on): Add stdbool.
19758
19759 2008-04-11  Bruno Haible  <bruno@clisp.org>
19760
19761         * lib/trim.c: Include <string.h>.
19762
19763 2008-04-11  Eric Blake  <ebb9@byu.net>
19764
19765         Avoid compile failure on OS/2.
19766         * lib/regex_internal.h (internal_function): Disable optimization
19767         on OS/2 (__EMX__), where it caused compiler error.
19768         Reported by Elbert Pol.
19769
19770 2008-04-11  Bruno Haible  <bruno@clisp.org>
19771
19772         Flush the standard error stream before aborting. Needed on mingw.
19773         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
19774         * tests/test-array_list.c (ASSERT): Likewise.
19775         * tests/test-array_oset.c (ASSERT): Likewise.
19776         * tests/test-avltree_list.c (ASSERT): Likewise.
19777         * tests/test-avltree_oset.c (ASSERT): Likewise.
19778         * tests/test-avltreehash_list.c (ASSERT): Likewise.
19779         * tests/test-binary-io.c (ASSERT): Likewise.
19780         * tests/test-byteswap.c (ASSERT): Likewise.
19781         * tests/test-c-ctype.c (ASSERT): Likewise.
19782         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
19783         * tests/test-c-strcasestr.c (ASSERT): Likewise.
19784         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
19785         * tests/test-c-strstr.c (ASSERT): Likewise.
19786         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
19787         * tests/test-canonicalize.c (ASSERT): Likewise.
19788         * tests/test-carray_list.c (ASSERT): Likewise.
19789         * tests/test-ceilf1.c (ASSERT): Likewise.
19790         * tests/test-ceilf2.c (ASSERT): Likewise.
19791         * tests/test-ceill.c (ASSERT): Likewise.
19792         * tests/test-count-one-bits.c (ASSERT): Likewise.
19793         * tests/test-fbufmode.c (ASSERT): Likewise.
19794         * tests/test-fflush2.c (ASSERT): Likewise.
19795         * tests/test-floorf1.c (ASSERT): Likewise.
19796         * tests/test-floorf2.c (ASSERT): Likewise.
19797         * tests/test-floorl.c (ASSERT): Likewise.
19798         * tests/test-fopen.c (ASSERT): Likewise.
19799         * tests/test-fpending.c (ASSERT): Likewise.
19800         * tests/test-fprintf-posix.c (ASSERT): Likewise.
19801         * tests/test-fpurge.c (ASSERT): Likewise.
19802         * tests/test-freadable.c (ASSERT): Likewise.
19803         * tests/test-freadahead.c (ASSERT): Likewise.
19804         * tests/test-freading.c (ASSERT): Likewise.
19805         * tests/test-freadptr.c (ASSERT): Likewise.
19806         * tests/test-freadptr2.c (ASSERT): Likewise.
19807         * tests/test-freadseek.c (ASSERT): Likewise.
19808         * tests/test-freopen.c (ASSERT): Likewise.
19809         * tests/test-frexp.c (ASSERT): Likewise.
19810         * tests/test-frexpl.c (ASSERT): Likewise.
19811         * tests/test-fseek.c (ASSERT): Likewise.
19812         * tests/test-fseeko.c (ASSERT): Likewise.
19813         * tests/test-fstrcmp.c (ASSERT): Likewise.
19814         * tests/test-ftell.c (ASSERT): Likewise.
19815         * tests/test-ftello.c (ASSERT): Likewise.
19816         * tests/test-func.c (ASSERT): Likewise.
19817         * tests/test-fwritable.c (ASSERT): Likewise.
19818         * tests/test-fwriting.c (ASSERT): Likewise.
19819         * tests/test-getdelim.c (ASSERT): Likewise.
19820         * tests/test-getline.c (ASSERT): Likewise.
19821         * tests/test-i-ring.c (ASSERT): Likewise.
19822         * tests/test-iconv-utf.c (ASSERT): Likewise.
19823         * tests/test-iconv.c (ASSERT): Likewise.
19824         * tests/test-isfinite.c (ASSERT): Likewise.
19825         * tests/test-isnand.c (ASSERT): Likewise.
19826         * tests/test-isnanf.c (ASSERT): Likewise.
19827         * tests/test-isnanl.h (ASSERT): Likewise.
19828         * tests/test-ldexpl.c (ASSERT): Likewise.
19829         * tests/test-linked_list.c (ASSERT): Likewise.
19830         * tests/test-linkedhash_list.c (ASSERT): Likewise.
19831         * tests/test-localename.c (ASSERT): Likewise.
19832         * tests/test-lseek.c (ASSERT): Likewise.
19833         * tests/test-mbscasecmp.c (ASSERT): Likewise.
19834         * tests/test-mbscasestr1.c (ASSERT): Likewise.
19835         * tests/test-mbscasestr2.c (ASSERT): Likewise.
19836         * tests/test-mbscasestr3.c (ASSERT): Likewise.
19837         * tests/test-mbscasestr4.c (ASSERT): Likewise.
19838         * tests/test-mbschr.c (ASSERT): Likewise.
19839         * tests/test-mbscspn.c (ASSERT): Likewise.
19840         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
19841         * tests/test-mbspbrk.c (ASSERT): Likewise.
19842         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
19843         * tests/test-mbsrchr.c (ASSERT): Likewise.
19844         * tests/test-mbsspn.c (ASSERT): Likewise.
19845         * tests/test-mbsstr1.c (ASSERT): Likewise.
19846         * tests/test-mbsstr2.c (ASSERT): Likewise.
19847         * tests/test-mbsstr3.c (ASSERT): Likewise.
19848         * tests/test-memchr2.c (ASSERT): Likewise.
19849         * tests/test-memmem.c (ASSERT): Likewise.
19850         * tests/test-open.c (ASSERT): Likewise.
19851         * tests/test-printf-frexp.c (ASSERT): Likewise.
19852         * tests/test-printf-frexpl.c (ASSERT): Likewise.
19853         * tests/test-printf-posix.c (ASSERT): Likewise.
19854         * tests/test-quotearg.c (ASSERT): Likewise.
19855         * tests/test-rbtree_list.c (ASSERT): Likewise.
19856         * tests/test-rbtree_oset.c (ASSERT): Likewise.
19857         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
19858         * tests/test-round1.c (ASSERT): Likewise.
19859         * tests/test-roundf1.c (ASSERT): Likewise.
19860         * tests/test-roundl.c (ASSERT): Likewise.
19861         * tests/test-signbit.c (ASSERT): Likewise.
19862         * tests/test-sleep.c (ASSERT): Likewise.
19863         * tests/test-snprintf-posix.c (ASSERT): Likewise.
19864         * tests/test-snprintf.c (ASSERT): Likewise.
19865         * tests/test-sprintf-posix.c (ASSERT): Likewise.
19866         * tests/test-stat-time.c (ASSERT): Likewise.
19867         * tests/test-strcasestr.c (ASSERT): Likewise.
19868         * tests/test-strerror.c (ASSERT): Likewise.
19869         * tests/test-striconv.c (ASSERT): Likewise.
19870         * tests/test-striconveh.c (ASSERT): Likewise.
19871         * tests/test-striconveha.c (ASSERT): Likewise.
19872         * tests/test-strsignal.c (ASSERT): Likewise.
19873         * tests/test-strstr.c (ASSERT): Likewise.
19874         * tests/test-strtod.c (ASSERT): Likewise.
19875         * tests/test-trunc1.c (ASSERT): Likewise.
19876         * tests/test-trunc2.c (ASSERT): Likewise.
19877         * tests/test-truncf1.c (ASSERT): Likewise.
19878         * tests/test-truncf2.c (ASSERT): Likewise.
19879         * tests/test-truncl.c (ASSERT): Likewise.
19880         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
19881         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
19882         * tests/test-vasnprintf.c (ASSERT): Likewise.
19883         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
19884         * tests/test-vasprintf.c (ASSERT): Likewise.
19885         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
19886         * tests/test-vprintf-posix.c (ASSERT): Likewise.
19887         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
19888         * tests/test-vsnprintf.c (ASSERT): Likewise.
19889         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
19890         * tests/test-wcwidth.c (ASSERT): Likewise.
19891         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
19892         * tests/test-xprintf-posix.c (ASSERT): Likewise.
19893         * tests/test-xvasprintf.c (ASSERT): Likewise.
19894         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
19895         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
19896         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
19897         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
19898         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
19899         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
19900         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
19901         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
19902         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
19903         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
19904         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
19905         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
19906         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
19907         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
19908         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
19909         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
19910         * tests/unictype/test-block_list.c (ASSERT): Likewise.
19911         * tests/unictype/test-block_of.c (ASSERT): Likewise.
19912         * tests/unictype/test-block_test.c (ASSERT): Likewise.
19913         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
19914         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
19915         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
19916         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
19917         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
19918         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
19919         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
19920         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
19921         * tests/unictype/test-combining.c (ASSERT): Likewise.
19922         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
19923         * tests/unictype/test-digit.c (ASSERT): Likewise.
19924         * tests/unictype/test-mirror.c (ASSERT): Likewise.
19925         * tests/unictype/test-numeric.c (ASSERT): Likewise.
19926         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
19927         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
19928         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
19929         * tests/unictype/test-scripts.c (ASSERT): Likewise.
19930         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
19931         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
19932         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
19933         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
19934         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
19935         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
19936         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
19937         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
19938         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
19939         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
19940         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
19941         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
19942         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
19943         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
19944         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
19945         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
19946         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
19947         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
19948         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
19949         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
19950         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
19951         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
19952         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
19953         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
19954         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
19955         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
19956         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
19957         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
19958         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
19959         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
19960         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
19961         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
19962         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
19963         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
19964         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
19965         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
19966         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
19967         Reported by Eric Blake.
19968
19969 2008-04-11  Bruno Haible  <bruno@clisp.org>
19970
19971         * lib/wchar.in.h: Tweak comment.
19972
19973 2008-04-11  Bruno Haible  <bruno@clisp.org>
19974
19975         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
19976         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
19977         gl_COMMON.
19978         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
19979
19980 2008-04-11  Bruno Haible  <bruno@clisp.org>
19981
19982         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
19983
19984 2008-04-11  Simon Josefsson  <simon@josefsson.org>
19985
19986         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
19987         of attempting to use non-existing /dev/*random.  Based on patch
19988         from Adam Strzelecki <ono@java.pl> in
19989         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
19990
19991 2008-04-08  Bruno Haible  <bruno@clisp.org>
19992
19993         Add tentative support for emx+gcc.
19994         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
19995         * lib/fpurge.c (fpurge): Likewise.
19996         * lib/freadable.c (freadable): Likewise.
19997         * lib/freadahead.c (freadahead): Likewise.
19998         * lib/freading.c (freading): Likewise.
19999         * lib/freadptr.c (freadptr): Likewise.
20000         * lib/freadseek.c (freadptrinc): Likewise.
20001         * lib/fseeko.c (rpl_fseeko): Likewise.
20002         * lib/fseterr.c (fseterr): Likewise.
20003         * lib/fwritable.c (fwritable): Likewise.
20004         * lib/fwriting.c (fwriting): Likewise.
20005         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
20006
20007 2008-04-09  Eric Blake  <ebb9@byu.net>
20008
20009         Avoid some autoconf warnings.
20010         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
20011         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
20012         * m4/afs.m4 (gl_AFS): Likewise.
20013         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
20014         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
20015         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20016         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
20017         (gl_INTEGER_TYPE_SUFFIX): Likewise.
20018         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
20019         (AC_CHECK_DECLS_ONCE): Likewise.
20020         Rename file...
20021         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
20022         gnulib-tool requires autoconf 2.59 or better.
20023         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
20024
20025 2008-04-08  Eric Blake  <ebb9@byu.net>
20026
20027         Use 'git describe --match' if present (added in git 1.5.5).
20028         * build-aux/git-version-gen: Limit result to tags that match 'v*'
20029         if possible.
20030
20031 2008-04-08  Bruno Haible  <bruno@clisp.org>
20032
20033         Add tentative support for OpenServer.
20034         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
20035         _ptr, _cnt.
20036         * lib/fpurge.c (fpurge): Likewise.
20037         * lib/freadable.c (freadable): Likewise.
20038         * lib/freadahead.c (freadahead): Likewise.
20039         * lib/freading.c (freading): Likewise.
20040         * lib/freadptr.c (freadptr): Likewise.
20041         * lib/freadseek.c (freadptrinc): Likewise.
20042         * lib/fseeko.c (rpl_fseeko): Likewise.
20043         * lib/fseterr.c (fseterr): Likewise.
20044         * lib/fwritable.c (fwritable): Likewise.
20045         * lib/fwriting.c (fwriting): Likewise.
20046         Reported by Roger Cornelius <rac@tenzing.org> and
20047         Brian K. White <brian@aljex.com>.
20048
20049 2008-04-06  Jim Meyering  <meyering@redhat.com>
20050
20051         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
20052
20053 2008-04-06  Bruno Haible  <bruno@clisp.org>
20054
20055         Avoid possible error with non-ASCII bytes in UTF-8 locales.
20056         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
20057         * tests/test-printf-posix.sh: Likewise.
20058         * tests/test-vfprintf-posix.sh: Likewise.
20059         * tests/test-vprintf-posix.sh: Likewise.
20060         * tests/test-xprintf-posix.sh: Likewise.
20061
20062 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20063
20064         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
20065         hide error from 'ls', needed on OS/2.
20066         Report by Elbert Pol <elbert.pol@gmail.com>.
20067
20068 2008-04-04  Eric Blake  <ebb9@byu.net>
20069
20070         Make test-fseeko.c failures meaningful.
20071         * tests/test-fseeko.c: Print line number on failure.
20072         * tests/test-fseek.c: Likewise.
20073         Reported by Nelson H. F. Beebe.
20074
20075         Improve strtod bug detection check.
20076         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
20077         required for Solaris 10.
20078         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
20079
20080 2008-04-04  Bruno Haible  <bruno@clisp.org>
20081
20082         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
20083         by m4/setenv.m4.
20084
20085 2008-04-03  Eric Blake  <ebb9@byu.net>
20086
20087         Ensure sane .version contents.
20088         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
20089         version string.
20090         * build-aux/git-version-gen: Improve documentation.
20091
20092         Make GNU make output nicer.
20093         * top/GNUmakefile [!_have-Makefile]: Add dependency on
20094         MAKECMDGOALS to enforce message for all command line targets.  Set
20095         srcdir for use in maint.mk.
20096
20097         Another maintainer tweak.
20098         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
20099         a target that regenerates version.
20100
20101 2008-04-03  Jim Meyering  <meyering@redhat.com>
20102
20103         vc-list-files: don't cause coreutils "make po-check" failure
20104         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
20105
20106 2008-04-03  Eric Blake  <ebb9@byu.net>
20107
20108         Allow VPATH usage of vc-list-files.
20109         * build-aux/vc-list-files (scriptversion): Add timestamp.
20110         (options): Add --help, --version, -C.
20111         (CVS): Support installed cvsu.
20112
20113 2008-04-02  Bruno Haible  <bruno@clisp.org>
20114
20115         Avoid some "statement with no effect" warnings from gcc.
20116         * tests/test-wctype.c (main): Explicitly ignore unused values.
20117         Reported by Jim Meyering.
20118
20119 2008-04-02  Jim Meyering  <meyering@redhat.com>
20120
20121         Avoid some warnings from "gcc -Wshadow".
20122         * tests/test-frexp.c (exp): Define to a different identifier.
20123         * tests/test-frexpl.c (exp): Likewise.
20124
20125 2008-04-03  Jim Meyering  <meyering@redhat.com>
20126
20127         bootstrap: remove dangling *.[ch] symlinks from lib
20128         * build-aux/bootstrap [dangling symlink removal]: Move find's
20129         -depth option to precede all others, to avoid a warning.
20130         Remove *.[ch] files too, and from "$source_base" (usually lib/).
20131
20132 2008-04-02  Bruno Haible  <bruno@clisp.org>
20133
20134         Avoid some warnings from "gcc -Wshadow".
20135         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
20136         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
20137         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
20138         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
20139         Reported by Jim Meyering.
20140
20141 2008-04-01  Bruno Haible  <bruno@clisp.org>
20142
20143         Fix test to work on IRIX 6.5 with cc.
20144         * tests/test-math.c (numeric_equal): New function.
20145         (main): Use it.
20146
20147 2008-04-01  Bruno Haible  <bruno@clisp.org>
20148
20149         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
20150
20151 2008-04-01  Bruno Haible  <bruno@clisp.org>
20152
20153         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
20154         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
20155         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
20156         (Depends-on): Remove math.
20157
20158         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
20159         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
20160         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
20161         (Depends-on): Remove math.
20162
20163         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
20164         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
20165         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
20166         (Depends-on): Remove math.
20167         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
20168         (Depends-on): Remove math.
20169
20170         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
20171         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
20172         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
20173         (Depends-on): Remove math.
20174         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
20175         (Depends-on): Remove math.
20176
20177         * tests/test-round1.c: Include nan.h.
20178         (main): Use NaNd instead of NAN.
20179         * modules/round-tests (Files): Add tests/nan.h.
20180
20181         * tests/test-trunc1.c: Include nan.h.
20182         (main): Use NaNd instead of NAN.
20183         * modules/trunc-tests (Files): Add tests/nan.h.
20184
20185         * tests/test-roundf1.c: Include nan.h.
20186         (main): Use NaNf instead of NAN.
20187         * modules/roundf-tests (Files): Add tests/nan.h.
20188
20189         * tests/test-truncf1.c: Include nan.h.
20190         (main): Use NaNf instead of NAN.
20191         * modules/truncf-tests (Files): Add tests/nan.h.
20192
20193         * tests/test-ceilf1.c: Include nan.h.
20194         (main): Use NaNf instead of NAN.
20195         * modules/ceilf-tests (Files): Add tests/nan.h.
20196
20197         * tests/test-floorf1.c: Include nan.h.
20198         (main): Use NaNf instead of NAN.
20199         * modules/floorf-tests (Files): Add tests/nan.h.
20200
20201         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
20202         (main): Use NaNf instead of NAN.
20203         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
20204
20205         * tests/test-isnand.c: Include nan.h instead of <math.h>.
20206         (main): Use NaNd instead of NAN.
20207         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
20208
20209         * tests/test-frexp.c: Include nan.h.
20210         (main): Use NaNd instead of NAN.
20211         * modules/frexp-tests (Files): Add tests/nan.h.
20212
20213         * lib/isnan.c: Don't include <math.h>.
20214         (FUNC): Don't use NAN macro.
20215         * modules/isnand-nolibm (Depends-on): Remove math.
20216         * modules/isnanf-nolibm (Depends-on): Remove math.
20217         * modules/isnanl (Depends-on): Remove math.
20218         * modules/isnanl-nolibm (Depends-on): Remove math.
20219
20220         * tests/nan.h: New file.
20221
20222 2008-04-01  Eric Blake  <ebb9@byu.net>
20223
20224         Fix typos.
20225         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
20226         values to be the right type.
20227
20228         For now, cater to gnulib strtod inaccuracies.
20229         * tests/test-strtod.c (main): Allow 1-ulp error on expected
20230         fractional results.  While not as nice from a QoI perspective, it
20231         is a quicker patch than correctly implementing decimal to binary
20232         rounding.
20233
20234 2008-03-31  Eric Blake  <ebb9@byu.net>
20235
20236         Guarantee a definition of NAN.
20237         * lib/math.in.h (NAN): Define if missing.
20238         * tests/test-math.c (main): Test it.
20239         * doc/posix-headers/math.texi (math.h): Document this.
20240         * lib/isnan.c (rpl_isnand): Use it.
20241         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
20242         * tests/test-floorf1.c (NaN): Likewise.
20243         * tests/test-frexp.c (NaN): Likewise.
20244         * tests/test-isnand.c (NaN): Likewise.
20245         * tests/test-isnanf.c (NaN): Likewise.
20246         * tests/test-round1.c (NaN): Likewise.
20247         * tests/test-roundf1.c (NaN): Likewise.
20248         * tests/test-snprintf-posix.h (NaN): Likewise.
20249         * tests/test-sprintf-posix.h (NaN): Likewise.
20250         * tests/test-trunc1.c (NaN): Likewise.
20251         * tests/test-truncf1.c (NaN): Likewise.
20252         * tests/test-vasnprintf-posix.c (NaN): Likewise.
20253         * tests/test-vasprintf-posix.c (NaN): Likewise.
20254         * modules/isnand-nolibm (Depends-on): Add math.
20255         * modules/isnanf-nolibm (Depends-on): Likewise.
20256         * modules/isnanl (Depends-on): Likewise.
20257         * modules/isnanl-nolibm (Depends-on): Likewise.
20258         * modules/snprintf-posix-tests (Depends-on): Likewise.
20259         * modules/sprintf-posix-tests (Depends-on): Likewise.
20260         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
20261         * modules/vsprintf-posix-tests (Depends-on): Likewise.
20262         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
20263         * modules/vasprintf-posix-tests (Depends-on): Likewise.
20264
20265 2008-03-31  Bruno Haible  <bruno@clisp.org>
20266
20267         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
20268         * doc/posix-functions/strtod.texi: Likewise.
20269
20270 2008-03-31  Bruno Haible  <bruno@clisp.org>
20271
20272         * tests/test-strtod.c (main): Don't use C99 syntax.
20273
20274 2008-03-31  Bruno Haible  <bruno@clisp.org>
20275
20276         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
20277         Reported by Eric Blake.
20278
20279 2008-03-31  Jim Meyering  <meyering@redhat.com>
20280
20281         Don't compare actual signbit return values.
20282         * tests/test-strtod.c (main): Rather, compare only their
20283         zero/non-zero nature.
20284
20285 2008-03-31  Eric Blake  <ebb9@byu.net>
20286
20287         More strtod documentation.
20288         * doc/posix-functions/strtod.texi (strtod): Interpret more test
20289         failures as distinct bugs.
20290
20291 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
20292
20293         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
20294         Problem reported by Erik Benada in
20295         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
20296
20297 2008-03-30  Bruno Haible  <bruno@clisp.org>
20298
20299         * tests/test-strtod.c: Add comments about which assertion fails on which
20300         platform.
20301         * doc/posix-functions/strtod.texi: Add info about many more platforms.
20302
20303 2008-03-30  Eric Blake  <ebb9@byu.net>
20304
20305         Test signbit behavior on zeros.
20306         * tests/test-signbit.c (test_signbitf): Add tests for zero.
20307         (test_signbitd, test_signbitl): Likewise.
20308
20309         More strtod touchups.
20310         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
20311         sign of negative underflow, for now.  Use .5, not .1.
20312         * doc/posix-functions/strtod.texi (strtod): Mention these
20313         limitations.
20314         Reported by Jim Meyering.
20315
20316 2008-03-30  Bruno Haible  <bruno@clisp.org>
20317
20318         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
20319         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
20320
20321 2008-03-30  Bruno Haible  <bruno@clisp.org>
20322
20323         Avoid failure when attempting to return empty iconv results on some
20324         platforms.
20325         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
20326         allocation, don't report ENOMEM when the resulting string is empty.
20327
20328 2008-03-30  Bruno Haible  <bruno@clisp.org>
20329
20330         Fix buffer overrun.
20331         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
20332         Don't consider the width for tmp_length. Check count against tmp_length
20333         before doing the padding. Ensure enough allocation during padding.
20334
20335 2008-03-30  Eric Blake  <ebb9@byu.net>
20336
20337         strtod touchups.
20338         * lib/strtod.c (strtod): Avoid compiler warnings.
20339         Reported by Jim Meyering.
20340
20341 2008-03-30  Bruno Haible  <bruno@clisp.org>
20342
20343         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
20344         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
20345         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
20346         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
20347         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
20348         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
20349         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
20350         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
20351
20352         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
20353         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
20354         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
20355         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
20356         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
20357         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
20358         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
20359         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
20360
20361         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
20362         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
20363         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
20364         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
20365         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
20366         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
20367         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
20368         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
20369
20370         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
20371         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
20372
20373         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
20374         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
20375
20376         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
20377         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
20378
20379         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
20380         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
20381         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
20382
20383         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
20384         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
20385         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
20386
20387         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
20388         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
20389         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
20390
20391         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
20392         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
20393         * modules/vasprintf (Depends-on): Add EOVERFLOW.
20394
20395         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
20396         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
20397         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
20398         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
20399         (Depends-on): Add EOVERFLOW.
20400         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
20401         (Depends-on): Add EOVERFLOW.
20402         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
20403         (Depends-on): Add EOVERFLOW.
20404         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
20405         (Depends-on): Add EOVERFLOW.
20406         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
20407         (Depends-on): Add EOVERFLOW.
20408         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
20409         (Depends-on): Add EOVERFLOW.
20410         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
20411         (Depends-on): Add EOVERFLOW.
20412         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
20413         (Depends-on): Add EOVERFLOW.
20414
20415         * lib/sprintf.c (EOVERFLOW): Remove fallback.
20416         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
20417         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
20418
20419         * lib/snprintf.c (EOVERFLOW): Remove fallback.
20420         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
20421         * modules/snprintf (Depends-on): Add EOVERFLOW.
20422
20423         * lib/poll.c (EOVERFLOW): Remove fallback.
20424         * modules/poll (Depends-on): Add EOVERFLOW.
20425
20426         * lib/getugroups.c (EOVERFLOW): Remove fallback.
20427         * modules/getugroups (Depends-on): Add EOVERFLOW.
20428
20429         * lib/getdelim.c (EOVERFLOW): Remove fallback.
20430         * modules/getdelim (Depends-on): Add EOVERFLOW.
20431
20432         * lib/ftell.c (EOVERFLOW): Remove fallback.
20433         * modules/ftell (Depends-on): Add EOVERFLOW.
20434
20435         * lib/fprintf.c (EOVERFLOW): Remove fallback.
20436         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
20437         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
20438
20439         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
20440
20441         * modules/EOVERFLOW-tests: New file.
20442         * tests/test-EOVERFLOW.c: New file.
20443
20444         * modules/EOVERFLOW: New file.
20445         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
20446
20447 2008-03-30  Bruno Haible  <bruno@clisp.org>
20448
20449         Fix bug introduced on 2007-06-10.
20450         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
20451         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
20452
20453 2008-03-30  Bruno Haible  <bruno@clisp.org>
20454
20455         Improve freadseek's efficiency after ungetc.
20456         * lib/freadseek.c: Include freadahead.h.
20457         (freadptrinc): New function, extracted from freadseek.
20458         (freadseek): Use it in a loop. Use freadahead to determine the number
20459         of loop iterations.
20460         * modules/freadseek (Depends-on): Add freadahead.
20461         (configure.ac): Require AC_C_INLINE.
20462
20463 2008-03-30  Bruno Haible  <bruno@clisp.org>
20464
20465         * lib/freadseek.c (freadseek): Don't ignore the return value of
20466         freadptr.
20467
20468 2008-03-29  Eric Blake  <ebb9@byu.net>
20469
20470         Add hex float support.
20471         * modules/strtod (Depends-on): Add c-ctype.
20472         (Link): Mention POW_LIB.
20473         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
20474         whitespace between 'e' and exponent.
20475         * tests/test-strtod.c (main): Enable hex float tests.
20476         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
20477         now provides.
20478
20479         Document various strtod bugs, with some fixes.
20480         * doc/posix-functions/strtod.texi (strtod): Document bugs with
20481         "-0x", "inf", "nan", and hex constants.
20482         * doc/posix-functions/atof.texi (atof): Likewise.
20483         * modules/stdlib (Makefile.am): Support strtod.
20484         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
20485         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
20486         detect additional strtod bugs.
20487         * lib/stdlib.in.h (rpl_strtod): Add declarations.
20488         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
20489         bool where appropriate.  Parse 'inf' and 'nan'.
20490         * tests/test-strtod.c: New file.
20491         * modules/strtod (Depends-on): Add stdbool, stdlib.
20492         (configure.ac): Turn on module indicator.
20493         * modules/strtod-tests: New module.
20494
20495 2008-03-29  Eric Blake  <ebb9@byu.net>
20496
20497         Fix ftell on mingw.
20498         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
20499         * modules/ftell-tests (Depends-on): Add binary-io.
20500         * modules/ftello-tests (Depends-on): Likewise.
20501         * tests/test-ftell.c (main): Enhance test to cover behavior after
20502         ungetc.  Enforce binary mode.
20503         * tests/test-ftello.c (main): Likewise.
20504
20505         Pass test-freadseek on cygwin.
20506         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
20507         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
20508         ungetc buffer.
20509
20510         * tests/test-fflush2.c (main): Fix typo.
20511
20512 2008-03-29  Bruno Haible  <bruno@clisp.org>
20513
20514         * tests/test-fflush2.c (main): Temporarily disable the contents of
20515         this test.
20516         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
20517         Reported by Eric Blake.
20518
20519 2008-03-28  Simon Josefsson  <simon@josefsson.org>
20520
20521         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
20522         (GC_SHA224_DIGEST_SIZE): Add.
20523
20524         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
20525         (gc_hash_digest_length): Likewise.
20526         (gc_hash_buffer): Likewise.
20527
20528 2008-03-25  Bruno Haible  <bruno@clisp.org>
20529
20530         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
20531         detail which gettext release to use.
20532         Reported by Simon Josefsson.
20533
20534 2008-03-26  Jim Meyering  <meyering@redhat.com>
20535
20536         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
20537         * modules/gnumakefile (clean-GNUmakefile): Also, use
20538         test ... && ... || : syntax rather than if-then ... fi.
20539
20540         gnumakefile: Don't double-quote-expand $(VPATH) value.
20541         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
20542
20543 2008-03-24  Eric Blake  <ebb9@byu.net>
20544
20545         Alter GNUmakefile to install into top directory.
20546         * modules/maintainer-makefile: Split, and add dependency...
20547         * modules/gnumakefile: to this new module.
20548         * build-aux/GNUmakefile: Move...
20549         * top/GNUmakefile: ...here.
20550         * build-aux/maint.mk: Move...
20551         * top/maint.mk: ...here.
20552         * MODULES.html.sh (Support for maintaining...): Document new
20553         module.
20554
20555 2008-03-23  Bruno Haible  <bruno@clisp.org>
20556
20557         * gnulib-tool: New options --vc-files, --no-vc-files.
20558         (func_usage): Document them.
20559         (vc_files): New variable.
20560         (func_import): Consider vc_files.
20561         (func_create_testdir): Set vc_files to empty.
20562         Suggested by Jim Meyering and Karl Berry.
20563
20564 2008-03-23  Bruno Haible  <bruno@clisp.org>
20565
20566         Fix regex compilation error on HP-UX 11.
20567         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
20568         * modules/regex (Files): Add m4/mbstate_t.m4.
20569         Reported by Ton Voon <ton.voon@altinity.com>.
20570
20571 2008-03-23  Bruno Haible  <bruno@clisp.org>
20572
20573         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
20574
20575 2008-03-23  Eric Blake  <ebb9@byu.net>
20576             Bruno Haible  <bruno@clisp.org>
20577
20578         Install files from top/ in the destination directory.
20579         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
20580         augmentation also for the files from top/.
20581         (func_import, func_create_testdir): Rewrite file names:
20582         top/filename -> filename.
20583
20584 2008-03-23  Bruno Haible  <bruno@clisp.org>
20585
20586         Tweak "gnulib --version" output.
20587         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
20588
20589 2008-03-23  Bruno Haible  <bruno@clisp.org>
20590
20591         Tweak "gnulib --version" output.
20592         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
20593         rather than contents of ChangeLog, when possible.
20594
20595 2008-03-21  Eric Blake  <ebb9@byu.net>
20596
20597         More --version tweaks.
20598         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
20599         date of last ChangeLog entry.
20600
20601 2008-03-21  Jim Meyering  <meyering@redhat.com>
20602
20603         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
20604
20605 2008-03-20  Eric Blake  <ebb9@byu.net>
20606
20607         VPATH fix.
20608         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
20609
20610 2008-03-20  Simon Josefsson  <simon@josefsson.org>
20611
20612         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
20613         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
20614
20615 2008-03-20  Eric Blake  <ebb9@byu.net>
20616
20617         Sync GNUmakefile with coreutils.
20618         * build-aux/GNUmakefile (have-Makefile): Rename...
20619         (_have-Makefile): ...to this, for namespace consideration.
20620         (GNUmakefile.cfg): Include, if present.
20621         (_autoreconf): Define a default.
20622         (_is-dist-target): New rule for rebuilds to pick up intra-release
20623         version.
20624         (maint-cfg.mk): Rename...
20625         (cfg.mk): ...to this.
20626
20627 2008-03-18  Jim Meyering  <meyering@redhat.com>
20628
20629         New script and module: mktempd
20630         * MODULES.html.sh (maint+release support): Add mktempd.
20631         * build-aux/mktempd: New file.
20632         * modules/mktempd: New file.
20633
20634 2008-03-15  Jim Meyering  <meyering@redhat.com>
20635
20636         Undo last change.
20637         * lib/sha1.c, lib/md5.c: 63 != ~63.
20638         Reported by Andreas Schwab.
20639
20640         sha1.c, md5.c: Hoist a redundant expression.
20641         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
20642         "ctx->buflen" only once, before calling *_process_block.
20643         * lib/md5.c (md5_process_bytes): Likewise.
20644
20645 2008-03-14  Eric Blake  <ebb9@byu.net>
20646
20647         Bump copyright year in files generated by gnulib-tool.
20648         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
20649         gnulib-tool, rather than hard-coding it.
20650
20651         Fix 'gnulib-tool --version' output to work with git.
20652         * gnulib-tool (func_gnulib_dir): New function, extracted from...
20653         (startup): ...here.
20654         (func_version): Use it to invoke git-version-gen, rather than
20655         relying on CVS keyword expansion.  Modernize wording.
20656         (cvsdatestamp, last_checkin_date, version): Kill unused
20657         variables.
20658
20659 2008-03-12  Jim Meyering  <meyering@redhat.com>
20660
20661         Recognize optional cast of the argument to free.
20662         * build-aux/useless-if-before-free: Update regexps.
20663
20664         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
20665
20666 2008-03-11  Bruno Haible  <bruno@clisp.org>
20667
20668         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
20669         by a single package.
20670         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
20671         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
20672         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
20673         Reported by Sam Steingold <sds@gnu.org>.
20674
20675 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
20676
20677         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
20678         repositories.
20679
20680 2008-03-11  Bruno Haible  <bruno@clisp.org>
20681
20682         Avoid conflicts between local macro definitions.
20683         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
20684         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
20685
20686 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
20687             Bruno Haible  <bruno@clisp.org>
20688
20689         Make va_copy work with some version of xlc on AIX 5.1.
20690         * lib/stdarg.in.h: New file.
20691         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
20692         On AIX, use a <stdarg.h> file substitute.
20693         * modules/stdarg (Files): Add lib/stdarg.in.h.
20694         (Depends-on): Add include_next.
20695         (Makefile.am): Build a stdarg.h substitute if requested.
20696         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
20697
20698 2008-03-10  Bruno Haible  <bruno@clisp.org>
20699
20700         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
20701         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20702         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
20703
20704 2008-03-10  Bruno Haible  <bruno@clisp.org>
20705
20706         * modules/stdlib (Depends-on): Add include_next, remove
20707         absolute-header.
20708
20709 2008-03-09  Bruno Haible  <bruno@clisp.org>
20710
20711         * lib/freadahead.h (freadahead): Document more precisely.
20712         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
20713         the sum of both buffer sizes.
20714         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
20715         * NEWS: Document the change.
20716
20717 2008-03-09  Bruno Haible  <bruno@clisp.org>
20718
20719         Extend freadptr to return also the buffer size.
20720         * lib/freadptr.h (freadptr): Add sizep argument.
20721         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
20722         (freadptr): Add sizep argument. Determine buffer size like freadahead
20723         does.
20724         * tests/test-freadptr.c: Don't include freadahead.h.
20725         (main): Adapt for new calling convention of freadptr.
20726         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
20727         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
20728         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
20729         tests/test-freadptr2.sh.
20730         (Depends): Remove freadahead.
20731         (TESTS): Add test-freadptr2.sh.
20732         (check_PROGRAMS): Add test-freadptr2.
20733
20734 2008-03-09  Bruno Haible  <bruno@clisp.org>
20735
20736         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
20737         Report and solution by Simon Josefsson.
20738
20739 2008-03-06  Bruno Haible  <bruno@clisp.org>
20740
20741         Make fflush after ungetc work on BSD platforms.
20742         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
20743         * tests/test-fflush2.c: New file.
20744         * tests/test-fflush2.sh: New file.
20745         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
20746         tests/test-fflush2.c.
20747         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
20748         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
20749
20750 2008-03-06  Eric Blake  <ebb9@byu.net>
20751
20752         Likewise for ftello.
20753         * modules/ftello (Dependencies): Add extensions.
20754         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
20755
20756 2008-03-06  Bruno Haible  <bruno@clisp.org>
20757
20758         * modules/fseeko (Dependencies): Add extensions.
20759         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
20760         Needed on glibc systems.
20761
20762 2008-03-06  Bruno Haible  <bruno@clisp.org>
20763
20764         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
20765         email address.
20766         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20767
20768 2008-03-06  Bruno Haible  <bruno@clisp.org>
20769
20770         * users.txt: Add libgnupdf.
20771
20772 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20773
20774         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
20775         (Header File Substitutes, Function Substitutes,
20776         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
20777         (Build robot for gnulib): Fix typo.
20778
20779 2008-03-06  Bruno Haible  <bruno@clisp.org>
20780
20781         * doc/gnulib-tool.texi (VCS Issues): Small updates.
20782         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20783
20784 2008-03-06  Bruno Haible  <bruno@clisp.org>
20785
20786         * doc/func.texi: New file, extracted from doc/gnulib.texi.
20787         * doc/gnulib.texi: Include it.
20788
20789 2008-03-06  Simon Josefsson  <simon@josefsson.org>
20790
20791         * modules/func (License): Change license to unlimited; there was
20792         no LGPL parts in the module anyway.
20793
20794 2008-03-06  Simon Josefsson  <simon@josefsson.org>
20795
20796         * modules/__func__: Renamed to modules/func.
20797         * modules/__func__-tests: Renamed to modules/func-tests.
20798         * tests/test-__func__.c: Renamed to tests/test-func.c.
20799         * m4/__func__.m4: Renamed to m4/func.m4.
20800         * doc/gnulib.texi (__func__): Section renamed to func.
20801         Suggested by Eric Blake <ebb9@byu.net>.
20802
20803 2008-03-06  Simon Josefsson  <simon@josefsson.org>
20804
20805         * doc/gnulib.texi (__func__): Use C99 terminology when talking
20806         about __func__.  Make example self-contained.  Suggested by Eric
20807         Blake <ebb9@byu.net>.
20808
20809         * tests/test-__func__.c (main): Avoid extraneous () around __func.
20810         Suggested by Eric Blake <ebb9@byu.net>.
20811
20812 2008-03-06  Simon Josefsson  <simon@josefsson.org>
20813
20814         * modules/__func__: New file.
20815         * modules/__func__-tests: New file.
20816         * tests/test-__func__.c: New file.
20817         * m4/__func__.m4: New file.
20818         * doc/gnulib.texi (__func__): Document __func__ module.
20819
20820 2008-03-05  Simon Josefsson  <simon@josefsson.org>
20821
20822         * modules/byteswap (License): Re-license as LGPLv2+.
20823
20824 2008-03-05  Simon Josefsson  <simon@josefsson.org>
20825
20826         * doc/Makefile: Add pdf target.
20827
20828 2008-03-05  Simon Josefsson  <simon@josefsson.org>
20829
20830         * modules/inline (License): Use 'unlimited', since there are only
20831         *.m4 files in this module.
20832
20833 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
20834             Bruno Haible  <bruno@clisp.org>
20835
20836         Add support for HP C 7.1 on OpenVMS 8.3.
20837         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
20838
20839 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
20840
20841         Update VMS specifics.
20842         * lib/getopt.c [VMS]: Remove include of unixlib.h.
20843
20844 2008-03-02  Jim Meyering  <meyering@redhat.com>
20845
20846         Remove the last dependency on the "free" module.
20847         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
20848         Reported by Bob Proulx.
20849
20850         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
20851
20852         Remove useless "if" tests before free.  Deprecate "free" module.
20853         * doc/posix-functions/free.texi: Mention that this
20854         module is no longer useful.
20855         * modules/free (Notice): Say this module is obsolete.
20856         * modules/readutmp (Depends-on): Remove free.
20857         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
20858         * lib/putenv.c (putenv): Likewise.
20859         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
20860         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
20861         * tests/test-c-strcasestr.c (main): Likewise.
20862         * tests/test-c-strstr.c (main): Likewise.
20863         * tests/test-mbscasestr1.c (main): Likewise.
20864         * tests/test-mbscasestr2.c (main): Likewise.
20865         * tests/test-mbsstr1.c (main): Likewise.
20866         * tests/test-mbsstr2.c (main): Likewise.
20867         * tests/test-memmem.c (main): Likewise.
20868         * tests/test-strcasestr.c (main): Likewise.
20869         * tests/test-striconv.c (main): Likewise.
20870         * tests/test-striconveh.c (main): Likewise.
20871         * tests/test-striconveha.c (main): Likewise.
20872         * tests/test-strstr.c (main): Likewise.
20873
20874         * build-aux/git-version-gen: Adjust a comment and the Usage string.
20875
20876         bootstrap: sync from coreutils again
20877         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
20878
20879 2008-03-01  Jim Meyering  <meyering@redhat.com>
20880
20881         bootstrap: sync from coreutils
20882         * build-aux/bootstrap (update_po_files): Copy a .po file into place
20883         also when the target doesn't exist.
20884
20885 2008-03-01  Eric Blake  <ebb9@byu.net>
20886
20887         Fix bugs in last patch.
20888         * lib/memchr2.c (memchr2): Fix typo.
20889         * tests/test-memchr2.c: Test previous bug, and don't use GNU
20890         extension.
20891         Reported by Bruce Korb.
20892
20893         New module 'memchr2'.
20894         * modules/memchr2: New file.
20895         * modules/memchr2-tests: Likewise.
20896         * lib/memchr2.h: Likewise.
20897         * lib/memchr2.c: Likewise, based on memchr.c.
20898         * tests/test-memchr2.c: New test.
20899         * MODULES.html.sh (String handling): Add memchr2.
20900
20901 2008-02-29  Bruno Haible  <bruno@clisp.org>
20902
20903         * modules/freadseek-tests: New file.
20904         * tests/test-freadseek.sh: New file.
20905         * tests/test-freadseek.c: New file.
20906
20907         New module 'freadseek'.
20908         * modules/freadseek: New file.
20909         * lib/freadseek.h: New file.
20910         * lib/freadseek.c: New file.
20911         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
20912
20913 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
20914
20915         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
20916         wydawca.
20917
20918         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
20919         program_invocation_name and program_invocation_short_name are
20920         present.
20921
20922 2008-02-28  Bruno Haible  <bruno@clisp.org>
20923
20924         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
20925         * tests/test-freadptr.sh: Also test non-seekable stdin.
20926
20927 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
20928
20929         * build-aux/bootstrap (source_base, m4_base)
20930         (doc_base, tests_base): New variables.
20931         (gnulib_tool_options): Do not hardcode base directories, use
20932         the above variables instead.
20933
20934 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
20935
20936         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
20937
20938 2008-02-28  Bruno Haible  <bruno@clisp.org>
20939
20940         * modules/freadptr-tests: New file.
20941         * tests/test-freadptr.sh: New file.
20942         * tests/test-freadptr.c: New file.
20943
20944         New module 'freadptr'.
20945         * modules/freadptr: New file.
20946         * lib/freadptr.h: New file.
20947         * lib/freadptr.c: New file.
20948         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
20949
20950 2008-02-26  Karl Berry  <karl@freefriends.org>
20951
20952         Sync from Libtool:
20953         * libltdl/argz.c (argz_add, argz_count): New functions.
20954         * libltdl/argz.in.h: Declare them.
20955         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
20956
20957 2008-02-22  Bruno Haible  <bruno@clisp.org>
20958
20959         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
20960         is a pointer type.  Needed for HP-UX 10.
20961         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
20962         * doc/posix-functions/gmtime_r.texi: Likewise.
20963         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
20964
20965 2008-02-24  Bruno Haible  <bruno@clisp.org>
20966
20967         * modules/environ-tests: New file.
20968         * tests/test-environ.c: New file.
20969
20970         New module 'environ'.
20971         * modules/environ: New file.
20972         * lib/unistd.in.h (environ): New declaration.
20973         * m4/environ.m4: New file.
20974         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
20975         after use.
20976         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
20977         HAVE_DECL_ENVIRON.
20978         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
20979         HAVE_DECL_ENVIRON.
20980         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
20981         wrong claim that 'environ' is missing on some systems.
20982         * modules/execute (Depends-on): Add environ.
20983         * lib/execute.c (environ): Remove fallback declaration.
20984         * modules/pipe (Depends-on): Add environ.
20985         * lib/pipe.c (environ): Remove fallback declaration.
20986         * modules/setenv (Depends-on): Add environ.
20987         * lib/setenv.c (environ): Remove fallback declaration.
20988         * modules/unsetenv (Depends-on): Add environ.
20989         * lib/unsetenv.c (environ): Remove fallback declaration.
20990         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
20991         m4/environ.m4.
20992         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
20993         (gl_PREREQ_UNSETENV): Likewise.
20994
20995 2008-02-24  Bruno Haible  <bruno@clisp.org>
20996
20997         * doc/posix-functions/environ.texi: Document the MacOS X problem.
20998
20999 2008-02-20  Bob Proulx  <bob@proulx.com>
21000
21001         Enable use of older two part flavor 'git describe'.
21002         * build-aux/git-version-gen: If using the older two part flavor of
21003         git version then recreate the third part now present in the
21004         newer three part flavor of git describe.
21005
21006 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
21007
21008         * lib/fts.c (fts_build): Typo correction to comment.
21009
21010 2008-02-17  Bruno Haible  <bruno@clisp.org>
21011
21012         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
21013         generating no-op conflicts.
21014
21015 2008-02-17  Bruno Haible  <bruno@clisp.org>
21016
21017         Speed up by 10%.
21018         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
21019         result_entries, rather than an index-based loop.
21020
21021 2008-02-17  Bruno Haible  <bruno@clisp.org>
21022
21023         Speed up by 25%.
21024         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
21025         'hashcode_cached'.
21026         (entry_create): New function.
21027         (entry_hashcode): Use the cached hashcode if possible.
21028         (read_changelog_file, try_split_merged_entry): Use entry_create.
21029
21030 2008-02-17  Bruno Haible  <bruno@clisp.org>
21031
21032         Speed up from O(n^2) to O(n) for long ChangeLog files.
21033         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
21034         (read_changelog_file): Change implementation of entries_reversed list
21035         to rbtreehash.
21036         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
21037
21038 2008-02-17  Bruno Haible  <bruno@clisp.org>
21039
21040         New option --split-merged-entry.
21041         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
21042         (find_paragraph_end, try_split_merged_entry): New functions.
21043         (long_options): Add option --split-merged-entry.
21044         (usage): Document option --split-merged-entry.
21045         (main): Implement option --split-merged-entry.
21046         Reported by Eric Blake.
21047
21048 2008-02-17  Bruno Haible  <bruno@clisp.org>
21049
21050         * lib/git-merge-changelog.c: Include c-strstr.h.
21051         (main): Support the "git pull --rebase" situation.
21052         * modules/git-merge-changelog (Depends-on): Add c-strstr.
21053         Reported by Eric Blake.
21054
21055 2008-02-16  Eric Blake  <ebb9@byu.net>
21056
21057         Avoid doubling \ in common case of "c-maybe" quoting style.
21058         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
21059         eliding outer quotes.
21060         * lib/quotearg.h: Document this.
21061         * tests/test-quotearg.c (result_strings, inputs, results_g)
21062         (flag_results, locale_results): Test it by adding a new string to
21063         each test group.
21064         (compare_strings): Test new string.
21065
21066 2008-02-13  Eric Blake  <ebb9@byu.net>
21067
21068         Avoid trigraph quoting in default output.
21069         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
21070         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
21071         unless explicitly requested.
21072         * tests/test-quotearg.c (flag_results, main): Add additional tests.
21073
21074 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
21075
21076         Don't rely on signed integer overflowing to negative value.
21077         * lib/getugroups.c (getugroups): Include <limits.h>.
21078         Instead, compare against INT_MAX, and increment only if the test passes.
21079
21080 2008-02-13  Jim Meyering  <meyering@redhat.com>
21081         and Eric Blake  <ebb9@byu.net>
21082
21083         Avoid shadowing warning and compile errors on Linux.
21084         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
21085         forwarding macros on Linux.
21086         (dcgettext): Define a stub, for Linux.
21087         (results_g, main): Avoid warnings.
21088
21089 2008-02-12  Eric Blake  <ebb9@byu.net>
21090
21091         Silence warning in last patch.
21092         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
21093
21094         Quotearg part 4: add tests, fix c-maybe colon quoting.
21095         * lib/quotearg.h: Improve documentation.
21096         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
21097         escapes when adding outer quotes.  When quoting trigraphs, use
21098         valid C notation.  When quoting NUL, omit extra characters if next
21099         character is not digit.  Alter prototype.
21100         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
21101         callers.
21102         * modules/quotearg-tests: New module.
21103         * tests/test-quotearg.c: New test.
21104
21105 2008-02-07  Eric Blake  <ebb9@byu.net>
21106
21107         Quotearg part 3: add flag to control outer quote elision.
21108         * lib/quotearg.h (c_maybe_quoting_style): New style.
21109         (enum quoting_flags): Better documentation of flags.
21110         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
21111         c-maybe style.
21112         (quotearg_buffer_restyled): Handle new flag to elide outer
21113         quotes.
21114
21115         Quotearg part 2: add flag that can control NUL elision.
21116         * lib/quotearg.h (set_quoting_flags): New prototype.
21117         * lib/quotearg.c (struct quoting_options): Add flag field.
21118         (set_quoting_flags): New function.
21119         (quotearg_buffer_restyled): Add flags parameter.
21120         (quotearg_alloc_mem): Set the flag if length cannot be returned.
21121         (quotearg_n_options): Set the flag, since length cannot be
21122         returned.
21123         (quoting_options_from_style): Default flags correctly.
21124
21125         Quotearg part 1: more wrappers, restore quotearg_char state.
21126         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
21127         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
21128         (quotearg_colon_mem): New wrappers.
21129         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
21130         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
21131         functions.
21132         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
21133         (quotearg_colon_mem): New functions.
21134
21135 2008-02-11  Bruno Haible  <bruno@clisp.org>
21136
21137         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
21138         library in the current directory: it does not work with parallel make.
21139         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21140
21141 2008-02-11  Bruno Haible  <bruno@clisp.org>
21142
21143         * .gitattributes: New file.
21144
21145 2008-02-11  Jim Meyering  <meyering@redhat.com>
21146
21147         useless-if-before-free: Fix reversed exit values.
21148         * build-aux/useless-if-before-free: Use correct values
21149         for EXIT_MATCH and EXIT_NO_MATCH.
21150
21151         * build-aux/useless-if-before-free: Close stdout carefully.
21152
21153 2008-02-10  Bruno Haible  <bruno@clisp.org>
21154
21155         New module 'git-merge-changelog'.
21156         * modules/git-merge-changelog: New file.
21157         * lib/git-merge-changelog.c: New file.
21158
21159 2008-02-10  Jim Meyering  <meyering@redhat.com>
21160
21161         useless-if-before-free: New option: --list (-l).
21162
21163         useless-if-before-free: Don't exit immediately upon open failure.
21164         * build-aux/useless-if-before-free: Exit 2 for errors.
21165         Upon failure to open a file, don't exit immediately.
21166         Rather, just warn and continue with any remaining files.
21167
21168 2008-02-10  Bruno Haible  <bruno@clisp.org>
21169
21170         New abstract list operation 'node_set_value'.
21171         * lib/gl_list.h (gl_list_node_set_value): New function.
21172         (struct gl_list_implementation): New field node_set_value.
21173         * lib/gl_list.c (gl_list_node_set_value): New function.
21174         * lib/gl_array_list.c (gl_array_node_set_value): New function.
21175         (gl_array_list_implementation): Update.
21176         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
21177         (gl_carray_list_implementation): Update.
21178         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
21179         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
21180         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
21181         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
21182         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
21183         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
21184         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
21185         Update.
21186         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
21187         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
21188         (gl_sublist_list_implementation): Update.
21189
21190 2008-02-10  Bruno Haible  <bruno@clisp.org>
21191
21192         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
21193         Needed when ELEMENT is #defined to 'some_type *'.
21194
21195 2008-02-10  Jim Meyering  <meyering@redhat.com>
21196
21197         New script and module: useless-if-before-free
21198         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
21199         * build-aux/useless-if-before-free: New file.
21200         * modules/useless-if-before-free: New file.
21201
21202         * build-aux/gitlog-to-changelog: Use committer date, not author date.
21203
21204         xstrtol_error: Fix typo.
21205         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
21206         s/exit_failure/exit_status/.
21207
21208 2008-02-09  Jim Meyering  <meyering@redhat.com>
21209
21210         New script and module: gitlog-to-changelog
21211         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
21212         * modules/gitlog-to-changelog: New file.
21213         * build-aux/gitlog-to-changelog: New file.
21214
21215 2008-02-08  Jim Meyering  <meyering@redhat.com>
21216
21217         Avoid two "parameter unused" warnings.
21218         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
21219         Mark "st" as used.
21220
21221         Use "git COMMAND", not "git-COMMAND".
21222         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
21223         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
21224         * build-aux/git-version-gen: Use "git status", not "git-status".
21225
21226 2008-02-07  Bruno Haible  <bruno@clisp.org>
21227
21228         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
21229         Avoids a crash on Windows Vista.
21230         Reported by Adam Strzelecki <ono@java.pl> via
21231         Simon Josefsson <simon@josefsson.org>.
21232
21233 2008-02-06  Bruno Haible  <bruno@clisp.org>
21234
21235         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
21236         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
21237         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
21238         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
21239         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
21240         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
21241         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
21242         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
21243         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
21244         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
21245         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
21246         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
21247         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
21248         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
21249         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
21250         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
21251         left-adjust flag.
21252         * tests/test-snprintf-posix.h (test_function): Likewise.
21253         * tests/test-sprintf-posix.h (test_function): Likewise.
21254         * tests/test-vasprintf-posix.c (test_function): Likewise.
21255         * doc/posix-functions/fprintf.texi: Update.
21256         * doc/posix-functions/printf.texi: Update.
21257         * doc/posix-functions/snprintf.texi: Update.
21258         * doc/posix-functions/sprintf.texi: Update.
21259         * doc/posix-functions/vfprintf.texi: Update.
21260         * doc/posix-functions/vprintf.texi: Update.
21261         * doc/posix-functions/vsnprintf.texi: Update.
21262         * doc/posix-functions/vsprintf.texi: Update.
21263         Reported by Peter Fales <psfales@alcatel-lucent.com>.
21264
21265 2008-02-06  Bruno Haible  <bruno@clisp.org>
21266
21267         Fix bug introduced on 2008-01-26.
21268         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
21269
21270 2008-02-06  Bruno Haible  <bruno@clisp.org>
21271
21272         Fix bug introduced on 2007-06-10.
21273         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
21274         !NEED_PRINTF_FLAG_ZERO.
21275
21276 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
21277
21278         getloadavg: use libperfstat on AIX5
21279         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
21280
21281 2008-02-03  Bruno Haible  <bruno@clisp.org>
21282
21283         * lib/diffseq.h: Add comments about required #includes.
21284         Reported by Michael Biggs <gnulib@doubleplum.net>.
21285
21286 2008-02-01  Bruno Haible  <bruno@clisp.org>
21287
21288         * users.txt: Add gnuit.
21289
21290 2008-01-31  Bruno Haible  <bruno@clisp.org>
21291
21292         * lib/md4.c (set_uint32): Mark as inline.
21293         * lib/md5.c (set_uint32): Likewise.
21294         * lib/sha1.c (set_uint32): Likewise.
21295         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
21296         * m4/md5.m4 (gl_MD5): Likewise.
21297         * m4/sha1.m4 (gl_SHA1): Likewise.
21298
21299 2008-01-31  Jim Meyering  <meyering@redhat.com>
21300
21301         Use "sizeof VAR", rather than a literal "4".
21302         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
21303         * lib/md4.c (md4_read_ctx): Likewise.
21304         * lib/sha1.c (sha1_read_ctx): Likewise.
21305
21306 2008-01-31  Simon Josefsson  <simon@josefsson.org>
21307
21308         * tests/test-sha1.c: New file, based on test-md5.c.
21309
21310         * modules/crypto/sha1-tests: New file.
21311
21312 2008-01-31  Simon Josefsson  <simon@josefsson.org>
21313
21314         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
21315
21316 2008-01-31  Jim Meyering  <meyering@redhat.com>
21317
21318         Prefer "sizeof v" over the equivalent "4".
21319         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
21320         * lib/md5.c (set_uint32): Likewise.
21321         * lib/sha1.c (set_uint32): Likewise.
21322
21323 2008-01-31  Simon Josefsson  <simon@josefsson.org>
21324
21325         * lib/sha1.c (set_uint32): Mark function as static.
21326
21327 2008-01-31  Simon Josefsson  <simon@josefsson.org>
21328
21329         md2: clarify comments to say that alignment is not required.
21330         * lib/md2.h: Remove warning about alignment in comment.
21331         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
21332         never been required.
21333
21334 2008-01-31  Simon Josefsson  <simon@josefsson.org>
21335
21336         md4: adapt alignment constraint fix from sha1.
21337         * lib/md4.c (set_uint32): New function, from sha1.c
21338         (md4_read_ctx): Use it.
21339         (md4_finish_ctx): Doc fix.
21340         * lib/md4.h: Doc fix.
21341
21342 2008-01-31  Simon Josefsson  <simon@josefsson.org>
21343
21344         md5: adapt alignment constraint fix from sha1.
21345         * lib/md5.c (set_uint32): New function, from sha1.c
21346         (md5_read_ctx): Use it.
21347         (md5_finish_ctx): Doc fix.
21348         * lib/md5.h: Doc fix.
21349
21350 2008-01-30  Peter Palfrader  <weasel@debian.org>
21351
21352         sha1: remove the result buffer alignment constraint
21353         * lib/sha1.c (set_uint32): New function.
21354         (sha1_read_ctx): Rewrite to remove the result buffer alignment
21355         constraint.
21356         (sha1_finish_ctx): Remove comment warning about alignment constraint.
21357         * lib/sha1.h: Likewise.
21358
21359 2008-01-30  Andreas Schwab  <schwab@suse.de>
21360             Bruno Haible  <bruno@clisp.org>
21361
21362         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
21363         correct definition of LDBL_MIN_EXP.
21364
21365 2008-01-30  Karl Berry  <karl@gnu.org>
21366
21367         * config/srclist-update: try to preserve x bit on updates.
21368         * config/srclistvars.sh: update for karl.
21369
21370 2008-01-29  Jim Meyering  <meyering@redhat.com>
21371
21372         vasnprintf.c: Avoid warning about unused label
21373         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
21374         "overflow" label definition and associated code with the
21375         same cpp condition that guards the sole use of that label.
21376
21377 2008-01-26  Bruno Haible  <bruno@clisp.org>
21378
21379         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
21380         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
21381         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
21382         * lib/isnanl-nolibm.h (isnanl): Likewise.
21383         Reported by Paul Eggert <eggert@cs.ucla.edu>.
21384
21385 2008-01-26  Bruno Haible  <bruno@clisp.org>
21386
21387         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
21388         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
21389
21390 2008-01-26  Bruno Haible  <bruno@clisp.org>
21391
21392         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
21393         GCC >= 4.0 built-in.
21394         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
21395
21396 2008-01-26  Bruno Haible  <bruno@clisp.org>
21397
21398         Rename isnan, applicable to 'double' only, to isnand.
21399         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
21400         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
21401         (configure.ac): Update.
21402         (Include): Replace "isnan.h" with "isnand.h".
21403         * m4/isnand.m4: Renamed from m4/isnan.m4.
21404         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
21405         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
21406         instead of isnan.c.
21407         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
21408         instead of HAVE_ISNAN_IN_LIBC.
21409         (isnand): Renamed from isnan.
21410         * lib/isnand.c: New file.
21411         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
21412         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
21413         (Makefile.am): Update.
21414         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
21415         Include isnand.h instead of isnan.h.
21416         (main): Test isnand instead of isnan.
21417         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
21418         isnan-nolibm.
21419         * modules/frexp (Depends-on): Likewise.
21420         * modules/frexp-tests (Depends-on): Likewise.
21421         * modules/frexp-nolibm (Depends-on): Likewise.
21422         * modules/frexp-nolibm-tests (Depends-on): Likewise.
21423         * modules/isfinite (Depends-on): Likewise.
21424         * modules/round-tests (Depends-on): Likewise.
21425         * modules/signbit (Depends-on): Likewise.
21426         * modules/signbit-tests (Depends-on): Likewise.
21427         * modules/snprintf-posix (Depends-on): Likewise.
21428         * modules/sprintf-posix (Depends-on): Likewise.
21429         * modules/trunc-tests (Depends-on): Likewise.
21430         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21431         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21432         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21433         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21434         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21435         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21436         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21437         * modules/vasnprintf-posix (Depends-on): Likewise.
21438         * modules/vasprintf-posix (Depends-on): Likewise.
21439         * modules/vfprintf-posix (Depends-on): Likewise.
21440         * modules/vsnprintf-posix (Depends-on): Likewise.
21441         * modules/vsprintf-posix (Depends-on): Likewise.
21442         * lib/frexp.c: Include isnand.h instead of isnan.h.
21443         (ISNAN): Set to isnand instead of isnan.
21444         * lib/isfinite.c: Include isnand.h instead of isnan.h.
21445         (gl_isfinited): Use isnand instead of isnan.
21446         * lib/signbitd.c: Include isnand.h instead of isnan.h.
21447         (gl_signbitd): Use isnand instead of isnan.
21448         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
21449         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
21450         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
21451         (main): Use isnand instead of isnan.
21452         * tests/test-round1.c: Include isnand.h.
21453         (main): Use isnand instead of isnan.
21454         * tests/test-round2.c: Include isnand.h instead of isnan.h.
21455         (ISNAN): Set to isnand instead of isnan.
21456         * tests/test-trunc1.c: Include isnand.h.
21457         (main): Use isnand instead of isnan.
21458         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
21459         (equal): Use isnand instead of isnan.
21460         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
21461         isnand-nolibm.
21462         * NEWS: Mention the change.
21463
21464 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
21465             Bruno Haible  <bruno@clisp.org>
21466
21467         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
21468         the GCC builtins for signbits are present and set
21469         REPLACE_SIGNBIT_USING_GCC if so.
21470         * lib/math.in.h (signbit): Define using GCC builtins if
21471         REPLACE_SIGNBIT_USING_GCC is set.
21472         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
21473         REPLACE_SIGNBIT_USING_GCC.
21474         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
21475
21476 2008-01-25  Jim Meyering  <meyering@redhat.com>
21477
21478         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
21479         * lib/poll.c: Include <config.h>, not "config.h".
21480         * tests/test-getaddrinfo.c: Likewise.
21481
21482 2008-01-25  Simon Josefsson  <simon@josefsson.org>
21483
21484         * modules/sockets-tests: New file.
21485
21486 2008-01-24  Simon Josefsson  <simon@josefsson.org>
21487
21488         * modules/sockets: New module, can be used to call WSA_Startup and
21489         WSA_Cleanup when needed.
21490
21491         * lib/sockets.h, lib/sockets.c: New files.
21492
21493         * m4/sockets.m4: New file.
21494
21495         * tests/test-sockets.c: New file.
21496
21497 2008-01-19  Bruno Haible  <bruno@clisp.org>
21498
21499         * doc/posix-headers: Renamed from doc/headers.
21500         * doc/posix-functions: Renamed from doc/functions.
21501         * doc/gnulib.texi: Update.
21502
21503 2008-01-19  Bruno Haible  <bruno@clisp.org>
21504
21505         * doc/glibc-functions/strcasestr.texi: Include contents of
21506         doc/functions/strcasestr.texi, fixing the list of platforms.
21507         * doc/functions/strcasestr.texi: Remove file.
21508
21509 2008-01-19  Bruno Haible  <bruno@clisp.org>
21510
21511         * doc/glibc-functions/memmem.texi: Include contents of
21512         doc/functions/memmem.texi.
21513         * doc/functions/memmem.texi: Remove file.
21514
21515 2008-01-18  Bruno Haible  <bruno@clisp.org>
21516
21517         * doc/glibc-functions/*.texi: New files.
21518         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
21519         to use the new files.
21520
21521 2008-01-17  Bruno Haible  <bruno@clisp.org>
21522
21523         * tests/test-gethostname.c (main): Fix printf statement.
21524
21525 2008-01-17  Simon Josefsson  <simon@josefsson.org>
21526
21527         * modules/gethostname-tests: New file.
21528
21529         * tests/test-gethostname.c: New file.
21530
21531 2008-01-17  Simon Josefsson  <simon@josefsson.org>
21532
21533         * lib/gethostname.c: Include string.h unconditionally, strncpy is
21534         used by the UNAME case.  Reported by Bruno Haible
21535         <bruno@clisp.org>.
21536
21537 2008-01-17  Eric Blake  <ebb9@byu.net>
21538
21539         Convert c-strcasestr to be more efficient.
21540         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
21541         (Depends-on): Add c-strcase, remove malloca, strnlen.
21542         * tests/test-c-strcasestr.c (main): Enhance test.
21543         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
21544
21545 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
21546
21547         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
21548         Use it in creating po/Makevars.
21549
21550 2008-01-15  Simon Josefsson  <simon@josefsson.org>
21551
21552         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
21553         Applications that requires it should initialize libgcrypt
21554         manually.
21555
21556 2008-01-16  Simon Josefsson  <simon@josefsson.org>
21557
21558         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
21559
21560 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
21561
21562         Fix problem with getdate on mingw32 reported by Simon Josefsson
21563         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
21564         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
21565         tzname", when deciding whether to declare tzname.
21566         * lib/strftime.c (tzname): Likewise.
21567
21568 2008-01-15  Bruno Haible  <bruno@clisp.org>
21569
21570         Work around a MacOS X 10.5 bug in frexpl().
21571         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
21572         * doc/functions/frexpl.texi: Document the bug.
21573         Reported by Elias Pipping <pipping@gentoo.org>.
21574
21575 2008-01-14  Eric Blake  <ebb9@byu.net>
21576
21577         Touch up previous patch.
21578         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
21579         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
21580
21581         Convert strcasestr module to use Two-Way algorithm.
21582         * modules/strcasestr-simple: New module, based on the old
21583         strcasestr, but with Two-Way rather than KMP.
21584         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
21585         * lib/string.in.h (rpl_strcasestr): Declare.
21586         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
21587         performance.
21588         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
21589         * modules/string (Makefile.am): Support strcasestr.
21590         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
21591         * modules/strcasestr-tests (Depends-on): Check for alarm.
21592         * tests/test-strcasestr.c: Augment test.
21593         * lib/str-two-way.h: Clean up stray macro.
21594         * NEWS: Document new module.
21595         * MODULES.html.sh (string handling): Likewise.
21596         * doc/functions/strcasestr.texi: New file.
21597         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
21598         here, since it is not a POSIX function.
21599
21600 2008-01-14  Colin Watson  <cjwatson@debian.org>
21601             Bruno Haible  <bruno@clisp.org>
21602
21603         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
21604         works fine; if not, set REPLACE_STRSIGNAL.
21605         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
21606         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21607         REPLACE_STRSIGNAL.
21608         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
21609         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
21610         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
21611
21612 2008-01-14  Bruno Haible  <bruno@clisp.org>
21613
21614         * modules/strsignal (Include): Change to <string.h>.
21615
21616 2008-01-14  Colin Watson  <cjwatson@debian.org>
21617
21618         * modules/argp (Notice): Add a notice recommending to change
21619         XGETTEXT_OPTIONS.
21620         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
21621
21622 2008-01-13  Colin Watson  <cjwatson@debian.org>
21623
21624         * modules/strsignal-tests: New file.
21625         * tests/test-strsignal.c: New file.
21626
21627         * lib/strsignal.c: New file, from glibc with modifications.
21628         * lib/siglist.h: New file, from glibc with modifications.
21629         * lib/string.in.h (strsignal): New declaration.
21630         * m4/strsignal.m4: New file.
21631         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21632         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
21633         * modules/strsignal: New file.
21634         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
21635         HAVE_DECL_STRSIGNAL.
21636
21637 2008-01-13  Bruno Haible  <bruno@clisp.org>
21638
21639         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
21640         locale encoding is not ASCII. Needed for OpenBSD 4.0.
21641         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
21642         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21643
21644 2008-01-13  Bruno Haible  <bruno@clisp.org>
21645
21646         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
21647         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
21648         * lib/argp.h (__attribute__): Likewise.
21649         * lib/c-stack.c (__attribute__): Likewise.
21650         * lib/error.h (__attribute__): Likewise.
21651         * lib/fts.c (__attribute__): Likewise.
21652         * lib/openat.h (__attribute__): Likewise.
21653         * lib/stdio.in.h (__attribute__): Likewise.
21654         * lib/string.in.h (__attribute__): Likewise.
21655         * lib/utimens.c (__attribute__): Likewise.
21656         * lib/vasnprintf.h (__attribute__): Likewise.
21657         * lib/xalloc.h (__attribute__): Likewise.
21658         * lib/xprintf.h (__attribute__): Likewise.
21659         * lib/xstrtol.h (__attribute__): Likewise.
21660         * lib/xvasprintf.h (__attribute__): Likewise.
21661
21662 2008-01-12  Bruno Haible  <bruno@clisp.org>
21663
21664         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
21665         * doc/glibc-headers/a.out.texi: New file.
21666         * doc/glibc-headers/aliases.texi: New file.
21667         * doc/glibc-headers/alloca.texi: New file.
21668         * doc/glibc-headers/ar.texi: New file.
21669         * doc/glibc-headers/argp.texi: New file.
21670         * doc/glibc-headers/argz.texi: New file.
21671         * doc/glibc-headers/byteswap.texi: New file.
21672         * doc/glibc-headers/crypt.texi: New file.
21673         * doc/glibc-headers/endian.texi: New file.
21674         * doc/glibc-headers/envz.texi: New file.
21675         * doc/glibc-headers/err.texi: New file.
21676         * doc/glibc-headers/error.texi: New file.
21677         * doc/glibc-headers/execinfo.texi: New file.
21678         * doc/glibc-headers/fpu_control.texi: New file.
21679         * doc/glibc-headers/fstab.texi: New file.
21680         * doc/glibc-headers/fts.texi: New file.
21681         * doc/glibc-headers/getopt.texi: New file.
21682         * doc/glibc-headers/ieee754.texi: New file.
21683         * doc/glibc-headers/ifaddrs.texi: New file.
21684         * doc/glibc-headers/libintl.texi: New file.
21685         * doc/glibc-headers/mcheck.texi: New file.
21686         * doc/glibc-headers/mntent.texi: New file.
21687         * doc/glibc-headers/obstack.texi: New file.
21688         * doc/glibc-headers/paths.texi: New file.
21689         * doc/glibc-headers/printf.texi: New file.
21690         * doc/glibc-headers/pty.texi: New file.
21691         * doc/glibc-headers/resolv.texi: New file.
21692         * doc/glibc-headers/shadow.texi: New file.
21693         * doc/glibc-headers/sysexits.texi: New file.
21694         * doc/glibc-headers/ttyent.texi: New file.
21695
21696 2008-01-12  Jim Meyering  <meyering@redhat.com>
21697
21698         announce-gen: emit Gnulib's git-based version string.
21699         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
21700         New option --gnulib-version=V, where V is expected to be
21701         the output of running git describe in the gnulib directory.
21702         (get_tool_versions): Request feedback on xdelta.  I suspect it's
21703         not useful, and plan to stop publishing an xdelta file with each
21704         coreutils release.
21705
21706         * build-aux/announce-gen: Also check for lzma-compressed files.
21707
21708 2008-01-11  Bruno Haible  <bruno@clisp.org>
21709
21710         * tests/test-memmem.c (main): Increase maximum allowed time.
21711         * tests/test-strstr.c (main): Likewise.
21712
21713 2008-01-11  Bruno Haible  <bruno@clisp.org>
21714
21715         * doc/functions/memmem.texi: Add more precisions about platforms.
21716         * doc/functions/strstr.texi: Likewise.
21717
21718 2008-01-10  Eric Blake  <ebb9@byu.net>
21719
21720         * m4/strstr.m4: Delete cruft from copy-n-paste.
21721         Reported by Bruno Haible.
21722
21723 2008-01-10  Bruno Haible  <bruno@clisp.org>
21724
21725         Make c-strstr rely on strstr.
21726         * lib/c-strstr.c: Don't include str-kmp.h.
21727         (c_strstr): Define in terms of strstr.
21728         * modules/c-strstr (Files): Remove lib/str-kmp.h.
21729         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
21730
21731 2008-01-10  Bruno Haible  <bruno@clisp.org>
21732
21733         * doc/gnulib.texi (String Functions in C Locale): New section.
21734         * doc/c-ctype.texi: New file.
21735         * doc/c-strcase.texi: New file.
21736         * doc/c-strcaseeq.texi: New file.
21737         * doc/c-strcasestr.texi: New file.
21738         * doc/c-strstr.texi: New file.
21739         * doc/c-strtod.texi: New file.
21740         * doc/c-strtold.texi: New file.
21741
21742 2008-01-10  Eric Blake  <ebb9@byu.net>
21743
21744         * lib/relocatable.h: Fix a comment.
21745
21746 2008-01-10  Eric Blake  <ebb9@byu.net>
21747
21748         Share two-way algorithm.
21749         * lib/str-two-way.h: New file, merged from...
21750         * lib/memmem.c: ...here...
21751         * lib/strstr.c: ...and here.
21752         * modules/memmem (Files): Use it.
21753         * modules/strstr (Files): Likewise.
21754
21755         Avoid quadratic strstr implementations.
21756         * lib/strstr.c: New file.
21757         * m4/strstr.m4: Likewise.
21758         * modules/strstr: Likewise.
21759         * modules/strstr-tests: Likewise.
21760         * tests/test-strstr.c: Likewise.
21761         * lib/string.in.h (rpl_strstr): Declare.
21762         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
21763         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
21764         * modules/string (Makefile.am): Likewise.
21765         * MODULES.html.sh (string handling): Mention new module.
21766         * doc/functions/strstr.texi (strstr): Document the bug.
21767
21768 2008-01-10  Bruno Haible  <bruno@clisp.org>
21769
21770         * lib/relocatable.h (relocate): State whether result is freshly
21771         allocated or not.
21772         * lib/relocatable.c (relocate): Return a freshly allocated string
21773         instead of a pointer to a privately held string.
21774         Reported by Sylvain Beucler <beuc@gnu.org>.
21775
21776 2008-01-10  Colin Watson  <cjwatson@debian.org>
21777
21778         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
21779         s/S_ISNLK/S_ISLNK/.
21780
21781 2008-01-09  Bruno Haible  <bruno@clisp.org>
21782
21783         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
21784         and other files.
21785         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
21786         if it's only a guess.
21787         * modules/memmem: Simplify by depending on memmem-simple.
21788
21789 2008-01-09  Bruno Haible  <bruno@clisp.org>
21790
21791         Work around OpenBSD 4.0 tdelete() bug.
21792         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
21793         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
21794         macros and don't redefine the enum values.
21795         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
21796         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
21797         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
21798
21799 2008-01-09  Bruno Haible  <bruno@clisp.org>
21800
21801         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
21802         (main): Don't perform the tests if setlocale did not install a UTF-8
21803         locale. Needed on OpenBSD 4.0.
21804         * modules/wcwidth-tests (Depends-on): Add localcharset.
21805
21806 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
21807
21808         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
21809         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
21810         * NEWS: announce this.
21811         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
21812
21813 2008-01-09  Simon Josefsson  <simon@josefsson.org>
21814         and Eric Blake  <ebb9@byu.net>
21815
21816         Add memmem-simple module.
21817         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
21818         (gl_FUNC_MEMMEM): Separate performance from presence checks.
21819         * modules/memmem-simple: New file.
21820         * modules/memmem (Description): Tweak.
21821         * MODULES.html.sh (string handling): Mention new module.
21822         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
21823         addressed by memmem-simple.
21824         * NEWS: Document the difference.
21825
21826 2008-01-09  Eric Blake  <ebb9@byu.net>
21827
21828         Give gcc some memmem optimization hints.
21829         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
21830         (strcasestr): Declare as pure.
21831         * modules/memmem (Maintainer): Claim my implementation.
21832
21833 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21834
21835         Support AIX 6.1 and higher.
21836         * build-aux/config.libpath: Likewise.
21837         * build-aux/config.rpath: Likewise.
21838
21839 2008-01-08  Jim Meyering  <meyering@redhat.com>
21840             Bruno Haible  <bruno@clisp.org>
21841
21842         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
21843         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
21844         Reported by Peter Fales in
21845         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
21846
21847 2008-01-08  Bruno Haible  <bruno@clisp.org>
21848
21849         * modules/unictype/category-of (Depends-on): Add
21850         unictype/category-none.
21851         * modules/unictype/category-and-tests (Depends-on): Add
21852         unictype/category-{L,N,Lu,Nd}.
21853         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
21854         * modules/unictype/category-or-tests (Depends-on): Add
21855         unictype/category-{L,N}.
21856         * modules/unictype/category-name-tests (Depends-on): Add
21857         unictype/category-{Z,Nl}.
21858         Reported by Simon Josefsson.
21859
21860 2008-01-08  Bruno Haible  <bruno@clisp.org>
21861
21862         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
21863         convention better.
21864         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
21865         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
21866         Reported by Peter Miller <millerp@canb.auug.org.au>.
21867
21868 2008-01-08  Eric Blake  <ebb9@byu.net>
21869
21870         Rewrite memmem to guarantee linear complexity without malloc.
21871         * lib/memmem.c (memmem): Use Two-Way rather than
21872         Knuth-Morris-Pratt, to allow O(1) space usage.
21873         (critical_factorization, two_way_short_needle)
21874         (two_way_long_needle): New functions.
21875         (knuth_morris_pratt): Delete.
21876         * modules/memmem (Depends-on): No longer need malloca or stdbool.
21877         Add stdint.
21878         * tests/test-memmem.c (main): Add tests for periodic needle and
21879         sublinear performance.
21880         * doc/functions/memmem.texi (memmem): Document other deficiencies
21881         in cygwin and older glibc.
21882
21883 2008-01-08  Bruno Haible  <bruno@clisp.org>
21884
21885         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
21886         augmentation.
21887
21888 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
21889
21890         Add a configure time option: --disable-acl.
21891         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
21892         AC_ARG_ENABLE(acl).
21893
21894 2008-01-06  Simon Josefsson  <simon@josefsson.org>
21895
21896         * tests/test-localename.c: Don't include obsolete "setenv.h".
21897
21898         * modules/localename-tests (Depends-on): Need unsetenv.
21899
21900 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21901
21902         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
21903
21904 2008-01-06  Colin Watson  <cjwatson@debian.org>
21905
21906         * users.txt: Add man-db.
21907
21908 2008-01-07  Bruno Haible  <bruno@clisp.org>
21909
21910         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
21911         previous section name.
21912
21913 2008-01-07  Bruno Haible  <bruno@clisp.org>
21914
21915         * lib/progname.c (set_program_name): Don't strip off a leading
21916         "lt-" prefix outside a .libs directory.
21917         Suggested by Paul Eggert.
21918
21919 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
21920             Bruno Haible  <bruno@clisp.org>
21921
21922         Improve memory cleanup in 'relocatable' module.
21923         * lib/relocatable.h (compute_curr_prefix): Change return type to
21924         'char *'.
21925         * lib/relocatable.c (compute_curr_prefix): Change return type to
21926         'char *'. Free curr_installdir after use.
21927         (relocate): Free curr_prefix_better after use.
21928         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
21929
21930 2008-01-01  Bruno Haible  <bruno@clisp.org>
21931
21932         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
21933         failure on older glibc systems.
21934         Reported by Peter Fales <psfales@alcatel-lucent.com>.
21935
21936 2008-01-05  Eric Blake  <ebb9@byu.net>
21937
21938         Avoid quadratic system memmem.
21939         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
21940         Reported by Ralf Wildenhues.
21941
21942         Fix memmem test for mingw.
21943         * modules/memmem-tests (configure.ac): Check for alarm.
21944         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
21945         it.
21946         * doc/functions/memmem.texi: New file.
21947         * doc/gnulib.texi (Function Substitutes): Add memmem.
21948         Reported by Bruno Haible.
21949
21950 2008-01-04  Bruno Haible  <bruno@clisp.org>
21951
21952         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
21953         Require gl_HEADER_STRINGS_H_DEFAULTS, not
21954         gl_HEADER_STRING_H_DEFAULTS.
21955
21956 2008-01-04  Eric Blake  <ebb9@byu.net>
21957
21958         Shorten duration of memmem test.
21959         * tests/test-memmem.c (main): Use alarm to declare failure if test
21960         is taking too long.
21961         Reported by Ralf Wildenhues.
21962
21963 2007-12-21  Simon Josefsson  <simon@josefsson.org>
21964
21965         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
21966         string, needed by strerror.
21967
21968 2008-01-03  Colin Watson  <cjwatson@debian.org>
21969             Bruno Haible  <bruno@clisp.org>
21970
21971         * doc/gnulib-tool.texi (Localization): New section.
21972
21973 2008-01-02  Bruno Haible  <bruno@clisp.org>
21974
21975         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
21976         variables to 'unsigned char *' type.
21977         Reported by Paul Eggert.
21978
21979 2008-01-02  Jim Meyering  <jim@meyering.net>
21980
21981         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
21982
21983 2007-12-31  Jim Meyering  <jim@meyering.net>
21984
21985         Avoid use of private FTS type name.
21986         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
21987
21988 2007-12-30  Karl Berry  <karl@gnu.org>
21989
21990         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
21991         work around defect in Texinfo and/or the standalone Info browser.
21992
21993 2007-12-30  Bruno Haible  <bruno@clisp.org>
21994
21995         Unify 5 copies of the KMP code.
21996         * lib/str-kmp.h: New file.
21997         * lib/c-strcasestr.c: Include str-kmp.h.
21998         (knuth_morris_pratt): Remove function.
21999         (c_strcasestr): Update.
22000         * lib/c-strstr.c: Include str-kmp.h.
22001         (knuth_morris_pratt): Remove function.
22002         (c_strcasestr): Update.
22003         * lib/mbscasestr.c: Include str-kmp.h.
22004         (knuth_morris_pratt_unibyte): Remove function.
22005         * lib/mbsstr.c: Include str-kmp.h.
22006         (knuth_morris_pratt_unibyte): Remove function.
22007         * lib/strcasestr.c: Include str-kmp.h.
22008         (knuth_morris_pratt): Remove function.
22009         (strcasestr): Update.
22010         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
22011         * modules/c-strstr (Files): Likewise.
22012         * modules/mbscasestr (Files): Likewise.
22013         * modules/mbsstr (Files): Likewise.
22014         * modules/strcasestr (Files): Likewise.
22015         Suggested by Paul Eggert.
22016
22017 2007-12-30  Bruno Haible  <bruno@clisp.org>
22018
22019         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
22020         defined.
22021
22022 2007-12-30  Bruno Haible  <bruno@clisp.org>
22023
22024         * lib/xmalloca.h: Include xalloc.h.
22025         (xnmalloca): New macro.
22026
22027 2007-12-30  Bruno Haible  <bruno@clisp.org>
22028
22029         * lib/malloca.h (nmalloca): New macro.
22030         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
22031         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
22032         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
22033         knuth_morris_pratt_multibyte): Likewise.
22034         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
22035         knuth_morris_pratt_multibyte): Likewise.
22036         * lib/memmem.c (knuth_morris_pratt): Likewise.
22037         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
22038
22039 2007-12-25  Bruno Haible  <bruno@clisp.org>
22040
22041         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
22042         * lib/glob.c: Don't include openat.h.
22043         (link_exists2_p): Add back the code that deals with the
22044         !GLOB_ALTDIRFUNC case.
22045         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
22046         let it do the filename concatenation.
22047         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
22048         * modules/glob (Depends-on): Remove openat.
22049
22050 2007-12-31  Bruno Haible  <bruno@clisp.org>
22051
22052         * modules/dirfd (License): Change to LGPLv2+.
22053         Approved by Jim Meyering.
22054
22055 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22056
22057         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
22058         when multiplying M by sizeof (size_t).
22059
22060 2007-12-10  Martin Lambers  <marlam@marlam.de>
22061
22062         Override getpagesize on mingw.
22063         * lib/getpagesize.c: New file.
22064         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
22065         * modules/getpagesize (Files): Add lib/getpagesize.c.
22066         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
22067         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22068         REPLACE_GETPAGESIZE.
22069         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
22070
22071 2007-12-25  Bruno Haible  <bruno@clisp.org>
22072
22073         * modules/localcharset (Notice): New field.
22074         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
22075         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
22076
22077 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22078             Bruno Haible  <bruno@clisp.org>
22079
22080         Avoid using the syntax symbol() in formatted documentation.
22081         * MODULES.html.sh (func_module): When replacing symbol() with a
22082         hyperlink, remove the parentheses. Show an error if some remain.
22083         Recognize and render the '...' syntax.
22084         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
22085         Rework. Add paragraph about GCC's inlining.
22086         * doc/alloca.texi: Likewise.
22087         * doc/error.texi: Remove parentheses from symbol reference.
22088         * doc/gnulib-intro.texi: Likewise.
22089         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
22090         * modules/fnmatch (Description): Reword to say "the ... function".
22091         * modules/full-read (Description): Likewise.
22092         * modules/full-write (Description): Likewise.
22093         * modules/safe-read (Description): Likewise.
22094         * modules/safe-write (Description): Likewise.
22095         * modules/strchrnul (Description): Likewise.
22096         * modules/trim (Description): Likewise.
22097         * modules/error (Description): Remove parentheses from symbol
22098         references.
22099         * modules/verror (Description): Likewise.
22100         Reported by Karl Berry.
22101
22102 2007-12-25  Bruno Haible  <bruno@clisp.org>
22103
22104         Fixup after 2007-10-16 commit.
22105         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
22106
22107 2007-12-24  Bruno Haible  <bruno@clisp.org>
22108
22109         Make --enable-relocatable work with DESTDIR.
22110         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
22111         to compute installdir from destprog.
22112         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
22113         also set the RELOC_DESTDIR variable.
22114         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
22115
22116 2007-12-24  Bruno Haible  <bruno@clisp.org>
22117
22118         Fix link error due to xalloc_die().
22119         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
22120         of xreadlink.
22121         * lib/relocwrapper.c: Update comments.
22122         * build-aux/install-reloc: Remove xreadlink.c from file list.
22123         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
22124         xreadlink.c.
22125         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
22126
22127 2007-12-24  Bruno Haible  <bruno@clisp.org>
22128
22129         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
22130         * lib/setenv.h: Remove file.
22131         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
22132         lib/setenv.h.
22133         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
22134         (Depends-on): Add stdlib.
22135         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
22136         gl_FUNC_UNSETENV.
22137         (Include): Replace setenv.h with <stdlib.h>.
22138         * modules/unsetenv: New file.
22139         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
22140         * lib/unsetenv.c: Include <stdlib.h> first.
22141         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
22142         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
22143         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
22144         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
22145         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
22146         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
22147         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
22148         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
22149         * doc/functions/unsetenv.texi: Update.
22150         * modules/xsetenv (Depends-on): Add unsetenv.
22151         * modules/getdate (Depends-on): Likewise.
22152         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
22153         * lib/xsetenv.c: Don't include setenv.h.
22154         * lib/getdate.y: Likewise.
22155         * lib/relocwrapper.c: Likewise.
22156         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
22157         (Depends-on): Add stdlib.
22158         * NEWS: Mention the changes.
22159         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
22160
22161 2007-12-23  Bruno Haible  <bruno@clisp.org>
22162
22163         * lib/memmem.c (memmem): Use lowercase variable names. Tab
22164         indentation.
22165
22166 2007-12-23  Bruno Haible  <bruno@clisp.org>
22167
22168         * lib/c-strcasestr.c: Add more comments.
22169         * lib/c-strstr.c: Likewise.
22170         * lib/mbscasestr.c: Likewise.
22171         * lib/mbsstr.c: Likewise.
22172         * lib/strcasestr.c: Likewise.
22173         * lib/memmem.c: Likewise.
22174
22175 2007-12-23  Bruno Haible  <bruno@clisp.org>
22176
22177         * tests/test-memmem.c: Include <string.h> first.
22178
22179 2007-12-22  Bruno Haible  <bruno@clisp.org>
22180
22181         * gnulib-tool (func_create_testdir): Change $auxdir while generating
22182         the contents of $testsbase.
22183         Reported by Ralf Wildenhues.
22184
22185 2007-12-22  Bruno Haible  <bruno@clisp.org>
22186
22187         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
22188         two variables local_ldadd_before, local_ldadd_last.
22189
22190 2007-12-20  Eric Blake  <ebb9@byu.net>
22191
22192         Work around circular library issue when cross-compiling.
22193         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
22194         that progname.o does not need to pull in rpl_memcmp.
22195
22196 2007-12-19  Eric Blake  <ebb9@byu.net>
22197
22198         Fix memmem to avoid O(n^2) worst-case complexity.
22199         * lib/memmem.c (knuth_morris_pratt): New function.
22200         (memmem): Use it if first few naive iterations fail.
22201         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
22202         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
22203         * modules/memchr (License): Likewise.
22204         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
22205         malloca.
22206         * tests/test-memmem.c: Rewrite, borrowing ideas from
22207         test-mbsstr1.c; the old version wouldn't even compile!
22208         * modules/memmem-tests: New file.
22209         * lib/string.in.h (rpl_memmem): Add declaration.
22210         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
22211         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
22212         REPLACE_MEMMEM.
22213
22214 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
22215
22216         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
22217         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
22218         before any system include files, and undef after them all.  This
22219         should fix a problem on VMS reported by John E. Malmberg in
22220         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
22221
22222 2007-12-17  Eric Blake  <ebb9@byu.net>
22223
22224         Revert addition of verify, for BSD/OS.
22225         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
22226         can't handle large files, for the sake of obsolete platforms.
22227         * modules/fseeko (Depends-on): Remove verify.
22228         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
22229         * doc/functions/ftello.texi (ftello): Likewise.
22230         * doc/functions/fgetpos.texi (fgetpos): Likewise.
22231         Reported by Larry Jones.
22232
22233 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
22234
22235         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
22236         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
22237
22238 2007-12-17  Jim Meyering  <meyering@redhat.com>
22239
22240         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
22241         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
22242         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
22243         * modules/getcwd (Depends-on): Add openat.
22244         Reported by Petr Salinger.
22245
22246 2007-12-17  Bruno Haible  <bruno@clisp.org>
22247
22248         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
22249         avoid a segmentation fault of the configure test on x86_64 systems.
22250
22251 2007-12-15  Jim Meyering  <meyering@redhat.com>
22252
22253         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
22254
22255 2007-12-13  Eric Blake  <ebb9@byu.net>
22256
22257         Another fseek test.
22258         * tests/test-fseek.c (main): Also test ungetc handling.
22259         * tests/test-fseeko.c (main): Likewise.
22260         * modules/fseeko (Depends-on): Add verify.
22261         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
22262         large.
22263         Reported by Larry Jones.
22264
22265         Fix fseeko on mingw.
22266         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
22267         seek.
22268
22269         Beef up fseek tests.
22270         * tests/test-fseek.c (main): Also test eof handling.
22271         * tests/test-fseeko.c (main): Likewise.
22272         Reported by Larry Jones.
22273
22274 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
22275
22276         Fix fseeko on BSD-based platforms.
22277         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
22278         successful seek.
22279
22280 2007-12-12  Eric Blake  <ebb9@byu.net>
22281
22282         Allow circular dependency of separate libtests.a
22283         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
22284         when use_libtests.
22285
22286 2007-12-11  Eric Blake  <ebb9@byu.net>
22287
22288         Fix bug with -0.0L in previous patch.
22289         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
22290         * tests/test-isnan.c (main): Also test on zeroes.
22291         * tests/test-isnanf.c (main): Likewise.
22292         * tests/test-isnanl.h (main): Likewise.
22293
22294         Detect pseudo-denormals on x86 even when cross-compiling.
22295         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
22296         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
22297         invalid bit patterns that happen to satisfy ==.
22298
22299         Avoid link failures with separate libtests.a.
22300         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
22301         last, to satisfy circular dependencies.
22302
22303 2007-12-11  Eric Blake  <ebb9@byu.net>
22304         and Bruno Haible  <bruno@clisp.org>
22305
22306         Fix OpenBSD 4.0 <float.h> handling of long double.
22307         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
22308         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
22309         * doc/headers/float.texi (float.h): Document OpenBSD bug.
22310
22311 2007-12-11  Jim Meyering  <meyering@redhat.com>
22312
22313         * users.txt: Add libvirt.
22314
22315         Support versions of autoconf prior to 2.59c.
22316         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
22317         if it is not already defined.
22318
22319 2007-12-09  Bruno Haible  <bruno@clisp.org>
22320
22321         Let 'gnulib-tool --import' collect sources needed for the tests in
22322         tests/ rather than in lib/.
22323         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
22324         argument. If true, add rules to generate libtests.a, and put libtests.a
22325         into $(LDADD). Consider source files in subdirectories and set
22326         uses_subdirs.
22327         (func_emit_initmacro_start, func_emit_initmacro_end,
22328         func_emit_initmacro_done): Pass all arguments explicitly.
22329         (func_import): Determine two module lists main_modules,
22330         testsrelated_modules. Determine use_libtests. Determine two variables
22331         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
22332         instead of just sed_transform_lib_file. Determine two variables
22333         main_files and testsrelated_files. Compute 'files' as the union of
22334         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
22335         func_add_or_update. In the generated gnulib-comp.m4, collect the
22336         object files for tests/ in different variables than those for lib/.
22337         Substitute LIBTESTS_LIBDEPS.
22338         (func_create_testdir): Combine the uses_subdirs results from
22339         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
22340
22341 2007-12-09  Bruno Haible  <bruno@clisp.org>
22342
22343         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
22344         the build-aux directory.
22345
22346 2007-12-09  Bruno Haible  <bruno@clisp.org>
22347
22348         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
22349         introduced on 2006-09-09.
22350
22351 2007-12-07  Jim Meyering  <meyering@redhat.com>
22352
22353         Let these macros work also with autoconf-2.59.
22354         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
22355         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
22356         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
22357
22358 2007-12-06  Jim Meyering  <meyering@redhat.com>
22359
22360         Avoid a configure-time syntax error in gl_FUNC_ACL.
22361         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
22362         function in each branch, before testing the cache variable.
22363
22364 2007-12-04  Eric Blake  <ebb9@byu.net>
22365
22366         Make scripts executable.
22367         * build-aux/config.guess: Add execute permissions.
22368         * build-aux/config.sub: Likewise.
22369         * build-aux/gendocs.sh: Likewise.
22370
22371         Fix frexp on mingw.
22372         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
22373         cross-compiling.
22374         * doc/functions/frexp.texi (frexp): Document the bug.
22375
22376         Make cygwin fseeko check more reliable.
22377         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
22378         version numbers, rather than unrelated feature check.
22379         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
22380         * doc/functions/ftello.texi (ftello): Likewise.
22381         Reported by Bruno Haible.
22382
22383         * m4/strerror.m4: Bump version number.
22384
22385 2007-12-03  Bruno Haible  <bruno@clisp.org>
22386
22387         * doc/functions/mprotect.texi: Mention the mingw problem.
22388
22389 2007-12-03  Eric Blake  <ebb9@byu.net>
22390
22391         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
22392         REPLACE_STRERROR is initialized before this macro.
22393
22394 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
22395
22396         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
22397         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
22398         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
22399         put -lsec in even for programs other than 'ls'.  This fixes a problem
22400         for gettext reported by Bruno Haible in
22401         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
22402         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
22403         Add support for Solaris 10.  This isn't efficient, but should get the
22404         job done for now.
22405
22406 2007-12-03  James Youngman  <jay@gnu.org>
22407
22408         * doc/regexprops-generic.texi: change "an close-group" to "a
22409         close-group" and "illegal" to "not allowed".
22410
22411 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22412
22413         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
22414         pr_byname.h. Needed for the rare case when the maintainer has done
22415         "make maintainer-clean" in the source directory and then attempts a
22416         build outside the source directory.
22417         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
22418         scripts_byname.h.
22419
22420 2007-12-02  Martin Lambers <marlam@marlam.de>
22421             Bruno Haible  <bruno@clisp.org>
22422
22423         * lib/getpagesize.h: Remove file.
22424         * lib/unistd.in.h: Include declaration of getpagesize here.
22425         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
22426         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
22427         HAVE_SYS_PARAM_H.
22428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
22429         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
22430         * modules/getpagesize (Files): Remove lib/getpagesize.h.
22431         (Depends-on): Add unistd.
22432         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
22433         (Include): Use <unistd.h> instead of getpagesize.h.
22434         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
22435         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
22436         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
22437         gl_GETPAGESIZE invocation, already handled by module dependency.
22438         * lib/pagealign_alloc.c: Don't include getpagesize.h.
22439
22440 2007-12-02  Bruno Haible  <bruno@clisp.org>
22441
22442         * modules/strings-tests: New file.
22443         * tests/test-strings.c: New file.
22444
22445         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
22446         * lib/strings.in.h: New file.
22447         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
22448         * m4/strings_h.m4: New file.
22449         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
22450         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
22451         * modules/strings: New file.
22452         * modules/string (Makefile.am): Update.
22453         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
22454         Reported by Karl Berry.
22455
22456 2007-12-01  Eric Blake  <ebb9@byu.net>
22457
22458         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
22459         accomodate fix in cygwin 1.5.25.
22460
22461 2007-12-01  Jim Meyering  <meyering@redhat.com>
22462
22463         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
22464         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
22465         that would inhibit utf8-optimization of a regexp containing line-
22466         or buffer-anchors, e.g., `^', `$'.
22467
22468 2007-11-30  Bruno Haible  <bruno@clisp.org>
22469
22470         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
22471         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
22472         glthread_recursive_lock_init.
22473         * lib/lock.c (glthread_recursive_lock_init)
22474         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
22475         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22476
22477 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
22478
22479         New function qset_acl, like set_acl but with syscall semantics.
22480         * lib/acl.h (qset_acl): New decl.
22481         * lib/acl.c (qset_acl): New function.
22482         (set_acl): Use new function.  Use more-consistent diagnostics.
22483
22484 2007-11-28  Jim Meyering  <meyering@redhat.com>
22485
22486         * modules/physmem (License): Change from GPL to LGPLv2+.
22487
22488 2007-11-26  Bruno Haible  <bruno@clisp.org>
22489
22490         * lib/vasnprintf.c (decode_long_double): Don't abort if the
22491         'long double' type has excess precision.
22492         Reported by Jim Meyering in
22493         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
22494
22495 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22496
22497         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
22498         Sync from <http://gnu.org/licenses>.
22499         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
22500         with license text from same location.
22501         * doc/maintain.texi, doc/standards.texi:  Sync from
22502         <http://savannah.gnu.org/projects/gnustandards>.
22503
22504 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
22505         and Jim Meyering  <meyering@redhat.com>
22506
22507         Adjust getdate' grammar to accept a slightly more regular language.
22508         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
22509         Before, the former was rejected.
22510         * lib/getdate.y (digits_to_date_time): New function, factored
22511         out of ...
22512         (number): ...here.  Just call digits_to_date_time.
22513         (hybrid): New non-terminal to handle an <unsigned number,
22514         signed relative offset> sequence consistently.
22515
22516 2007-11-18  Jim Meyering  <meyering@redhat.com>
22517
22518         Pull my changes from coreutils:
22519         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
22520         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
22521         use of $gnulib_tool_option_extras, so that it's separated from the
22522         preceding argument.
22523
22524         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
22525         * build-aux/bootstrap (cp_mark_as_generated): Create any required
22526         parent destination directories before copying a file into place.
22527
22528 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
22529
22530         bootstrap: work also with 4-argument variant of AC_INIT
22531         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
22532
22533 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
22534
22535         Port test-getaddrinfo to Solaris.
22536         Problem reported by Bruno Haible in
22537         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
22538         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
22539         explanation of setting 'hints'.
22540         Don't reject an implementation merely because it returns EAI_SERVICE.
22541         (EAI_SERVICE): Define to 0 if not defined.
22542
22543 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
22544
22545         The license of gnu-make and posix-shell is now "GPLed build tool".
22546         * modules/gnu-make (License): Likewise.
22547         * modules/posix-shell (License): Likewise.
22548
22549         New module posix-shell, for determining a POSIX shell
22550         or perhaps something that is close enough to a POSIX shell.
22551         * m4/posix-shell.m4: New file.
22552         * modules/posix-shell: New file.
22553
22554         * MODULES.html.sh: Mention new module.
22555
22556         New module gnu-make, for determining whether we're using GNU Make.
22557         * m4/gnu-make.m4: New file.
22558         * modules/gnu-make: New file.
22559         * MODULES.html.sh: Mention new module.
22560
22561 2007-11-14  Jim Meyering  <meyering@redhat.com>
22562
22563         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
22564         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
22565         use this macro to create a function _definition_.
22566         Remove useless "#undef ARGMATCH_DIE".
22567
22568 2007-11-14  Bruno Haible  <bruno@clisp.org>
22569
22570         * lib/config.charset: Update for OpenBSD 4.1.
22571         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
22572
22573 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
22574
22575         Document 64-bit #if problems in stdint.texi.
22576         * doc/headers/stdint.texi (stdint.h): Mention problems with
22577         64-bit-#if, and how to work around them.
22578
22579         Don't insist on 'long long int' support in the preprocessor.  It
22580         breaks too many things.  For example, PRIdMAX still uses a 'long
22581         long int' format with the latest Sun compiler, even though
22582         HAVE_LONG_LONG_INT isn't defined due to that compiler's
22583         preprocessor problem.  This causes the latest coreutils to dump
22584         core on Solaris 10 sparc with the Sun C compiler.
22585         Instead, fix the 2007-10-16 problem in a different way, by evaluating
22586         the troublesome expressions at configure-time, not at #if-time.
22587         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
22588         preprocessor.
22589         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
22590         compile-time C checks, done at 'configure'-time.
22591         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
22592         * modules/inttypes (Makefile): Substitute the new symbols that
22593         gl_INTTYPES_H now generates.
22594         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
22595
22596 2007-11-12  Bruno Haible  <bruno@clisp.org>
22597
22598         Tests for Unicode character classification functions.
22599
22600         * modules/unictype/bidicategory-byname-tests: New file.
22601         * modules/unictype/bidicategory-name-tests: New file.
22602         * modules/unictype/bidicategory-of-tests: New file.
22603         * modules/unictype/bidicategory-test-tests: New file.
22604         * modules/unictype/block-list-tests: New file.
22605         * modules/unictype/block-of-tests: New file.
22606         * modules/unictype/block-test-tests: New file.
22607         * modules/unictype/category-C-tests: New file.
22608         * modules/unictype/category-Cc-tests: New file.
22609         * modules/unictype/category-Cf-tests: New file.
22610         * modules/unictype/category-Cn-tests: New file.
22611         * modules/unictype/category-Co-tests: New file.
22612         * modules/unictype/category-Cs-tests: New file.
22613         * modules/unictype/category-L-tests: New file.
22614         * modules/unictype/category-Ll-tests: New file.
22615         * modules/unictype/category-Lm-tests: New file.
22616         * modules/unictype/category-Lo-tests: New file.
22617         * modules/unictype/category-Lt-tests: New file.
22618         * modules/unictype/category-Lu-tests: New file.
22619         * modules/unictype/category-M-tests: New file.
22620         * modules/unictype/category-Mc-tests: New file.
22621         * modules/unictype/category-Me-tests: New file.
22622         * modules/unictype/category-Mn-tests: New file.
22623         * modules/unictype/category-N-tests: New file.
22624         * modules/unictype/category-Nd-tests: New file.
22625         * modules/unictype/category-Nl-tests: New file.
22626         * modules/unictype/category-No-tests: New file.
22627         * modules/unictype/category-P-tests: New file.
22628         * modules/unictype/category-Pc-tests: New file.
22629         * modules/unictype/category-Pd-tests: New file.
22630         * modules/unictype/category-Pe-tests: New file.
22631         * modules/unictype/category-Pf-tests: New file.
22632         * modules/unictype/category-Pi-tests: New file.
22633         * modules/unictype/category-Po-tests: New file.
22634         * modules/unictype/category-Ps-tests: New file.
22635         * modules/unictype/category-S-tests: New file.
22636         * modules/unictype/category-Sc-tests: New file.
22637         * modules/unictype/category-Sk-tests: New file.
22638         * modules/unictype/category-Sm-tests: New file.
22639         * modules/unictype/category-So-tests: New file.
22640         * modules/unictype/category-Z-tests: New file.
22641         * modules/unictype/category-Zl-tests: New file.
22642         * modules/unictype/category-Zp-tests: New file.
22643         * modules/unictype/category-Zs-tests: New file.
22644         * modules/unictype/category-and-not-tests: New file.
22645         * modules/unictype/category-and-tests: New file.
22646         * modules/unictype/category-byname-tests: New file.
22647         * modules/unictype/category-name-tests: New file.
22648         * modules/unictype/category-none-tests: New file.
22649         * modules/unictype/category-of-tests: New file.
22650         * modules/unictype/category-or-tests: New file.
22651         * modules/unictype/category-test-withtable-tests: New file.
22652         * modules/unictype/combining-class-tests: New file.
22653         * modules/unictype/ctype-alnum-tests: New file.
22654         * modules/unictype/ctype-alpha-tests: New file.
22655         * modules/unictype/ctype-blank-tests: New file.
22656         * modules/unictype/ctype-cntrl-tests: New file.
22657         * modules/unictype/ctype-digit-tests: New file.
22658         * modules/unictype/ctype-graph-tests: New file.
22659         * modules/unictype/ctype-lower-tests: New file.
22660         * modules/unictype/ctype-print-tests: New file.
22661         * modules/unictype/ctype-punct-tests: New file.
22662         * modules/unictype/ctype-space-tests: New file.
22663         * modules/unictype/ctype-upper-tests: New file.
22664         * modules/unictype/ctype-xdigit-tests: New file.
22665         * modules/unictype/decimal-digit-tests: New file.
22666         * modules/unictype/digit-tests: New file.
22667         * modules/unictype/mirror-tests: New file.
22668         * modules/unictype/numeric-tests: New file.
22669         * modules/unictype/property-alphabetic-tests: New file.
22670         * modules/unictype/property-ascii-hex-digit-tests: New file.
22671         * modules/unictype/property-bidi-arabic-digit-tests: New file.
22672         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
22673         * modules/unictype/property-bidi-block-separator-tests: New file.
22674         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
22675         * modules/unictype/property-bidi-common-separator-tests: New file.
22676         * modules/unictype/property-bidi-control-tests: New file.
22677         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
22678         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
22679         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
22680         * modules/unictype/property-bidi-european-digit-tests: New file.
22681         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
22682         * modules/unictype/property-bidi-left-to-right-tests: New file.
22683         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
22684         * modules/unictype/property-bidi-other-neutral-tests: New file.
22685         * modules/unictype/property-bidi-pdf-tests: New file.
22686         * modules/unictype/property-bidi-segment-separator-tests: New file.
22687         * modules/unictype/property-bidi-whitespace-tests: New file.
22688         * modules/unictype/property-byname-tests: New file.
22689         * modules/unictype/property-combining-tests: New file.
22690         * modules/unictype/property-composite-tests: New file.
22691         * modules/unictype/property-currency-symbol-tests: New file.
22692         * modules/unictype/property-dash-tests: New file.
22693         * modules/unictype/property-decimal-digit-tests: New file.
22694         * modules/unictype/property-default-ignorable-code-point-tests: New file.
22695         * modules/unictype/property-deprecated-tests: New file.
22696         * modules/unictype/property-diacritic-tests: New file.
22697         * modules/unictype/property-extender-tests: New file.
22698         * modules/unictype/property-format-control-tests: New file.
22699         * modules/unictype/property-grapheme-base-tests: New file.
22700         * modules/unictype/property-grapheme-extend-tests: New file.
22701         * modules/unictype/property-grapheme-link-tests: New file.
22702         * modules/unictype/property-hex-digit-tests: New file.
22703         * modules/unictype/property-hyphen-tests: New file.
22704         * modules/unictype/property-id-continue-tests: New file.
22705         * modules/unictype/property-id-start-tests: New file.
22706         * modules/unictype/property-ideographic-tests: New file.
22707         * modules/unictype/property-ids-binary-operator-tests: New file.
22708         * modules/unictype/property-ids-trinary-operator-tests: New file.
22709         * modules/unictype/property-ignorable-control-tests: New file.
22710         * modules/unictype/property-iso-control-tests: New file.
22711         * modules/unictype/property-join-control-tests: New file.
22712         * modules/unictype/property-left-of-pair-tests: New file.
22713         * modules/unictype/property-line-separator-tests: New file.
22714         * modules/unictype/property-logical-order-exception-tests: New file.
22715         * modules/unictype/property-lowercase-tests: New file.
22716         * modules/unictype/property-math-tests: New file.
22717         * modules/unictype/property-non-break-tests: New file.
22718         * modules/unictype/property-not-a-character-tests: New file.
22719         * modules/unictype/property-numeric-tests: New file.
22720         * modules/unictype/property-other-alphabetic-tests: New file.
22721         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
22722         * modules/unictype/property-other-grapheme-extend-tests: New file.
22723         * modules/unictype/property-other-id-continue-tests: New file.
22724         * modules/unictype/property-other-id-start-tests: New file.
22725         * modules/unictype/property-other-lowercase-tests: New file.
22726         * modules/unictype/property-other-math-tests: New file.
22727         * modules/unictype/property-other-uppercase-tests: New file.
22728         * modules/unictype/property-paired-punctuation-tests: New file.
22729         * modules/unictype/property-paragraph-separator-tests: New file.
22730         * modules/unictype/property-pattern-syntax-tests: New file.
22731         * modules/unictype/property-pattern-white-space-tests: New file.
22732         * modules/unictype/property-private-use-tests: New file.
22733         * modules/unictype/property-punctuation-tests: New file.
22734         * modules/unictype/property-quotation-mark-tests: New file.
22735         * modules/unictype/property-radical-tests: New file.
22736         * modules/unictype/property-sentence-terminal-tests: New file.
22737         * modules/unictype/property-soft-dotted-tests: New file.
22738         * modules/unictype/property-space-tests: New file.
22739         * modules/unictype/property-terminal-punctuation-tests: New file.
22740         * modules/unictype/property-test-tests: New file.
22741         * modules/unictype/property-titlecase-tests: New file.
22742         * modules/unictype/property-unassigned-code-value-tests: New file.
22743         * modules/unictype/property-unified-ideograph-tests: New file.
22744         * modules/unictype/property-uppercase-tests: New file.
22745         * modules/unictype/property-variation-selector-tests: New file.
22746         * modules/unictype/property-white-space-tests: New file.
22747         * modules/unictype/property-xid-continue-tests: New file.
22748         * modules/unictype/property-xid-start-tests: New file.
22749         * modules/unictype/property-zero-width-tests: New file.
22750         * modules/unictype/scripts-tests: New file.
22751         * modules/unictype/syntax-c-ident-tests: New file.
22752         * modules/unictype/syntax-c-whitespace-tests: New file.
22753         * modules/unictype/syntax-java-ident-tests: New file.
22754         * modules/unictype/syntax-java-whitespace-tests: New file.
22755         * tests/unictype/test-bidi_byname.c: New file.
22756         * tests/unictype/test-bidi_name.c: New file.
22757         * tests/unictype/test-bidi_of.c: New file.
22758         * tests/unictype/test-bidi_test.c: New file.
22759         * tests/unictype/test-block_list.c: New file.
22760         * tests/unictype/test-block_of.c: New file.
22761         * tests/unictype/test-block_test.c: New file.
22762         * tests/unictype/test-categ_and.c: New file.
22763         * tests/unictype/test-categ_and_not.c: New file.
22764         * tests/unictype/test-categ_byname.c: New file.
22765         * tests/unictype/test-categ_name.c: New file.
22766         * tests/unictype/test-categ_none.c: New file.
22767         * tests/unictype/test-categ_of.c: New file.
22768         * tests/unictype/test-categ_or.c: New file.
22769         * tests/unictype/test-categ_test_withtable.c: New file.
22770         * tests/unictype/test-combining.c: New file.
22771         * tests/unictype/test-decdigit.c: New file.
22772         * tests/unictype/test-digit.c: New file.
22773         * tests/unictype/test-mirror.c: New file.
22774         * tests/unictype/test-numeric.c: New file.
22775         * tests/unictype/test-pr_byname.c: New file.
22776         * tests/unictype/test-pr_test.c: New file.
22777         * tests/unictype/test-predicate-part1.h: New file.
22778         * tests/unictype/test-predicate-part2.h: New file.
22779         * tests/unictype/test-scripts.c: New file.
22780         * tests/unictype/test-sy_c_ident.c: New file.
22781         * tests/unictype/test-sy_java_ident.c: New file.
22782
22783         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
22784         for Unicode 5.0.0.
22785         * tests/unictype/test-categ_Cc.c: Likewise.
22786         * tests/unictype/test-categ_Cf.c: Likewise.
22787         * tests/unictype/test-categ_Cn.c: Likewise.
22788         * tests/unictype/test-categ_Co.c: Likewise.
22789         * tests/unictype/test-categ_Cs.c: Likewise.
22790         * tests/unictype/test-categ_L.c: Likewise.
22791         * tests/unictype/test-categ_Ll.c: Likewise.
22792         * tests/unictype/test-categ_Lm.c: Likewise.
22793         * tests/unictype/test-categ_Lo.c: Likewise.
22794         * tests/unictype/test-categ_Lt.c: Likewise.
22795         * tests/unictype/test-categ_Lu.c: Likewise.
22796         * tests/unictype/test-categ_M.c: Likewise.
22797         * tests/unictype/test-categ_Mc.c: Likewise.
22798         * tests/unictype/test-categ_Me.c: Likewise.
22799         * tests/unictype/test-categ_Mn.c: Likewise.
22800         * tests/unictype/test-categ_N.c: Likewise.
22801         * tests/unictype/test-categ_Nd.c: Likewise.
22802         * tests/unictype/test-categ_Nl.c: Likewise.
22803         * tests/unictype/test-categ_No.c: Likewise.
22804         * tests/unictype/test-categ_P.c: Likewise.
22805         * tests/unictype/test-categ_Pc.c: Likewise.
22806         * tests/unictype/test-categ_Pd.c: Likewise.
22807         * tests/unictype/test-categ_Pe.c: Likewise.
22808         * tests/unictype/test-categ_Pf.c: Likewise.
22809         * tests/unictype/test-categ_Pi.c: Likewise.
22810         * tests/unictype/test-categ_Po.c: Likewise.
22811         * tests/unictype/test-categ_Ps.c: Likewise.
22812         * tests/unictype/test-categ_S.c: Likewise.
22813         * tests/unictype/test-categ_Sc.c: Likewise.
22814         * tests/unictype/test-categ_Sk.c: Likewise.
22815         * tests/unictype/test-categ_Sm.c: Likewise.
22816         * tests/unictype/test-categ_So.c: Likewise.
22817         * tests/unictype/test-categ_Z.c: Likewise.
22818         * tests/unictype/test-categ_Zl.c: Likewise.
22819         * tests/unictype/test-categ_Zp.c: Likewise.
22820         * tests/unictype/test-categ_Zs.c: Likewise.
22821         * tests/unictype/test-ctype_alnum.c: Likewise.
22822         * tests/unictype/test-ctype_alpha.c: Likewise.
22823         * tests/unictype/test-ctype_blank.c: Likewise.
22824         * tests/unictype/test-ctype_cntrl.c: Likewise.
22825         * tests/unictype/test-ctype_digit.c: Likewise.
22826         * tests/unictype/test-ctype_graph.c: Likewise.
22827         * tests/unictype/test-ctype_lower.c: Likewise.
22828         * tests/unictype/test-ctype_print.c: Likewise.
22829         * tests/unictype/test-ctype_punct.c: Likewise.
22830         * tests/unictype/test-ctype_space.c: Likewise.
22831         * tests/unictype/test-ctype_upper.c: Likewise.
22832         * tests/unictype/test-ctype_xdigit.c: Likewise.
22833         * tests/unictype/test-decdigit.h: Likewise.
22834         * tests/unictype/test-digit.h: Likewise.
22835         * tests/unictype/test-numeric.h: Likewise.
22836         * tests/unictype/test-pr_alphabetic.c: Likewise.
22837         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
22838         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22839         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
22840         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
22841         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
22842         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
22843         * tests/unictype/test-pr_bidi_control.c: Likewise.
22844         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
22845         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
22846         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22847         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
22848         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22849         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22850         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22851         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22852         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
22853         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
22854         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
22855         * tests/unictype/test-pr_combining.c: Likewise.
22856         * tests/unictype/test-pr_composite.c: Likewise.
22857         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22858         * tests/unictype/test-pr_dash.c: Likewise.
22859         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22860         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
22861         * tests/unictype/test-pr_deprecated.c: Likewise.
22862         * tests/unictype/test-pr_diacritic.c: Likewise.
22863         * tests/unictype/test-pr_extender.c: Likewise.
22864         * tests/unictype/test-pr_format_control.c: Likewise.
22865         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22866         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22867         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22868         * tests/unictype/test-pr_hex_digit.c: Likewise.
22869         * tests/unictype/test-pr_hyphen.c: Likewise.
22870         * tests/unictype/test-pr_id_continue.c: Likewise.
22871         * tests/unictype/test-pr_id_start.c: Likewise.
22872         * tests/unictype/test-pr_ideographic.c: Likewise.
22873         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
22874         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
22875         * tests/unictype/test-pr_ignorable_control.c: Likewise.
22876         * tests/unictype/test-pr_iso_control.c: Likewise.
22877         * tests/unictype/test-pr_join_control.c: Likewise.
22878         * tests/unictype/test-pr_left_of_pair.c: Likewise.
22879         * tests/unictype/test-pr_line_separator.c: Likewise.
22880         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
22881         * tests/unictype/test-pr_lowercase.c: Likewise.
22882         * tests/unictype/test-pr_math.c: Likewise.
22883         * tests/unictype/test-pr_non_break.c: Likewise.
22884         * tests/unictype/test-pr_not_a_character.c: Likewise.
22885         * tests/unictype/test-pr_numeric.c: Likewise.
22886         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22887         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
22888         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
22889         * tests/unictype/test-pr_other_id_continue.c: Likewise.
22890         * tests/unictype/test-pr_other_id_start.c: Likewise.
22891         * tests/unictype/test-pr_other_lowercase.c: Likewise.
22892         * tests/unictype/test-pr_other_math.c: Likewise.
22893         * tests/unictype/test-pr_other_uppercase.c: Likewise.
22894         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
22895         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
22896         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
22897         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
22898         * tests/unictype/test-pr_private_use.c: Likewise.
22899         * tests/unictype/test-pr_punctuation.c: Likewise.
22900         * tests/unictype/test-pr_quotation_mark.c: Likewise.
22901         * tests/unictype/test-pr_radical.c: Likewise.
22902         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22903         * tests/unictype/test-pr_soft_dotted.c: Likewise.
22904         * tests/unictype/test-pr_space.c: Likewise.
22905         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22906         * tests/unictype/test-pr_titlecase.c: Likewise.
22907         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22908         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22909         * tests/unictype/test-pr_uppercase.c: Likewise.
22910         * tests/unictype/test-pr_variation_selector.c: Likewise.
22911         * tests/unictype/test-pr_white_space.c: Likewise.
22912         * tests/unictype/test-pr_xid_continue.c: Likewise.
22913         * tests/unictype/test-pr_xid_start.c: Likewise.
22914         * tests/unictype/test-pr_zero_width.c: Likewise.
22915         * tests/unictype/test-sy_c_whitespace.c: Likewise.
22916         * tests/unictype/test-sy_java_whitespace.c: Likewise.
22917
22918 2007-11-12  Bruno Haible  <bruno@clisp.org>
22919
22920         Unicode character classification functions.
22921         * lib/unictype.h: New file.
22922         * modules/unictype/base: New file.
22923         * modules/unictype/category-L: New file.
22924         * modules/unictype/category-Lu: New file.
22925         * modules/unictype/category-Ll: New file.
22926         * modules/unictype/category-Lt: New file.
22927         * modules/unictype/category-Lm: New file.
22928         * modules/unictype/category-Lo: New file.
22929         * modules/unictype/category-M: New file.
22930         * modules/unictype/category-Mn: New file.
22931         * modules/unictype/category-Mc: New file.
22932         * modules/unictype/category-Me: New file.
22933         * modules/unictype/category-N: New file.
22934         * modules/unictype/category-Nd: New file.
22935         * modules/unictype/category-Nl: New file.
22936         * modules/unictype/category-No: New file.
22937         * modules/unictype/category-P: New file.
22938         * modules/unictype/category-Pc: New file.
22939         * modules/unictype/category-Pd: New file.
22940         * modules/unictype/category-Ps: New file.
22941         * modules/unictype/category-Pe: New file.
22942         * modules/unictype/category-Pi: New file.
22943         * modules/unictype/category-Pf: New file.
22944         * modules/unictype/category-Po: New file.
22945         * modules/unictype/category-S: New file.
22946         * modules/unictype/category-Sm: New file.
22947         * modules/unictype/category-Sc: New file.
22948         * modules/unictype/category-Sk: New file.
22949         * modules/unictype/category-So: New file.
22950         * modules/unictype/category-Z: New file.
22951         * modules/unictype/category-Zs: New file.
22952         * modules/unictype/category-Zl: New file.
22953         * modules/unictype/category-Zp: New file.
22954         * modules/unictype/category-C: New file.
22955         * modules/unictype/category-Cc: New file.
22956         * modules/unictype/category-Cf: New file.
22957         * modules/unictype/category-Cs: New file.
22958         * modules/unictype/category-Co: New file.
22959         * modules/unictype/category-Cn: New file.
22960         * modules/unictype/category-or: New file.
22961         * modules/unictype/category-of: New file.
22962         * modules/unictype/category-test: New file.
22963         * modules/unictype/category-test-withtable: New file.
22964         * modules/unictype/category-byname: New file.
22965         * modules/unictype/category-none: New file.
22966         * modules/unictype/category-and: New file.
22967         * modules/unictype/category-and-not: New file.
22968         * modules/unictype/category-name: New file.
22969         * modules/unictype/combining-class: New file.
22970         * modules/unictype/category-all: New file.
22971         * modules/unictype/bidicategory-all: New file.
22972         * modules/unictype/bidicategory-byname: New file.
22973         * modules/unictype/bidicategory-name: New file.
22974         * modules/unictype/bidicategory-of: New file.
22975         * modules/unictype/bidicategory-test: New file.
22976         * modules/unictype/decimal-digit: New file.
22977         * modules/unictype/digit: New file.
22978         * modules/unictype/numeric: New file.
22979         * modules/unictype/mirror: New file.
22980         * modules/unictype/property-white-space: New file.
22981         * modules/unictype/property-alphabetic: New file.
22982         * modules/unictype/property-other-alphabetic: New file.
22983         * modules/unictype/property-not-a-character: New file.
22984         * modules/unictype/property-default-ignorable-code-point: New file.
22985         * modules/unictype/property-other-default-ignorable-code-point: New
22986         file.
22987         * modules/unictype/property-deprecated: New file.
22988         * modules/unictype/property-logical-order-exception: New file.
22989         * modules/unictype/property-variation-selector: New file.
22990         * modules/unictype/property-private-use: New file.
22991         * modules/unictype/property-unassigned-code-value: New file.
22992         * modules/unictype/property-uppercase: New file.
22993         * modules/unictype/property-other-uppercase: New file.
22994         * modules/unictype/property-lowercase: New file.
22995         * modules/unictype/property-other-lowercase: New file.
22996         * modules/unictype/property-titlecase: New file.
22997         * modules/unictype/property-soft-dotted: New file.
22998         * modules/unictype/property-id-start: New file.
22999         * modules/unictype/property-other-id-start: New file.
23000         * modules/unictype/property-id-continue: New file.
23001         * modules/unictype/property-other-id-continue: New file.
23002         * modules/unictype/property-xid-start: New file.
23003         * modules/unictype/property-xid-continue: New file.
23004         * modules/unictype/property-pattern-white-space: New file.
23005         * modules/unictype/property-pattern-syntax: New file.
23006         * modules/unictype/property-join-control: New file.
23007         * modules/unictype/property-grapheme-base: New file.
23008         * modules/unictype/property-grapheme-extend: New file.
23009         * modules/unictype/property-other-grapheme-extend: New file.
23010         * modules/unictype/property-grapheme-link: New file.
23011         * modules/unictype/property-bidi-control: New file.
23012         * modules/unictype/property-bidi-left-to-right: New file.
23013         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
23014         * modules/unictype/property-bidi-arabic-right-to-left: New file.
23015         * modules/unictype/property-bidi-european-digit: New file.
23016         * modules/unictype/property-bidi-eur-num-separator: New file.
23017         * modules/unictype/property-bidi-eur-num-terminator: New file.
23018         * modules/unictype/property-bidi-arabic-digit: New file.
23019         * modules/unictype/property-bidi-common-separator: New file.
23020         * modules/unictype/property-bidi-block-separator: New file.
23021         * modules/unictype/property-bidi-segment-separator: New file.
23022         * modules/unictype/property-bidi-whitespace: New file.
23023         * modules/unictype/property-bidi-non-spacing-mark: New file.
23024         * modules/unictype/property-bidi-boundary-neutral: New file.
23025         * modules/unictype/property-bidi-pdf: New file.
23026         * modules/unictype/property-bidi-embedding-or-override: New file.
23027         * modules/unictype/property-bidi-other-neutral: New file.
23028         * modules/unictype/property-hex-digit: New file.
23029         * modules/unictype/property-ascii-hex-digit: New file.
23030         * modules/unictype/property-ideographic: New file.
23031         * modules/unictype/property-unified-ideograph: New file.
23032         * modules/unictype/property-radical: New file.
23033         * modules/unictype/property-ids-binary-operator: New file.
23034         * modules/unictype/property-ids-trinary-operator: New file.
23035         * modules/unictype/property-zero-width: New file.
23036         * modules/unictype/property-space: New file.
23037         * modules/unictype/property-non-break: New file.
23038         * modules/unictype/property-iso-control: New file.
23039         * modules/unictype/property-format-control: New file.
23040         * modules/unictype/property-dash: New file.
23041         * modules/unictype/property-hyphen: New file.
23042         * modules/unictype/property-punctuation: New file.
23043         * modules/unictype/property-line-separator: New file.
23044         * modules/unictype/property-paragraph-separator: New file.
23045         * modules/unictype/property-quotation-mark: New file.
23046         * modules/unictype/property-sentence-terminal: New file.
23047         * modules/unictype/property-terminal-punctuation: New file.
23048         * modules/unictype/property-currency-symbol: New file.
23049         * modules/unictype/property-math: New file.
23050         * modules/unictype/property-other-math: New file.
23051         * modules/unictype/property-paired-punctuation: New file.
23052         * modules/unictype/property-left-of-pair: New file.
23053         * modules/unictype/property-combining: New file.
23054         * modules/unictype/property-composite: New file.
23055         * modules/unictype/property-decimal-digit: New file.
23056         * modules/unictype/property-numeric: New file.
23057         * modules/unictype/property-diacritic: New file.
23058         * modules/unictype/property-extender: New file.
23059         * modules/unictype/property-ignorable-control: New file.
23060         * modules/unictype/property-test: New file.
23061         * modules/unictype/property-byname: New file.
23062         * modules/unictype/property-all: New file.
23063         * modules/unictype/scripts: New file.
23064         * modules/unictype/scripts-all: New file.
23065         * modules/unictype/block-of: New file.
23066         * modules/unictype/block-test: New file.
23067         * modules/unictype/block-list: New file.
23068         * modules/unictype/block-all: New file.
23069         * modules/unictype/syntax-c-whitespace: New file.
23070         * modules/unictype/syntax-java-whitespace: New file.
23071         * modules/unictype/syntax-c-ident: New file.
23072         * modules/unictype/syntax-java-ident: New file.
23073         * modules/unictype/ctype-alnum: New file.
23074         * modules/unictype/ctype-alpha: New file.
23075         * modules/unictype/ctype-cntrl: New file.
23076         * modules/unictype/ctype-digit: New file.
23077         * modules/unictype/ctype-graph: New file.
23078         * modules/unictype/ctype-lower: New file.
23079         * modules/unictype/ctype-print: New file.
23080         * modules/unictype/ctype-punct: New file.
23081         * modules/unictype/ctype-space: New file.
23082         * modules/unictype/ctype-upper: New file.
23083         * modules/unictype/ctype-xdigit: New file.
23084         * modules/unictype/ctype-blank: New file.
23085         * lib/unictype/bidi_byname.c: New file.
23086         * lib/unictype/bidi_name.c: New file.
23087         * lib/unictype/bidi_of.c: New file.
23088         * lib/unictype/bidi_test.c: New file.
23089         * lib/unictype/bitmap.h: New file.
23090         * lib/unictype/block_test.c: New file.
23091         * lib/unictype/blocks.c: New file.
23092         * lib/unictype/categ_C.c: New file.
23093         * lib/unictype/categ_Cc.c: New file.
23094         * lib/unictype/categ_Cf.c: New file.
23095         * lib/unictype/categ_Cn.c: New file.
23096         * lib/unictype/categ_Co.c: New file.
23097         * lib/unictype/categ_Cs.c: New file.
23098         * lib/unictype/categ_L.c: New file.
23099         * lib/unictype/categ_Ll.c: New file.
23100         * lib/unictype/categ_Lm.c: New file.
23101         * lib/unictype/categ_Lo.c: New file.
23102         * lib/unictype/categ_Lt.c: New file.
23103         * lib/unictype/categ_Lu.c: New file.
23104         * lib/unictype/categ_M.c: New file.
23105         * lib/unictype/categ_Mc.c: New file.
23106         * lib/unictype/categ_Me.c: New file.
23107         * lib/unictype/categ_Mn.c: New file.
23108         * lib/unictype/categ_N.c: New file.
23109         * lib/unictype/categ_Nd.c: New file.
23110         * lib/unictype/categ_Nl.c: New file.
23111         * lib/unictype/categ_No.c: New file.
23112         * lib/unictype/categ_P.c: New file.
23113         * lib/unictype/categ_Pc.c: New file.
23114         * lib/unictype/categ_Pd.c: New file.
23115         * lib/unictype/categ_Pe.c: New file.
23116         * lib/unictype/categ_Pf.c: New file.
23117         * lib/unictype/categ_Pi.c: New file.
23118         * lib/unictype/categ_Po.c: New file.
23119         * lib/unictype/categ_Ps.c: New file.
23120         * lib/unictype/categ_S.c: New file.
23121         * lib/unictype/categ_Sc.c: New file.
23122         * lib/unictype/categ_Sk.c: New file.
23123         * lib/unictype/categ_Sm.c: New file.
23124         * lib/unictype/categ_So.c: New file.
23125         * lib/unictype/categ_Z.c: New file.
23126         * lib/unictype/categ_Zl.c: New file.
23127         * lib/unictype/categ_Zp.c: New file.
23128         * lib/unictype/categ_Zs.c: New file.
23129         * lib/unictype/categ_and.c: New file.
23130         * lib/unictype/categ_and_not.c: New file.
23131         * lib/unictype/categ_byname.c: New file.
23132         * lib/unictype/categ_name.c: New file.
23133         * lib/unictype/categ_none.c: New file.
23134         * lib/unictype/categ_of.c: New file.
23135         * lib/unictype/categ_or.c: New file.
23136         * lib/unictype/categ_test.c: New file.
23137         * lib/unictype/combining.c: New file.
23138         * lib/unictype/ctype_alnum.c: New file.
23139         * lib/unictype/ctype_alpha.c: New file.
23140         * lib/unictype/ctype_blank.c: New file.
23141         * lib/unictype/ctype_cntrl.c: New file.
23142         * lib/unictype/ctype_digit.c: New file.
23143         * lib/unictype/ctype_graph.c: New file.
23144         * lib/unictype/ctype_lower.c: New file.
23145         * lib/unictype/ctype_print.c: New file.
23146         * lib/unictype/ctype_punct.c: New file.
23147         * lib/unictype/ctype_space.c: New file.
23148         * lib/unictype/ctype_upper.c: New file.
23149         * lib/unictype/ctype_xdigit.c: New file.
23150         * lib/unictype/decdigit.c: New file.
23151         * lib/unictype/digit.c: New file.
23152         * lib/unictype/identsyntaxmap.h: New file.
23153         * lib/unictype/mirror.c: New file.
23154         * lib/unictype/numeric.c: New file.
23155         * lib/unictype/pr_alphabetic.c: New file.
23156         * lib/unictype/pr_ascii_hex_digit.c: New file.
23157         * lib/unictype/pr_bidi_arabic_digit.c: New file.
23158         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
23159         * lib/unictype/pr_bidi_block_separator.c: New file.
23160         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
23161         * lib/unictype/pr_bidi_common_separator.c: New file.
23162         * lib/unictype/pr_bidi_control.c: New file.
23163         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
23164         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
23165         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
23166         * lib/unictype/pr_bidi_european_digit.c: New file.
23167         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
23168         * lib/unictype/pr_bidi_left_to_right.c: New file.
23169         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
23170         * lib/unictype/pr_bidi_other_neutral.c: New file.
23171         * lib/unictype/pr_bidi_pdf.c: New file.
23172         * lib/unictype/pr_bidi_segment_separator.c: New file.
23173         * lib/unictype/pr_bidi_whitespace.c: New file.
23174         * lib/unictype/pr_byname.c: New file.
23175         * lib/unictype/pr_byname.gperf: New file.
23176         * lib/unictype/pr_combining.c: New file.
23177         * lib/unictype/pr_composite.c: New file.
23178         * lib/unictype/pr_currency_symbol.c: New file.
23179         * lib/unictype/pr_dash.c: New file.
23180         * lib/unictype/pr_decimal_digit.c: New file.
23181         * lib/unictype/pr_default_ignorable_code_point.c: New file.
23182         * lib/unictype/pr_deprecated.c: New file.
23183         * lib/unictype/pr_diacritic.c: New file.
23184         * lib/unictype/pr_extender.c: New file.
23185         * lib/unictype/pr_format_control.c: New file.
23186         * lib/unictype/pr_grapheme_base.c: New file.
23187         * lib/unictype/pr_grapheme_extend.c: New file.
23188         * lib/unictype/pr_grapheme_link.c: New file.
23189         * lib/unictype/pr_hex_digit.c: New file.
23190         * lib/unictype/pr_hyphen.c: New file.
23191         * lib/unictype/pr_id_continue.c: New file.
23192         * lib/unictype/pr_id_start.c: New file.
23193         * lib/unictype/pr_ideographic.c: New file.
23194         * lib/unictype/pr_ids_binary_operator.c: New file.
23195         * lib/unictype/pr_ids_trinary_operator.c: New file.
23196         * lib/unictype/pr_ignorable_control.c: New file.
23197         * lib/unictype/pr_iso_control.c: New file.
23198         * lib/unictype/pr_join_control.c: New file.
23199         * lib/unictype/pr_left_of_pair.c: New file.
23200         * lib/unictype/pr_line_separator.c: New file.
23201         * lib/unictype/pr_logical_order_exception.c: New file.
23202         * lib/unictype/pr_lowercase.c: New file.
23203         * lib/unictype/pr_math.c: New file.
23204         * lib/unictype/pr_non_break.c: New file.
23205         * lib/unictype/pr_not_a_character.c: New file.
23206         * lib/unictype/pr_numeric.c: New file.
23207         * lib/unictype/pr_other_alphabetic.c: New file.
23208         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
23209         * lib/unictype/pr_other_grapheme_extend.c: New file.
23210         * lib/unictype/pr_other_id_continue.c: New file.
23211         * lib/unictype/pr_other_id_start.c: New file.
23212         * lib/unictype/pr_other_lowercase.c: New file.
23213         * lib/unictype/pr_other_math.c: New file.
23214         * lib/unictype/pr_other_uppercase.c: New file.
23215         * lib/unictype/pr_paired_punctuation.c: New file.
23216         * lib/unictype/pr_paragraph_separator.c: New file.
23217         * lib/unictype/pr_pattern_syntax.c: New file.
23218         * lib/unictype/pr_pattern_white_space.c: New file.
23219         * lib/unictype/pr_private_use.c: New file.
23220         * lib/unictype/pr_punctuation.c: New file.
23221         * lib/unictype/pr_quotation_mark.c: New file.
23222         * lib/unictype/pr_radical.c: New file.
23223         * lib/unictype/pr_sentence_terminal.c: New file.
23224         * lib/unictype/pr_soft_dotted.c: New file.
23225         * lib/unictype/pr_space.c: New file.
23226         * lib/unictype/pr_terminal_punctuation.c: New file.
23227         * lib/unictype/pr_test.c: New file.
23228         * lib/unictype/pr_titlecase.c: New file.
23229         * lib/unictype/pr_unassigned_code_value.c: New file.
23230         * lib/unictype/pr_unified_ideograph.c: New file.
23231         * lib/unictype/pr_uppercase.c: New file.
23232         * lib/unictype/pr_variation_selector.c: New file.
23233         * lib/unictype/pr_white_space.c: New file.
23234         * lib/unictype/pr_xid_continue.c: New file.
23235         * lib/unictype/pr_xid_start.c: New file.
23236         * lib/unictype/pr_zero_width.c: New file.
23237         * lib/unictype/scripts.c: New file.
23238         * lib/unictype/sy_c_ident.c: New file.
23239         * lib/unictype/sy_c_whitespace.c: New file.
23240         * lib/unictype/sy_java_ident.c: New file.
23241         * lib/unictype/sy_java_whitespace.c: New file.
23242
23243         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
23244         Unicode 5.0.0.
23245         * lib/unictype/blocks.h: Likewise.
23246         * lib/unictype/categ_C.h: Likewise.
23247         * lib/unictype/categ_Cc.h: Likewise.
23248         * lib/unictype/categ_Cf.h: Likewise.
23249         * lib/unictype/categ_Cn.h: Likewise.
23250         * lib/unictype/categ_Co.h: Likewise.
23251         * lib/unictype/categ_Cs.h: Likewise.
23252         * lib/unictype/categ_L.h: Likewise.
23253         * lib/unictype/categ_Ll.h: Likewise.
23254         * lib/unictype/categ_Lm.h: Likewise.
23255         * lib/unictype/categ_Lo.h: Likewise.
23256         * lib/unictype/categ_Lt.h: Likewise.
23257         * lib/unictype/categ_Lu.h: Likewise.
23258         * lib/unictype/categ_M.h: Likewise.
23259         * lib/unictype/categ_Mc.h: Likewise.
23260         * lib/unictype/categ_Me.h: Likewise.
23261         * lib/unictype/categ_Mn.h: Likewise.
23262         * lib/unictype/categ_N.h: Likewise.
23263         * lib/unictype/categ_Nd.h: Likewise.
23264         * lib/unictype/categ_Nl.h: Likewise.
23265         * lib/unictype/categ_No.h: Likewise.
23266         * lib/unictype/categ_P.h: Likewise.
23267         * lib/unictype/categ_Pc.h: Likewise.
23268         * lib/unictype/categ_Pd.h: Likewise.
23269         * lib/unictype/categ_Pe.h: Likewise.
23270         * lib/unictype/categ_Pf.h: Likewise.
23271         * lib/unictype/categ_Pi.h: Likewise.
23272         * lib/unictype/categ_Po.h: Likewise.
23273         * lib/unictype/categ_Ps.h: Likewise.
23274         * lib/unictype/categ_S.h: Likewise.
23275         * lib/unictype/categ_Sc.h: Likewise.
23276         * lib/unictype/categ_Sk.h: Likewise.
23277         * lib/unictype/categ_Sm.h: Likewise.
23278         * lib/unictype/categ_So.h: Likewise.
23279         * lib/unictype/categ_Z.h: Likewise.
23280         * lib/unictype/categ_Zl.h: Likewise.
23281         * lib/unictype/categ_Zp.h: Likewise.
23282         * lib/unictype/categ_Zs.h: Likewise.
23283         * lib/unictype/categ_of.h: Likewise.
23284         * lib/unictype/combining.h: Likewise.
23285         * lib/unictype/ctype_alnum.h: Likewise.
23286         * lib/unictype/ctype_alpha.h: Likewise.
23287         * lib/unictype/ctype_blank.h: Likewise.
23288         * lib/unictype/ctype_cntrl.h: Likewise.
23289         * lib/unictype/ctype_digit.h: Likewise.
23290         * lib/unictype/ctype_graph.h: Likewise.
23291         * lib/unictype/ctype_lower.h: Likewise.
23292         * lib/unictype/ctype_print.h: Likewise.
23293         * lib/unictype/ctype_punct.h: Likewise.
23294         * lib/unictype/ctype_space.h: Likewise.
23295         * lib/unictype/ctype_upper.h: Likewise.
23296         * lib/unictype/ctype_xdigit.h: Likewise.
23297         * lib/unictype/decdigit.h: Likewise.
23298         * lib/unictype/digit.h: Likewise.
23299         * lib/unictype/mirror.h: Likewise.
23300         * lib/unictype/numeric.h: Likewise.
23301         * lib/unictype/pr_alphabetic.h: Likewise.
23302         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
23303         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
23304         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
23305         * lib/unictype/pr_bidi_block_separator.h: Likewise.
23306         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
23307         * lib/unictype/pr_bidi_common_separator.h: Likewise.
23308         * lib/unictype/pr_bidi_control.h: Likewise.
23309         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
23310         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
23311         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
23312         * lib/unictype/pr_bidi_european_digit.h: Likewise.
23313         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
23314         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
23315         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
23316         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
23317         * lib/unictype/pr_bidi_pdf.h: Likewise.
23318         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
23319         * lib/unictype/pr_bidi_whitespace.h: Likewise.
23320         * lib/unictype/pr_combining.h: Likewise.
23321         * lib/unictype/pr_composite.h: Likewise.
23322         * lib/unictype/pr_currency_symbol.h: Likewise.
23323         * lib/unictype/pr_dash.h: Likewise.
23324         * lib/unictype/pr_decimal_digit.h: Likewise.
23325         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
23326         * lib/unictype/pr_deprecated.h: Likewise.
23327         * lib/unictype/pr_diacritic.h: Likewise.
23328         * lib/unictype/pr_extender.h: Likewise.
23329         * lib/unictype/pr_format_control.h: Likewise.
23330         * lib/unictype/pr_grapheme_base.h: Likewise.
23331         * lib/unictype/pr_grapheme_extend.h: Likewise.
23332         * lib/unictype/pr_grapheme_link.h: Likewise.
23333         * lib/unictype/pr_hex_digit.h: Likewise.
23334         * lib/unictype/pr_hyphen.h: Likewise.
23335         * lib/unictype/pr_id_continue.h: Likewise.
23336         * lib/unictype/pr_id_start.h: Likewise.
23337         * lib/unictype/pr_ideographic.h: Likewise.
23338         * lib/unictype/pr_ids_binary_operator.h: Likewise.
23339         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
23340         * lib/unictype/pr_ignorable_control.h: Likewise.
23341         * lib/unictype/pr_iso_control.h: Likewise.
23342         * lib/unictype/pr_join_control.h: Likewise.
23343         * lib/unictype/pr_left_of_pair.h: Likewise.
23344         * lib/unictype/pr_line_separator.h: Likewise.
23345         * lib/unictype/pr_logical_order_exception.h: Likewise.
23346         * lib/unictype/pr_lowercase.h: Likewise.
23347         * lib/unictype/pr_math.h: Likewise.
23348         * lib/unictype/pr_non_break.h: Likewise.
23349         * lib/unictype/pr_not_a_character.h: Likewise.
23350         * lib/unictype/pr_numeric.h: Likewise.
23351         * lib/unictype/pr_other_alphabetic.h: Likewise.
23352         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
23353         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
23354         * lib/unictype/pr_other_id_continue.h: Likewise.
23355         * lib/unictype/pr_other_id_start.h: Likewise.
23356         * lib/unictype/pr_other_lowercase.h: Likewise.
23357         * lib/unictype/pr_other_math.h: Likewise.
23358         * lib/unictype/pr_other_uppercase.h: Likewise.
23359         * lib/unictype/pr_paired_punctuation.h: Likewise.
23360         * lib/unictype/pr_paragraph_separator.h: Likewise.
23361         * lib/unictype/pr_pattern_syntax.h: Likewise.
23362         * lib/unictype/pr_pattern_white_space.h: Likewise.
23363         * lib/unictype/pr_private_use.h: Likewise.
23364         * lib/unictype/pr_punctuation.h: Likewise.
23365         * lib/unictype/pr_quotation_mark.h: Likewise.
23366         * lib/unictype/pr_radical.h: Likewise.
23367         * lib/unictype/pr_sentence_terminal.h: Likewise.
23368         * lib/unictype/pr_soft_dotted.h: Likewise.
23369         * lib/unictype/pr_space.h: Likewise.
23370         * lib/unictype/pr_terminal_punctuation.h: Likewise.
23371         * lib/unictype/pr_titlecase.h: Likewise.
23372         * lib/unictype/pr_unassigned_code_value.h: Likewise.
23373         * lib/unictype/pr_unified_ideograph.h: Likewise.
23374         * lib/unictype/pr_uppercase.h: Likewise.
23375         * lib/unictype/pr_variation_selector.h: Likewise.
23376         * lib/unictype/pr_white_space.h: Likewise.
23377         * lib/unictype/pr_xid_continue.h: Likewise.
23378         * lib/unictype/pr_xid_start.h: Likewise.
23379         * lib/unictype/pr_zero_width.h: Likewise.
23380         * lib/unictype/scripts.h: Likewise.
23381         * lib/unictype/scripts_byname.gperf: Likewise.
23382         * lib/unictype/sy_c_ident.h: Likewise.
23383         * lib/unictype/sy_c_whitespace.h: Likewise.
23384         * lib/unictype/sy_java_ident.h: Likewise.
23385         * lib/unictype/sy_java_whitespace.h: Likewise.
23386
23387         * lib/unictype/Makefile: New file.
23388         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
23389         glibc.
23390         * lib/unictype/3level.h: New file, copied from glibc.
23391         * lib/unictype/3levelbit.h: New file.
23392
23393 2007-11-11  Bruno Haible  <bruno@clisp.org>
23394
23395         * modules/gperf: New file.
23396         * modules/iconv_open (Depends-on): Add it.
23397         (Makefile.am): Remove the GPERF definition.
23398
23399 2007-11-11  Bruno Haible  <bruno@clisp.org>
23400
23401         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
23402         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
23403
23404 2007-11-11  Bruno Haible  <bruno@clisp.org>
23405
23406         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
23407         (usage): Remove function.
23408
23409 2007-11-11  Bruno Haible  <bruno@clisp.org>
23410
23411         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
23412         gl_FUNC_CEILF_LIBS.
23413         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
23414         gl_FUNC_CEIL_LIBS.
23415         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
23416         gl_FUNC_CEILL_LIBS.
23417         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
23418         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
23419         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
23420
23421 2007-11-11  Bruno Haible  <bruno@clisp.org>
23422
23423         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
23424         roundf were declared but do not exist on functions.
23425         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
23426         roundl were declared but do not exist on functions.
23427         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
23428         HAVE_FLOORL_AND_CEILL, respectively.
23429         Needed for Sun C on Solaris 10.
23430
23431 2007-11-11  Bruno Haible  <bruno@clisp.org>
23432
23433         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
23434         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
23435         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
23436         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
23437         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
23438         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
23439         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
23440         HAVE_DECL_ROUNDF.
23441         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
23442         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
23443         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
23444         of HAVE_DECL_ROUND*.
23445         * modules/math (Makefile.am): Update.
23446
23447 2007-11-10  Bruno Haible  <bruno@clisp.org>
23448
23449         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
23450         ptrdiff_t as m4/intl.m4.
23451
23452 2007-11-10  Jim Meyering  <meyering@redhat.com>
23453
23454         Avoid link failure for the argmatch test.
23455         * tests/test-argmatch.c (usage): Define function to avoid a link
23456         failure: argmatch_die requires a usage function.
23457
23458 2007-11-09  Bruno Haible  <bruno@clisp.org>
23459
23460         * doc/functions/snprintf.texi: Mention BeOS deficiency.
23461         * doc/functions/vsnprintf.texi: Likewise.
23462         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
23463         with a size argument < 2.
23464
23465 2007-11-09  Bruno Haible  <bruno@clisp.org>
23466
23467         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
23468         buffer. Fixes an inefficiency introduced on 2007-11-03.
23469
23470 2007-11-09  Bruno Haible  <bruno@clisp.org>
23471
23472         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
23473         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
23474
23475 2007-11-08  Jim Meyering  <meyering@redhat.com>
23476
23477         Change cache variable name prefix "jm_" to "gl_" everywhere.
23478         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
23479         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
23480         * m4/uptime.m4: s/gl_/jm_/
23481
23482 2007-11-07  Bruno Haible  <bruno@clisp.org>
23483
23484         Update to GNU gettext 0.17.
23485         * m4/intl.m4: Update to GNU gettext 0.17.
23486         * m4/po.m4: Likewise.
23487         * modules/gettext (Files): Remove m4/ulonglong.m4.
23488         (configure.ac): Require gettext infrastructure from version 0.17.
23489
23490 2007-11-06  Bruno Haible  <bruno@clisp.org>
23491
23492         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
23493         symbolic values are not defined in a public header.
23494         * lib/freadable.c (freadable) [QNX]: Likewise.
23495         * lib/freadahead.c (freadahead) [QNX]: Likewise.
23496         * lib/freading.c (freading) [QNX]: Likewise.
23497         * lib/fseterr.c (fseterr) [QNX]: Likewise.
23498         * lib/fwritable.c (fwritable) [QNX]: Likewise.
23499         * lib/fwriting.c (fwriting) [QNX]: Likewise.
23500         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
23501         Reported by Alain Magloire.
23502
23503         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
23504
23505 2007-11-05  Bruno Haible  <bruno@clisp.org>
23506
23507         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
23508         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
23509         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
23510         Reported by Eric Blake.
23511
23512 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23513             Bruno Haible  <bruno@clisp.org>
23514
23515         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
23516         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
23517         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
23518         (malloc): Undefine also before including <stdlib.h>.
23519         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
23520         Needed on OSF/1 4.0.
23521
23522 2007-11-05  Jim Meyering  <meyering@redhat.com>
23523
23524         git-version-gen: sync from coreutils.
23525         * build-aux/git-version-gen: Add comments.
23526         Change the first '-' to '.' in the snapshot version string,
23527         e.g., 6.9-377-08144 -> 6.9.377-08144
23528         Remove first parameter.
23529         Don't declare a version "-dirty" merely because a time
23530         stamp has changed.
23531
23532 2007-11-04  Bruno Haible  <bruno@clisp.org>
23533
23534         * lib/lock.h: Protect all macro definitions containing an 'if'
23535         statement through a "do { ... } while (0)".
23536         * lib/tls.h: Likewise.
23537
23538 2007-11-04  Bruno Haible  <bruno@clisp.org>
23539
23540         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
23541
23542 2007-11-04  Bruno Haible  <bruno@clisp.org>
23543
23544         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
23545         * modules/fprintf-posix (Depends-on): Add nocrash.
23546         * modules/snprintf-posix (Depends-on): Likewise.
23547         * modules/sprintf-posix (Depends-on): Likewise.
23548         * modules/vasnprintf-posix (Depends-on): Likewise.
23549         * modules/vasprintf-posix (Depends-on): Likewise.
23550         * modules/vfprintf-posix (Depends-on): Likewise.
23551         * modules/vsnprintf-posix (Depends-on): Likewise.
23552         * modules/vsprintf-posix (Depends-on): Likewise.
23553         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23554         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23555         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23556         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23557         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23558         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23559         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23560
23561 2007-11-04  Bruno Haible  <bruno@clisp.org>
23562
23563         * modules/nocrash: New file.
23564         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
23565         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
23566
23567 2007-11-04  Bruno Haible  <bruno@clisp.org>
23568
23569         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
23570         precision handling.
23571         * tests/test-vasprintf-posix.c (test_function): Likewise.
23572         * tests/test-snprintf-posix.h (test_function): Likewise.
23573         * tests/test-sprintf-posix.h (test_function): Likewise.
23574
23575         Fix *printf behaviour for large precisions on mingw and BeOS.
23576         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
23577         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
23578         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
23579         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
23580         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23581         gl_PRINTF_PRECISION and test its result. Invoke
23582         gl_PREREQ_VASNPRINTF_PRECISION.
23583         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23584         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23585         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23586         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23587         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23588         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23589         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23590         * doc/functions/fprintf.texi: Update.
23591         * doc/functions/printf.texi: Update.
23592         * doc/functions/snprintf.texi: Update.
23593         * doc/functions/sprintf.texi: Update.
23594         * doc/functions/vfprintf.texi: Update.
23595         * doc/functions/vprintf.texi: Update.
23596         * doc/functions/vsnprintf.texi: Update.
23597         * doc/functions/vsprintf.texi: Update.
23598
23599 2007-11-04  Bruno Haible  <bruno@clisp.org>
23600
23601         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
23602
23603 2007-11-04  Bruno Haible  <bruno@clisp.org>
23604
23605         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
23606         Reported by Sylvain Beucler <beuc@gnu.org>.
23607
23608 2007-11-03  Bruno Haible  <bruno@clisp.org>
23609
23610         * tests/test-fprintf-posix2.sh: New file.
23611         * tests/test-fprintf-posix2.c: New file.
23612         * modules/fprintf-posix-tests (Files): Add them.
23613         (TESTS): Add test-fprintf-posix2.sh.
23614         (configure.ac): Check for getrlimit and setrlimit.
23615         (check_PROGRAMS): Add test-fprintf-posix2.
23616
23617         * tests/test-printf-posix2.sh: New file.
23618         * tests/test-printf-posix2.c: New file.
23619         * modules/printf-posix-tests (Files): Add them.
23620         (TESTS): Add test-printf-posix2.sh.
23621         (configure.ac): Check for getrlimit and setrlimit.
23622         (check_PROGRAMS): Add test-printf-posix2.
23623
23624         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
23625         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
23626         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
23627         (decode_double): New function, copied from decode_long_double.
23628         (scale10_round_decimal_decoded): New function, extracted from
23629         scale10_round_decimal_long_double.
23630         (scale10_round_decimal_long_double): Use it.
23631         (scale10_round_decimal_double): New function.
23632         (floorlog10): New function.
23633         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
23634         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
23635         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
23636         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23637         gl_PRINTF_ENOMEM and test its result. Invoke
23638         gl_PREREQ_VASNPRINTF_ENOMEM.
23639         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23640         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23641         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23642         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23643         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23644         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23645         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23646         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
23647         * modules/snprintf-posix (Depends-on): Likewise.
23648         * modules/sprintf-posix (Depends-on): Likewise.
23649         * modules/vasnprintf-posix (Depends-on): Likewise.
23650         * modules/vasprintf-posix (Depends-on): Likewise.
23651         * modules/vfprintf-posix (Depends-on): Likewise.
23652         * modules/vsnprintf-posix (Depends-on): Likewise.
23653         * modules/vsprintf-posix (Depends-on): Likewise.
23654         * doc/functions/fprintf.texi: Update.
23655         * doc/functions/printf.texi: Update.
23656         * doc/functions/snprintf.texi: Update.
23657         * doc/functions/sprintf.texi: Update.
23658         * doc/functions/vfprintf.texi: Update.
23659         * doc/functions/vprintf.texi: Update.
23660         * doc/functions/vsnprintf.texi: Update.
23661         * doc/functions/vsprintf.texi: Update.
23662
23663 2007-11-03  Bruno Haible  <bruno@clisp.org>
23664
23665         * modules/frexp-nolibm-tests: New file.
23666
23667         * modules/frexp-nolibm: New file.
23668         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
23669
23670 2007-11-03  Bruno Haible  <bruno@clisp.org>
23671
23672         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
23673         value is C99 compliant.
23674         Needed for OSF/1 5.1.
23675
23676 2007-11-03  Bruno Haible  <bruno@clisp.org>
23677
23678         Fix out-of-memory handling of vasnprintf.
23679         * lib/printf-parse.c: Include <errno.h>.
23680         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
23681         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
23682         is already set.
23683
23684 2007-11-02  Eric Blake  <ebb9@byu.net>
23685
23686         Fix tests on cygwin.
23687         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
23688
23689 2007-11-01  Bruno Haible  <bruno@clisp.org>
23690
23691         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
23692         warning.
23693         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
23694         needed for POSIX compatibility.
23695
23696 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
23697
23698         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
23699         for compatibility with GNU.
23700
23701 2007-11-01  Bruno Haible  <bruno@clisp.org>
23702
23703         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
23704         (putenv): Renamed from rpl_putenv. Change argument type from
23705         'const char *' to 'char *'.
23706         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
23707         of defining putenv in config.h, just set REPLACE_PUTENV.
23708         * modules/putenv (Depends-on): Add stdlib.
23709         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23710         (Include): Use <stdlib.h>.
23711         * lib/stdlib.in.h (putenv): New declaration.
23712         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
23713         REPLACE_PUTENV.
23714         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
23715         REPLACE_PUTENV.
23716         Needed for MacOS X 10.5.0.
23717         Reported by Peter O'Gorman <peter@pogma.com>.
23718
23719 2007-11-01  Jim Meyering  <meyering@redhat.com>
23720
23721         Treat an empty date string exactly like "0".
23722         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
23723         if the remaining date string (to be parsed) is empty, use "0".
23724         Reported by Mischa Molhoek and discussed in this thread:
23725         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
23726
23727 2007-10-31  Bruno Haible  <bruno@clisp.org>
23728
23729         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
23730         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
23731         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
23732         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
23733         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
23734         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
23735
23736 2007-10-31  Bruno Haible  <bruno@clisp.org>
23737
23738         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
23739         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
23740         (AC_TYPE_LONG_LONG_INT): Use it.
23741         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
23742         it as well.
23743         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
23744         to m4/longlong.m4.
23745         * modules/stdint (Files): Remove m4/ulonglong.m4.
23746         * modules/strtoull (Files): Use m4/longlong.m4 instead of
23747         m4/ulonglong.m4.
23748         * modules/strtoumax (Files): Likewise.
23749
23750 2007-10-30  Bruno Haible  <bruno@clisp.org>
23751
23752         * modules/xvasprintf-posix: New file.
23753         Suggested by Eric Blake.
23754
23755 2007-10-30  Bruno Haible  <bruno@clisp.org>
23756
23757         * modules/xprintf-posix-tests: New file.
23758         * tests/test-xprintf-posix.sh: New file.
23759         * tests/test-xprintf-posix.c: New file.
23760         * tests/test-xfprintf-posix.c: New file.
23761
23762         * modules/xprintf-posix: New file.
23763
23764 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23765
23766         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
23767         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
23768         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
23769
23770 2007-10-29  Bruno Haible  <bruno@clisp.org>
23771
23772         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
23773         contain the special marker '_cv_'.
23774         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
23775         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
23776         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
23777         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
23778         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
23779         Reported by Ralf Wildenhues.
23780
23781 2007-10-29  Bruno Haible  <bruno@clisp.org>
23782
23783         * gnulib-tool (func_import): When --lgpl is not specified, set
23784         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
23785         GPLv3.
23786         Reported by Simon Josefsson.
23787
23788 2007-10-28  Bruno Haible  <bruno@clisp.org>
23789
23790         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
23791         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
23792         HAVE_DECL_ISFINITE.
23793         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
23794         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
23795         HAVE_DECL_ISFINITE.
23796
23797 2007-10-28  Bruno Haible  <bruno@clisp.org>
23798
23799         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
23800         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
23801
23802 2007-10-28  Bruno Haible  <bruno@clisp.org>
23803
23804         Fix link errors with Sun C 5.0 on Solaris 10.
23805         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
23806         function is declared but not present in the compiler's libm.
23807         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
23808         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
23809         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
23810         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
23811         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
23812         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
23813         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
23814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
23815         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
23816         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
23817         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
23818         HAVE_DECL_FLOORL.
23819
23820 2007-10-28  Bruno Haible  <bruno@clisp.org>
23821
23822         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
23823         gl_FUNC_FLOORL. Cache the result.
23824         (gl_FUNC_FLOORL): Use it.
23825         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
23826         gl_FUNC_CEILL. Cache the result.
23827         (gl_FUNC_CEILL): Use it.
23828
23829         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
23830         gl_FUNC_FLOOR. Cache the result.
23831         (gl_FUNC_FLOOR): Use it.
23832         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
23833         gl_FUNC_CEIL. Cache the result.
23834         (gl_FUNC_CEIL): Use it.
23835
23836         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
23837         gl_FUNC_FLOORF. Cache the result.
23838         (gl_FUNC_FLOORF): Use it.
23839         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
23840         gl_FUNC_CEILF. Cache the result.
23841         (gl_FUNC_CEILF): Use it.
23842
23843 2007-10-28  Bruno Haible  <bruno@clisp.org>
23844
23845         * gnulib-tool: Allow specifying the LGPL version number through
23846         --lgpl=2 or --lgpl=3.
23847         (func_usage): Document --lgpl with argument.
23848         Handle --lgpl=... arguments.
23849         (func_import): Recognize also gl_LGPL calls with an argument. When
23850         --lgpl=2 is used and the module's license is just LGPL, report an
23851         error. Set sed_transform_lib_file according to the lgpl variable. In
23852         the generated files, use --lgpl or gl_LGPL invocations with argument,
23853         if necessary.
23854         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
23855         an LGPv2+ license.
23856         * doc/gnulib-tool.texi (Modified imports): Update explanation of
23857         gl_LGPL macro.
23858
23859 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23860             Bruno Haible  <bruno@clisp.org>
23861
23862         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
23863         (u16_uctomb_aux): Likewise.
23864         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
23865         !HAVE_INLINE.
23866         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
23867
23868 2007-10-28  Bruno Haible  <bruno@clisp.org>
23869
23870         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
23871         Invoke AM_GETTEXT_OPTION if it exists.
23872         * modules/vasprintf: Likewise.
23873         * modules/verror: Likewise.
23874         * modules/xprintf: Likewise.
23875         * modules/xvasprintf: Likewise.
23876
23877 2007-10-27  Ben Pfaff  <blp@gnu.org>
23878
23879         * lib/math.in.h: Define isfinite macro and prototypes for
23880         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
23881         implementations.
23882         * m4/math_h.m4: New substitutions for isfinite module.
23883         * lib/isfinite.c: New file.
23884         * m4/isfinite.m4: New file.
23885         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
23886         * modules/isfinite: New file.
23887         * modules/isfinite-tests: New file.
23888         * tests/tests-isfinite.c: New file.
23889         * doc/functions/isfinite.texi: Mention isfinite module.
23890         * MODULES.html.sh: Mention new module.
23891
23892 2007-10-27  Ben Pfaff  <blp@gnu.org>
23893
23894         Ralf Wildenhues reported that Tru64 4.0D declares the round
23895         functions but does not have definitions.
23896         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
23897         cannot be found in any library, set the output variable to
23898         "missing" instead of "".
23899         * m4/round.m4: Also use our substitute if we cannot find round in
23900         any library, even if it is declared.
23901         * m4/roundf.m4: Likewise for roundf.
23902         * m4/roundl.m4: Likewise for roundl.
23903         * lib/math.in.h: Undefine roundf, round, roundl before defining
23904         their replacements, to allow for hypothetical systems where these
23905         may be defined as macros but not available in libraries.
23906
23907 2007-10-27  Bruno Haible  <bruno@clisp.org>
23908
23909         * doc/gnulib.texi: Invoke @firstparagraphindent.
23910         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
23911         changes in gnulib.
23912         (Source changes): New section.
23913
23914 2007-10-26  Bruno Haible  <bruno@clisp.org>
23915
23916         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
23917         borrowed from autoconf.
23918
23919 2007-10-26  Bruno Haible  <bruno@clisp.org>
23920
23921         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
23922         strerror returned the empty string. Needed on HP-UX 11.00.
23923
23924 2007-10-24  Micah Cowan  <micah@cowan.name>
23925
23926         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
23927         * build-aux/bootstrap: Remove support for now-unnecessary option,
23928         --cvs-user, and envvars CVS_USER, CVS_RSH.
23929
23930 2007-10-24  Jim Meyering  <meyering@redhat.com>
23931
23932         Avoid diagnostics from sha1sum when there is no cached checksum.
23933         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
23934         if the po.s1 file hasn't been created yet.
23935
23936         * build-aux/bootstrap: Sync from coreutils:
23937         2007-10-24  Jim Meyering  <meyering@redhat.com>
23938         Get gnulib from the git repository, not from an obsolete cvs one.
23939         * build-aux/bootstrap: Suggestion from Micah Cowan.
23940         2007-10-04  Jim Meyering  <jim@meyering.net>
23941         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
23942         (update_po_files): Work also when there are no .po files in po/.
23943
23944 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
23945
23946         * README: Append ".git" to git and cg examples.
23947         Problem reported by Benoit Sigoure.
23948
23949 2007-10-23  Micah Cowan  <micah@cowan.name>
23950
23951         * users.txt: Add wget.
23952
23953 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23954
23955         Fix linking of some unistdio tests on FreeBSD.
23956         * modules/unistdio/u16-vsnprintf-tests
23957         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
23958         * modules/unistdio/u16-vsprintf-tests
23959         (test_u16_vsnprintf1_LDADD): Likewise.
23960         * modules/unistdio/u32-vsnprintf-tests
23961         (test_u32_vsnprintf1_LDADD): Likewise.
23962         * modules/unistdio/u32-vsprintf-tests
23963         (test_u32_vsprintf1_LDADD): Likewise.
23964         * modules/unistdio/u8-vsnprintf-tests
23965         (test_u8_vsnprintf1_LDADD): Likewise.
23966         * modules/unistdio/u8-vsprintf-tests
23967         (test_u8_vsprintf1_LDADD): Likewise.
23968         * modules/unistdio/ulc-vsnprintf-tests
23969         (test_ulc_vsnprintf1_LDADD): Likewise.
23970         * modules/unistdio/ulc-vsprintf-tests
23971         (test_ulc_vsprintf1_LDADD): Likewise.
23972
23973         Fix linking of some uniconv tests on FreeBSD.
23974         * modules/uniconv/u16-conv-from-enc-tests
23975         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
23976         * modules/uniconv/u16-conv-to-enc-tests
23977         (test_u16_conv_to_enc_LDADD): Likewise.
23978         * modules/uniconv/u16-strconv-from-enc-tests
23979         (test_u16_strconv_from_enc_LDADD): Likewise.
23980         * modules/uniconv/u16-strconv-to-enc-tests
23981         (test_u16_strconv_to_enc_LDADD): Likewise.
23982         * modules/uniconv/u32-conv-from-enc-tests
23983         (test_u32_conv_from_enc_LDADD): Likewise.
23984         * modules/uniconv/u32-conv-to-enc-tests
23985         (test_u32_conv_to_enc_LDADD): Likewise.
23986         * modules/uniconv/u32-strconv-from-enc-tests
23987         (test_u32_strconv_from_enc_LDADD): Likewise.
23988         * modules/uniconv/u32-strconv-to-enc-tests
23989         (test_u32_strconv_to_enc_LDADD): Likewise.
23990         * modules/uniconv/u8-conv-from-enc-tests
23991         (test_u8_conv_from_enc_LDADD): Likewise.
23992         * modules/uniconv/u8-conv-to-enc-tests
23993         (test_u8_conv_to_enc_LDADD): Likewise.
23994         * modules/uniconv/u8-strconv-from-enc-tests
23995         (test_u8_strconv_from_enc_LDADD): Likewise.
23996         * modules/uniconv/u8-strconv-to-enc-tests
23997         (test_u8_strconv_to_enc_LDADD): Likewise.
23998
23999 2007-10-22  Bruno Haible  <bruno@clisp.org>
24000
24001         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
24002         size.
24003
24004 2007-10-22  Eric Blake  <ebb9@byu.net>
24005
24006         Tweak x*printf documentation.
24007         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
24008         variable name and comments.
24009         Suggested by Bruno Haible.
24010
24011 2007-10-22  Bruno Haible  <bruno@clisp.org>
24012
24013         * lib/acl.c (copy_acl): Fix file name in comment.
24014
24015 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
24016
24017         Fix Tru64 problem with stdbool.h.
24018         * lib/stdbool.in.h (false, true):
24019         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
24020         Don't declare as an enum in this situation; it runs afoul of Tru64.
24021         Problem reported by Steven M. Schweda in
24022         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
24023
24024 2007-10-22  Eric Blake  <ebb9@byu.net>
24025
24026         Also wrap vf?printf.
24027         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
24028         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
24029         (xvprintf, xvfprintf): New functions.
24030
24031 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24032
24033         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
24034         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
24035
24036         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
24037         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
24038
24039 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
24040
24041         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
24042         by Bruno Haible.
24043
24044 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24045
24046         * lib/getloadavg.c
24047         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
24048         Undef `sys' after including sys/table.h, for Tru64 4.0D.
24049
24050         * tests/test-i-ring.c: Work for C89.
24051
24052 2007-10-22  Bruno Haible  <bruno@clisp.org>
24053
24054         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
24055         -1u, in preprocessor expression, so that we don't test for the bug
24056         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
24057         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
24058
24059 2007-10-22  Eric Blake  <ebb9@byu.net>
24060
24061         * tests/test-yesno.sh: Silence stderr during test.
24062
24063 2007-10-22  Simon Josefsson  <simon@josefsson.org>
24064
24065         * modules/crypto/gc-camellia: New file.
24066
24067         * m4/gc-camellia.m4: New file.
24068
24069         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
24070
24071         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
24072
24073 2007-10-22  Simon Josefsson  <simon@josefsson.org>
24074
24075         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
24076         --help to stdout.  Reported by sms@antinode.org (Steven
24077         M. Schweda).
24078
24079 2007-10-22  Simon Josefsson  <simon@josefsson.org>
24080
24081         * users.txt: Fix link to libksba.
24082
24083 2007-10-21  Ben Pfaff  <blp@gnu.org>
24084
24085         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
24086         round.c roundf implementation that depends on floorf and ceilf to
24087         be tested unconditionally.
24088
24089 2007-10-21  Ben Pfaff  <blp@gnu.org>
24090
24091         * m4/check-libm-func.m4: Removed.
24092         * m4/check-math-lib.m4: New file.
24093         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
24094         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
24095         definition and lack of AC_LIBOBJ([roundf]).
24096         * m4/roundl.m4: Ditto, and similarly for roundl.
24097         * modules/round: Reference new m4 file.
24098         * modules/roundf: Ditto.
24099         * modules/roundl: Ditto.
24100         * tests/test-round2.c (main): Use ROUND instead of round.
24101         Bug report from Bruno Haible.
24102
24103 2007-10-21  Bruno Haible  <bruno@clisp.org>
24104
24105         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
24106         context.
24107
24108 2007-10-21  Bruno Haible  <bruno@clisp.org>
24109
24110         * tests/test-wcwidth.c (main): Allow negative result for some control
24111         characters.
24112
24113         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
24114         Needed on OSF/1 5.1.
24115
24116 2007-10-21  Bruno Haible  <bruno@clisp.org>
24117
24118         * tests/test-floorf1.c: Include isnanf.h.
24119         (main): Use isnanf() instead of isnan().
24120         * tests/test-ceilf1.c: Include isnanf.h.
24121         (main): Use isnanf() instead of isnan().
24122         * tests/test-truncf1.c: Include isnanf.h.
24123         (main): Use isnanf() instead of isnan().
24124         * tests/test-roundf1.c: Include isnanf.h.
24125         (main): Use isnanf() instead of isnan().
24126
24127 2007-10-21  Eric Blake  <ebb9@byu.net>
24128
24129         * users.txt: Update URL for m4.
24130
24131 2007-10-21  Bruno Haible  <bruno@clisp.org>
24132
24133         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
24134
24135 2007-10-21  Bruno Haible  <bruno@clisp.org>
24136
24137         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
24138         Git's management files if the CVS files are not present.
24139
24140 2007-10-20  Bruno Haible  <bruno@clisp.org>
24141
24142         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
24143         gcc-3.4.x.
24144
24145 2007-10-20  Ben Pfaff  <blp@gnu.org>
24146
24147         * lib/math.in.h: Declare round, roundf, roundl if we are providing
24148         implementations.
24149         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
24150         * lib/round.c: New file.
24151         * lib/roundf.c: New file.
24152         * lib/roundl.c: New file.
24153         * m4/round.m4: New file.
24154         * m4/roundf.m4: New file.
24155         * m4/roundl.m4: New file.
24156         * m4/check-libm-func-m4: New file.
24157         * modules/math: Replace round, roundf, roundl related @VARS@ in
24158         math.in.h.
24159         * modules/round: New file.
24160         * modules/round-tests: New file.
24161         * modules/roundf: New file.
24162         * modules/roundf-tests: New file.
24163         * modules/roundl: New file.
24164         * modules/roundl-tests: New file.
24165         * tests/test-round1.c: New file.
24166         * tests/test-round2.c: New file.
24167         * tests/test-roundf1.c: New file.
24168         * tests/test-roundf2.c: New file.
24169         * tests/test-roundl.c: New file.
24170         * doc/functions/round.texi: Mention round module.
24171         * doc/functions/roundf.texi: Mention roundf module.
24172         * doc/functions/roundl.texi: Mention roundl module.
24173         * MODULES.html.sh: Mention new modules.
24174         Thanks to Bruno Haible for suggestions.
24175
24176 2007-10-20  Jim Meyering  <meyering@redhat.com>
24177
24178         * lib/xprintf.c: Include <config.h> unconditionally.
24179
24180         Change xprintf's license to GPL.
24181         * modules/xprintf (License): s/LGPL/GPL/, since this module
24182         depends on modules (exit and exitfail) which are GPL.
24183         Suggestion from Bruno Haible.
24184
24185         xprintf fixes.
24186         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
24187         Use a clearer diagnostic.
24188         Patch from Bruno Haible.
24189
24190 2007-10-20  Bruno Haible  <bruno@clisp.org>
24191
24192         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
24193         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
24194         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24195
24196 2007-10-20  Bruno Haible  <bruno@clisp.org>
24197
24198         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
24199         precision in the comparison result > x - 1 or similar.
24200         * tests/test-ceilf2.c (correct_result_p): Likewise.
24201         * tests/test-truncf2.c (correct_result_p): Likewise.
24202         * tests/test-trunc2.c (correct_result_p): Likewise.
24203         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24204
24205 2007-10-20  Bruno Haible  <bruno@clisp.org>
24206
24207         * modules/ceil: New file.
24208         * m4/ceil.m4: New file.
24209         * doc/functions/ceil.texi: Mention the 'ceil' module.
24210
24211 2007-10-20  Bruno Haible  <bruno@clisp.org>
24212
24213         * modules/floor: New file.
24214         * m4/floor.m4: New file.
24215         * doc/functions/floor.texi: Mention the 'floor' module.
24216
24217 2007-10-20  Bruno Haible  <bruno@clisp.org>
24218
24219         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
24220         of %a.
24221         * modules/floorf-tests (Depends-on): Likewise.
24222         * modules/truncf-tests (Depends-on): Likewise.
24223         * modules/trunc-tests (Depends-on): Likewise.
24224         Reported by Ben Pfaff.
24225
24226 2007-10-19  Jim Meyering  <meyering@redhat.com>
24227
24228         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
24229         Don't bother testing specific errno values.  Just test ferror.
24230
24231         New module: xprintf
24232         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
24233
24234 2007-10-19  Bruno Haible  <bruno@clisp.org>
24235
24236         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
24237         syntax.
24238         * modules/javaexec (Makefile.am): Likewise.
24239         * modules/relocatable-prog (Makefile.am): Likewise.
24240         Suggested by Jim Meyering.
24241
24242 2007-10-18  Bruno Haible  <bruno@clisp.org>
24243
24244         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
24245         Reported by Jim Meyering.
24246
24247 2007-10-18  Eric Blake  <ebb9@byu.net>
24248
24249         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
24250
24251 2007-10-18  Bruno Haible  <bruno@clisp.org>
24252
24253         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
24254         the format string into writable memory. Needed in Fortify conditions.
24255
24256 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
24257             Bruno Haible  <bruno@clisp.org>
24258
24259         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
24260         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
24261         * modules/trim (Depends-on): Add mbchar.
24262         (configure.ac): Add gl_FUNC_MBRTOWC.
24263         (Makefile.am): Augment lib_SOURCES.
24264
24265 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
24266
24267         Modify glob.c to use fstatat and dirfd, to simplify it.
24268         Suggested by Eric Blake.
24269         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
24270         Don't include <stdbool.h>; not used.
24271         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
24272         (link_exists_p): Simplify implementation, since we can now assume
24273         dirfd and fstatat.
24274         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
24275
24276 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24277
24278         * gnulib-tool (func_get_dependencies): Fix sed script to
24279         match only tests.
24280
24281 2007-10-17  Bruno Haible  <bruno@clisp.org>
24282
24283         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
24284         allow locale names without encoding suffix.
24285         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
24286         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24287
24288 2007-10-16  Bruno Haible  <bruno@clisp.org>
24289
24290         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
24291         * lib/getgroups.c (getgroups): Likewise.
24292         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
24293
24294 2007-10-16  Bruno Haible  <bruno@clisp.org>
24295
24296         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
24297         * modules/malloc-posix (License): Likewise.
24298         * modules/realloc-posix (License): Likewise.
24299         * modules/calloc-posix (License): Likewise.
24300         * modules/intprops (License): Change from GPL to LGPL, with
24301         Paul Eggert's approval.
24302
24303 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
24304
24305         Merge glibc changes into lib/glob.c.
24306
24307         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
24308         2007-10-15 04:59:03 UTC.  Here are the changes:
24309
24310         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
24311
24312         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
24313
24314         * lib/glob.c: Add some branch prediction throughout.
24315
24316         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
24317
24318         [BZ #5103]
24319         * lib/glob.c (glob): Recognize patterns starting \/.
24320
24321         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
24322
24323         [BZ #3996]
24324         * lib/glob.c (attribute_hidden): Define if not defined.
24325         (glob): Unescape dirname, filename or username when needed and not
24326         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
24327         is NULL.  Handle unescaped [ in pattern without closing ].
24328         Don't pass GLOB_CHECK down to recursive glob for directories.
24329         (__glob_pattern_type): New function.
24330         (__glob_pattern_p): Implement using __glob_pattern_type.
24331         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
24332         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
24333         Remove unreachable code.
24334
24335         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
24336
24337         * lib/glob.c (glob_in_dir): Add some comments and asserts to
24338         explain why there are no leaks.
24339
24340         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
24341
24342         [BZ #3253]
24343         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
24344         time, rather allocate increasingly bigger arrays of pointers, if
24345         possible with alloca, if too large with malloc.
24346
24347 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
24348
24349         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
24350         Problem reported by H.Merijn Brand in
24351         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
24352         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
24353         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
24354
24355 2007-10-15  Bruno Haible  <bruno@clisp.org>
24356
24357         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
24358         with explicit rpl_ prefix.
24359         * lib/fopen.c (fopen): Likewise.
24360         * lib/freopen.c (freopen): Likewise.
24361         * lib/iconv.c (iconv): Likewise.
24362         * lib/iconv_close.c (iconv_close): Likewise.
24363
24364 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24365
24366         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
24367
24368 2007-10-15  Bruno Haible  <bruno@clisp.org>
24369
24370         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
24371         <stddef.h> instead of <stdlib.h> since we only need NULL.
24372         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24373
24374 2007-10-15  Bruno Haible  <bruno@clisp.org>
24375
24376         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
24377         Replace paragraph talking about LIBOBJS.
24378         Reported by Colin Watson <cjwatson@debian.org>.
24379
24380 2007-10-15  Bruno Haible  <bruno@clisp.org>
24381
24382         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
24383         <stdlib.h> before using NULL.
24384
24385 2007-10-15  Simon Josefsson  <simon@josefsson.org>
24386
24387         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
24388         Reported by Albert Chin <china@thewrittenword.com>.
24389
24390 2007-10-14  Bruno Haible  <bruno@clisp.org>
24391
24392         * modules/iconv_open-utf-tests: New file.
24393         * tests/test-iconv-utf.c: New file.
24394
24395         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
24396         * modules/iconv_open-utf: New file.
24397         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
24398         (iconv, iconv_close): New declarations.
24399         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
24400         be defined.
24401         (iconv_open): Add special handling of conversion between UTF-8 and
24402         UTF-{16,32}{BE,LE}.
24403         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
24404         * lib/iconv_close.c: New file.
24405         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
24406         gl_FUNC_ICONV_OPEN.
24407         (gl_FUNC_ICONV_OPEN): Use it.
24408         (gl_FUNC_ICONV_OPEN_UTF): New macro.
24409         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
24410         and REPLACE_ICONV_UTF.
24411         * modules/iconv_open (Depends-on): Add c-strcase.
24412         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
24413         ICONV_CONST.
24414         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
24415
24416 2007-10-13  Albert Chin  <china@thewrittenword.com>
24417             Bruno Haible  <bruno@clisp.org>
24418
24419         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
24420         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
24421
24422 2007-10-13  Bruno Haible  <bruno@clisp.org>
24423
24424         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
24425         defined, use the ISO C99 inline semantics.
24426         * lib/argp.h (ARGP_EI): Likewise.
24427
24428 2007-10-13  Bruno Haible  <bruno@clisp.org>
24429
24430         Handle 'inline' change in gcc 4.3.0.
24431         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
24432         argp_fmtstream_write, argp_fmtstream_set_lmargin,
24433         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
24434         argp_fmtstream_point): Disable 'extern' declaration if the function
24435         definition is going to be provided inline.
24436         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
24437         semantics, not the ISO C99 inline semantics.
24438         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
24439         'extern' declaration if the function definition is going to be provided
24440         inline.
24441         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
24442         the GNU C inline semantics, not the ISO C99 inline semantics. With
24443         GCC 4.2, avoid a warning.
24444
24445 2007-10-13  Bruno Haible  <bruno@clisp.org>
24446
24447         * lib/freading.h (freading): Enable the use of __freading for
24448         glibc >= 2.7.
24449         * lib/freading.c (freading): Likewise.
24450
24451 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
24452
24453         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
24454         "warning: C99 inline functions are not supported; using GNU89".
24455
24456 2007-10-12  Bruno Haible  <bruno@clisp.org>
24457
24458         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
24459         of 2.
24460         * tests/test-ceilf2.c: New file.
24461         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
24462
24463         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
24464         * modules/ceilf-tests: Update.
24465
24466 2007-10-12  Bruno Haible  <bruno@clisp.org>
24467
24468         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
24469         of 2.
24470         * tests/test-floorf2.c: New file.
24471         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
24472
24473         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
24474         * modules/floorf-tests: Update.
24475
24476 2007-10-12  Bruno Haible  <bruno@clisp.org>
24477
24478         * tests/test-trunc2.c: New file.
24479         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
24480
24481         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
24482         * modules/trunc-tests: Update.
24483
24484 2007-10-12  Bruno Haible  <bruno@clisp.org>
24485
24486         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
24487         of 2.
24488         * tests/test-truncf2.c: New file.
24489         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
24490
24491         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
24492         * modules/truncf-tests: Update.
24493
24494 2007-10-11  Eric Blake  <ebb9@byu.net>
24495
24496         Don't claim strerror is broken on Interix.
24497         * doc/functions/strerror.texi (strerror): Known broken systems are
24498         now Solaris 8, and not Interix.
24499         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
24500         Interix on cross-compile.
24501         Reported by Martin Koeppe in
24502         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
24503
24504 2007-10-11  Bruno Haible  <bruno@clisp.org>
24505
24506         * modules/i-ring-tests: New file.
24507         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
24508         instead of assert.
24509
24510 2007-10-11  Bruno Haible  <bruno@clisp.org>
24511
24512         * modules/filenamecat-tests: New file.
24513         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
24514         * lib/filenamecat.c: Remove test code.
24515
24516 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24517
24518         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
24519
24520         * lib/strerror.c: Include <string.h> always, to test interface,
24521         and to remove the need for the dummy.
24522         Include intprops.h to compute width instead of doing it ourselves
24523         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
24524         (strerror): Define it to return NULL if there's no system strerror.
24525         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
24526         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
24527         ancient pre-strerror Unix systems well any more.  Saying "unknown
24528         system error" is enough.
24529         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
24530         simpler strerror.c implementation.
24531         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
24532         Simplify the tests to reflect the simpler strerror implementation.
24533         * modules/strerror (Depends-on): Add intprops.
24534
24535 2007-10-09  Eric Blake  <ebb9@byu.net>
24536
24537         Silence test-fpending.
24538         * modules/fpending-tests (Files): Add wrapper script.
24539         * tests/test-fpending.sh: New file.
24540
24541 2007-10-09  Bruno Haible  <bruno@clisp.org>
24542
24543         * MODULES.html.sh (func_module): Don't create a hyperlink for
24544         function names like 'printf_frexp'.
24545         (Misc): Add crc, memxor.
24546         (Characteristics of floating types): New section.
24547         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
24548         isnanf-nolibm, signbit, trunc, truncf, truncl.
24549         (Enhancements for ISO C 99 functions): New subsection Input/output.
24550         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
24551         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
24552         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
24553         (Compatibility checks for POSIX:2001 functions): Add clock-time.
24554         (Enhancements for POSIX:2001 functions): Add chdir-long.
24555         (File system functions): Add areadlink, chdir-safer, read-file.
24556         Remove cycle-check.
24557         (File system as inode set): New section.
24558         (Date and time): Add gethrxtime.
24559         (Multithreading): Add openmp.
24560         (Internationalization functions): Add localename.
24561         (Unicode string functions): Add unistr/u*-mbsnlen.
24562         (Support for maintaining and releasing projects): Add git-version-gen.
24563         (Lone files): Remove directories.
24564
24565 2007-10-08  Ben Pfaff  <blp@gnu.org>
24566
24567         * lib/xmalloca.h: Fix typo in comment.
24568
24569 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24570
24571         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
24572         when avoiding problems with integer overflow.  Use a portable test
24573         instead.
24574
24575 2007-10-08  Simon Josefsson  <simon@josefsson.org>
24576
24577         * modules/dummy (License): Change to LGPLv2+.
24578         * modules/float (License): Likewise
24579         * modules/realloc (License): Likewise
24580         * modules/stdlib (License): Likewise
24581
24582 2007-10-07  Bruno Haible  <bruno@clisp.org>
24583
24584         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
24585         * floor.c (TWO_MANT_DIG): Likewise.
24586         * ceil.c (TWO_MANT_DIG): Likewise.
24587         Reported by Ben Pfaff.
24588
24589 2007-10-07  Bruno Haible  <bruno@clisp.org>
24590
24591         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
24592         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
24593         * lib/frexp.c (FUNC): Likewise.
24594         * lib/printf-frexp.h (printf_frexp): Likewise.
24595         * lib/printf-frexpl.h (printf_frexpl): Likewise.
24596         * lib/printf-frexp.c (FUNC): Likewise.
24597         Suggested by Jim Meyering.
24598
24599 2007-10-07  Jim Meyering  <meyering@redhat.com>
24600
24601         Make xnanosleep's integer overflow test more robust.
24602         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
24603         so that gcc-4.3.0 doesn't optimize away this test for overflow.
24604
24605 2007-10-07  Bruno Haible  <bruno@clisp.org>
24606
24607         * NEWS: Mention the license change.
24608
24609         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
24610         abbreviations in the modules files.
24611
24612         Change copyright notice from GPLv2+ to GPLv3+.
24613         * README: Change copyright notice.
24614         * MODULES.html.sh: Likewise.
24615         * build-aux/bootstrap.conf: Likewise.
24616         * build-aux/config.libpath: Likewise.
24617         * build-aux/csharpcomp.sh.in: Likewise.
24618         * build-aux/csharpexec.sh.in: Likewise.
24619         * build-aux/install-reloc: Likewise.
24620         * build-aux/javacomp.sh.in: Likewise.
24621         * build-aux/javaexec.sh.in: Likewise.
24622         * build-aux/ldd.sh.in: Likewise.
24623         * build-aux/reloc-ldflags: Likewise.
24624         * build-aux/relocatable.sh.in: Likewise.
24625         * build-aux/x-to-1.in: Likewise.
24626         * check-module: Likewise.
24627         * config/srclistvars.sh: Likewise.
24628         * gnulib-tool: Likewise.
24629         * lib/acl-internal.h: Likewise.
24630         * lib/acl.c: Likewise.
24631         * lib/acl.h: Likewise.
24632         * lib/acl_entries.c: Likewise.
24633         * lib/areadlink-with-size.c: Likewise.
24634         * lib/areadlink.c: Likewise.
24635         * lib/areadlink.h: Likewise.
24636         * lib/argmatch.c: Likewise.
24637         * lib/argmatch.h: Likewise.
24638         * lib/argp-ba.c: Likewise.
24639         * lib/argp-eexst.c: Likewise.
24640         * lib/argp-fmtstream.c: Likewise.
24641         * lib/argp-fmtstream.h: Likewise.
24642         * lib/argp-fs-xinl.c: Likewise.
24643         * lib/argp-help.c: Likewise.
24644         * lib/argp-namefrob.h: Likewise.
24645         * lib/argp-parse.c: Likewise.
24646         * lib/argp-pin.c: Likewise.
24647         * lib/argp-pv.c: Likewise.
24648         * lib/argp-pvh.c: Likewise.
24649         * lib/argp-xinl.c: Likewise.
24650         * lib/argp.h: Likewise.
24651         * lib/at-func.c: Likewise.
24652         * lib/atanl.c: Likewise.
24653         * lib/backupfile.c: Likewise.
24654         * lib/backupfile.h: Likewise.
24655         * lib/basename.c: Likewise.
24656         * lib/binary-io.h: Likewise.
24657         * lib/byteswap.in.h: Likewise.
24658         * lib/c-stack.c: Likewise.
24659         * lib/c-stack.h: Likewise.
24660         * lib/c-strcasestr.c: Likewise.
24661         * lib/c-strcasestr.h: Likewise.
24662         * lib/c-strstr.c: Likewise.
24663         * lib/c-strstr.h: Likewise.
24664         * lib/c-strtod.c: Likewise.
24665         * lib/calloc.c: Likewise.
24666         * lib/canon-host.c: Likewise.
24667         * lib/canon-host.h: Likewise.
24668         * lib/canonicalize-lgpl.c: Likewise.
24669         * lib/canonicalize.c: Likewise.
24670         * lib/canonicalize.h: Likewise.
24671         * lib/ceil.c: Likewise.
24672         * lib/ceilf.c: Likewise.
24673         * lib/ceill.c: Likewise.
24674         * lib/chdir-long.c: Likewise.
24675         * lib/chdir-long.h: Likewise.
24676         * lib/chdir-safer.c: Likewise.
24677         * lib/chdir-safer.h: Likewise.
24678         * lib/chown.c: Likewise.
24679         * lib/classpath.c: Likewise.
24680         * lib/classpath.h: Likewise.
24681         * lib/clean-temp.c: Likewise.
24682         * lib/clean-temp.h: Likewise.
24683         * lib/cloexec.c: Likewise.
24684         * lib/close-stream.c: Likewise.
24685         * lib/closein.c: Likewise.
24686         * lib/closein.h: Likewise.
24687         * lib/closeout.c: Likewise.
24688         * lib/closeout.h: Likewise.
24689         * lib/concat-filename.c: Likewise.
24690         * lib/copy-file.c: Likewise.
24691         * lib/copy-file.h: Likewise.
24692         * lib/count-one-bits.h: Likewise.
24693         * lib/crc.c: Likewise.
24694         * lib/crc.h: Likewise.
24695         * lib/creat-safer.c: Likewise.
24696         * lib/csharpcomp.c: Likewise.
24697         * lib/csharpcomp.h: Likewise.
24698         * lib/csharpexec.c: Likewise.
24699         * lib/csharpexec.h: Likewise.
24700         * lib/cycle-check.c: Likewise.
24701         * lib/cycle-check.h: Likewise.
24702         * lib/diacrit.c: Likewise.
24703         * lib/diacrit.h: Likewise.
24704         * lib/diffseq.h: Likewise.
24705         * lib/dirchownmod.c: Likewise.
24706         * lib/dirent.in.h: Likewise.
24707         * lib/dirfd.c: Likewise.
24708         * lib/dirfd.h: Likewise.
24709         * lib/dirname.c: Likewise.
24710         * lib/dirname.h: Likewise.
24711         * lib/dummy.c: Likewise.
24712         * lib/dup-safer.c: Likewise.
24713         * lib/dup2.c: Likewise.
24714         * lib/eealloc.h: Likewise.
24715         * lib/error.c: Likewise.
24716         * lib/error.h: Likewise.
24717         * lib/euidaccess.c: Likewise.
24718         * lib/exclude.c: Likewise.
24719         * lib/exclude.h: Likewise.
24720         * lib/execute.c: Likewise.
24721         * lib/execute.h: Likewise.
24722         * lib/exitfail.c: Likewise.
24723         * lib/exitfail.h: Likewise.
24724         * lib/expl.c: Likewise.
24725         * lib/fatal-signal.c: Likewise.
24726         * lib/fatal-signal.h: Likewise.
24727         * lib/fbufmode.c: Likewise.
24728         * lib/fbufmode.h: Likewise.
24729         * lib/fchdir.c: Likewise.
24730         * lib/fchmodat.c: Likewise.
24731         * lib/fchownat.c: Likewise.
24732         * lib/fcntl--.h: Likewise.
24733         * lib/fcntl-safer.h: Likewise.
24734         * lib/fcntl.in.h: Likewise.
24735         * lib/fd-safer.c: Likewise.
24736         * lib/fflush.c: Likewise.
24737         * lib/file-has-acl.c: Likewise.
24738         * lib/file-set.c: Likewise.
24739         * lib/file-type.c: Likewise.
24740         * lib/file-type.h: Likewise.
24741         * lib/fileblocks.c: Likewise.
24742         * lib/filemode.c: Likewise.
24743         * lib/filemode.h: Likewise.
24744         * lib/filename.h: Likewise.
24745         * lib/filenamecat.c: Likewise.
24746         * lib/filenamecat.h: Likewise.
24747         * lib/findprog.c: Likewise.
24748         * lib/findprog.h: Likewise.
24749         * lib/float.in.h: Likewise.
24750         * lib/floor.c: Likewise.
24751         * lib/floorf.c: Likewise.
24752         * lib/floorl.c: Likewise.
24753         * lib/fopen-safer.c: Likewise.
24754         * lib/fopen.c: Likewise.
24755         * lib/fpending.c: Likewise.
24756         * lib/fpending.h: Likewise.
24757         * lib/fprintf.c: Likewise.
24758         * lib/fprintftime.h: Likewise.
24759         * lib/fpucw.h: Likewise.
24760         * lib/fpurge.c: Likewise.
24761         * lib/fpurge.h: Likewise.
24762         * lib/freadable.c: Likewise.
24763         * lib/freadable.h: Likewise.
24764         * lib/freadahead.c: Likewise.
24765         * lib/freadahead.h: Likewise.
24766         * lib/freading.c: Likewise.
24767         * lib/freading.h: Likewise.
24768         * lib/free.c: Likewise.
24769         * lib/freopen.c: Likewise.
24770         * lib/frexp.c: Likewise.
24771         * lib/frexpl.c: Likewise.
24772         * lib/fseek.c: Likewise.
24773         * lib/fseterr.c: Likewise.
24774         * lib/fseterr.h: Likewise.
24775         * lib/fstatat.c: Likewise.
24776         * lib/fstrcmp.c: Likewise.
24777         * lib/fstrcmp.h: Likewise.
24778         * lib/fsusage.c: Likewise.
24779         * lib/fsusage.h: Likewise.
24780         * lib/ftell.c: Likewise.
24781         * lib/ftello.c: Likewise.
24782         * lib/fts-cycle.c: Likewise.
24783         * lib/fts.c: Likewise.
24784         * lib/fts_.h: Likewise.
24785         * lib/full-read.c: Likewise.
24786         * lib/full-read.h: Likewise.
24787         * lib/full-write.c: Likewise.
24788         * lib/full-write.h: Likewise.
24789         * lib/fwritable.c: Likewise.
24790         * lib/fwritable.h: Likewise.
24791         * lib/fwriteerror.c: Likewise.
24792         * lib/fwriteerror.h: Likewise.
24793         * lib/fwriting.c: Likewise.
24794         * lib/fwriting.h: Likewise.
24795         * lib/gcd.c: Likewise.
24796         * lib/gcd.h: Likewise.
24797         * lib/getcwd.c: Likewise.
24798         * lib/getdate.h: Likewise.
24799         * lib/getdate.y: Likewise.
24800         * lib/getdomainname.c: Likewise.
24801         * lib/getdomainname.h: Likewise.
24802         * lib/getgroups.c: Likewise.
24803         * lib/gethostname.c: Likewise.
24804         * lib/gethrxtime.c: Likewise.
24805         * lib/gethrxtime.h: Likewise.
24806         * lib/getloadavg.c: Likewise.
24807         * lib/getndelim2.c: Likewise.
24808         * lib/getndelim2.h: Likewise.
24809         * lib/getnline.c: Likewise.
24810         * lib/getnline.h: Likewise.
24811         * lib/getopt.c: Likewise.
24812         * lib/getopt.in.h: Likewise.
24813         * lib/getopt1.c: Likewise.
24814         * lib/getopt_int.h: Likewise.
24815         * lib/getpagesize.h: Likewise.
24816         * lib/getsubopt.c: Likewise.
24817         * lib/gettime.c: Likewise.
24818         * lib/getugroups.c: Likewise.
24819         * lib/getugroups.h: Likewise.
24820         * lib/getusershell.c: Likewise.
24821         * lib/gl_anyavltree_list1.h: Likewise.
24822         * lib/gl_anyavltree_list2.h: Likewise.
24823         * lib/gl_anyhash_list1.h: Likewise.
24824         * lib/gl_anyhash_list2.h: Likewise.
24825         * lib/gl_anylinked_list1.h: Likewise.
24826         * lib/gl_anylinked_list2.h: Likewise.
24827         * lib/gl_anyrbtree_list1.h: Likewise.
24828         * lib/gl_anyrbtree_list2.h: Likewise.
24829         * lib/gl_anytree_list1.h: Likewise.
24830         * lib/gl_anytree_list2.h: Likewise.
24831         * lib/gl_anytree_oset.h: Likewise.
24832         * lib/gl_anytreehash_list1.h: Likewise.
24833         * lib/gl_anytreehash_list2.h: Likewise.
24834         * lib/gl_array_list.c: Likewise.
24835         * lib/gl_array_list.h: Likewise.
24836         * lib/gl_array_oset.c: Likewise.
24837         * lib/gl_array_oset.h: Likewise.
24838         * lib/gl_avltree_list.c: Likewise.
24839         * lib/gl_avltree_list.h: Likewise.
24840         * lib/gl_avltree_oset.c: Likewise.
24841         * lib/gl_avltree_oset.h: Likewise.
24842         * lib/gl_avltreehash_list.c: Likewise.
24843         * lib/gl_avltreehash_list.h: Likewise.
24844         * lib/gl_carray_list.c: Likewise.
24845         * lib/gl_carray_list.h: Likewise.
24846         * lib/gl_linked_list.c: Likewise.
24847         * lib/gl_linked_list.h: Likewise.
24848         * lib/gl_linkedhash_list.c: Likewise.
24849         * lib/gl_linkedhash_list.h: Likewise.
24850         * lib/gl_list.c: Likewise.
24851         * lib/gl_list.h: Likewise.
24852         * lib/gl_oset.c: Likewise.
24853         * lib/gl_oset.h: Likewise.
24854         * lib/gl_rbtree_list.c: Likewise.
24855         * lib/gl_rbtree_list.h: Likewise.
24856         * lib/gl_rbtree_oset.c: Likewise.
24857         * lib/gl_rbtree_oset.h: Likewise.
24858         * lib/gl_rbtreehash_list.c: Likewise.
24859         * lib/gl_rbtreehash_list.h: Likewise.
24860         * lib/gl_sublist.c: Likewise.
24861         * lib/gl_sublist.h: Likewise.
24862         * lib/group-member.c: Likewise.
24863         * lib/group-member.h: Likewise.
24864         * lib/hard-locale.c: Likewise.
24865         * lib/hard-locale.h: Likewise.
24866         * lib/hash-pjw.c: Likewise.
24867         * lib/hash-pjw.h: Likewise.
24868         * lib/hash-triple.c: Likewise.
24869         * lib/hash.c: Likewise.
24870         * lib/hash.h: Likewise.
24871         * lib/human.c: Likewise.
24872         * lib/human.h: Likewise.
24873         * lib/i-ring.c: Likewise.
24874         * lib/i-ring.h: Likewise.
24875         * lib/idcache.c: Likewise.
24876         * lib/imaxabs.c: Likewise.
24877         * lib/imaxdiv.c: Likewise.
24878         * lib/inet_pton.c: Likewise.
24879         * lib/inet_pton.h: Likewise.
24880         * lib/intprops.h: Likewise.
24881         * lib/inttostr.c: Likewise.
24882         * lib/inttostr.h: Likewise.
24883         * lib/inttypes.in.h: Likewise.
24884         * lib/isapipe.c: Likewise.
24885         * lib/isdir.c: Likewise.
24886         * lib/isnan.c: Likewise.
24887         * lib/isnan.h: Likewise.
24888         * lib/isnanf.c: Likewise.
24889         * lib/isnanf.h: Likewise.
24890         * lib/isnanl-nolibm.h: Likewise.
24891         * lib/isnanl.c: Likewise.
24892         * lib/isnanl.h: Likewise.
24893         * lib/javacomp.c: Likewise.
24894         * lib/javacomp.h: Likewise.
24895         * lib/javaexec.c: Likewise.
24896         * lib/javaexec.h: Likewise.
24897         * lib/javaversion.c: Likewise.
24898         * lib/javaversion.h: Likewise.
24899         * lib/javaversion.java: Likewise.
24900         * lib/lbrkprop.h: Likewise.
24901         * lib/lchmod.h: Likewise.
24902         * lib/lchown.c: Likewise.
24903         * lib/ldexpl.c: Likewise.
24904         * lib/linebreak.c: Likewise.
24905         * lib/linebreak.h: Likewise.
24906         * lib/linebuffer.c: Likewise.
24907         * lib/linebuffer.h: Likewise.
24908         * lib/locale.in.h: Likewise.
24909         * lib/logl.c: Likewise.
24910         * lib/long-options.c: Likewise.
24911         * lib/long-options.h: Likewise.
24912         * lib/lstat.c: Likewise.
24913         * lib/lstat.h: Likewise.
24914         * lib/math.in.h: Likewise.
24915         * lib/mbchar.c: Likewise.
24916         * lib/mbchar.h: Likewise.
24917         * lib/mbfile.h: Likewise.
24918         * lib/mbiter.h: Likewise.
24919         * lib/mbscasecmp.c: Likewise.
24920         * lib/mbscasestr.c: Likewise.
24921         * lib/mbschr.c: Likewise.
24922         * lib/mbscspn.c: Likewise.
24923         * lib/mbslen.c: Likewise.
24924         * lib/mbsncasecmp.c: Likewise.
24925         * lib/mbsnlen.c: Likewise.
24926         * lib/mbspbrk.c: Likewise.
24927         * lib/mbspcasecmp.c: Likewise.
24928         * lib/mbsrchr.c: Likewise.
24929         * lib/mbssep.c: Likewise.
24930         * lib/mbsspn.c: Likewise.
24931         * lib/mbsstr.c: Likewise.
24932         * lib/mbstok_r.c: Likewise.
24933         * lib/mbswidth.c: Likewise.
24934         * lib/mbswidth.h: Likewise.
24935         * lib/mbuiter.h: Likewise.
24936         * lib/memcasecmp.c: Likewise.
24937         * lib/memcasecmp.h: Likewise.
24938         * lib/memchr.c: Likewise.
24939         * lib/memcmp.c: Likewise.
24940         * lib/memcoll.c: Likewise.
24941         * lib/memcoll.h: Likewise.
24942         * lib/memcpy.c: Likewise.
24943         * lib/memrchr.c: Likewise.
24944         * lib/mkancesdirs.c: Likewise.
24945         * lib/mkdir-p.c: Likewise.
24946         * lib/mkdir-p.h: Likewise.
24947         * lib/mkdir.c: Likewise.
24948         * lib/mkdirat.c: Likewise.
24949         * lib/mkdtemp.c: Likewise.
24950         * lib/mkstemp-safer.c: Likewise.
24951         * lib/mkstemp.c: Likewise.
24952         * lib/modechange.c: Likewise.
24953         * lib/modechange.h: Likewise.
24954         * lib/mountlist.c: Likewise.
24955         * lib/mountlist.h: Likewise.
24956         * lib/mpsort.c: Likewise.
24957         * lib/nanosleep.c: Likewise.
24958         * lib/obstack.c: Likewise.
24959         * lib/obstack.h: Likewise.
24960         * lib/open-safer.c: Likewise.
24961         * lib/open.c: Likewise.
24962         * lib/openat-die.c: Likewise.
24963         * lib/openat-priv.h: Likewise.
24964         * lib/openat-proc.c: Likewise.
24965         * lib/openat.c: Likewise.
24966         * lib/openat.h: Likewise.
24967         * lib/pagealign_alloc.c: Likewise.
24968         * lib/pagealign_alloc.h: Likewise.
24969         * lib/physmem.c: Likewise.
24970         * lib/physmem.h: Likewise.
24971         * lib/pipe-safer.c: Likewise.
24972         * lib/pipe.c: Likewise.
24973         * lib/pipe.h: Likewise.
24974         * lib/posixtm.c: Likewise.
24975         * lib/posixtm.h: Likewise.
24976         * lib/posixver.c: Likewise.
24977         * lib/printf-frexp.c: Likewise.
24978         * lib/printf-frexp.h: Likewise.
24979         * lib/printf-frexpl.c: Likewise.
24980         * lib/printf-frexpl.h: Likewise.
24981         * lib/printf.c: Likewise.
24982         * lib/progname.c: Likewise.
24983         * lib/progname.h: Likewise.
24984         * lib/progreloc.c: Likewise.
24985         * lib/putenv.c: Likewise.
24986         * lib/quote.c: Likewise.
24987         * lib/quote.h: Likewise.
24988         * lib/quotearg.c: Likewise.
24989         * lib/quotearg.h: Likewise.
24990         * lib/raise.c: Likewise.
24991         * lib/readline.c: Likewise.
24992         * lib/readline.h: Likewise.
24993         * lib/readlink.c: Likewise.
24994         * lib/readtokens.c: Likewise.
24995         * lib/readtokens.h: Likewise.
24996         * lib/readtokens0.c: Likewise.
24997         * lib/readtokens0.h: Likewise.
24998         * lib/readutmp.c: Likewise.
24999         * lib/readutmp.h: Likewise.
25000         * lib/realloc.c: Likewise.
25001         * lib/relocwrapper.c: Likewise.
25002         * lib/rename-dest-slash.c: Likewise.
25003         * lib/rename.c: Likewise.
25004         * lib/rmdir.c: Likewise.
25005         * lib/rpmatch.c: Likewise.
25006         * lib/safe-read.c: Likewise.
25007         * lib/safe-read.h: Likewise.
25008         * lib/safe-write.c: Likewise.
25009         * lib/safe-write.h: Likewise.
25010         * lib/same-inode.h: Likewise.
25011         * lib/same.c: Likewise.
25012         * lib/same.h: Likewise.
25013         * lib/save-cwd.c: Likewise.
25014         * lib/save-cwd.h: Likewise.
25015         * lib/savedir.c: Likewise.
25016         * lib/savedir.h: Likewise.
25017         * lib/savewd.c: Likewise.
25018         * lib/savewd.h: Likewise.
25019         * lib/search.in.h: Likewise.
25020         * lib/setenv.c: Likewise.
25021         * lib/setenv.h: Likewise.
25022         * lib/settime.c: Likewise.
25023         * lib/sh-quote.c: Likewise.
25024         * lib/sh-quote.h: Likewise.
25025         * lib/sig2str.c: Likewise.
25026         * lib/sig2str.h: Likewise.
25027         * lib/signal.in.h: Likewise.
25028         * lib/signbitd.c: Likewise.
25029         * lib/signbitf.c: Likewise.
25030         * lib/signbitl.c: Likewise.
25031         * lib/sigprocmask.c: Likewise.
25032         * lib/sincosl.c: Likewise.
25033         * lib/sleep.c: Likewise.
25034         * lib/sprintf.c: Likewise.
25035         * lib/sqrtl.c: Likewise.
25036         * lib/stat-time.h: Likewise.
25037         * lib/stdio--.h: Likewise.
25038         * lib/stdio-safer.h: Likewise.
25039         * lib/stdlib--.h: Likewise.
25040         * lib/stdlib-safer.h: Likewise.
25041         * lib/stdlib.in.h: Likewise.
25042         * lib/stpcpy.c: Likewise.
25043         * lib/stpncpy.c: Likewise.
25044         * lib/strchrnul.c: Likewise.
25045         * lib/strcspn.c: Likewise.
25046         * lib/strerror.c: Likewise.
25047         * lib/strftime.c: Likewise.
25048         * lib/strftime.h: Likewise.
25049         * lib/striconveh.c: Likewise.
25050         * lib/striconveh.h: Likewise.
25051         * lib/striconveha.c: Likewise.
25052         * lib/striconveha.h: Likewise.
25053         * lib/stripslash.c: Likewise.
25054         * lib/strnlen1.c: Likewise.
25055         * lib/strnlen1.h: Likewise.
25056         * lib/strtod.c: Likewise.
25057         * lib/strtoimax.c: Likewise.
25058         * lib/strtok_r.c: Likewise.
25059         * lib/strtol.c: Likewise.
25060         * lib/strtoll.c: Likewise.
25061         * lib/strtoul.c: Likewise.
25062         * lib/strtoull.c: Likewise.
25063         * lib/sysexits.in.h: Likewise.
25064         * lib/tempname.c: Likewise.
25065         * lib/tempname.h: Likewise.
25066         * lib/timespec.h: Likewise.
25067         * lib/tls.c: Likewise.
25068         * lib/tls.h: Likewise.
25069         * lib/tmpdir.c: Likewise.
25070         * lib/tmpdir.h: Likewise.
25071         * lib/tmpfile-safer.c: Likewise.
25072         * lib/tmpfile.c: Likewise.
25073         * lib/trigl.c: Likewise.
25074         * lib/trigl.h: Likewise.
25075         * lib/trim.c: Likewise.
25076         * lib/trim.h: Likewise.
25077         * lib/trunc.c: Likewise.
25078         * lib/truncf.c: Likewise.
25079         * lib/truncl.c: Likewise.
25080         * lib/tsearch.c: Likewise.
25081         * lib/unicodeio.c: Likewise.
25082         * lib/unicodeio.h: Likewise.
25083         * lib/unistd--.h: Likewise.
25084         * lib/unistd-safer.h: Likewise.
25085         * lib/unistdio/ulc-fprintf.c: Likewise.
25086         * lib/unistdio/ulc-vfprintf.c: Likewise.
25087         * lib/unlinkdir.c: Likewise.
25088         * lib/unlinkdir.h: Likewise.
25089         * lib/unlocked-io.h: Likewise.
25090         * lib/unsetenv.c: Likewise.
25091         * lib/userspec.c: Likewise.
25092         * lib/utime.c: Likewise.
25093         * lib/utimecmp.c: Likewise.
25094         * lib/utimecmp.h: Likewise.
25095         * lib/utimens.c: Likewise.
25096         * lib/verify.h: Likewise.
25097         * lib/verror.c: Likewise.
25098         * lib/verror.h: Likewise.
25099         * lib/version-etc-fsf.c: Likewise.
25100         * lib/version-etc.c: Likewise.
25101         * lib/version-etc.h: Likewise.
25102         * lib/vfprintf.c: Likewise.
25103         * lib/vprintf.c: Likewise.
25104         * lib/vsprintf.c: Likewise.
25105         * lib/w32spawn.h: Likewise.
25106         * lib/wait-process.c: Likewise.
25107         * lib/wait-process.h: Likewise.
25108         * lib/wcwidth.c: Likewise.
25109         * lib/write-any-file.c: Likewise.
25110         * lib/xalloc-die.c: Likewise.
25111         * lib/xalloc.h: Likewise.
25112         * lib/xasprintf.c: Likewise.
25113         * lib/xgetcwd.c: Likewise.
25114         * lib/xgetcwd.h: Likewise.
25115         * lib/xgetdomainname.c: Likewise.
25116         * lib/xgetdomainname.h: Likewise.
25117         * lib/xgethostname.c: Likewise.
25118         * lib/xmalloc.c: Likewise.
25119         * lib/xmalloca.c: Likewise.
25120         * lib/xmalloca.h: Likewise.
25121         * lib/xmemcoll.c: Likewise.
25122         * lib/xnanosleep.c: Likewise.
25123         * lib/xreadlink.c: Likewise.
25124         * lib/xreadlink.h: Likewise.
25125         * lib/xsetenv.c: Likewise.
25126         * lib/xsetenv.h: Likewise.
25127         * lib/xstriconv.c: Likewise.
25128         * lib/xstriconv.h: Likewise.
25129         * lib/xstrndup.c: Likewise.
25130         * lib/xstrndup.h: Likewise.
25131         * lib/xstrtod.c: Likewise.
25132         * lib/xstrtod.h: Likewise.
25133         * lib/xstrtol-error.c: Likewise.
25134         * lib/xstrtol.c: Likewise.
25135         * lib/xstrtol.h: Likewise.
25136         * lib/xtime.h: Likewise.
25137         * lib/xvasprintf.c: Likewise.
25138         * lib/xvasprintf.h: Likewise.
25139         * lib/yesno.c: Likewise.
25140         * lib/yesno.h: Likewise.
25141         * posix-modules: Likewise.
25142         * tests/test-alloca-opt.c: Likewise.
25143         * tests/test-arcfour.c: Likewise.
25144         * tests/test-arctwo.c: Likewise.
25145         * tests/test-argmatch.c: Likewise.
25146         * tests/test-argp-2.sh: Likewise.
25147         * tests/test-argp.c: Likewise.
25148         * tests/test-arpa_inet.c: Likewise.
25149         * tests/test-array_list.c: Likewise.
25150         * tests/test-array_oset.c: Likewise.
25151         * tests/test-atexit.c: Likewise.
25152         * tests/test-avltree_list.c: Likewise.
25153         * tests/test-avltree_oset.c: Likewise.
25154         * tests/test-avltreehash_list.c: Likewise.
25155         * tests/test-base64.c: Likewise.
25156         * tests/test-binary-io.c: Likewise.
25157         * tests/test-byteswap.c: Likewise.
25158         * tests/test-c-ctype.c: Likewise.
25159         * tests/test-c-strcasecmp.c: Likewise.
25160         * tests/test-c-strcasestr.c: Likewise.
25161         * tests/test-c-strncasecmp.c: Likewise.
25162         * tests/test-c-strstr.c: Likewise.
25163         * tests/test-canonicalize-lgpl.c: Likewise.
25164         * tests/test-canonicalize.c: Likewise.
25165         * tests/test-carray_list.c: Likewise.
25166         * tests/test-ceilf.c: Likewise.
25167         * tests/test-ceill.c: Likewise.
25168         * tests/test-count-one-bits.c: Likewise.
25169         * tests/test-crc.c: Likewise.
25170         * tests/test-dirname.c: Likewise.
25171         * tests/test-fbufmode.c: Likewise.
25172         * tests/test-fcntl.c: Likewise.
25173         * tests/test-fflush.c: Likewise.
25174         * tests/test-floorf.c: Likewise.
25175         * tests/test-floorl.c: Likewise.
25176         * tests/test-fopen.c: Likewise.
25177         * tests/test-fprintf-posix.c: Likewise.
25178         * tests/test-fprintf-posix.h: Likewise.
25179         * tests/test-fpurge.c: Likewise.
25180         * tests/test-freadable.c: Likewise.
25181         * tests/test-freadahead.c: Likewise.
25182         * tests/test-freading.c: Likewise.
25183         * tests/test-freopen.c: Likewise.
25184         * tests/test-frexp.c: Likewise.
25185         * tests/test-frexpl.c: Likewise.
25186         * tests/test-fseek.c: Likewise.
25187         * tests/test-fseeko.c: Likewise.
25188         * tests/test-fseterr.c: Likewise.
25189         * tests/test-fstrcmp.c: Likewise.
25190         * tests/test-ftell.c: Likewise.
25191         * tests/test-ftello.c: Likewise.
25192         * tests/test-fwritable.c: Likewise.
25193         * tests/test-fwriting.c: Likewise.
25194         * tests/test-getaddrinfo.c: Likewise.
25195         * tests/test-getpass.c: Likewise.
25196         * tests/test-gettimeofday.c: Likewise.
25197         * tests/test-hmac-md5.c: Likewise.
25198         * tests/test-hmac-sha1.c: Likewise.
25199         * tests/test-iconv.c: Likewise.
25200         * tests/test-iconvme.c: Likewise.
25201         * tests/test-inttypes.c: Likewise.
25202         * tests/test-isnan.c: Likewise.
25203         * tests/test-isnanf.c: Likewise.
25204         * tests/test-isnanl-nolibm.c: Likewise.
25205         * tests/test-isnanl.c: Likewise.
25206         * tests/test-isnanl.h: Likewise.
25207         * tests/test-ldexpl.c: Likewise.
25208         * tests/test-linked_list.c: Likewise.
25209         * tests/test-linkedhash_list.c: Likewise.
25210         * tests/test-locale.c: Likewise.
25211         * tests/test-localename.c: Likewise.
25212         * tests/test-lock.c: Likewise.
25213         * tests/test-lseek.c: Likewise.
25214         * tests/test-malloca.c: Likewise.
25215         * tests/test-math.c: Likewise.
25216         * tests/test-mbscasecmp.c: Likewise.
25217         * tests/test-mbscasestr1.c: Likewise.
25218         * tests/test-mbscasestr2.c: Likewise.
25219         * tests/test-mbscasestr3.c: Likewise.
25220         * tests/test-mbscasestr4.c: Likewise.
25221         * tests/test-mbschr.c: Likewise.
25222         * tests/test-mbscspn.c: Likewise.
25223         * tests/test-mbsncasecmp.c: Likewise.
25224         * tests/test-mbspbrk.c: Likewise.
25225         * tests/test-mbspcasecmp.c: Likewise.
25226         * tests/test-mbsrchr.c: Likewise.
25227         * tests/test-mbsspn.c: Likewise.
25228         * tests/test-mbsstr1.c: Likewise.
25229         * tests/test-mbsstr2.c: Likewise.
25230         * tests/test-mbsstr3.c: Likewise.
25231         * tests/test-md5.c: Likewise.
25232         * tests/test-memmem.c: Likewise.
25233         * tests/test-netinet_in.c: Likewise.
25234         * tests/test-open.c: Likewise.
25235         * tests/test-printf-frexp.c: Likewise.
25236         * tests/test-printf-frexpl.c: Likewise.
25237         * tests/test-printf-posix.c: Likewise.
25238         * tests/test-printf-posix.h: Likewise.
25239         * tests/test-rbtree_list.c: Likewise.
25240         * tests/test-rbtree_oset.c: Likewise.
25241         * tests/test-rbtreehash_list.c: Likewise.
25242         * tests/test-read-file.c: Likewise.
25243         * tests/test-rijndael.c: Likewise.
25244         * tests/test-search.c: Likewise.
25245         * tests/test-signbit.c: Likewise.
25246         * tests/test-sleep.c: Likewise.
25247         * tests/test-snprintf-posix.c: Likewise.
25248         * tests/test-snprintf-posix.h: Likewise.
25249         * tests/test-snprintf.c: Likewise.
25250         * tests/test-sprintf-posix.c: Likewise.
25251         * tests/test-sprintf-posix.h: Likewise.
25252         * tests/test-stat-time.c: Likewise.
25253         * tests/test-stdbool.c: Likewise.
25254         * tests/test-stdint.c: Likewise.
25255         * tests/test-stdio.c: Likewise.
25256         * tests/test-stdlib.c: Likewise.
25257         * tests/test-stpncpy.c: Likewise.
25258         * tests/test-strcasestr.c: Likewise.
25259         * tests/test-striconv.c: Likewise.
25260         * tests/test-striconveh.c: Likewise.
25261         * tests/test-striconveha.c: Likewise.
25262         * tests/test-string.c: Likewise.
25263         * tests/test-sys_select.c: Likewise.
25264         * tests/test-sys_socket.c: Likewise.
25265         * tests/test-sys_stat.c: Likewise.
25266         * tests/test-sys_time.c: Likewise.
25267         * tests/test-sysexits.c: Likewise.
25268         * tests/test-time.c: Likewise.
25269         * tests/test-tls.c: Likewise.
25270         * tests/test-trunc.c: Likewise.
25271         * tests/test-truncf.c: Likewise.
25272         * tests/test-truncl.c: Likewise.
25273         * tests/test-unistd.c: Likewise.
25274         * tests/test-vasnprintf-posix.c: Likewise.
25275         * tests/test-vasnprintf-posix2.c: Likewise.
25276         * tests/test-vasnprintf.c: Likewise.
25277         * tests/test-vasprintf-posix.c: Likewise.
25278         * tests/test-vasprintf.c: Likewise.
25279         * tests/test-verify.c: Likewise.
25280         * tests/test-vfprintf-posix.c: Likewise.
25281         * tests/test-vprintf-posix.c: Likewise.
25282         * tests/test-vsnprintf-posix.c: Likewise.
25283         * tests/test-vsnprintf.c: Likewise.
25284         * tests/test-vsprintf-posix.c: Likewise.
25285         * tests/test-wchar.c: Likewise.
25286         * tests/test-wctype.c: Likewise.
25287         * tests/test-wcwidth.c: Likewise.
25288         * tests/test-xstrtol.c: Likewise.
25289         * tests/test-xvasprintf.c: Likewise.
25290         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
25291         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
25292         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
25293         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
25294         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
25295         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
25296         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
25297         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
25298         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
25299         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
25300         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
25301         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
25302         * tests/uniname/test-uninames.c: Likewise.
25303         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
25304         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
25305         * tests/unistdio/test-u16-printf1.h: Likewise.
25306         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
25307         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
25308         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
25309         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
25310         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
25311         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
25312         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
25313         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
25314         * tests/unistdio/test-u32-printf1.h: Likewise.
25315         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
25316         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
25317         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
25318         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
25319         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
25320         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
25321         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
25322         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
25323         * tests/unistdio/test-u8-printf1.h: Likewise.
25324         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
25325         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
25326         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
25327         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
25328         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
25329         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
25330         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
25331         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
25332         * tests/unistdio/test-ulc-printf1.h: Likewise.
25333         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
25334         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
25335         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
25336         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
25337         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
25338         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
25339         * tests/uniwidth/test-u16-strwidth.c: Likewise.
25340         * tests/uniwidth/test-u16-width.c: Likewise.
25341         * tests/uniwidth/test-u32-strwidth.c: Likewise.
25342         * tests/uniwidth/test-u32-width.c: Likewise.
25343         * tests/uniwidth/test-u8-strwidth.c: Likewise.
25344         * tests/uniwidth/test-u8-width.c: Likewise.
25345         * tests/uniwidth/test-uc_width.c: Likewise.
25346         * config/srclist-update: Likewise.
25347         (fixlicense): Update to GPLv3+.
25348
25349         Change copyright notice from LGPLv2.1+ to LGPLv3+.
25350         * tests/test-tsearch.c: Change copyright notice.
25351
25352         Change copyright notice from LGPLv2.0+ to LGPLv3+.
25353         * lib/c-strcaseeq.h: Change copyright notice.
25354         * lib/streq.h: Likewise.
25355         * lib/uniconv.h: Likewise.
25356         * lib/uniconv/u-conv-from-enc.h: Likewise.
25357         * lib/uniconv/u-conv-to-enc.h: Likewise.
25358         * lib/uniconv/u-strconv-from-enc.h: Likewise.
25359         * lib/uniconv/u-strconv-to-enc.h: Likewise.
25360         * lib/uniconv/u16-conv-from-enc.c: Likewise.
25361         * lib/uniconv/u16-conv-to-enc.c: Likewise.
25362         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
25363         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
25364         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
25365         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
25366         * lib/uniconv/u32-conv-from-enc.c: Likewise.
25367         * lib/uniconv/u32-conv-to-enc.c: Likewise.
25368         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
25369         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
25370         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
25371         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
25372         * lib/uniconv/u8-conv-from-enc.c: Likewise.
25373         * lib/uniconv/u8-conv-to-enc.c: Likewise.
25374         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
25375         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
25376         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
25377         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
25378         * lib/uniname.h: Likewise.
25379         * lib/uniname/uniname.c: Likewise.
25380         * lib/unistdio.h: Likewise.
25381         * lib/unistdio/u-asnprintf.h: Likewise.
25382         * lib/unistdio/u-asprintf.h: Likewise.
25383         * lib/unistdio/u-printf-args.c: Likewise.
25384         * lib/unistdio/u-printf-args.h: Likewise.
25385         * lib/unistdio/u-printf-parse.h: Likewise.
25386         * lib/unistdio/u-snprintf.h: Likewise.
25387         * lib/unistdio/u-sprintf.h: Likewise.
25388         * lib/unistdio/u-vasprintf.h: Likewise.
25389         * lib/unistdio/u-vsnprintf.h: Likewise.
25390         * lib/unistdio/u-vsprintf.h: Likewise.
25391         * lib/unistdio/u16-asnprintf.c: Likewise.
25392         * lib/unistdio/u16-asprintf.c: Likewise.
25393         * lib/unistdio/u16-printf-parse.c: Likewise.
25394         * lib/unistdio/u16-snprintf.c: Likewise.
25395         * lib/unistdio/u16-sprintf.c: Likewise.
25396         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
25397         * lib/unistdio/u16-u16-asprintf.c: Likewise.
25398         * lib/unistdio/u16-u16-snprintf.c: Likewise.
25399         * lib/unistdio/u16-u16-sprintf.c: Likewise.
25400         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
25401         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
25402         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
25403         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
25404         * lib/unistdio/u16-vasnprintf.c: Likewise.
25405         * lib/unistdio/u16-vasprintf.c: Likewise.
25406         * lib/unistdio/u16-vsnprintf.c: Likewise.
25407         * lib/unistdio/u16-vsprintf.c: Likewise.
25408         * lib/unistdio/u32-asnprintf.c: Likewise.
25409         * lib/unistdio/u32-asprintf.c: Likewise.
25410         * lib/unistdio/u32-printf-parse.c: Likewise.
25411         * lib/unistdio/u32-snprintf.c: Likewise.
25412         * lib/unistdio/u32-sprintf.c: Likewise.
25413         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
25414         * lib/unistdio/u32-u32-asprintf.c: Likewise.
25415         * lib/unistdio/u32-u32-snprintf.c: Likewise.
25416         * lib/unistdio/u32-u32-sprintf.c: Likewise.
25417         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
25418         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
25419         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
25420         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
25421         * lib/unistdio/u32-vasnprintf.c: Likewise.
25422         * lib/unistdio/u32-vasprintf.c: Likewise.
25423         * lib/unistdio/u32-vsnprintf.c: Likewise.
25424         * lib/unistdio/u32-vsprintf.c: Likewise.
25425         * lib/unistdio/u8-asnprintf.c: Likewise.
25426         * lib/unistdio/u8-asprintf.c: Likewise.
25427         * lib/unistdio/u8-printf-parse.c: Likewise.
25428         * lib/unistdio/u8-snprintf.c: Likewise.
25429         * lib/unistdio/u8-sprintf.c: Likewise.
25430         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
25431         * lib/unistdio/u8-u8-asprintf.c: Likewise.
25432         * lib/unistdio/u8-u8-snprintf.c: Likewise.
25433         * lib/unistdio/u8-u8-sprintf.c: Likewise.
25434         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
25435         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
25436         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
25437         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
25438         * lib/unistdio/u8-vasnprintf.c: Likewise.
25439         * lib/unistdio/u8-vasprintf.c: Likewise.
25440         * lib/unistdio/u8-vsnprintf.c: Likewise.
25441         * lib/unistdio/u8-vsprintf.c: Likewise.
25442         * lib/unistdio/ulc-asnprintf.c: Likewise.
25443         * lib/unistdio/ulc-asprintf.c: Likewise.
25444         * lib/unistdio/ulc-printf-parse.c: Likewise.
25445         * lib/unistdio/ulc-snprintf.c: Likewise.
25446         * lib/unistdio/ulc-sprintf.c: Likewise.
25447         * lib/unistdio/ulc-vasnprintf.c: Likewise.
25448         * lib/unistdio/ulc-vasprintf.c: Likewise.
25449         * lib/unistdio/ulc-vsnprintf.c: Likewise.
25450         * lib/unistdio/ulc-vsprintf.c: Likewise.
25451         * lib/unistr.h: Likewise.
25452         * lib/unistr/u-cpy-alloc.h: Likewise.
25453         * lib/unistr/u-cpy.h: Likewise.
25454         * lib/unistr/u-endswith.h: Likewise.
25455         * lib/unistr/u-move.h: Likewise.
25456         * lib/unistr/u-set.h: Likewise.
25457         * lib/unistr/u-startswith.h: Likewise.
25458         * lib/unistr/u-stpcpy.h: Likewise.
25459         * lib/unistr/u-stpncpy.h: Likewise.
25460         * lib/unistr/u-strcat.h: Likewise.
25461         * lib/unistr/u-strcpy.h: Likewise.
25462         * lib/unistr/u-strcspn.h: Likewise.
25463         * lib/unistr/u-strdup.h: Likewise.
25464         * lib/unistr/u-strlen.h: Likewise.
25465         * lib/unistr/u-strncat.h: Likewise.
25466         * lib/unistr/u-strncpy.h: Likewise.
25467         * lib/unistr/u-strnlen.h: Likewise.
25468         * lib/unistr/u-strpbrk.h: Likewise.
25469         * lib/unistr/u-strspn.h: Likewise.
25470         * lib/unistr/u-strstr.h: Likewise.
25471         * lib/unistr/u-strtok.h: Likewise.
25472         * lib/unistr/u16-check.c: Likewise.
25473         * lib/unistr/u16-chr.c: Likewise.
25474         * lib/unistr/u16-cmp.c: Likewise.
25475         * lib/unistr/u16-cpy-alloc.c: Likewise.
25476         * lib/unistr/u16-cpy.c: Likewise.
25477         * lib/unistr/u16-endswith.c: Likewise.
25478         * lib/unistr/u16-mblen.c: Likewise.
25479         * lib/unistr/u16-mbsnlen.c: Likewise.
25480         * lib/unistr/u16-mbtouc-aux.c: Likewise.
25481         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
25482         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
25483         * lib/unistr/u16-mbtouc.c: Likewise.
25484         * lib/unistr/u16-mbtoucr.c: Likewise.
25485         * lib/unistr/u16-move.c: Likewise.
25486         * lib/unistr/u16-next.c: Likewise.
25487         * lib/unistr/u16-prev.c: Likewise.
25488         * lib/unistr/u16-set.c: Likewise.
25489         * lib/unistr/u16-startswith.c: Likewise.
25490         * lib/unistr/u16-stpcpy.c: Likewise.
25491         * lib/unistr/u16-stpncpy.c: Likewise.
25492         * lib/unistr/u16-strcat.c: Likewise.
25493         * lib/unistr/u16-strchr.c: Likewise.
25494         * lib/unistr/u16-strcmp.c: Likewise.
25495         * lib/unistr/u16-strcpy.c: Likewise.
25496         * lib/unistr/u16-strcspn.c: Likewise.
25497         * lib/unistr/u16-strdup.c: Likewise.
25498         * lib/unistr/u16-strlen.c: Likewise.
25499         * lib/unistr/u16-strmblen.c: Likewise.
25500         * lib/unistr/u16-strmbtouc.c: Likewise.
25501         * lib/unistr/u16-strncat.c: Likewise.
25502         * lib/unistr/u16-strncmp.c: Likewise.
25503         * lib/unistr/u16-strncpy.c: Likewise.
25504         * lib/unistr/u16-strnlen.c: Likewise.
25505         * lib/unistr/u16-strpbrk.c: Likewise.
25506         * lib/unistr/u16-strrchr.c: Likewise.
25507         * lib/unistr/u16-strspn.c: Likewise.
25508         * lib/unistr/u16-strstr.c: Likewise.
25509         * lib/unistr/u16-strtok.c: Likewise.
25510         * lib/unistr/u16-to-u32.c: Likewise.
25511         * lib/unistr/u16-to-u8.c: Likewise.
25512         * lib/unistr/u16-uctomb-aux.c: Likewise.
25513         * lib/unistr/u16-uctomb.c: Likewise.
25514         * lib/unistr/u32-check.c: Likewise.
25515         * lib/unistr/u32-chr.c: Likewise.
25516         * lib/unistr/u32-cmp.c: Likewise.
25517         * lib/unistr/u32-cpy-alloc.c: Likewise.
25518         * lib/unistr/u32-cpy.c: Likewise.
25519         * lib/unistr/u32-endswith.c: Likewise.
25520         * lib/unistr/u32-mblen.c: Likewise.
25521         * lib/unistr/u32-mbsnlen.c: Likewise.
25522         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
25523         * lib/unistr/u32-mbtouc.c: Likewise.
25524         * lib/unistr/u32-mbtoucr.c: Likewise.
25525         * lib/unistr/u32-move.c: Likewise.
25526         * lib/unistr/u32-next.c: Likewise.
25527         * lib/unistr/u32-prev.c: Likewise.
25528         * lib/unistr/u32-set.c: Likewise.
25529         * lib/unistr/u32-startswith.c: Likewise.
25530         * lib/unistr/u32-stpcpy.c: Likewise.
25531         * lib/unistr/u32-stpncpy.c: Likewise.
25532         * lib/unistr/u32-strcat.c: Likewise.
25533         * lib/unistr/u32-strchr.c: Likewise.
25534         * lib/unistr/u32-strcmp.c: Likewise.
25535         * lib/unistr/u32-strcpy.c: Likewise.
25536         * lib/unistr/u32-strcspn.c: Likewise.
25537         * lib/unistr/u32-strdup.c: Likewise.
25538         * lib/unistr/u32-strlen.c: Likewise.
25539         * lib/unistr/u32-strmblen.c: Likewise.
25540         * lib/unistr/u32-strmbtouc.c: Likewise.
25541         * lib/unistr/u32-strncat.c: Likewise.
25542         * lib/unistr/u32-strncmp.c: Likewise.
25543         * lib/unistr/u32-strncpy.c: Likewise.
25544         * lib/unistr/u32-strnlen.c: Likewise.
25545         * lib/unistr/u32-strpbrk.c: Likewise.
25546         * lib/unistr/u32-strrchr.c: Likewise.
25547         * lib/unistr/u32-strspn.c: Likewise.
25548         * lib/unistr/u32-strstr.c: Likewise.
25549         * lib/unistr/u32-strtok.c: Likewise.
25550         * lib/unistr/u32-to-u16.c: Likewise.
25551         * lib/unistr/u32-to-u8.c: Likewise.
25552         * lib/unistr/u32-uctomb.c: Likewise.
25553         * lib/unistr/u8-check.c: Likewise.
25554         * lib/unistr/u8-chr.c: Likewise.
25555         * lib/unistr/u8-cmp.c: Likewise.
25556         * lib/unistr/u8-cpy-alloc.c: Likewise.
25557         * lib/unistr/u8-cpy.c: Likewise.
25558         * lib/unistr/u8-endswith.c: Likewise.
25559         * lib/unistr/u8-mblen.c: Likewise.
25560         * lib/unistr/u8-mbsnlen.c: Likewise.
25561         * lib/unistr/u8-mbtouc-aux.c: Likewise.
25562         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
25563         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
25564         * lib/unistr/u8-mbtouc.c: Likewise.
25565         * lib/unistr/u8-mbtoucr.c: Likewise.
25566         * lib/unistr/u8-move.c: Likewise.
25567         * lib/unistr/u8-next.c: Likewise.
25568         * lib/unistr/u8-prev.c: Likewise.
25569         * lib/unistr/u8-set.c: Likewise.
25570         * lib/unistr/u8-startswith.c: Likewise.
25571         * lib/unistr/u8-stpcpy.c: Likewise.
25572         * lib/unistr/u8-stpncpy.c: Likewise.
25573         * lib/unistr/u8-strcat.c: Likewise.
25574         * lib/unistr/u8-strchr.c: Likewise.
25575         * lib/unistr/u8-strcmp.c: Likewise.
25576         * lib/unistr/u8-strcpy.c: Likewise.
25577         * lib/unistr/u8-strcspn.c: Likewise.
25578         * lib/unistr/u8-strdup.c: Likewise.
25579         * lib/unistr/u8-strlen.c: Likewise.
25580         * lib/unistr/u8-strmblen.c: Likewise.
25581         * lib/unistr/u8-strmbtouc.c: Likewise.
25582         * lib/unistr/u8-strncat.c: Likewise.
25583         * lib/unistr/u8-strncmp.c: Likewise.
25584         * lib/unistr/u8-strncpy.c: Likewise.
25585         * lib/unistr/u8-strnlen.c: Likewise.
25586         * lib/unistr/u8-strpbrk.c: Likewise.
25587         * lib/unistr/u8-strrchr.c: Likewise.
25588         * lib/unistr/u8-strspn.c: Likewise.
25589         * lib/unistr/u8-strstr.c: Likewise.
25590         * lib/unistr/u8-strtok.c: Likewise.
25591         * lib/unistr/u8-to-u16.c: Likewise.
25592         * lib/unistr/u8-to-u32.c: Likewise.
25593         * lib/unistr/u8-uctomb-aux.c: Likewise.
25594         * lib/unistr/u8-uctomb.c: Likewise.
25595         * lib/unitypes.h: Likewise.
25596         * lib/uniwidth.h: Likewise.
25597         * lib/uniwidth/cjk.h: Likewise.
25598         * lib/uniwidth/u16-strwidth.c: Likewise.
25599         * lib/uniwidth/u16-width.c: Likewise.
25600         * lib/uniwidth/u32-strwidth.c: Likewise.
25601         * lib/uniwidth/u32-width.c: Likewise.
25602         * lib/uniwidth/u8-strwidth.c: Likewise.
25603         * lib/uniwidth/u8-width.c: Likewise.
25604         * lib/uniwidth/width.c: Likewise.
25605
25606 2007-10-07  Bruno Haible  <bruno@clisp.org>
25607
25608         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
25609         The file is still under LGPL (see modules/inttypes).
25610
25611 2007-10-06  Bruno Haible  <bruno@clisp.org>
25612
25613         * modules/trunc (Dependencies): Add 'extensions'.
25614         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
25615         Reported by Ben Pfaff <blp@gnu.org>.
25616
25617 2007-10-06  Bruno Haible  <bruno@clisp.org>
25618
25619         * modules/freopen-tests: New file.
25620         * tests/test-freopen.c: New file.
25621
25622         * modules/fopen-tests: New file.
25623         * tests/test-fopen.c: New file.
25624
25625         * modules/fopen: New file.
25626         * lib/fopen.c: New file.
25627         * m4/fopen.m4: New file.
25628         * modules/freopen: New file.
25629         * lib/freopen.c: New file.
25630         * m4/freopen.m4: New file.
25631         * lib/stdio.in.h (fopen, freopen): New declarations.
25632         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
25633         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
25634         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
25635         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
25636         * doc/functions/fopen.texi: Mention the 'fopen' module.
25637         * doc/functions/freopen.texi: Mention the 'freopen' module.
25638
25639 2007-10-06  Bruno Haible  <bruno@clisp.org>
25640
25641         * modules/open-tests: New file.
25642         * tests/test-open.c: New file.
25643
25644         * modules/open: New file.
25645         * lib/open.c: New file.
25646         * m4/open.m4: New file.
25647         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
25648         lib/open.c does.
25649         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
25650         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
25651         macros.
25652         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
25653         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
25654         REPLACE_OPEN.
25655         * doc/functions/open.texi: Mention the 'open' module.
25656
25657 2007-10-04  Bruno Haible  <bruno@clisp.org>
25658
25659         * modules/ceill-tests: New file.
25660         * tests/test-ceill.c: New file.
25661
25662         * modules/ceill: New file.
25663         * lib/ceill.c: Replace entire file.
25664         * m4/ceill.m4: New file.
25665         * lib/math.in.h (ceill): Replace declaration.
25666         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
25667         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
25668         * doc/functions/ceill.texi: Mention the 'ceill' module.
25669         * modules/mathl (Files): Remove lib/ceill.c.
25670         (Depends-on): Add ceill.
25671
25672 2007-10-04  Bruno Haible  <bruno@clisp.org>
25673
25674         * modules/ceilf-tests: New file.
25675         * tests/test-ceilf.c: New file.
25676
25677         * modules/ceilf: New file.
25678         * lib/ceil.c: New file.
25679         * lib/ceilf.c: New file.
25680         * m4/ceilf.m4: New file.
25681         * lib/math.in.h (ceilf): New declaration.
25682         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
25683         HAVE_DECL_CEILF.
25684         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
25685         HAVE_DECL_CEILF.
25686         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
25687
25688 2007-10-04  Bruno Haible  <bruno@clisp.org>
25689
25690         * modules/floorl-tests: New file.
25691         * tests/test-floorl.c: New file.
25692
25693         * modules/floorl: New file.
25694         * lib/floorl.c: Replace entire file.
25695         * m4/floorl.m4: New file.
25696         * lib/math.in.h (floorl): Replace declaration.
25697         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
25698         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
25699         * doc/functions/floorl.texi: Mention the 'floorl' module.
25700         * modules/mathl (Files): Remove lib/floorl.c.
25701         (Depends-on): Add floorl.
25702
25703 2007-10-04  Bruno Haible  <bruno@clisp.org>
25704
25705         * modules/floorf-tests: New file.
25706         * tests/test-floorf.c: New file.
25707
25708         * modules/floorf: New file.
25709         * lib/floor.c: New file.
25710         * lib/floorf.c: New file.
25711         * m4/floorf.m4: New file.
25712         * lib/math.in.h (floorf): New declaration.
25713         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
25714         HAVE_DECL_FLOORF.
25715         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
25716         HAVE_DECL_FLOORF.
25717         * doc/functions/floorf.texi: Mention the 'floorf' module.
25718
25719 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
25720             Bruno Haible  <bruno@clisp.org>
25721
25722         Advertise for the Git server instead of the CVS server.
25723         * doc/gnulib-intro.texi (Steady Development): Mention the Git
25724         repository instead of the CVS one.
25725         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
25726         about all VCS systems generically.
25727         * doc/gnulib.texi (Introduction): Capitalize `Git'.
25728
25729 2007-10-04  Bruno Haible  <bruno@clisp.org>
25730
25731         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
25732         means.
25733         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
25734
25735 2007-10-04  Bruno Haible  <bruno@clisp.org>
25736
25737         * modules/truncl-tests: New file.
25738         * tests/test-truncl.c: New file.
25739
25740         * modules/truncl: New file.
25741         * lib/truncl.c: New file.
25742         * m4/truncl.m4: New file.
25743         * lib/math.in.h (truncl): New declaration.
25744         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
25745         HAVE_DECL_TRUNCL.
25746         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
25747         HAVE_DECL_TRUNCL.
25748         * doc/functions/truncl.texi: Mention the 'truncl' module.
25749
25750 2007-10-04  Bruno Haible  <bruno@clisp.org>
25751
25752         * modules/truncf-tests: New file.
25753         * tests/test-truncf.c: New file.
25754
25755         * modules/truncf: New file.
25756         * lib/trunc.c: Make paramerizable through USE_* macros.
25757         * lib/truncf.c: New file.
25758         * m4/truncf.m4: New file.
25759         * lib/math.in.h (truncf): New declaration.
25760         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
25761         HAVE_DECL_TRUNCF.
25762         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
25763         HAVE_DECL_TRUNCF.
25764         * doc/functions/truncf.texi: Mention the 'truncf' module.
25765
25766 2007-10-03  Bruno Haible  <bruno@clisp.org>
25767
25768         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
25769         augmentation also for tests modules.
25770         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
25771         * modules/atexit-tests (Makefile.am): Likewise.
25772         * modules/binary-io-tests (Makefile.am): Likewise.
25773         * modules/c-strcase-tests (Makefile.am): Likewise.
25774         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
25775         * modules/canonicalize-tests (Makefile.am): Likewise.
25776         * modules/closein-tests (Makefile.am): Likewise.
25777         * modules/fprintf-posix-tests (Makefile.am): Likewise.
25778         * modules/freadahead-tests (Makefile.am): Likewise.
25779         * modules/fseek-tests (Makefile.am): Likewise.
25780         * modules/fseeko-tests (Makefile.am): Likewise.
25781         * modules/ftell-tests (Makefile.am): Likewise.
25782         * modules/ftello-tests (Makefile.am): Likewise.
25783         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
25784         * modules/isnanl-tests (Makefile.am): Likewise.
25785         * modules/lseek-tests (Makefile.am): Likewise.
25786         * modules/mbscasecmp-tests (Makefile.am): Likewise.
25787         * modules/mbscasestr-tests (Makefile.am): Likewise.
25788         * modules/mbschr-tests (Makefile.am): Likewise.
25789         * modules/mbscspn-tests (Makefile.am): Likewise.
25790         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
25791         * modules/mbspbrk-tests (Makefile.am): Likewise.
25792         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
25793         * modules/mbsrchr-tests (Makefile.am): Likewise.
25794         * modules/mbsspn-tests (Makefile.am): Likewise.
25795         * modules/mbsstr-tests (Makefile.am): Likewise.
25796         * modules/printf-posix-tests (Makefile.am): Likewise.
25797         * modules/snprintf-posix-tests (Makefile.am): Likewise.
25798         * modules/sprintf-posix-tests (Makefile.am): Likewise.
25799         * modules/tsearch-tests (Makefile.am): Likewise.
25800         * modules/uniname/uniname-tests (Makefile.am): Likewise.
25801         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
25802         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
25803         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
25804         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
25805         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
25806         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
25807         * modules/vprintf-posix-tests (Makefile.am): Likewise.
25808         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
25809         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
25810         * modules/xstrtoimax-tests (Makefile.am): Likewise.
25811         * modules/xstrtol-tests (Makefile.am): Likewise.
25812         * modules/xstrtoumax-tests (Makefile.am): Likewise.
25813         * modules/yesno-tests (Makefile.am): Likewise.
25814
25815 2007-10-03  Bruno Haible  <bruno@clisp.org>
25816
25817         * modules/trunc-tests: New file.
25818         * tests/test-trunc.c: New file.
25819
25820         * modules/trunc: New file.
25821         * lib/trunc.c: New file.
25822         * m4/trunc.m4: New file.
25823         * lib/math.in.h (trunc): New declaration.
25824         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
25825         HAVE_DECL_TRUNC.
25826         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
25827         HAVE_DECL_TRUNC.
25828         * doc/functions/trunc.texi: Mention the 'trunc' module.
25829
25830 2007-10-03  Bruno Haible  <bruno@clisp.org>
25831
25832         * tests/test-fpending.c: New file, mostly copied
25833         from coreutils/lib/t-fpending.c.
25834         * modules/fpending-tests: New file.
25835
25836 2007-10-03  Bruno Haible  <bruno@clisp.org>
25837
25838         Port the stdio extensions to QNX (untested).
25839         * lib/fseterr.c (fseterr): Add support for QNX.
25840         * lib/fbufmode.c (fbufmode): Likewise.
25841         * lib/freadable.c (freadable): Likewise.
25842         * lib/fwritable.c (fwritable): Likewise.
25843         * lib/freading.c (freading): Likewise.
25844         * lib/fwriting.c (fwriting): Likewise.
25845         * lib/freadahead.c (freadahed): Likewise.
25846         * lib/fpurge.c (fpurge): Likewise.
25847         * lib/fseeko.c (rpl_fseeko): Likewise.
25848
25849 2007-10-03  Bruno Haible  <bruno@clisp.org>
25850             Jim Meyering  <jim@meyering.net>
25851             Eric Blake  <ebb9@byu.net>
25852
25853         * doc/relocatable.texi: Use @command instead of @program.
25854
25855 2007-10-02  Jim Meyering  <jim@meyering.net>
25856
25857         Perform one more "_.h" -> ".in.h" substitution.
25858         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
25859         instead of unistd_.h here, too.
25860
25861 2007-10-01  Bruno Haible  <bruno@clisp.org>
25862
25863         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
25864         Needed for the alloca-opt module.
25865
25866 2007-09-30  Bruno Haible  <bruno@clisp.org>
25867
25868         * lib/alloca.in.h: Renamed from lib/alloca_.h.
25869         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
25870         alloca_.h.
25871         * lib/argz.in.h: Renamed from lib/argz_.h.
25872         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
25873         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
25874         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
25875         byteswap_.h.
25876         * lib/dirent.in.h: Renamed from lib/dirent_.h.
25877         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
25878         dirent_.h.
25879         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
25880         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
25881         fcntl_.h.
25882         * lib/float.in.h: Renamed from lib/float_.h.
25883         * modules/float (Files, Makefile.am): Use float.in.h instead of
25884         float_.h.
25885         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
25886         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
25887         fnmatch_.h.
25888         * lib/getopt.in.h: Renamed from lib/getopt_.h.
25889         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
25890         getopt_.h.
25891         * lib/glob.in.h: Renamed from lib/glob_.h.
25892         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
25893         * lib/iconv.in.h: Renamed from lib/iconv_.h.
25894         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
25895         iconv_.h.
25896         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
25897         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
25898         inttypes_.h.
25899         * lib/locale.in.h: Renamed from lib/locale_.h.
25900         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
25901         locale_.h.
25902         * lib/math.in.h: Renamed from lib/math_.h.
25903         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
25904         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
25905         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
25906         of netinet_in_.h. Add dependency.
25907         * lib/poll.in.h: Renamed from lib/poll_.h.
25908         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
25909         * lib/search.in.h: Renamed from lib/search_.h.
25910         * modules/search (Files, Makefile.am): Use search.in.h instead of
25911         search_.h.
25912         * lib/signal.in.h: Renamed from lib/signal_.h.
25913         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
25914         _signal.h.
25915         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
25916         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
25917         stdbool_.h.
25918         * lib/stdint.in.h: Renamed from lib/stdint_.h.
25919         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
25920         stdint_.h.
25921         * lib/stdio.in.h: Renamed from lib/stdio_.h.
25922         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
25923         stdio_.h.
25924         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
25925         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
25926         stdlib_.h.
25927         * lib/string.in.h: Renamed from lib/string_.h.
25928         * modules/string (Files, Makefile.am): Use string.in.h instead of
25929         string_.h.
25930         * doc/gnulib-tool.texi (Initial import): Update.
25931         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
25932         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
25933         of sys_select_.h. Add dependency.
25934         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
25935         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
25936         of sys_socket_.h.
25937         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
25938         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
25939         sys_stat_.h.
25940         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
25941         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
25942         sys_time_.h.
25943         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
25944         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
25945         sysexits_.h.
25946         * lib/time.in.h: Renamed from lib/time_.h.
25947         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
25948         * lib/unistd.in.h: Renamed from lib/unistd_.h.
25949         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
25950         unistd_.h.
25951         * lib/wchar.in.h: Renamed from lib/wchar_.h.
25952         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
25953         wchar_.h.
25954         * lib/wctype.in.h: Renamed from lib/wctype_.h.
25955         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
25956         wctype_.h.
25957         * build-aux/bootstrap (slurp): Update.
25958         * lib/.cppi-disable: Update.
25959
25960 2007-09-30  Bruno Haible  <bruno@clisp.org>
25961
25962         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
25963         Needed on BeOS.
25964
25965 2007-09-30  Bruno Haible  <bruno@clisp.org>
25966
25967         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
25968
25969 2007-09-29  Bruno Haible  <bruno@clisp.org>
25970
25971         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
25972
25973 2007-09-29  Bruno Haible  <bruno@clisp.org>
25974
25975         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
25976         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
25977         * build-aux/install-reloc: Compile also areadlink.c.
25978         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
25979
25980 2007-09-29  Bruno Haible  <bruno@clisp.org>
25981
25982         * gnulib-tool (func_emit_initmacro_done): Indentation.
25983
25984 2007-09-29  Bruno Haible  <bruno@clisp.org>
25985
25986         * README: Add CVS checkout update instructions.
25987         Info from Bob Proulx <bob@proulx.com>.
25988
25989 2007-09-28  Eric Blake  <ebb9@byu.net>
25990
25991         Provide move-if-change.
25992         * build-aux/move-if-change: New file, based on best practice
25993         rather than any canonical upstream location.
25994
25995 2007-09-28  Jim Meyering  <jim@meyering.net>
25996
25997         Fix canonicalize loop-detection corner case.
25998         Do not attempt to stat the symlink values stored via seen_triple.
25999         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
26000         on linux-2.6.18, (but not 2.6.22).
26001         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
26002         triple_compare.  The former compares dev,ino,filename, while the latter
26003         would actually stat dirname(filename) when dev and ino were equal.
26004         * lib/hash-triple.c: Install <string.h>.
26005         (STREQ): Define.
26006         (triple_compare_ino_str): New function.
26007         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
26008
26009 2007-09-28  Eric Blake  <ebb9@byu.net>
26010
26011         Enforce that AC_REPLACE_FUNCS files exist.
26012         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
26013         override check for typos.
26014
26015         Fix test-closein on Solaris 10.
26016         * tests/test-closein.c (main): Don't assume stdin can be inherited
26017         closed on all systems.
26018         * tests/test-closein.sh: Likewise.
26019         Reported by Piotr Tarnowski.
26020
26021 2007-09-28  Jim Meyering  <jim@meyering.net>
26022
26023         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
26024
26025 2007-09-27  Jim Meyering  <jim@meyering.net>
26026
26027         canonicalize: Avoid a false-positive cycle failure.
26028         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
26029         Sort.  Remove cycle-check.
26030         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
26031         not cycle-check.h.
26032         (seen_triple): New function.
26033         (canonicalize_filename_mode): Use it instead of cycle-check.
26034         * tests/test-canonicalize.c: Add a test for this bug.
26035         * tests/test-canonicalize.sh: Set up and run the test.
26036
26037         New module, file-set, from coreutils.
26038         * modules/file-set: Define it.
26039         * lib/file-set.c, lib/file-set.h: Implement.
26040
26041         New module, hash-triple, from coreutils.
26042         * modules/hash-triple: Define it.
26043         * lib/hash-triple.c, lib/hash-triple.h: Implement.
26044
26045 2007-09-25  Eric Blake  <ebb9@byu.net>
26046
26047         Fix strerror on Interix.
26048         * lib/string_.h (strerror): Declare replacement.
26049         * doc/functions/strerror.texi (strerror): Document the Interix
26050         shortcoming.
26051         * modules/string (Makefile.am): Support new hooks.
26052         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
26053         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
26054         gl_FUNC_STRERROR_SEPARATE.
26055         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
26056         * lib/strerror.c (rpl_strerror): Provide replacement.
26057         * modules/strerror (Depends-on): Add string.
26058         (configure.ac): Detect use of module.
26059         * tests/test-strerror.c: New file.
26060         * modules/strerror-tests: New test module.
26061         * modules/argp (Depends-on): Add strerror.
26062         * modules/error (Depends-on): Likewise.
26063         Reported by Martin Koeppe.
26064
26065 2007-09-24  Bruno Haible  <bruno@clisp.org>
26066
26067         * README: Update git instructions.
26068
26069 2007-09-24  Eric Blake  <ebb9@byu.net>
26070
26071         Revert fpending breakage from 2007-09-08.
26072         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
26073         __fpending.c.
26074
26075 2007-09-24  Jim Meyering  <jim@meyering.net>
26076
26077         filenamecat.c: Add a test.
26078         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
26079         showing how the function works when DIR is the empty string.
26080
26081 2007-09-21  Simon Josefsson  <simon@josefsson.org>
26082
26083         * tests/test-canonicalize.sh: Turn on executable bit.
26084
26085 2007-09-19  Eric Blake  <ebb9@byu.net>
26086
26087         * README: Update CVS instructions.
26088
26089 2007-09-18  Bruno Haible  <bruno@clisp.org>
26090
26091         * modules/areadlink: New file.
26092         * lib/areadlink.h (areadlink): New declaration.
26093         * lib/areadlink.c: New file, based on lib/xreadlink.c.
26094
26095 2007-09-17  Jim Meyering  <jim@meyering.net>
26096
26097         * lib/savewd.c (ESTALE) [!defined]: Define.
26098         Reported to be required on Interix by Martin Koeppe.
26099
26100 2007-09-17  Bruno Haible  <bruno@clisp.org>
26101
26102         * gnulib-tool (func_version): Use $version.
26103
26104 2007-09-16  Bruno Haible  <bruno@clisp.org>
26105
26106         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
26107         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
26108         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
26109         Reported by Greg Schafer <gschafer@zip.com.au>.
26110
26111 2007-09-15  Bruno Haible  <bruno@clisp.org>
26112
26113         * gnulib-tool (sed): Try a little harder to make bash understand the
26114         alias.
26115         Reported by Bruce Korb <bruce.korb@gmail.com>.
26116
26117 2007-09-13  Eric Blake  <ebb9@byu.net>
26118
26119         * ChangeLog: Remove conflict markers.
26120
26121 2007-09-13  Simon Josefsson  <simon@josefsson.org>
26122
26123         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
26124         Reported by Bruno Haible <bruno@clisp.org>.
26125
26126 2007-09-12  Bruno Haible  <bruno@clisp.org>
26127
26128         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
26129         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
26130         is not defined.
26131
26132 2007-09-12  Eric Blake  <ebb9@byu.net>
26133
26134         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
26135         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
26136         Autoconf definition.
26137         * modules/euidaccess (Depends-on): Add extensions, for
26138         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
26139         * modules/fnmatch (Depends-on): Likewise.
26140         * modules/getaddrinfo (Depends-on): Likewise.
26141         * modules/getdelim (Depends-on): Likewise.
26142         * modules/getline (Depends-on): Likewise.
26143         * modules/getsubopt (Depends-on): Likewise.
26144         * modules/gettext (Depends-on): Likewise.
26145         * modules/group-member (Depends-on): Likewise.
26146         * modules/mbchar (Depends-on): Likewise.
26147         * modules/memmem (Depends-on): Likewise.
26148         * modules/mempcpy (Depends-on): Likewise.
26149         * modules/memrchr (Depends-on): Likewise.
26150         * modules/pagealign_alloc (Depends-on): Likewise.
26151         * modules/readutmp (Depends-on): Likewise.
26152         * modules/stpcpy (Depends-on): Likewise.
26153         * modules/stpncpy (Depends-on): Likewise.
26154         * modules/strchrnul (Depends-on): Likewise.
26155         * modules/strndup (Depends-on): Likewise.
26156         * modules/strsep (Depends-on): Likewise.
26157         * modules/strverscmp (Depends-on): Likewise.
26158         * modules/vasprintf (Depends-on): Likewise.
26159         * modules/wcwidth (Depends-on): Likewise.
26160         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
26161         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
26162         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
26163         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
26164         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26165         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26166         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
26167         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
26168         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
26169         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
26170         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26171         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
26172         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
26173         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
26174         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
26175         * m4/readutmp.m4 (gl_READUTMP): Likewise.
26176         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
26177         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
26178         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26179         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
26180         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
26181         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
26182         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
26183         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
26184         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
26185         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26186         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
26187         so that lock.m4 can be used in gettext without extensions module.
26188
26189 2007-09-11  Bruno Haible  <bruno@clisp.org>
26190
26191         * m4/isc-posix.m4: Remove file.
26192         Suggested by Eric Blake.
26193
26194 2007-09-11  Eric Blake  <ebb9@byu.net>
26195
26196         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
26197
26198 2007-09-10  Bruno Haible  <bruno@clisp.org>
26199
26200         * posix-modules: Fix typo in error message.
26201         Reported by Matt <mkraai@beckman.com>.
26202
26203 2007-09-09  Bruno Haible  <bruno@clisp.org>
26204
26205         * doc/functions/getdelim.texi: Update list of platforms lacking the
26206         function.
26207         * doc/functions/getline.texi: Likewise.
26208
26209 2007-09-09  Jim Meyering  <jim@meyering.net>
26210
26211         * lib/hash.c (hash_initialize): Detect calloc failure.
26212         Reported by Bruno Haible.
26213
26214 2007-09-09  Bruno Haible  <bruno@clisp.org>
26215
26216         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
26217         malloc or realloc fails.
26218
26219 2007-09-09  Bruno Haible  <bruno@clisp.org>
26220
26221         * modules/getcwd (Depends-on): Add malloc-posix.
26222         * modules/glob (Depends-on): Likewise.
26223         * modules/putenv (Depends-on): Likewise.
26224         * modules/strdup (Depends-on): Likewise.
26225         * modules/getdelim (Depends-on): Add realloc-posix.
26226         * modules/read-file (Depends-on): Likewise.
26227
26228 2007-09-09  Bruno Haible  <bruno@clisp.org>
26229
26230         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
26231         (gl_FUNC_MALLOC_POSIX): Require it.
26232         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
26233         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
26234         * modules/realloc (Files): Add m4/malloc.m4.
26235         * modules/calloc (Files): Likewise.
26236
26237 2007-09-09  Bruno Haible  <bruno@clisp.org>
26238
26239         * modules/malloc-posix: New file.
26240         * modules/malloc (Depends-on): Add malloc-posix.
26241         * lib/malloc.c: Include errno.h.
26242         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
26243         and a POSIX-compatible malloc into a single function. Set ENOMEM
26244         when returning NULL.
26245         * m4/malloc.m4: New file.
26246         * doc/functions/malloc.texi: Mention the malloc-posix module.
26247         * lib/stdlib_.h (malloc): New declaration.
26248         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
26249         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
26250         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
26251         and HAVE_MALLOC_POSIX.
26252
26253 2007-09-09  Bruno Haible  <bruno@clisp.org>
26254
26255         * modules/realloc-posix: New file.
26256         * modules/realloc (Depends-on): Add realloc-posix.
26257         * lib/realloc.c: Include errno.h.
26258         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
26259         and a POSIX-compatible realloc into a single function. Set ENOMEM
26260         when returning NULL.
26261         * m4/realloc.m4: New file.
26262         * doc/functions/realloc.texi: Mention the realloc-posix module.
26263         * lib/stdlib_.h (realloc): New declaration.
26264         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
26265         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
26266         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
26267         and HAVE_REALLOC_POSIX.
26268
26269 2007-09-09  Bruno Haible  <bruno@clisp.org>
26270
26271         * modules/calloc-posix: New file.
26272         * modules/calloc (Depends-on): Add calloc-posix.
26273         * lib/calloc.c: Include errno.h.
26274         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
26275         and a POSIX-compatible calloc into a single function. Set ENOMEM
26276         when returning NULL.
26277         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
26278         * doc/functions/calloc.texi: Mention the calloc-posix module.
26279         * lib/stdlib_.h (calloc): New declaration.
26280         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
26281         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
26282         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
26283         and HAVE_CALLOC_POSIX.
26284
26285 2007-09-09  Bruno Haible  <bruno@clisp.org>
26286
26287         Allow for modules to show an arbitrary notice.
26288         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
26289         * gnulib-tool: New option --extract-notice.
26290         (func_usage): Document it.
26291         (sed_extract_prog): Update.
26292         (func_get_notice): New function.
26293         (func_modules_notice): New function.
26294         (func_import, func_create_testdir): Invoke it.
26295         Suggested by Jim Meyering.
26296
26297 2007-09-09  Bruno Haible  <bruno@clisp.org>
26298
26299         * gnulib-tool: New options --verbose, --quiet.
26300         (func_usage): Document them.
26301         (verbose): New variable.
26302         (func_execute_command): New function.
26303         (func_import): Don't show the module list and the file list if
26304         $verbose < 0.
26305         (func_create_testdir): Likewise. Use func_execute_command.
26306         (func_create_megatestdir): Use func_execute_command.
26307
26308 2007-09-08  Bruno Haible  <bruno@clisp.org>
26309
26310         * gnulib-tool (func_import): Prefer rsync over wget when available,
26311         for fetching the PO files.
26312
26313 2007-09-08  Bruno Haible  <bruno@clisp.org>
26314
26315         * posix-modules: New file. Portions copied from gnulib-tool.
26316         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
26317
26318 2007-09-08  Jim Meyering  <jim@meyering.net>
26319
26320         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
26321         * lib/fpending.h: Rename from __fpending.h.
26322         * lib/fpending.c: Rename from __fpending.c.
26323         Include "fpending.h", not "__fpending.h".
26324         * lib/__fpending.h, lib/__fpending.c: Remove files.
26325         * modules/fpending (Files): Reflect new file names.
26326         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
26327
26328 2007-09-08  Bruno Haible  <bruno@clisp.org>
26329
26330         * m4/inttypes-h.m4: Remove stub file.
26331
26332 2007-09-07  Simon Josefsson  <simon@josefsson.org>
26333
26334         * doc/headers/stdint.texi: Discuss #include_next issue.
26335
26336 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
26337
26338         * build-aux/bootstrap: Remove obsolete comment about wget --help.
26339
26340 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26341
26342         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
26343         in variable name.
26344
26345 2007-09-03  Jim Meyering  <jim@meyering.net>
26346
26347         New module: git-version-gen.
26348         * modules/git-version-gen: New file.
26349
26350         Import changes from coreutils for bootstrap script.
26351
26352         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
26353
26354         bootstrap: uses rsync to download the .po files
26355         * build-aux/bootstrap (po_download_command_format): New global.
26356         (download_po_files): Use rsync.
26357         (update_po_files): Don't remove .po files after download,
26358         so future rsync runs can take advantage of the copies.
26359
26360         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
26361
26362         Solve the unnecessary-.po-file-regeneration problem once and for all.
26363         * build-aux/bootstrap (download_po_files): New function, renamed from
26364         get_translations.  Now, downloads, but doesn't update LINGUAS.
26365         (update_po_files): New function.
26366
26367         bootstrap: Ignore more.
26368         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
26369         uniwidth to e.g., lib/.gitignore.
26370         (slurp): Handle the sys_stat_.h -> sys mapping, too.
26371
26372         * build-aux/bootstrap: New setting: vc_ignore.
26373         (insert_sorted_if_absent): Create $file if absent.
26374         Adapt to new, possibly empty, list: $vc_ignore.
26375
26376         bootstrap: generate more ignorable names
26377         * build-aux/bootstrap (slurp): When generating ignorable names,
26378         also map .sin to .sed, .gperf to .c, and .y to .c.
26379
26380 2007-09-03  Jim Meyering  <jim@meyering.net>
26381
26382         * build-aux/git-version-gen: New file, from coreutils.  For details, see
26383         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
26384
26385 2007-09-02  Bruno Haible  <bruno@clisp.org>
26386
26387         Fix mis-recognition of 'mcs' on QNX 6.
26388         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
26389         output contains the string "Mono".
26390         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
26391         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
26392
26393 2007-09-01  Bruno Haible  <bruno@clisp.org>
26394
26395         Fix collision between uniwidth/* and linebreak modules.
26396         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
26397         u32_width): Remove declarations.
26398         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
26399         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
26400         streq3, streq2, streq1, streq0): Remove functions.
26401         (STREQ): Remove macro.
26402         (is_cjk_encoding): Remove function.
26403         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
26404         (uc_width, u8_width, u16_width, u32_width): Remove functions.
26405         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
26406         * NEWS: Document the change.
26407
26408 2007-09-01  Bruno Haible  <bruno@clisp.org>
26409
26410         * lib/streq.h: Add double-inclusion guard.
26411
26412 2007-09-01  Karl Berry  <karl@gnu.org>
26413
26414         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
26415
26416 2007-08-28  Jim Meyering  <jim@meyering.net>
26417
26418         Rename mreadlink_with_size to areadlink_with_size.
26419         * NEWS: Document the change.
26420         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
26421         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
26422         * lib/mreadlink.h: Rename this to...
26423         * lib/areadlink.h: ...this.
26424         * modules/mreadlink-with-size: Rename this to...
26425         * modules/areadlink-with-size: ...this.
26426         * lib/canonicalize.c: Reflect the renaming.
26427         * modules/canonicalize: Likewise.
26428
26429 2007-08-26  Bruno Haible  <bruno@clisp.org>
26430
26431         * gnulib-tool (func_import): When deciding which files to remove,
26432         consider also dangling symbolic links.
26433         Reported by Eric Blake.
26434
26435 2007-08-26  Bruno Haible  <bruno@clisp.org>
26436
26437         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
26438
26439 2007-08-23  Simon Josefsson  <simon@josefsson.org>
26440
26441         * lib/readline.c: Don't include getline.h, the prototype is now
26442         found in stdio.h.
26443
26444 2007-08-23  Jim Meyering  <jim@meyering.net>
26445
26446         Getdelim touchup.
26447         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
26448         around the funlockfile call, since funlockfile never sets errno.
26449         Don't set errno upon failed realloc.
26450
26451 2007-08-22  Eric Blake  <ebb9@byu.net>
26452
26453         Getline touchups.
26454         * lib/getdelim.c (getdelim): Revert regression that required *n to
26455         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
26456         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
26457         getdelim, rather than whether implementation is missing.
26458         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
26459         * lib/stdio_.h (getline): Also declare if replacement is
26460         required.
26461         * doc/functions/getdelim.texi: New file.
26462         * doc/functions/getline.texi: Likewise.
26463         * doc/gnulib.texi (Function Substitutes): Add new files.
26464         Reported by Bruno Haible.
26465
26466 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
26467
26468         * users.txt: Add Guile.
26469
26470 2007-08-22  Eric Blake  <ebb9@byu.net>
26471
26472         * tests/test-getdelim.c (main): Use remove, not unlink.
26473         * tests/test-getline.c (main): Likewise.
26474
26475         Move getline and getdelim into stdio.h, per POSIX 200x.
26476         * modules/getline (Files): Remove getline.h.
26477         (Depends-on): Add stdio.
26478         (configure.ac): Add module indicator.
26479         * modules/getdelim (Files): Remove getdelim.h.
26480         (Depends-on): Add stdio.
26481         (configure.ac): Add module indicator.
26482         * modules/stdio (Makefile.am): Work with new indicators.
26483         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
26484         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
26485         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26486         * lib/getdelim.h: Delete.
26487         * lib/getline.h: Delete.
26488         * lib/stdio_.h (getdelim, getline): Declare.
26489         * modules/getdelim-tests: New module.
26490         * modules/getline-tests: Likewise.
26491         * tests/test-getdelim.c: New file.
26492         * tests/test-getline.c: Likewise.
26493         * NEWS: Document the change.
26494         * lib/getline.c: Update choice of header.
26495         * lib/csharpcomp.c: Likewise.
26496         * lib/getpass.c: Likewise.
26497         * lib/javacomp.c: Likewise.
26498         * lib/javaversion.c: Likewise.
26499         * lib/yesno.c: Likewise.
26500         * lib/getdelim.c: Likewise.
26501         (getdelim): Set errno on failure, and avoid memory leak.
26502
26503 2007-08-19  Bruno Haible  <bruno@clisp.org>
26504
26505         * modules/closein (Depends-on): Add freadahead.
26506         * lib/closein.c: Include freadahead.h.
26507         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
26508         is zero.
26509
26510 2007-08-19  Bruno Haible  <bruno@clisp.org>
26511
26512         * modules/freadahead-tests: New file.
26513         * tests/test-freadahead.sh: New file.
26514         * tests/test-freadahead.c: New file.
26515
26516         * modules/freadahead: New file.
26517         * lib/freadahead.h: New file.
26518         * lib/freadahead.c: New file.
26519         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
26520         fbufmode, fpurge, freadable, fwritable.
26521
26522 2007-08-19  Eric Blake  <ebb9@byu.net>
26523
26524         Test yesno in combination with closein.
26525         * lib/yesno.c (yesno): Document use of stdin.
26526         * modules/yesno-tests (Files): New module.
26527         * tests/test-yesno.c (main): New file.
26528         * tests/test-yesno.sh: Likewise.
26529
26530 2007-08-19  Bruno Haible  <bruno@clisp.org>
26531
26532         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
26533         * lib/fseeko.c (rpl_fseeko): Likewise.
26534         * lib/fseterr.c (fseterr): Likewise.
26535
26536 2007-08-19  Bruno Haible  <bruno@clisp.org>
26537
26538         * tests/test-lseek.c (main): Disable a test for BeOS.
26539         * doc/functions/lseek.texi: Document the BeOS bug.
26540
26541 2007-08-19  Bruno Haible  <bruno@clisp.org>
26542             Eric Blake  <ebb9@byu.net>
26543
26544         * lib/lseek.c: Include <sys/stat.h>.
26545         (rpl_lseek): Add workaround code also for Unix platforms.
26546         Needed for BeOS.
26547         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
26548         * doc/functions/lseek.texi: Document BeOS definiency.
26549
26550 2007-08-18  Bruno Haible  <bruno@clisp.org>
26551
26552         * modules/fstrcmp-tests: New file.
26553         * tests/test-fstrcmp.c: New file.
26554
26555 2007-08-18  Bruno Haible  <bruno@clisp.org>
26556
26557         * modules/fstrcmp: New file, from GNU gettext with modifications.
26558         * lib/fstrcmp.h: New file, from GNU gettext.
26559         * lib/fstrcmp.c: New file, from GNU gettext.
26560         * MODULES.html.sh (String handling): Add fstrcmp.
26561
26562 2007-08-18  Bruno Haible  <bruno@clisp.org>
26563
26564         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
26565         'bool'.
26566         (diag, compareseq): Remove const from the ctxt argument.
26567         (USE_HEURISTIC): Undefine at the end.
26568
26569 2007-08-18  Jim Meyering  <jim@meyering.net>
26570
26571         New file: lib/idcache.h
26572         * NEWS: Mention the addition.
26573         * modules/idcache (Files): Add lib/idcache.h
26574         * lib/idcache.c: Include "idcache.h".
26575         Don't include <sys/types.h>.
26576         Add a FIXME comment.
26577         Move file-scoped "static" declarations to the top.
26578         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
26579
26580 2007-08-17  Bruno Haible  <bruno@clisp.org>
26581         and Paul Eggert  <eggert@cs.ucla.edu>
26582
26583         * MODULES.html.sh: Add diffseq.
26584         * modules/diffseq: New file.
26585         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
26586         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
26587
26588 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
26589
26590         Import changes from coreutils for bootstrap script.
26591
26592         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
26593
26594         * build-aux/bootstrap (slurp): Work even in environments where
26595         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
26596         current code does not slurp files whose names start with ".", and
26597         this looks like it might be a troublesome area.
26598
26599         2007-07-11  Jim Meyering  <jim@meyering.net>
26600
26601         If there's a GPL vN copyright comment, require that N == 3.
26602
26603         2007-07-08  Jim Meyering  <jim@meyering.net>
26604
26605         Run the coreutils-specific code only if tests/Makefile.am.in exists.
26606         * build-aux/bootstrap (mam_template): Move definition out of loop.
26607
26608         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
26609
26610         * build-aux/bootstrap (symlink_to_dir): Rename function from
26611         symlink_to_gnulib.  Add a directory parameter.  Update all
26612         callers.
26613         (cp_mark_as_generated): Also check for -- and link to -- files in
26614         gl/.
26615
26616         2007-07-08  Jim Meyering  <jim@meyering.net>
26617
26618         Adapt to deeper hierarchy in gnulib.
26619         * build-aux/bootstrap (symlink_to_dir): If the destination
26620         directory doesn't exist, create it. This is required at least for
26621         "lib/uniwidth/cjk.h".
26622
26623         2007-05-15  Jim Meyering  <jim@meyering.net>
26624
26625         * build-aux/bootstrap: Now that generated Makefile.am files
26626         are no longer under version control, they must be created at
26627         bootstrap time.
26628
26629 2007-08-14  Ben Pfaff  <blp@gnu.org>
26630
26631         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
26632
26633 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
26634
26635         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
26636         given the changes below.
26637         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
26638         even on hosts that have padding bits beyond the supported 64.
26639
26640 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26641
26642         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
26643         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
26644         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
26645         depends on it.
26646         (xstrtol_error): Remove.
26647         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
26648         but with a different signature.
26649         (ATTRIBUTE_NORETURN, __attribute__): New macros.
26650         * lib/xstrtol-error.c: Include exitfail.h.
26651         (xstrtol_fatal): New function, with a different signature from the
26652         old xstrtol_error, so that the caller need not worry about passing
26653         in an exit status, or about storage management of the option argument.
26654         (xstrtol_error): Now a static function.  Redo signature to
26655         implement xstrtol_fatal.  Output the correct number of hyphens in
26656         front of the option so that the caller need not worry about
26657         storage management.
26658         (N_): New macro.
26659         (_): Remove; not used now.
26660         * modules/xstrtol: Depend on getopt.
26661         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
26662         of old STRTOL_FATAL_ERROR macro.
26663         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
26664         of test program.
26665         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
26666         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
26667
26668 2007-08-08  Eric Blake  <ebb9@byu.net>
26669
26670         * lib/xstrtol-error.c: Add missing include.
26671
26672         Move xstrtol messages into gnulib domain, when --pobase is used.
26673         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
26674         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
26675         * modules/xstrtol (Files): Distribute new file.
26676         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
26677         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
26678         * tests/test-xstrtol.c: ...into new file.
26679         * tests/test-xstrtoul.c: Also test xstrtoul.
26680         * tests/test-xstrtoimax.c: Also test xstrtoimax.
26681         * tests/test-xstrtoumax.c: Also test xstrtoumax.
26682         * tests/test-xstrtol.sh: Drive the tests.
26683         * tests/test-xstrtoimax.sh: Likewise.
26684         * tests/test-xstrtoumax.sh: Likewise.
26685         * modules/xstrtol-tests: New module.
26686         * modules/xstrtoimax-tests: Likewise.
26687         * modules/xstrtoumax-tests: Likewise.
26688
26689 2007-08-08  Jim Meyering  <jim@meyering.net>
26690
26691         New function: mfile_name_concat.
26692         * lib/filenamecat.c (mfile_name_concat): New function, just like
26693         file_name_concat, but return NULL upon failure rather than exiting
26694         with a diagnostic.
26695         * lib/filenamecat.h: Declare it.
26696
26697 2007-08-07  Bruno Haible  <bruno@clisp.org>
26698
26699         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
26700         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
26701         warning from gcc.
26702         Reported by Eric Blake.
26703
26704 2007-08-07  Simon Josefsson  <simon@josefsson.org>
26705
26706         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
26707         * modules/crypto/arcfour (License): Likewise.
26708         * modules/crypto/des-tests (License): Likewise.
26709         * modules/crypto/gc-arctwo-tests (License): Likewise.
26710         * modules/crypto/gc-des-tests (License): Likewise.
26711         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
26712         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
26713         * modules/crypto/gc-md2-tests (License): Likewise.
26714         * modules/crypto/gc-md4-tests (License): Likewise.
26715         * modules/crypto/gc-md5-tests (License): Likewise.
26716         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
26717         * modules/crypto/gc-rijndael-tests (License): Likewise.
26718         * modules/crypto/gc-sha1-tests (License): Likewise.
26719         * modules/crypto/gc-tests (License): Likewise.
26720         * modules/crypto/hmac-md5 (License): Likewise.
26721         * modules/crypto/hmac-sha1 (License): Likewise.
26722         * modules/crypto/md2-tests (License): Likewise.
26723         * modules/crypto/md4-tests (License): Likewise.
26724         * modules/crypto/md5 (License): Likewise.
26725         * modules/crypto/rijndael (License): Likewise.
26726         * modules/crypto/sha1 (License): Likewise.
26727         * modules/memxor (License): Likewise.
26728
26729 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
26730         and Bruno Haible  <bruno@clisp.org>
26731
26732         * NEWS: Describe interface changes to human, xstrtol.
26733         * lib/human.h: Include <xstrtol.h>.
26734         (human_options): Return enum strtol_error, not int.  Remove
26735         bool arg; take int * instead.
26736         * lib/human.c: Don't include "gettext.h".
26737         (_): Remove; no longer used.
26738         Don't include <xstrtol.h>, since human.h does it.
26739         (human_options): Adjust to abovementioned interface changes.
26740         Do not report error to stderr; that's now the caller's
26741         responsibility.
26742         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
26743         interface change.
26744         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
26745         Str, Argument_type_string.  All uses changed.  Put " argument"
26746         in diagnostics to make them clearer.  Change wording of suffix
26747         message for clarity.
26748         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
26749         Argument_type_string.
26750         (STRTOL_FATAL_WARN): Remove; no longer used.
26751         * modules/human (Depends-on): Remove gettext-h.
26752
26753 2007-08-06  Simon Josefsson  <simon@josefsson.org>
26754
26755         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
26756
26757 2007-07-31  Bruno Haible  <bruno@clisp.org>
26758
26759         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
26760         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
26761         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
26762
26763 2007-07-31  Bruno Haible  <bruno@clisp.org>
26764
26765         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
26766         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
26767
26768 2007-07-30  Bruno Haible  <bruno@clisp.org>
26769
26770         * modules/base64 (License): Use the synonymous term "LGPLv2+".
26771         * modules/c-ctype (License): Likewise.
26772         * modules/c-strcase (License): Likewise.
26773         * modules/check-version (License): Likewise.
26774         * modules/iconv (License): Likewise.
26775         * modules/iconv_open (License): Likewise.
26776         * modules/read-file (License): Likewise.
26777         * modules/striconv (License): Likewise.
26778         * modules/strverscmp (License): Likewise.
26779         * modules/vasprintf (License): Likewise.
26780         * modules/crypto/des (License): Likewise.
26781         * modules/crypto/gc (License): Likewise.
26782         * modules/crypto/gc-arcfour (License): Likewise.
26783         * modules/crypto/gc-arctwo (License): Likewise.
26784         * modules/crypto/gc-des (License): Likewise.
26785         * modules/crypto/gc-hmac-md5 (License): Likewise.
26786         * modules/crypto/gc-hmac-sha1 (License): Likewise.
26787         * modules/crypto/gc-md2 (License): Likewise.
26788         * modules/crypto/gc-md4 (License): Likewise.
26789         * modules/crypto/gc-md5 (License): Likewise.
26790         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
26791         * modules/crypto/gc-random (License): Likewise.
26792         * modules/crypto/gc-rijndael (License): Likewise.
26793         * modules/crypto/gc-sha1 (License): Likewise.
26794         * modules/crypto/md2 (License): Likewise.
26795         * modules/crypto/md4 (License): Likewise.
26796
26797 2007-07-30  Jim Meyering  <jim@meyering.net>
26798
26799         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
26800         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
26801         it has valid stat data.  This bug would cause du not to count the
26802         sizes of inaccessible directories.
26803         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
26804         in <http://bugzilla.redhat.com/250077>.
26805
26806 2007-07-25  Peter O'Gorman  <peter@pogma.com>
26807             Bruno Haible  <bruno@clisp.org>
26808
26809         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
26810         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
26811         #include_next, gives a diagnostic about it, but reports no error in
26812         the exit code.
26813         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
26814
26815 2007-07-24  Ben Pfaff  <blp@gnu.org>
26816
26817         Improve name: "count-one-bits" is better than "popcount".
26818         * MODULES.html.sh: Update name.
26819         * lib/popcount.h: Renamed lib/count-one-bits.h.
26820         (popcount): Renamed count_one_bits.
26821         (popcountl): Renamed count_one_bits_l.
26822         (popcountll): Renamed count_one_bits_ll.
26823         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
26824         * modules/popcount: Renamed module/count-one-bits.
26825         * modules/popcount-tests: Renamed module/count-one-bits-tests.
26826         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
26827
26828 2007-07-23  Ben Pfaff  <blp@gnu.org>
26829
26830         * lib/popcount.h (popcount32): Reduce size of constants, to allow
26831         better code generation, and add U to large constants to avoid
26832         warnings, in non-GCC case.
26833         Suggested by Bruno Haible.
26834
26835 2007-07-23  Ben Pfaff  <blp@gnu.org>
26836
26837         * lib/popcount.h: Use verify_true instead of if...abort.
26838         * modules/popcount: Depend on verify module.
26839         Suggested by Jim Meyering.
26840
26841 2007-07-23  Bruno Haible  <bruno@clisp.org>
26842
26843         * gnulib-tool (func_import): Create a .cvsignore file also when the
26844         directory is not yet in CVS but the toplevel directory is. When
26845         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
26846         Reported by Karl Berry.
26847
26848 2007-07-22  Ben Pfaff  <blp@gnu.org>
26849
26850         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
26851         case.
26852         Suggested by Eric Blake.
26853
26854 2007-07-22  Ben Pfaff  <blp@gnu.org>
26855
26856         New module: popcount.
26857         * MODULES.html.sh: Add popcount.
26858         * modules/popcount: New file.
26859         * modules/popcount-tests: New file.
26860         * tests/test-popcount.c: New file.
26861         * lib/popcount.h: New file.
26862         * m4/popcount.m4: New file.
26863
26864 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
26865
26866         * build-aux/announce-gen: Update to GPLv3.
26867
26868         * build-aux/config.guess: Update from config.
26869
26870 2007-07-21  Bruno Haible  <bruno@clisp.org>
26871
26872         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
26873         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
26874
26875 2007-07-20  Jim Meyering  <jim@meyering.net>
26876
26877         * check-module: Diagnose a self-dependency.
26878
26879 2007-07-19  Bruno Haible  <bruno@clisp.org>
26880
26881         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
26882         empty.
26883         Reported by Eric Blake.
26884
26885 2007-07-18  Bruno Haible  <bruno@clisp.org>
26886
26887         * gnulib-tool: New options --po-base, --po-domain.
26888         (func_usage): Document them.
26889         (pobase, po_domain): New variables.
26890         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
26891         DEFAULT_TEXT_DOMAIN.
26892         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
26893         (func_import): Consider pobase and po_domain. Create a po/ directory.
26894         (func_create_testdir): Set pobase and po_domain to empty.
26895         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
26896         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
26897
26898 2007-07-18  Bruno Haible  <bruno@clisp.org>
26899
26900         * gnulib-tool (func_get_automake_snippet): Synthesize also an
26901         EXTRA_DIST augmentation for files in build-aux/.
26902
26903 2007-07-16  Bruno Haible  <bruno@clisp.org>
26904
26905         * modules/lseek (License): Use the synonymous term "LGPLv2+".
26906         * modules/getdelim (License): Likewise.
26907
26908 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26909
26910         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
26911         * modules/d-type (License): Likewise.
26912         * modules/extensions (License): Likewise.
26913         * modules/fnmatch (License): Likewise.
26914         * modules/fseeko (License): Likewise.
26915         * modules/getaddrinfo (License): Likewise.
26916         * modules/getline (License): Likewise.
26917         * modules/getlogin_r (License): Likewise.
26918         * modules/getpass (License): Likewise.
26919         * modules/gettimeofday (License): Likewise.
26920         * modules/glob (License): Likewise.
26921         * modules/inet_ntop (License): Likewise.
26922         * modules/malloc (License): Likewise.
26923         * modules/malloca (License): Likewise.
26924         * modules/memmem (License): Likewise.
26925         * modules/mempcpy (License): Likewise.
26926         * modules/memset (License): Likewise.
26927         * modules/minmax (License): Likewise.
26928         * modules/mktime (License): Likewise.
26929         * modules/netinet_in (License): Likewise.
26930         * modules/pathmax (License): Likewise.
26931         * modules/poll (License): Likewise.
26932         * modules/regex (License): Likewise.
26933         * modules/snprintf (License): Likewise.
26934         * modules/stdbool (License): Likewise.
26935         * modules/stdint (License): Likewise.
26936         * modules/stdio (License): Likewise.
26937         * modules/strcase (License): Likewise.
26938         * modules/strcasestr (License): Likewise.
26939         * modules/strdup (License): Likewise.
26940         * modules/string (License): Likewise.
26941         * modules/strndup (License): Likewise.
26942         * modules/strnlen (License): Likewise.
26943         * modules/strpbrk (License): Likewise.
26944         * modules/strptime (License): Likewise.
26945         * modules/strsep (License): Likewise.
26946         * modules/sys_select (License): Likewise.
26947         * modules/sys_socket (License): Likewise.
26948         * modules/sys_stat (License): Likewise.
26949         * modules/sys_time (License): Likewise.
26950         * modules/time (License): Likewise.
26951         * modules/time_r (License): Likewise.
26952         * modules/timegm (License): Likewise.
26953         * modules/unistd (License): Likewise.
26954         * modules/vsnprintf (License): Likewise.
26955         * modules/wctype (License): Likewise.
26956
26957 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26958
26959         * modules/argz (License): LGPLv2+.
26960
26961 2007-07-15  Karl Berry  <karl@gnu.org>
26962
26963         * doc/gnulib.texi: revise node structure per new fdl.texi.
26964
26965 2007-07-14  Bruno Haible  <bruno@clisp.org>
26966
26967         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
26968         the output file.
26969         * lib/uniname/uninames.h: Regenerated.
26970
26971 2007-07-14  Karl Berry  <karl@gnu.org>
26972
26973         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
26974         omitting sectioning and index commands.
26975
26976 2007-07-13  Bruno Haible  <bruno@clisp.org>
26977
26978         New gnulib-tool option --more-symlinks.
26979         * gnulib-tool (func_usage): Document --more-symlinks.
26980         (do_copyrights): New variable.
26981         Recognize option --more-symlinks.
26982         (func_import): Don't add a copyright notice transform to
26983         sed_transform_lib_file if do_copyrights is empty.
26984
26985 2007-07-13  Bruno Haible  <bruno@clisp.org>
26986
26987         * lib/vasnprintf.c (decimal_point_char): Define also if
26988         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
26989         && !NEED_PRINTF_DIRECTIVE_A.
26990         Reported by Clemens Koller <clemens.koller@anagramm.de> via
26991         Gary V. Vaughan <gary@gnu.org>.
26992
26993 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
26994
26995         * lib/inttypes_.h: Undo previous change, since it was fixed
26996         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
26997
26998 2007-07-13  Bruno Haible  <bruno@clisp.org>
26999
27000         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
27001         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
27002
27003 2007-07-13  Jim Meyering  <jim@meyering.net>
27004
27005         df: Don't fail for Tru64's "file-on-file mount".
27006         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
27007         so we fall through and use statfs instead.  Details here:
27008         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
27009         Reported by Albert Chin.
27010
27011 2007-07-13  Bruno Haible  <bruno@clisp.org>
27012
27013         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
27014         * modules/configmake (License): Likewise.
27015         * modules/gettext (License): Likewise.
27016         * modules/gettext-h (License): Likewise.
27017         * modules/include_next (License): Likewise.
27018         * modules/link-warning (License): Likewise.
27019         * modules/localcharset (License): Likewise.
27020         * modules/localename (License): Likewise.
27021         * modules/lock (License): Likewise.
27022         * modules/relocatable-lib-lgpl (License): Likewise.
27023         * modules/size_max (License): Likewise.
27024         * modules/vasnprintf (License): Likewise.
27025         * modules/wchar (License): Likewise.
27026         * modules/xsize (License): Likewise.
27027
27028 2007-07-13  Bruno Haible  <bruno@clisp.org>
27029
27030         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
27031         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
27032
27033 2007-07-12  Bruno Haible  <bruno@clisp.org>
27034
27035         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
27036         in the modules files.
27037
27038 2007-07-11  Karl Berry  <karl@gnu.org>
27039
27040         * MODULES.html.sh (func_module): use
27041          sed -e '\|^'"${includefile}"'$|d'
27042          instead of /.../d, to avoid errors on $includefile's containing /.
27043
27044 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
27045
27046         * gnulib-tool (func_import): Avoid duplication of --avoid
27047         statements
27048         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
27049         names to `_' in variable names.
27050
27051 2007-07-10  Eric Blake  <ebb9@byu.net>
27052
27053         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
27054         * NEWS: Document this change.
27055
27056 2007-07-08  Bruno Haible  <bruno@clisp.org>
27057
27058         Update to Unicode 5.0.
27059         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
27060         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
27061         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
27062         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
27063         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
27064         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
27065         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
27066         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
27067         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
27068         U+10A3F, U+1D242..U+1D244.
27069         (nonspacing_table_ind): Update.
27070         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
27071         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
27072
27073 2007-07-08  Bruno Haible  <bruno@clisp.org>
27074
27075         Update to Unicode 5.0.
27076         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
27077         code transform. Extend the name index field of unicode_name_to_code and
27078         unicode_code_to_name from 16 to 24 bits.
27079         * lib/uniname/uniname.c (unicode_character_name,
27080         unicode_name_character): Add the range 0x12xxx to the code transform.
27081         * lib/uniname/uninames.h: Regenerated.
27082         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
27083
27084 2007-07-07  Bruno Haible  <bruno@clisp.org>
27085
27086         * modules/wcwidth-tests: New file.
27087         * tests/test-wcwidth.c: New file.
27088
27089         Work around MacOS X wcwidth() bug.
27090         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
27091         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
27092         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
27093         original wcwidth in non-UTF-8 locales.
27094         * modules/wcwidth (Depends-on): Add localcharset, streq,
27095         uniwidth/width.
27096         * doc/functions/wcwidth.texi: Update.
27097
27098 2007-07-07  Bruno Haible  <bruno@clisp.org>
27099
27100         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
27101         (wcwidth): New declaration.
27102         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
27103         macros.
27104         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
27105         here. Prepare for creating <wchar.h> unconditionally.
27106         * modules/wchar (Depends-on): Add link-warning.
27107         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
27108         REPLACE_WCWIDTH, and GL_LINK_WARNING.
27109         * lib/wcwidth.h: Remove file.
27110         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
27111         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
27112         * modules/wcwidth (Files): Remove lib/wcwidth.h.
27113         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
27114         (Include): Replace wcwidth.h with <wchar.h>.
27115         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
27116         * lib/mbchar.h: Don't include wcwidth.h.
27117         * lib/mbswidth.c: Likewise.
27118         * NEWS: Mention the change.
27119
27120 2007-07-07  Bruno Haible  <bruno@clisp.org>
27121
27122         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
27123         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
27124         definition with an external declaration.
27125         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
27126         defined as a function. Remove AC_C_INLINE requirement.
27127         * modules/wcwidth (Files): Add lib/wcwidth.c.
27128         (Makefile.am): Remove redundant statement.
27129
27130 2007-07-07  Bruno Haible  <bruno@clisp.org>
27131
27132         * MODULES.html.sh (Unicode string functions): Add the new modules.
27133
27134         * tests/uniwidth/test-u32-strwidth.c: New file.
27135         * modules/uniwidth/u32-strwidth-tests: New file.
27136
27137         * lib/uniwidth/u32-strwidth.c: New file.
27138         * modules/uniwidth/u32-strwidth: New file.
27139
27140         * tests/uniwidth/test-u16-strwidth.c: New file.
27141         * modules/uniwidth/u16-strwidth-tests: New file.
27142
27143         * lib/uniwidth/u16-strwidth.c: New file.
27144         * modules/uniwidth/u16-strwidth: New file.
27145
27146         * tests/uniwidth/test-u8-strwidth.c: New file.
27147         * modules/uniwidth/u8-strwidth-tests: New file.
27148
27149         * lib/uniwidth/u8-strwidth.c: New file.
27150         * modules/uniwidth/u8-strwidth: New file.
27151
27152         * tests/uniwidth/test-u32-width.c: New file.
27153         * modules/uniwidth/u32-width-tests: New file.
27154
27155         * lib/uniwidth/u32-width.c: New file.
27156         * modules/uniwidth/u32-width: New file.
27157
27158         * tests/uniwidth/test-u16-width.c: New file.
27159         * modules/uniwidth/u16-width-tests: New file.
27160
27161         * lib/uniwidth/u16-width.c: New file.
27162         * modules/uniwidth/u16-width: New file.
27163
27164         * tests/uniwidth/test-u8-width.c: New file.
27165         * modules/uniwidth/u8-width-tests: New file.
27166
27167         * lib/uniwidth/u8-width.c: New file.
27168         * modules/uniwidth/u8-width: New file.
27169
27170         * tests/uniwidth/test-uc_width.c: New file.
27171         * modules/uniwidth/width-tests: New file.
27172
27173         * lib/uniwidth/width.c: New file, from GNU libiconv.
27174         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
27175         * modules/uniwidth/width: New file.
27176
27177         * lib/uniwidth.h: New file, from GNU libiconv.
27178         * modules/uniwidth/base: New file.
27179
27180 2007-07-07  Bruno Haible  <bruno@clisp.org>
27181
27182         * lib/uniname.h: New file, from GNU gettext.
27183         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
27184         * lib/uniname/uninames.h: New file, from GNU gettext.
27185         * lib/uniname/uniname.c: New file, from GNU gettext.
27186         * tests/uniname/test-uninames.sh: New file.
27187         * tests/uniname/test-uninames.c: New file, from GNU gettext.
27188         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
27189         * modules/uniname/base: New file.
27190         * modules/uniname/uniname: New file.
27191         * modules/uniname/uniname-tests: New file.
27192         * MODULES.html.sh (Unicode string functions): Add the new modules.
27193
27194 2007-07-06  Bruno Haible  <bruno@clisp.org>
27195
27196         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
27197
27198 2007-07-06  Bruno Haible  <bruno@clisp.org>
27199
27200         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
27201         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
27202         includes <cygwin/sys_time.h> which includes <sys/select.h> which
27203         include <sys/time.h>.
27204         Reported by Eric Blake.
27205
27206 2007-07-06  Eric Blake  <ebb9@byu.net>
27207
27208         Fix testing canonicalize on cygwin.
27209         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
27210         Revert patch from 2007-06-19.
27211         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
27212         canonicalize module is also in use.
27213         * tests/test-canonicalize.c: New file.
27214         * tests/test-canonicalize.sh: Likewise.
27215         * modules/canonicalize-tests: Likewise.
27216
27217 2007-07-06  Jim Meyering  <jim@meyering.net>
27218
27219         * lib/getugroups.c (getugroups): Detect getgrent failure.
27220         Adjust comment to reflect reality: this function may return -1.
27221
27222 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27223
27224         * build-aux/bootstrap (TP_URL,get_translations): Update to use
27225         the new TP address.
27226         (usage): Fix typo
27227         (gnulib_mk): New variable.
27228
27229 2007-07-05  Jim Meyering  <jim@meyering.net>
27230
27231         Don't let endgrent clobber errno, no matter how improbable.
27232         * lib/getugroups.c (getugroups): Save and restore errno around
27233         endgrent call.
27234
27235         Close the group DB even when failing with 2^31 or more members.
27236         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
27237
27238 2007-07-04  Jim Meyering  <jim@meyering.net>
27239
27240         * lib/getugroups.h: New file.
27241         * lib/getugroups.c: Include "getugroups.h".
27242         Remove uses of "register" keyword.
27243         Move local variable, "cp", down into scope where used.
27244         Give "username" parameter the "const" attribute.
27245         * modules/getugroups (Files): Add lib/getugroups.h
27246
27247 2007-07-04  Karl Berry  <karl@gnu.org>
27248
27249         * MODULES.html.sh (func_all_modules): Complete rename of
27250         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
27251
27252 2007-07-02  Bruno Haible  <bruno@clisp.org>
27253
27254         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
27255         mode, when inttypes.h comes from gnulib.
27256         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
27257
27258 2007-07-02  Simon Josefsson  <simon@josefsson.org>
27259
27260         * NEWS: Mention lgpl module name change.
27261
27262         * modules/lgpl-2.1: Renamed from lgpl.
27263
27264         * NEWS: Mention gpl module name change.
27265
27266         * modules/gpl-3.0: New file, based on gpl-2.0.
27267
27268         * modules/gpl-2.0: Renamed from gpl.
27269
27270         * modules/gpl: Fix filename, doc/gpl.texi is now found at
27271         doc/gpl-2.0.texi.
27272
27273 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
27274
27275         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
27276         #define __STDC_LIMIT_MACROS temporarily while including
27277         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
27278         Problem reported by Joel E. Denny in
27279         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
27280
27281 2007-07-01  Bruno Haible  <bruno@clisp.org>
27282
27283         * lib/unistdio.h: New file.
27284         * lib/unistdio/u-asnprintf.h: New file.
27285         * lib/unistdio/u-asprintf.h: New file.
27286         * lib/unistdio/u-printf-args.c: New file.
27287         * lib/unistdio/u-printf-args.h: New file.
27288         * lib/unistdio/u-printf-parse.h: New file.
27289         * lib/unistdio/u-snprintf.h: New file.
27290         * lib/unistdio/u-sprintf.h: New file.
27291         * lib/unistdio/u-vasprintf.h: New file.
27292         * lib/unistdio/u-vsnprintf.h: New file.
27293         * lib/unistdio/u-vsprintf.h: New file.
27294         * lib/unistdio/ulc-asnprintf.c: New file.
27295         * lib/unistdio/ulc-asprintf.c: New file.
27296         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
27297         * lib/unistdio/ulc-printf-parse.c: New file.
27298         * lib/unistdio/ulc-snprintf.c: New file.
27299         * lib/unistdio/ulc-sprintf.c: New file.
27300         * lib/unistdio/ulc-vasnprintf.c: New file.
27301         * lib/unistdio/ulc-vasprintf.c: New file.
27302         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
27303         * lib/unistdio/ulc-vsnprintf.c: New file.
27304         * lib/unistdio/ulc-vsprintf.c: New file.
27305         * lib/unistdio/u8-asnprintf.c: New file.
27306         * lib/unistdio/u8-asprintf.c: New file.
27307         * lib/unistdio/u8-printf-parse.c: New file.
27308         * lib/unistdio/u8-snprintf.c: New file.
27309         * lib/unistdio/u8-sprintf.c: New file.
27310         * lib/unistdio/u8-vasnprintf.c: New file.
27311         * lib/unistdio/u8-vasprintf.c: New file.
27312         * lib/unistdio/u8-vsnprintf.c: New file.
27313         * lib/unistdio/u8-vsprintf.c: New file.
27314         * lib/unistdio/u8-u8-asnprintf.c: New file.
27315         * lib/unistdio/u8-u8-asprintf.c: New file.
27316         * lib/unistdio/u8-u8-snprintf.c: New file.
27317         * lib/unistdio/u8-u8-sprintf.c: New file.
27318         * lib/unistdio/u8-u8-vasnprintf.c: New file.
27319         * lib/unistdio/u8-u8-vasprintf.c: New file.
27320         * lib/unistdio/u8-u8-vsnprintf.c: New file.
27321         * lib/unistdio/u8-u8-vsprintf.c: New file.
27322         * lib/unistdio/u16-asnprintf.c: New file.
27323         * lib/unistdio/u16-asprintf.c: New file.
27324         * lib/unistdio/u16-printf-parse.c: New file.
27325         * lib/unistdio/u16-snprintf.c: New file.
27326         * lib/unistdio/u16-sprintf.c: New file.
27327         * lib/unistdio/u16-vasnprintf.c: New file.
27328         * lib/unistdio/u16-vasprintf.c: New file.
27329         * lib/unistdio/u16-vsnprintf.c: New file.
27330         * lib/unistdio/u16-vsprintf.c: New file.
27331         * lib/unistdio/u16-u16-asnprintf.c: New file.
27332         * lib/unistdio/u16-u16-asprintf.c: New file.
27333         * lib/unistdio/u16-u16-snprintf.c: New file.
27334         * lib/unistdio/u16-u16-sprintf.c: New file.
27335         * lib/unistdio/u16-u16-vasnprintf.c: New file.
27336         * lib/unistdio/u16-u16-vasprintf.c: New file.
27337         * lib/unistdio/u16-u16-vsnprintf.c: New file.
27338         * lib/unistdio/u16-u16-vsprintf.c: New file.
27339         * lib/unistdio/u32-asnprintf.c: New file.
27340         * lib/unistdio/u32-asprintf.c: New file.
27341         * lib/unistdio/u32-printf-parse.c: New file.
27342         * lib/unistdio/u32-snprintf.c: New file.
27343         * lib/unistdio/u32-sprintf.c: New file.
27344         * lib/unistdio/u32-vasnprintf.c: New file.
27345         * lib/unistdio/u32-vasprintf.c: New file.
27346         * lib/unistdio/u32-vsnprintf.c: New file.
27347         * lib/unistdio/u32-vsprintf.c: New file.
27348         * lib/unistdio/u32-u32-asnprintf.c: New file.
27349         * lib/unistdio/u32-u32-asprintf.c: New file.
27350         * lib/unistdio/u32-u32-snprintf.c: New file.
27351         * lib/unistdio/u32-u32-sprintf.c: New file.
27352         * lib/unistdio/u32-u32-vasnprintf.c: New file.
27353         * lib/unistdio/u32-u32-vasprintf.c: New file.
27354         * lib/unistdio/u32-u32-vsnprintf.c: New file.
27355         * lib/unistdio/u32-u32-vsprintf.c: New file.
27356         * tests/unistdio/test-ulc-asnprintf1.c: New file.
27357         * tests/unistdio/test-ulc-asnprintf1.h: New file.
27358         * tests/unistdio/test-ulc-printf1.h: New file.
27359         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
27360         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
27361         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
27362         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
27363         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
27364         * tests/unistdio/test-ulc-vasprintf1.c: New file.
27365         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
27366         * tests/unistdio/test-ulc-vsprintf1.c: New file.
27367         * tests/unistdio/test-u8-asnprintf1.c: New file.
27368         * tests/unistdio/test-u8-asnprintf1.h: New file.
27369         * tests/unistdio/test-u8-printf1.h: New file.
27370         * tests/unistdio/test-u8-vasnprintf1.c: New file.
27371         * tests/unistdio/test-u8-vasnprintf2.c: New file.
27372         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
27373         * tests/unistdio/test-u8-vasnprintf3.c: New file.
27374         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
27375         * tests/unistdio/test-u8-vasprintf1.c: New file.
27376         * tests/unistdio/test-u8-vsnprintf1.c: New file.
27377         * tests/unistdio/test-u8-vsprintf1.c: New file.
27378         * tests/unistdio/test-u16-asnprintf1.c: New file.
27379         * tests/unistdio/test-u16-asnprintf1.h: New file.
27380         * tests/unistdio/test-u16-printf1.h: New file.
27381         * tests/unistdio/test-u16-vasnprintf1.c: New file.
27382         * tests/unistdio/test-u16-vasnprintf2.c: New file.
27383         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
27384         * tests/unistdio/test-u16-vasnprintf3.c: New file.
27385         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
27386         * tests/unistdio/test-u16-vasprintf1.c: New file.
27387         * tests/unistdio/test-u16-vsnprintf1.c: New file.
27388         * tests/unistdio/test-u16-vsprintf1.c: New file.
27389         * tests/unistdio/test-u32-asnprintf1.c: New file.
27390         * tests/unistdio/test-u32-asnprintf1.h: New file.
27391         * tests/unistdio/test-u32-printf1.h: New file.
27392         * tests/unistdio/test-u32-vasnprintf1.c: New file.
27393         * tests/unistdio/test-u32-vasnprintf2.c: New file.
27394         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
27395         * tests/unistdio/test-u32-vasnprintf3.c: New file.
27396         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
27397         * tests/unistdio/test-u32-vasprintf1.c: New file.
27398         * tests/unistdio/test-u32-vsnprintf1.c: New file.
27399         * tests/unistdio/test-u32-vsprintf1.c: New file.
27400         * modules/unistdio/base: New file.
27401         * modules/unistdio/u-printf-args: New file.
27402         * modules/unistdio/ulc-asnprintf: New file.
27403         * modules/unistdio/ulc-asprintf: New file.
27404         * modules/unistdio/ulc-fprintf: New file.
27405         * modules/unistdio/ulc-printf-parse: New file.
27406         * modules/unistdio/ulc-snprintf: New file.
27407         * modules/unistdio/ulc-sprintf: New file.
27408         * modules/unistdio/ulc-vasnprintf: New file.
27409         * modules/unistdio/ulc-vasprintf: New file.
27410         * modules/unistdio/ulc-vfprintf: New file.
27411         * modules/unistdio/ulc-vsnprintf: New file.
27412         * modules/unistdio/ulc-vsprintf: New file.
27413         * modules/unistdio/u8-asnprintf: New file.
27414         * modules/unistdio/u8-asprintf: New file.
27415         * modules/unistdio/u8-printf-parse: New file.
27416         * modules/unistdio/u8-snprintf: New file.
27417         * modules/unistdio/u8-sprintf: New file.
27418         * modules/unistdio/u8-vasnprintf: New file.
27419         * modules/unistdio/u8-vasprintf: New file.
27420         * modules/unistdio/u8-vsnprintf: New file.
27421         * modules/unistdio/u8-vsprintf: New file.
27422         * modules/unistdio/u8-u8-asnprintf: New file.
27423         * modules/unistdio/u8-u8-asprintf: New file.
27424         * modules/unistdio/u8-u8-snprintf: New file.
27425         * modules/unistdio/u8-u8-sprintf: New file.
27426         * modules/unistdio/u8-u8-vasnprintf: New file.
27427         * modules/unistdio/u8-u8-vasprintf: New file.
27428         * modules/unistdio/u8-u8-vsnprintf: New file.
27429         * modules/unistdio/u8-u8-vsprintf: New file.
27430         * modules/unistdio/u16-asnprintf: New file.
27431         * modules/unistdio/u16-asprintf: New file.
27432         * modules/unistdio/u16-printf-parse: New file.
27433         * modules/unistdio/u16-snprintf: New file.
27434         * modules/unistdio/u16-sprintf: New file.
27435         * modules/unistdio/u16-vasnprintf: New file.
27436         * modules/unistdio/u16-vasprintf: New file.
27437         * modules/unistdio/u16-vsnprintf: New file.
27438         * modules/unistdio/u16-vsprintf: New file.
27439         * modules/unistdio/u16-u16-asnprintf: New file.
27440         * modules/unistdio/u16-u16-asprintf: New file.
27441         * modules/unistdio/u16-u16-snprintf: New file.
27442         * modules/unistdio/u16-u16-sprintf: New file.
27443         * modules/unistdio/u16-u16-vasnprintf: New file.
27444         * modules/unistdio/u16-u16-vasprintf: New file.
27445         * modules/unistdio/u16-u16-vsnprintf: New file.
27446         * modules/unistdio/u16-u16-vsprintf: New file.
27447         * modules/unistdio/u32-asnprintf: New file.
27448         * modules/unistdio/u32-asprintf: New file.
27449         * modules/unistdio/u32-printf-parse: New file.
27450         * modules/unistdio/u32-snprintf: New file.
27451         * modules/unistdio/u32-sprintf: New file.
27452         * modules/unistdio/u32-vasnprintf: New file.
27453         * modules/unistdio/u32-vasprintf: New file.
27454         * modules/unistdio/u32-vsnprintf: New file.
27455         * modules/unistdio/u32-vsprintf: New file.
27456         * modules/unistdio/u32-u32-asnprintf: New file.
27457         * modules/unistdio/u32-u32-asprintf: New file.
27458         * modules/unistdio/u32-u32-snprintf: New file.
27459         * modules/unistdio/u32-u32-sprintf: New file.
27460         * modules/unistdio/u32-u32-vasnprintf: New file.
27461         * modules/unistdio/u32-u32-vasprintf: New file.
27462         * modules/unistdio/u32-u32-vsnprintf: New file.
27463         * modules/unistdio/u32-u32-vsprintf: New file.
27464         * modules/unistdio/ulc-asnprintf-tests: New file.
27465         * modules/unistdio/ulc-vasnprintf-tests: New file.
27466         * modules/unistdio/ulc-vasprintf-tests: New file.
27467         * modules/unistdio/ulc-vsnprintf-tests: New file.
27468         * modules/unistdio/ulc-vsprintf-tests: New file.
27469         * modules/unistdio/u8-asnprintf-tests: New file.
27470         * modules/unistdio/u8-vasnprintf-tests: New file.
27471         * modules/unistdio/u8-vasprintf-tests: New file.
27472         * modules/unistdio/u8-vsnprintf-tests: New file.
27473         * modules/unistdio/u8-vsprintf-tests: New file.
27474         * modules/unistdio/u16-asnprintf-tests: New file.
27475         * modules/unistdio/u16-vasnprintf-tests: New file.
27476         * modules/unistdio/u16-vasprintf-tests: New file.
27477         * modules/unistdio/u16-vsnprintf-tests: New file.
27478         * modules/unistdio/u16-vsprintf-tests: New file.
27479         * modules/unistdio/u32-asnprintf-tests: New file.
27480         * modules/unistdio/u32-vasnprintf-tests: New file.
27481         * modules/unistdio/u32-vasprintf-tests: New file.
27482         * modules/unistdio/u32-vsnprintf-tests: New file.
27483         * modules/unistdio/u32-vsprintf-tests: New file.
27484         * MODULES.html.sh (Unicode string functions): Add the new modules.
27485
27486 2007-07-01  Bruno Haible  <bruno@clisp.org>
27487
27488         * lib/sprintf.c (sprintf): Limit the available length estimation,
27489         to avoid address wraparound.
27490         * lib/vsprintf.c (vsprintf): Likewise.
27491         * modules/sprintf-posix (Dependencies): Add stdint.
27492         * modules/vsprintf-posix (Dependencies): Likewise.
27493
27494 2007-07-01  Bruno Haible  <bruno@clisp.org>
27495
27496         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
27497         Windows PATH as well. Conservative double-quoting. Comments.
27498
27499 2007-07-01  Bruno Haible  <bruno@clisp.org>
27500             Eric Blake  <ebb9@byu.net>
27501             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27502
27503         * gnulib-tool (self_abspathname): Fix algorithm to cope with
27504         empty components in $PATH, denoting '.'.
27505
27506 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27507
27508         * gnulib-tool: Fix indentation.
27509         (func_create_megatestdir): Likewise.
27510         Report by Bruno Haible.
27511
27512 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27513
27514         Sync from Automake.
27515         * build-aux/gnupload: Fix shell portability issues with for loops.
27516         Report by Karl Berry.
27517
27518 2007-06-29  Simon Josefsson  <simon@josefsson.org>
27519
27520         * build-aux/maint.mk (POURL): Use translationproject.org.
27521
27522 2007-06-27  Simon Josefsson  <simon@josefsson.org>
27523             Bruno Haible  <bruno@clisp.org>
27524
27525         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
27526         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
27527         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
27528         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
27529         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
27530
27531 2007-06-27  Bruno Haible  <bruno@clisp.org>
27532
27533         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
27534         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
27535
27536 2007-06-26  Karl Berry  <karl@gnu.org>
27537
27538         * MODULES.html.sh: remove xreadlink-with-size.
27539
27540 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
27541
27542         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
27543         method that I hope also handles the double-include problem noted
27544         by Bruno Haible in
27545         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
27546
27547 2007-06-23  Bruno Haible  <bruno@clisp.org>
27548
27549         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27550         Don't let the 'mostlyclean' target fail if the last subdirectory could
27551         not be removed.
27552         Reported by Karl Berry.
27553
27554 2007-06-23  Bruno Haible  <bruno@clisp.org>
27555
27556         * gnulib-tool (echo): Add a speedier workaround for ksh.
27557         * tests/test-echo.sh: Likewise.
27558
27559 2007-06-23  Bruno Haible  <bruno@clisp.org>
27560
27561         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
27562         * tests/test-echo.sh: Likewise.
27563
27564 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27565
27566         * gnulib-tool (IFS): Initialize early, so we don't set it to
27567         empty later.
27568         (self_abspathname): Rewrite algorithm to set it, reindent.
27569         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
27570         (func_create_megatestdir): Merge some sed scripts.
27571
27572 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
27573
27574         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
27575         exposed by Sun Studio 11 cc on Solaris 8.
27576
27577 2007-06-22  Bruno Haible  <bruno@clisp.org>
27578
27579         * gnulib-tool (echo): Ensure the echo primitive does not interpret
27580         backslashes.
27581         * tests/test-echo.sh: New file.
27582
27583 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27584
27585         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
27586         simplify `sed_replace_build_aux' scripts, they are portable but
27587         echoing them with `echo' is not.
27588         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
27589
27590 2007-06-21  Karl Berry  <karl@gnu.org>
27591
27592         * config/srclist.txt: guess we can't handle the licenses via
27593         srclist at the moment.
27594
27595 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
27596
27597         * MODULES.html.sh: Add include_next.
27598         * modules/include_next: New file.
27599
27600 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
27601
27602         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
27603         INCLUDE_NEXT.
27604         (gl_CHECK_NEXT_HEADERS): New macro.
27605         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
27606         the obsolescent gl_ABSOLUTE_HEADER.
27607         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
27608         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
27609         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
27610         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27611         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27612         * m4/math_h.m4 (gl_MATH_H): Likewise.
27613         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
27614         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27615         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27616         * m4/stdint.m4 (gl_STDINT_H): Likewise.
27617         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
27618         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
27619         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
27620         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27621         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27622         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27623         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
27624         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
27625         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
27626         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27627         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27628         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
27629         * m4/inttypes.m4 (gl_INTTYPES_H): Define
27630         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
27631         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
27632         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
27633         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
27634         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
27635         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
27636         * lib/float_.h: Likewise.
27637         * lib/inttypes_.h: Likewise.
27638         * lib/math_.h: Likewise.
27639         * lib/search_.h: Likewise.
27640         * lib/signal_.h: Likewise.
27641         * lib/stdint_.h: Likewise.
27642         * lib/stdio_.h: Likewise.
27643         * lib/stdlib_.h: Likewise.
27644         * lib/string_.h: Likewise.
27645         * lib/sys_stat_.h: Likewise.
27646         * lib/sys_time_.h: Likewise.
27647         * lib/time_.h: Likewise.
27648         * lib/unistd_.h: Likewise.
27649         * lib/wchar_.h: Likewise.
27650         * lib/wctype_.h: Likewise.
27651         * lib/dirent_.h: Likewise.
27652         * lib/iconv_.h: Likewise.
27653         * lib/locale_.h: Likewise.
27654         * lib/netinet_in_.h: Likewise.
27655         * lib/sys_select_.h: Likewise.
27656         * lib/sys_socket_.h: Likewise.
27657         * lib/sysexits_.h: Likewise.
27658         * modules/fcntl (Depends-on): Depend on include_next, not
27659         absolute_header.
27660         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
27661         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
27662         * modules/fchdir: Likewise.
27663         * modules/float: Likewise.
27664         * modules/iconv_open: Likewise.
27665         * modules/inttypes: Likewise.
27666         * modules/locale: Likewise.
27667         * modules/math: Likewise.
27668         * modules/netinet_in: Likewise.
27669         * modules/search: Likewise.
27670         * modules/signal: Likewise.
27671         * modules/stdint: Likewise.
27672         * modules/stdio: Likewise.
27673         * modules/stdlib: Likewise.
27674         * modules/string: Likewise.
27675         * modules/sys_select: Likewise.
27676         * modules/sys_socket: Likewise.
27677         * modules/sys_stat: Likewise.
27678         * modules/sys_time: Likewise.
27679         * modules/sysexits: Likewise.
27680         * modules/time: Likewise.
27681         * modules/unistd: Likewise.
27682         * modules/wchar: Likewise.
27683         * modules/wctype: Likewise.
27684         * modules/sys_stat: Change maintainer to "all".
27685         * modules/unistd: Likewise.
27686
27687 2007-06-20  Karl Berry  <karl@gnu.org>
27688
27689         * config/srclist.txt: track www changes in license files.
27690
27691 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
27692
27693         * build-aux/bootstrap: Remove stray dot.
27694         Make sure build_aux settings are honored when linking
27695         gnulib_extra_files.
27696
27697 2007-06-19  Eric Blake  <ebb9@byu.net>
27698
27699         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
27700         Allow compilation on cygwin.
27701
27702 2007-06-19  Jim Meyering  <jim@meyering.net>
27703
27704         xreadlink-with-size: Remove module.  No longer used.
27705         Ex-callers now use xreadlink or mreadlink-with-size.
27706         * modules/xreadlink-with-size: Remove module.
27707         * lib/xreadlink-with-size.c: Remove file.
27708         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
27709         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
27710         just before the function definition *is* accurate.
27711
27712         Eliminate one way canonicalize_filename_mode could exit.
27713         * lib/canonicalize.c (canonicalize_filename_mode):
27714         Use mreadlink_with_size, not xreadlink_with_size.
27715
27716 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
27717
27718         Detect porting problems to FreeBSD/arm, which has time_t wider than
27719         long int.  Original problem reported for GNU diff by Xin Li in
27720         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
27721         * modules/getdate (Depends-on): Add intprops, verify.
27722         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
27723         is an integer type no wider than long int.
27724
27725 2007-06-18  Jim Meyering  <jim@meyering.net>
27726
27727         New module: mreadlink-with-size.
27728         * MODULES.html.sh: Add mreadlink-with-size.
27729         * modules/mreadlink-with-size: New module
27730         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
27731         not xreadlink-with-size.
27732         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
27733
27734 2007-06-16  Bruno Haible  <bruno@clisp.org>
27735
27736         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
27737         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
27738         Reported by Gary V. Vaughan <gary@gnu.org>.
27739
27740 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
27741
27742         Revamp lchown so that it lives in unistd.h where it belongs.
27743         * lib/lchown.h: Remove.
27744         * lib/dirchownmod.c: Don't include lib/lchown.h.
27745         * lib/fchownat.c: Likewise.
27746         * lib/openat.c: Likewise.
27747         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
27748         does not follow symlinks.
27749         (EOPNOTSUPP): Define if not defined.
27750         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
27751         is defined to 0.
27752         (lchown): New decl.
27753         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
27754         Do not check for lchown decl.
27755         Set REPLACE_LCHOWN.
27756         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
27757         REPLACE_LCHOWN.
27758         * modules/chown: Make it clear it follows symlinks.
27759         * modules/lchown: Make it clear it doesn't follow symlinks.
27760         (Files): Remove lib/lchown.h
27761         (Depends-on): Add unistd.
27762         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
27763         (Include): Include <unistd.h>, not "lchown.h".
27764         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
27765         REPLACE_LCHOWN.
27766
27767 2007-06-15  Jim Meyering  <jim@meyering.net>
27768
27769         Change license (GPL to LGPL) of fsusage and dependents.
27770         * modules/fsusage (License): Change to LGPL.
27771         * modules/full-read (License): Likewise.
27772         * modules/full-write (License): Likewise.
27773         * modules/safe-read (License): Likewise.
27774         * modules/safe-write (License): Likewise.
27775
27776 2007-06-14  Ben Pfaff  <blp@gnu.org>
27777
27778         Missing part of allocsa -> malloca transition.
27779         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
27780         gl_MALLOCA.
27781
27782 2007-06-12  Bruno Haible  <bruno@clisp.org>
27783
27784         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
27785         to ia64, x86_64, i386.
27786         Reported by Eric Blake.
27787
27788 2007-06-12  Bruno Haible  <bruno@clisp.org>
27789
27790         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
27791         cross-compiling to x86_64.
27792
27793 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
27794
27795         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
27796         glitch reported by Ralf Wildenhues in
27797         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
27798
27799         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
27800         Vin Shelton.
27801
27802 2007-06-11  Bruno Haible  <bruno@clisp.org>
27803
27804         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
27805         replacement string.
27806         Reported by Eric Blake.
27807
27808 2007-06-10  Bruno Haible  <bruno@clisp.org>
27809
27810         Prepare vasnprintf code for use with Unicode strings.
27811         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
27812         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
27813         TYPE_U32_STRING.
27814         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
27815         a_u32_string variants.
27816         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
27817         * lib/printf-args.c: Don't include config.h and the specification
27818         header if PRINTF_FETCHARGS is already defined.
27819         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
27820         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
27821         TYPE_U16_STRING, TYPE_U32_STRING.
27822         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
27823         u16_directive, u16_directives, u32_directive, u32_directives): New
27824         types.
27825         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
27826         New declarations.
27827         * lib/printf-parse.c: Don't include config.h and the specification
27828         header if PRINTF_PARSE is already defined. Eliminate the set of
27829         parameters for WIDE_CHAR_VERSION; the user of this file must provide
27830         them now. Include c-ctype.h.
27831         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
27832         directive and CHAR_T_ONLY_ASCII.
27833         * lib/vasnprintf.c: Don't include config.h and the specification header
27834         if VASNPRINTF is already defined.
27835         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
27836         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
27837         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
27838         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
27839         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
27840         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
27841         code accordingly.
27842         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
27843         pad_ourselves also in this case, with the 'c' and 's' directives, and
27844         with a different notion of "width".
27845         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
27846
27847 2007-06-10  Bruno Haible  <bruno@clisp.org>
27848
27849         * modules/unistr/u32-mbsnlen: New file.
27850         * lib/unistr/u32-mbsnlen.c: New file.
27851
27852         * modules/unistr/u16-mbsnlen: New file.
27853         * lib/unistr/u16-mbsnlen.c: New file.
27854
27855         * modules/unistr/u8-mbsnlen: New file.
27856         * lib/unistr/u8-mbsnlen.c: New file.
27857
27858         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
27859         declarations.
27860
27861 2007-06-10  Bruno Haible  <bruno@clisp.org>
27862
27863         * lib/string_.h (mbsnlen): New declaration.
27864         * lib/mbsnlen.c: New file.
27865         * m4/mbsnlen.m4: New file.
27866         * modules/mbsnlen: New file.
27867         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
27868         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
27869         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
27870
27871 2007-06-10  Bruno Haible  <bruno@clisp.org>
27872
27873         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
27874
27875 2007-06-10  Bruno Haible  <bruno@clisp.org>
27876
27877         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
27878         * lib/mbuiter.h: Likewise.
27879
27880 2007-06-10  Bruno Haible  <bruno@clisp.org>
27881
27882         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
27883         declaration.
27884
27885 2007-06-10  Karl Berry  <karl@gnu.org>
27886
27887         * config/srclist.txt: remove gettext entries, Bruno prefers
27888         to update individually.
27889
27890 2007-06-10  Bruno Haible  <bruno@clisp.org>
27891
27892         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
27893         'maxlen'. Ensure only length + width bytes are allocated, not
27894         length + 1 + width.
27895
27896 2007-06-09  Bruno Haible  <bruno@clisp.org>
27897
27898         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
27899         (CHAR_T): Remove macro.
27900         (VASNPRINTF): Update.
27901
27902 2007-06-09  Bruno Haible  <bruno@clisp.org>
27903
27904         * MODULES.html.sh (Unicode string functions): Add the new modules.
27905
27906         * modules/uniconv/u32-conv-to-enc: New file.
27907         * lib/uniconv/u32-conv-to-enc.c: New file.
27908         * modules/uniconv/u32-conv-to-enc-tests: New file.
27909         * tests/uniconv/test-u32-conv-to-enc.c: New file.
27910
27911         * modules/uniconv/u16-conv-to-enc: New file.
27912         * lib/uniconv/u16-conv-to-enc.c: New file.
27913         * lib/uniconv/u-conv-to-enc.h: New file.
27914         * modules/uniconv/u16-conv-to-enc-tests: New file.
27915         * tests/uniconv/test-u16-conv-to-enc.c: New file.
27916
27917         * modules/uniconv/u8-conv-to-enc: New file.
27918         * lib/uniconv/u8-conv-to-enc.c: New file.
27919         * modules/uniconv/u8-conv-to-enc-tests: New file.
27920         * tests/uniconv/test-u8-conv-to-enc.c: New file.
27921
27922         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
27923         u32_conv_to_encoding): New declarations.
27924
27925 2007-06-09  Bruno Haible  <bruno@clisp.org>
27926
27927         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
27928
27929 2007-06-09  Bruno Haible  <bruno@clisp.org>
27930
27931         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
27932         * modules/malloca: Renamed from modules/allocsa, updated.
27933         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
27934         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
27935         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
27936         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
27937         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
27938         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
27939         * modules/xmalloca: Renamed from modules/xallocsa, updated.
27940         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
27941         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
27942         * modules/c-strcasestr (Depends-on): Update.
27943         * lib/c-strcasestr.c: Update.
27944         * modules/c-strstr (Depends-on): Update.
27945         * lib/c-strstr.c: Update.
27946         * modules/canonicalize-lgpl (Depends-on): Update.
27947         * lib/canonicalize-lgpl.c: Update.
27948         * modules/clean-temp (Depends-on): Update.
27949         * lib/clean-temp.c: Update.
27950         * modules/csharpcomp (Depends-on): Update.
27951         * lib/csharpcomp.c: Update.
27952         * modules/csharpexec (Depends-on): Update.
27953         * lib/csharpexec.c: Update.
27954         * modules/javacomp (Depends-on): Update.
27955         * lib/javacomp.c: Update.
27956         * modules/javaexec (Depends-on): Update.
27957         * lib/javaexec.c: Update.
27958         * modules/mbscasestr (Depends-on): Update.
27959         * lib/mbscasestr.c: Update.
27960         * modules/mbsstr (Depends-on): Update.
27961         * lib/mbsstr.c: Update.
27962         * modules/setenv (Depends-on): Update.
27963         * lib/setenv.c: Update.
27964         * modules/strcasestr (Depends-on): Update.
27965         * lib/strcasestr.c: Update.
27966         * modules/striconveha (Depends-on): Update.
27967         * lib/striconveha.c: Update.
27968         * modules/relocatable-prog-wrapper (Files): Update.
27969         * lib/relocwrapper.c: Update.
27970         * build-aux/install-reloc: Update.
27971         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
27972
27973 2007-06-08  Bruno Haible  <bruno@clisp.org>
27974
27975         Port to uClibc.
27976         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
27977         * lib/fpurge.c (fpurge): Likewise.
27978         * lib/freading.c (freading): Likewise.
27979         * lib/fseeko.c (rpl_fseeko): Likewise.
27980         * lib/fseterr.c (fseterr): Likewise.
27981         * lib/fwriting.c (fwriting): Likewise.
27982         * tests/test-fflush.c (main): Avoid a failure on uClibc.
27983
27984 2007-06-08  Bruno Haible  <bruno@clisp.org>
27985
27986         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
27987         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
27988         * modules/gettext (Files): Add m4/intlmacosx.m4.
27989
27990 2007-06-07  Bruno Haible  <bruno@clisp.org>
27991
27992         * modules/localename-tests: New file.
27993         * tests/test-localename.c: New file.
27994
27995         New module 'localename'.
27996         * lib/localename.h: New file.
27997         * lib/localename.c: New file, from GNU gettext.
27998         * m4/localename.m4: New file.
27999         * modules/localename: New file.
28000
28001 2007-06-07  Bruno Haible  <bruno@clisp.org>
28002
28003         Work around the lack of <wchar.h> on some builds of uClibc.
28004         * doc/headers/wchar.texi: Update.
28005         * lib/wchar_.h: Include <wchar.h> only if it exists.
28006         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
28007         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
28008         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
28009         doesn't exist.
28010         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
28011         * modules/mbfile (Depends-on): Add wchar.
28012         * modules/mbiter (Depends-on): Likewise.
28013         * modules/mbuiter (Depends-on): Likewise.
28014         Reported by Simon Josefsson.
28015
28016 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
28017
28018         Work around problem reported by Steven M. Schweda in
28019         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
28020         Tru64 5.1B with the Compaq compiler environment installed declares
28021         an 'isblank' function but does not define it in the C library.
28022         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
28023         * lib/regex_internal.h (isblank): Likewise.
28024         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
28025         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28026
28027 2007-06-05  Bruno Haible  <bruno@clisp.org>
28028
28029         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
28030         ia64.
28031         * modules/printf-safe: New file.
28032         * modules/fprintf-posix (Depends-on): Add printf-safe.
28033         * modules/printf-posix (Depends-on): Likewise.
28034         * modules/snprintf-posix (Depends-on): Likewise.
28035         * modules/sprintf-posix (Depends-on): Likewise.
28036         * modules/vasnprintf-posix (Depends-on): Likewise.
28037         * modules/vasprintf-posix (Depends-on): Likewise.
28038         * modules/vfprintf-posix (Depends-on): Likewise.
28039         * modules/vprintf-posix (Depends-on): Likewise.
28040         * modules/vsnprintf-posix (Depends-on): Likewise.
28041         * modules/vsprintf-posix (Depends-on): Likewise.
28042         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
28043         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
28044         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
28045         "no" on i386, x86_64, ia64.
28046         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
28047         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
28048         on i386, x86_64, ia64.
28049         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
28050         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
28051         on i386, x86_64, ia64.
28052         * tests/test-vasnprintf-posix.c: Include float.h.
28053         (LDBL80_WORDS): New macro.
28054         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
28055         on i386, x86_64, ia64.
28056         * tests/test-vasprintf-posix.c: Include float.h.
28057         (LDBL80_WORDS): New macro.
28058         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
28059         on i386, x86_64, ia64.
28060         * tests/test-snprintf-posix.c: Include float.h.
28061         * tests/test-sprintf-posix.c: Likewise.
28062         * tests/test-vsnprintf-posix.c: Likewise.
28063         * tests/test-vsprintf-posix.c: Likewise.
28064
28065 2007-06-05  Bruno Haible  <bruno@clisp.org>
28066
28067         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
28068         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
28069         non-IEEE numbers on i386, x86_64, ia64.
28070         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
28071         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
28072         * tests/test-isnanl.h: Include float.h.
28073         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
28074
28075 2007-06-05  Bruno Haible  <bruno@clisp.org>
28076
28077         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
28078         also the %a / %A. Handle the %a / %A code before this extra handling.
28079
28080 2007-06-05  Bruno Haible  <bruno@clisp.org>
28081
28082         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
28083         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
28084
28085 2007-06-05  Bruno Haible  <bruno@clisp.org>
28086
28087         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
28088         typo in variable name.
28089
28090 2007-06-05  Eric Blake  <ebb9@byu.net>
28091
28092         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
28093         Reported by Simon Josefsson.
28094
28095 2007-06-04  Bruno Haible  <bruno@clisp.org>
28096
28097         Avoid test failures on some PowerPC platforms.
28098         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
28099         Define differently for PowerPC.
28100         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
28101         Reported by Gary V. Vaughan <gary@gnu.org>.
28102
28103 2007-06-02  Bruno Haible  <bruno@clisp.org>
28104
28105         Fix test-stdint failure on FreeBSD/ia64.
28106         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
28107         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
28108         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
28109         * doc/headers/stdint.texi: Update.
28110
28111 2007-06-01  Bruno Haible  <bruno@clisp.org>
28112
28113         * tests/test-binary-io.c (main): Pass a third argument to open().
28114         Reported by Gary V. Vaughan <gary@gnu.org>.
28115
28116 2007-06-01  Bruno Haible  <bruno@clisp.org>
28117
28118         * doc/functions/frexpl.texi: Update for mingw.
28119
28120 2007-06-01  Bruno Haible  <bruno@clisp.org>
28121
28122         * tests/test-lseek.c (main): Disable test of errno for invalid third
28123         argument.
28124         * doc/functions/lseek.texi: Update.
28125         Reported by Gary V. Vaughan <gary@gnu.org>.
28126
28127 2007-05-28  Bruno Haible  <bruno@clisp.org>
28128
28129         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
28130
28131 2007-05-31  Eric Blake  <ebb9@byu.net>
28132
28133         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
28134         cross compiling.
28135
28136 2007-05-30  Eric Blake  <ebb9@byu.net>
28137         and Bruno Haible  <bruno@clisp.org>
28138
28139         Work around mingw test failures exposed by m4-1.4.9b.
28140         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
28141         * tests/test-unistd.c: Disable uid_t and git_t tests for the
28142         moment.
28143
28144 2007-05-30  Bruno Haible  <bruno@clisp.org>
28145
28146         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
28147         assuming that they are closed. Needed on HP-UX 11.
28148
28149 2007-05-29  Bruno Haible  <bruno@clisp.org>
28150
28151         Fix a problem with #include_next.
28152         * lib/dirent_.h: Split the double-inclusion guard.
28153         * lib/fcntl_.h: Likewise.
28154         * lib/float_.h: Likewise.
28155         * lib/iconv_.h: Likewise.
28156         * lib/inttypes_.h: Likewise.
28157         * lib/locale_.h: Likewise.
28158         * lib/math_.h: Likewise.
28159         * lib/netinet_in_.h: Likewise.
28160         * lib/search_.h: Likewise.
28161         * lib/signal_.h: Likewise.
28162         * lib/stdint_.h: Likewise.
28163         * lib/stdio_.h: Likewise.
28164         * lib/stdlib_.h: Likewise.
28165         * lib/string_.h: Likewise.
28166         * lib/sys_select_.h: Likewise.
28167         * lib/sys_socket_.h: Likewise.
28168         * lib/sys_stat_.h: Likewise.
28169         * lib/sys_time_.h: Likewise.
28170         * lib/sysexits_.h: Likewise.
28171         * lib/time_.h: Likewise.
28172         * lib/unistd_.h: Likewise.
28173         * lib/wchar_.h: Likewise.
28174         * lib/wctype_.h: Likewise.
28175
28176 2007-05-29  Bruno Haible  <bruno@clisp.org>
28177
28178         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
28179         for the moment.
28180
28181 2007-05-29  Bruno Haible  <bruno@clisp.org>
28182
28183         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
28184         invocation.
28185         Reported by Eric Blake.
28186
28187 2007-05-29  Bruno Haible  <bruno@clisp.org>
28188
28189         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
28190         compiling case.
28191
28192 2007-05-29  Eric Blake  <ebb9@byu.net>
28193             Bruno Haible  <bruno@clisp.org>
28194
28195         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
28196         cross compiles.
28197
28198 2007-05-28  Eric Blake  <ebb9@byu.net>
28199
28200         * modules/closein-tests (test_closein_LDADD): Support test on
28201         cygwin with libtool.
28202
28203 2007-05-28  Bruno Haible  <bruno@clisp.org>
28204
28205         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
28206         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
28207         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
28208         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
28209         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
28210         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
28211         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
28212         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
28213         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
28214
28215 2007-05-28  Eric Blake  <ebb9@byu.net>
28216
28217         Unconditionally include <config.h> in unit tests.
28218         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
28219         * tests/test-allocsa.c, tests/test-arcfour.c,
28220         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
28221         tests/test-array_list.c, tests/test-array_oset.c,
28222         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
28223         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
28224         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
28225         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
28226         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
28227         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
28228         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
28229         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
28230         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
28231         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
28232         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
28233         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
28234         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
28235         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
28236         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
28237         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
28238         test-md5.c, test-memmem.c, test-printf-posix.c,
28239         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
28240         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
28241         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
28242         test-strcasestr.c, test-striconv.c, test-striconveh.c,
28243         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
28244         test-vasnprintf-posix2.c, test-vasnprintf.c,
28245         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
28246         test-vfprintf-posix.c, test-vprintf-posix.c,
28247         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
28248         test-xvasprintf.c: Likewise.
28249
28250 2007-05-28  Bruno Haible  <bruno@clisp.org>
28251
28252         * gnulib-tool (func_import): Remember the --with-tests command-line
28253         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
28254         Reported by Eric Blake.
28255
28256 2007-05-28  Bruno Haible  <bruno@clisp.org>
28257
28258         * modules/ftell-tests: New file.
28259         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
28260         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
28261
28262         * lib/ftell.c: New file.
28263         * modules/ftell: New file.
28264         * m4/ftell.m4: New file.
28265         * doc/functions/ftell.texi: Update.
28266         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
28267         REPLACE_FTELL.
28268         * lib/stdio_.h (rpl_ftell): New declaration.
28269         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
28270         REPLACE_FTELL.
28271
28272 2007-05-28  Eric Blake  <ebb9@byu.net>
28273
28274         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
28275
28276 2007-05-28  Bruno Haible  <bruno@clisp.org>
28277
28278         * modules/fseek-tests: New file.
28279         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
28280         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
28281
28282         * lib/fseek.c: New file.
28283         * modules/fseek: New file.
28284         * m4/fseek.m4: New file.
28285         * doc/functions/fseek.texi: Update.
28286         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
28287         REPLACE_FSEEK.
28288         * lib/stdio_.h (rpl_fseek): New declaration.
28289         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
28290         REPLACE_FSEEK.
28291
28292 2007-05-28  Bruno Haible  <bruno@clisp.org>
28293
28294         * lib/stdio_.h (fflush): More comments.
28295
28296 2007-05-28  Bruno Haible  <bruno@clisp.org>
28297
28298         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
28299         runtime test.
28300
28301 2007-05-28  Eric Blake  <ebb9@byu.net>
28302
28303         Improve lseek module.
28304         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
28305         * lib/unistd_.h (lseek): Scale back link warning message.
28306         * tests/test-lseek.c: Beef up test.
28307         * tests/test-lseek.sh: Exercise more facets of lseek.
28308         Reported by Bruno Haible.
28309
28310 2007-05-28  Bruno Haible  <bruno@clisp.org>
28311
28312         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
28313         to define.
28314
28315 2007-05-27  Bruno Haible  <bruno@clisp.org>
28316
28317         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
28318
28319 2007-05-27  Bruno Haible  <bruno@clisp.org>
28320
28321         * modules/openmp: New file.
28322         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
28323         Noah Misch.
28324
28325 2007-05-26  Bruno Haible  <bruno@clisp.org>
28326
28327         * modules/chdir-long (Depends-on): Add fchdir.
28328         * modules/chdir-safer (Depends-on): Likewise.
28329         * modules/fts (Depends-on): Likewise.
28330         * modules/fts-lgpl (Depends-on): Likewise.
28331         * modules/openat (Depends-on): Likewise.
28332         * modules/savewd (Depends-on): Likewise.
28333
28334 2007-05-24  Eric Blake  <ebb9@byu.net>
28335
28336         Fix lseek on mingw.
28337         * modules/lseek: New module.
28338         * m4/lseek.m4: New file.
28339         * lib/lseek.c: New file.
28340         * modules/lseek-tests: New file.
28341         * tests/test-lseek.c: New file.
28342         * tests/test-lseek.sh: New file.
28343         * MODULES.html.sh: Document lseek module.
28344         * modules/fflush (Depends-on): Add lseek, fseeko.
28345         * modules/fseeko (Depends-on): Likewise.
28346         * modules/ftello (Depends-on): Likewise.
28347         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
28348         broken.
28349         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
28350         broken.
28351         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
28352         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
28353         * lib/ftello.c (rpl_ftello): Likewise.
28354         * tests/test-fseeko.c (main): Test this.
28355         * tests/test-fseeko.sh: Likewise.
28356         * tests/test-ftello.c (main): Likewise.
28357         * tests/test-ftello.sh: Likewise.
28358         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
28359         implies replacing fseek.
28360         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
28361         HAVE_FTELLO.
28362         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
28363         * modules/unistd (Makefile.am): Likewise.
28364         * lib/unistd_.h (lseek): Declare a replacement.
28365         * doc/functions/lseek.texi (lseek): Document this fix.
28366         * doc/functions/fseek.texi (fseek): Likewise.
28367         * doc/functions/ftell.texi (ftell): Likewise.
28368
28369 2007-05-24  Bruno Haible  <bruno@clisp.org>
28370
28371         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
28372         in the printed representation of a NaN.
28373         * tests/test-vasprintf-posix.c (test_function): Likewise.
28374         * tests/test-snprintf-posix.h (test_function): Likewise.
28375         * tests/test-sprintf-posix.h (test_function): Likewise.
28376         Reported by Eric Blake.
28377
28378 2007-05-23  Eric Blake  <ebb9@byu.net>
28379
28380         Fix fseeko/ftello on cygwin 1.5.24.
28381         * doc/functions/fseeko.texi (fseeko): Document the fix.
28382         * doc/functions/ftello.texi (ftello): Document the fix.
28383         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
28384         * doc/functions/stdout.text (stdout): New file.
28385         * doc/functions/stderr.text (stderr): New file.
28386         * doc/gnulib.texi (Function Substitutes): Use new files.
28387         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
28388         prior to 1.7.0.
28389         * tests/test-ftello.c (main): Likewise for ftello.
28390         * tests/test-fseeko.sh: New file.
28391         * tests/test-ftello.sh: New file.
28392         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
28393         with seekable stdin.
28394         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
28395         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
28396         (gl_REPLACE_FSEEKO): New macro.
28397         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
28398         * modules/fseeko (Files): Distribute fseeko.c.
28399         * modules/ftello (Files): Distribute ftello.c.
28400         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
28401         mode.
28402         * lib/ftello.c (rpl_ftello): New file.
28403         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
28404         fseeko, ftello.
28405         (gl_STDIN_LARGE_OFFSET): New macro.
28406         * modules/stdio (Makefile.am): Perform the replacement.
28407         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
28408
28409 2007-05-23  Bruno Haible  <bruno@clisp.org>
28410
28411         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
28412         GNULIB_POSIXCHECK is defined.
28413
28414 2007-05-21  Bruno Haible  <bruno@clisp.org>
28415
28416         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
28417         Check also the output for NaN arguments. When cross-compiling, guess
28418         no on IRIX.
28419         * lib/vasnprintf.c: Update comments.
28420         * tests/test-vasnprintf-posix.c (strisnan): New function.
28421         (test_function): Use it.
28422         * tests/test-vasprintf-posix.c (strisnan): New function.
28423         (test_function): Use it.
28424         * tests/test-snprintf-posix.h (strisnan): New function.
28425         (test_function): Use it.
28426         * tests/test-sprintf-posix.h (strisnan): New function.
28427         (test_function): Use it.
28428         Reported by Eric Blake.
28429
28430 2007-05-20  Bruno Haible  <bruno@clisp.org>
28431
28432         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
28433         numbers that fails on BeOS.
28434         * doc/functions/frexpl.texi: Update.
28435
28436 2007-05-20  Jim Meyering  <jim@meyering.net>
28437
28438         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
28439         forced upon us by glibc-2.6.
28440
28441 2007-05-20  Bruno Haible  <bruno@clisp.org>
28442
28443         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
28444         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
28445         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
28446         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
28447         NEED_PRINTF_INFINITE.
28448         (is_infinitel): New function.
28449         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
28450         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
28451         gl_PREREQ_VASNPRINTF_INFINITE.
28452         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
28453         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28454         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
28455         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
28456         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
28457         gl_PREREQ_VASNPRINTF_INFINITE.
28458         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28459         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28460         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28461         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28462         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28463         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28464         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28465         * doc/functions/fprintf.texi: Update.
28466         * doc/functions/printf.texi: Update.
28467         * doc/functions/snprintf.texi: Update.
28468         * doc/functions/sprintf.texi: Update.
28469         * doc/functions/vfprintf.texi: Update.
28470         * doc/functions/vprintf.texi: Update.
28471         * doc/functions/vsnprintf.texi: Update.
28472         * doc/functions/vsprintf.texi: Update.
28473
28474 2007-05-20  Bruno Haible  <bruno@clisp.org>
28475
28476         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
28477         was not found in libc.
28478         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28479
28480 2007-05-20  Bruno Haible  <bruno@clisp.org>
28481
28482         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
28483         printed as "-nan" instead of "nan".
28484         * tests/test-vasprintf-posix.c (test_function): Likewise.
28485         * tests/test-snprintf-posix.h (test_function): Likewise.
28486         * tests/test-sprintf-posix.h (test_function): Likewise.
28487         Needed for HP-UX 11.
28488
28489 2007-05-20  Jim Meyering  <jim@meyering.net>
28490
28491         Fix buggy test for the fchownat-deref bug.
28492         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
28493         symlink required for the run-test.  Without it, this test would
28494         always declare that fchownat doesn't work, and client code would
28495         unnecessarily use the replacement function with fixed libc.
28496         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
28497         Reported by Greg Schafer.
28498
28499 2007-05-19  Bruno Haible  <bruno@clisp.org>
28500
28501         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
28502         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
28503         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
28504         Needed for IRIX 6.5 and Solaris 2.5.1.
28505
28506 2007-05-19  Bruno Haible  <bruno@clisp.org>
28507
28508         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
28509         (test_function): Skip tests involving -0.0 on platforms where
28510         -0.0 = 0.0.
28511         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
28512         (test_function): Skip tests involving -0.0 on platforms where
28513         -0.0 = 0.0.
28514         * tests/test-snprintf-posix.h (have_minus_zero): New function.
28515         (test_function): Skip tests involving -0.0 on platforms where
28516         -0.0 = 0.0.
28517         * tests/test-sprintf-posix.h (have_minus_zero): New function.
28518         (test_function): Skip tests involving -0.0 on platforms where
28519         -0.0 = 0.0.
28520         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
28521         tests.
28522         * tests/test-printf-posix.h (test_function): Likewise.
28523         * tests/test-printf-posix.output: Remove all -0.0 related results.
28524         Needed for IRIX 6.5.
28525
28526 2007-05-19  Bruno Haible  <bruno@clisp.org>
28527
28528         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
28529         printed as "nan0x7fffffff" instead of "nan".
28530         * tests/test-vasprintf-posix.c (test_function): Likewise.
28531         * tests/test-snprintf-posix.h (test_function): Likewise.
28532         * tests/test-sprintf-posix.h (test_function): Likewise.
28533         * tests/test-fprintf-posix.h (NaN): Remove macro.
28534         (test_function): Remove all NaN related tests.
28535         * tests/test-printf-posix.h (NaN): Remove macro.
28536         (test_function): Remove all NaN related tests.
28537         * tests/test-printf-posix.output: Remove all NaN related results.
28538         Needed for IRIX 6.5.
28539
28540 2007-05-19  Bruno Haible  <bruno@clisp.org>
28541
28542         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
28543         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
28544
28545 2007-05-19  Bruno Haible  <bruno@clisp.org>
28546
28547         * lib/float_.h: New file.
28548         * m4/float_h.m4: New file.
28549         * modules/float: New file.
28550         * modules/isnanl (Dependencies): Add float.
28551         * modules/isnanl-nolibm (Dependencies): Likewise.
28552         * modules/mathl (Dependencies): Likewise.
28553         * modules/printf-frexpl (Dependencies): Likewise.
28554         * modules/signbit (Dependencies): Likewise.
28555         * modules/vasnprintf (Dependencies): Likewise.
28556         * doc/headers/float.texi: Update.
28557
28558 2007-05-19  Jim Meyering  <jim@meyering.net>
28559
28560         * lib/utimens.c (gl_futimens): Rename from futimens,
28561         now that glibc-2.6 declares futimens.
28562         * lib/utimens.h: Likewise.
28563
28564 2007-05-19  Bruno Haible  <bruno@clisp.org>
28565
28566         Avoid test failures on mingw.
28567         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
28568         * tests/test-printf-posix.sh: Likewise.
28569         * tests/test-vfprintf-posix.sh: Likewise.
28570         * tests/test-vprintf-posix.sh: Likewise.
28571
28572 2007-05-19  Bruno Haible  <bruno@clisp.org>
28573
28574         Fix *printf result for NaN, Inf, -0.0 on mingw.
28575         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
28576         * lib/vasnprintf.c: Include math.h and isnan.h.
28577         (is_infinite_or_zero): New function.
28578         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
28579         values in the %f, %F, %e, %E, %g, %G directives.
28580         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
28581         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28582         gl_PRINTF_INFINITE and test its result. Invoke
28583         gl_PREREQ_VASNPRINTF_INFINITE.
28584         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28585         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28586         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28587         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28588         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28589         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28590         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28591         * doc/functions/fprintf.texi: Update.
28592         * doc/functions/printf.texi: Update.
28593         * doc/functions/snprintf.texi: Update.
28594         * doc/functions/sprintf.texi: Update.
28595         * doc/functions/vfprintf.texi: Update.
28596         * doc/functions/vprintf.texi: Update.
28597         * doc/functions/vsnprintf.texi: Update.
28598         * doc/functions/vsprintf.texi: Update.
28599
28600 2007-05-19  Bruno Haible  <bruno@clisp.org>
28601
28602         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
28603         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
28604         Instead of multiplying with 10^k, set extra_zeroes to k.
28605         (scale10_round_long_double): Remove function.
28606
28607 2007-05-18  Bruno Haible  <bruno@clisp.org>
28608
28609         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
28610         introduced on 2007-05-06.
28611
28612 2007-05-18  Bruno Haible  <bruno@clisp.org>
28613
28614         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
28615         %g directives.
28616         * tests/test-vasprintf-posix.c (test_function): Likewise.
28617         * tests/test-snprintf-posix.h (test_function): Likewise.
28618         * tests/test-sprintf-posix.h (test_function): Likewise.
28619
28620 2007-05-18  Bruno Haible  <bruno@clisp.org>
28621
28622         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
28623         (strmatch): New function.
28624         (test_function): Test the %f directive on numbers of various exponents.
28625         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
28626         (strmatch): New function.
28627         (test_function): Test the %f directive on numbers of various exponents.
28628         * tests/test-snprintf-posix.h (strmatch): New function.
28629         (test_function): Test the %f directive on numbers of various exponents.
28630         * tests/test-sprintf-posix.h (strmatch): New function.
28631         (test_function): Test the %f directive on numbers of various exponents.
28632         * tests/test-snprintf-posix.c (SIZEOF): New macro.
28633         * tests/test-sprintf-posix.c (SIZEOF): New macro.
28634         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
28635         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
28636
28637 2007-05-18  Bruno Haible  <bruno@clisp.org>
28638
28639         Add support for 'long double' number output.
28640         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
28641         * lib/vasnprintf.c: Include math.h and float+.h.
28642         (mp_limb_t): New type.
28643         (GMP_LIMB_BITS): New macro.
28644         (mp_twolimb_t): New type.
28645         (GMP_TWOLIMB_BITS): New macro.
28646         (mpn_t): New type.
28647         (multiply, divide, convert_to_decimal, decode_long_double,
28648         scale10_round_long_double, scale10_round_decimal_long_double,
28649         floorlog10l): New functions.
28650         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
28651         for the %f, %F, %e, %E, %g, %G directives.
28652         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
28653         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28654         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
28655         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
28656         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28657         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28658         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28659         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28660         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28661         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28662         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28663         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
28664         * modules/snprintf-posix (Depends-on): Likewise.
28665         * modules/sprintf-posix (Depends-on): Likewise.
28666         * modules/vasnprintf-posix (Depends-on): Likewise.
28667         * modules/vasprintf-posix (Depends-on): Likewise.
28668         * modules/vfprintf-posix (Depends-on): Likewise.
28669         * modules/vsnprintf-posix (Depends-on): Likewise.
28670         * modules/vsprintf-posix (Depends-on): Likewise.
28671         * modules/vasnprintf (Files): Add lib/float+.h.
28672         * doc/functions/fprintf.texi: Update.
28673         * doc/functions/printf.texi: Update.
28674         * doc/functions/snprintf.texi: Update.
28675         * doc/functions/sprintf.texi: Update.
28676         * doc/functions/vfprintf.texi: Update.
28677         * doc/functions/vprintf.texi: Update.
28678         * doc/functions/vsnprintf.texi: Update.
28679         * doc/functions/vsprintf.texi: Update.
28680
28681 2007-05-18  Bruno Haible  <bruno@clisp.org>
28682
28683         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
28684
28685 2007-05-18  Bruno Haible  <bruno@clisp.org>
28686
28687         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
28688         for printing 64-bit integers. Needed for mingw.
28689
28690 2007-05-18  Bruno Haible  <bruno@clisp.org>
28691
28692         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
28693         gl_FUNC_FREXPL_WORKS.
28694         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
28695
28696 2007-05-18  Bruno Haible  <bruno@clisp.org>
28697
28698         * modules/frexpl-nolibm-tests: New file.
28699
28700         * modules/frexpl-nolibm: New file.
28701         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
28702
28703 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
28704
28705         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
28706         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
28707         GCC 4.2, which otherwise issues a lot of warnings.
28708         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
28709         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
28710         Likewise.
28711         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
28712         * modules/iconv_open (iconv.h): Likewise.
28713         * modules/locale (locale.h): Likewise.
28714         * modules/netinet_in (netinet/in.h): Likewise.
28715         * modules/sys_select (sys_select.h): Likewise.
28716         * modules/sys_socket (sys/socket.h): Likewise.
28717         * modules/sys_stat (sys/stat.h): Likewise.
28718         * modules/sysexits (sysexits.h): Likewise.
28719         * modules/unistd (unistd.h): Likewise.
28720
28721 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28722
28723         * modules/closein-tests (Makefile.am): Distribute
28724         `test-closein.sh'.
28725
28726 2007-05-17  Bruno Haible  <bruno@clisp.org>
28727
28728         * tests/test-printf-posix.output: Renamed from
28729         tests/test-fprintf-posix.out.
28730         * modules/fprintf-posix-tests: Update.
28731         * modules/printf-posix-tests: Update.
28732         * modules/vfprintf-posix-tests: Update.
28733         * modules/vprintf-posix-tests: Update.
28734         * tests/test-fprintf-posix.sh: Update.
28735         * tests/test-printf-posix.sh: Update.
28736         * tests/test-vfprintf-posix.sh: Update.
28737         * tests/test-vprintf-posix.sh: Update.
28738         Reported by Ralf Wildenhues.
28739
28740 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
28741
28742         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
28743         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
28744         GCC 4.2, which otherwise issues a lot of warnings.
28745         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
28746         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
28747         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
28748         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
28749         it should no longer be needed.
28750         * lib/string_.h: Likewise.
28751         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
28752         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
28753         * modules/inttypes (inttypes.h): Likewise.
28754         * modules/math (math.h): Likewise.
28755         * modules/search (search.h): Likewise.
28756         * modules/signal (signal.h): Likewise.
28757         * modules/stdint (stdint.h): Likewise.
28758         * modules/stdio (stdio.h): Likewise.
28759         * modules/stdlib (stdlib.h): Likewise.
28760         * modules/string (string.h): Likewise.
28761         * modules/sys_time (sys/time.h): Likewise.
28762         * modules/time (time.h): Likewise.
28763         * modules/wchar (wchar.h): Likewise.
28764         * modules/wctype (wtype.h): Likewise.
28765
28766 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28767
28768         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
28769
28770 2007-05-13  Bruno Haible  <bruno@clisp.org>
28771
28772         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
28773         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28774         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
28775         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
28776         (gl_PREREQ_STRTOK_R): Don't require it here.
28777
28778 2007-05-13  Bruno Haible  <bruno@clisp.org>
28779
28780         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
28781         when used in C++ mode.
28782
28783 2007-05-12  Bruno Haible  <bruno@clisp.org>
28784
28785         * lib/linebuffer.h: Tweak doc.
28786         * lib/linebuffer.c: Likewise.
28787
28788 2007-05-12  James Youngman  <jay@gnu.org>
28789
28790         * lib/linebuffer.c (readlinebuffer_delim): New function,
28791         like readlinebuffer, but use a caller-specified delimiter.
28792         (readlinebuffer): Just call readlinebuffer_delim with '\n'
28793         as the delimiter.
28794         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
28795
28796 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
28797
28798         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
28799         * modules/openat (Files): Remove openat-die.c.
28800         (Depends-on): Add openat-die.
28801         * modules/openat-die: New module.
28802
28803 2007-05-06  Bruno Haible  <bruno@clisp.org>
28804
28805         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
28806         Update with info about Cygwin.
28807         * doc/functions/fprintf.texi: Update.
28808         * doc/functions/printf.texi: Update.
28809         * doc/functions/snprintf.texi: Update.
28810         * doc/functions/sprintf.texi: Update.
28811         * doc/functions/vfprintf.texi: Update.
28812         * doc/functions/vprintf.texi: Update.
28813         * doc/functions/vsnprintf.texi: Update.
28814         * doc/functions/vsprintf.texi: Update.
28815         Reported by Eric Blake.
28816
28817 2007-05-06  Bruno Haible  <bruno@clisp.org>
28818
28819         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
28820         padding ourselves for the floating-point directives.
28821         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
28822         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
28823         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
28824         gl_PRINTF_FLAG_ZERO and test its result. Invoke
28825         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
28826         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28827         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
28828         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28829         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28830         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28831         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28832         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28833         * tests/test-snprintf-posix.h (test_function): Also check the width
28834         and some flags in the %f directive.
28835         * tests/test-sprintf-posix.h (test_function): Likewise.
28836         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28837         * tests/test-vasprintf-posix.c (test_function): Likewise.
28838         * doc/functions/fprintf.texi: Update.
28839         * doc/functions/printf.texi: Update.
28840         * doc/functions/snprintf.texi: Update.
28841         * doc/functions/sprintf.texi: Update.
28842         * doc/functions/vfprintf.texi: Update.
28843         * doc/functions/vprintf.texi: Update.
28844         * doc/functions/vsnprintf.texi: Update.
28845         * doc/functions/vsprintf.texi: Update.
28846
28847 2007-05-06  Bruno Haible  <bruno@clisp.org>
28848
28849         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
28850         pass the ' flag character to sprintf or snprintf.
28851         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
28852         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
28853         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
28854         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
28855         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
28856         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28857         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
28858         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28859         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28860         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28861         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28862         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28863         * tests/test-snprintf-posix.h (test_function): Also check the grouping
28864         flag.
28865         * tests/test-sprintf-posix.h (test_function): Likewise.
28866         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28867         * tests/test-vasprintf-posix.c (test_function): Likewise.
28868         * doc/functions/fprintf.texi: Update.
28869         * doc/functions/printf.texi: Update.
28870         * doc/functions/snprintf.texi: Update.
28871         * doc/functions/sprintf.texi: Update.
28872         * doc/functions/vfprintf.texi: Update.
28873         * doc/functions/vprintf.texi: Update.
28874         * doc/functions/vsnprintf.texi: Update.
28875         * doc/functions/vsprintf.texi: Update.
28876
28877 2007-05-01  Bruno Haible  <bruno@clisp.org>
28878
28879         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
28880
28881 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
28882
28883         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
28884         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
28885
28886 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
28887
28888         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
28889         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
28890         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
28891
28892 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
28893
28894         * lib/argp-help.c (struct hol_entry): New member `ord'.
28895         (HOL_ENTRY_PTRCMP): Use ord for comparison
28896         (hol_sort): Initialize ord.
28897
28898 2007-05-01  Bruno Haible  <bruno@clisp.org>
28899
28900         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
28901         Reported by Eric Blake.
28902         * doc/gnulib.texi (Function Substitutes): Update.
28903
28904 2007-05-01  Bruno Haible  <bruno@clisp.org>
28905
28906         * doc/functions.texi: Remove file, now redundant through
28907         doc/functions/*.texi.
28908
28909 2007-05-01  Bruno Haible  <bruno@clisp.org>
28910
28911         * modules/argp (Depends-on): Add sleep.
28912
28913 2007-05-01  Bruno Haible  <bruno@clisp.org>
28914
28915         * modules/sleep-tests: New file.
28916         * tests/test-sleep.c: New file.
28917
28918         * modules/sleep: New file.
28919         * lib/sleep.c: New file.
28920         * m4/sleep.m4: New file.
28921         * lib/unistd_.h (sleep): New declaration.
28922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
28923         HAVE_SLEEP.
28924         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
28925         * doc/functions/sleep.texi: Document the sleep module.
28926
28927 2007-05-01  Bruno Haible  <bruno@clisp.org>
28928
28929         * lib/sigprocmask.h: Remove file.
28930         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
28931         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
28932         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
28933         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
28934         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
28935         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
28936         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
28937         HAVE_SIGSET_T as a shell variable.
28938         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
28939         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
28940         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
28941         (Depends-on): Add signal. Remove verify.
28942         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
28943         (Include): Mention <signal.h> instead of sigprocmask.h.
28944         * NEWS: Mention the change.
28945         * lib/fatal-signal.c: Don't include sigprocmask.h.
28946
28947 2007-05-01  Bruno Haible  <bruno@clisp.org>
28948
28949         * modules/signal: New file.
28950         * lib/signal_.h: New file.
28951         * m4/signal_h.m4: New file.
28952
28953 2007-05-01  Bruno Haible  <bruno@clisp.org>
28954
28955         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
28956         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
28957         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
28958         HAVE_WCTYPE_CTMP_BUG into wctype.h.
28959
28960 2007-05-01  Bruno Haible  <bruno@clisp.org>
28961
28962         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
28963         configure time.
28964         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
28965         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
28966         * modules/sys_stat (Makefile.am): Substitute their values into
28967         sys/stat.h.
28968
28969 2007-05-01  Bruno Haible  <bruno@clisp.org>
28970
28971         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
28972         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
28973         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
28974
28975 2007-05-01  Bruno Haible  <bruno@clisp.org>
28976
28977         * doc/header/assert.texi: Undo last change: don't mention the gnulib
28978         'assert' module here.
28979
28980 2007-05-01  Bruno Haible  <bruno@clisp.org>
28981
28982         * doc/functions/*.texi: New files.
28983         * doc/functions/google-ranking.txt: New file.
28984         * doc/gnulib.texi (Function Substitutes): New chapter.
28985         (ctime, inet_ntoa): Remove sections.
28986         * doc/ctime.texi: Remove file.
28987         * doc/inet_ntoa.texi: Remove file.
28988         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
28989         dependencies.
28990         (%.info): New rule, specifying a --reference-limit.
28991
28992 2007-05-01  Bruno Haible  <bruno@clisp.org>
28993
28994         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
28995
28996 2007-05-01  Bruno Haible  <bruno@clisp.org>
28997
28998         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
28999         the portability of 'mkdir' to mingw systems.
29000
29001 2007-05-01  Bruno Haible  <bruno@clisp.org>
29002
29003         * doc/headers/google-ranking.txt: New file.
29004
29005 2007-04-30  Eric Blake  <ebb9@byu.net>
29006
29007         Prefer fseeko to fseek.
29008         * modules/getpass (Depends-on): Add fseeko.
29009         * lib/getpass.c (getpass): Use fseeko, not fseek.
29010
29011 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
29012
29013         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
29014         assumes the sorting is stable, while most qsort implementations
29015         are not.  Use argument addresses to ensure they never compare as
29016         equal.
29017
29018         * tests/test-argp-2.sh (usage-indent test): Fix output
29019         (func_compare): Restore diff options
29020         * tests/test-argp.c: Restore #include "progname.h"
29021
29022 2007-04-29  Bruno Haible  <bruno@clisp.org>
29023
29024         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
29025         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
29026         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
29027         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29028         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
29029         (configure.ac): Define CHECK_SNPRINTF_POSIX.
29030         (TESTS, check_PROGRAMS): Add test-snprintf.
29031         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
29032         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
29033         (TESTS, check_PROGRAMS): Add test-vsnprintf.
29034         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
29035         assertions that fail on HP-UX, OSF/1, or IRIX.
29036         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
29037
29038 2007-04-29  Bruno Haible  <bruno@clisp.org>
29039
29040         * MODULES.html.sh (posix_functions): Remove 'contents'.
29041
29042 2007-04-29  Karl Berry  <karl@gnu.org>
29043
29044         * config/srclist.txt (gendocs_template_min): new entry.
29045
29046 2007-04-29  Bruno Haible  <bruno@clisp.org>
29047
29048         Work around fpurge bug on BSD systems.
29049         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
29050         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
29051         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
29052         fpurge to rpl_fpurge if the system already has this function.
29053         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
29054         the case where the system already has this function. Correct invariants
29055         on BSD systems.
29056         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
29057         BSD systems.
29058
29059 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
29060
29061         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
29062         proposed by Sven Verdoolaege.
29063
29064         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
29065         options.
29066         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
29067         (usage and help tests): Update
29068
29069 2007-04-29  Bruno Haible  <bruno@clisp.org>
29070
29071         * tests/test-fflush.c (main): Use a file of size 17, not 10.
29072         Print more information in case of failure. Disable a test on BeOS.
29073
29074 2007-04-29  Bruno Haible  <bruno@clisp.org>
29075
29076         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
29077         This helps debugging on systems on which no gdb is available.
29078
29079 2007-04-29  Bruno Haible  <bruno@clisp.org>
29080
29081         * lib/freading.h: Improve comments.
29082         * lib/fwriting.h: Likewise.
29083         * tests/test-freading.c (main): Don't check freading immediately after
29084         repositioning. Needed for glibc.
29085
29086 2007-04-29  Bruno Haible  <bruno@clisp.org>
29087
29088         * lib/freading.c (freading): Trivial simplification.
29089
29090 2007-04-28  Bruno Haible  <bruno@clisp.org>
29091
29092         * tests/test-fwriting.c (main): Also test the interaction between
29093         fflush and fwriting.
29094         * modules/fwriting-tests (Depends-on): Add fflush.
29095
29096         * tests/test-freading.c (main): Also test the interaction between
29097         fflush and freading.
29098         * modules/freading-tests (Depends-on): Add fflush.
29099
29100 2007-04-28  Bruno Haible  <bruno@clisp.org>
29101
29102         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
29103         fseeko and ftello.
29104         Suggested by Eric Blake.
29105
29106 2007-04-28  Jim Meyering  <jim@meyering.net>
29107
29108         Avoid false-negative in gl_STDINT_H's C99 conformance test.
29109         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
29110         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
29111
29112 2007-04-27  Eric Blake  <ebb9@byu.net>
29113
29114         * doc/headers/assert.texi (assert.h): Document assert module use.
29115
29116 2007-04-27  Bruno Haible  <bruno@clisp.org>
29117
29118         * doc/headers/*.texi: New files.
29119         * doc/gnulib.texi (Header File Substitutes): New chapter.
29120         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
29121         dependencies.
29122         (standards.info ,standards.html, standards.dvi): Update dependencies.
29123         (mostlyclean, clean): New targets.
29124
29125 2007-04-27  Bruno Haible  <bruno@clisp.org>
29126
29127         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
29128         * modules/sysexits (Files, Makefile.am): Update.
29129
29130         * lib/sys_socket_.h: Renamed from lib/socket_.h.
29131         * modules/sys_socket (Files, Makefile.am): Update.
29132
29133         * lib/sys_stat_.h: Renamed from lib/stat_.h.
29134         * modules/sys_stat (Files, Makefile.am): Update.
29135
29136 2007-04-27  Eric Blake  <ebb9@byu.net>
29137
29138         * lib/freading.h: Improve comments.
29139         * lib/fwriting.h: Likewise.
29140         * lib/fflush.c: Likewise.
29141
29142         Fix closein for mingw.
29143         * modules/closein-tests: Add tests for closein.
29144         * tests/test-closein.c: New file.
29145         * tests/test-closein.sh: Likewise.
29146         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
29147         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
29148
29149 2007-04-27  Bruno Haible  <bruno@clisp.org>
29150
29151         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
29152         version is < 6.
29153         * lib/math_.h [__DECC]: Likewise.
29154         * lib/stdio_.h [__DECC]: Likewise.
29155         * lib/stdlib_.h [__DECC]: Likewise.
29156         * lib/string_.h [__DECC]: Likewise.
29157         * lib/time_.h [__DECC]: Likewise.
29158         * lib/wchar_.h [__DECC]: Likewise.
29159         * lib/wctype_.h [__DECC]: Likewise.
29160
29161 2007-04-27  Bruno Haible  <bruno@clisp.org>
29162
29163         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
29164
29165 2007-04-27  Bruno Haible  <bruno@clisp.org>
29166
29167         * lib/fflush.c: Add comments.
29168         * modules/fpurge-tests (Depends-on): Add fflush.
29169         * modules/freadable-tests (Depends-on): Likewise.
29170         * modules/fwritable-tests (Depends-on): Likewise.
29171
29172 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
29173
29174         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
29175         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
29176         Report by Bruno Haible <bruno@clisp.org>.
29177
29178 2007-04-26  Eric Blake  <ebb9@byu.net>
29179
29180         Fix fflush on mingw.
29181         * modules/fflush (Depends-on): Add freading.
29182         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
29183         but unread data.
29184
29185 2007-04-26  Eric Blake  <ebb9@byu.net>
29186         and Bruno Haible  <bruno@clisp.org>
29187
29188         Implement freading and fwriting.
29189         * lib/freading.c: New file.
29190         * lib/freading.h: Likewise.
29191         * m4/freading.m4: Likewise.
29192         * modules/freading: Likewise.
29193         * modules/freading-tests: Likewise.
29194         * tests/test-freading.c: Likewise.
29195         * lib/fwriting.c: New file.
29196         * lib/fwriting.h: Likewise.
29197         * m4/fwriting.m4: Likewise.
29198         * modules/fwriting: Likewise.
29199         * modules/fwriting-tests: Likewise.
29200         * tests/test-fwriting.c: Likewise.
29201         * MODULES.html.sh (File stream based Input/Output): Mention them.
29202
29203 2007-04-26  Bruno Haible  <bruno@clisp.org>
29204
29205         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
29206         'long' when we assume it.
29207         Suggested by Eric Blake.
29208
29209 2007-04-26  Bruno Haible  <bruno@clisp.org>
29210
29211         Ensure fseeko, ftello are declared on glibc systems.
29212         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
29213         * modules/fseeko (configure.ac-early): Likewise.
29214         * modules/ftello (configure.ac-early): Likewise.
29215         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
29216         AC_FUNC_FSEEKO for this.
29217         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
29218         (gl_CHECK_FSEEKO): Remove macro.
29219
29220 2007-04-26  Bruno Haible  <bruno@clisp.org>
29221
29222         * tests/test-fflush.c (main): Also check the ftell result after
29223         fflush and fseek/fseeko.
29224         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
29225         file descriptor position cache in the stream.
29226         * lib/fseeko.c (rpl_fseeko): Likewise.
29227
29228 2007-04-26  Bruno Haible  <bruno@clisp.org>
29229
29230         * modules/fflush-tests (Depends-on): Add fseeko.
29231
29232 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
29233             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29234
29235         * lib/argz_.h: ensure error_t definition is obtained in same
29236         mechanism system argz.h would have.
29237         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
29238         argz facilities are known bad.  Err on the side of caution if
29239         cross-compiling.
29240
29241 2007-04-25  Eric Blake  <ebb9@byu.net>
29242
29243         * lib/fpurge.c (includes): Use stdlib.h for free.
29244         * tests/test-fflush.c (main): Also test fflush-fseeko.
29245
29246 2007-04-25  Bruno Haible  <bruno@clisp.org>
29247
29248         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
29249         * lib/fseeko.c: New file.
29250         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
29251         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
29252         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
29253         gl_FUNC_FSEEKO.
29254         (gl_FUNC_FSEEKO): Invoke it.
29255         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
29256         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
29257         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
29258
29259 2007-04-25  Bruno Haible  <bruno@clisp.org>
29260
29261         * modules/fflush (Depends-on): Add ftello.
29262
29263 2007-04-25  Bruno Haible  <bruno@clisp.org>
29264
29265         * modules/ftello-tests: New file.
29266         * tests/test-ftello.c: New file.
29267
29268         * modules/ftello: New file.
29269         * m4/ftello.m4: New file.
29270         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
29271         HAVE_FTELLO.
29272         * lib/stdio_.h (ftello): New declaration.
29273         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
29274         HAVE_FTELLO.
29275
29276 2007-04-25  Bruno Haible  <bruno@clisp.org>
29277
29278         * modules/fseeko-tests: New file.
29279         * tests/test-fseeko.c: New file.
29280
29281         * modules/fseeko: New file.
29282         * m4/fseeko.m4: New file.
29283         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
29284         HAVE_FSEEKO.
29285         * lib/stdio_.h (fseeko): New declaration.
29286         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
29287         HAVE_FSEEKO.
29288
29289 2007-04-25  Bruno Haible  <bruno@clisp.org>
29290
29291         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
29292
29293 2007-04-25  Bruno Haible  <bruno@clisp.org>
29294
29295         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
29296         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
29297         * tests/test-unistd.c: Likewise.
29298         * tests/test-fcntl.c: Likewise.
29299
29300 2007-04-23  Eric Blake  <ebb9@byu.net>
29301
29302         * lib/fflush.c: Fix missing include.
29303         Reported by Bruno Haible.
29304
29305 2007-04-23  Bruno Haible  <bruno@clisp.org>
29306
29307         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
29308         Reported by Eric Blake.
29309
29310 2007-04-23  Bruno Haible  <bruno@clisp.org>
29311
29312         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
29313
29314 2007-04-23  Bruno Haible  <bruno@clisp.org>
29315
29316         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
29317
29318 2007-04-23  Bruno Haible  <bruno@clisp.org>
29319
29320         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
29321         Needed on HP-UX 11.
29322
29323 2007-04-16  Eric Blake  <ebb9@byu.net>
29324
29325         Make fflush rely on fpurge.
29326         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
29327         open coding all variants.
29328         * modules/fflush (Depends-on): Add fpurge and unistd.
29329         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
29330         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
29331
29332         Fix --with-tests compilation on cygwin.
29333         * modules/argmatch-tests (Makefile.am): List gnulib library first
29334         in LDADD.
29335         * modules/argp-tests (Makefile.am): Likewise.
29336         * modules/array-list-tests (Makefile.am): Likewise.
29337         * modules/array-oset-tests (Makefile.am): Likewise.
29338         * modules/avltree-list-tests (Makefile.am): Likewise.
29339         * modules/avltree-oset-tests (Makefile.am): Likewise.
29340         * modules/avltreehash-list-tests (Makefile.am): Likewise.
29341         * modules/carray-list-tests (Makefile.am): Likewise.
29342         * modules/dirname-tests (Makefile.am): Likewise.
29343         * modules/frexp-tests (Makefile.am): Likewise.
29344         * modules/isnanl-tests (Makefile.am): Likewise.
29345         * modules/linked-list-tests (Makefile.am): Likewise.
29346         * modules/linkedhash-list-tests (Makefile.am): Likewise.
29347         * modules/lock-tests (Makefile.am): Likewise.
29348         * modules/rbtree-list-tests (Makefile.am): Likewise.
29349         * modules/rbtree-oset-tests (Makefile.am): Likewise.
29350         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
29351         * modules/tls-tests (Makefile.am): Likewise.
29352         * modules/tsearch-tests (Makefile.am): Likewise.
29353         * modules/xvasprintf-tests (Makefile.am): Likewise.
29354
29355         Fix fpurge for cygwin.
29356         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
29357         value.
29358         * modules/fpurge-tests (Depends-on): Clean up trash.
29359
29360 2007-04-16  Simon Josefsson  <simon@josefsson.org>
29361
29362         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
29363
29364         * m4/autobuild.m4: Re-indent.
29365
29366 2007-04-13  Bruno Haible  <bruno@clisp.org>
29367
29368         * modules/fpurge-tests: New file.
29369         * tests/test-fpurge.c: New file.
29370
29371         * modules/fpurge: New file.
29372         * lib/fpurge.h: New file.
29373         * lib/fpurge.c: New file.
29374         * m4/fpurge.m4: New file.
29375
29376 2007-04-13  Bruno Haible  <bruno@clisp.org>
29377
29378         * modules/fbufmode-tests: New file.
29379         * tests/test-fbufmode.c: New file.
29380
29381         * modules/fbufmode: New file.
29382         * lib/fbufmode.h: New file.
29383         * lib/fbufmode.c: New file.
29384         * m4/fbufmode.m4: New file.
29385
29386 2007-04-13  Bruno Haible  <bruno@clisp.org>
29387
29388         * modules/fwritable-tests: New file.
29389         * tests/test-fwritable.c: New file.
29390
29391         * modules/fwritable: New file.
29392         * lib/fwritable.h: New file.
29393         * lib/fwritable.c: New file.
29394         * m4/fwritable.m4: New file.
29395
29396 2007-04-13  Bruno Haible  <bruno@clisp.org>
29397
29398         * modules/freadable-tests: New file.
29399         * tests/test-freadable.c: New file.
29400
29401         * modules/freadable: New file.
29402         * lib/freadable.h: New file.
29403         * lib/freadable.c: New file.
29404         * m4/freadable.m4: New file.
29405
29406 2007-04-13  Bruno Haible  <bruno@clisp.org>
29407
29408         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
29409         MOSTLYCLEANFILES.
29410
29411 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
29412
29413         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
29414         gzip bootstrap.conf to avoid dragging in i18n machinery.
29415         (gnulib_tool_option): Use it.
29416
29417 2007-04-13  Bruno Haible  <bruno@clisp.org>
29418
29419         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
29420         %F directives.
29421         * tests/test-vasprintf-posix.c (test_function): Likewise.
29422         * tests/test-snprintf-posix.h (test_function): Likewise.
29423         * tests/test-sprintf-posix.h (test_function): Likewise.
29424         * tests/test-fprintf-posix.h (test_function): Likewise.
29425         * tests/test-printf-posix.h (test_function): Likewise.
29426         * tests/test-fprintf-posix.out: Likewise.
29427
29428 2007-04-13  Bruno Haible  <bruno@clisp.org>
29429
29430         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
29431         * modules/tls-tests (configure.ac): Likewise.
29432         Reported by Arto C. Nirkko <anirkko@insel.ch>.
29433
29434 2007-04-13  Bruno Haible  <bruno@clisp.org>
29435
29436         * lib/tls.c (glthread_tls_get): Fix return type.
29437         Patch by Arto C. Nirkko <anirkko@insel.ch>.
29438
29439 2007-04-12  Eric Blake  <ebb9@byu.net>
29440
29441         * modules/gettime (Depends-on): Remove gettime.
29442         Reported by Dmitry V. Levin.
29443
29444 2007-04-12  Bruno Haible  <bruno@clisp.org>
29445
29446         * modules/fflush (Include): Mention <stdio.h>.
29447         * modules/strtoimax (Include): Mention <inttypes.h>.
29448         * modules/strtoumax (Include): Likewise.
29449
29450 2007-04-12  Eric Blake  <ebb9@byu.net>
29451
29452         * .cvsignore: New file.
29453         * .gitignore: Likewise.
29454
29455 2007-04-12  Bruno Haible  <bruno@clisp.org>
29456
29457         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
29458         not before, since $(LDADD) often contains libgnu.a.
29459         * modules/striconv-tests (test_striconv_LDADD): Likewise.
29460         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
29461         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
29462         Needed on Cygwin.
29463
29464 2007-04-12  Eric Blake  <ebb9@byu.net>
29465
29466         Work around glibc's failure to flush stdin on fclose.
29467         * lib/closein.c (close_stdin): Flush stdin before closing.
29468
29469         Work around glibc's failure to reset seekable stdin on exit.
29470         * modules/closein: New module.
29471         * lib/closein.c: New file.
29472         * lib/closein.h: Likewise.
29473         * m4/closein.m4: Likewise.
29474         * MODULES.html.sh (File stream based Input/Output): Document it.
29475
29476 2007-04-12  Simon Josefsson  <simon@josefsson.org>
29477
29478         * gnulib-tool: Rename generated 'autobuild' script to
29479         'do-autobuild' in --create-megatestdir output.
29480
29481         * doc/gnulib.texi (Build robot for gnulib): Fix.
29482
29483 2007-04-12  Simon Josefsson  <simon@josefsson.org>
29484
29485         * modules/sysexits (Depends-on): Add absolute-header.
29486
29487 2007-04-12  Eric Blake  <ebb9@byu.net>
29488
29489         No need to preserve errno on success.
29490         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
29491         Reported by Bruno Haible.
29492
29493 2007-04-12  Simon Josefsson  <simon@josefsson.org>
29494
29495         * MODULES.html.sh (Support for maintaining and releasing
29496         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
29497
29498 2007-04-12  Simon Josefsson  <simon@josefsson.org>
29499
29500         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
29501
29502 2007-04-12  Simon Josefsson  <simon@josefsson.org>
29503
29504         * modules/autobuild: New module.
29505
29506         * m4/autobuild.m4: New file.
29507
29508 2007-04-11  Bruno Haible  <bruno@clisp.org>
29509
29510         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
29511         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
29512         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
29513         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
29514         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29515         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29516         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29517         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
29518         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29519         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29520         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
29521         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29522         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29523         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
29524         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29525         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29526         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
29527         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29528         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29529         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
29530         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29531         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29532         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
29533         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29534         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29535         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
29536         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29537         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29538         Reported by Eric Blake.
29539
29540 2007-04-11  Bruno Haible  <bruno@clisp.org>
29541
29542         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
29543
29544 2007-04-10  Bruno Haible  <bruno@clisp.org>
29545
29546         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
29547         for NaN and Infinity. Needed on FreeBSD 6.1.
29548         * tests/test-vasnprintf-posix.c (test_function): Undo last change
29549         regarding results for "%010a" of Infinity and NaN.
29550         * tests/test-vasprintf-posix.c (test_function): Likewise.
29551         * tests/test-snprintf-posix.h (test_function): Likewise.
29552         * tests/test-sprintf-posix.h (test_function): Likewise.
29553         * tests/test-fprintf-posix.h (test_function): Likewise.
29554         * tests/test-printf-posix.h (test_function): Likewise.
29555         * tests/test-fprintf-posix.out: Likewise.
29556
29557 2007-04-10  Bruno Haible  <bruno@clisp.org>
29558
29559         * modules/locale-tests: New file.
29560         * tests/test-locale.c: New file.
29561
29562         * modules/locale: New file.
29563         * lib/locale_.h: New file.
29564         * m4/locale_h.m4: New file.
29565
29566 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
29567             Bruno Haible  <bruno@clisp.org>
29568
29569         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
29570         be determined, test for availability of the copysignf, copysign,
29571         copysignl functions.
29572         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
29573         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
29574         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
29575
29576 2007-04-09  Eric Blake  <ebb9@byu.net>
29577
29578         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
29579         * modules/stdio (Makefile.am): Support fflush.
29580         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29581         * modules/fflush: New file.
29582         * lib/fflush.c: Likewise.
29583         * m4/fflush.m4: Likewise.
29584         * modules/fflush-tests: New test.
29585         * tests/test-fflush.c: Likewise.
29586         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
29587
29588 2007-04-06  Bruno Haible  <bruno@clisp.org>
29589
29590         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
29591         (VASNPRINTF): Use signbit for faster determination whether to print a
29592         minus sign.
29593         * modules/vasnprintf (Files): Remove lib/float+.h.
29594         * modules/fprintf-posix (Depends-on): Add signbit.
29595         * modules/snprintf-posix (Depends-on): Likewise.
29596         * modules/sprintf-posix (Depends-on): Likewise.
29597         * modules/vasnprintf-posix (Depends-on): Likewise.
29598         * modules/vasprintf-posix (Depends-on): Likewise.
29599         * modules/vfprintf-posix (Depends-on): Likewise.
29600         * modules/vsnprintf-posix (Depends-on): Likewise.
29601         * modules/vsprintf-posix (Depends-on): Likewise.
29602
29603 2007-04-06  Bruno Haible  <bruno@clisp.org>
29604
29605         * tests/test-frexp.c (main): Test also the sign bit of zero results.
29606         * tests/test-frexpl.c (main): Likewise.
29607         * tests/test-ldexpl.c (main): Likewise.
29608         * modules/frexp-tests (Depends-on): Add signbit.
29609         * modules/frexpl-tests (Depdends-on): Likewise.
29610         * modules/ldexpl-tests (Depdends-on): Likewise.
29611
29612 2007-04-06  Bruno Haible  <bruno@clisp.org>
29613
29614         * modules/signbit-tests: New file.
29615         * tests/test-signbit.c: New file.
29616
29617         * modules/signbit: New file.
29618         * lib/signbitf.c: New file.
29619         * lib/signbitd.c: New file.
29620         * lib/signbitl.c: New file.
29621         * m4/signbit.m4: New file.
29622         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
29623         (signbit): New macro.
29624         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
29625         REPLACE_SIGNBIT.
29626         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
29627         REPLACE_FREXPL into math.h.
29628
29629 2007-04-06  Bruno Haible  <bruno@clisp.org>
29630
29631         * modules/isnanf-nolibm-tests: New file.
29632         * tests/test-isnanf.c: New file.
29633
29634         * modules/isnanf-nolibm: New file.
29635         * lib/isnanf.h: New file.
29636         * lib/isnanf.c: New file.
29637         * lib/isnan.c: Consider the USE_FLOAT macro.
29638         * m4/isnanf.m4: New file.
29639
29640 2007-04-06  Bruno Haible  <bruno@clisp.org>
29641
29642         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
29643         (Link): New section.
29644
29645         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
29646
29647 2007-04-06  Bruno Haible  <bruno@clisp.org>
29648
29649         Assume the 'long double' type.
29650         * m4/longdouble.m4: Remove file.
29651         * config/srclist.txt: Don't mention longdouble.m4.
29652         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
29653         * lib/float+.h: Likewise.
29654         * lib/frexp.c: Likewise.
29655         * lib/printf-args.h: Likewise.
29656         * lib/printf-args.c: Likewise.
29657         * lib/printf-frexp.c: Likewise.
29658         * lib/printf-parse.c: Likewise.
29659         * lib/vasnprintf.c: Likewise.
29660         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
29661         * m4/intl.m4: Likewise.
29662         * m4/isnanl.m4: Likewise.
29663         * m4/printf.m4: Likewise.
29664         * m4/printf-frexpl.m4: Likewise.
29665         * m4/vasnprintf.m4: Likewise.
29666         * modules/allocsa (Files): Remove m4/longdouble.m4.
29667         * modules/gettext (Files): Likewise.
29668         * modules/relocatable-prog-wrapper (Files): Likewise.
29669         * modules/vasnprintf (Files): Likewise.
29670         * modules/isnanl (Files): Likewise.
29671         (Include): Simplify.
29672         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
29673         (Include): Simplify.
29674         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
29675         (Include): Simplify.
29676         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
29677         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29678         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
29679         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29680         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
29681         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29682         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
29683         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29684         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
29685         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29686         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
29687         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29688         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
29689         * tests/test-isnanl.c: Likewise.
29690         * tests/test-snprintf-posix.h: Likewise.
29691         * tests/test-sprintf-posix.h: Likewise.
29692         * tests/test-vasnprintf-posix.c: Likewise.
29693         * tests/test-vasnprintf-posix2.c: Likewise.
29694         * tests/test-vasprintf-posix.c: Likewise.
29695
29696 2007-04-06  Bruno Haible  <bruno@clisp.org>
29697
29698         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
29699         * lib/math_.h [__DECC]: Include the overridden include file through
29700         #include_next, outside the double-inclusion guard.
29701         * lib/stdio_.h [__DECC]: Likewise.
29702         * lib/stdlib_.h [__DECC]: Likewise.
29703         * lib/string_.h [__DECC]: Likewise.
29704         * lib/time_.h [__DECC]: Likewise.
29705         * lib/wchar_.h [__DECC]: Likewise.
29706         * lib/wctype_.h [__DECC]: Likewise.
29707         * lib/inttypes_.h [__DECC]: Likewise.
29708         Reported by Albert Chin <china@thewrittenword.com> in
29709         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
29710
29711 2007-04-04  Eric Blake  <ebb9@byu.net>
29712
29713         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
29714         1.5.x.
29715
29716 2007-04-04  Bruno Haible  <bruno@clisp.org>
29717
29718         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
29719         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
29720
29721 2007-04-04  Bruno Haible  <bruno@clisp.org>
29722
29723         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
29724         results for "%010a" of Infinity and NaN.
29725         * tests/test-vasprintf-posix.c (test_function): Likewise.
29726         * tests/test-snprintf-posix.h (test_function): Likewise.
29727         * tests/test-sprintf-posix.h (test_function): Likewise.
29728         * tests/test-fprintf-posix.h (test_function): Remove these tests.
29729         * tests/test-printf-posix.h (test_function): Likewise.
29730         * tests/test-fprintf-posix.out: Update.
29731         Needed for FreeBSD 6.1.
29732
29733 2007-04-04  Bruno Haible  <bruno@clisp.org>
29734
29735         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
29736         directly used by the gnulib modules nor by gnulib-tool.
29737
29738 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
29739
29740         * DEPENDENCIES: Give overall description of version dependency
29741         desirability.  Use more-typical names for apps.
29742         Add shell, coreutils, diffutils, grep, tar, gzip.
29743
29744 2007-04-04  Simon Josefsson  <simon@josefsson.org>
29745
29746         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
29747
29748 2007-04-04  Karl Berry  <karl@gnu.org>
29749
29750         * MODULES.html.sh (func_module): missing '.
29751
29752 2007-04-03  Bruno Haible  <bruno@clisp.org>
29753
29754         * modules/argmatch-tests (Makefile.am): New variable
29755         test_argmatch_LDADD.
29756         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
29757         * modules/array-list-tests (Makefile.am): New variable
29758         test_array_list_LDADD.
29759         * modules/array-oset-tests (Makefile.am): New variable
29760         test_array_oset_LDADD.
29761         * modules/avltree-list-tests (Makefile.am): New variable
29762         test_avltree_list_LDADD.
29763         * modules/avltree-oset-tests (Makefile.am): New variable
29764         test_avltree_oset_LDADD.
29765         * modules/avltreehash-list-tests (Makefile.am): New variable
29766         test_avltreehash_list_LDADD.
29767         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
29768         test_canonicalize_lgpl_LDADD.
29769         * modules/carray-list-tests (Makefile.am): New variable
29770         test_carray_list_LDADD.
29771         * modules/dirname-tests (Makefile.am): New variable
29772         test_dirname_LDADD.
29773         * modules/linked-list-tests (Makefile.am): New variable
29774         test_linked_list_LDADD.
29775         * modules/linkedhash-list-tests (Makefile.am): New variable
29776         test_linkedhash_list_LDADD.
29777         * modules/rbtree-list-tests (Makefile.am): New variable
29778         test_rbtree_list_LDADD.
29779         * modules/rbtree-oset-tests (Makefile.am): New variable
29780         test_rbtree_oset_LDADD.
29781         * modules/rbtreehash-list-tests (Makefile.am): New variable
29782         test_rbtreehash_list_LDADD.
29783         * modules/xvasprintf-tests (Makefile.am): New variable
29784         test_xvasprintf_LDADD.
29785         Reported by Eric Blake.
29786
29787 2007-04-03  Eric Blake  <ebb9@byu.net>
29788
29789         * DEPENDENCIES: Weaken m4 requirements.
29790
29791 2007-04-03  Bruno Haible  <bruno@clisp.org>
29792
29793         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
29794         * modules/isnanl-tests (configure.ac): Likewise.
29795
29796 2007-04-03  Ben Pfaff  <blp@gnu.org>
29797
29798         * modules/iconv_open: Add $(srcdir)/ to source directory
29799         references in Makefile fragments that call gperf, to fix VPATH
29800         builds.
29801
29802 2007-04-03  Bruno Haible  <bruno@clisp.org>
29803
29804         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
29805         * lib/ldexpl.c: Undo last change.
29806
29807 2007-04-03  Bruno Haible  <bruno@clisp.org>
29808
29809         * modules/printf-frexpl (Depends-on): Undo last change.
29810         (Files): Add m4/ldexpl.m4.
29811
29812 2007-04-03  Bruno Haible  <bruno@clisp.org>
29813
29814         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
29815         * modules/isnanl (Link): New section.
29816
29817         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
29818         * modules/frexp (Link): New section.
29819
29820         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
29821         * modules/frexpl (Link): New section.
29822
29823         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
29824         * modules/ldexpl (Link): New section.
29825
29826 2007-04-03  Bruno Haible  <bruno@clisp.org>
29827
29828         * modules/TEMPLATE-EXTENDED: New file.
29829         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
29830
29831 2007-04-03  Bruno Haible  <bruno@clisp.org>
29832
29833         * DEPENDENCIES: New file.
29834         Suggested by Simon Josefsson.
29835
29836 2007-04-03  Bruno Haible  <bruno@clisp.org>
29837
29838         * doc/gnulib.texi: Escape @.
29839
29840 2007-04-03  James Youngman  <jay@gnu.org>
29841         and Paul Eggert  <eggert@cs.ucla.edu>
29842
29843         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
29844         birthtime on all systems that have birthtime, not just those which
29845         use st_birthtimensec rather than st_birthtim.  Putting zero in
29846         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
29847         that the birth time is not available for files on an NFS mount.
29848
29849 2007-04-03  Simon Josefsson  <simon@josefsson.org>
29850
29851         * modules/memxor: Move back from crypto/, suggested by Bruno.
29852         * modules/crypto/hmac-sha1: Fix memxor dependency.
29853
29854         * modules/crypto/gc: Moved from ../.
29855
29856 2007-04-02  Eric Blake  <ebb9@byu.net>
29857
29858         * lib/ldexpl.c (includes): Avoid libm.
29859
29860         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
29861
29862 2007-04-02  Bruno Haible  <bruno@clisp.org>
29863
29864         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
29865         on IRIX.
29866
29867 2007-04-02  Bruno Haible  <bruno@clisp.org>
29868
29869         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
29870         x86 or x86_64 platforms running MacOS X.
29871         Reported by Ryan Schmidt <@ryandesign.com>.
29872
29873 2007-04-02  Bruno Haible  <bruno@clisp.org>
29874
29875         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
29876         i386.
29877
29878 2007-04-01  Simon Josefsson  <simon@josefsson.org>
29879
29880         * modules/crypto/arcfour: Moved from ../.
29881         * modules/crypto/arcfour-tests: Moved from ../.
29882         * modules/crypto/arctwo: Moved from ../.
29883         * modules/crypto/arctwo-tests: Moved from ../.
29884         * modules/crypto/des: Moved from ../.
29885         * modules/crypto/des-tests: Moved from ../.
29886         * modules/crypto/gc-arcfour: Moved from ../.
29887         * modules/crypto/gc-arcfour-tests: Moved from ../.
29888         * modules/crypto/gc-arctwo: Moved from ../.
29889         * modules/crypto/gc-arctwo-tests: Moved from ../.
29890         * modules/crypto/gc-des: Moved from ../.
29891         * modules/crypto/gc-des-tests: Moved from ../.
29892         * modules/crypto/gc-hmac-md5: Moved from ../.
29893         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
29894         * modules/crypto/gc-hmac-sha1: Moved from ../.
29895         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
29896         * modules/crypto/gc-md2: Moved from ../.
29897         * modules/crypto/gc-md2-tests: Moved from ../.
29898         * modules/crypto/gc-md4: Moved from ../.
29899         * modules/crypto/gc-md4-tests: Moved from ../.
29900         * modules/crypto/gc-md5: Moved from ../.
29901         * modules/crypto/gc-md5-tests: Moved from ../.
29902         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
29903         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
29904         * modules/crypto/gc-random: Moved from ../.
29905         * modules/crypto/gc-rijndael: Moved from ../.
29906         * modules/crypto/gc-rijndael-tests: Moved from ../.
29907         * modules/crypto/gc-sha1: Moved from ../.
29908         * modules/crypto/gc-sha1-tests: Moved from ../.
29909         * modules/crypto/gc-tests: Moved from ../.
29910         * modules/crypto/hmac-md5: Moved from ../.
29911         * modules/crypto/hmac-md5-tests: Moved from ../.
29912         * modules/crypto/hmac-sha1: Moved from ../.
29913         * modules/crypto/hmac-sha1-tests: Moved from ../.
29914         * modules/crypto/md2: Moved from ../.
29915         * modules/crypto/md2-tests: Moved from ../.
29916         * modules/crypto/md4: Moved from ../.
29917         * modules/crypto/md4-tests: Moved from ../.
29918         * modules/crypto/md5: Moved from ../.
29919         * modules/crypto/md5-tests: Moved from ../.
29920         * modules/crypto/memxor: Moved from ../.
29921         * modules/crypto/rijndael: Moved from ../.
29922         * modules/crypto/rijndael-tests: Moved from ../.
29923         * modules/crypto/sha1: Moved from ../.
29924
29925 2007-03-30  James Youngman  <jay@gnu.org>
29926
29927         * tests/test-stat-time.c (prepare_test): use chmod() rather than
29928         rename() to change the ctime of a file (because ctime is unaffected
29929         by rename on jfs2 on AIX 5.1).
29930         (main): Start by doing cleanup, in case a previous run failed leaving
29931         test files behind.
29932
29933 2007-03-31  Bruno Haible  <bruno@clisp.org>
29934
29935         Support old proprietary implementations of iconv.
29936         * modules/iconv_open: New file.
29937         * lib/iconv_.h: New file.
29938         * m4/iconv_h.m4: New file.
29939         * lib/iconv_open.c: New file.
29940         * lib/iconv_open-aix.gperf: New file.
29941         * lib/iconv_open-hpux.gperf: New file.
29942         * lib/iconv_open-irix.gperf: New file.
29943         * lib/iconv_open-osf.gperf: New file.
29944         * m4/iconv_open.m4: New file.
29945         * modules/linebreak (Depends-on): Add iconv_open.
29946         * modules/striconv (Depends-on): Likewise.
29947         * modules/striconveh (Depends-on): Likewise.
29948         * modules/unicodeio (Depends-on): Likewise.
29949         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
29950         (iconv_t)(-1).
29951         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
29952         conversion if cd is (iconv_t)(-1).
29953         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
29954         is not possible.
29955
29956 2007-03-31  Bruno Haible  <bruno@clisp.org>
29957
29958         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
29959         work on Solaris either. Protect also second use of "autodetect_jp".
29960
29961 2007-03-31  Bruno Haible  <bruno@clisp.org>
29962
29963         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
29964         the function is not present.
29965
29966 2007-03-31  Bruno Haible  <bruno@clisp.org>
29967
29968         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
29969         the function is not present.
29970
29971 2007-03-31  Bruno Haible  <bruno@clisp.org>
29972
29973         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
29974         a bug in HP-UX iconv_open().
29975
29976 2007-03-31  Bruno Haible  <bruno@clisp.org>
29977
29978         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
29979         (Mathematics <math.h>): New section, add fpieee.
29980         (Input/output <stdio.h>): Add fseterr.
29981         (Mathematics <math.h>): New section, add printf-frexp.
29982         (Container data structures): Add sublist.
29983         (Core language properties): Add fpucw, inline.
29984         (Functions for greatest-width integer types <inttypes.h>): Add
29985         imaxabs, imaxdiv, inttypes.
29986         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
29987         isnanl-nolibm, ldexp.
29988         (Mathematics <math.h>): New section, add printf-frexpl.
29989         (Support for systems lacking POSIX:2001): Add fprintf-posix,
29990         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
29991         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
29992         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
29993         (Unicode string functions): Add unistr/u*-mbtoucr.
29994         (Java): Add javacomp-script, javaexec-script.
29995         (C#): Add csharpcomp-script, csharpexec-script.
29996         (Support for building libraries and executables): Add havelib,
29997         relocatable-*.
29998         (Support for maintaining and releasing projects): Renamed from
29999         'Support for maintaining and release projects'. Add announce-gen.
30000
30001 2007-03-31  Bruno Haible  <bruno@clisp.org>
30002
30003         * README: Talk primarily about git.
30004         (git and CVS): Renamed from CVS.
30005         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
30006         gnulib is available through git.
30007         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
30008
30009 2007-03-30  Bruno Haible  <bruno@clisp.org>
30010
30011         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
30012         * lib/poll_.h: Likewise.
30013         * lib/stat_.h: Likewise.
30014         * lib/sys_time_.h: Likewise.
30015         * lib/sysexit_.h: Likewise.
30016         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
30017         * lib/stdbool_.h: Likewise.
30018         * lib/byteswap_.h: Add double-inclusion guard.
30019
30020 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
30021
30022         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
30023
30024 2007-03-30  Karl Berry  <karl@gnu.org>
30025
30026         * config/srclist-update: double space after USA in the license
30027         substitution, since that's how it's usually (?) written.
30028
30029 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
30030
30031         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
30032         reported by Bruno Haible.
30033
30034 2007-03-29  Bruno Haible  <bruno@clisp.org>
30035
30036         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
30037         a bug in AIX iconv().
30038
30039 2007-03-29  Bruno Haible  <bruno@clisp.org>
30040
30041         * modules/ldexpl-tests: New file.
30042         * tests/test-ldexpl.c: New file.
30043
30044 2007-03-29  Bruno Haible  <bruno@clisp.org>
30045
30046         * lib/ldexpl.c: Include fpucw.h.
30047         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
30048         multiplication.
30049         * modules/ldexpl (Depends-on): Add fpucw.
30050
30051 2007-03-29  Bruno Haible  <bruno@clisp.org>
30052
30053         * modules/ldexpl: New file.
30054         * m4/ldexpl.m4: New file.
30055         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
30056         set.
30057         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
30058         REPLACE_LDEXPL.
30059         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
30060         REPLACE_LDEXPL.
30061         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
30062         gl_FUNC_LDEXPL_WORKS.
30063         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
30064         * modules/mathl (Files): Remove lib/ldexpl.c.
30065         (Depends-on): Add ldexpl.
30066
30067 2007-03-29  Bruno Haible  <bruno@clisp.org>
30068
30069         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
30070
30071 2007-03-29  Bruno Haible  <bruno@clisp.org>
30072
30073         * tests/test-striconveh.c (main): Don't assume that a direct conversion
30074         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
30075         and possibly also HP-UX.
30076         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
30077         work on AIX, IRIX, HP-UX, OSF/1.
30078         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
30079         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
30080         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
30081         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
30082         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
30083         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
30084
30085 2007-03-29  Bruno Haible  <bruno@clisp.org>
30086
30087         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
30088
30089 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
30090
30091         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
30092         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
30093
30094 2007-03-29  Eric Blake  <ebb9@byu.net>
30095
30096         * lib/acl-internal.h: Remove redundant include.
30097         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
30098         Cygwin when a file is locked.
30099
30100 2007-03-29  Bruno Haible  <bruno@clisp.org>
30101
30102         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
30103         file.
30104         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
30105
30106 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
30107
30108         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
30109         try to remove a parent directory if the child couldn't be removed
30110         (except for the first rmdir, which could fail because the child
30111         doesn't exist).  Problem reported by Jeff Blaine in
30112         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
30113
30114 2007-03-28  Bruno Haible  <bruno@clisp.org>
30115
30116         * lib/striconveh.c (utf8conv_carefully): New function.
30117         (mem_cd_iconveh_internal): Invoke it.
30118
30119 2007-03-28  Bruno Haible  <bruno@clisp.org>
30120
30121         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
30122         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
30123         input.
30124         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
30125         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
30126         unistr/u8-uctomb.
30127
30128 2007-03-28  Bruno Haible  <bruno@clisp.org>
30129
30130         * modules/unistr/u8-mbtoucr: New file.
30131         * lib/unistr/u8-mbtoucr.c: New file.
30132         * modules/unistr/u16-mbtoucr: New file.
30133         * lib/unistr/u16-mbtoucr.c: New file.
30134         * modules/unistr/u16-mbtoucr: New file.
30135         * lib/unistr/u16-mbtoucr.c: New file.
30136         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
30137
30138 2007-03-27  Simon Josefsson  <simon@josefsson.org>
30139             Bruno Haible  <bruno@clisp.org>
30140
30141         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
30142         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
30143         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
30144
30145         * m4/stdio_h.m4: Add stubs for vasprintf too.
30146
30147         * modules/stdio: Support vasprintf in sed command.
30148
30149         * modules/vasprintf: Depend on stdio for prototypes.  Remove
30150         vasprintf.h.  Add stdio module indicator.
30151
30152         * lib/stdio_.h: Declare asprintf and vasprintf, based on
30153         vasprintf.h.
30154
30155         * lib/vasprintf.h: File removed.
30156
30157         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
30158         * lib/vasprintf.c: Ditto.
30159         * lib/xvasprintf.c: Ditto.
30160         * tests/test-vasprintf-posix.c: Ditto.
30161         * tests/test-vasprintf.c: Ditto.
30162
30163 2007-03-27  Bruno Haible  <bruno@clisp.org>
30164
30165         Make vasnprintf multithread-safe.
30166         * lib/vasnprintf.c (decimal_point_char): New function.
30167         (VASNPRINTF): Use it.
30168         Suggested by Simon Josefsson.
30169
30170 2007-03-27  Eric Blake  <ebb9@byu.net>
30171
30172         Support sub-second birthtime on cygwin.
30173         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
30174         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
30175         (get_stat_birthtime): Also work with st_birthtim.
30176
30177 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
30178
30179         * lib/stat-time.h (USE_BIRTHTIME): Remove.
30180         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
30181         (get_stat_birthtime_ns): Do not try to use "spare" fields.
30182         (get_stat_birthtime_ns): Simplify compile-time tests.
30183         (get_stat_birthtime): Change the API to look like
30184         get_stat_mtime etc., except return a negative tv_nsec on error.
30185         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
30186         Don't check for "spare" fields.
30187         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
30188         or for struct stat.st_birthtime, as these tests aren't used.
30189         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
30190
30191 2007-03-27  Bruno Haible  <bruno@clisp.org>
30192
30193         * lib/stat-time.h: Include <sys/stat.h>.
30194
30195 2007-03-27  James Youngman  <jay@gnu.org>
30196
30197         * lib/stat-time.h (get_stat_birthtime): New function for
30198           retrieving st_birthtime as provided by UFS2 (hence *BSD).
30199         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
30200           and its variants.
30201         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
30202         * modules/stat-time-test: New file.
30203         * tests/test-stat-time.c: New test, devised by Bruno Haible.
30204
30205 2007-03-26  Bruno Haible  <bruno@clisp.org>
30206
30207         Better support of signalling NaNs.
30208         * lib/atanl.c: Include isnanl.h.
30209         (atanl): Perform test for NaN at the beginning of the function and
30210         through a call to isnanl.
30211         * lib/cosl.c: Include isnanl.h.
30212         (cosl): Perform test for NaN at the beginning of the function and
30213         through a call to isnanl.
30214         * lib/ldexpl.c: Include isnanl.h.
30215         (ldexpl): Perform test for NaN through a call to isnanl.
30216         * lib/logl.c: Include isnanl.h.
30217         (logl): Perform test for NaN at the beginning of the function and
30218         through a call to isnanl.
30219         * lib/sinl.c: Include isnanl.h.
30220         (sinl): Perform test for NaN at the beginning of the function and
30221         through a call to isnanl.
30222         * lib/sqrtl.c: Include isnanl.h.
30223         (sqrtl): Perform test for NaN at the beginning of the function and
30224         through a call to isnanl.
30225         * lib/tanl.c: Include isnanl.h.
30226         (tanl): Perform test for NaN at the beginning of the function and
30227         through a call to isnanl.
30228         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
30229         * modules/mathl (Depends-on): Add isnanl.
30230
30231 2007-03-26  Eric Blake  <ebb9@byu.net>
30232
30233         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
30234         regression in logic sense of previous patch.
30235
30236 2007-03-26  Bruno Haible  <bruno@clisp.org>
30237
30238         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
30239         unportable shell command "if ! ...".
30240         Reported by Ralf Wildenhues.
30241
30242 2007-03-25  Bruno Haible  <bruno@clisp.org>
30243
30244         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
30245         <sysexits.h> file, and only add EX_CONFIG.
30246         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
30247         absolute file name and whether it is sufficient. Substitute also
30248         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
30249         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
30250         ABSOLUTE_SYSEXITS_H into sysexits.h.
30251
30252 2007-03-25  Bruno Haible  <bruno@clisp.org>
30253
30254         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
30255         hints is NULL.
30256
30257 2007-03-25  Bruno Haible  <bruno@clisp.org>
30258
30259         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
30260         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
30261
30262 2007-03-25  Bruno Haible  <bruno@clisp.org>
30263
30264         * lib/vasnprintf.c: Include langinfo.h.
30265         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
30266         multithread-safe.
30267         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
30268         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
30269         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30270         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30271         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30272         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30273         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30274         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
30275         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30276         Reported by Simon Josefsson.
30277
30278 2007-03-25  Bruno Haible  <bruno@clisp.org>
30279
30280         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
30281         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
30282         * modules/vasnprintf (Depends-on): Add stdint.
30283
30284 2007-03-25  Bruno Haible  <bruno@clisp.org>
30285
30286         * modules/fpieee: New file.
30287         * m4/fpieee.m4: New file.
30288         * modules/isnan-nolibm (Depends-on): Add fpieee.
30289         * modules/isnanl-nolibm (Depends-on): Add fpieee.
30290         * modules/isnanl (Depends-on): Add fpieee.
30291
30292 2007-03-25  Bruno Haible  <bruno@clisp.org>
30293
30294         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
30295
30296 2007-03-25  Bruno Haible  <bruno@clisp.org>
30297
30298         Avoid test failures on IRIX 6.5.
30299         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
30300         (main): Use it.
30301         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
30302         macros.
30303         (main): Use them.
30304
30305 2007-03-25  Bruno Haible  <bruno@clisp.org>
30306
30307         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
30308         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
30309         exists but doesn't work.
30310         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
30311         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
30312         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
30313         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
30314
30315 2007-03-25  Bruno Haible  <bruno@clisp.org>
30316
30317         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
30318         returns inf. Needed on IRIX 6.5.
30319
30320 2007-03-25  Bruno Haible  <bruno@clisp.org>
30321
30322         * tests/test-frexpl.c: Include isnanl-nolibm.h.
30323         (main): Use isnanl instead of x != x idiom.
30324         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
30325
30326         * tests/test-frexp.c: Include isnan.h.
30327         (main): Use isnan instead of x != x idiom.
30328         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
30329
30330 2007-03-25  Bruno Haible  <bruno@clisp.org>
30331
30332         * tests/test-frexp.c (NaN): New function/macro.
30333         (main): Use it instead of 0.0 / 0.0.
30334         * tests/test-isnan.c (NaN): New function/macro.
30335         (main): Use it instead of 0.0 / 0.0.
30336         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
30337         (test_function): Use it instead of 0.0 / 0.0.
30338         * tests/test-vasprintf-posix.c (NaN): New function/macro.
30339         (test_function): Use it instead of 0.0 / 0.0.
30340         * tests/test-snprintf-posix.h (NaN): New function/macro.
30341         (test_function): Use it instead of 0.0 / 0.0.
30342         * tests/test-sprintf-posix.h (NaN): New function/macro.
30343         (test_function): Use it instead of 0.0 / 0.0.
30344         * tests/test-fprintf-posix.h (NaN): New function/macro.
30345         (test_function): Use it instead of 0.0 / 0.0.
30346         * tests/test-printf-posix.h (NaN): New function/macro.
30347         (test_function): Use it instead of 0.0 / 0.0.
30348
30349         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
30350
30351 2007-03-25  Bruno Haible  <bruno@clisp.org>
30352
30353         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
30354
30355 2007-03-25  Bruno Haible  <bruno@clisp.org>
30356
30357         * lib/regexec.c (merge_state_with_log): Make static.
30358
30359 2007-03-25  Bruno Haible  <bruno@clisp.org>
30360
30361         * lib/trigl.c (kernel_rem_pio2): Make static.
30362
30363 2007-03-25  Bruno Haible  <bruno@clisp.org>
30364
30365         * lib/sincosl.c (sincosl_table): Make static.
30366
30367 2007-03-25  Bruno Haible  <bruno@clisp.org>
30368
30369         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
30370         if the compiler does not support C99.
30371
30372 2007-03-25  Bruno Haible  <bruno@clisp.org>
30373
30374         * modules/time (Makefile.am): Ensure all rule action lines start with a
30375         tab.
30376
30377 2007-03-24  Bruno Haible  <bruno@clisp.org>
30378
30379         * modules/tsearch-tests: New file.
30380         * tests/test-tsearch.sh: New file.
30381         * tests/test-tsearch.c: New file, mostly copied from glibc.
30382
30383         * modules/search-tests: New file.
30384         * tests/test-search.c: New file.
30385
30386         * modules/search: New file.
30387         * lib/search_.h: New file, incorporating lib/tsearch.h.
30388         * m4/search_h.m4: New file.
30389         * lib/tsearch.h: Remove file.
30390         * lib/tsearch.c: Include search.h instead of tsearch.h.
30391         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
30392         HAVE_TSEARCH.
30393         * modules/tsearch (Files): Remove lib/tsearch.h.
30394         (Depends-on): Add search.
30395         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
30396         (Include): Change tsearch.h into search.h.
30397
30398 2007-03-24  Bruno Haible  <bruno@clisp.org>
30399
30400         * modules/fpucw: New file.
30401         * lib/fpucw.h: New file.
30402         * lib/frexp.c: Include fpucw.h.
30403         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
30404         (FUNC): Use them.
30405         * lib/printf-frexp.c: Include fpucw.h.
30406         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
30407         (FUNC): Use them.
30408         * lib/vasnprintf.c: Include fpucw.h.
30409         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
30410         'long double' calculations.
30411         * tests/test-frexpl.c: Include fpucw.h.
30412         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
30413         * tests/test-printf-frexpl.c: Include fpucw.h.
30414         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
30415         * modules/frexpl (Depends-on): Add fpucw.
30416         * modules/printf-frexpl (Depends-on): Likewise.
30417         * modules/fprintf-posix (Depends-on): Likewise.
30418         * modules/snprintf-posix (Depends-on): Likewise.
30419         * modules/sprintf-posix (Depends-on): Likewise.
30420         * modules/vasnprintf-posix (Depends-on): Likewise.
30421         * modules/vasprintf-posix (Depends-on): Likewise.
30422         * modules/vfprintf-posix (Depends-on): Likewise.
30423         * modules/vsnprintf-posix (Depends-on): Likewise.
30424         * modules/vsprintf-posix (Depends-on): Likewise.
30425         * modules/frexpl-tests (Depends-on): Likewise.
30426         * modules/printf-frexpl-tests (Depends-on): Likewise.
30427
30428 2007-03-24  Bruno Haible  <bruno@clisp.org>
30429
30430         * lib/float+.h: New file.
30431         * lib/isnan.c: Include float+.h.
30432         (SIZE): New macro.
30433         (FUNC): Compare only SIZE bytes of the value.
30434         * lib/vasnprintf.c: Include float+.h.
30435         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
30436         SIZEOF_LDBL or SIZEOF_DBL bytes.
30437         * modules/isnan-nolibm (Files): Add lib/float+.h.
30438         * modules/isnanl-nolibm (Files): Add lib/float+.h.
30439         * modules/isnanl (Files): Add lib/float+.h.
30440         * modules/vasnprintf (Files): Add lib/float+.h.
30441
30442 2007-03-24  Bruno Haible  <bruno@clisp.org>
30443
30444         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
30445         include isnanl-nolibm.h.
30446
30447 2007-03-24  Bruno Haible  <bruno@clisp.org>
30448
30449         * tests/test-read-file.c (main): Don't produce spurious output for
30450         expected situations. Make the test fail if it encountered unexpected
30451         results.
30452
30453 2007-03-24  Bruno Haible  <bruno@clisp.org>
30454
30455         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
30456         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
30457
30458 2007-03-24  Bruno Haible  <bruno@clisp.org>
30459
30460         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
30461
30462 2007-03-24  Bruno Haible  <bruno@clisp.org>
30463
30464         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
30465         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
30466
30467         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
30468         * modules/utf8-ucs4: Turn into a symbolic link to module
30469         unistr/u8-mbtouc.
30470
30471         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
30472         utf8-ucs4-unsafe.
30473         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
30474         unistr/u8-mbtouc-unsafe.
30475
30476         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
30477         * modules/utf16-ucs4: Turn into a symbolic link to module
30478         unistr/u16-mbtouc.
30479
30480         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
30481         utf16-ucs4-unsafe.
30482         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
30483         unistr/u16-mbtouc-unsafe.
30484
30485         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
30486         * modules/ucs4-utf8: Turn into a symbolic link to module
30487         unistr/u8-ubtomb.
30488
30489         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
30490         * modules/ucs4-utf16: Turn into a symbolic link to module
30491         unistr/u16-ubtomb.
30492
30493 2007-03-24  Bruno Haible  <bruno@clisp.org>
30494
30495         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
30496         Enable the function only if HAVE_INLINE.
30497         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
30498         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
30499         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
30500         Enable the function only if HAVE_INLINE.
30501         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
30502         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
30503         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
30504         Enable the function only if HAVE_INLINE.
30505         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
30506         Enable the function only if HAVE_INLINE.
30507         * modules/utf8-ucs4: Update.
30508         * modules/utf8-ucs4-unsafe: Update.
30509         * modules/utf16-ucs4: Update.
30510         * modules/utf16-ucs4-unsafe: Update.
30511         * modules/ucs4-utf8: Update.
30512         * modules/ucs4-utf16: Update.
30513
30514 2007-03-24  Bruno Haible  <bruno@clisp.org>
30515
30516         * lib/utf8-ucs4.h: Remove file.
30517         * lib/utf8-ucs4-unsafe.h: Remove file.
30518         * lib/utf16-ucs4.h: Remove file.
30519         * lib/utf16-ucs4-unsafe.h: Remove file.
30520         * lib/ucs4-utf8.h: Remove file.
30521         * lib/ucs4-utf16.h: Remove file.
30522         * lib/unistr.h: Include their previous contents.
30523         * m4/utf-ucs4.m4: Remove file.
30524         * m4/ucs4-utf.m4: Remove file.
30525         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
30526         (Depends-on): Add unistr/base.
30527         (configure.ac): Remove gl_UTF_UCS4.
30528         (Makefile.am): Update.
30529         (Include): Change to unistr.h.
30530         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
30531         (Depends-on): Add unistr/base.
30532         (configure.ac): Remove gl_UTF_UCS4.
30533         (Makefile.am): Update.
30534         (Include): Change to unistr.h.
30535         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
30536         (Depends-on): Add unistr/base.
30537         (configure.ac): Remove gl_UTF_UCS4.
30538         (Makefile.am): Update.
30539         (Include): Change to unistr.h.
30540         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
30541         (Depends-on): Add unistr/base.
30542         (configure.ac): Remove gl_UTF_UCS4.
30543         (Makefile.am): Update.
30544         (Include): Change to unistr.h.
30545         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
30546         (Depends-on): Add unistr/base.
30547         (configure.ac): Remove gl_UCS4_UTF.
30548         (Makefile.am): Update.
30549         (Include): Change to unistr.h.
30550         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
30551         (Depends-on): Add unistr/base.
30552         (configure.ac): Remove gl_UCS4_UTF.
30553         (Makefile.am): Update.
30554         (Include): Change to unistr.h.
30555         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
30556         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
30557         utf8-ucs4-unsafe.h.
30558         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
30559         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
30560         utf16-ucs4-unsafe.h.
30561         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
30562         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
30563         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
30564         * lib/unistr/u8-strchr.c: Likewise.
30565         * lib/unistr/u8-strrchr.c: Likewise.
30566         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
30567         * lib/unistr/u16-strchr.c: Likewise.
30568         * lib/unistr/u16-strrchr.c: Likewise.
30569         * lib/striconveh.c: Update.
30570         * lib/linebreak.c: Update.
30571
30572 2007-03-24  Bruno Haible  <bruno@clisp.org>
30573
30574         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
30575         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
30576
30577 2007-03-22  Bruno Haible  <bruno@clisp.org>
30578
30579         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
30580
30581 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
30582
30583         * MODULES.html.sh (File system functions): New module write-any-file.
30584         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
30585         * m4/write-any-file.m4: New files.
30586
30587 2007-03-23  Eric Blake  <ebb9@byu.net>
30588
30589         * gnulib-tool: Rearrange space-tab sequences, since some editors
30590         like to eat them.
30591
30592 2007-03-23  Eric Blake  <ebb9@byu.net>
30593
30594         * lib/version-etc.c (version_etc_va): Update license wording to
30595         be more concise.  Recommended by Richard Stallman.
30596
30597 2007-03-22  Bruno Haible  <bruno@clisp.org>
30598
30599         * lib/poll.c (MSG_PEEK): New fallback definition.
30600
30601 2007-03-22  Bruno Haible  <bruno@clisp.org>
30602
30603         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
30604         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
30605         (main): Update.
30606         Fixes a compilation error on BeOS.
30607
30608 2007-03-22  Bruno Haible  <bruno@clisp.org>
30609
30610         * modules/frexpl-tests: New file.
30611         * tests/test-frexpl.c: New file.
30612
30613         * modules/frexpl: New file.
30614         * m4/frexpl.m4: New file.
30615         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
30616         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
30617         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
30618         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
30619         (Depends-on): Add frexpl. Remove isnanl-nolibm.
30620         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
30621
30622 2007-03-22  Bruno Haible  <bruno@clisp.org>
30623
30624         * lib/frexpl.c: Share code with lib/frexp.c.
30625         * modules/mathl (Files): Add lib/frexp.c.
30626         (Depends-on): Add isnanl-nolibm.
30627
30628 2007-03-22  Bruno Haible  <bruno@clisp.org>
30629
30630         * modules/printf-frexp (Files): Add m4/frexp.m4.
30631         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
30632         only if the found frexp function actually works.
30633
30634 2007-03-22  Bruno Haible  <bruno@clisp.org>
30635
30636         * lib/frexp.c: Remove older implementation that uses divisions.
30637
30638 2007-03-21  Bruno Haible  <bruno@clisp.org>
30639
30640         * modules/frexp-tests: New file.
30641         * tests/test-frexp.c: New file.
30642
30643         * modules/frexp: New file.
30644         * lib/frexp.c: New file.
30645         * m4/frexp.m4: New file.
30646         * lib/math_.h (frexp): New declaration.
30647         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
30648         REPLACE_FREXP.
30649         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
30650
30651 2007-03-21  Bruno Haible  <bruno@clisp.org>
30652
30653         * modules/isnanl-tests: New file.
30654         * tests/test-isnanl.c: New file.
30655
30656         * modules/isnanl: New file.
30657         * lib/isnanl.h: New file.
30658         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
30659         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
30660         gl_FUNC_ISNANL_WORKS.
30661         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
30662         New macros.
30663
30664 2007-03-21  Bruno Haible  <bruno@clisp.org>
30665
30666         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
30667         lib/isnanl.h.
30668         (Include): Update.
30669         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
30670         * lib/vasnprintf.c: Update.
30671         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
30672         tests/test-isnanl.h, remove tests/test-isnanl.c.
30673         (Makefile.am): Update.
30674         * tests/test-isnanl-nolibm.c: New file.
30675         * tests/test-isnanl.h: New file.
30676         * tests/test-isnanl.c: Remove file.
30677
30678 2007-03-21  Jim Meyering  <jim@meyering.net>
30679
30680         When trying to open ".", treat ESTALE like EACCES.
30681         * lib/savewd.c (savewd_save): Resort to forking not just upon
30682         failure with EACCES, but also when errno is ESTALE.
30683
30684 2007-03-20  Bruno Haible  <bruno@clisp.org>
30685
30686         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
30687         Needed on AIX 5.1. Reported by Matthew Woehlke.
30688
30689 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
30690
30691         Suggestions by Bruno Haible:
30692         * lib/acl-internal.h: Include "gettext.h" rather than rolling
30693         our own.
30694         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
30695         * modules/acl (Depends-on): Add gettext.
30696
30697 2007-03-19  Bruno Haible  <bruno@clisp.org>
30698
30699         * modules/iconvme: Remove file.
30700         * lib/iconvme.h: Remove file.
30701         * lib/iconvme.c: Remove file.
30702         * m4/iconvme.m4: Remove file.
30703
30704 2007-03-19  Bruno Haible  <bruno@clisp.org>
30705
30706         * doc/relocatable-maint.texi: Break long shell script line.
30707         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
30708
30709 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
30710
30711         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
30712         handle file_has_acl.
30713         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
30714         * lib/acl.c: Move header inclusions and related macro defns into
30715         lib/acl-internal.h.
30716         (S_ISLNK): Remove defn, since that's now done for us.
30717         (file_has_acl): Move to lib/file-has-acl.c.
30718         Call acl_trivial if available.  This is the crucial part of the fix.
30719         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
30720         shared within the library.  Rewrite a bit, partly to make it compatible
30721         with the GNU coding style.
30722         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
30723         Remove unnecessary double-quotes.
30724         Don't test for acl_to_text; the build will catch that.
30725         Replace acl_entries if it doesn't exist and it is needed.
30726         Check for -lsec and acl_trivial (as used on Solaris 10).
30727         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
30728         lib/file-has-acl.c.
30729         (Depends-on): Add sys_stat, for S_ISLNK.
30730
30731 2007-03-19  Ben Pfaff  <blp@gnu.org>
30732
30733         * doc/gnulib.texi: Fix typos.
30734         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
30735
30736 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
30737
30738         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
30739         If size is zero here, buf must be zero.
30740
30741 2007-03-19  Simon Josefsson  <simon@josefsson.org>
30742
30743         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
30744         <bruno@clisp.org>.
30745
30746 2007-03-18  Bruno Haible  <bruno@clisp.org>
30747
30748         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
30749         Suggested by Eric Blake.
30750
30751 2007-03-18  Ben Pfaff  <blp@gnu.org>
30752
30753         * doc/relocatable.texi: Recommend using as prefix a directory
30754         that does not exist and will never be created.  Based on
30755         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
30756         and others.
30757
30758 2007-03-17  Bruno Haible  <bruno@clisp.org>
30759
30760         * lib/fchownat.c: Include lchown.h.
30761
30762 2007-03-17  Bruno Haible  <bruno@clisp.org>
30763
30764         Fix endless loop when the given allocated size was > INT_MAX.
30765         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
30766         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
30767         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
30768         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
30769         * lib/sprintf.c (sprintf): Likewise.
30770
30771 2007-03-17  Bruno Haible  <bruno@clisp.org>
30772
30773         * tests/test-argp-2.sh (func_compare): Output a context diff.
30774
30775 2007-03-17  Bruno Haible  <bruno@clisp.org>
30776
30777         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
30778         locale's decimal-point character.
30779
30780 2007-03-17  Bruno Haible  <bruno@clisp.org>
30781
30782         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
30783         before comparing it. Needed because on some platforms (e.g. x86) a
30784         'long double' occupies less bytes than sizeof (long double).
30785
30786 2007-03-17  Bruno Haible  <bruno@clisp.org>
30787
30788         * tests/test-crc.c (main): Make printf statements 64-bit clean.
30789         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
30790         * tests/test-getaddrinfo.c (simple): Likewise.
30791         * tests/test-read-file.c (main): Likewise.
30792
30793 2007-03-17  Bruno Haible  <bruno@clisp.org>
30794
30795         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
30796
30797 2007-03-17  Bruno Haible  <bruno@clisp.org>
30798
30799         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
30800         unused variable.
30801
30802 2007-03-17  Bruno Haible  <bruno@clisp.org>
30803
30804         * tests/test-c-strcasecmp.c: Include c-strcase.h.
30805         * tests/test-c-strncasecmp.c: Likewise.
30806
30807 2007-03-17  Bruno Haible  <bruno@clisp.org>
30808
30809         * modules/stdlib (Depends-on): Add unistd.
30810         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
30811         Needed for MacOS X 10.3.
30812
30813 2007-03-17  Bruno Haible  <bruno@clisp.org>
30814
30815         * lib/unistr/u-strdup.h: Include <stdlib.h>.
30816
30817 2007-03-17  Bruno Haible  <bruno@clisp.org>
30818
30819         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
30820
30821 2007-03-17  Bruno Haible  <bruno@clisp.org>
30822
30823         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
30824         to reflect files copied from gnulib (with or without modifications).
30825         Suggested by Jim Meyering.
30826
30827 2007-03-17  Eric Blake  <ebb9@byu.net>
30828
30829         * NEWS: Document stdlib change from 2007-02-18.
30830
30831 2007-03-17  Jim Meyering  <jim@meyering.net>
30832
30833         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
30834         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
30835         someone uses a name containing shell meta-characters.
30836         Reported by Alfred M. Szmidt.
30837
30838         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
30839
30840 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
30841
30842         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
30843         and copy gettext configuration files only if configure.ac contains
30844         a use of AM_GNU_GETTEXT_VERSION.
30845
30846 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
30847
30848         * build-aux/bootstrap (gnulib_name): New variable.
30849         (gnulib_tool_options): Use it.
30850
30851 2007-03-13  Simon Josefsson  <simon@josefsson.org>
30852
30853         * tests/test-des.c: Use new namespace.
30854
30855 2007-03-15  Bruno Haible  <bruno@clisp.org>
30856
30857         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
30858         Reported by James Youngman <jay@gnu.org>.
30859
30860 2007-03-15  Bruno Haible  <bruno@clisp.org>
30861
30862         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
30863         declared prototype. Needed with cc on OSF/1 5.1.
30864
30865 2007-03-15  Bruno Haible  <bruno@clisp.org>
30866
30867         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
30868         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
30869         (struct gl_list_implementation): Add dispose_fn argument to the
30870         'create_empty', 'create' methods.
30871         (struct gl_list_impl_base): Add field 'dispose_fn'.
30872         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
30873         argument.
30874         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
30875         dispose_fn argument.
30876         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
30877         dispose_fn on the dropped values.
30878         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
30879         dispose_fn argument.
30880         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
30881         dropped values.
30882         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
30883         (gl_tree_remove_node): Call dispose_fn on the dropped value.
30884         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
30885         (gl_tree_remove_node): Call dispose_fn on the dropped value.
30886         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
30887         argument.
30888         (gl_tree_list_free): Call dispose_fn on the dropped values.
30889         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
30890         the dropped values.
30891         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
30892         Add dispose_fn argument.
30893         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
30894         Call dispose_fn on the dropped values.
30895         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
30896         Add dispose_fn argument.
30897         (gl_sublist_create): Initialize the 'dispose_fn' field.
30898         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
30899         * tests/test-array_list.c (main): Update.
30900         * tests/test-carray_list.c (main): Update.
30901         * tests/test-avltree_list.c (main): Update.
30902         * tests/test-rbtree_list.c (main): Update.
30903         * tests/test-avltreehash_list.c (main): Update.
30904         * tests/test-rbtreehash_list.c (main): Update.
30905         * tests/test-linked_list.c (main): Update.
30906         * tests/test-linkedhash_list.c (main): Update.
30907         * tests/test-array_oset.c (main): Update.
30908
30909 2007-03-15  Bruno Haible  <bruno@clisp.org>
30910
30911         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
30912         (gl_oset_create_empty): Add dispose_fn argument.
30913         (struct gl_oset_implementation): Add dispose_fn argument to
30914         'create_empty' method.
30915         (struct gl_oset_impl_base): Add dispose_fn field.
30916         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
30917         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
30918         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
30919         values.
30920         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
30921         (gl_tree_oset_free): Call dispose_fn on the dropped values.
30922         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
30923         dropped value.
30924         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
30925         dropped value.
30926         * tests/test-array_oset.c (main): Update.
30927         * tests/test-avltree_oset.c (main): Update.
30928         * tests/test-rbtree_oset.c (main): Update.
30929         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
30930
30931 2007-03-13  Bruno Haible  <bruno@clisp.org>
30932
30933         * tests/test-stdbool.c (i): Update after last patch.
30934
30935 2007-03-12  Bruno Haible  <bruno@clisp.org>
30936
30937         * lib/quotearg.c: Include <wctype.h> early, before the definition of
30938         the iswprint macro. Needed on Solaris 2.5.1.
30939
30940 2007-03-12  Bruno Haible  <bruno@clisp.org>
30941
30942         * tests/test-printf-frexp.c (main): Declare x as volatile.
30943
30944 2007-03-12  Simon Josefsson  <simon@josefsson.org>
30945
30946         * doc/gnulib.texi (Build robot for gnulib): New section.
30947
30948 2007-03-12  Jim Meyering  <jim@meyering.net>
30949
30950         * build-aux/bootstrap: New file.
30951         * build-aux/bootstrap.conf: New file, from coreutils.
30952
30953 2007-03-11  Bruno Haible  <bruno@clisp.org>
30954
30955         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
30956
30957 2007-03-12  Simon Josefsson  <simon@josefsson.org>
30958
30959         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
30960         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
30961         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
30962
30963 2007-03-11  Bruno Haible  <bruno@clisp.org>
30964
30965         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
30966         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
30967
30968 2007-03-11  Bruno Haible  <bruno@clisp.org>
30969
30970         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
30971         formula. Needed for SunPRO C 5.0.
30972
30973 2007-03-11  Bruno Haible  <bruno@clisp.org>
30974
30975         * modules/long-options (Depends-on): Add getopt.
30976
30977 2007-03-11  Bruno Haible  <bruno@clisp.org>
30978
30979         * modules/modechange (Depends-on): Add stdbool.
30980
30981 2007-03-11  Bruno Haible  <bruno@clisp.org>
30982
30983         * modules/i-ring (Depends-on): Add stdbool.
30984
30985 2007-03-11  Bruno Haible  <bruno@clisp.org>
30986
30987         * modules/gc-des (Depends-on): Add stdbool.
30988
30989 2007-03-11  Bruno Haible  <bruno@clisp.org>
30990
30991         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
30992
30993 2007-03-11  Bruno Haible  <bruno@clisp.org>
30994
30995         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
30996
30997 2007-03-11  Bruno Haible  <bruno@clisp.org>
30998
30999         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
31000
31001 2007-03-11  Bruno Haible  <bruno@clisp.org>
31002
31003         * lib/vasnprintf.c (sprintf): Undefine.
31004
31005 2007-03-11  Bruno Haible  <bruno@clisp.org>
31006
31007         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
31008         initializers in SunPRO C and Compaq C compilers.
31009
31010 2007-03-11  Bruno Haible  <bruno@clisp.org>
31011
31012         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
31013         decrementing code ANSI C compliant.
31014
31015 2007-03-11  Bruno Haible  <bruno@clisp.org>
31016
31017         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
31018         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
31019
31020 2007-03-11  Bruno Haible  <bruno@clisp.org>
31021
31022         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
31023         <stdbool.h> substitute doesn't pass.
31024
31025 2007-03-11  Bruno Haible  <bruno@clisp.org>
31026
31027         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
31028
31029 2007-03-11  Bruno Haible  <bruno@clisp.org>
31030
31031         * gnulib-tool (func_create_megatestdir): Create also an autobuild
31032         script, for submission to autobuild.josefsson.org.
31033
31034 2007-03-10  Bruno Haible  <bruno@clisp.org>
31035
31036         * modules/canonicalize-lgpl-tests: New file.
31037         * tests/test-canonicalize-lgpl.sh: New file.
31038         * tests/test-canonicalize-lgpl.c: New file.
31039
31040         * modules/c-strcase-tests: New file.
31041         * tests/test-c-strcase.sh: New file.
31042         * tests/test-c-strcasecmp.c: New file.
31043         * tests/test-c-strncasecmp.c: New file.
31044
31045         * modules/atexit-tests: New file.
31046         * tests/test-atexit.sh: New file.
31047         * tests/test-atexit.c: New file.
31048
31049 2007-03-10  Bruno Haible  <bruno@clisp.org>
31050
31051         * tests/test-binary-io.sh: Use temporary filenames that are not so
31052         likely to clash with those of other tests (in a parallel make).
31053         * tests/test-binary-io.c: Likewise.
31054
31055 2007-03-10  Bruno Haible  <bruno@clisp.org>
31056
31057         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
31058         fallback; use #error instead.
31059         Suggested by Simon Josefsson.
31060
31061 2007-03-10  Bruno Haible  <bruno@clisp.org>
31062
31063         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
31064         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
31065         first and the last.
31066
31067 2007-03-10  Bruno Haible  <bruno@clisp.org>
31068
31069         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
31070
31071 2007-03-10  Bruno Haible  <bruno@clisp.org>
31072
31073         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
31074         "make distcheck".
31075         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
31076         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
31077         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
31078
31079 2007-03-10  Bruno Haible  <bruno@clisp.org>
31080
31081         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
31082         variable.
31083         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
31084         variable.
31085
31086 2007-03-09  Eric Blake  <ebb9@byu.net>
31087         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
31088
31089         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
31090         types are not being provided by gnulib.
31091         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
31092         types are supported.
31093
31094 2007-03-10  Bruno Haible  <bruno@clisp.org>
31095
31096         * lib/stdio_.h (__attribute__): New macro.
31097         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
31098         vsprintf): Specify __attribute__ __format__ for GCC.
31099         Suggested by Eric Blake.
31100
31101 2007-03-09  Bruno Haible  <bruno@clisp.org>
31102
31103         * modules/printf-posix-tests: New file.
31104         * tests/test-printf-posix.sh: New file.
31105         * tests/test-printf-posix.c: New file.
31106
31107         * modules/printf-posix: New file.
31108         * lib/printf.c: New file.
31109         * m4/printf-posix-rpl.m4: New file.
31110         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
31111         REPLACE_PRINTF.
31112         * lib/stdio_.h (printf): New declaration.
31113         (format, __format__, ____printf____, ____scanf____, ____strftime____,
31114         ____strfmon____): New macros.
31115         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
31116         REPLACE_PRINTF.
31117
31118 2007-03-09  Bruno Haible  <bruno@clisp.org>
31119
31120         * tests/test-vasnprintf-posix2.sh: New file.
31121         * tests/test-vasnprintf-posix2.c: New file.
31122         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
31123         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
31124         (Makefile.am): Activate test-vasnprintf-posix2.sh.
31125
31126         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
31127         a locale dependent decimal point, rather than always '.'.
31128
31129 2007-03-09  Eric Blake  <ebb9@byu.net>
31130
31131         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
31132         spite of platforms like Tandem/NSK that define it to -1.
31133
31134 2007-03-08  Bruno Haible  <bruno@clisp.org>
31135
31136         * modules/vprintf-posix-tests: New file.
31137         * tests/test-vprintf-posix.sh: New file.
31138         * tests/test-vprintf-posix.c: New file.
31139         * tests/test-printf-posix.h: New file.
31140
31141         * modules/vprintf-posix: New file.
31142         * lib/vprintf.c: New file.
31143         * m4/vprintf-posix.m4: New file.
31144         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
31145         REPLACE_VPRINTF.
31146         * lib/stdio_.h (vprintf): New declaration.
31147         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
31148         REPLACE_VPRINTF.
31149
31150 2007-03-08  Bruno Haible  <bruno@clisp.org>
31151
31152         * modules/fprintf-posix-tests: New file.
31153         * tests/test-fprintf-posix.sh: New file.
31154         * tests/test-fprintf-posix.c: New file.
31155
31156         * modules/fprintf-posix: New file.
31157         * lib/fprintf.c: New file.
31158         * m4/fprintf-posix.m4: New file.
31159         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
31160         REPLACE_FPRINTF.
31161         * lib/stdio_.h (fprintf): New declaration.
31162         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
31163         REPLACE_FPRINTF.
31164
31165 2007-03-08  Bruno Haible  <bruno@clisp.org>
31166
31167         * modules/vfprintf-posix-tests: New file.
31168         * tests/test-vfprintf-posix.sh: New file.
31169         * tests/test-vfprintf-posix.c: New file.
31170         * tests/test-fprintf-posix.h: New file.
31171         * tests/test-fprintf-posix.out: New file.
31172
31173         * modules/vfprintf-posix: New file.
31174         * lib/vfprintf.c: New file.
31175         * m4/vfprintf-posix.m4: New file.
31176         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
31177         REPLACE_VFPRINTF.
31178         * lib/stdio_.h (vfprintf): New declaration.
31179         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
31180         REPLACE_VFPRINTF.
31181
31182 2007-03-08  Bruno Haible  <bruno@clisp.org>
31183
31184         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
31185
31186 2007-03-08  Bruno Haible  <bruno@clisp.org>
31187
31188         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
31189         instead of 'expr' invocations.
31190         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31191         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31192         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31193         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31194         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31195         Suggested by Paul Eggert.
31196
31197 2007-03-08  Bruno Haible  <bruno@clisp.org>
31198
31199         * modules/fseterr-tests: New file.
31200         * tests/test-fseterr.c: New file.
31201
31202         * modules/fseterr: New file.
31203         * lib/fseterr.h: New file.
31204         * lib/fseterr.c: New file.
31205
31206 2007-03-08  Bruno Haible  <bruno@clisp.org>
31207
31208         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
31209         * lib/getopt_.h: Likewise.
31210         * lib/mbswidth.h: Likewise.
31211         * lib/setenv.h: Likewise.
31212         * lib/vasnprintf.h: Likewise.
31213         * lib/vasprintf.h: Likewise.
31214         * lib/verror.h: Likewise.
31215         * lib/xsetenv.h: Likewise.
31216         * lib/xvasprintf.h: Likewise.
31217
31218 2007-03-08  Jim Meyering  <jim@meyering.net>
31219
31220         * users.txt: Add parted.
31221
31222         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
31223
31224 2007-03-07  Bruno Haible  <bruno@clisp.org>
31225
31226         * m4/printf.m4: Make the shell script snippets copy&pastable.
31227
31228 2007-03-02  Bruno Haible  <bruno@clisp.org>
31229
31230         * lib/netinet_in_.h: New file.
31231         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
31232         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
31233         * modules/netinet_in (Files): Add lib/netinet_in_.h.
31234         (Depends-on): Add absolute-header.
31235         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
31236         into netinet/in.h.
31237
31238 2007-03-03  Bruno Haible  <bruno@clisp.org>
31239
31240         * lib/sys_select_.h: New file.
31241         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
31242         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
31243         * modules/sys_select (Files): Add lib/sys_select_.h.
31244         (Depends-on): Add absolute-header.
31245         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
31246         into sys/select.h.
31247
31248 2007-03-02  Bruno Haible  <bruno@clisp.org>
31249
31250         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
31251         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
31252         values.
31253         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
31254         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
31255         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
31256         * modules/sys_socket (Depends-on): Add absolute-header.
31257         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
31258         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
31259         (Include): Remove requirement of inclusion of <sys/types.h>.
31260
31261 2007-03-02  Bruno Haible  <bruno@clisp.org>
31262
31263         * lib/byteswap_.h (bswap_32): Fix formula.
31264
31265 2007-03-06  Bruno Haible  <bruno@clisp.org>
31266
31267         * modules/sprintf-posix-tests: New file.
31268         * tests/test-sprintf-posix.c: New file.
31269
31270         * modules/sprintf-posix: New file.
31271         * lib/sprintf.c: New file.
31272         * m4/sprintf-posix.m4: New file.
31273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
31274         REPLACE_SPRINTF.
31275         * lib/stdio_.h (sprintf): New declaration.
31276         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
31277         REPLACE_SPRINTF.
31278
31279 2007-03-06  Bruno Haible  <bruno@clisp.org>
31280
31281         * modules/vsprintf-posix-tests: New file.
31282         * tests/test-vsprintf-posix.c: New file.
31283         * tests/test-sprintf-posix.h: New file.
31284
31285         * modules/vsprintf-posix: New file.
31286         * lib/vsprintf.c: New file.
31287         * m4/vsprintf-posix.m4: New file.
31288         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
31289         REPLACE_VSPRINTF.
31290         * lib/stdio_.h (vsprintf): New declaration.
31291         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
31292         REPLACE_VSPRINTF.
31293
31294 2007-03-06  Bruno Haible  <bruno@clisp.org>
31295
31296         * modules/vsnprintf (Depend-on): Remove minmax.
31297
31298 2007-03-06  Bruno Haible  <bruno@clisp.org>
31299
31300         * modules/snprintf-posix-tests: New file.
31301         * tests/test-snprintf-posix.c: New file.
31302
31303         * modules/snprintf-posix: New file.
31304         * m4/snprintf-posix.m4: New file.
31305         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
31306         gl_FUNC_SNPRINTF.
31307         (gl_FUNC_SNPRINTF): Invoke it.
31308         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
31309         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
31310         is set.
31311         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
31312
31313 2007-03-06  Bruno Haible  <bruno@clisp.org>
31314
31315         * modules/vsnprintf-posix-tests: New file.
31316         * tests/test-vsnprintf-posix.c: New file.
31317         * tests/test-snprintf-posix.h: New file.
31318
31319         * modules/vsnprintf-posix: New file.
31320         * m4/vsnprintf-posix.m4: New file.
31321         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
31322         gl_FUNC_VSNPRINTF.
31323         (gl_FUNC_VSNPRINTF): Invoke it.
31324         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
31325         * lib/stdio_.h (vsnprintf): Define as a replacement if
31326         REPLACE_VSNPRINTF is set.
31327         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
31328
31329 2007-03-06  Bruno Haible  <bruno@clisp.org>
31330
31331         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
31332         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
31333
31334 2007-03-06  Bruno Haible  <bruno@clisp.org>
31335
31336         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
31337         (asinl): Declare also if HAVE_DECL_ASINL is set.
31338         (atanl): Declare also if HAVE_DECL_ATANL is set.
31339         (ceill): Declare also if HAVE_DECL_CEILL is set.
31340         (cosl): Declare also if HAVE_DECL_COSL is set.
31341         (expl): Declare also if HAVE_DECL_EXPL is set.
31342         (floorl): Declare also if HAVE_DECL_FLOORL is set.
31343         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
31344         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
31345         (logl): Declare also if HAVE_DECL_LOGL is set.
31346         (sinl): Declare also if HAVE_DECL_SINL is set.
31347         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
31348         (tanl): Declare also if HAVE_DECL_TANL is set.
31349         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
31350         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
31351         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
31352         declaration of frexpl, ldexpl.
31353         * modules/printf-frexpl (Depends-on): Add math.
31354         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
31355
31356 2007-03-05  Bruno Haible  <bruno@clisp.org>
31357
31358         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
31359         frexpl and ldexpl are declared.
31360         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
31361
31362 2007-03-05  Bruno Haible  <bruno@clisp.org>
31363
31364         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
31365         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
31366
31367 2007-03-05  Bruno Haible  <bruno@clisp.org>
31368
31369         * lib/stdio_.h: Include <stddef.h>.
31370
31371 2007-03-05  Bruno Haible  <bruno@clisp.org>
31372
31373         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
31374
31375 2007-03-05  Bruno Haible  <bruno@clisp.org>
31376
31377         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
31378         NetBSD 4, from Ralf Wildenhues.
31379
31380 2007-03-04  Bruno Haible  <bruno@clisp.org>
31381
31382         * lib/vasprintf.h: Update #if logic for the case when the functions
31383         exist but are overridden.
31384
31385 2007-03-04  Bruno Haible  <bruno@clisp.org>
31386
31387         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
31388         implementations: glibc-2.4 and MacOS X 10.3.
31389         * tests/test-vasnprintf-posix.c (test_function): Test also the case
31390         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
31391         * tests/test-vasprintf-posix.c (test_function): Likewise.
31392
31393 2007-03-04  Bruno Haible  <bruno@clisp.org>
31394
31395         * modules/vasprintf-posix-tests: New file.
31396         * tests/test-vasprintf-posix.c: New file.
31397
31398         * modules/vasprintf-posix: New file.
31399         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
31400         defined.
31401         * m4/vasprintf-posix.m4: New file.
31402         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
31403         gl_FUNC_VASPRINTF.
31404         (gl_FUNC_VASPRINTF): Invoke it.
31405         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
31406         here.
31407         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
31408
31409 2007-03-04  Bruno Haible  <bruno@clisp.org>
31410
31411         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
31412         REPLACE_GETTIMEOFDAY.
31413         * modules/sys_time (Makefile.am): Likewise.
31414         * m4/sys_time_h.m4: Likewise.
31415         * m4/gettimeofday.m4: Likewise.
31416
31417 2007-03-04  Bruno Haible  <bruno@clisp.org>
31418
31419         * modules/vasnprintf-posix-tests: New file.
31420         * tests/test-vasnprintf-posix.c: New file.
31421
31422         * modules/vasnprintf-posix: New file.
31423         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
31424         printf-frexpl.h.
31425         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
31426         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
31427         REPLACE_VASNPRINTF is defined.
31428         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
31429         gl_FUNC_VASNPRINTF.
31430         (gl_FUNC_VASNPRINTF): Invoke it.
31431         * m4/vasnprintf-posix.m4: New file.
31432         * m4/printf.m4: New file.
31433
31434 2007-03-04  Bruno Haible  <bruno@clisp.org>
31435
31436         Compile progreloc.c only if --enable-relocatable is specified.
31437         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
31438         if --enable-relocatable was specified.
31439         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
31440         lib_SOURCES.
31441
31442 2007-03-04  Jim Meyering  <jim@meyering.net>
31443
31444         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
31445         Use it consistently, rather than enumerating errno constants.
31446
31447 2007-03-04  Bruno Haible  <bruno@clisp.org>
31448
31449         * modules/xvasprintf-tests: New file.
31450         * tests/test-xvasprintf.c: New file.
31451
31452         * modules/vasprintf-tests: New file.
31453         * tests/test-vasprintf.c: New file.
31454
31455         * modules/vasnprintf-tests: New file.
31456         * tests/test-vasnprintf.c: New file.
31457
31458         * modules/vsnprintf-tests: New file.
31459         * tests/test-vsnprintf.c: New file.
31460
31461         * modules/snprintf-tests: New file.
31462         * tests/test-snprintf.c: New file.
31463
31464 2007-03-04  Bruno Haible  <bruno@clisp.org>
31465
31466         Compile relocatable.c only if --enable-relocatable is specified.
31467         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
31468         gl_RELOCATABLE_LIBRARY.
31469         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
31470         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
31471         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
31472         gl_RELOCATABLE_LIBRARY.
31473         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
31474         (Makefile.am): Remove lib_SOURCES.
31475         * modules/relocatable-lib-lgpl (configure.ac): Invoke
31476         gl_RELOCATABLE_LIBRARY.
31477         (Makefile.am): Remove lib_SOURCES.
31478         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
31479         always.
31480         * modules/relocatable-prog-wrapper (configure.ac): Invoke
31481         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
31482
31483 2007-03-04  Bruno Haible  <bruno@clisp.org>
31484
31485         * modules/argmatch-tests: New file.
31486         * tests/test-argmatch.c: New file.
31487
31488         * tests/test-allocsa.c (main): Halve the number of loop runs.
31489
31490         * modules/alloca-opt-tests: New file.
31491         * tests/test-alloca-opt.c: New file.
31492
31493 2007-03-04  Jim Meyering  <jim@meyering.net>
31494
31495         Work around difference between Linux ACLs and Solaris 10 ZFS.
31496         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
31497         for EINVAL.
31498
31499 2007-03-03  Bruno Haible  <bruno@clisp.org>
31500
31501         * modules/relocatable-prog (Depends-on): Add back progreloc's
31502         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
31503
31504 2007-03-03  Bruno Haible  <bruno@clisp.org>
31505
31506         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
31507         * modules/relocatable-lib: New file.
31508
31509 2007-03-03  Bruno Haible  <bruno@clisp.org>
31510
31511         * modules/relocatable-prog: Renamed from modules/relocatable.
31512         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
31513
31514 2007-03-03  Bruno Haible  <bruno@clisp.org>
31515
31516         * modules/relocatable-script (Files): Add doc/relocatable.texi,
31517         m4/relocatable-lib.m4.
31518         (Depends-on): Remove 'relocatable'.
31519         (configure.ac): Add gl_RELOCATABLE_NOP.
31520
31521 2007-03-03  Bruno Haible  <bruno@clisp.org>
31522
31523         * modules/relocatable-prog-wrapper: New file.
31524         * modules/relocatable (Depends-on): Add it. Remove all other
31525         dependencies except progname.
31526         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
31527
31528         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
31529         (gl_FUNC_STRERROR): Nop.
31530         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
31531
31532         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
31533         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
31534
31535         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
31536         (gl_FUNC_READLINK): Update.
31537
31538         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
31539
31540 2007-03-03  Bruno Haible  <bruno@clisp.org>
31541
31542         * lib/xreadlink.c: Include <unistd.h> unconditionally.
31543         * modules/xreadlink (Depends-on): Add unistd.
31544         * modules/xreadlink-with-size (Depends-on): Likewise.
31545
31546 2007-03-03  Bruno Haible  <bruno@clisp.org>
31547
31548         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
31549         extracted from gt_FUNC_SETENV.
31550         (gt_FUNC_SETENV): Remove macro.
31551         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
31552         remove gt_FUNC_SETENV.
31553
31554 2007-03-03  Bruno Haible  <bruno@clisp.org>
31555
31556         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
31557         ENABLE_RELOCATABLE here.
31558         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
31559
31560 2007-03-03  Bruno Haible  <bruno@clisp.org>
31561
31562         * modules/rbtreehash-list-tests (Depends-on): Add progname.
31563         * tests/test-rbtreehash_list.c: Include progname.h.
31564         (main): Call set_program_name.
31565
31566         * modules/rbtree-oset-tests (Depends-on): Add progname.
31567         * tests/test-rbtree_oset.c: Include progname.h.
31568         (main): Call set_program_name.
31569
31570         * modules/rbtree-list-tests (Depends-on): Add progname.
31571         * tests/test-rbtree_list.c: Include progname.h.
31572         (main): Call set_program_name.
31573
31574         * modules/linked-list-tests (Depends-on): Add progname.
31575         * tests/test-linked_list.c: Include progname.h.
31576         (main): Call set_program_name.
31577
31578 2007-03-03  Bruno Haible  <bruno@clisp.org>
31579
31580         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
31581         All uses of __restrict changed to _Restrict_.
31582         * lib/glob_.h (__restrict): Remove macro.
31583
31584 2007-03-02  Bruno Haible  <bruno@clisp.org>
31585
31586         * modules/gettext (configure.ac): Require gettext infrastructure
31587         from version 0.16.1.
31588
31589 2007-03-02  Bruno Haible  <bruno@clisp.org>
31590
31591         * modules/linkedhash-list-tests (Depends-on): Add progname.
31592         * tests/test-linkedhash_list.c: Include progname.h.
31593         (main): Call set_program_name.
31594
31595         * modules/carray-list-tests (Depends-on): Add progname.
31596         * tests/test-carray_list.c: Include progname.h.
31597         (main): Call set_program_name.
31598
31599         * modules/avltreehash-list-tests (Depends-on): Add progname.
31600         * tests/test-avltreehash_list.c: Include progname.h.
31601         (main): Call set_program_name.
31602
31603         * modules/avltree-oset-tests (Depends-on): Add progname.
31604         * tests/test-avltree_oset.c: Include progname.h.
31605         (main): Call set_program_name.
31606
31607         * modules/avltree-list-tests (Depends-on): Add progname.
31608         * tests/test-avltree_list.c: Include progname.h.
31609         (main): Call set_program_name.
31610
31611         * modules/array-oset-tests (Depends-on): Add progname.
31612         * tests/test-array_oset.c: Include progname.h.
31613         (main): Call set_program_name.
31614
31615         * modules/array-list-tests (Depends-on): Add progname.
31616         * tests/test-array_list.c: Include progname.h.
31617         (main): Call set_program_name.
31618
31619         * modules/argp-tests (Depends-on): Add progname.
31620         * tests/test-argp.c: Include argp.h first. Include progname.h.
31621         (main): Call set_program_name.
31622
31623 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
31624
31625         * doc/gnulib-tool.texi (Initial import): Reword description of
31626         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
31627         limited effect even if defined after the first system include.
31628
31629 2007-03-01  Bruno Haible  <bruno@clisp.org>
31630
31631         * build-aux/config.libpath: Update to libtool-1.5.22.
31632         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31633
31634 2007-03-01  Bruno Haible  <bruno@clisp.org>
31635
31636         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
31637         foo_CFLAGS.
31638         Reported by Ralf Wildenhues.
31639
31640 2007-03-01  Bruno Haible  <bruno@clisp.org>
31641
31642         * build-aux/install-reloc: Remove object files left over by some
31643         compilers.
31644         Reported by Ralf Wildenhues.
31645
31646 2007-03-01  Bruno Haible  <bruno@clisp.org>
31647
31648         * build-aux/install-reloc: Break long lines.
31649
31650 2007-03-01  Bruno Haible  <bruno@clisp.org>
31651
31652         * doc/relocatable.texi: Document that it may not work on OpenBSD.
31653         Reported by Ralf Wildenhues.
31654
31655 2007-03-01  Bruno Haible  <bruno@clisp.org>
31656
31657         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
31658         include ordering constraints.
31659
31660 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31661
31662         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
31663         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
31664         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
31665         as another example.
31666         * lib/time_.h: Fix misspelling.
31667         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
31668         Require gl_HEADER_TIME_H_DEFAULTS.
31669         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
31670         * m4/time_r.m4 (gl_TIME_R): Likewise.
31671         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
31672
31673 2007-03-01  Bruno Haible  <bruno@clisp.org>
31674
31675         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
31676         * m4/utimens.m4 (gl_UTIMENS): Likewise.
31677
31678 2007-03-01  Jim Meyering  <jim@meyering.net>
31679
31680         * modules/xreadlink (Maintainer): Add my name.
31681         * modules/xreadlink-with-size (Depends-on): Alphabetize.
31682
31683 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
31684             Bruno Haible  <bruno@clisp.org>
31685
31686         * build-aux/install-reloc: Compile also c-ctype.c.
31687         * build-aux/relocatable.sh.in: New file.
31688         * doc/relocatable.texi: New file.
31689         * doc/relocatable-maint.texi: New file.
31690         * doc/gnulib.texi: Include relocatable-maint.texi.
31691         * lib/progreloc.c: Include unistd.h unconditionally.
31692         * lib/relocwrapper.c: Include unistd.h unconditionally.
31693         Include c-ctype.h.
31694         (add_dotbin): Use c_tolower.
31695         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
31696         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
31697         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
31698         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
31699         to m4/relocatable-lib.m4.
31700         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
31701         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
31702         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
31703         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
31704         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
31705         * modules/relocatable: New file.
31706         * modules/relocatable-lib: New file.
31707         * modules/relocatable-script: New file.
31708
31709 2007-02-28  Bruno Haible  <bruno@clisp.org>
31710
31711         Import --enable-relocatable infrastructure.
31712         * build-aux/config.libpath: New file, from GNU gettext.
31713         * build-aux/install-reloc: New file, from GNU gettext.
31714         * build-aux/reloc-ldflags: New file, from GNU gettext.
31715         * lib/relocatable.h: New file, from GNU gettext.
31716         * lib/relocatable.c: New file, from GNU gettext.
31717         * lib/relocwrapper.c: New file, from GNU gettext.
31718         * m4/relocatable.m4: New file, from GNU gettext.
31719
31720 2007-02-28  Bruno Haible  <bruno@clisp.org>
31721
31722         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
31723
31724         * modules/xreadlink: New file, from GNU gettext with modifications.
31725         * lib/xreadlink.c: New file, from GNU gettext.
31726         * lib/xreadlink.h: Add comments.
31727         (xreadlink): New declaration.
31728
31729         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
31730         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
31731         lib/xreadlink-with-size.c.
31732         (configure.ac): Remove gl_XREADLINK invocation.
31733         (Makefile.am): Augment lib_SOURCES.
31734         * m4/xreadlink.m4: Remove file.
31735         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
31736         (xreadlink_with_size): Renamed from xreadink.
31737         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
31738         * modules/canonicalize (Depends-on): Replace xreadlink with
31739         xreadlink-with-size.
31740         * lib/canonicalize.c (canonicalize_filename_mode): Update.
31741
31742 2007-02-25  Jim Meyering  <jim@meyering.net>
31743
31744         * build-aux/announce-gen: When complaining about excess arguments,
31745         list them.
31746
31747 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
31748
31749         * README: Document signed integer overflow situation more
31750         accurately.
31751
31752 2007-02-25  Bruno Haible  <bruno@clisp.org>
31753
31754         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
31755         'a' or 'A' conversion.
31756
31757 2007-02-25  Bruno Haible  <bruno@clisp.org>
31758
31759         * modules/filename: Renamed from modules/pathname.
31760         (Files): Replace lib/pathname.h with lib/filename.h. Replace
31761         lib/concatpath.c with lib/concat-filename.c.
31762         (Makefile.am): Update.
31763         (Include): Replace pathname.h with filename.h.
31764         * lib/filename.h: Renamed from lib/pathname.h.
31765         (concatenated_filename): Renamed from concatenated_pathname.
31766         * lib/concat-filename.c: Renamed from lib/concatpath.c.
31767         (concatenated_filename): Renamed from concatenated_pathname.
31768         * lib/findprog.c: Include filename.h instead of pathname.h.
31769         (find_in_path): Update.
31770         * lib/javacomp.c: Include filename.h instead of pathname.h.
31771         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
31772         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
31773         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
31774         is_oldgcj_14_13_usable, is_javac_usable): Update.
31775         * lib/javaexec.c: Include filename.h instead of pathname.h.
31776         (execute_java_class): Update.
31777         * modules/findprog: Update.
31778         * modules/javacomp: Update.
31779         * modules/javaexec: Update.
31780         * MODULES.html.sh (File system functions): Add 'filename', remove
31781         'pathname'.
31782
31783 2007-02-25  Bruno Haible  <bruno@clisp.org>
31784
31785         * modules/printf-frexpl-tests: New file.
31786         * tests/test-printf-frexpl.c: New file.
31787
31788         * modules/printf-frexpl: New file.
31789         * lib/printf-frexpl.h: New file.
31790         * lib/printf-frexpl.c: New file.
31791         * m4/printf-frexpl.m4: New file.
31792
31793 2007-02-25  Bruno Haible  <bruno@clisp.org>
31794
31795         * modules/printf-frexp-tests: New file.
31796         * tests/test-printf-frexp.c: New file.
31797
31798         * modules/printf-frexp: New file.
31799         * lib/printf-frexp.h: New file.
31800         * lib/printf-frexp.c: New file.
31801         * m4/printf-frexp.m4: New file.
31802
31803 2007-02-25  Bruno Haible  <bruno@clisp.org>
31804
31805         Assume automake >= 1.10 for the tests.
31806         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
31807         * modules/arctwo-tests: Likewise.
31808         * modules/argp-tests: Likewise.
31809         * modules/avltree-list-tests: Likewise.
31810         * modules/avltree-oset-tests: Likewise.
31811         * modules/avltreehash-list-tests: Likewise.
31812         * modules/carray-list-tests: Likewise.
31813         * modules/crc-tests: Likewise.
31814         * modules/des-tests: Likewise.
31815         * modules/gc-arcfour-tests: Likewise.
31816         * modules/gc-arctwo-tests: Likewise.
31817         * modules/gc-des-tests: Likewise.
31818         * modules/gc-hmac-md5-tests: Likewise.
31819         * modules/gc-hmac-sha1-tests: Likewise.
31820         * modules/gc-md2-tests: Likewise.
31821         * modules/gc-md4-tests: Likewise.
31822         * modules/gc-md5-tests: Likewise.
31823         * modules/gc-pbkdf2-sha1-tests: Likewise.
31824         * modules/gc-rijndael-tests: Likewise.
31825         * modules/gc-sha1-tests: Likewise.
31826         * modules/gc-tests: Likewise.
31827         * modules/getaddrinfo-tests: Likewise.
31828         * modules/hmac-md5-tests: Likewise.
31829         * modules/hmac-sha1-tests: Likewise.
31830         * modules/linked-list-tests: Likewise.
31831         * modules/linkedhash-list-tests: Likewise.
31832         * modules/lock-tests: Likewise.
31833         * modules/md2-tests: Likewise.
31834         * modules/md4-tests: Likewise.
31835         * modules/md5-tests: Likewise.
31836         * modules/rbtree-list-tests: Likewise.
31837         * modules/rbtree-oset-tests: Likewise.
31838         * modules/rbtreehash-list-tests: Likewise.
31839         * modules/read-file-tests: Likewise.
31840         * modules/rijndael-tests: Likewise.
31841         * modules/stdint-tests: Likewise.
31842         * modules/tls-tests: Likewise.
31843
31844 2007-02-24  Bruno Haible  <bruno@clisp.org>
31845
31846         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
31847         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
31848         function; instead check whether isnan with a double argument links.
31849         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
31850         function; instead check whether isnan with a 'long double' argument
31851         links.
31852         Reported by Eric Blake <ebb9@byu.net>.
31853
31854 2007-02-24  Bruno Haible  <bruno@clisp.org>
31855
31856         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
31857         defined.
31858         * lib/isnanl.c: Remove all code. Just include isnan.c.
31859         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
31860
31861 2007-02-25  Jim Meyering  <jim@meyering.net>
31862
31863         Avoid conflicting types for 'unsetenv' on FreeBSD.
31864         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
31865         conflicting with FreeBSD's (5.0 and 6.1) function declaration
31866         in stdlib.h.
31867
31868 2007-02-24  Bruno Haible  <bruno@clisp.org>
31869
31870         * modules/isnanl-nolibm-tests: New file.
31871         * tests/test-isnanl.c: New file.
31872
31873         * modules/isnanl-nolibm: New file.
31874         * lib/isnanl.h: New file.
31875         * lib/isnanl.c: New file.
31876         * m4/isnanl.m4: New file.
31877
31878 2007-02-24  Bruno Haible  <bruno@clisp.org>
31879
31880         * modules/isnan-nolibm-tests: New file.
31881         * tests/test-isnan.c: New file.
31882
31883         * modules/isnan-nolibm: New file.
31884         * lib/isnan.h: New file.
31885         * lib/isnan.c: New file.
31886         * m4/isnan.m4: New file.
31887
31888 2007-02-24  Bruno Haible  <bruno@clisp.org>
31889
31890         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
31891         assume that an exponent fits in 20 bits.
31892
31893 2007-02-24  Jim Meyering  <jim@meyering.net>
31894
31895         * m4/regex.m4: Update the description of the configure-time option,
31896         --without-included-regex, to state accurately what the defaults are,
31897         and perhaps to give people an idea why using this option is risky.
31898
31899 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
31900
31901         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
31902         loops on small arguments.  This attempts to avoid the problem
31903         Bruno Haible reported for AIX 4.3.2 in
31904         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
31905
31906 2007-02-23  Bruno Haible  <bruno@clisp.org>
31907
31908         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
31909         Needed for help2man.
31910
31911 2007-02-23  Karl Berry  <karl@gnu.org>
31912
31913         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
31914         exists, foo.h should be cvs-ignored, not committed.
31915
31916 2007-02-23  Eric Blake  <ebb9@byu.net>
31917
31918         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
31919         * lib/stat-time.h (includes): Likewise.
31920         * lib/utimecmp.c (includes): Likewise.
31921         * lib/utimens.h (includes): Likewise.
31922         * lib/getdate.y (includes): Also include "timespec.h" for use
31923         internal to the module.
31924         * modules/utimens (Depends-on): Revert yesterday's patch.
31925         * modules/nanosleep (Depends-on): Add missing dependency.
31926
31927 2007-02-22  Bruno Haible  <bruno@clisp.org>
31928
31929         * lib/glob.c: Don't include getlogin_r.h.
31930
31931 2007-02-22  Jim Meyering  <jim@meyering.net>
31932
31933         * modules/utimens (Depends-on): Add timespec, required for
31934         utimens.h's inclusion of timespec.h.
31935
31936 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
31937
31938         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
31939         long unreadable paths in GNU/Linux.  Problem reported by Andreas
31940         Schwab in
31941         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
31942         I'll try to think of a better way to fix the Solaris problem.
31943
31944         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
31945         like glibc; on Solaris 10, it fails with errno == EINVAL.
31946         POSIX says the behavior is unspecified if the first argument is NULL,
31947         so play it safe and never pass NULL to the system getcwd.
31948
31949 2007-02-21  Jim Meyering  <jim@meyering.net>
31950
31951         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
31952         of gettimeofday.  It would conflict with the one now always
31953         provided via sys_time_.h.  Reported by Matthew Woehlke, as
31954         an IRIX 6.5 build failure.
31955
31956 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
31957
31958         Minor fixups to port to Solaris 10 with Sun C 5.8.
31959         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
31960         * modules/getcwd (Depends-on): Add dirfd.
31961         * lib/putenv.c (putenv): #undef it.
31962         (rpl_putenv): New decl.
31963         (malloc, free): Include <stdlib.h> rather than prototyping separately.
31964
31965 2007-02-20  Bruno Haible  <bruno@clisp.org>
31966
31967         * modules/stdio-tests: New file.
31968         * tests/test-stdio.c: New file.
31969
31970         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
31971         (Depends-on): Add stdio.
31972         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
31973         (Include): Use <stdio.h> instead of vsnprintf.h.
31974         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
31975         HAVE_DECL_VSNPRINTF.
31976         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
31977
31978         * modules/snprintf (Files): Remove lib/snprintf.h.
31979         (Depends-on): Add stdio.
31980         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
31981         (Include): Use <stdio.h> instead of snprintf.h.
31982         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
31983         HAVE_DECL_SNPRINTF.
31984         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
31985         * lib/getaddrinfo.c: Likewise.
31986
31987         * modules/stdio: New file.
31988         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
31989         * lib/snprintf.h: Remove file.
31990         * lib/vsnprintf.h: Remove file.
31991         * lib/.cppi-disable: Remove snprintf.h.
31992         * m4/stdio_h.m4: New file.
31993         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
31994
31995 2007-02-20  Jim Meyering  <jim@meyering.net>
31996
31997         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
31998         used by e.g., mingw.  From Bruno Haible.
31999
32000 2007-02-19  Bruno Haible  <bruno@clisp.org>
32001
32002         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
32003         warnings.
32004         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32005
32006 2007-02-19  Bruno Haible  <bruno@clisp.org>
32007
32008         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
32009         from mingw users.
32010
32011 2007-02-19  Bruno Haible  <bruno@clisp.org>
32012
32013         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
32014         warnings.
32015         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
32016
32017 2007-02-19  Jim Meyering  <jim@meyering.net>
32018
32019         Don't use FD after a successful "fdopendir (fd)".
32020         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
32021         Reset it by calling dirfd on the just-obtained DIR*.
32022
32023         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
32024         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
32025
32026 2007-02-18  Bruno Haible  <bruno@clisp.org>
32027
32028         * lib/readlink.c: Include <unistd.h>.
32029         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
32030         HAVE_READLINK.
32031         * modules/readlink (Depends-on): Add unistd.
32032         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32033         (Include): Add <unistd.h>.
32034
32035         * lib/getlogin_r.h: Remove file.
32036         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
32037         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
32038         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
32039         HAVE_DECL_GETLOGIN_R.
32040         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
32041         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32042         (Include): Use <unistd.h> instead of getlogin_r.h.
32043
32044         * lib/getcwd.h: Remove file.
32045         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
32046         * lib/xgetcwd.c: Likewise.
32047         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
32048         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
32049         * modules/getcwd (Files): Remove lib/getcwd.h.
32050         (Depends-on): Add unistd.
32051         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32052         (Include): Use <unistd.h> instad of getcwd.h.
32053
32054         * lib/ftruncate.c: Include <unistd.h> first.
32055         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
32056         Set HAVE_FTRUNCATE.
32057         * modules/ftruncate (Depends-on): Add unistd.
32058         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32059
32060         * lib/fchdir.c: Include <unistd.h> first.
32061         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
32062         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
32063         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
32064         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32065         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
32066
32067         * lib/dup2.c: Include <unistd.h> first.
32068         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
32069         HAVE_DUP2.
32070         * modules/dup2 (Depends-on): Add unistd.
32071         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32072
32073         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
32074         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
32075         REPLACE_CHOWN. Don't define chown as a macro here.
32076         * modules/chown (Depends-on): Add unistd.
32077         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32078
32079         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
32080         Add definition for GL_LINK_WARNING.
32081         (chown, dup2): New declarations.
32082         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
32083         link warning.
32084         (ftruncate): New declaration.
32085         (getcwd): New declaration, taken from old getcwd.h.
32086         (getlogin_r): New declaration, taken from old getlogin_r.h.
32087         (readlink): New declaration.
32088         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
32089         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
32090         (gl_PREREQ_UNISTD): Remove macro.
32091         (gl_UNISTD_MODULE_INDICATOR): New macro.
32092         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
32093         many new variables. Don't set UNISTD_H.
32094         * modules/unistd (Description): Change.
32095         (Depends-on): Add link-warning.
32096         (configure.ac): Update.
32097         (Makefile.am): Create unistd.h always. Substitute many new variables
32098         into it.
32099
32100 2007-02-18  Bruno Haible  <bruno@clisp.org>
32101
32102         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
32103         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
32104         HAVE_GETSUBOPT.
32105         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
32106         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
32107         * lib/getsubopt.h: Remove file.
32108         * modules/getsubopt (Files): Remove lib/getsubopt.h.
32109         (Depends-on): Add stdlib.
32110         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32111         (Includes): Use <stdlib.h> instead of getsubopt.h.
32112         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
32113         Set HAVE_GETSUBOPT.
32114         * lib/getsubopt.c: Don't include getsubopt.h.
32115
32116 2007-02-18  Bruno Haible  <bruno@clisp.org>
32117
32118         * modules/fchdir (Depends-on): Add dup2.
32119
32120 2007-02-18  Bruno Haible  <bruno@clisp.org>
32121
32122         * lib/stdlib_.h: Handle glibc's special invocation convention
32123         specially.
32124
32125 2007-02-18  Bruno Haible  <bruno@clisp.org>
32126
32127         * modules/stdlib-tests: New file.
32128         * tests/test-stdlib.c: New file.
32129
32130         * modules/mkstemp (Files): Remove lib/mkstemp.h.
32131         (Depends-on): Add stdlib.
32132         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32133         (Includes): Use <stdlib.h> instead of mkstemp.h.
32134         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
32135         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
32136         * lib/mkstemp.c: Don't include mkstemp.h.
32137         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
32138         * lib/stdlib--.h: Don't include mkstemp.h.
32139
32140         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
32141         (Depends-on): Add stdlib.
32142         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32143         (Includes): Use <stdlib.h> instead of mkdtemp.h.
32144         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
32145         HAVE_MKDTEMP.
32146         * lib/mkdtemp.c: Don't include mkdtemp.h.
32147         * lib/clean-temp.c: Don't include mkdtemp.h.
32148
32149         * modules/exit (Files): Remove lib/exit.h.
32150         (Depends-on): Add stdlib.
32151         (Makefile.am): Remove lib_SOURCES.
32152         (Include): Use <stdlib.h> instead of exit.h.
32153         * lib/argmatch.c: Don't include exit.h.
32154         * lib/execute.c: Likewise.
32155         * lib/pagealign_alloc.c: Likewise.
32156         * lib/pipe.c: Likewise.
32157         * lib/wait-process.c: Likewise.
32158         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
32159         * lib/exitfail.c: Likewise.
32160         * lib/savewd.c: Likewise.
32161         * lib/xsetenv.c: Likewise.
32162
32163         * modules/stdlib: New file.
32164         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
32165         and extra comments about mkstemp().
32166         * lib/exit.h: Remove file.
32167         * lib/mkdtemp.h: Remove file.
32168         * lib/mkstemp.h: Remove file.
32169         * m4/stdlib_h.m4: New file.
32170         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
32171
32172 2007-02-18  Bruno Haible  <bruno@clisp.org>
32173
32174         * modules/math-tests: New file.
32175         * tests/test-math.c: New file.
32176
32177         * modules/math: New file.
32178         * modules/mathl (Files): Remove lib/mathl.h.
32179         (Depends-on): Add math.
32180         (Makefile.am): Don't mention mathl.h.
32181         (Include): Use <math.h> instead of mathl.h.
32182         * lib/math_.h: New file.
32183         * lib/mathl.h: Remove file.
32184         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
32185         mathl.h.
32186         * lib/asinl.c: Likewise.
32187         * lib/atanl.c: Likewise.
32188         * lib/ceill.c: Likewise.
32189         * lib/cosl.c: Likewise.
32190         * lib/expl.c: Likewise.
32191         * lib/floorl.c: Likewise.
32192         * lib/frexpl.c: Likewise.
32193         * lib/ldexpl.c: Likewise.
32194         * lib/logl.c: Likewise.
32195         * lib/sincosl.c: Likewise.
32196         * lib/sinl.c: Likewise.
32197         * lib/sqrtl.c: Likewise.
32198         * lib/tanl.c: Likewise.
32199         * lib/trigl.c: Likewise.
32200         * m4/math_h.m4: New file.
32201         * MODULES.html.sh (Mathematics): Add math.
32202
32203 2007-02-17  Bruno Haible  <bruno@clisp.org>
32204
32205         * modules/wctype-tests: New file.
32206         * tests/test-wctype.c: New file.
32207
32208         * modules/wchar-tests: New file.
32209         * tests/test-wchar.c: New file.
32210
32211         * modules/unistd-tests: New file.
32212         * tests/test-unistd.c: New file.
32213
32214         * modules/time-tests: New file.
32215         * tests/test-time.c: New file.
32216
32217         * modules/sysexits-tests: New file.
32218         * tests/test-sysexits.c: New file.
32219
32220         * modules/sys_time-tests: New file.
32221         * tests/test-sys_time.c: New file.
32222
32223         * modules/sys_stat-tests: New file.
32224         * tests/test-sys_stat.c: New file.
32225
32226         * modules/sys_socket-tests: New file.
32227         * tests/test-sys_socket.c: New file.
32228
32229         * modules/sys_select-tests: New file.
32230         * tests/test-sys_select.c: New file.
32231
32232         * modules/string-tests: New file.
32233         * tests/test-string.c: New file.
32234
32235         * modules/stdbool-tests: New file.
32236         * tests/test-stdbool.c: New file.
32237
32238         * modules/netinet_in-tests: New file.
32239         * tests/test-netinet_in.c: New file.
32240
32241         * modules/inttypes-tests: New file.
32242         * tests/test-inttypes.c: New file.
32243
32244         * modules/fcntl-tests: New file.
32245         * tests/test-fcntl.c: New file.
32246
32247         * modules/byteswap-tests: New file.
32248         * tests/test-byteswap.c: New file.
32249
32250         * modules/arpa_inet-tests: New file.
32251         * tests/test-arpa_inet.c: New file.
32252
32253 2007-02-17  Bruno Haible  <bruno@clisp.org>
32254
32255         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
32256         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
32257         if the corresponding module is not enabled. Emit link warnings if
32258         the function is used nevertheless.
32259         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
32260         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
32261         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
32262         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
32263         * modules/inttypes (Depends-on): Add link-warning.
32264         (Makefile.am): Copy the contents of build-aux/link-warning.h into
32265         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
32266         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
32267         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
32268         * modules/imaxdiv (configure.ac): Likewise.
32269         * modules/strtoimax (configure.ac): Likewise.
32270         * modules/strtoumax (configure.ac): Likewise.
32271
32272 2007-02-17  Bruno Haible  <bruno@clisp.org>
32273
32274         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
32275         gl_STRING_MODULE_INDICATOR_DEFAULTS.
32276         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
32277         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
32278
32279 2007-02-17  Bruno Haible  <bruno@clisp.org>
32280
32281         * modules/link-warning: New file.
32282         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
32283         * lib/string_.h (GL_LINK_WARNING): Remove definition.
32284         * modules/string (Depends-on): Add link-warning.
32285         (Makefile.am): Copy the contents of build-aux/link-warning.h into
32286         string.h.
32287         * MODULES.html.sh (Support for building libraries and executables): Add
32288         link-warning.
32289
32290 2007-02-17  Bruno Haible  <bruno@clisp.org>
32291
32292         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
32293         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
32294         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
32295         long lines.
32296
32297 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
32298             Bruno Haible  <bruno@clisp.org>
32299
32300         * modules/tmpfile: New file.
32301         * lib/tmpfile.c: New file.
32302         * m4/tmpfile.m4: New file.
32303         * MODULES.html.sh (func_all_modules): New section "Input/output".
32304
32305 2007-02-15  Bruno Haible  <bruno@clisp.org>
32306
32307         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
32308         (supports_delete_on_close): New function.
32309         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
32310
32311 2007-02-14  Bruno Haible  <bruno@clisp.org>
32312
32313         * modules/mbspcasecmp-tests: New file.
32314         * tests/test-mbspcasecmp.sh: New file.
32315         * tests/test-mbspcasecmp.c: New file.
32316
32317         New module mbspcasecmp.
32318         * modules/mbspcasecmp: New file.
32319         * lib/mbspcasecmp.c: New file.
32320         * lib/string_.h (strncasecmp): Change warning message.
32321         (mbspcasecmp): New declaration.
32322         * m4/mbspcasecmp.m4: New file.
32323         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32324         GNULIB_MBSPCASECMP.
32325         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
32326         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
32327
32328 2007-02-14  Bruno Haible  <bruno@clisp.org>
32329
32330         * modules/mbsncasecmp-tests: New file.
32331         * tests/test-mbsncasecmp.sh: New file.
32332         * tests/test-mbsncasecmp.c: New file.
32333
32334         New module mbsncasecmp.
32335         * modules/mbsncasecmp: New file.
32336         * lib/mbsncasecmp.c: New file.
32337         * lib/string_.h (mbsncasecmp): New declaration.
32338         * m4/mbsncasecmp.m4: New file.
32339         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32340         GNULIB_MBSNCASECMP.
32341         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
32342         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
32343
32344 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
32345
32346         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
32347         Verify that it doesn't overlap with our flags.
32348         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
32349         do not have the desired effect in multibyte locales; instead, use
32350         mbscasecmp.
32351         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
32352         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
32353         we don't require GNU fnmatch ourselves (if our users require it, they
32354         should do so explicitly).
32355
32356         Fix regex code so it doesn't rely on strcasecmp.
32357         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
32358         Otherwise, include gnulib's langinfo.h.
32359         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
32360         undesirable behavior in non-C locales.  Instead, rely on localecharset.
32361         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
32362         * modules/regex (FILES): Remove m4/codeset.m4.
32363         (Depends-on): Add localcharset.  Remove strcase.
32364
32365 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32366
32367         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
32368         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
32369
32370 2007-02-13  Bruno Haible  <bruno@clisp.org>
32371
32372         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
32373         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32374
32375 2007-02-12  Bruno Haible  <bruno@clisp.org>
32376
32377         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
32378         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
32379         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
32380         time warning rather than a link error.
32381
32382 2007-02-12  Bruno Haible  <bruno@clisp.org>
32383
32384         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
32385         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
32386         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32387
32388 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
32389
32390         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
32391         args, not 2.
32392
32393 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
32394
32395         New module 'time', so that apps can include <time.h> as per
32396         POSIX and GNU instead of separate include files like time_r.h
32397         and timegm.h.  This implementation tries out a simpler approach
32398         for replacing decls in standard include files (as compared to
32399         the string module), somewhat as an experiment.
32400
32401         * config/srclist.txt: Comment out mktime.c for now.
32402         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
32403         since it doesn't apply any more.  Use generic wording instead.
32404         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
32405         'time'.
32406         * lib/time_.h, m4/time_h.m4, modules/time: New files.
32407         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
32408         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
32409         Don't include <sys/types.h>; no longer needed since we assume C89.
32410         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
32411         * lib/strftime.c: Likewise.
32412         * lib/time_r.c: Likewise.
32413         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
32414         * lib/nanosleep.c: Include <time.h> first, to check interface.
32415         * lib/strptime.c: Likewise.
32416         * lib/time_r.c: Likewise.
32417         * lib/timegm.c: Likewise.
32418         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
32419         needed.
32420         * lib/timegm.c: Don't include timegm.h; no longer needed.
32421         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
32422         time.h now handles any problems in that area.
32423         (struct timespec, nanosleep): Remove; time.h now arranges for these.
32424         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
32425         that time.h defines struct timespec.
32426         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
32427         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
32428         handles that.
32429         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
32430         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
32431         needed.  Set REPLACE_LOCALTIME.
32432         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
32433         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
32434         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
32435         nanosleep; time_h.m4 now does that.  Don't require
32436         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
32437         module handles this now.
32438         * modules/getdate (Depends-on): Remove timespec.  Add time.
32439         * modules/nanosleep (Depends-on): Likewise.
32440         * modules/stat-time (Depends-on): Likewise.
32441         * modules/nanosleep (Include): Include time.h, not timespec.h.
32442         * modules/strptime (Files): Remove lib/strptime.h.
32443         (Depends-on): Add extensions, time.
32444         (Include): Include time.h, not strptime.h.
32445         * modules/time_r (Files): Remove lib/time_r.h.
32446         (Depends-on): Add time.
32447         (Include): Include time.h, not time_r.h.
32448         * modules/timegm: Likewise.
32449         * modules/timespec (Description): Now does timespec-related decls
32450         of our own, instead of struct timespec itself.
32451         (Depends-on): Add time; remove extensions.
32452         (Maintainer): Add self.
32453         * modules/utimecmp (Depends-on): Add time; remove timespec.
32454         * modules/utimens (Depends-on): Likewise.
32455         * modules/xnanosleep (Depends-on): Likewise.
32456
32457 2007-02-11  Bruno Haible  <bruno@clisp.org>
32458
32459         * lib/c-strstr.c: Include allocsa.h.
32460         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
32461         * lib/c-strcasestr.c: Include allocsa.h.
32462         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
32463         * lib/strcasestr.c: Include allocsa.h.
32464         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
32465         * lib/mbsstr.c: Include allocsa.h.
32466         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
32467         allocsa/freesa instead of malloc/free.
32468         * lib/mbscasestr.c: Include allocsa.h.
32469         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
32470         allocsa/freesa instead of malloc/free.
32471         * modules/c-strstr (Depends-on): Add allocsa.
32472         * modules/c-strcasestr (Depends-on): Likewise.
32473         * modules/strcasestr (Depends-on): Likewise.
32474         * modules/mbsstr (Depends-on): Likewise.
32475         * modules/mbscasestr (Depends-on): Likewise.
32476
32477 2007-02-11  Bruno Haible  <bruno@clisp.org>
32478
32479         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
32480
32481         * modules/mbsspn-tests: New file.
32482         * tests/test-mbsspn.sh: New file.
32483         * tests/test-mbsspn.c: New file.
32484
32485 2007-02-11  Bruno Haible  <bruno@clisp.org>
32486
32487         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
32488
32489         * modules/mbspbrk-tests: New file.
32490         * tests/test-mbspbrk.sh: New file.
32491         * tests/test-mbspbrk.c: New file.
32492
32493 2007-02-11  Bruno Haible  <bruno@clisp.org>
32494
32495         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
32496         unneeded cast.
32497
32498         * modules/mbscspn-tests: New file.
32499         * tests/test-mbscspn.sh: New file.
32500         * tests/test-mbscspn.c: New file.
32501
32502 2007-02-11  Bruno Haible  <bruno@clisp.org>
32503
32504         * modules/mbscasecmp-tests: New file.
32505         * tests/test-mbscasecmp.sh: New file.
32506         * tests/test-mbscasecmp.c: New file.
32507
32508 2007-02-11  Bruno Haible  <bruno@clisp.org>
32509
32510         Ensure O(n) worst-case complexity of mbscasestr.
32511         * lib/mbscasestr.c: Include stdbool.h.
32512         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
32513         functions.
32514         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
32515         the bookkeeping indicates that it's worth it.
32516         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
32517
32518         * modules/mbscasestr-tests: New file.
32519         * tests/test-mbscasestr1.c: New file.
32520         * tests/test-mbscasestr2.sh: New file.
32521         * tests/test-mbscasestr2.c: New file.
32522         * tests/test-mbscasestr3.sh: New file.
32523         * tests/test-mbscasestr3.c: New file.
32524         * tests/test-mbscasestr4.sh: New file.
32525         * tests/test-mbscasestr4.c: New file.
32526         * m4/locale-tr.m4: New file.
32527
32528 2007-02-11  Bruno Haible  <bruno@clisp.org>
32529
32530         Ensure O(n) worst-case complexity of mbsstr.
32531         * lib/mbsstr.c: Include stdbool.h.
32532         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
32533         functions.
32534         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
32535         bookkeeping indicates that it's worth it.
32536         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
32537
32538         * modules/mbsstr-tests: New file.
32539         * tests/test-mbsstr1.c: New file.
32540         * tests/test-mbsstr2.sh: New file.
32541         * tests/test-mbsstr2.c: New file.
32542         * tests/test-mbsstr3.sh: New file.
32543         * tests/test-mbsstr3.c: New file.
32544         * m4/locale-fr.m4: New file.
32545
32546 2007-02-11  Bruno Haible  <bruno@clisp.org>
32547
32548         * lib/mbsrchr.c (mbsrchr): Fix bug.
32549
32550         * modules/mbsrchr-tests: New file.
32551         * tests/test-mbsrchr.sh: New file.
32552         * tests/test-mbsrchr.c: New file.
32553
32554 2007-02-11  Bruno Haible  <bruno@clisp.org>
32555
32556         * lib/mbschr.c (mbschr): Fix bug.
32557
32558         * modules/mbschr-tests: New file.
32559         * tests/test-mbschr.sh: New file.
32560         * tests/test-mbschr.c: New file.
32561         * m4/locale-zh.m4: New file.
32562
32563 2007-02-11  Bruno Haible  <bruno@clisp.org>
32564
32565         Support for copying multibyte string iterators.
32566         * lib/mbiter.h: Include <string.h>.
32567         (mbiter_multi_copy): New function.
32568         (mbi_copy): New macro.
32569         * lib/mbuiter.h: Include <string.h>.
32570         (mbuiter_multi_copy): New function.
32571         (mbui_copy): New macro.
32572
32573 2007-02-11  Bruno Haible  <bruno@clisp.org>
32574
32575         New module mbslen.
32576         * modules/mbslen: New file.
32577         * lib/mbslen.c: New file.
32578         * lib/string_.h (mbslen): New declaration.
32579         * m4/mbslen.m4: New file.
32580         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32581         GNULIB_MBSLEN.
32582         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
32583         * MODULES.html.sh (Internationalization functions): Add mbslen.
32584
32585 2007-02-11  Bruno Haible  <bruno@clisp.org>
32586
32587         Ensure O(n) worst-case complexity of strcasestr substitute.
32588         * lib/strcasestr.c: Include stdbool.h.
32589         (knuth_morris_pratt): New function.
32590         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
32591         bookkeeping indicates that it's worth it.
32592         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
32593
32594         * modules/strcasestr-tests: New file.
32595         * tests/test-strcasestr.c: New file.
32596
32597 2007-02-11  Bruno Haible  <bruno@clisp.org>
32598
32599         Ensure O(n) worst-case complexity of c_strcasestr.
32600         * lib/c-strcasestr.c: Include stdbool.h, string.h.
32601         (knuth_morris_pratt): New function.
32602         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
32603         the bookkeeping indicates that it's worth it.
32604         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
32605
32606         * modules/c-strcasestr-tests: New file.
32607         * tests/test-c-strcasestr.c: New file.
32608
32609 2007-02-11  Bruno Haible  <bruno@clisp.org>
32610
32611         Ensure O(n) worst-case complexity of c_strstr.
32612         * lib/c-strstr.c: Include stdbool.h, string.h.
32613         (knuth_morris_pratt): New function.
32614         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
32615         bookkeeping indicates that it's worth it.
32616         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
32617
32618         * lib/c-strstr.c: Complete rewrite for maintainability.
32619
32620         * modules/c-strstr-tests: New file.
32621         * tests/test-c-strstr.c: New file.
32622
32623 2007-02-11  Bruno Haible  <bruno@clisp.org>
32624
32625         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
32626         5.2.1 and earlier, whereby \055 was treated just like the range
32627         delimiter '-'.
32628         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32629
32630 2007-02-08  Bruno Haible  <bruno@clisp.org>
32631
32632         * modules/regex (Depends-on): Add stdbool.
32633         Reported by Dalibor Topic <robilad@kaffe.org>.
32634
32635 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
32636
32637         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
32638         Prefer returning from main to exiting from it.
32639         Remove unnecessary parens after sizeof.
32640
32641 2007-02-05  Bruno Haible  <bruno@clisp.org>
32642
32643         New module mbssep.
32644         * modules/mbssep: New file.
32645         * lib/mbssep.c: New file.
32646         * lib/string_.h (strsep): Add a conditional link warning.
32647         (mbssep): New declaration.
32648         * m4/mbssep.m4: New file.
32649         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32650         GNULIB_MBSSEP.
32651         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
32652         * MODULES.html.sh (Internationalization functions): Add mbssep.
32653
32654 2007-02-05  Bruno Haible  <bruno@clisp.org>
32655
32656         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
32657         Optimize search in case of 1 delimiter.
32658
32659 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
32660
32661         * lib/acl.h: Include sys/types.h before sys/acl.h.
32662
32663 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
32664
32665         Merge upstream fix for glibc bugzilla #3957:
32666
32667         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
32668
32669         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
32670         bit for RE_HAT_LISTS_NOT_NEWLINE.
32671         (build_charclass_op): Remove bogus comment.
32672
32673 2007-02-05  Simon Josefsson  <simon@josefsson.org>
32674
32675         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
32676
32677 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
32678
32679         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
32680         * lib/memmem.c [!defined _LIBC]: Include config.h.
32681
32682 2007-02-04  Bruno Haible  <bruno@clisp.org>
32683
32684         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
32685         warning message.
32686
32687 2007-02-04  Bruno Haible  <bruno@clisp.org>
32688
32689         New module mbstok_r.
32690         * modules/mbstok_r: New file.
32691         * lib/mbstok_r.c: New file.
32692         * lib/string_.h (strtok_r): Change argument names to match the
32693         comments. Add a conditional link warning.
32694         (mbstok_r): New declaration.
32695         * m4/mbstok_r.m4: New file.
32696         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32697         GNULIB_MBSTOK_R.
32698         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
32699         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
32700
32701 2007-02-04  Bruno Haible  <bruno@clisp.org>
32702
32703         New module mbsspn.
32704         * modules/mbsspn: New file.
32705         * lib/mbsspn.c: New file.
32706         * lib/string_.h (strspn): Add a conditional link warning.
32707         (mbsspn): New declaration.
32708         * m4/mbsspn.m4: New file.
32709         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32710         GNULIB_MBSSPN.
32711         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
32712         * MODULES.html.sh (Internationalization functions): Add mbsspn.
32713
32714 2007-02-04  Bruno Haible  <bruno@clisp.org>
32715
32716         New module mbspbrk.
32717         * modules/mbspbrk: New file.
32718         * lib/mbspbrk.c: New file.
32719         * lib/string_.h (strpbrk): Add a conditional link warning.
32720         (mbspbrk): New declaration.
32721         * m4/mbspbrk.m4: New file.
32722         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32723         GNULIB_MBSPBRK.
32724         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
32725         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
32726
32727 2007-02-04  Bruno Haible  <bruno@clisp.org>
32728
32729         New module mbscspn.
32730         * modules/mbscspn: New file.
32731         * lib/mbscspn.c: New file.
32732         * lib/string_.h (strcspn): Add a conditional link warning.
32733         (mbscspn): New declaration.
32734         * m4/mbscspn.m4: New file.
32735         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32736         GNULIB_MBSCSPN.
32737         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
32738         * MODULES.html.sh (Internationalization functions): Add mbscspn.
32739
32740 2007-02-04  Bruno Haible  <bruno@clisp.org>
32741
32742         New module mbscasestr, reduced goal of strcasestr.
32743         * modules/mbscasestr: New file.
32744         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
32745         (mbscasestr): Renamed from strcasestr.
32746         * lib/strcasestr.c: Don't include mbuiter.h.
32747         (strcasestr): Remove support for multibyte locales.
32748         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
32749         Change the conditional link warning.
32750         (mbscasestr): New declaration.
32751         * m4/mbscasestr.m4: New file.
32752         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
32753         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
32754         REPLACE_STRCASESTR.
32755         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
32756         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32757         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
32758         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
32759         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
32760         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
32761         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
32762         (Depends-on): Remove mbuiter.
32763         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
32764
32765 2007-02-04  Bruno Haible  <bruno@clisp.org>
32766
32767         Simplify handling of strncasecmp.
32768         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
32769         the conditional link warning.
32770         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32771         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
32772         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
32773         * modules/strcase (configure.ac): Don't invoke
32774         gl_STRING_MODULE_INDICATOR.
32775         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
32776
32777 2007-02-04  Bruno Haible  <bruno@clisp.org>
32778
32779         New module mbscasecmp, reduced goal of strcasecmp.
32780         * modules/mbscasecmp: New file.
32781         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
32782         (mbscasecmp): Renamed from strcasecmp.
32783         * lib/strcasecmp.c: Don't include mbuiter.h.
32784         (strcasecmp): Remove support for multibyte locales.
32785         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
32786         Change the conditional link warning.
32787         (mbscasecmp): New declaration.
32788         * m4/mbscasecmp.m4: New file.
32789         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
32790         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
32791         REPLACE_STRCASECMP.
32792         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
32793         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32794         GNULIB_MBSCASECMP.
32795         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
32796         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
32797         * modules/strcase (Files): Remove m4/mbrtowc.m4.
32798         (Depends-on): Remove mbuiter.
32799         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
32800
32801 2007-02-04  Bruno Haible  <bruno@clisp.org>
32802
32803         New module mbsstr. Remove module strstr.
32804         * modules/mbsstr: New file.
32805         * modules/strstr: Remove file.
32806         * lib/mbsstr.c: Renamed from lib/strstr.c.
32807         (mbsstr): Renamed from strstr.
32808         * lib/string_.h (strstr): Remove declaration. Change the conditional
32809         link warning.
32810         (mbsstr): New declaration.
32811         * m4/mbsstr.m4: New file.
32812         * m4/strstr.m4: Remove file.
32813         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
32814         REPLACE_STRSTR.
32815         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
32816         Don't initialize GNULIB_STRSTR.
32817         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
32818         substitute GNULIB_STRSTR and REPLACE_STRSTR.
32819         * MODULES.html.sh (Internationalization functions): Add mbsstr.
32820         (Support for systems lacking ANSI C 89): Remove strstr.
32821
32822 2007-02-04  Bruno Haible  <bruno@clisp.org>
32823
32824         New module mbsrchr.
32825         * modules/mbsrchr: New file.
32826         * lib/mbsrchr.c: New file.
32827         * lib/string_.h (strrchr): Add a conditional link warning.
32828         (mbsrchr): New declaration.
32829         * m4/mbsrchr.m4: New file.
32830         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32831         GNULIB_MBSRCHR.
32832         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
32833         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
32834
32835 2007-02-04  Bruno Haible  <bruno@clisp.org>
32836
32837         New module mbschr.
32838         * modules/mbschr: New file.
32839         * lib/mbschr.c: New file.
32840         * lib/string_.h (strchr): Add a conditional link warning.
32841         (mbschr): New declaration.
32842         * m4/mbschr.m4: New file.
32843         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32844         GNULIB_MBSCHR.
32845         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
32846         * MODULES.html.sh (Internationalization functions): Add mbschr.
32847
32848 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
32849
32850         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
32851
32852         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
32853
32854 2007-02-04  Bruno Haible  <bruno@clisp.org>
32855
32856         New module description section 'configure.ac-early'.
32857         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
32858         (func_get_autoconf_early_snippet): New function.
32859         (func_import, func_create_testdir): Use it. Remove special cases for
32860         modules 'extensions' and 'lock'.
32861         * modules/extensions (configure.ac-early): Require
32862         gl_USE_SYSTEM_EXTENSIONS.
32863         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
32864
32865 2007-02-04  Bruno Haible  <bruno@clisp.org>
32866
32867         Make use of gcj-4.3's -fsource and -ftarget option.
32868         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
32869         and if so try the options -fsource and -ftarget.
32870         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
32871         source_version, ftarget_option, target_version arguments.
32872         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
32873         (is_envjavac_oldgcj_14_14_usable): Renamed from
32874         is_envjavac_gcj_14_14_usable.
32875         (is_envjavac_oldgcj_14_13_usable): Renamed from
32876         is_envjavac_gcj_14_13_usable.
32877         (is_gcj_present): Update.
32878         (is_gcj_43, is_gcj43_usable): New functions.
32879         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
32880         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
32881         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
32882         try the options -fsource and -ftarget.
32883
32884 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
32885
32886         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
32887         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
32888         larger value.
32889
32890 2007-02-03  Jim Meyering  <jim@meyering.net>
32891
32892         Give tools a better chance to allocate space for very large buffers.
32893         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
32894
32895         Make pwd and readlink work also when run with an unreadable parent dir
32896         on systems with openat support.
32897         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
32898         provided getcwd function, even when we have openat support.
32899         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
32900
32901 2007-02-02  Bruno Haible  <bruno@clisp.org>
32902
32903         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
32904         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
32905         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
32906         portability problems if one of these functions is only used on specific
32907         platforms.
32908         Reported by Paul Eggert.
32909
32910 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
32911
32912         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
32913         is causing more trouble than it's curing.
32914         * lib/regex_internal.h (__mempcpy): Remove.
32915         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
32916         (and make the code a tad smaller to boot).
32917         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
32918
32919 2007-02-02  Jim Meyering  <jim@meyering.net>
32920
32921         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
32922         section, not in the Makefile.am: one.
32923
32924 2007-02-02  Eric Blake  <ebb9@byu.net>
32925
32926         * lib/strchrnul.c: Always include config.h first.
32927
32928         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
32929         gnulib strstr is not necessary here.
32930
32931 2007-02-02  Simon Josefsson  <simon@josefsson.org>
32932
32933         * m4/socklen.m4: Fix typo.
32934
32935 2007-02-02  Eric Blake  <ebb9@byu.net>
32936
32937         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
32938         * modules/netinet_in (Makefile.am): Likewise.
32939
32940 2007-02-01  Bruno Haible  <bruno@clisp.org>
32941
32942         * lib/string_.h (GL_LINK_WARNING): New macro.
32943         (strcasecmp, strstr, strcasestr): If provided by the system,
32944         conditionally define as a macro that leads to a warning instead of to
32945         an error.
32946         (strncasecmp): Conditionally define as a macro that leads to a warning.
32947
32948 2007-02-01  Karl Berry  <karl@gnu.org>
32949
32950         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
32951
32952 2007-02-01  Bruno Haible  <bruno@clisp.org>
32953
32954         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
32955         renamings.
32956
32957 2007-02-01  Eric Blake  <ebb9@byu.net>
32958
32959         * modules/regex (Depends-on): Revert dependence on mempcpy.
32960         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
32961         module's definition of mempcpy.
32962         Reported by Paul Eggert.
32963
32964 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
32965
32966         * lib/string_.h: If the gnulib module XYZ is not present, undefine
32967         the symbol XYZ before redefining it.  This fixes a problem with
32968         programs that don't use XYZ, when compiled on systems that define
32969         XYZ to something else.
32970
32971 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
32972
32973         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
32974         occurs when "mkdir -m foo" creates a setgid directory that is (1)
32975         writeable to group or other and (2) is intended to have a special
32976         mode bit that is set or cleared.  In such a case, the directory
32977         should be neither group- nor other-writeable until the special
32978         mode bits are right.
32979
32980 2007-01-31  Eric Blake  <ebb9@byu.net>
32981
32982         * modules/mountlist (Depends-on): Add strstr.
32983
32984         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
32985         bug.
32986         * modules/string (Makefile.am): Remove redundant replacement.
32987         * modules/regex (Depends-on): Add mempcpy.
32988
32989 2007-01-31  Bruno Haible  <bruno@clisp.org>
32990
32991         New module description field 'Link'.
32992         * gnulib-tool (func_usage): Document --extract-link-directive.
32993         (sed_extract_prog): Recognize 'Link' directive.
32994         (func_get_link_directive): New function.
32995         (func_import): Show summary of link directives.
32996         Handle --extract-link-directive option.
32997         * modules/acl (Link): New section.
32998         * modules/clock-time (Link): New section.
32999         * modules/euidaccess (Link): New section.
33000         * modules/gettext (Link): New section.
33001         * modules/iconv (Link): New section.
33002         * modules/lock (Link): New section.
33003         * modules/nanosleep (Link): New section.
33004         * modules/readline (Link): New section.
33005
33006 2007-01-27  Bruno Haible  <bruno@clisp.org>
33007
33008         Enforce the use of gnulib modules for unportable <string.h> functions.
33009         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
33010         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
33011         (gl_HEADER_STRING_H_BODY): Require it.
33012         * lib/string_.h: If the gnulib module XYZ is not present, redefine
33013         the symbol XYZ to one that gives a link error.
33014         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
33015         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
33016         * modules/mempcpy (configure.ac): Likewise.
33017         * modules/memrchr (configure.ac): Likewise.
33018         * modules/stpcpy (configure.ac): Likewise.
33019         * modules/stpncpy (configure.ac): Likewise.
33020         * modules/strcase (configure.ac): Likewise.
33021         * modules/strcasestr (configure.ac): Likewise.
33022         * modules/strchrnul (configure.ac): Likewise.
33023         * modules/strdup (configure.ac): Likewise.
33024         * modules/strndup (configure.ac): Likewise.
33025         * modules/strnlen (configure.ac): Likewise.
33026         * modules/strpbrk (configure.ac): Likewise.
33027         * modules/strsep (configure.ac): Likewise.
33028         * modules/strstr (configure.ac): Likewise.
33029         * modules/strtok_r (configure.ac): Likewise.
33030
33031 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
33032
33033         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
33034
33035 2007-01-30  Jim Meyering  <jim@meyering.net>
33036
33037         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
33038
33039 2007-01-29  Bruno Haible  <bruno@clisp.org>
33040
33041         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
33042         * lib/execute.c: Likewise.
33043         * lib/pipe.c: Likewise.
33044         * lib/printf-args.h: Likewise.
33045         * lib/printf-args.c: Likewise.
33046         * lib/printf-parse.c: Likewise.
33047         * lib/vasnprintf.c: Likewise.
33048
33049 2007-01-29  Eric Blake  <ebb9@byu.net>
33050
33051         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
33052         declaration.
33053
33054 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
33055
33056         * lib/strptime.h (strptime): Use 'restrict' for args where
33057         POSIX requires this.
33058         * lib/strptime.c (strptime): Likewise.
33059         Change license notice from LGPL to GPL, since gnulib-tool will
33060         change this as needed.
33061         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
33062         defined.
33063         Include "strptime.h" first, to check interface.
33064         Do not #undef _LIBC and _NL_CURRENT.
33065         Do not include <stdlib.h>; no longer needed.
33066         Include "time_r.h" and declare ptime_locale_status
33067         only if _LIBC is not defined.
33068         (__P): Remove unused macro.
33069         (match_string): Bring back glibc version, but use it only if _LIBC
33070         is defined.
33071         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
33072         Remove unnecessary assertion and abort() call.
33073         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
33074         * m4/strptime.m4: Fix serial number comment.
33075         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
33076         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
33077         (Depends-on): Add time_r.
33078
33079 2007-01-29  Bruno Haible  <bruno@clisp.org>
33080
33081         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33082         strptime.
33083         * modules/strptime (Depends-on): Add stdbool.
33084         * lib/strptime.h: Include <time.h> always. Add comments.
33085
33086 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33087
33088         * modules/strptime: New file.
33089         * lib/strptime.h: New file.
33090         * lib/strptime.c: New file.
33091         * m4/strptime.m4: New file.
33092
33093 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
33094
33095         * MODULES.html.sh: New module mpsort.
33096         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
33097
33098         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
33099         a circularity problem with HP-UX ia64 reported by Bob Proulx in
33100         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
33101         All uses changed.
33102         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
33103         All uses changed.
33104         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
33105         to _Restrict_.
33106         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
33107         the parameter matches the prototype.
33108
33109 2007-01-28  Jim Meyering  <jim@meyering.net>
33110
33111         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
33112         sys/time.h here, reverting that part of the previous patch:
33113         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
33114
33115 2007-01-28  Bruno Haible  <bruno@clisp.org>
33116
33117         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
33118         value of $(SYS_TIME_H).
33119         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
33120         remove it conditionally, too. [added by Jim Meyering]
33121         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
33122         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
33123         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
33124         GETTIMEOFDAY_REPLACEMENT to 1.
33125
33126 2007-01-28  Bruno Haible  <bruno@clisp.org>
33127
33128         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
33129         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
33130         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
33131         Set UNISTD_H instead of UNISTD_H2.
33132         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
33133
33134 2007-01-28  Bruno Haible  <bruno@clisp.org>
33135
33136         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
33137         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
33138
33139 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33140
33141         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
33142         (func_create_testdir): Ensure C locale for `grep' and `tr'
33143         character ranges.
33144         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
33145         ACLOCAL_AMFLAGS parsing state machine.
33146
33147 2007-01-27  Bruno Haible  <bruno@clisp.org>
33148
33149         * modules/unistr/base: Update.
33150
33151 2007-01-27  Bruno Haible  <bruno@clisp.org>
33152
33153         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
33154         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
33155         * modules/unistr/u32-mbtouc-unsafe: Renamed from
33156         modules/unistr/u32-mbtouc.
33157         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
33158         * lib/unistr.h: Update.
33159         * lib/linebreak.c: Update.
33160         * modules/unistr/u32-mbtouc: Renamed from
33161         modules/unistr/u32-mbtouc-safe.
33162         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
33163         * lib/unistr.h: Update.
33164         * lib/unistr/u32-to-u8.c: Update.
33165         * lib/unistr/u32-to-u16.c: Update.
33166
33167 2007-01-27  Bruno Haible  <bruno@clisp.org>
33168
33169         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
33170         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
33171         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
33172         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
33173         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
33174         * modules/unistr/u16-mbtouc-unsafe: Renamed from
33175         modules/unistr/u16-mbtouc.
33176         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
33177         * lib/unistr.h: Update.
33178         * lib/linebreak.c: Update.
33179         * modules/linebreak: Update.
33180         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
33181         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
33182         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
33183         * modules/unistr/u16-mbtouc: Renamed from
33184         modules/unistr/u16-mbtouc-safe.
33185         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
33186         * lib/unistr.h: Update.
33187         * lib/unistr/u16-to-u8.c: Update.
33188         * modules/unistr/u16-to-u8: Update.
33189         * lib/unistr/u16-to-u32.c: Update.
33190         * modules/unistr/u16-to-u32: Update.
33191
33192 2007-01-27  Bruno Haible  <bruno@clisp.org>
33193
33194         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
33195         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
33196         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
33197         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
33198         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
33199         * modules/unistr/u8-mbtouc-unsafe: Renamed from
33200         modules/unistr/u8-mbtouc.
33201         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
33202         * lib/unistr.h: Update.
33203         * lib/striconveh.c: Update.
33204         * modules/striconveh: Update.
33205         * lib/linebreak.c: Update.
33206         * modules/linebreak: Update.
33207         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
33208         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
33209         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
33210         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
33211         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
33212         * lib/unistr.h: Update.
33213         * lib/striconveh.c: Update.
33214         * modules/striconveh: Update.
33215         * lib/unistr/u8-to-u16.c: Update.
33216         * modules/unistr/u8-to-u16: Update.
33217         * lib/unistr/u8-to-u32.c: Update.
33218         * modules/unistr/u8-to-u32: Update.
33219
33220 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33221
33222         Sync from Libtool.
33223         * lib/argz.c: Do not include strings.h nor memory.h, include
33224         string.h unconditionally.  Patch by Simon Josefsson.
33225
33226 2007-01-27  Bruno Haible  <bruno@clisp.org>
33227
33228         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
33229         from gl_HEADER_STRING_H_BODY.
33230         (gl_HEADER_STRING_H_BODY): Require it.
33231         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
33232         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
33233         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
33234         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
33235         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
33236         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
33237         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33238         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
33239         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
33240         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
33241         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
33242         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
33243         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
33244         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
33245         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
33246
33247 2007-01-27  Bruno Haible  <bruno@clisp.org>
33248
33249         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
33250         check_PROGRAMS into noinst_PROGRAMS.
33251         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
33252         check_PROGRAMS in this case.
33253         (func_import): Set for_test to false.
33254         (func_create_testdir): Set for_test to true.
33255
33256 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
33257             Bruno Haible  <bruno@clisp.org>
33258
33259         * modules/strcasestr (Files): Remove lib/strcasestr.h.
33260         (Depends-on): Add string.
33261         (Includes): Use <string.h> instead of strcasestr.h.
33262         * modules/string (Makefile.am): Also substitute the value of
33263         REPLACE_STRCASESTR.
33264         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
33265         assume strcasestr is declared in <string.h> not <strings.h>. Also
33266         set REPLACE_STRCASESTR.
33267         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
33268         REPLACE_STRCASESTR.
33269         * lib/strcasestr.h: Remove file.
33270         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
33271         * lib/string_.h (strcasestr): New declaration.
33272
33273 2007-01-27  Bruno Haible  <bruno@clisp.org>
33274
33275         * lib/string_.h: Use 'extern'.
33276
33277 2007-01-27  Jim Meyering  <jim@meyering.net>
33278
33279         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
33280         of set-but-not-used local, "q".
33281
33282         * lib/mempcpy.c: Include <config.h> before <string.h>.
33283         This fixes a compilation error on HP-UX, due to the system's
33284         "restrict"-using mempcpy prototype.
33285
33286 2007-01-26  Bruno Haible  <bruno@clisp.org>
33287
33288         Small optimization.
33289         * lib/javacomp.c: Include c-strstr.h.
33290          (is_envjavac_gcj): Use c_strstr instead of strstr.
33291         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
33292
33293 2007-01-26  Bruno Haible  <bruno@clisp.org>
33294
33295         * MODULES.html.sh (Unicode string functions): Add the new modules.
33296
33297         * modules/uniconv/u32-strconv-to-locale: New file.
33298         * lib/uniconv/u32-strconv-to-locale.c: New file.
33299
33300         * modules/uniconv/u16-strconv-to-locale: New file.
33301         * lib/uniconv/u16-strconv-to-locale.c: New file.
33302
33303         * modules/uniconv/u8-strconv-to-locale: New file.
33304         * lib/uniconv/u8-strconv-to-locale.c: New file.
33305
33306         * modules/uniconv/u32-strconv-from-locale: New file.
33307         * lib/uniconv/u32-strconv-from-locale.c: New file.
33308
33309         * modules/uniconv/u16-strconv-from-locale: New file.
33310         * lib/uniconv/u16-strconv-from-locale.c: New file.
33311
33312         * modules/uniconv/u8-strconv-from-locale: New file.
33313         * lib/uniconv/u8-strconv-from-locale.c: New file.
33314
33315         * modules/uniconv/u32-strconv-to-enc: New file.
33316         * lib/uniconv/u32-strconv-to-enc.c: New file.
33317         * modules/uniconv/u32-strconv-to-enc-tests: New file.
33318         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
33319
33320         * modules/uniconv/u16-strconv-to-enc: New file.
33321         * lib/uniconv/u16-strconv-to-enc.c: New file.
33322         * lib/uniconv/u-strconv-to-enc.h: New file.
33323         * modules/uniconv/u16-strconv-to-enc-tests: New file.
33324         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
33325
33326         * modules/uniconv/u8-strconv-to-enc: New file.
33327         * lib/uniconv/u8-strconv-to-enc.c: New file.
33328         * modules/uniconv/u8-strconv-to-enc-tests: New file.
33329         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
33330
33331         * modules/uniconv/u32-strconv-from-enc: New file.
33332         * lib/uniconv/u32-strconv-from-enc.c: New file.
33333         * modules/uniconv/u32-strconv-from-enc-tests: New file.
33334         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
33335
33336         * modules/uniconv/u16-strconv-from-enc: New file.
33337         * lib/uniconv/u16-strconv-from-enc.c: New file.
33338         * modules/uniconv/u16-strconv-from-enc-tests: New file.
33339         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
33340
33341         * modules/uniconv/u8-strconv-from-enc: New file.
33342         * lib/uniconv/u8-strconv-from-enc.c: New file.
33343         * lib/uniconv/u-strconv-from-enc.h: New file.
33344         * modules/uniconv/u8-strconv-from-enc-tests: New file.
33345         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
33346
33347         * modules/uniconv/u32-conv-from-enc: New file.
33348         * lib/uniconv/u32-conv-from-enc.c: New file.
33349         * modules/uniconv/u32-conv-from-enc-tests: New file.
33350         * tests/uniconv/test-u32-conv-from-enc.c: New file.
33351
33352         * modules/uniconv/u16-conv-from-enc: New file.
33353         * lib/uniconv/u16-conv-from-enc.c: New file.
33354         * lib/uniconv/u-conv-from-enc.h: New file.
33355         * modules/uniconv/u16-conv-from-enc-tests: New file.
33356         * tests/uniconv/test-u16-conv-from-enc.c: New file.
33357
33358         * modules/uniconv/u8-conv-from-enc: New file.
33359         * lib/uniconv/u8-conv-from-enc.c: New file.
33360         * modules/uniconv/u8-conv-from-enc-tests: New file.
33361         * tests/uniconv/test-u8-conv-from-enc.c: New file.
33362
33363         * modules/uniconv/base: New file.
33364         * lib/uniconv.h: New file.
33365
33366 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
33367
33368         * doc/gnulib-tool.texi (Initial import): Update to match current
33369         behavior with strdup module.
33370         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
33371         * lib/memmem.h: Remove; all uses removed.  This is now done
33372         by <string.h>.
33373         * lib/mempcpy.h: Likewise.
33374         * lib/memrchr.h: Likewise.
33375         * lib/stpcpy.h: Likewise.
33376         * lib/stpncpy.h: Likewise.
33377         * lib/strcase.h: Likewise.
33378         * lib/strchrnul.h: Likewise.
33379         * lib/strdup.h: Likewise.
33380         * lib/strndup.h: Likewise.
33381         * lib/strnlen.h: Likewise.
33382         * lib/strpbrk.h: Likewise.
33383         * lib/strsep.h: Likewise.
33384         * lib/strstr.h: Likewise.
33385         * lib/strtok_r.h: Likewise.
33386         * lib/string_.h: New file.
33387         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
33388         Rely on <string.h> instead.
33389         * lib/canon-host.c: Likewise.
33390         * lib/chdir-long.c: Likewise.
33391         * lib/concatpath.c: Likewise.
33392         * lib/exclude.c: Likewise.
33393         * lib/fchdir.c: Likewise.
33394         * lib/getaddrinfo.c: Likewise.
33395         * lib/getcwd.c: Likewise.
33396         * lib/getsubopt.c: Likewise.
33397         * lib/glob.c: Likewise.
33398         * lib/hard-locale.c: Likewise.
33399         * lib/iconvme.c: Likewise.
33400         * lib/javacomp.c: Likewise.
33401         * lib/mempcpy.c: Likewise.
33402         * lib/memrchr.c: Likewise.
33403         * lib/regex_internal.h: Likewise.
33404         * lib/stpncpy.c: Likewise.
33405         * lib/strcasecmp.c: Likewise.
33406         * lib/strchrnul.c: Likewise.
33407         * lib/strdup.c: Likewise.
33408         * lib/striconv.c: Likewise.
33409         * lib/striconveh.c: Likewise.
33410         * lib/striconveha.c: Likewise.
33411         * lib/strncasecmp.c: Likewise.
33412         * lib/strndup.c: Likewise.
33413         * lib/strnlen.c: Likewise.
33414         * lib/strsep.c: Likewise.
33415         * lib/strstr.c: Likewise.
33416         * lib/strtok_r.c: Likewise.
33417         * lib/userspec.c: Likewise.
33418         * lib/w32spawn.h: Likewise.
33419         * lib/xstrndup.c: Likewise.
33420         * lib/mountlist.c (strstr): Remove decl.
33421         * m4/string_h.m4: New file.
33422         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
33423         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
33424         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
33425         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
33426         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
33427         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
33428         Set REPLACE_STRCASECMP if necessary.
33429         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
33430         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
33431         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
33432         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
33433         HAVE_DECL_STRDUP if necessary.
33434         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
33435         since gl_FUNC_STRNDUP does that now.
33436         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
33437         Check for decl here...
33438         (gl_PREREQ_STRNLEN): ... not here.
33439         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
33440         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
33441         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
33442         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
33443         necessary.
33444         * modules/string: New file.
33445         * modules/memmem (Files): Remove special-purpose include file.
33446         (Depends-on): Add string.
33447         (Include): Include <string.h>, not the removed file.
33448         * modules/mempcpy: Likewise.
33449         * modules/memrchr: Likewise.
33450         * modules/stpcpy: Likewise.
33451         * modules/stpncpy: Likewise.
33452         * modules/strcase: Likewise.
33453         * modules/strchrnul: Likewise.
33454         * modules/strdup: Likewise.
33455         * modules/strndup: Likewise.
33456         * modules/strnlen: Likewise.
33457         * modules/strpbrk: Likewise.
33458         * modules/strsep: Likewise.
33459         * modules/strstr: Likewise.
33460         * modules/strtok_r: Likewise.
33461         * tests/test-dirname.c: Don't include "strdup.h", since
33462         <string.h> now suffices.
33463         * tests/test-memmem.c: Don't include "memmem.h", since
33464         <string.h> now suffices.
33465
33466 2007-01-25  Bruno Haible  <bruno@clisp.org>
33467
33468         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
33469         *resultp is 0.
33470
33471         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
33472         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
33473         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
33474         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
33475
33476         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
33477         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
33478         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
33479         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
33480         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
33481         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
33482
33483 2007-01-24  Bruno Haible  <bruno@clisp.org>
33484
33485         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
33486         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
33487         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
33488         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
33489         gl_FUNC_FTS_CORE.
33490         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
33491         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
33492         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
33493         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
33494         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
33495         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
33496         gl_FUNC_FCHOWNAT.
33497         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
33498         gl_FUNC_STRFTIME.
33499         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
33500         Reported by Ralf Wildenhues.
33501
33502 2007-01-24  Bruno Haible  <bruno@clisp.org>
33503
33504         Drop AC_REQUIRE calls that are redundant with the module dependencies.
33505         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
33506         gl_GETADDRINFO.
33507         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
33508         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
33509         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
33510
33511 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
33512
33513         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
33514         Don't use 'exit'; just return from 'main'.
33515         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
33516
33517         * lib/fnmatch_.h: Readjust white space and comments to match
33518         glibc, to avoid spurious diffs.
33519
33520 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33521
33522         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
33523         2004-12-01 change by Jakub Jelinek, since this code won't compile
33524         if !LIBC.  Problem reported by Bob Proulx.
33525
33526 2007-01-23  Bruno Haible  <bruno@clisp.org>
33527
33528         * lib/striconveh.c: Include c-strcaseeq.h.
33529         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
33530         * modules/striconveh (Depends-on): Add c-strcaseeq.
33531
33532 2007-01-23  Bruno Haible  <bruno@clisp.org>
33533
33534         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
33535
33536         * modules/c-strcaseeq: New file.
33537         * lib/c-strcaseeq.h: New file.
33538
33539         * modules/streq: New file.
33540         * lib/streq.h: New file.
33541
33542 2007-01-23  Bruno Haible  <bruno@clisp.org>
33543
33544         * modules/striconveha-tests: New file.
33545         * tests/test-striconveha.c: New file.
33546
33547         * lib/striconveha.h: Include <stdbool.h>.
33548         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
33549         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
33550         (mem_iconveha_notranslit): Renamed from mem_iconveha.
33551         (mem_iconveha): New function.
33552         (str_iconveha_notranslit): Renamed from str_iconveha.
33553         (str_iconveha): New function.
33554         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
33555         c-strcase.
33556
33557 2007-01-23  Bruno Haible  <bruno@clisp.org>
33558
33559         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
33560         encodings without forgiving before trying any encoding with handler.
33561         (str_iconveha): Try all encodings without forgiving before trying any
33562         encoding with handler.
33563
33564 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33565
33566         Import the following changes from libc.
33567
33568         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
33569
33570         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
33571
33572         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
33573
33574         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
33575         normal_bracket label.
33576
33577         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
33578
33579         [BZ #361]
33580         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
33581         to normal_bracket after fetching the next character.
33582
33583 2007-01-22  Bruno Haible  <bruno@clisp.org>
33584
33585         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
33586         argument.
33587         * lib/striconveh.c (iconv_carefully_1): New function.
33588         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
33589         argument.
33590         (str_cd_iconveh): Update.
33591         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
33592         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
33593         * tests/test-striconveh.c (MAGIC): New macro.
33594         (new_offsets): New function.
33595         (main): Test call with and without offsets.
33596
33597 2007-01-22  Bruno Haible  <bruno@clisp.org>
33598
33599         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
33600         * modules/sys_select (Makefile.am): Likewise.
33601         * modules/sys_socket (Makefile.am): Likewise.
33602         * modules/sys_time (Makefile.am): Likewise.
33603
33604 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
33605
33606         * modules/gettimeofday (License): Change from GPL to LGPL, since
33607         gettimeofday is a library function.
33608
33609 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33610
33611         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
33612
33613 2007-01-21  Bruno Haible  <bruno@clisp.org>
33614
33615         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
33616
33617 2007-01-21  Bruno Haible  <bruno@clisp.org>
33618
33619         * modules/striconveha: New file.
33620         * lib/striconveha.h: New file.
33621         * lib/striconveha.c: New file.
33622         * MODULES.html.sh (Internationalization functions): Add striconveha.
33623         * lib/striconv.c (str_iconv): Optimize the case of an empty input
33624         string.
33625         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
33626
33627 2007-01-21  Bruno Haible  <bruno@clisp.org>
33628
33629         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
33630         * lib/striconveh.c (str_iconveh): Likewise.
33631
33632 2007-01-21  Bruno Haible  <bruno@clisp.org>
33633
33634         * lib/striconveh.h (mem_iconveh): New declaration.
33635         * lib/striconveh.c (mem_iconveh): New function.
33636         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
33637
33638 2007-01-21  Bruno Haible  <bruno@clisp.org>
33639
33640         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
33641
33642         * lib/striconveh.h (mem_cd_iconveh): Change specification.
33643         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
33644         original result buffer.
33645         (str_cd_iconveh): Update.
33646         * tests/test-striconveh.c (main): Update.
33647
33648         * lib/striconv.h (mem_cd_iconv): Change specification.
33649         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
33650         result buffer.
33651         (str_cd_iconv): Update.
33652         * tests/test-striconv.c (main): Update.
33653
33654 2007-01-21  Bruno Haible  <bruno@clisp.org>
33655
33656         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
33657
33658 2007-01-20  Jim Meyering  <jim@meyering.net>
33659
33660         * lib/userspec.c (parse_with_separator): If a user or group string
33661         starts with "+", skip the corresponding name-to-ID look-up, since
33662         such a look-up must fail: user and group names may not include "+".
33663
33664 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
33665
33666         * lib/poll.c: Include sys/time.h and time.h unconditionally,
33667         since we now assume the sys_time module.
33668         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
33669         check for sys/time.h; no longer needed.
33670         * modules/poll (Depends-on): Depend on sys_time.
33671
33672 2007-01-18  Bruno Haible  <bruno@clisp.org>
33673
33674         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
33675         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
33676
33677         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
33678         gettimeofday.
33679
33680         * tests/test-gettimeofday.c: Include <time.h>.
33681         (dummy): Remove variable.
33682
33683         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
33684         gl_HEADER_SYS_TIME_H.
33685         (gl_HEADER_SYS_TIME_H): New macro.
33686
33687         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
33688         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33689         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
33690         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
33691         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33692         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
33693         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
33694         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33695         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
33696         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
33697         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33698
33699         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
33700         last change; it caused a compilation error when cross-compiling to
33701         Cygwin.
33702
33703 2007-01-18  Jim Meyering  <jim@meyering.net>
33704
33705         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
33706         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
33707         than the race-prone "test -d sys || mkdir sys".
33708         (configure.ac): Use AC_PROG_MKDIR_P.
33709         * modules/sys_select: Likewise.
33710         * modules/sys_socket: Likewise.
33711         * modules/sys_time: Likewise.
33712
33713 2007-01-18  Eric Blake  <ebb9@byu.net>
33714
33715         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
33716         replace gettimeofday.
33717         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
33718         name, to avoid infinite recursion.
33719
33720 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
33721
33722         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
33723         module sys_time.
33724         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
33725         assume timespec.h defines struct timeval.
33726         * lib/settime.c: Likewise.
33727         * lib/utimens.c: Likewise.
33728         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
33729         since we now assume the gettimeofday module.
33730         * lib/tempname.c (__gen_tempname): Likewise.
33731         * lib/gettimeofday.h: Remove.
33732         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
33733         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
33734         Include <time.h>, for 'time()'.
33735         (localtime_buffer_addr): Also use this workaround if
33736         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
33737         to simplify the uses.  All uses changed.
33738         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
33739         that #undef is inside {}, and 'const' follows type name consistently.
33740         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
33741         (gettimeofday): Do not use the maximum possible value for
33742         tv->tv_usec, since that might break usages other than ls.c.
33743         Instead, we'll leave ls.c alone.  This undoes today's patch
33744         by Bruno.  Add a compile-time warning for 1s-clock resolution;
33745         we've never observed the problem but might as well keep the
33746         canary.
33747         * lib/nanosleep.c: Include timespec.h first, for interface check.
33748         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
33749         now assume the sys_time module.
33750         * lib/tempname.c: Likewise.
33751         * lib/timespec.h: Likewise.
33752         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
33753         needed.
33754         * lib/strftime.c: Likewise.
33755         * lib/timespec.h: Likewise.
33756         * lib/posixtm.c: Include posixtm.h first, for interface check.
33757         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
33758         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
33759         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
33760         * lib/sys_time_.h: New file.
33761         * lib/timespec.h (struct timespec): Use long int, not long.
33762         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
33763         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
33764         Remove obsolescent call to AC_HEADER_TIME.
33765         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
33766         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33767         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
33768         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
33769         Likewise.
33770         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
33771         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
33772         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
33773         into the sys_time module.  Check for gettimeofday just once.
33774         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
33775         for gettimeofday signature to just check the signature.  Merely
33776         compile it, since linking doesn't test signature.  Improve test for
33777         whether gettimeofday.o is actually needed.
33778         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
33779         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
33780         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
33781         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33782         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
33783         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
33784         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
33785         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
33786         than worrying about sys/time.h.
33787         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
33788         Don't bother worrying about TIME_WITH_SYS_TIME.
33789         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
33790         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
33791         * m4/sys_time_h.m4: New file.
33792         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
33793         Don't include sys/time.h.  Return from main rather than exiting.
33794         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
33795         all uses changed.
33796         * modules/gethrxtime (Depends-on): Add sys_time.
33797         * modules/gettime (Depends-on): Likewise.
33798         * modules/gettimeofday (Depends-on): Likewise.
33799         * modules/nanosleep (Depends-on): Likewise.
33800         * modules/settime (Depends-on): Likewise.
33801         * modules/tempname (Depends-on): Likewise.
33802         * modules/utimens (Depends-on): Likewise.
33803         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
33804         (Include:) Change back to <sys/time.h>.
33805         (Maintainer:) Add self.
33806         * modules/sys_time: New file.
33807         * modules/tempname (Depends-on): Add gettimeofday.
33808         * tests/test-gettimeofday.c: Include <sys/time.h>
33809         rather than gettimeofday.h.
33810
33811 2007-01-17  Bruno Haible  <bruno@clisp.org>
33812
33813         * gnulib-tool (func_get_license): Revert last patch. Instead, let
33814         the license default to GPL.
33815         (func_create_testdir): Don't complain if a module is LGPL and its
33816         tests module depends on GPLed modules.
33817
33818 2007-01-17  Bruno Haible  <bruno@clisp.org>
33819
33820         * lib/gettimeofday.c (gettimeofday): Add code for the case
33821         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
33822         maximum possible value for tv->tv_usec, rather than the minimum one.
33823
33824 2005-10-08  Martin Lambers  <marlam@marlam.de>
33825 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
33826 2007-01-16  Bruno Haible  <bruno@clisp.org>
33827
33828         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
33829         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
33830         gl_FUNC_GETTIMEOFDAY.
33831         (Include): Add gettimeofday.h.
33832         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
33833         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
33834         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
33835         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
33836         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
33837         * lib/gettimeofday.h: New file.
33838         * lib/gettimeofday.c: Include <sys/timeb.h>.
33839         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
33840         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33841         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
33842         fall back on time().
33843
33844         * tests/test-gettimeofday.c: New file.
33845         * modules/gettimeofday-tests: New file.
33846
33847 2007-01-16  Eric Blake  <ebb9@byu.net>
33848
33849         * modules/fnmatch (Depends-on): Depend on wchar.
33850         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
33851         * m4/fnmatch.m4: Likewise.
33852         * modules/mbchar (Makefile.am): Assume <wchar.h>.
33853         * m4/mbchar.m4: Likewise.
33854         * modules/mbswidth (Depends-on): Depend on wchar.
33855         * lib/mbswidth.c: Assume <wchar.h>.
33856         * m4/mbswidth.m4: Likewise.
33857         * modules/quotearg (Depends-on): Depend on wchar.
33858         * lib/quotearg.c: Assume <wchar.h>.
33859         * m4/quotearg.m4: Likewise.
33860         * modules/regex (Depends-on): Depend on wchar.
33861         * lib/regex_internal.h: Assume <wchar.h>.
33862         * m4/regex.m4: Likewise.
33863         * modules/stdint (Depends-on): Depend on wchar.
33864         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
33865         * m4/stdint.m4: Likewise.
33866         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
33867         * modules/strftime (Depends-on): Depend on wchar.
33868         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
33869         * modules/strtol (Depends-on): Depend on wchar.
33870         * lib/strtol.c: Assume <wchar.h>.
33871         * modules/wcwidth (Depends-on): Depend on wchar.
33872         * lib/wcwidth.h: Assume <wchar.h>.
33873         * m4/wcwidth.m4: Likewise.
33874
33875 2007-01-16  Bruno Haible  <bruno@clisp.org>
33876
33877         * modules/csharpexec-script: New, created from...
33878         * modules/csharpexec: ... this.
33879
33880 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
33881
33882         * modules/javaexec-script: New, created from...
33883         * modules/javaexec: ... this.
33884
33885 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33886
33887         * modules/poll (Dependencies): Add sys_select.
33888
33889 2007-01-15  Jim Meyering  <jim@meyering.net>
33890
33891         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
33892         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
33893         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
33894         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
33895
33896 2007-01-15  Bruno Haible  <bruno@clisp.org>
33897
33898         * modules/striconveh: New file.
33899         * lib/striconveh.h: New file.
33900         * lib/striconveh.c: New file.
33901         * MODULES.html.sh (Internationalization functions): Add striconveh.
33902
33903         * modules/striconveh-tests: New file.
33904         * tests/test-striconveh.c: New file.
33905
33906 2007-01-15  Bruno Haible  <bruno@clisp.org>
33907
33908         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
33909         not from GNU libiconv or GNU libc.
33910
33911 2007-01-15  Bruno Haible  <bruno@clisp.org>
33912
33913         * doc/gnulib-intro.texi (Copyright): Explain the different license
33914         terms for module descriptions, autoconf macros, tests, documentation.
33915
33916 2007-01-14  Bruno Haible  <bruno@clisp.org>
33917
33918         * modules/striconv-tests: New file.
33919         * tests/test-striconv.c: New file.
33920
33921 2007-01-14  Bruno Haible  <bruno@clisp.org>
33922
33923         * modules/iconv-tests: New file.
33924         * tests/test-iconv.c: New file.
33925
33926 2007-01-14  Bruno Haible  <bruno@clisp.org>
33927
33928         * gnulib-tool (func_get_license): For test modules, use the license of
33929         the main module.
33930
33931 2007-01-14  Bruno Haible  <bruno@clisp.org>
33932
33933         * modules/iconv (Include): Clarify that <iconv.h> can only be included
33934         if iconv is found to exist.
33935
33936 2007-01-14  Bruno Haible  <bruno@clisp.org>
33937
33938         * modules/c-ctype-tests: New file.
33939         * tests/test-c-ctype.c: New file.
33940
33941 2007-01-14  Bruno Haible  <bruno@clisp.org>
33942
33943         * modules/binary-io-tests: New file.
33944         * tests/test-binary-io.sh: New file.
33945         * tests/test-binary-io.c: New file.
33946
33947 2007-01-14  Bruno Haible  <bruno@clisp.org>
33948
33949         * modules/array-oset-tests: New file.
33950         * tests/test-array_oset.c: New file.
33951
33952 2007-01-14  Bruno Haible  <bruno@clisp.org>
33953
33954         * modules/array-list-tests: New file.
33955         * tests/test-array_list.c: New file.
33956
33957 2007-01-14  Bruno Haible  <bruno@clisp.org>
33958
33959         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
33960         and make.
33961         Reported by Simon Josefsson in
33962         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
33963
33964 2007-01-14  Bruno Haible  <bruno@clisp.org>
33965
33966         * modules/allocsa-tests: New file.
33967         * tests/test-allocsa.c: New file.
33968
33969 2007-01-14  Bruno Haible  <bruno@clisp.org>
33970
33971         * modules/fchdir (Depends-on): Add absolute-header.
33972         * modules/unistd (Depends-on): Likewise.
33973
33974 2006-12-30  Bruno Haible  <bruno@clisp.org>
33975
33976         * modules/fchdir: New file.
33977         * modules/unistd (Files): Add lib/unistd_.h.
33978         (Makefile.am): Generate unistd.h from unistd_.h.
33979         * lib/fchdir.c: New file.
33980         * lib/dirent_.h: New file.
33981         * lib/unistd_.h: New file.
33982         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
33983         * m4/fchdir.m4: New file.
33984         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
33985         (gl_HEADER_UNISTD): Invoke it.
33986         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
33987         function.
33988         * lib/backupfile.c (opendir, closedir): Undefine.
33989         * lib/chown.c (open, close): Undefine.
33990         * lib/clean-temp.c (open, close): Undefine.
33991         * lib/copy-file.c (open, close): Undefine.
33992         * lib/execute.c (open, close): Undefine.
33993         * lib/fsusage.c (open, close): Undefine.
33994         * lib/gc-gnulib.c (open, close): Undefine.
33995         * lib/getcwd.c (opendir, closedir): Undefine.
33996         * lib/glob.c (opendir, closedir): Undefine.
33997         * lib/javacomp.c (open, close): Undefine.
33998         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
33999         * lib/openat-proc.c (open, close): Undefine.
34000         * lib/pagealign_alloc.c (open, close): Undefine.
34001         * lib/pipe.c (open, close): Undefine.
34002         * lib/progreloc.c (open, close): Undefine.
34003         * lib/savedir.c (opendir, closedir): Undefine.
34004         * lib/utime.c (open, close): Undefine.
34005         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
34006
34007 2007-01-10  Bruno Haible  <bruno@clisp.org>
34008
34009         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
34010
34011 2007-01-12  Eric Blake  <ebb9@byu.net>
34012
34013         Provide a robust <wchar.h>.  Further simplifications are now
34014         possible in other modules, but not included here.
34015         * modules/wchar: New module.
34016         * m4/wchar.m4: New file.
34017         * lib/wchar_.h: Likewise.
34018         * modules/mbchar (Depends-on): Depend on wchar, as the first use
34019         of the new module.
34020         * MODULES.html.sh (Extended multibyte and wide character utilities):
34021         New section.
34022
34023 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
34024
34025         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
34026         to a reasonable default for memory allocation.
34027         (xreadlink): Don't allocate a huge buffer, to work around a buggy
34028         file system that reports garbage st_size values for symlinks.
34029         Problem reported by Liyang Hu.
34030
34031 2007-01-11  Simon Josefsson  <simon@josefsson.org>
34032
34033         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
34034         Emacs .#* auto-save files).
34035
34036 2007-01-11  Bruno Haible  <bruno@clisp.org>
34037
34038         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
34039         directory.
34040
34041 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
34042
34043         Use @...@ consistently in lib/wctype_.h.
34044         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
34045         on it being set to 1 or 0.
34046         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
34047         go back to AC_SUBSTing it.
34048         * modules/wctype (Makefile.am): Undo previous change.
34049
34050 2007-01-10  Eric Blake  <ebb9@byu.net>
34051
34052         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
34053         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
34054         * modules/wctype (Makefile.am): Likewise.
34055         Reported by Chris McGuire.
34056
34057 2007-01-10  Jim Meyering  <jim@meyering.net>
34058
34059         fts.c: a small readability/maintainability improvement
34060         * lib/fts.c (fts_read): Make this code slightly more readable and
34061         maintainable by hoisting the "sp->fts_cur = p" assignments to
34062         immediately follow the statements that set P.  Derived from
34063         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
34064
34065 2007-01-10  Eric Blake  <ebb9@byu.net>
34066
34067         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
34068         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
34069         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
34070         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
34071         Reported by Chris McGuire.
34072
34073 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34074
34075         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
34076         in sed script.
34077
34078 2007-01-09  Bruno Haible  <bruno@clisp.org>
34079
34080         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
34081         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
34082         variables.
34083         (func_module): Use them.
34084
34085 2007-01-09  Bruno Haible  <bruno@clisp.org>
34086
34087         * modules/unistr/base: New file.
34088         * lib/unistr.h: New file.
34089
34090         * modules/unistr/u8-to-u16: New file.
34091         * lib/unistr/u8-to-u16.c: New file.
34092
34093         * modules/unistr/u8-to-u32: New file.
34094         * lib/unistr/u8-to-u32.c: New file.
34095
34096         * modules/unistr/u16-to-u8: New file.
34097         * lib/unistr/u16-to-u8.c: New file.
34098
34099         * modules/unistr/u16-to-u32: New file.
34100         * lib/unistr/u16-to-u32.c: New file.
34101
34102         * modules/unistr/u32-to-u8: New file.
34103         * lib/unistr/u32-to-u8.c: New file.
34104
34105         * modules/unistr/u32-to-u16: New file.
34106         * lib/unistr/u32-to-u16.c: New file.
34107
34108         * modules/unistr/u8-check: New file.
34109         * modules/unistr/u16-check: New file.
34110         * modules/unistr/u32-check: New file.
34111         * lib/unistr/u8-check.c: New file.
34112         * lib/unistr/u16-check.c: New file.
34113         * lib/unistr/u32-check.c: New file.
34114
34115         * modules/unistr/u8-chr: New file.
34116         * modules/unistr/u16-chr: New file.
34117         * modules/unistr/u32-chr: New file.
34118         * lib/unistr/u8-chr.c: New file.
34119         * lib/unistr/u16-chr.c: New file.
34120         * lib/unistr/u32-chr.c: New file.
34121
34122         * modules/unistr/u8-cmp: New file.
34123         * modules/unistr/u16-cmp: New file.
34124         * modules/unistr/u32-cmp: New file.
34125         * lib/unistr/u8-cmp.c: New file.
34126         * lib/unistr/u16-cmp.c: New file.
34127         * lib/unistr/u32-cmp.c: New file.
34128
34129         * modules/unistr/u8-cpy: New file.
34130         * modules/unistr/u16-cpy: New file.
34131         * modules/unistr/u32-cpy: New file.
34132         * lib/unistr/u8-cpy.c: New file.
34133         * lib/unistr/u16-cpy.c: New file.
34134         * lib/unistr/u32-cpy.c: New file.
34135         * lib/unistr/u-cpy.h: New file.
34136
34137         * modules/unistr/u8-cpy-alloc: New file.
34138         * modules/unistr/u16-cpy-alloc: New file.
34139         * modules/unistr/u32-cpy-alloc: New file.
34140         * lib/unistr/u8-cpy-alloc.c: New file.
34141         * lib/unistr/u16-cpy-alloc.c: New file.
34142         * lib/unistr/u32-cpy-alloc.c: New file.
34143         * lib/unistr/u-cpy-alloc.h: New file.
34144
34145         * modules/unistr/u8-endswith: New file.
34146         * modules/unistr/u16-endswith: New file.
34147         * modules/unistr/u32-endswith: New file.
34148         * lib/unistr/u8-endswith.c: New file.
34149         * lib/unistr/u16-endswith.c: New file.
34150         * lib/unistr/u32-endswith.c: New file.
34151         * lib/unistr/u-endswith.h: New file.
34152
34153         * modules/unistr/u8-mblen: New file.
34154         * modules/unistr/u16-mblen: New file.
34155         * modules/unistr/u32-mblen: New file.
34156         * lib/unistr/u8-mblen.c: New file.
34157         * lib/unistr/u16-mblen.c: New file.
34158         * lib/unistr/u32-mblen.c: New file.
34159
34160         * modules/unistr/u8-mbtouc: New file.
34161         * modules/unistr/u16-mbtouc: New file.
34162         * modules/unistr/u32-mbtouc: New file.
34163         * lib/unistr/u8-mbtouc.c: New file.
34164         * lib/unistr/u16-mbtouc.c: New file.
34165         * lib/unistr/u32-mbtouc.c: New file.
34166
34167         * modules/unistr/u8-mbtouc-safe: New file.
34168         * modules/unistr/u16-mbtouc-safe: New file.
34169         * modules/unistr/u32-mbtouc-safe: New file.
34170         * lib/unistr/u8-mbtouc-safe.c: New file.
34171         * lib/unistr/u16-mbtouc-safe.c: New file.
34172         * lib/unistr/u32-mbtouc-safe.c: New file.
34173
34174         * modules/unistr/u8-move: New file.
34175         * modules/unistr/u16-move: New file.
34176         * modules/unistr/u32-move: New file.
34177         * lib/unistr/u8-move.c: New file.
34178         * lib/unistr/u16-move.c: New file.
34179         * lib/unistr/u32-move.c: New file.
34180         * lib/unistr/u-move.h: New file.
34181
34182         * modules/unistr/u8-next: New file.
34183         * modules/unistr/u16-next: New file.
34184         * modules/unistr/u32-next: New file.
34185         * lib/unistr/u8-next.c: New file.
34186         * lib/unistr/u16-next.c: New file.
34187         * lib/unistr/u32-next.c: New file.
34188
34189         * modules/unistr/u8-prev: New file.
34190         * modules/unistr/u16-prev: New file.
34191         * modules/unistr/u32-prev: New file.
34192         * lib/unistr/u8-prev.c: New file.
34193         * lib/unistr/u16-prev.c: New file.
34194         * lib/unistr/u32-prev.c: New file.
34195
34196         * modules/unistr/u8-set: New file.
34197         * modules/unistr/u16-set: New file.
34198         * modules/unistr/u32-set: New file.
34199         * lib/unistr/u8-set.c: New file.
34200         * lib/unistr/u16-set.c: New file.
34201         * lib/unistr/u32-set.c: New file.
34202         * lib/unistr/u-set.h: New file.
34203
34204         * modules/unistr/u8-startswith: New file.
34205         * modules/unistr/u16-startswith: New file.
34206         * modules/unistr/u32-startswith: New file.
34207         * lib/unistr/u8-startswith.c: New file.
34208         * lib/unistr/u16-startswith.c: New file.
34209         * lib/unistr/u32-startswith.c: New file.
34210         * lib/unistr/u-startswith.h: New file.
34211
34212         * modules/unistr/u8-stpcpy: New file.
34213         * modules/unistr/u16-stpcpy: New file.
34214         * modules/unistr/u32-stpcpy: New file.
34215         * lib/unistr/u8-stpcpy.c: New file.
34216         * lib/unistr/u16-stpcpy.c: New file.
34217         * lib/unistr/u32-stpcpy.c: New file.
34218         * lib/unistr/u-stpcpy.h: New file.
34219
34220         * modules/unistr/u8-stpncpy: New file.
34221         * modules/unistr/u16-stpncpy: New file.
34222         * modules/unistr/u32-stpncpy: New file.
34223         * lib/unistr/u8-stpncpy.c: New file.
34224         * lib/unistr/u16-stpncpy.c: New file.
34225         * lib/unistr/u32-stpncpy.c: New file.
34226         * lib/unistr/u-stpncpy.h: New file.
34227
34228         * modules/unistr/u8-strcat: New file.
34229         * modules/unistr/u16-strcat: New file.
34230         * modules/unistr/u32-strcat: New file.
34231         * lib/unistr/u8-strcat.c: New file.
34232         * lib/unistr/u16-strcat.c: New file.
34233         * lib/unistr/u32-strcat.c: New file.
34234         * lib/unistr/u-strcat.h: New file.
34235
34236         * modules/unistr/u8-strchr: New file.
34237         * modules/unistr/u16-strchr: New file.
34238         * modules/unistr/u32-strchr: New file.
34239         * lib/unistr/u8-strchr.c: New file.
34240         * lib/unistr/u16-strchr.c: New file.
34241         * lib/unistr/u32-strchr.c: New file.
34242
34243         * modules/unistr/u8-strcmp: New file.
34244         * modules/unistr/u16-strcmp: New file.
34245         * modules/unistr/u32-strcmp: New file.
34246         * lib/unistr/u8-strcmp.c: New file.
34247         * lib/unistr/u16-strcmp.c: New file.
34248         * lib/unistr/u32-strcmp.c: New file.
34249
34250         * modules/unistr/u8-strcpy: New file.
34251         * modules/unistr/u16-strcpy: New file.
34252         * modules/unistr/u32-strcpy: New file.
34253         * lib/unistr/u8-strcpy.c: New file.
34254         * lib/unistr/u16-strcpy.c: New file.
34255         * lib/unistr/u32-strcpy.c: New file.
34256         * lib/unistr/u-strcpy.h: New file.
34257
34258         * modules/unistr/u8-strcspn: New file.
34259         * modules/unistr/u16-strcspn: New file.
34260         * modules/unistr/u32-strcspn: New file.
34261         * lib/unistr/u8-strcspn.c: New file.
34262         * lib/unistr/u16-strcspn.c: New file.
34263         * lib/unistr/u32-strcspn.c: New file.
34264         * lib/unistr/u-strcspn.h: New file.
34265
34266         * modules/unistr/u8-strdup: New file.
34267         * modules/unistr/u16-strdup: New file.
34268         * modules/unistr/u32-strdup: New file.
34269         * lib/unistr/u8-strdup.c: New file.
34270         * lib/unistr/u16-strdup.c: New file.
34271         * lib/unistr/u32-strdup.c: New file.
34272         * lib/unistr/u-strdup.h: New file.
34273
34274         * modules/unistr/u8-strlen: New file.
34275         * modules/unistr/u16-strlen: New file.
34276         * modules/unistr/u32-strlen: New file.
34277         * lib/unistr/u8-strlen.c: New file.
34278         * lib/unistr/u16-strlen.c: New file.
34279         * lib/unistr/u32-strlen.c: New file.
34280         * lib/unistr/u-strlen.h: New file.
34281
34282         * modules/unistr/u8-strmblen: New file.
34283         * modules/unistr/u16-strmblen: New file.
34284         * modules/unistr/u32-strmblen: New file.
34285         * lib/unistr/u8-strmblen.c: New file.
34286         * lib/unistr/u16-strmblen.c: New file.
34287         * lib/unistr/u32-strmblen.c: New file.
34288
34289         * modules/unistr/u8-strmbtouc: New file.
34290         * modules/unistr/u16-strmbtouc: New file.
34291         * modules/unistr/u32-strmbtouc: New file.
34292         * lib/unistr/u8-strmbtouc.c: New file.
34293         * lib/unistr/u16-strmbtouc.c: New file.
34294         * lib/unistr/u32-strmbtouc.c: New file.
34295
34296         * modules/unistr/u8-strncat: New file.
34297         * modules/unistr/u16-strncat: New file.
34298         * modules/unistr/u32-strncat: New file.
34299         * lib/unistr/u8-strncat.c: New file.
34300         * lib/unistr/u16-strncat.c: New file.
34301         * lib/unistr/u32-strncat.c: New file.
34302         * lib/unistr/u-strncat.h: New file.
34303
34304         * modules/unistr/u8-strncmp: New file.
34305         * modules/unistr/u16-strncmp: New file.
34306         * modules/unistr/u32-strncmp: New file.
34307         * lib/unistr/u8-strncmp.c: New file.
34308         * lib/unistr/u16-strncmp.c: New file.
34309         * lib/unistr/u32-strncmp.c: New file.
34310
34311         * modules/unistr/u8-strncpy: New file.
34312         * modules/unistr/u16-strncpy: New file.
34313         * modules/unistr/u32-strncpy: New file.
34314         * lib/unistr/u8-strncpy.c: New file.
34315         * lib/unistr/u16-strncpy.c: New file.
34316         * lib/unistr/u32-strncpy.c: New file.
34317         * lib/unistr/u-strncpy.h: New file.
34318
34319         * modules/unistr/u8-strnlen: New file.
34320         * modules/unistr/u16-strnlen: New file.
34321         * modules/unistr/u32-strnlen: New file.
34322         * lib/unistr/u8-strnlen.c: New file.
34323         * lib/unistr/u16-strnlen.c: New file.
34324         * lib/unistr/u32-strnlen.c: New file.
34325         * lib/unistr/u-strnlen.h: New file.
34326
34327         * modules/unistr/u8-strpbrk: New file.
34328         * modules/unistr/u16-strpbrk: New file.
34329         * modules/unistr/u32-strpbrk: New file.
34330         * lib/unistr/u8-strpbrk.c: New file.
34331         * lib/unistr/u16-strpbrk.c: New file.
34332         * lib/unistr/u32-strpbrk.c: New file.
34333         * lib/unistr/u-strpbrk.h: New file.
34334
34335         * modules/unistr/u8-strrchr: New file.
34336         * modules/unistr/u16-strrchr: New file.
34337         * modules/unistr/u32-strrchr: New file.
34338         * lib/unistr/u8-strrchr.c: New file.
34339         * lib/unistr/u16-strrchr.c: New file.
34340         * lib/unistr/u32-strrchr.c: New file.
34341
34342         * modules/unistr/u8-strspn: New file.
34343         * modules/unistr/u16-strspn: New file.
34344         * modules/unistr/u32-strspn: New file.
34345         * lib/unistr/u8-strspn.c: New file.
34346         * lib/unistr/u16-strspn.c: New file.
34347         * lib/unistr/u32-strspn.c: New file.
34348         * lib/unistr/u-strspn.h: New file.
34349
34350         * modules/unistr/u8-strstr: New file.
34351         * modules/unistr/u16-strstr: New file.
34352         * modules/unistr/u32-strstr: New file.
34353         * lib/unistr/u8-strstr.c: New file.
34354         * lib/unistr/u16-strstr.c: New file.
34355         * lib/unistr/u32-strstr.c: New file.
34356         * lib/unistr/u-strstr.h: New file.
34357
34358         * modules/unistr/u8-strtok: New file.
34359         * modules/unistr/u16-strtok: New file.
34360         * modules/unistr/u32-strtok: New file.
34361         * lib/unistr/u8-strtok.c: New file.
34362         * lib/unistr/u16-strtok.c: New file.
34363         * lib/unistr/u32-strtok.c: New file.
34364         * lib/unistr/u-strtok.h: New file.
34365
34366         * modules/unistr/u8-uctomb: New file.
34367         * modules/unistr/u16-uctomb: New file.
34368         * modules/unistr/u32-uctomb: New file.
34369         * lib/unistr/u8-uctomb.c: New file.
34370         * lib/unistr/u16-uctomb.c: New file.
34371         * lib/unistr/u32-uctomb.c: New file.
34372
34373         * MODULES.html.sh (Unicode string functions): Add the new modules.
34374
34375 2007-01-08  Bruno Haible  <bruno@clisp.org>
34376
34377         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
34378         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
34379         subdirectories.
34380
34381 2007-01-08  Karl Berry  <karl@gnu.org>
34382
34383         * doc/error.texi: mention that main() fns must set program_name
34384         when progname is used.
34385
34386 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
34387
34388         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
34389         WCTYPE_H is empty, for the benefit of builds from non-distclean
34390         directories.  Problem reported by Eric Blake in
34391         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
34392
34393 2007-01-08  Bruno Haible  <bruno@clisp.org>
34394
34395         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
34396         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
34397         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
34398         PROVIDE_CANONICALIZE_FILENAME_MODE.
34399         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
34400
34401 2007-01-08  Bruno Haible  <bruno@clisp.org>
34402
34403         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
34404         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
34405         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
34406         * lib/fts.c: Likewise.
34407         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
34408
34409 2006-12-25  Bruno Haible  <bruno@clisp.org>
34410
34411         * modules/utf8-ucs4-safe: New file.
34412         * lib/utf8-ucs4-safe.h: New file.
34413         * lib/unistr/utf8-ucs4-safe.c: New file.
34414
34415         * modules/utf16-ucs4-safe: New file.
34416         * lib/utf16-ucs4-safe.h: New file.
34417         * lib/unistr/utf16-ucs4-safe.c: New file.
34418
34419         * MODULES.html.sh (Unicode string functions): Add the new modules.
34420
34421 2007-01-08  Bruno Haible  <bruno@clisp.org>
34422
34423         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
34424         (Depends-on): Add unitypes.
34425         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
34426         (u8_mbtouc_aux): Move out to separate file.
34427         (u8_mbtouc): Use ucs4_t, uint8_t types.
34428         * lib/unistr/utf8-ucs4.c: New file.
34429
34430         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
34431         (Depends-on): Add unitypes.
34432         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
34433         (u16_mbtouc_aux): Move out to separate file.
34434         (u16_mbtouc): Use ucs4_t, uint16_t types.
34435         * lib/unistr/utf16-ucs4.c: New file.
34436
34437         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
34438         (Depends-on): Add unitypes.
34439         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
34440         (u8_uctomb_aux): Move out to separate file.
34441         (u8_uctomb): Use ucs4_t, uint8_t types.
34442         * lib/unistr/ucs4-utf8.c: New file.
34443
34444         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
34445         (Depends-on): Add unitypes.
34446         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
34447         (u16_uctomb_aux): Move out to separate file.
34448         (u16_uctomb): Use ucs4_t, uint16_t types.
34449         * lib/unistr/ucs4-utf16.c: New file.
34450
34451 2006-12-25  Bruno Haible  <bruno@clisp.org>
34452
34453         * modules/unitypes: New file.
34454         * lib/unitypes.h: New file.
34455         * MODULES.html.sh (func_all_modules): New section "Unicode string
34456         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
34457         this section. Add unitypes.
34458
34459 2007-01-08  Bruno Haible  <bruno@clisp.org>
34460
34461         Avoid variable names that conflict with those from libtool.
34462         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
34463         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
34464         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
34465         library_names_spec to acl_library_names_spec, hardcode_* to
34466         acl_hardcode_*.
34467         Reported by Ralf Wildenhues.
34468
34469 2007-01-08  Bruno Haible  <bruno@clisp.org>
34470
34471         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
34472         definition.
34473         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
34474         definition.
34475         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
34476         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
34477         definition.
34478         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
34479         definition.
34480         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
34481         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
34482         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
34483         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
34484         definition.
34485         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
34486         definition.
34487         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
34488         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
34489         GC_USE_<algorithm>.
34490         * lib/gc-libgcrypt.c: Likewise.
34491         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
34492         * modules/gc-arctwo (configure.ac): Likewise.
34493         * modules/gc-des (configure.ac): Likewise.
34494         * modules/gc-hmac-md5 (configure.ac): Likewise.
34495         * modules/gc-hmac-sha1 (configure.ac): Likewise.
34496         * modules/gc-md2 (configure.ac): Likewise.
34497         * modules/gc-md4 (configure.ac): Likewise.
34498         * modules/gc-md5 (configure.ac): Likewise.
34499         * modules/gc-random (configure.ac): Likewise.
34500         * modules/gc-rijndael (configure.ac): Likewise.
34501         * modules/gc-sha1 (configure.ac): Likewise.
34502
34503 2007-01-08  Bruno Haible  <bruno@clisp.org>
34504
34505         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
34506         macro definition.
34507         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
34508         definition.
34509         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
34510         definition.
34511         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
34512         * modules/fcntl-safer (configure.ac): Likewise.
34513         * modules/fopen-safer (configure.ac): Likewise.
34514         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
34515         GNULIB_FWRITEERROR macro definition.
34516
34517 2007-01-08  Bruno Haible  <bruno@clisp.org>
34518
34519         * m4/gnulib-common.m4: New file.
34520         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
34521         (func_get_filelist): Add m4/gnulib-common.m4.
34522
34523 2007-01-08  Bruno Haible  <bruno@clisp.org>
34524
34525         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
34526         command.
34527
34528 2007-01-08  Jim Meyering  <jim@meyering.net>
34529
34530         Use a more robust test for a "can't happen" condition.
34531         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
34532         narrowed the st_size value.  Presuming the "can't happen" condition
34533         is true, that narrowing could conceivably convert an invalid st_size
34534         value into a valid one.  Instead, use a change based on Matthew
34535         Woehlke's original patch.
34536
34537         Slight readability improvement: use an assert-like macro
34538         in place of literal "abort ()" uses.
34539         * lib/fts.c (fts_assert): Define.
34540         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
34541         Use this macro instead of a bare 'abort'.
34542
34543 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
34544
34545         Don't worry about using IRIX 5.3's wctype.h broken definitions;
34546         simply work around them.
34547         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
34548         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
34549         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
34550         declaring.
34551         Don't bother to define as macros, since the standard doesn't require it.
34552         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
34553         longer worry about IRIX 5.3.
34554         (HAVE_WCTYPE_CTMP_BUG): Remove.
34555
34556 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
34557
34558         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
34559         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
34560         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
34561         Problems reported by Georg Schwarz for IRIX 5.3.
34562
34563         * gnulib-tool (autoconf_minversion): Take the maximum version number
34564         found, not the minimum.  Problem reported by James Youngman.
34565
34566 2007-01-03  Karl Berry  <karl@gnu.org>
34567
34568         * doc/error.texi: new file, explaining interaction with progname.
34569         * doc/gnulib.texi: include it.  Update copyright.
34570
34571 2007-01-03  Simon Josefsson  <simon@josefsson.org>
34572
34573         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
34574         AC_CANONICAL_HOST, to improve autobuild outputs.
34575
34576 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
34577             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
34578
34579         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
34580         sockets, server sockets, and other file descriptors.  Count errors
34581         to compute the return value.  Reorder the code a bit to be easier
34582         to follow.  Don't set event bits that were not requested (except
34583         POLLERR and POLLHUP).
34584
34585 2007-01-01  Bruno Haible  <bruno@clisp.org>
34586
34587         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
34588
34589 2007-01-03  Jim Meyering  <jim@meyering.net>
34590
34591         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
34592
34593 2007-01-02  Bruno Haible  <bruno@clisp.org>
34594
34595         * modules/settime (Include): Require timespec.h.
34596         * modules/nanosleep (Include): Likewise.
34597
34598 2007-01-01  Bruno Haible  <bruno@clisp.org>
34599
34600         * gnulib-tool (func_emit_copyright_notice): Bump year.
34601         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
34602
34603 2007-01-01  Bruno Haible  <bruno@clisp.org>
34604
34605         Improve support for OpenBSD.
34606         * build-aux/config.rpath (libname_spec): Export.
34607         (library_names_spec): New variable. Export.
34608         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
34609         library_names_spec from the config.rpath output. Locate shared library
34610         through the name pattern in library_names_spec.
34611
34612 2007-01-01  Eric Blake  <ebb9@byu.net>
34613
34614         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
34615
34616 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
34617
34618         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
34619         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
34620         assume the C locale, and avoid an "eval" that could cause trouble.
34621         Problem with SORT reported by Bob Proulx.
34622
34623         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
34624         Define.  Trivial patch from Henning Nielsen Lund, originally
34625         sent to bug-grep@gnu.org today.
34626
34627 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
34628
34629         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
34630         struct stat.  Problem reported by Henning Nielsen Lund.
34631         * lib/acl.c: Include acl.h first, to check interface.  Don't
34632         bother to include sys/types.h and sys/stat.h again.
34633
34634 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
34635
34636         Import the following change from libc; problem reported by
34637         Sven Verdoolaege.
34638
34639         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
34640
34641         [BZ #1373]
34642         * lib/argp.h: Remove __NTH for __argp_usage inline function.
34643
34644 2006-12-28  Jim Meyering  <jim@meyering.net>
34645
34646         * build-aux/announce-gen: Do not assume that the package
34647         builds any of tar.gz, tar.bz2, and .xdelta files.
34648         Suggestion from Simon Josefsson.
34649
34650 2006-12-28  Simon Josefsson  <simon@josefsson.org>
34651
34652         * modules/announce-gen: New file.
34653
34654 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
34655
34656         * lib/mbchar.h: Just include <wctype.h>; the wctype module
34657         handles its gotchas now.
34658         * lib/mbswidth.c: Likewise.
34659         * lib/wcwidth.h: Likewise.
34660         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
34661         and iswcntrl; the wctype module does this stuff now.
34662         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
34663         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
34664         * modules/mbchar (Depends-on): Add wctype.
34665         * modules/mbswidth (Depends-on): Likewise.
34666         * modules/wcwidth (Depends-on): Likewise.
34667
34668 2006-12-27  Eric Blake  <ebb9@byu.net>
34669
34670         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
34671         module uses more than what <wctype.h> is required to provide.
34672
34673 2006-12-26  Eric Blake  <ebb9@byu.net>
34674
34675         * gnulib-tool (sed_extract_prog): Avoid space-tab.
34676
34677 2006-12-26  Eric Blake  <ebb9@byu.net>
34678
34679         * modules/absolute-header: New module.
34680         * modules/fcntl (Depends-on): Depend on it.
34681         * modules/inttypes (Depends-on): Likewise.
34682         * modules/stdint (Depends-on): Likewise.
34683         * modules/sys_stat (Depends-on): Likewise.
34684         * modules/wctype (Depends-on): Likewise.
34685         * MODULES.html.sh (Support for building libraries and
34686         executables): Document it.
34687
34688 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
34689
34690         * gnulib-tool (SED): Remove, undoing previous change.
34691         The problem was that it broke coreutils on Solaris, because
34692         "sed --posix" leaked into a makefile.
34693         (sed): New alias, if 'alias' and GNU sed.
34694
34695 2006-12-24  Jim Meyering  <jim@meyering.net>
34696
34697         Work around an fchownat bug in glibc-2.4:
34698         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
34699         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
34700         in spite of the -P option.
34701         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
34702         New macros.
34703         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
34704         * modules/openat (Files): Add lib/fchownat.c.
34705         * lib/openat.c (fchownat): Don't define here.  Move to...
34706         * lib/fchownat.c: ...this new file.
34707
34708 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
34709
34710         Fix bug reported by Bruno Haible in
34711         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
34712         where quotearg.c didn't compile on Mac OS X 10.2 because it
34713         lacks <wchar.h> and wint_t.
34714         * lib/wctype_.h (__wctype_wint_t): New type.
34715         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
34716         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
34717         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
34718         Arg is now of type __wctype_wint_t, not wint_t.
34719         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
34720         substitute HAVE_WINT_T.
34721         * modules/wctype (Files): Add m4/wint_t.m4.
34722         (wctype.h): Substitute HAVE_WINT_T.
34723
34724 2006-12-23  Bruno Haible  <bruno@clisp.org>
34725
34726         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
34727
34728 2006-12-23  Bruno Haible  <bruno@clisp.org>
34729
34730         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
34731         S_ISLNK.
34732         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
34733         mingw.
34734
34735 2006-12-22  Bruno Haible  <bruno@clisp.org>
34736
34737         * lib/copy-file.c: Include acl.h.
34738         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
34739         Close the file descriptors only after being done with copy_acl.
34740         * modules/copy-file (Depends-on): Add acl.
34741
34742 2006-12-22  Bruno Haible  <bruno@clisp.org>
34743
34744         * gnulib-tool (SED): New variable.
34745         Use $SED instead of sed everywhere.
34746
34747 2006-12-22  Bruno Haible  <bruno@clisp.org>
34748
34749         * modules/no-c++: New file.
34750         * m4/no-c++.m4: New file.
34751         * MODULES.html.sh (Support for building libraries and executables):
34752         Add no-c++.
34753
34754 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
34755
34756         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
34757         Include <limits.h>, and use its INT_MAX to rewrite the
34758         j loop so that it does not overflow 'int'.  Problem reported by
34759         Ralf Wildenhues in
34760         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
34761         Play it safe by shifting left by 1 rather than multiplying by 2,
34762         as GCC is less likely to optimize this away when the value
34763         is signed (when it assumes overflow leads to undefined behavior).
34764         Also, don't assume time_t uses two's complement.
34765
34766 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
34767
34768         * MODULES.html.sh: New module wctype.
34769         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
34770         * lib/fnmatch.c: Don't bother to include <wchar.h> before
34771         <wctype.h>, since the new wctype module should fix this.
34772         * lib/quotearg.c: Include <wctype.h> unconditionally, since
34773         the wctype module should arrange for it.
34774         * lib/regex_internal.h: Likewise.
34775         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
34776         since the wctype module should handle this now.
34777         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
34778         * modules/fnmatch (Depends-on): Add wctype.
34779         * modules/quotearg (Depends-on): Likewise.
34780         * modules/regex (Depends-on): Likewise.
34781
34782 2006-12-19  Bruno Haible  <bruno@clisp.org>
34783
34784         * lib/strdup.h [C++]: Wrap definitions in extern "C".
34785         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
34786
34787 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34788
34789         * modules/savewd (Depends-on): Fix dependency on fcntl.
34790
34791 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
34792
34793         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
34794         conforms to C99, rather than relying on the user's environment
34795         setting of STDINT_H.
34796
34797 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
34798         and Eric Blake  <ebb9@byu.net>
34799
34800         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
34801         This is more consistent with the other defines here.
34802         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
34803         Port to z/OS.  Problem reported by Paul Gilmartin.
34804         Change local vars to use gl_ prefix rather than ac_.
34805         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
34806         with other defines.
34807         * modules/double-slash-root: New module.
34808         * modules/dirname (Files): Remove m4/double-slash-root.m4.
34809         (Depends-on): Add double-slash-root.
34810         * MODULES.html.sh (File system functions): Mention new module.
34811
34812 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
34813
34814         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
34815         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
34816         This is for the benefit of gzip, which doesn't do i18n.
34817
34818 2006-12-12  Jim Meyering  <jim@meyering.net>
34819
34820         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
34821         Reported by Andreas Schwab <schwab@suse.de>.
34822
34823 2006-12-12  Bruno Haible  <bruno@clisp.org>
34824
34825         Merge these changes.
34826         2006-09-05  Bruno Haible  <bruno@clisp.org>
34827         * lib/iconvme.c (iconv_string): No need to save and restore errno when
34828         iconv_alloc succeeded.
34829         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
34830         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
34831         test for " && dest " at the end - dest is always != NULL there. Call
34832         iconv with 4xNULL arguments initially, to reset the state. Call iconv
34833         with 2xNULL arguments, also to flush the state storage. Handle the
34834         IRIX iconv behaviour. Realloc the final result, to throw away unused
34835         memory.
34836
34837 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
34838
34839         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
34840         and fchmodat unconditionally, since glibc 2.4 has them.
34841         Problem reported by Arkadiusz Miskiewicz.
34842
34843 2006-12-10  Bruno Haible  <bruno@clisp.org>
34844
34845         * gnulib-tool (func_import): Show the include files only for those
34846         modules that are copied and specified.
34847         Reported by Karl Berry.
34848
34849 2006-12-08  Jim Meyering  <jim@meyering.net>
34850
34851         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
34852         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
34853
34854         * build-aux/announce-gen: Add two new options, both optional:
34855         --bootstrap-tools=TOOL_LIST
34856               a comma-separated list of tools, e.g.,
34857               autoconf,automake,bison,gnulib
34858         --gnulib-snapshot-date=DATE
34859               if gnulib is in the bootstrap tool list,
34860               then report this as the snapshot date.
34861               If not specified, use the current date/time.
34862               If you specify a date here, be sure it's UTC.
34863
34864 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34865
34866         * tests/test-argp-2.sh: Fix test to match actual output.
34867         (func_compare): Fix sed script to be portable.
34868
34869 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
34870
34871         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
34872         workaround for this case.  It is not autoconfigured now; offhand
34873         it's hard to see how to autoconfigure it.
34874
34875 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
34876
34877         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
34878         a directory that is about to be chowned.  Such a directory's
34879         initial file permissions should permit the owner only and this
34880         should not be changed until after the chown, since the group and
34881         other bits would be incorrect if they granted permission before
34882         the chown.
34883
34884         Fix porting problem for iswctype reported by Georg Schwarz in:
34885         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
34886         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
34887         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
34888         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
34889         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34890
34891 2006-12-03  Jim Meyering  <jim@meyering.net>
34892
34893         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
34894         p->fts_statp may not yet be defined.
34895         (fts_read): Instead, set it in the caller, once p->fts_statp is
34896         sure to be defined, and corresponds to a top-level directory.
34897         This bug made du -x fail.  Here's the coreutils test case:
34898         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
34899         Reported by Mike Frysinger.
34900
34901 2006-12-01  Jim Meyering  <jim@meyering.net>
34902
34903         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
34904         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
34905         Reported by Simon Josefsson.
34906
34907 2006-11-30  Jim Meyering  <jim@meyering.net>
34908
34909         * m4/warning.m4: Use the all-permissive copyright notice
34910         recommended by RMS (rather than LGPL).
34911         * m4/vararrays.m4: Likewise.
34912         * m4/flexmember.m4: Likewise.
34913
34914 2006-11-29  Bruno Haible  <bruno@clisp.org>
34915
34916         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
34917         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
34918         using +=.
34919         Reported by Simon Josefsson <simon@josefsson.org>.
34920
34921 2006-11-28  James Youngman <jay@gnu.org>
34922
34923         * README: Advise users that they might find the bug-gnulib@gnu.org
34924         and autotools-announce@gnu.org mailing lists useful.
34925
34926 2006-11-28  Bruno Haible  <bruno@clisp.org>
34927
34928         * m4/ptrdiff_max.m4: Remove file.
34929
34930 2006-11-21  Bruno Haible  <bruno@clisp.org>
34931
34932         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
34933         _AC_COMPUTE_INT.
34934         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
34935         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
34936         _AC_COMPUTE_INT.
34937         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
34938         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
34939         _AC_COMPUTE_INT.
34940         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
34941
34942 2006-11-28  Jim Meyering  <jim@meyering.net>
34943
34944         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
34945         warning from "gcc -Wshadow" about shadowing the builtin.
34946
34947 2006-11-27  Bruno Haible  <bruno@clisp.org>
34948
34949         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
34950         _AC_COMPUTE_INT.
34951         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
34952
34953 2006-11-27  Bruno Haible  <bruno@clisp.org>
34954             Paul Eggert  <eggert@cs.ucla.edu>
34955
34956         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
34957
34958 2006-11-26  Bruno Haible  <bruno@clisp.org>
34959
34960         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
34961         noinst_LTLIBRARIES.
34962
34963 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
34964             Bruno Haible  <bruno@clisp.org>
34965
34966         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
34967         if compiling with "gcc -ansi".
34968
34969 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
34970
34971         Fix some incompatibilities with gcc -ansi -pedantic.
34972         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
34973         if compiling pedantically with GCC, unless it's C99 or later.
34974         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
34975         it mishandles gcc -ansi -pedantic as well.
34976         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
34977         if gcc -pedantic.
34978         * lib/regexec.c (check_node_accept_bytes): Don't use auto
34979         initializers for struct if -pedantic, unless it's C99 or later.
34980
34981 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
34982
34983         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
34984         Don't close an fd more than once. Identical atimes indicate
34985         success, not failure.
34986
34987 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
34988
34989         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
34990
34991 2006-11-23  Jim Meyering  <jim@meyering.net>
34992
34993         * build-aux/announce-gen: New file.  From coreutils.
34994
34995 2006-11-22  Jim Meyering  <jim@meyering.net>
34996
34997         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
34998         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
34999         (fts_read): Use a temporary to narrow the overused st_size member
35000         before using it in a switch statement.  Reported by Matthew Woehlke.
35001
35002         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
35003         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35004
35005 2006-11-20  Bruno Haible  <bruno@clisp.org>
35006
35007         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
35008         changequote instead of pairs of brackets.
35009         Reported by Andreas Schwab <schwab@suse.de>.
35010
35011 2006-11-21  Jim Meyering  <jim@meyering.net>
35012
35013         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
35014         so as to remain compatible with older compilers.
35015         Patch from Michael Deutschmann.
35016
35017 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
35018
35019         * MODULES.html.sh (File system functions): Add openat.
35020
35021         * lib/openat.h (rpl_fstatat): New macro, if
35022         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
35023         (fstatat): Define to rpl_fstatat under the same conditions,
35024         unless COMPILING_FSTATAT.
35025         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
35026         seems to have the bug.
35027         * lib/fstatat.c: New file.
35028         * modules/openat (Files): Add it.
35029
35030 2006-11-20  Bruno Haible  <bruno@clisp.org>
35031
35032         * Makefile: New file.
35033
35034 2006-11-20  Jim Meyering  <jim@meyering.net>
35035
35036         The beginnings of syntax-related checks for gnulib.
35037         * lib/Makefile: New file.
35038         * lib/t-idcache: New script.  Ensure that the two halves of
35039         idcache.c stay in sync.
35040
35041         * lib/idcache.c: Adjust comments in user- and group- portions to
35042         be more accurate, and to be consistent with one another.
35043
35044 2006-11-20  Jim Meyering  <jim@meyering.net>
35045
35046         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
35047         continue using the flexible array member (thus, this module performs
35048         half as many malloc calls), with the addition that...
35049         (getgroup, getuser): Consistently record a non-match via an empty
35050         "name" string, and map an empty string match to a NULL return value.
35051         * modules/idcache (Depends-on): Re-add flexmember.
35052
35053         * lib/idcache.c (getuser): Remove all uses of the register keyword.
35054         (getuidbyname, getgroup, getgidbyname): Likewise.
35055
35056         Use cleaner syntax: NULL rather than 0.
35057         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
35058
35059 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
35060
35061         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
35062         It mishandled the case where the group was missing.
35063         Problem reported by Greg Schafer.
35064         * modules/idcache: Likewise.
35065
35066 2006-11-18  Jim Meyering  <jim@meyering.net>
35067
35068         * check-module (%exempt_header): Add exception for some
35069         conditionally-included headers.
35070
35071         * modules/i-ring (Depends-on): Add verify.
35072         (License): Change to LGPL.
35073
35074 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
35075
35076         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
35077         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
35078         and inttostr.h.  Use snprintf rather than uinttostr, so that
35079         LGPLed code doesn't depend on GPLed.
35080
35081 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
35082
35083         * modules/inline (License): Change from GPL to LGPL.
35084
35085 2006-11-17  Jim Meyering  <jim@meyering.net>
35086
35087         * modules/d-type (License): Switch to LGPL.
35088
35089 2006-11-15  Bruno Haible  <bruno@clisp.org>
35090
35091         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
35092
35093 2006-11-15  Eric Blake  <ebb9@byu.net>
35094
35095         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
35096         the module dependency.
35097
35098 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35099             Bruno Haible  <bruno@clisp.org>
35100
35101         * gnulib-tool (func_create_testdir): Add license consistency check.
35102
35103 2006-11-15  Eric Blake  <ebb9@byu.net>
35104
35105         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
35106         random "(cached)" in configure output.
35107
35108 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35109
35110         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
35111         test for conforming inttypes.h is both announced and cached.
35112
35113         * MODULES.html.sh (seen_modules, seen_files): New variables.
35114         (func_module): Rewrite to use a few less gnulib-tool and sed
35115         invocations.  Avoid a couple of quadratic algorithms for ...
35116         (missed_modules, missed_files): ... these, with ...
35117         (func_append, func_tmpdir): ... these new functions, from
35118         gnulib-tool.  Analogously, install traps for cleanup.
35119
35120         * tests/test-gc.c (main): Remove unused variables.
35121         * tests/test-read-file.c: Include stdlib.h, for 'free'.
35122
35123 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
35124
35125         * modules/inttostr (License): Change to LGPL.
35126
35127 2006-11-14  Eric Blake  <ebb9@byu.net>
35128
35129         * modules/tempname (License): Change to LGPL.
35130
35131 2006-11-14  Eric Blake  <ebb9@byu.net>
35132
35133         * doc/functions.texi (Function Portability): *printf functions on
35134         Cygwin now understand all POSIX size specifiers.
35135
35136 2006-11-14  Bruno Haible  <bruno@clisp.org>
35137
35138         * modules/c-ctype (License): Change to LGPL.
35139
35140 2006-11-12  Bruno Haible  <bruno@clisp.org>
35141
35142         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
35143         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
35144         for GNOME libraries, for which the include files are installed in
35145         subdirectories of $prefix/include.
35146
35147 2006-11-12  Bruno Haible  <bruno@clisp.org>
35148
35149         * m4/lib-link.m4: Require at least autoconf-2.54.
35150         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
35151         name to underscores for the --with option.
35152
35153 2006-11-13  Bruno Haible  <bruno@clisp.org>
35154
35155         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
35156         the tests directory.
35157         Reported by Ralf Wildenhues.
35158
35159 2006-11-13  Bruno Haible  <bruno@clisp.org>
35160
35161         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
35162         (func_emit_initmacro_end): Undo the override here.
35163         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
35164         Works around the famous automake error in coreutils.
35165
35166 2006-11-13  Eric Blake  <ebb9@byu.net>
35167
35168         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
35169         element, not its node.
35170
35171 2006-11-12  Bruno Haible  <bruno@clisp.org>
35172
35173         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
35174         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
35175
35176 2006-11-12  Bruno Haible  <bruno@clisp.org>
35177
35178         * gnulib-tool: New option --local-symlink.
35179         (func_usage): Document it.
35180         (lsymbolic): New variable.
35181         (func_import, func_create_testdir): If --symlink was not specified,
35182         test whether --local-symlink was specified and the file comes from
35183         the local_gnulib_dir.
35184
35185 2006-11-12  Bruno Haible  <bruno@clisp.org>
35186
35187         * gnulib-tool (func_ln): New function.
35188         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
35189
35190 2006-11-12  Bruno Haible  <bruno@clisp.org>
35191
35192         Finish support for source files in subdirectories.
35193         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
35194         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
35195         AUTOMAKE_OPTIONS.
35196         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
35197
35198 2006-11-12  Bruno Haible  <bruno@clisp.org>
35199
35200         * gnulib-tool (func_get_automake_snippet): Synthesize also an
35201         EXTRA_lib_SOURCES augmentation.
35202         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
35203
35204 2006-11-12  Jim Meyering  <jim@meyering.net>
35205
35206         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
35207         file descriptors.  This also averts a failure on systems with
35208         native openat support when a traversed directory lacks "x" access.
35209         * lib/fts_.h: Include "i-ring.h"
35210         (struct FTS) [fts_fd_ring]: New member.
35211         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
35212         (FCHDIR): Add parentheses.
35213         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
35214         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
35215         When descending, rather than simply closing the previous
35216         fts_cwd_fd value, push that file descriptor onto the ring.
35217         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
35218         (fts_open): Initialize the new fd_ring member.
35219         (fts_close): Clear the ring.
35220         (fts_safe_changedir): When possible, use our new fd_ring to skip
35221         the diropen and fstat and dev/ino comparison that would normally
35222         accompany a virtual `chdir ("..")'.
35223
35224         * modules/fts (Depends-on): Add i-ring.
35225         * modules/i-ring: New module.
35226         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
35227         * m4/i-ring.m4: New file.
35228
35229 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35230
35231         * gnulib-tool (func_create_testdir): Fix replacement of
35232         `build-aux' in configure.ac.  Run autotools in gltests
35233         subdirectory.
35234         (func_create_testdir, func_create_megatestdir, test): There is
35235         no need for '--force' in most autotool invocations in a new
35236         tree.  Actually fail the whole test if any of the tools, or the
35237         configure or make stages fail.
35238
35239         Sync from Automake.
35240         * build-aux/gnupload: Revert last change.  Add pointer to upload
35241         instructions of the GNU Maintenance Instructions.
35242         Suggestion by Karl Berry.
35243
35244 2006-11-10  Jim Meyering  <jim@meyering.net>
35245
35246         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
35247
35248 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
35249
35250         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
35251         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
35252         (bind_textdomain_codeset) [! ENABLE_NLS]:
35253         Evaluate all the arguments.  That way, callers get compatible behavior
35254         if the arguments have side effects.  Also, it avoids some GCC
35255         diagnostics in some cases; Joel E. Denny reported problems when Bison
35256         was configured with --enable-gcc-warnigs.
35257
35258 2006-11-10  Jim Meyering  <jim@meyering.net>
35259
35260         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
35261         relevant options in CFLAGS (like -O, -fno-inline) are taken into
35262         account.
35263
35264 2006-11-10  Jim Meyering  <jim@meyering.net>
35265
35266         * modules/inline: New file/module.
35267         * modules/xalloc (Files): Remove m4/inline.m4.
35268         (Depends-on): Add inline, instead.
35269         * modules/oset: Likewise.
35270         * modules/list: Likewise.
35271
35272 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
35273
35274         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
35275         Problem reported by Matthew Woehlke.
35276
35277 2006-11-09  Bruno Haible  <bruno@clisp.org>
35278
35279         * lib/tempname.c (gen_tempname): Remove variant that invokes
35280         __gen_tempname.
35281         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
35282         __gen_tempname.
35283
35284 2006-11-08  Bruno Haible  <bruno@clisp.org>
35285
35286         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
35287         to 'yes' instead of 'cross-compiling'.
35288
35289 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
35290
35291         * lib/quotearg.h (quotearg_free): New decl.
35292         * lib/quotearg.c (quotearg_free): New function.
35293         (slot0, nslots, slotvec0, slotvec):
35294         Now file-scope so that quotearg_free can get at them.
35295
35296 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35297
35298         Sync from Automake.
35299         * build-aux/gnupload: Add missing 'gnu' to example URL.
35300         Report by Karl Berry.
35301
35302 2006-11-08  Bruno Haible  <bruno@clisp.org>
35303
35304         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
35305         Suggested by Paul Eggert.
35306
35307 2006-11-08  Jim Meyering  <jim@meyering.net>
35308
35309         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
35310         It's already included if !_LIBC.
35311         (fts_safe_changedir): Add a comment.
35312
35313 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
35314
35315         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
35316         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
35317         Matthew Woehlke.
35318
35319         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
35320         definitions up, to avoid colliding with change below.
35321         (static_inline) [HAVE_INLINE]: New macro.
35322         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
35323         Provide extern decls when !HAVE_INLINE.  Do not define unless
35324         static_inline is defined, either by us or by xmalloc.c.  Use
35325         static_inline rather than static inline.
35326         (XCALLOC): Optimize sizeof(T) = 1 case.
35327         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
35328
35329 2006-11-07  Bruno Haible  <bruno@clisp.org>
35330
35331         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
35332         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
35333         AC_C_INLINE.
35334         * modules/xalloc (Files): Add m4/inline.m4.
35335
35336 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35337
35338         * README: Fix typo.
35339         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
35340         (Miscellanous Notes): ...from this.
35341
35342 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
35343
35344         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
35345         Mention that offsetof should be used instead of sizeof.
35346         From Bruno Haible.
35347
35348 2006-11-07  Bruno Haible  <bruno@clisp.org>
35349
35350         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
35351
35352 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
35353
35354         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
35355         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
35356         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
35357         (gl_tree_add_before, gl_tree_add_after):
35358         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
35359         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
35360         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
35361         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
35362         (gl_linked_add_after, gl_linked_add_at): Likewise.
35363         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
35364         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
35365         (gl_tree_add_before, gl_tree_add_after): Likewise.
35366         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
35367         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
35368         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
35369
35370 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35371
35372         * lib/gl_oset.h: Use C comment style, not C++ comment style.
35373
35374 2006-11-06  Bruno Haible  <bruno@clisp.org>
35375
35376         * m4/inline.m4: New file.
35377         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
35378         * modules/list (Files): Add m4/inline.m4.
35379         * modules/oset (Files): Likewise.
35380
35381 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
35382
35383         * lib/idcache.c: Include <stddef.h>, for offsetof.
35384         (struct userid.name): Change from char * to a flexible array member.
35385         All uses changed.
35386         * modules/idcache (Depends-on): Add flexmember.
35387
35388         * MODULES.html.sh (Core language properties): New module flexmember.
35389         * modules/flexmember, m4/flexmember.m4: New files.
35390
35391         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
35392         inline functions that are identical with the old xnmalloc_inline,
35393         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
35394         that we can avoid some unnecessary integer multiplications and
35395         divisions in the common case where the element size is known at
35396         compile time.
35397         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
35398         needed.
35399         (xnboundedmalloc): Remove.
35400         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
35401         arguments, for consistency with rest of this header.
35402         (xcharalloc): Rewrite using XNMALLOC.
35403         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
35404         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
35405         versions have been moved to lib/xalloc.h and renamed to be the
35406         non-*_inline versions.
35407         (xmalloc, xrealloc): Implement without reference to the xnmalloc
35408         and xnrealloc functions, since those functions are now inline and
35409         now call us.
35410         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
35411         renaming described above.
35412         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
35413         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
35414         captures the dependency in AC_C_INLINE.
35415
35416         New module canonicalize-lgpl, proposed by Charles Wilson in
35417         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
35418         with a few small changes afterwards.
35419         * MODULES.html.sh (File system functions): New module
35420         canonicalize-lgpl.
35421         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
35422         and canonicalize_file_name.
35423         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
35424         * modules/canonicalize-lgpl: New files.
35425
35426 2006-11-05  Bruno Haible  <bruno@clisp.org>
35427
35428         * gnulib-tool (func_import, func_create_testdir): Create directories
35429         also for files in subdirectories of lib/.
35430
35431 2006-11-05  Bruno Haible  <bruno@clisp.org>
35432
35433         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
35434         ANSI C compliant.
35435
35436 2006-11-03  Bruno Haible  <bruno@clisp.org>
35437
35438         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
35439         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
35440         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
35441         (xnboundedmalloc): New inline function.
35442         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
35443         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
35444         xmalloc.
35445         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
35446         xmalloc.
35447         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
35448         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
35449         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
35450         xmalloc.
35451         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
35452         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
35453         xmalloc.
35454         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
35455         gl_tree_add_after): Use XMALLOC instead of xmalloc.
35456         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
35457         xmalloc.
35458         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
35459         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
35460         gl_tree_add_after): Use XMALLOC instead of xmalloc.
35461         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
35462         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
35463         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
35464         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
35465
35466 2006-11-03  Bruno Haible  <bruno@clisp.org>
35467
35468         * lib/c-ctype.h [C++]: Define functions without name mangling.
35469         * lib/fwriteerror.h [C++]: Likewise.
35470         * lib/gcd.h [C++]: Likewise.
35471         * lib/linebreak.h [C++]: Likewise.
35472
35473 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
35474
35475         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
35476         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
35477         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
35478         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
35479         Check for functions and headers just once.
35480         Check for declaration of canonicalize_file_name.
35481         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
35482
35483 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
35484
35485         * gnulib-tool (func_import): Fix typo in actioncmd.
35486
35487 2006-11-02  Bruno Haible  <bruno@clisp.org>
35488
35489         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
35490         newline sequence in the Makefile.am snippet as a space, like "make"
35491         does.
35492         Reported by Roger Persson <perrog@gmail.com>.
35493
35494 2006-11-01  Bruno Haible  <bruno@clisp.org>
35495
35496         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
35497         already declared in <string.h>.
35498         * lib/strcase.h (strncasecmp): Don't declare it if yes.
35499
35500 2006-11-01  Bruno Haible  <bruno@clisp.org>
35501
35502         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
35503         * lib/strcase.h: Include <string.h>.
35504         (strcasecmp): Define to rpl_strcasecmp here.
35505
35506 2006-11-01  Bruno Haible  <bruno@clisp.org>
35507
35508         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
35509
35510 2006-11-01  Eric Blake  <ebb9@byu.net>
35511
35512         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
35513
35514         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
35515
35516 2006-10-29  Bruno Haible  <bruno@clisp.org>
35517
35518         Make it compile in C++ mode.
35519         * lib/full-write.c (full_rw): Add a cast.
35520
35521 2006-11-01  Bruno Haible  <bruno@clisp.org>
35522
35523         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
35524         be POSIX compliant.
35525         Reported by Roger Persson <perrog@gmail.com>.
35526
35527 2006-11-01  Eric Blake  <ebb9@byu.net>
35528
35529         * lib/getopt_.h: Fix comments.
35530
35531 2006-10-31  Eric Blake  <ebb9@byu.net>
35532
35533         * modules/tmpdir (Depends-on): Add sys_stat.
35534         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
35535         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
35536         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
35537         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
35538         tempname.
35539
35540 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
35541
35542         Avoid some C++ diagnostics reported by Bruno Haible.
35543         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
35544         xmalloc.
35545         (quotearg_alloc): Use xcharalloc rather than xmalloc.
35546         (struct slotvec): Move to top level.
35547         (quotearg_n_options): Rewrite to avoid xmalloc.
35548         * lib/xalloc.h (xcharalloc): New function.
35549         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
35550         [defined __cplusplus]: Add function template that provides result
35551         type propagation.  This part of the change is from Bruno Haible.
35552
35553 2006-10-29  Bruno Haible  <bruno@clisp.org>
35554
35555         Make it compile in C++ mode.
35556         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
35557         * lib/strnlen1.c (strnlen1): Cast memchr result.
35558         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
35559         * lib/clean-temp.c (string_equals, string_hash): Add casts.
35560         (create_temp_dir): Rename local variable 'template'.
35561         (compile_csharp_using_sscli): Add cast.
35562         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
35563         * lib/findprog.c (find_in_path): Likewise.
35564         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
35565         * lib/wait-process.c (register_slave_subprocess): Likewise.
35566
35567 2006-10-22  Bruno Haible  <bruno@clisp.org>
35568
35569         * modules/tsearch: New file.
35570         * lib/tsearch.h: New file.
35571         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
35572         * m4/tsearch.m4: New file.
35573         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
35574
35575 2006-10-29  Eric Blake  <ebb9@byu.net>
35576
35577         * lib/arcfour.c: Assume config.h.
35578         * lib/arctwo.c: Likewise.
35579         * lib/base64.c: Likewise.
35580         * lib/check-version.c: Likewise.
35581         * lib/crc.c: Likewise.
35582         * lib/des.c: Likewise.
35583         * lib/gc-gnulib.c: Likewise.
35584         * lib/gc-libgcrypt.c: Likewise.
35585         * lib/gc-pbkdf2-sha1.c: Likewise.
35586         * lib/getaddrinfo.c: Likewise.
35587         * lib/getdelim.c: Likewise.
35588         * lib/getline.c: Likewise.
35589         * lib/hmac-md5.c: Likewise.
35590         * lib/hmac-sha1.c: Likewise.
35591         * lib/iconvme.c: Likewise.
35592         * lib/md2.c: Likewise.
35593         * lib/md4.c: Likewise.
35594         * lib/memxor.c: Likewise.
35595         * lib/read-file.c: Likewise.
35596         * lib/readline.c: Likewise.
35597         * lib/rijndael-alg-fst.c: Likewise.
35598         * lib/rijndael-api-fst.c: Likewise.
35599         * lib/xgetdomainname.c: Likewise.
35600
35601 2006-10-28  Eric Blake  <ebb9@byu.net>
35602
35603         * lib/xstrndup.c: Assume config.h.
35604
35605 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
35606
35607         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
35608         stat-macros.h is now for our own macros, whereas stat_h is for
35609         macros in the <sys/stat.h> name space.
35610         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
35611         (STAT_MACROS_H): Remove.
35612         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
35613         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
35614         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
35615         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
35616         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
35617         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
35618         Move these macros to ...
35619         * lib/stat_.h: here.  Don't include stat-macros.h.
35620         * lib/canonicalize.c: Don't include stat-macros.h.
35621         * lib/chown.c: Likewise.
35622         * lib/euidaccess.c: Likewise.
35623         * lib/file-type.c: Likewise.
35624         * lib/filemode.c: Likewise.
35625         * lib/glob.c: Likewise.
35626         * lib/isapipe.c: Likewise.
35627         * lib/lchown.c: Likewise.
35628         * lib/lstat.c: Likewise.
35629         * lib/mkdir-p.c: Likewise.
35630         * lib/rmdir.c: Likewise.
35631         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
35632         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
35633         unless mkdir isn't declared, to speed up 'configure'.
35634         Always create sys/stat.h, since it's unlikely any real sys/stat.h
35635         would define all the S_* symbols.
35636         * modules/canonicalize (Depends-on):
35637         Depend on sys_stat, not stat-macros.
35638         * modules/chown: Likewise.
35639         * modules/euidaccess: Likewise.
35640         * modules/filemode: Likewise.
35641         * modules/file-type: Likewise.
35642         * modules/glob: Likewise.
35643         * modules/isapipe: Likewise.
35644         * modules/lchown: Likewise.
35645         * modules/lstat: Likewise.
35646         * modules/mkancesdirs: Likewise.
35647         * modules/rmdir: Likewise.
35648         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
35649         * modules/modechange: Likewise.
35650         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
35651         (configure.ac): Remove gl_STAT_MACROS.
35652         * modules/sys_stat (Depends-on): Remove stat-macros.
35653
35654 2006-10-27  Bruno Haible  <bruno@clisp.org>
35655
35656         * m4/signed.m4: Remove file.
35657         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
35658         invocation.
35659         * modules/vasnprintf (Files): Remove m4/signed.m4.
35660
35661 2006-10-27  Bruno Haible  <bruno@clisp.org>
35662
35663         Update to GNU gettext 0.16.
35664         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
35665         m4/inttypes-h.m4, m4/signed.m4.
35666         * m4/gettext.m4: Update to GNU gettext 0.16.
35667         * m4/intl.m4: New file, from GNU gettext.
35668         * m4/intldir.m4: New file, from GNU gettext.
35669         * config/srclist.txt: Update
35670
35671 2006-10-27  Eric Blake  <ebb9@byu.net>
35672
35673         * MODULES.html.sh: Document tempname.
35674         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
35675         dependencies.
35676         (Files): Move lib/tempname.c...
35677         * modules/tempname: ...to this new module.
35678         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
35679         (gl_PREREQ_TEMPNAME): Move...
35680         * m4/tempname.m4: ...to this new file.
35681         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
35682         * modules/sys_stat (Depends-on): Add stat-macros.
35683         * lib/stat_.h (includes): Pick up stat macros.
35684         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
35685         if stat macros are broken.
35686         * lib/tempname.c (includes): No need to include "stat-macros.h".
35687         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
35688         (direxists, __path_search) [!_LIBC]: Don't compile these in
35689         gnulib; the tmpdir module covers that.
35690         * lib/tempname.h: New file.
35691
35692 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
35693
35694         * COPYING: Explain how gnulib-tool converts licence headers.
35695         Almost all wording by Eric Blake.
35696
35697 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
35698
35699         * lib/mbchar.h (is_basic_table): Make read-only.
35700         * lib/mbchar.c (is_basic_table): Likewise.
35701         Reported by John Darrington.
35702
35703 2006-10-25  Bruno Haible  <bruno@clisp.org>
35704
35705         * lib/progname.h (set_program_name): Undefine before defining.
35706
35707 2006-10-25  Bruno Haible  <bruno@clisp.org>
35708
35709         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
35710         false for non-gcc C++ compilers.
35711         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35712
35713 2006-10-24  Bruno Haible  <bruno@clisp.org>
35714
35715         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
35716         iconv implementations like Irix iconv.
35717
35718 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
35719
35720         * modules/vararrays: New file.
35721         * m4/vararrays.m4: New file, taken from diffutils.
35722         * MODULES.html.sh: New module vararrays.
35723
35724 2006-10-24  Karl Berry  <karl@gnu.org>
35725
35726         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
35727         Don't call GNU Unix.
35728
35729 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35730
35731         * users.txt: Add Libtool.
35732
35733         Sync from Libtool:
35734
35735         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
35736
35737         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
35738         to gnulib's policy of including config.h unconditionally.
35739
35740 2006-10-24  Bruno Haible  <bruno@clisp.org>
35741
35742         * modules/wcwidth (Files): Add m4/wint_t.m4.
35743         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
35744         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
35745
35746 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
35747
35748         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
35749         to pacify GCC with some -W flags enabled.  Problem reported by
35750         Bruno Haible.
35751
35752 2006-10-24  Jim Meyering  <jim@meyering.net>
35753
35754         * MODULES.html.sh: Remove uinttostr.  It's not a module.
35755         Reported by Karl Berry.
35756
35757 2006-10-23  Bruno Haible  <bruno@clisp.org>
35758
35759         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
35760
35761 2006-10-24  Bruno Haible  <bruno@clisp.org>
35762
35763         * lib/gl_list.h: Use C comment style, not C++ comment style.
35764
35765 2006-10-23  Eric Blake  <ebb9@byu.net>
35766
35767         * lib/getaddrinfo.c (includes): Add missing include.
35768
35769 2006-10-23  Bruno Haible  <bruno@clisp.org>
35770             Paul Eggert  <eggert@cs.ucla.edu>
35771
35772         Ability to rename obstack_free.
35773         * lib/obstack.h (__obstack_free): New macro. Declare instead of
35774         obstack_free.
35775         (obstack_free): Invoke the __obstack_free macro.
35776         * lib/obstack.c (obstack_free): Use __obstack_free macro.
35777
35778 2006-10-23  Bruno Haible  <bruno@clisp.org>
35779             Paul Eggert  <eggert@cs.ucla.edu>
35780
35781         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
35782         __argc, __argv from the declaration. (They are defined as macros on
35783         mingw.)
35784
35785 2006-10-22  Bruno Haible  <bruno@clisp.org>
35786
35787         * doc/gnulib-intro.texi: New file.
35788         * doc/gnulib.texi: Include it.
35789
35790 2006-10-21  Bruno Haible  <bruno@clisp.org>
35791
35792         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
35793         "Introduction", "Miscellanous Notes", "Particular Modules".
35794
35795 2006-10-21  Bruno Haible  <bruno@clisp.org>
35796
35797         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35798         Change mostlyclean-local rule to avoid sh syntax error from bash
35799         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
35800
35801 2006-10-23  Jim Meyering  <jim@meyering.net>
35802
35803         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
35804         in place of snprintf.
35805
35806         * modules/inttostr (Files): Add lib/uinttostr.c.
35807         * lib/uinttostr.c (inttostr): New file/function.
35808         * lib/inttostr.h (uinttostr): Declare.
35809         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
35810         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
35811         Add uinttostr.
35812         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
35813
35814 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
35815
35816         * lib/canonicalize.c (ELOOP): Define if not already defined.
35817         Problem reported by Bruno Haible in
35818         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
35819
35820 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
35821
35822         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
35823         Problem reported by Perry Smith and Ville Laurikari.
35824
35825         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
35826         uses.
35827
35828 2006-10-19  Bruno Haible  <bruno@clisp.org>
35829
35830         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
35831         for mingw.
35832
35833 2006-10-19  Bruno Haible  <bruno@clisp.org>
35834
35835         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
35836         Needed for mingw.
35837
35838 2006-10-19  Bruno Haible  <bruno@clisp.org>
35839
35840         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
35841
35842 2006-10-19  Bruno Haible  <bruno@clisp.org>
35843
35844         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
35845         it.
35846
35847 2006-10-19  Bruno Haible  <bruno@clisp.org>
35848
35849         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
35850         invocation.
35851
35852 2006-10-19  Bruno Haible  <bruno@clisp.org>
35853
35854         * gnulib-tool (func_create_testdir): Don't include ftruncate and
35855         mountlist by default.
35856
35857 2006-10-16  Bruno Haible  <bruno@clisp.org>
35858
35859         * lib/c-strstr.c: Include c-strstr.h.
35860
35861 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
35862
35863         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
35864         in a slash.
35865
35866 2006-10-18  Bruno Haible  <bruno@clisp.org>
35867
35868         * lib/lock.h [C++]: Wrap definitions in extern "C".
35869
35870 2006-10-18  Bruno Haible  <bruno@clisp.org>
35871
35872         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
35873         gl_LIBOBJS list.
35874
35875 2006-10-18  Bruno Haible  <bruno@clisp.org>
35876
35877         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
35878
35879 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
35880
35881         * lib/xstrtol.h: Include gettext.h.
35882         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
35883         Problem reported by Eric Blake.
35884         * modules/xstrtol (Depends-on): Add gettext-h.
35885
35886 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
35887
35888         * lib/strftime.c (advance): New macro.
35889         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
35890         incomplete type, so you can't add 0 to it.  Problem and patch
35891         reported by Eelco Dolstra for dietlibc.
35892
35893 2006-10-18  Jim Meyering  <jim@meyering.net>
35894
35895         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
35896         type for a local, and rename it: s/up/user_proc/.
35897
35898 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
35899
35900         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
35901         READ_UTMP_USER_PROCESS.
35902         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
35903
35904 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
35905
35906         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
35907         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
35908
35909 2006-10-17  Eric Blake  <ebb9@byu.net>
35910
35911         * lib/sigprocmask.c (sigprocmask): Fix typo.
35912
35913         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
35914
35915         * modules/clean-temp (Makefile.am): Don't add to make output...
35916         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
35917         config.h.
35918
35919 2006-10-17  Bruno Haible  <bruno@clisp.org>
35920
35921         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
35922         differently if DEFAULT_TEXT_DOMAIN is set.
35923
35924 2006-10-16  Bruno Haible  <bruno@clisp.org>
35925
35926         * lib/clean-temp.c: Include fwriteerror.h.
35927
35928 2006-10-16  Bruno Haible  <bruno@clisp.org>
35929
35930         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
35931
35932 2006-10-16  Bruno Haible  <bruno@clisp.org>
35933
35934         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
35935         * lib/sigprocmask.h: Include <sys/types.h>.
35936         (sigset_t): Use the system's definition if present.
35937
35938 2006-10-17  Eric Blake  <ebb9@byu.net>
35939
35940         * lib/xvasprintf.c (includes): Assume config.h.
35941         * lib/xasprintf.c (includes): Likewise.
35942
35943 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35944
35945         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
35946         at least as wide as intmax_t.
35947
35948 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
35949
35950         (Imported from Automake.)
35951         * build-aux/gnupload: Update to version 1.1 of directive file.
35952
35953 2006-10-16  Eric Blake  <ebb9@byu.net>
35954
35955         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
35956         match Automake 1.10a.
35957
35958 2006-10-14  Bruno Haible  <bruno@clisp.org>
35959
35960         * modules/sigprocmask: New file.
35961         * lib/sigprocmask.h: New file.
35962         * lib/sigprocmask.c: New file.
35963         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
35964         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
35965         request sigprocmask.o.
35966         (gl_PREREQ_SIGPROCMASK): New macro.
35967         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
35968         (Depends-on): Add sigprocmask.
35969         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
35970         gt_SIGNALBLOCKING. Test for 'raise' only once.
35971         * lib/fatal-signal.c: Include sigprocmask.h.
35972         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
35973         unblock_fatal_signals): Define always.
35974         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35975         sigprocmask.
35976
35977 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
35978
35979         Sync from Automake.
35980         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
35981         which incorrectly sets the mode of an existing destination
35982         directory.  In some cases the unpatched install-sh could do the
35983         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
35984         system.  We hope this is rare in practice, but it's clearly worth
35985         fixing.  Problem reported by Alex Unleashed in
35986         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
35987         Also, don't bother to check for -m bugs unless we're using -m;
35988         suggested by Stepan Kasal.
35989
35990 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35991
35992         Sync from Automake.
35993         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
35994         `-c' flag, so they appear at the same position as in %FASTDEP%
35995         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
35996         which ignores unknown options only after the first non-option.
35997         Bug report against M4 by Nelson H. F. Beebe.
35998
35999 2006-10-13  Jim Meyering  <jim@meyering.net>
36000
36001         Fix a bug in yesterday's change.
36002         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
36003         p->fts_statp->st_dev would be used uninitialized.
36004         Ensures that we always call fts_stat on the very first entry.
36005         Miklos Szeredi reported that find -xdev stopped working.
36006
36007 2006-10-12  Bruno Haible  <bruno@clisp.org>
36008
36009         * gnulib-tool (func_get_automake_snippet): Append an automatically
36010         computed EXTRA_DIST augmentation.
36011         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
36012         * modules/alloca-opt (Makefile.am): Likewise.
36013         * modules/allocsa (Makefile.am): Likewise.
36014         * modules/arcfour (Makefile.am): Likewise.
36015         * modules/arctwo (Makefile.am): Likewise.
36016         * modules/argmatch (Makefile.am): Likewise.
36017         * modules/argz (Makefile.am): Likewise.
36018         * modules/atexit (Makefile.am): Likewise.
36019         * modules/backupfile (Makefile.am): Likewise.
36020         * modules/byteswap (Makefile.am): Likewise.
36021         * modules/c-strtod (Makefile.am): Likewise.
36022         * modules/c-strtold (Makefile.am): Likewise.
36023         * modules/calloc (Makefile.am): Likewise.
36024         * modules/canon-host (Makefile.am): Likewise.
36025         * modules/canonicalize (Makefile.am): Likewise.
36026         * modules/chdir-long (Makefile.am): Likewise.
36027         * modules/chdir-safer (Makefile.am): Likewise.
36028         * modules/check-version (Makefile.am): Likewise.
36029         * modules/chown (Makefile.am): Likewise.
36030         * modules/cloexec (Makefile.am): Likewise.
36031         * modules/close-stream (Makefile.am): Likewise.
36032         * modules/closeout (Makefile.am): Likewise.
36033         * modules/crc (Makefile.am): Likewise.
36034         * modules/csharpexec (Makefile.am): Likewise.
36035         * modules/cycle-check (Makefile.am): Likewise.
36036         * modules/des (Makefile.am): Likewise.
36037         * modules/dev-ino (Makefile.am): Likewise.
36038         * modules/dirfd (Makefile.am): Likewise.
36039         * modules/dirname (Makefile.am): Likewise.
36040         * modules/dup2 (Makefile.am): Likewise.
36041         * modules/eealloc (Makefile.am): Likewise.
36042         * modules/error (Makefile.am): Likewise.
36043         * modules/euidaccess (Makefile.am): Likewise.
36044         * modules/exclude (Makefile.am): Likewise.
36045         * modules/exitfail (Makefile.am): Likewise.
36046         * modules/fcntl-safer (Makefile.am): Likewise.
36047         * modules/fcntl (Makefile.am): Likewise.
36048         * modules/file-type (Makefile.am): Likewise.
36049         * modules/fileblocks (Makefile.am): Likewise.
36050         * modules/filemode (Makefile.am): Likewise.
36051         * modules/filenamecat (Makefile.am): Likewise.
36052         * modules/fnmatch (Makefile.am): Likewise.
36053         * modules/fopen-safer (Makefile.am): Likewise.
36054         * modules/fpending (Makefile.am): Likewise.
36055         * modules/fprintftime (Makefile.am): Likewise.
36056         * modules/free (Makefile.am): Likewise.
36057         * modules/fsusage (Makefile.am): Likewise.
36058         * modules/ftruncate (Makefile.am): Likewise.
36059         * modules/fts (Makefile.am): Likewise.
36060         * modules/gc-arcfour (Makefile.am): Likewise.
36061         * modules/gc-des (Makefile.am): Likewise.
36062         * modules/gc-hmac-md5 (Makefile.am): Likewise.
36063         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
36064         * modules/gc-md4 (Makefile.am): Likewise.
36065         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
36066         * modules/gc-sha1 (Makefile.am): Likewise.
36067         * modules/gc (Makefile.am): Likewise.
36068         * modules/getaddrinfo (Makefile.am): Likewise.
36069         * modules/getcwd (Makefile.am): Likewise.
36070         * modules/getdelim (Makefile.am): Likewise.
36071         * modules/getdomainname (Makefile.am): Likewise.
36072         * modules/getgroups (Makefile.am): Likewise.
36073         * modules/gethostname (Makefile.am): Likewise.
36074         * modules/gethrxtime (Makefile.am): Likewise.
36075         * modules/getline (Makefile.am): Likewise.
36076         * modules/getloadavg (Makefile.am): Likewise.
36077         * modules/getlogin_r (Makefile.am): Likewise.
36078         * modules/getndelim2 (Makefile.am): Likewise.
36079         * modules/getopt (Makefile.am): Likewise.
36080         * modules/getpagesize (Makefile.am): Likewise.
36081         * modules/getpass-gnu (Makefile.am): Likewise.
36082         * modules/getpass (Makefile.am): Likewise.
36083         * modules/getsubopt (Makefile.am): Likewise.
36084         * modules/gettime (Makefile.am): Likewise.
36085         * modules/gettimeofday (Makefile.am): Likewise.
36086         * modules/getugroups (Makefile.am): Likewise.
36087         * modules/getusershell (Makefile.am): Likewise.
36088         * modules/glob (Makefile.am): Likewise.
36089         * modules/group-member (Makefile.am): Likewise.
36090         * modules/hard-locale (Makefile.am): Likewise.
36091         * modules/hash (Makefile.am): Likewise.
36092         * modules/hmac-md5 (Makefile.am): Likewise.
36093         * modules/hmac-sha1 (Makefile.am): Likewise.
36094         * modules/human (Makefile.am): Likewise.
36095         * modules/idcache (Makefile.am): Likewise.
36096         * modules/imaxabs (Makefile.am): Likewise.
36097         * modules/imaxdiv (Makefile.am): Likewise.
36098         * modules/inet_ntop (Makefile.am): Likewise.
36099         * modules/inet_pton (Makefile.am): Likewise.
36100         * modules/intprops (Makefile.am): Likewise.
36101         * modules/inttostr (Makefile.am): Likewise.
36102         * modules/inttypes (Makefile.am): Likewise.
36103         * modules/isapipe (Makefile.am): Likewise.
36104         * modules/javaversion (Makefile.am): Likewise.
36105         * modules/lchmod (Makefile.am): Likewise.
36106         * modules/lchown (Makefile.am): Likewise.
36107         * modules/localcharset (Makefile.am): Likewise.
36108         * modules/long-options (Makefile.am): Likewise.
36109         * modules/lstat (Makefile.am): Likewise.
36110         * modules/malloc (Makefile.am): Likewise.
36111         * modules/mathl (Makefile.am): Likewise.
36112         * modules/mbchar (Makefile.am): Likewise.
36113         * modules/md2 (Makefile.am): Likewise.
36114         * modules/md4 (Makefile.am): Likewise.
36115         * modules/md5 (Makefile.am): Likewise.
36116         * modules/memcasecmp (Makefile.am): Likewise.
36117         * modules/memchr (Makefile.am): Likewise.
36118         * modules/memcmp (Makefile.am): Likewise.
36119         * modules/memcoll (Makefile.am): Likewise.
36120         * modules/memcpy (Makefile.am): Likewise.
36121         * modules/memmem (Makefile.am): Likewise.
36122         * modules/memmove (Makefile.am): Likewise.
36123         * modules/mempcpy (Makefile.am): Likewise.
36124         * modules/memrchr (Makefile.am): Likewise.
36125         * modules/memset (Makefile.am): Likewise.
36126         * modules/memxor (Makefile.am): Likewise.
36127         * modules/mkancesdirs (Makefile.am): Likewise.
36128         * modules/mkdir-p (Makefile.am): Likewise.
36129         * modules/mkdir (Makefile.am): Likewise.
36130         * modules/mkdtemp (Makefile.am): Likewise.
36131         * modules/mkstemp (Makefile.am): Likewise.
36132         * modules/mktime (Makefile.am): Likewise.
36133         * modules/modechange (Makefile.am): Likewise.
36134         * modules/mountlist (Makefile.am): Likewise.
36135         * modules/nanosleep (Makefile.am): Likewise.
36136         * modules/obstack (Makefile.am): Likewise.
36137         * modules/openat (Makefile.am): Likewise.
36138         * modules/pagealign_alloc (Makefile.am): Likewise.
36139         * modules/pathmax (Makefile.am): Likewise.
36140         * modules/physmem (Makefile.am): Likewise.
36141         * modules/poll (Makefile.am): Likewise.
36142         * modules/posixtm (Makefile.am): Likewise.
36143         * modules/posixver (Makefile.am): Likewise.
36144         * modules/putenv (Makefile.am): Likewise.
36145         * modules/quote (Makefile.am): Likewise.
36146         * modules/quotearg (Makefile.am): Likewise.
36147         * modules/raise (Makefile.am): Likewise.
36148         * modules/read-file (Makefile.am): Likewise.
36149         * modules/readline (Makefile.am): Likewise.
36150         * modules/readlink (Makefile.am): Likewise.
36151         * modules/readtokens (Makefile.am): Likewise.
36152         * modules/readutmp (Makefile.am): Likewise.
36153         * modules/realloc (Makefile.am): Likewise.
36154         * modules/regex (Makefile.am): Likewise.
36155         * modules/rename-dest-slash (Makefile.am): Likewise.
36156         * modules/rename (Makefile.am): Likewise.
36157         * modules/rijndael (Makefile.am): Likewise.
36158         * modules/rmdir (Makefile.am): Likewise.
36159         * modules/rpmatch (Makefile.am): Likewise.
36160         * modules/safe-read (Makefile.am): Likewise.
36161         * modules/safe-write (Makefile.am): Likewise.
36162         * modules/same-inode (Makefile.am): Likewise.
36163         * modules/same (Makefile.am): Likewise.
36164         * modules/save-cwd (Makefile.am): Likewise.
36165         * modules/savedir (Makefile.am): Likewise.
36166         * modules/setenv (Makefile.am): Likewise.
36167         * modules/settime (Makefile.am): Likewise.
36168         * modules/sha1 (Makefile.am): Likewise.
36169         * modules/sig2str (Makefile.am): Likewise.
36170         * modules/snprintf (Makefile.am): Likewise.
36171         * modules/stat-macros (Makefile.am): Likewise.
36172         * modules/stat-time (Makefile.am): Likewise.
36173         * modules/stdbool (Makefile.am): Likewise.
36174         * modules/stdint (Makefile.am): Likewise.
36175         * modules/stdlib-safer (Makefile.am): Likewise.
36176         * modules/stpcpy (Makefile.am): Likewise.
36177         * modules/stpncpy (Makefile.am): Likewise.
36178         * modules/strcase (Makefile.am): Likewise.
36179         * modules/strcasestr (Makefile.am): Likewise.
36180         * modules/strchrnul (Makefile.am): Likewise.
36181         * modules/strcspn (Makefile.am): Likewise.
36182         * modules/strdup (Makefile.am): Likewise.
36183         * modules/strerror (Makefile.am): Likewise.
36184         * modules/strftime (Makefile.am): Likewise.
36185         * modules/strndup (Makefile.am): Likewise.
36186         * modules/strnlen (Makefile.am): Likewise.
36187         * modules/strpbrk (Makefile.am): Likewise.
36188         * modules/strsep (Makefile.am): Likewise.
36189         * modules/strstr (Makefile.am): Likewise.
36190         * modules/strtod (Makefile.am): Likewise.
36191         * modules/strtoimax (Makefile.am): Likewise.
36192         * modules/strtok_r (Makefile.am): Likewise.
36193         * modules/strtol (Makefile.am): Likewise.
36194         * modules/strtoll (Makefile.am): Likewise.
36195         * modules/strtoul (Makefile.am): Likewise.
36196         * modules/strtoull (Makefile.am): Likewise.
36197         * modules/strtoumax (Makefile.am): Likewise.
36198         * modules/strverscmp (Makefile.am): Likewise.
36199         * modules/sys_socket (Makefile.am): Likewise.
36200         * modules/sys_stat (Makefile.am): Likewise.
36201         * modules/sysexits (Makefile.am): Likewise.
36202         * modules/time_r (Makefile.am): Likewise.
36203         * modules/timegm (Makefile.am): Likewise.
36204         * modules/timespec (Makefile.am): Likewise.
36205         * modules/tmpfile-safer (Makefile.am): Likewise.
36206         * modules/trim (Makefile.am): Likewise.
36207         * modules/unistd-safer (Makefile.am): Likewise.
36208         * modules/unlinkdir (Makefile.am): Likewise.
36209         * modules/unlocked-io (Makefile.am): Likewise.
36210         * modules/userspec (Makefile.am): Likewise.
36211         * modules/utime (Makefile.am): Likewise.
36212         * modules/utimecmp (Makefile.am): Likewise.
36213         * modules/utimens (Makefile.am): Likewise.
36214         * modules/vasnprintf (Makefile.am): Likewise.
36215         * modules/vasprintf (Makefile.am): Likewise.
36216         * modules/vsnprintf (Makefile.am): Likewise.
36217         * modules/xalloc (Makefile.am): Likewise.
36218         * modules/xgetcwd (Makefile.am): Likewise.
36219         * modules/xnanosleep (Makefile.am): Likewise.
36220         * modules/xreadlink (Makefile.am): Likewise.
36221         * modules/xstrtod (Makefile.am): Likewise.
36222         * modules/xstrtol (Makefile.am): Likewise.
36223         * modules/xstrtold (Makefile.am): Likewise.
36224         * modules/yesno (Makefile.am): Likewise.
36225         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
36226
36227 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
36228
36229         * modules/error (Makefile.am): Distribute files through
36230         EXTRA_DIST, not lib_SOURCES.
36231
36232 2006-10-12  Eric Blake  <ebb9@byu.net>
36233
36234         * modules/error (Makefile.am): Distribute files in /lib.
36235         * modules/obstack (Makefile.am): Likewise.
36236
36237 2006-10-12  Bruno Haible  <bruno@clisp.org>
36238
36239         * modules/acl (Makefile.am): Distribute all files in lib/ through
36240         EXTRA_DIST.
36241         * modules/arcfour (Makefile.am): Likewise.
36242         * modules/arctwo (Makefile.am): Likewise.
36243         * modules/argmatch (Makefile.am): Likewise.
36244         * modules/argz (Makefile.am): Likewise.
36245         * modules/atexit (Makefile.am): Likewise.
36246         * modules/backupfile (Makefile.am): Likewise.
36247         * modules/c-strtod (Makefile.am): Likewise.
36248         * modules/c-strtold (Makefile.am): Likewise.
36249         * modules/calloc (Makefile.am): Likewise.
36250         * modules/canon-host (Makefile.am): Likewise.
36251         * modules/canonicalize (Makefile.am): Likewise.
36252         * modules/chdir-long (Makefile.am): Likewise.
36253         * modules/chdir-safer (Makefile.am): Likewise.
36254         * modules/check-version (Makefile.am): Likewise.
36255         * modules/chown (Makefile.am): Likewise.
36256         * modules/cloexec (Makefile.am): Likewise.
36257         * modules/close-stream (Makefile.am): Likewise.
36258         * modules/closeout (Makefile.am): Likewise.
36259         * modules/crc (Makefile.am): Likewise.
36260         * modules/cycle-check (Makefile.am): Likewise.
36261         * modules/des (Makefile.am): Likewise.
36262         * modules/dirfd (Makefile.am): Likewise.
36263         * modules/dirname (Makefile.am): Likewise.
36264         * modules/dup2 (Makefile.am): Likewise.
36265         * modules/euidaccess (Makefile.am): Likewise.
36266         * modules/exclude (Makefile.am): Likewise.
36267         * modules/exitfail (Makefile.am): Likewise.
36268         * modules/fcntl-safer (Makefile.am): Likewise.
36269         * modules/file-type (Makefile.am): Likewise.
36270         * modules/fileblocks (Makefile.am): Likewise.
36271         * modules/filemode (Makefile.am): Likewise.
36272         * modules/filenamecat (Makefile.am): Likewise.
36273         * modules/fnmatch (Makefile.am): Likewise.
36274         * modules/fopen-safer (Makefile.am): Likewise.
36275         * modules/fpending (Makefile.am): Likewise.
36276         * modules/fprintftime (Makefile.am): Likewise.
36277         * modules/free (Makefile.am): Likewise.
36278         * modules/fsusage (Makefile.am): Likewise.
36279         * modules/ftruncate (Makefile.am): Likewise.
36280         * modules/fts (Makefile.am): Likewise.
36281         * modules/gc (Makefile.am): Likewise.
36282         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
36283         * modules/getaddrinfo (Makefile.am): Likewise.
36284         * modules/getcwd (Makefile.am): Likewise.
36285         * modules/getdelim (Makefile.am): Likewise.
36286         * modules/getdomainname (Makefile.am): Likewise.
36287         * modules/getgroups (Makefile.am): Likewise.
36288         * modules/gethostname (Makefile.am): Likewise.
36289         * modules/gethrxtime (Makefile.am): Likewise.
36290         * modules/getline (Makefile.am): Likewise.
36291         * modules/getloadavg (Makefile.am): Likewise.
36292         * modules/getlogin_r (Makefile.am): Likewise.
36293         * modules/getopt (Makefile.am): Likewise.
36294         * modules/getpass (Makefile.am): Likewise.
36295         * modules/getpass-gnu (Makefile.am): Likewise.
36296         * modules/getsubopt (Makefile.am): Likewise.
36297         * modules/gettime (Makefile.am): Likewise.
36298         * modules/gettimeofday (Makefile.am): Likewise.
36299         * modules/getugroups (Makefile.am): Likewise.
36300         * modules/getusershell (Makefile.am): Likewise.
36301         * modules/glob (Makefile.am): Likewise.
36302         * modules/group-member (Makefile.am): Likewise.
36303         * modules/hard-locale (Makefile.am): Likewise.
36304         * modules/hash (Makefile.am): Likewise.
36305         * modules/hmac-md5 (Makefile.am): Likewise.
36306         * modules/hmac-sha1 (Makefile.am): Likewise.
36307         * modules/human (Makefile.am): Likewise.
36308         * modules/idcache (Makefile.am): Likewise.
36309         * modules/imaxabs (Makefile.am): Likewise.
36310         * modules/imaxdiv (Makefile.am): Likewise.
36311         * modules/inet_ntop (Makefile.am): Likewise.
36312         * modules/inet_pton (Makefile.am): Likewise.
36313         * modules/inttostr (Makefile.am): Likewise.
36314         * modules/isapipe (Makefile.am): Likewise.
36315         * modules/lchown (Makefile.am): Likewise.
36316         * modules/long-options (Makefile.am): Likewise.
36317         * modules/lstat (Makefile.am): Likewise.
36318         * modules/malloc (Makefile.am): Likewise.
36319         * modules/mathl (Makefile.am): Likewise.
36320         * modules/mbchar (Makefile.am): Likewise.
36321         * modules/md2 (Makefile.am): Likewise.
36322         * modules/md4 (Makefile.am): Likewise.
36323         * modules/md5 (Makefile.am): Likewise.
36324         * modules/memcasecmp (Makefile.am): Likewise.
36325         * modules/memchr (Makefile.am): Likewise.
36326         * modules/memcmp (Makefile.am): Likewise.
36327         * modules/memcoll (Makefile.am): Likewise.
36328         * modules/memcpy (Makefile.am): Likewise.
36329         * modules/memmem (Makefile.am): Likewise.
36330         * modules/memmove (Makefile.am): Likewise.
36331         * modules/mempcpy (Makefile.am): Likewise.
36332         * modules/memrchr (Makefile.am): Likewise.
36333         * modules/memset (Makefile.am): Likewise.
36334         * modules/memxor (Makefile.am): Likewise.
36335         * modules/mkancesdirs (Makefile.am): Likewise.
36336         * modules/mkdir (Makefile.am): Likewise.
36337         * modules/mkdir-p (Makefile.am): Likewise.
36338         * modules/mkdtemp (Makefile.am): Likewise.
36339         * modules/mkstemp (Makefile.am): Likewise.
36340         * modules/mktime (Makefile.am): Likewise.
36341         * modules/modechange (Makefile.am): Likewise.
36342         * modules/mountlist (Makefile.am): Likewise.
36343         * modules/nanosleep (Makefile.am): Likewise.
36344         * modules/openat (Makefile.am): Likewise.
36345         * modules/pagealign_alloc (Makefile.am): Likewise.
36346         * modules/physmem (Makefile.am): Likewise.
36347         * modules/poll (Makefile.am): Likewise.
36348         * modules/posixtm (Makefile.am): Likewise.
36349         * modules/posixver (Makefile.am): Likewise.
36350         * modules/putenv (Makefile.am): Likewise.
36351         * modules/quote (Makefile.am): Likewise.
36352         * modules/quotearg (Makefile.am): Likewise.
36353         * modules/raise (Makefile.am): Likewise.
36354         * modules/read-file (Makefile.am): Likewise.
36355         * modules/readline (Makefile.am): Likewise.
36356         * modules/readlink (Makefile.am): Likewise.
36357         * modules/readtokens (Makefile.am): Likewise.
36358         * modules/readutmp (Makefile.am): Likewise.
36359         * modules/realloc (Makefile.am): Likewise.
36360         * modules/regex (Makefile.am): Likewise.
36361         * modules/rename (Makefile.am): Likewise.
36362         * modules/rename-dest-slash (Makefile.am): Likewise.
36363         * modules/rijndael (Makefile.am): Likewise.
36364         * modules/rmdir (Makefile.am): Likewise.
36365         * modules/rpmatch (Makefile.am): Likewise.
36366         * modules/safe-read (Makefile.am): Likewise.
36367         * modules/safe-write (Makefile.am): Likewise.
36368         * modules/same (Makefile.am): Likewise.
36369         * modules/save-cwd (Makefile.am): Likewise.
36370         * modules/savedir (Makefile.am): Likewise.
36371         * modules/setenv (Makefile.am): Likewise.
36372         * modules/settime (Makefile.am): Likewise.
36373         * modules/sha1 (Makefile.am): Likewise.
36374         * modules/sig2str (Makefile.am): Likewise.
36375         * modules/snprintf (Makefile.am): Likewise.
36376         * modules/stdlib-safer (Makefile.am): Likewise.
36377         * modules/stpcpy (Makefile.am): Likewise.
36378         * modules/stpncpy (Makefile.am): Likewise.
36379         * modules/strcase (Makefile.am): Likewise.
36380         * modules/strcasestr (Makefile.am): Likewise.
36381         * modules/strchrnul (Makefile.am): Likewise.
36382         * modules/strcspn (Makefile.am): Likewise.
36383         * modules/strdup (Makefile.am): Likewise.
36384         * modules/strerror (Makefile.am): Likewise.
36385         * modules/strftime (Makefile.am): Likewise.
36386         * modules/strndup (Makefile.am): Likewise.
36387         * modules/strnlen (Makefile.am): Likewise.
36388         * modules/strpbrk (Makefile.am): Likewise.
36389         * modules/strsep (Makefile.am): Likewise.
36390         * modules/strstr (Makefile.am): Likewise.
36391         * modules/strtod (Makefile.am): Likewise.
36392         * modules/strtoimax (Makefile.am): Likewise.
36393         * modules/strtok_r (Makefile.am): Likewise.
36394         * modules/strtol (Makefile.am): Likewise.
36395         * modules/strtoll (Makefile.am): Likewise.
36396         * modules/strtoul (Makefile.am): Likewise.
36397         * modules/strtoull (Makefile.am): Likewise.
36398         * modules/strtoumax (Makefile.am): Likewise.
36399         * modules/strverscmp (Makefile.am): Likewise.
36400         * modules/time_r (Makefile.am): Likewise.
36401         * modules/timegm (Makefile.am): Likewise.
36402         * modules/tmpfile-safer (Makefile.am): Likewise.
36403         * modules/unistd-safer (Makefile.am): Likewise.
36404         * modules/unlinkdir (Makefile.am): Likewise.
36405         * modules/userspec (Makefile.am): Likewise.
36406         * modules/utime (Makefile.am): Likewise.
36407         * modules/utimecmp (Makefile.am): Likewise.
36408         * modules/utimens (Makefile.am): Likewise.
36409         * modules/vasnprintf (Makefile.am): Likewise.
36410         * modules/vasprintf (Makefile.am): Likewise.
36411         * modules/vsnprintf (Makefile.am): Likewise.
36412         * modules/xalloc (Makefile.am): Likewise.
36413         * modules/xgetcwd (Makefile.am): Likewise.
36414         * modules/xnanosleep (Makefile.am): Likewise.
36415         * modules/xreadlink (Makefile.am): Likewise.
36416         * modules/xstrtod (Makefile.am): Likewise.
36417         * modules/xstrtol (Makefile.am): Likewise.
36418         * modules/xstrtold (Makefile.am): Likewise.
36419         * modules/yesno (Makefile.am): Likewise.
36420
36421 2006-10-12  Jim Meyering  <jim@meyering.net>
36422
36423         * m4/getloadavg.m4: Revert the change below.
36424
36425         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
36426         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
36427         fail with a symlink, which is what coreutils' ./bootstrap now
36428         creates by default.
36429
36430 2006-10-12  Bruno Haible  <bruno@clisp.org>
36431
36432         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
36433         mingw.
36434         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
36435         MSVC and mingw explicitly.
36436
36437 2006-10-11  Simon Josefsson  <jas@extundo.com>
36438             Bruno Haible  <bruno@clisp.org>
36439
36440         Add support for multiple gnulib-tool invocations in the scope of a
36441         single configure.ac file.
36442         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
36443         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
36444         with the same contents as the _LIBADD variable.
36445         (func_emit_initmacro_start, func_emit_initmacro_end,
36446         func_emit_initmacro_done): New functions.
36447         (func_import, func_create_testdir): Invoke them. Allow the identifiers
36448         gl_LIBOBJS and gl_LTLIBOBJS.
36449
36450 2006-10-11  Bruno Haible  <bruno@clisp.org>
36451
36452         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
36453         (func_create_testdir): Don't create po/Makefile.am, don't invoke
36454         autoreconf. Instead, invoke autopoint explicitly but move back the
36455         *.m4 files from gnulib.
36456
36457 2006-10-11  Bruno Haible  <bruno@clisp.org>
36458
36459         * gnulib-tool (func_usage): Make module names after --create-testdir
36460         optional.
36461         (func_create_testdir): If no module was specified, use nearly all
36462         modules.
36463
36464 2006-10-12  Jim Meyering  <jim@meyering.net>
36465
36466         Big performance improvement for fts-based tools that use FTS_NOSTAT.
36467         Avoid spurious inode-mismatch problems on non-POSIX file systems.
36468         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
36469         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
36470         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
36471         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
36472         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
36473         (fts_set_stat_required): New function.
36474         (fts_open): Defer the calls to fts_stat, if possible or requested.
36475         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
36476         into fts_stat itself.
36477         (fts_read): Perform any required (deferred) fts_stat call.
36478         (fts_build): Likewise, for the directory we're about to open and read.
36479         In the readdir loop, carefully decide whether each entry will require
36480         an eventual call to fts_stat, using dirent.d_type info if available.
36481         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
36482         a command line argument into this function.  Update all callers.
36483         Map a return value of FTS_DOT to FTS_D for a command line argument.
36484         * modules/fts (Depends-on): Add d-type.  Alphabetize.
36485         Thanks to Miklos Szeredi for his tenacity and for the initial
36486         bug report about "find" failing on a FUSE-based file system.
36487
36488         * lib/fts.c (fts_open): Use consistent indentation.
36489
36490 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
36491
36492         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
36493         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
36494         reported by Jim Meyering.  All uses of cache variables renamed
36495         to match Autoconf's.
36496         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
36497         the other one.
36498
36499         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
36500         Fix misspelling in diagnostic.
36501
36502 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
36503
36504         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
36505         defined.  Problem reported by Matthew Woehlke.
36506
36507         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
36508         Add support for Tandem NonStop R series.
36509         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
36510         Use new macro.
36511
36512         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
36513         (has_trailing_slash): Omit size arg; all callers changed.
36514         Omit 'inline', since it doesn't help performance and we'd
36515         need to configure it.
36516         Don't count //, ///, etc. as having a trailing slash.
36517         As a side effect, this removes a C99ism reported by Matthew Woehlke.
36518         (rpl_rename_dest_slash): On failure, use rename's errno rather
36519         than (in some cases) an incorrect or junk errno.
36520         Simplify code by removing need to compute length; this does
36521         cause it to make two passes instead of one over the file name,
36522         but it's worth it.
36523
36524         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
36525         change, since Autoconf's version may no longer be appropriate now
36526         that we are using CVS Autoconf's version.  Add support for Tandem.
36527
36528 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
36529             Bruno Haible  <bruno@clisp.org>
36530
36531         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
36532         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
36533         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
36534         gl_AC_TYPE_LONG_LONG.
36535
36536         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
36537         instead of HAVE_LONG_LONG.
36538         * lib/printf-args.c (printf_fetchargs): Likewise.
36539         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
36540         * lib/vasnprintf.c (VASNPRINTF): Likewise.
36541         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
36542         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
36543         gl_AC_TYPE_LONG_LONG.
36544
36545 2006-10-11  Bruno Haible  <bruno@clisp.org>
36546
36547         * m4/longlong.m4: Add comments.
36548         * m4/ulonglong.m4: Likewise.
36549
36550 2006-10-10  Bruno Haible  <bruno@clisp.org>
36551
36552         Make it possible to #define stpcpy, strdup to aliases.
36553         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
36554         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
36555
36556 2006-10-10  Bruno Haible  <bruno@clisp.org>
36557
36558         Make it possible to #define gcd to an alias.
36559         * lib/gcd.c: Include config.h.
36560
36561 2006-10-10  Bruno Haible  <bruno@clisp.org>
36562
36563         Make it possible to #define c_isascii to an alias.
36564         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
36565         defined. Undefine the macros before defining them, to avoid gcc
36566         warnings.
36567         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
36568         define NO_C_CTYPE_MACROS early.
36569
36570 2006-10-10  Bruno Haible  <bruno@clisp.org>
36571
36572         Make it possible to #define set_program_name to an alias.
36573         * lib/progname.c: Don't undefine set_program_name; instead, undefine
36574         ENABLE_RELOCATABLE early.
36575
36576 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
36577
36578         Port to Tandem NSK OSS, which has 64-bit signed int but at most
36579         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
36580         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
36581         More generally, don't assume that 64-bit signed int is available
36582         if unsigned int is, and vice versa.
36583         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
36584         unsigned symbols, not on their signed counterparts.
36585         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
36586         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
36587         (UINT64_C, UINTMAX_C):
36588         Likewise.
36589         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
36590         unsigned counterparts.
36591         (Have_long_long, Unsigned): New macros.
36592         (Int): Renamed from INT.
36593         (strtoimax): Use the new macros.
36594         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
36595         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
36596         * modules/inttypes (inttypes.h): Substitute
36597         HAVE_UNSIGNED_LONG_LONG_INT.
36598         * modules/stdint (stdint.h): Likewise.
36599         (Files): Add m4/ulonglong.m4.
36600
36601 2006-10-10  Bruno Haible  <bruno@clisp.org>
36602
36603         Fix a gcc -Wshadow warning.
36604         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
36605         to 'bucket'.
36606         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
36607         gl_linked_indexof_from_to): Likewise.
36608         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
36609         Likewise.
36610         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
36611         Likewise.
36612         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
36613         Reported by Eric Blake.
36614
36615 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
36616
36617         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
36618         for NetBSD.  Problem reported by Bruno Haible.
36619
36620 2006-10-09  Jim Meyering  <jim@meyering.net>
36621
36622         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
36623         Patch from Bruno Haible.
36624
36625 2006-10-09  Jim Meyering  <jim@meyering.net>
36626
36627         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
36628         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
36629         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
36630
36631 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
36632
36633         Don't include <config.h> twice; this doesn't work in some cases,
36634         e.g., when config.h has "#define intmax_t long long int" and
36635         we include <config.h>, <inttypes.h>, <config.h> in that order.
36636         Problem reported by Matthew Woehlke in:
36637         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
36638         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
36639         * lib/fts-cycle.c: Don't include config.h.
36640         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
36641         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
36642         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
36643         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
36644         inttypes.h.
36645         * lib/xstrtoumax.c: Likewise.
36646         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
36647         __strtol and the like, so that this module is more like its siblings.
36648         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
36649         Remove; no longer needed now that we assume gnulib inttypes.h.
36650
36651 2006-10-08  Bruno Haible  <bruno@clisp.org>
36652
36653         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
36654         option.
36655
36656 2006-10-07  Jim Meyering  <jim@meyering.net>
36657
36658         * modules/inttypes (inttypes.h): Revert what seems to have been
36659         an inadvertent part of today's change: use "|", not "/" in the
36660         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
36661
36662 2006-10-07  Bruno Haible  <bruno@clisp.org>
36663
36664         * modules/sublist: New file.
36665
36666 2006-10-07  Bruno Haible  <bruno@clisp.org>
36667
36668         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
36669         * modules/argz (argz.h): Likewise.
36670         * modules/arpa_inet (arpa/inet.h): Likewise.
36671         * modules/byteswap (byteswap.h): Likewise.
36672         * modules/configmake (configmake.h): Likewise.
36673         * modules/fcntl (fcntl.h): Likewise.
36674         * modules/fnmatch (fnmatch.h): Likewise.
36675         * modules/getopt (getopt.h): Likewise.
36676         * modules/glob (glob.h): Likewise.
36677         * modules/inttypes (inttypes.h): Likewise.
36678         * modules/netinet_in (netinet/in.h): Likewise.
36679         * modules/poll (poll.h): Likewise.
36680         * modules/stdbool (stdbool.h): Likewise.
36681         * modules/stdint (stdint.h): Likewise.
36682         * modules/sys_select (sys/select.h): Likewise.
36683         * modules/sys_socket (sys/socket.h): Likewise.
36684         * modules/sys_stat (sys/stat.h): Likewise.
36685         * modules/sysexits (sysexits.h): Likewise.
36686         * modules/unistd (unistd.h): Likewise.
36687         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36688         Add a "DO NOT EDIT" comment to the generated file.
36689         (func_import): Likewise for gnulib-comp.m4.
36690
36691 2006-10-07  Bruno Haible  <bruno@clisp.org>
36692
36693         * lib/gl_sublist.h: New file.
36694         * lib/gl_sublist.c: New file.
36695
36696 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
36697
36698         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
36699         name (relative to the original working directory) and the file
36700         name component (relative to the temporary working directory).  All
36701         callers changed.
36702         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
36703         * lib/mkdir-p.c (make_dir_parents): Likewise.
36704         * lib/mkdir-p.h (make_dir_parents): Likewise.
36705
36706 2006-10-06  Eric Blake  <ebb9@byu.net>
36707
36708         Define several macros for use by the clean-temp module.
36709         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
36710         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
36711         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
36712
36713         * lib/clean-temp.h (close_stream_temp): New declaration.
36714         * lib/clean-temp.c (includes): Pull in headers according to what
36715         other modules are in use.
36716         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
36717
36718 2006-10-06  Bruno Haible  <bruno@clisp.org>
36719
36720         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
36721         instead of fopen, fwriteerror.
36722
36723 2006-10-06  Bruno Haible  <bruno@clisp.org>
36724
36725         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
36726         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
36727         int.
36728         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
36729         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
36730         Return an error indicator.
36731         Suggested by Eric Blake.
36732
36733 2006-10-06  Bruno Haible  <bruno@clisp.org>
36734
36735         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
36736         Reported by Eric Blake.
36737
36738 2006-10-06  Bruno Haible  <bruno@clisp.org>
36739
36740         * modules/closeout (Description): Mention stderr too.
36741
36742 2006-10-06  Bruno Haible  <bruno@clisp.org>
36743         and Paul Eggert  <eggert@cs.ucla.edu>
36744
36745         * lib/closeout.c (close_stdout): Also close stderr.
36746         * lib/closeout.h: Update comment.
36747
36748 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
36749
36750         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
36751         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
36752         * lib/dirchownmod.c: Include lchown.h.
36753         * lib/lchown.c: Don't include files that lchown.h now includes.
36754         Don't declare chown, since lchown.h now does that.
36755         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
36756         (lchown): Define to rpl_chown if lchown is declared but
36757         does not exist.  Declare using a prototype if lchown is not
36758         declared.  Add a copyright notice.
36759         * lib/mkstemp.h: Include <unistd.h>.
36760         * lib/openat.c: Include lchown.h.
36761
36762         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
36763         we now test for that separately.
36764         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
36765         rather than O_NOFOLLOW, when testing whether it's possible to
36766         avoid a race condition reliably.
36767         * lib/savewd.c (savewd_chdir): Likewise.
36768
36769         Remove macros that are no longer needed now that stdint.h is
36770         reliable.
36771         * lib/fsusage.c (UINTMAX_MAX): Remove.
36772         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
36773         * lib/utimecmp.c (SIZE_MAX): Remove.
36774
36775         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
36776
36777         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
36778         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
36779         O_NOATIME works.
36780
36781 2006-10-05  Bruno Haible  <bruno@clisp.org>
36782
36783         * lib/gl_list.h (gl_sortedlist_search_from_to,
36784         gl_sortedlist_indexof_from_to): New declarations.
36785         (gl_list_implementation): New fields sortedlist_search_from_to,
36786         sortedlist_indexof_from_to.
36787         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
36788         inline functions.
36789         * lib/gl_list.c (gl_sortedlist_search_from_to,
36790         gl_sortedlist_indexof_from_to): New functions.
36791         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
36792         function.
36793         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
36794         (gl_array_sortedlist_search_from_to): New function.
36795         (gl_array_list_implementation): Update.
36796         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
36797         function.
36798         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
36799         (gl_carray_sortedlist_search_from_to): New function.
36800         (gl_carray_list_implementation): Update.
36801         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
36802         gl_linked_sortedlist_indexof_from_to): New functions.
36803         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
36804         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
36805         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
36806         gl_tree_sortedlist_indexof_from_to): New functions.
36807         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
36808         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
36809         Update.
36810         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
36811         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
36812         Update.
36813
36814 2006-10-05  Bruno Haible  <bruno@clisp.org>
36815
36816         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
36817         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
36818         (struct gl_list_implementation): Add fields search_from_to,
36819         indexof_from_to. Remove fields search, indexof.
36820         (gl_list_search): Use the search_from_to method.
36821         (gl_list_search_from, gl_list_search_from_to): New functions.
36822         (gl_list_indexof): Use the indexof_from_to method.
36823         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
36824         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
36825         (gl_list_search_from, gl_list_search_from_to): New functions.
36826         (gl_list_indexof): Use the indexof_from_to method.
36827         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
36828         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
36829         gl_array_indexof. Add start_index, end_index arguments.
36830         (gl_array_search_from_to): Renamed from gl_array_search. Add
36831         start_index, end_index arguments.
36832         (gl_array_remove, gl_array_list_implementation): Update.
36833         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
36834         gl_carray_indexof. Add start_index, end_index arguments.
36835         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
36836         start_index, end_index arguments.
36837         (gl_carray_remove, gl_carray_list_implementation): Update.
36838         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
36839         gl_linked_search. Add start_index, end_index arguments.
36840         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
36841         start_index, end_index arguments.
36842         (gl_linked_remove): Update.
36843         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
36844         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
36845         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
36846         field to 'size_t'.
36847         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
36848         gl_tree_search. Add start_index, end_index arguments.
36849         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
36850         start_index, end_index arguments.
36851         (gl_tree_remove): Update.
36852         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
36853         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
36854         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
36855         function.
36856         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
36857         gl_tree_search. Add start_index, end_index arguments.
36858         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
36859         start_index, end_index arguments.
36860         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
36861         Update.
36862         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
36863
36864 2006-10-05  Bruno Haible  <bruno@clisp.org>
36865
36866         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
36867
36868         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
36869         fwriteerror_temp): New declarations.
36870         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
36871         (descriptors): New variable.
36872         (cleanup): First, close the descriptors.
36873         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
36874         fclose_temp, fwriteerror_temp): New functions.
36875
36876 2006-10-04  Jim Meyering  <jim@meyering.net>
36877
36878         * lib/fts.c (fts_open): Tiny comment change.
36879
36880 2006-10-04  Bruno Haible  <bruno@clisp.org>
36881
36882         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
36883         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
36884         gl_LOCK_BODY.
36885         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
36886         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
36887         gl_LOCK_EARLY_BODY.
36888         (gl_LOCK): Require gl_LOCK_BODY.
36889
36890 2006-10-04  Bruno Haible  <bruno@clisp.org>
36891
36892         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
36893         (gl_oset_search_atleast): New declaration.
36894         (struct gl_oset_implementation): Add field 'search_atleast'.
36895         (gl_oset_search_atleast): New inline function.
36896         * lib/gl_oset.c (gl_oset_search_atleast): New function.
36897         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
36898         (gl_array_oset_implementation): Update.
36899         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
36900         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
36901         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
36902
36903 2006-10-04  Bruno Haible  <bruno@clisp.org>
36904
36905         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
36906
36907 2006-10-03  Bruno Haible  <bruno@clisp.org>
36908
36909         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
36910         from gl_avltreehash_list_implementation.
36911
36912 2006-10-03  Bruno Haible  <bruno@clisp.org>
36913
36914         * lib/gl_oset.c (gl_oset_add): Fix return type.
36915
36916 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
36917
36918         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
36919
36920 2006-10-02  Eric Blake  <ebb9@byu.net>
36921
36922         * modules/strnlen (Depends-on): Add extensions.
36923
36924 2006-10-02  Eric Blake  <ebb9@byu.net>
36925
36926         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
36927         definition in 2.60+.
36928
36929 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
36930
36931         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
36932         checks.
36933
36934 2006-10-02  Bruno Haible  <bruno@clisp.org>
36935
36936         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
36937         to the AUTOMAKE_OPTIONS.
36938         Reported by Jim Meyering.
36939
36940 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
36941
36942         Work around bug in Solaris 10 /proc file system:
36943         /proc/self/fd/NNN/.. isn't the parent directory of
36944         the directory whose file descriptor is NNN.  This needs to
36945         be worked around at run time, not compile time, since a
36946         program might be built on Solaris 8, where things work, and
36947         run on Solaris 10.
36948         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
36949         to use the following interface instead:
36950         (OPENAT_BUFFER_SIZE): New macro.
36951         (openat_proc_name): New function.
36952         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
36953         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
36954         Likewise.
36955         * lib/openat-proc.c: New file.
36956         * modules/openat (Files): Add lib/openat-proc.c.
36957         (Depends-on): Add same-inode, stdbool.
36958         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
36959
36960 2006-09-29  Bruno Haible  <bruno@clisp.org>
36961
36962         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
36963         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
36964         argument. Set stdout_closed before testing for ferror, not after.
36965         (fwriteerror, fwriteerror_no_ebadf): New functions.
36966
36967 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36968
36969         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
36970
36971 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
36972
36973         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
36974         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
36975
36976 2006-09-28  Jim Meyering  <jim@meyering.net>
36977
36978         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
36979         Include <unistd.h>.
36980
36981 2006-09-28  Bruno Haible  <bruno@clisp.org>
36982
36983         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
36984         * modules/linkedhash-list (Depends-on): Likewise.
36985         * modules/rbtreehash-list (Depends-on): Likewise.
36986
36987 2006-09-28  Bruno Haible  <bruno@clisp.org>
36988
36989         * lib/strndup.h: Simplify the redefinition of strndup.
36990         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
36991         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
36992
36993 2006-09-28  Bruno Haible  <bruno@clisp.org>
36994
36995         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
36996         * lib/gl_linkedhash_list.c: Likewise.
36997         * lib/gl_rbtreehash_list.c: Likewise.
36998
36999 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
37000
37001         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
37002         getaddrinfo.
37003
37004         * lib/__fpending.h: Don't include <stdio_ext.h> unless
37005         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
37006         it causes <stdio_ext.h> to cause a compile-time error.
37007         Problem reported by Nelson H. F. Beebe.
37008         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
37009         of HAVE_DECL___PENDING.
37010
37011         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
37012         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
37013         declaration.
37014
37015 2006-09-27  Jim Meyering  <jim@meyering.net>
37016
37017         This file could end up with a definition for a function
37018         named __strndup, rather than rpl_strndup on a system with
37019         incomplete weak_alias support.
37020         * lib/strndup.c (strndup): Rename from __strndup.
37021         Remove #defines that used to map __strndup to strndup.
37022         Don't use K&R prototypes.
37023         Remove LIBC-related code, since this file is not sync'd with glibc.
37024         * lib/strndup.h: Revamp, accordingly.
37025         * m4/strndup.m4: Modernize.
37026
37027 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
37028
37029         * modules/savewd (Depends-on): Add 'raise'.
37030         * lib/savewd.c: Include <signal.h>, for 'raise'.
37031
37032 2006-09-26  Jim Meyering  <jim@meyering.net>
37033
37034         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
37035         when we detect Darwin 8.7.0's acl_get_file bug.
37036         Rearrange to perform the new (below) run-test while $LIBS
37037         contains any acl-related library.  Set USE_ACL at the end.
37038         (gl_ACL_GET_FILE): New function.
37039
37040 2006-09-26  Eric Blake  <ebb9@byu.net>
37041
37042         * lib/verror.c: Include <config.h> unconditionally.
37043
37044 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
37045
37046         * modules/clock-time (Maintainer): Add self.
37047         * modules/getlogin_r (Depends-on): Add extensions.
37048
37049 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37050
37051         * modules/clock-time: New module.
37052         * modules/nanosleep (Depends-on): Add clock-time.
37053         * modules/gethrxtime (Depends-on): Likewise.
37054         * modules/gettime (Depends-on): Likewise.
37055         * modules/settime (Depends-on): Likewise.
37056
37057         * modules/fts-lgpl: Depend on openat.
37058         * modules/mkancesdirs: Depend on savewd.
37059         * modules/mkdir-p: Likewise.
37060
37061 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37062
37063         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
37064
37065         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
37066         `gl_have_arbitrary_file_name_length_limit' to
37067         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
37068         actually works between configure runs.
37069
37070 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37071             Bruno Haible  <bruno@clisp.org>
37072
37073         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
37074
37075 2006-09-25  Jim Meyering  <jim@meyering.net>
37076
37077         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
37078         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
37079
37080 2006-09-25  Eric Blake  <ebb9@byu.net>
37081
37082         * gnulib-tool (func_import, func_create_testdir): Fix typos in
37083         exec's in 2006-09-18 patch when shuffling fds.
37084
37085 2006-09-25  Bruno Haible  <bruno@clisp.org>
37086
37087         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
37088         Reported by Jim Meyering.
37089
37090 2006-09-24  Jim Meyering  <jim@meyering.net>
37091
37092         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
37093         compare a pointer against a literal "0".  That caused failures with
37094         at least HP-UX's hpcc.
37095
37096 2006-09-22  Simon Josefsson  <jas@extundo.com>
37097
37098         * modules/gc-sha1:
37099         * modules/gc-md4:
37100         * modules/gc-hmac-sha1:
37101         * modules/gc-hmac-md5:
37102         * modules/gc-des:
37103         * modules/gc-arcfour: Distribute more files.
37104
37105 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37106
37107         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
37108         (gl_linked_iterator_from_to): Initialize struct completely.
37109         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
37110         (gl_tree_iterator_from_to): Likewise
37111         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
37112         * lib/gl_array_list.c [lint] (gl_array_iterator)
37113         (gl_array_iterator_from_to): Likewise.
37114         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
37115         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
37116         (gl_carray_iterator_from_to): Likewise.
37117
37118         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
37119         * lib/md4.c (md4_process_block): Remove unused variable.
37120         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
37121         parentheses for clarity.
37122
37123 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37124
37125         * modules/bison-i18n (Depends-on): Add gettext.
37126
37127 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37128
37129         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
37130         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
37131         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
37132         also add missing comma that caused broken test.
37133         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
37134         stdlib.h, for `abort'.
37135         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
37136         variables.
37137         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
37138         include unistd.h if present, for `rmdir'.
37139         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
37140         variables.
37141         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
37142         in the process include standard headers for prototypes.
37143         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
37144         gets declared on GNU/Linux.
37145         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
37146         unistd.h, for `rmdir'.
37147         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
37148
37149         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
37150         always true.
37151         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
37152
37153         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
37154
37155 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37156
37157         * gnulib-tool (func_version): Create output all at once.  This
37158         may help avoid triggering unnecessary SIGPIPEs, and at any
37159         rate it doesn't hurt.
37160
37161 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37162             Bruno Haible  <bruno@clisp.org>
37163
37164         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
37165         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
37166         * m4/signed.m4 (bh_C_SIGNED): Likewise.
37167
37168         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
37169         (gl_FUNC_VASPRINTF): Invoke it.
37170
37171 2006-09-22  Bruno Haible  <bruno@clisp.org>
37172
37173         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
37174         getloadavg.c as first argument.
37175
37176 2006-09-22  Bruno Haible  <bruno@clisp.org>
37177
37178         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
37179         at the beginning of the gl_INIT macro.
37180         * modules/getloadavg (configure.ac): Pass $gl_source_base to
37181         gl_GETLOADAVG.
37182
37183 2006-09-22  Bruno Haible  <bruno@clisp.org>
37184
37185         * gnulib-tool (func_create_megatestdir): Don't include the config-h
37186         module.
37187         Suggested by Ralf Wildenhues.
37188
37189 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
37190
37191         Import this patch from libc:
37192
37193         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
37194
37195         * lib/regex_internal.c (re_string_reconstruct): Handle
37196         offset < pstr->valid_raw_len && pstr->offsets_needed case.
37197         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
37198         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
37199         re_string_context_at.
37200
37201         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
37202         now requires it.
37203         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
37204         gl_REGEX now does it for us.
37205         (gl_REGEX): Add test taken from
37206         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
37207
37208         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
37209         Check that large offsets work.  Modernize Autoconf usages.
37210         Prefer "yes" to mean a good thing rather than a bad.
37211         Don't put "#define mkstemp" in config.h, as this might interfere
37212         with standard system headers that "#define mkstemp mkstemp64".
37213
37214         * modules/mkstemp (Depends-on): Add extensions, so that
37215         mkstemp is visible on some platforms.
37216         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
37217         (Include): Change to "mkstemp.h" from <stdlib.h>.
37218         (Files): Add mkstemp.h.
37219
37220         * lib/mkstemp.h: New file, since some standard headers
37221         #define mkstemp.
37222         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
37223         Include "mkstemp.h".
37224         Make the _LIBC code resemble glibc original more,
37225         e.g., use K&R style.
37226         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
37227         (mkstemp): Remove, since mkstemp.h does this for us.
37228         * lib/stdlib--.h: Include mkstemp.h.
37229
37230         Import this patch from libc:
37231
37232         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
37233
37234         * lib/tempname.c (__gen_tempname): Change attempts_min
37235         into a macro.  Use preprocessor to decide how to initialize
37236         attempts [Coverity CID 67].
37237
37238 2006-09-20  Bruno Haible  <bruno@clisp.org>
37239
37240         * lib/mkdtemp.c: Import from libc.
37241         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
37242                 * sysdeps/posix/tempname.c (__gen_tempname): Change
37243                 attempts_min into a macro.  Use preprocessor to decide how to
37244                 initialize attempts [Coverity CID 67].
37245         2001-11-27  Paul Eggert  <eggert@twinsun.com>
37246                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
37247                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
37248
37249 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37250
37251         * gnulib-tool (func_exit): New function, to allow to pass the
37252         exit status portably through the trap.  Use everywhere.
37253         (--help, --version): Signal a write error.
37254         (trap): catch SIGPIPE, for write errors.
37255         Exit at the end of the trap, with the correct exit status.
37256
37257 2006-09-19  Karl Berry  <karl@gnu.org>
37258
37259         * doc/gnulib.texi: note about the license texinfo files.
37260
37261 2006-09-19  Eric Blake  <ebb9@byu.net>
37262
37263         * gnulib-tool: Avoid space-tab.
37264
37265 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
37266
37267         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
37268         that prevented coreutils 6.1 from building.  Problem reported
37269         by Petter Reinholdtsen.
37270
37271 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
37272
37273         * gnulib-tool (avoidlist): Fix typo that broke options like
37274         --avoid=lock that are used by coreutils bootstrap.
37275
37276 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
37277
37278         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
37279         more systematically.
37280
37281 2006-09-18  Jim Meyering  <jim@meyering.net>
37282
37283         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
37284
37285 2006-09-18  Bruno Haible  <bruno@clisp.org>
37286
37287         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
37288
37289 2006-09-18  Bruno Haible  <bruno@clisp.org>
37290
37291         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
37292         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
37293         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
37294         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
37295         * m4/gettext.m4: Require autoconf >= 2.52.
37296         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
37297         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
37298         of gl_cv_header_inttypes_h.
37299
37300 2006-09-18  Bruno Haible  <bruno@clisp.org>
37301
37302         * lib/javaversion.c: Include configmake.h.
37303
37304 2006-09-18  Bruno Haible  <bruno@clisp.org>
37305
37306         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
37307         avoid that the while loops be executed in a subshell.
37308
37309 2006-09-18  Bruno Haible  <bruno@clisp.org>
37310
37311         * MODULES.html.sh (func_module): Break long lines.
37312         Suggested by Bruce Korb <bkorb@gnu.org>.
37313
37314 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37315
37316         Speed up by a factor of 1.12.
37317         * gnulib-tool (nl): New variable.
37318         (func_import): Rewrite include directive extraction to only read each
37319         directive once.
37320
37321 2006-09-17  Bruno Haible  <bruno@clisp.org>
37322
37323         * modules/javaversion (Makefile.am): Remove DEFS setting.
37324         (Depends-on): Add configmake, for PKGDATADIR definition.
37325
37326 2006-09-17  Bruno Haible  <bruno@clisp.org>
37327
37328         * gnulib-tool (func_create_testdir): Rewrite all files at once.
37329
37330 2006-09-17  Bruno Haible  <bruno@clisp.org>
37331
37332         * gnulib-tool (func_append): New function, stolen from libtool.m4.
37333         (func_modules_transitive_closure, func_modules_add_dummy,
37334         func_modules_to_filelist, func_import, func_create_testdir,
37335         func_create_megatestdir, ...): Use it wherever possible.
37336         Suggested by Ralf Wildenhues.
37337
37338 2006-09-16  Karl Berry  <karl@gnu.org>
37339
37340         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
37341         to avoid sectioning errors.
37342         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
37343         [ifinfo]: blank line after @center-ed titles.
37344         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
37345         Spell FSF address consistently with others.
37346         (These changes approved by rms.)
37347
37348 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37349
37350         Speed up by a factor of 1.61.
37351         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
37352         already checked module names again.
37353
37354 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37355
37356         Speed up by a factor of 1.13.
37357         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
37358         for new_files, and the input to func_add_or_update.
37359
37360 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37361
37362         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
37363         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
37364
37365 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
37366
37367         * modules/mkancesdirs (Depends-on): Add fcntl.
37368         * modules/savewd: New file.
37369         * MODULES.html.sh (File system functions): Add savewd.
37370
37371         * modules/configmake (Makefile.am): Add support for the
37372         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
37373
37374 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
37375
37376         * m4/savewd.m4: New file.
37377
37378 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
37379
37380         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
37381         (dirchownmod): New arg FD.  All callers changed.
37382         Use FD rather than opening the directory ourself, as opening is
37383         now the caller's responsibility.
37384         * lib/dirchownmod.h: Likewise.
37385         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
37386         hosts that require <sys/types.h> before <sys/stat.h>.  Include
37387         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
37388         (test_dir): Remove.
37389         (mkancesdirs): Return length of prefix of FILE that has already
37390         been made, or -2 if there is a child doing the work.  Redo
37391         algorithm so that it is O(N) rather than O(N**2).  Optimize away
37392         ".", and treat ".." specially since it might stray back into
37393         already-created areas.  Use a subprocess if necessary.  New arg
37394         WD; all users changed.  MAKE_DIR function should now return 1
37395         if it creates a directory that is not readable.  Return -2 if
37396         a child process is spun off.
37397         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
37398         Adjust signature to match code.
37399         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
37400         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
37401         all users changed.
37402         * lib/savewd.c, lib/savewd.h: New files.
37403
37404 2006-09-15  Jim Meyering  <jim@meyering.net>
37405
37406         * modules/rename-dest-slash: New module.
37407         * MODULES.html.sh (posix_compat): Add it here.
37408
37409         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
37410
37411 2006-09-15  Jim Meyering  <jim@meyering.net>
37412
37413         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
37414         file.
37415
37416         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
37417
37418 2006-09-15  Jim Meyering  <jim@meyering.net>
37419
37420         * lib/rename-dest-slash.c (has_trailing_slash): Use
37421         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
37422         (rpl_rename_dest_slash): Perform the cheaper trailing slash
37423         test before testing whether SRC is a directory.
37424         Suggestions from Bruno Haible.
37425
37426         Avoid a warning about an unused variable.
37427         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
37428         into the #ifdef block where it's used.
37429
37430         * lib/rename-dest-slash.c: New file.
37431
37432 2006-09-14  Bruno Haible  <bruno@clisp.org>
37433
37434         * lib/allocsa.c: Include <config.h> unconditionally.
37435         * lib/asnprintf.c: Likewise.
37436         * lib/asprintf.c: Likewise.
37437         * lib/c-strcasecmp.c: Likewise.
37438         * lib/c-strcasestr.c: Likewise.
37439         * lib/c-strncasecmp.c: Likewise.
37440         * lib/c-strstr.c: Likewise.
37441         * lib/classpath.c: Likewise.
37442         * lib/clean-temp.c: Likewise.
37443         * lib/concatpath.c: Likewise.
37444         * lib/copy-file.c: Likewise.
37445         * lib/csharpcomp.c: Likewise.
37446         * lib/csharpexec.c: Likewise.
37447         * lib/execute.c: Likewise.
37448         * lib/fatal-signal.c: Likewise.
37449         * lib/findprog.c: Likewise.
37450         * lib/fwriteerror.c: Likewise.
37451         * lib/gl_array_list.c: Likewise.
37452         * lib/gl_array_oset.c: Likewise.
37453         * lib/gl_avltree_list.c: Likewise.
37454         * lib/gl_avltree_oset.c: Likewise.
37455         * lib/gl_avltreehash_list.c: Likewise.
37456         * lib/gl_carray_list.c: Likewise.
37457         * lib/gl_linked_list.c: Likewise.
37458         * lib/gl_linkedhash_list.c: Likewise.
37459         * lib/gl_list.c: Likewise.
37460         * lib/gl_oset.c: Likewise.
37461         * lib/gl_rbtree_list.c: Likewise.
37462         * lib/gl_rbtree_oset.c: Likewise.
37463         * lib/gl_rbtreehash_list.c: Likewise.
37464         * lib/imaxabs.c: Likewise.
37465         * lib/imaxdiv.c: Likewise.
37466         * lib/javacomp.c: Likewise.
37467         * lib/javaexec.c: Likewise.
37468         * lib/javaversion.c: Likewise.
37469         * lib/linebreak.c: Likewise.
37470         * lib/localcharset.c: Likewise.
37471         * lib/lock.c: Likewise.
37472         * lib/mbchar.c: Likewise.
37473         * lib/mbswidth.c: Likewise.
37474         * lib/mkdtemp.c: Likewise.
37475         * lib/pipe.c: Likewise.
37476         * lib/printf-args.c: Likewise.
37477         * lib/printf-parse.c: Likewise.
37478         * lib/progname.c: Likewise.
37479         * lib/progreloc.c: Likewise.
37480         * lib/readlink.c: Likewise.
37481         * lib/sh-quote.c: Likewise.
37482         * lib/stpcpy.c: Likewise.
37483         * lib/stpncpy.c: Likewise.
37484         * lib/strcasecmp.c: Likewise.
37485         * lib/strcasestr.c: Likewise.
37486         * lib/strcspn.c: Likewise.
37487         * lib/striconv.c: Likewise.
37488         * lib/strncasecmp.c: Likewise.
37489         * lib/strnlen1.c: Likewise.
37490         * lib/strstr.c: Likewise.
37491         * lib/strtok_r.c: Likewise.
37492         * lib/tls.c: Likewise.
37493         * lib/tmpdir.c: Likewise.
37494         * lib/unicodeio.c: Likewise.
37495         * lib/unsetenv.c: Likewise.
37496         * lib/vasnprintf.c: Likewise.
37497         * lib/vasprintf.c: Likewise.
37498         * lib/wait-process.c: Likewise.
37499         * lib/xallocsa.c: Likewise.
37500         * lib/xsetenv.c: Likewise.
37501         * lib/xstriconv.c: Likewise.
37502
37503 2006-09-13  Simon Josefsson  <jas@extundo.com>
37504
37505         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
37506         that internally, suggested by Ralf Wildenhues
37507         <Ralf.Wildenhues@gmx.de>.
37508
37509 2006-09-13  Simon Josefsson  <jas@extundo.com>
37510
37511         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
37512         @LIBOBJS@.
37513         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37514
37515 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
37516
37517         * lib/_fpending.c: Include <config.h> unconditionally, since we no
37518         longer worry about uses that don't define HAVE_CONFIG_H.
37519         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
37520         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
37521         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
37522         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
37523         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
37524         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
37525         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
37526         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
37527         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
37528         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
37529         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
37530         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
37531         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
37532         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
37533         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
37534         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
37535         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
37536         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
37537         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
37538         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
37539         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
37540         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
37541         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
37542         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
37543         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
37544         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
37545         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
37546         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
37547         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
37548         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
37549         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
37550         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
37551         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
37552         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
37553         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
37554         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
37555         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
37556         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
37557         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
37558         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
37559         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
37560         Likewise.
37561
37562 2006-09-13  Eric Blake  <ebb9@byu.net>
37563
37564         * lib/getopt.c: Fix typo in last commit.
37565
37566 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37567
37568         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
37569         dgettext.
37570
37571 2006-09-12  Jim Meyering  <jim@meyering.net>
37572
37573         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
37574         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
37575         Reported by Nelson H. F. Beebe.
37576
37577 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
37578
37579         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
37580         program_invocation_name and program_invocation_short_name are
37581         initialized.
37582         * lib/argp-namefrob.h: Move declarations of program_invocation_name
37583         and program_invocation_short_name to argp.h, so they are visible
37584         to user programs.
37585         * lib/argp.h: Likewise
37586
37587 2006-09-10  Bruno Haible  <bruno@clisp.org>
37588
37589         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
37590         m4/inttypes_h.m4, m4/uintmax_t.m4.
37591
37592 2006-09-10  Bruno Haible  <bruno@clisp.org>
37593
37594         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
37595         gl_AC_TYPE_UINTMAX_T.
37596
37597 2006-09-10  Bruno Haible  <bruno@clisp.org>
37598
37599         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
37600
37601 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
37602
37603         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
37604         convention.  Text proposed by Bruno Haible.
37605         (struct argp_option): Document the use of N_() wrappers.
37606
37607         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
37608         '\v', and translate the two parts separately, instead of feeding
37609         the whole string to gettext.  This allows to exclude
37610         '\v' from the strings visible to the translator by writing doc
37611         strings as N_("..") "\v" N_("..").
37612
37613 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
37614
37615         * config/srclist.txt: Undo latest change; the bug was fixed.
37616
37617 2006-09-09  Bruno Haible  <bruno@clisp.org>
37618
37619         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
37620         assignments if building a library without libtool.
37621         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
37622         in func_emit_lib_Makefile_am.
37623         (func_import): When building a static library libfoo.a, arrange to
37624         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
37625         (func_create_testdir): Likewise.
37626         * modules/gc (configure.ac, Makefile.am): If building statically,
37627         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
37628         * modules/iconvme (configure.ac, Makefile.am): Likewise.
37629         * modules/striconv (configure.ac, Makefile.am): Likewise.
37630         Based on a suggestion by Ralf Wildenhues.
37631
37632 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
37633
37634         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
37635         Check for unistd.h too, since Autoconf doesn't assume POSIX.
37636         Also:
37637
37638         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
37639         Add year_2050_test to catch glibc bug 2821
37640         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
37641
37642         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
37643         Prefer #ifdef to #if.
37644
37645         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
37646         Return from 'main' instead of calling 'exit'.
37647
37648 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
37649
37650         * lib/mktime.c (guess_time_tm): Fix bug where mktime
37651         returned the maximum time_t value rather than (time_t) -1.
37652         Problem originally reported by William Bardwell
37653         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
37654
37655         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
37656         Moved to here ...
37657         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
37658         ... from here.
37659
37660 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
37661
37662         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
37663         2821 is fixed.
37664
37665 2006-09-08  Jim Meyering  <jim@meyering.net>
37666
37667         Don't make generated files read-only.  That would bother too many
37668         people.  However, do retain the ability to work when targets are
37669         read-only: remove the destination and temporary files before writing
37670         them (when generated via sed or echo), or by using the -f option for
37671         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
37672         * modules/alloca-opt, modules/argz, modules/arpa_inet:
37673         * modules/byteswap, modules/configmake, modules/fcntl:
37674         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
37675         * modules/localcharset, modules/netinet_in, modules/poll:
37676         * modules/stdbool, modules/stdint, modules/sys_select:
37677         * modules/sys_socket, modules/sys_stat, modules/sysexits:
37678
37679 2006-09-08  Jim Meyering  <jim@meyering.net>
37680
37681         Avoid new build failure on FreeBSD 6.0.
37682         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
37683         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
37684         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
37685
37686 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37687
37688         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
37689
37690 2006-09-07  Jim Meyering  <jim@meyering.net>
37691
37692         Fix global typo in last change: use chmod u-w, not chmod u-x.
37693         Spotted by Paul Eggert and Bruce Korb.
37694         * modules/alloca-opt, modules/argz, modules/arpa_inet:
37695         * modules/byteswap, modules/configmake, modules/fcntl:
37696         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
37697         * modules/localcharset, modules/netinet_in, modules/poll:
37698         * modules/stdbool, modules/stdint, modules/sys_select:
37699         * modules/sys_socket, modules/sys_stat, modules/sysexits:
37700
37701 2006-09-06  Jim Meyering  <jim@meyering.net>
37702
37703         Make generated files be read-only.
37704         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
37705         Ensure that each generated file is now read-only.
37706         * modules/argz: Likewise.
37707         * modules/arpa_inet: Likewise.
37708         * modules/byteswap: Likewise.
37709         * modules/configmake: Likewise.
37710         * modules/fcntl: Likewise.
37711         * modules/fnmatch: Likewise.
37712         * modules/getopt: Likewise.
37713         * modules/glob: Likewise.
37714         * modules/inttypes: Likewise.
37715         * modules/netinet_in: Likewise.
37716         * modules/poll: Likewise.
37717         * modules/stdbool: Likewise.
37718         * modules/stdint: Likewise.
37719         * modules/sys_select: Likewise.
37720         * modules/sys_socket: Likewise.
37721         * modules/sys_stat: Likewise.
37722         * modules/sysexits: Likewise.
37723         * modules/localcharset: Same as above, but continue using temporary
37724         file named "t-$@" (why different?) rather than the "$@-t" used
37725         everywhere else.
37726
37727         * modules/sysexits (Makefile.am): Replace literal occurrences
37728         of "sysexit.h" more readable, and more consistent, "$@".
37729
37730 2006-09-06  Bruno Haible  <bruno@clisp.org>
37731
37732         * modules/striconv: New file.
37733         * modules/xstriconv: New file.
37734         * MODULES.html.sh (Internationalization functions): Add striconv,
37735         xstriconv.
37736
37737 2006-09-06  Bruno Haible  <bruno@clisp.org>
37738
37739         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
37740         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
37741         not using libtool correctly.
37742
37743 2006-09-06  Bruno Haible  <bruno@clisp.org>
37744
37745         * lib/striconv.h: New file.
37746         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
37747         iconvstring.c.
37748         * lib/xstriconv.h: New file.
37749         * lib/xstriconv.c: New file.
37750
37751 2006-09-06  Bruno Haible  <bruno@clisp.org>
37752
37753         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
37754         lib_..._LDFLAGS.
37755
37756 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37757
37758         * lib/argz_.h: Sync from Libtool.
37759
37760         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
37761                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37762
37763         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
37764
37765 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
37766
37767         * modules/trim: New file.
37768
37769 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
37770
37771         * lib/trim.h: New file.
37772         * lib/trim.c: New file.
37773
37774 2006-09-05  Bruno Haible  <bruno@clisp.org>
37775
37776         * MODULES.html.sh (String handling): Add trim.
37777
37778 2006-09-04  Karl Berry  <karl@gnu.org>
37779
37780         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
37781         until next release.
37782
37783 2006-09-03  Bruno Haible  <bruno@clisp.org>
37784
37785         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
37786         correctly.
37787
37788 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
37789
37790         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
37791         not gl_GETLOADAVG.  Omit unneeded semicolons.
37792         Problems reported by Ralf Wildenhues in
37793         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
37794         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
37795         at the end, which is the usual gnulib style.
37796
37797         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
37798         of doing all the work ourselves.
37799         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
37800         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
37801
37802 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
37803
37804         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
37805         Problem reported by Ralf Wildenhues in
37806         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
37807
37808         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
37809         HAVE_STRUCT_STATFS_F_FSTYPENAME.
37810
37811 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
37812
37813         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
37814         yesterday's patch by changing test -n to test -z.
37815
37816 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
37817
37818         * modules/getloadavg (Files): Add m4/getloadavg.m4.
37819         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
37820         the former is now obsolescent.
37821
37822         * modules/chdir-long (Depends-on): Add fcntl.
37823
37824 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
37825
37826         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
37827         obsolescent, and programs should use gnulib instead.
37828         * m4/getloadavg.m4: New file, with contents taken from Autoconf
37829         but with prefixes changed.
37830
37831 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
37832
37833         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
37834         or stdbool.h, because they might not exist while configuring.
37835
37836         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
37837         Don't include unistd.h or limits.h; not needed, since chdir-long.h
37838         does that for us.
37839         (O_DIRECTORY): Remove.
37840
37841 2006-08-31  Eric Blake  <ebb9@byu.net>
37842
37843         * gnulib-tool: Don't let emacs change spaces to TAB.
37844
37845 2006-08-31  Bruno Haible  <bruno@clisp.org>
37846
37847         * gnulib-tool: When calling func_import more than once, do it in a
37848         subshell.
37849         Reported by Eric Blake <ebb9@byu.net>.
37850
37851 2006-08-31  Bruno Haible  <bruno@clisp.org>
37852
37853         * gnulib-tool (nl): Remove variable.
37854         (sed_transform_lib_file): Use more robust test for config-h module.
37855         (func_import): Fix typo in 2006-08-25 patch.
37856
37857 2006-08-31  Bruno Haible  <bruno@clisp.org>
37858
37859         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
37860         specified, augment Makefile.am variables instead of assigning them.
37861
37862 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
37863
37864         Work around a bug in both the Linux and SunOS 64-bit kernels:
37865         nanosleep mishandles sleeps for longer than 2**31 seconds.
37866         Problem reported by Frank v Waveren in
37867         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
37868         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
37869         Check for nanosleep bug.
37870         (LIB_NANOSLEEP): Append clock_gettime library if needed.
37871
37872 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
37873
37874         Work around a bug in both the Linux and SunOS 64-bit kernels:
37875         nanosleep mishandles sleeps for longer than 2**31 seconds.
37876         Problem reported by Frank v Waveren in
37877         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
37878         * lib/nanosleep.c (BILLION): New constant.
37879         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
37880         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
37881         implementation.
37882
37883 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
37884
37885         * modules/nanosleep (Depends-on): Add gettime.
37886
37887 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
37888         and Simon Josefsson  <jas@extundo.com>
37889         and Oskar Liljeblad  <oskar@osk.mine.nu>
37890
37891         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
37892         * gnulib-tool (func_import): New license type 'unmodifiable license
37893         text'.
37894         * modules/fdl: Use it.  Longer description.
37895         * module/gpl, module/lgpl: New files.
37896
37897 2006-08-30  Jim Meyering  <jim@meyering.net>
37898
37899         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
37900         shadowing the parameter.
37901
37902 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37903
37904         Sync from Libtool:
37905
37906         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37907
37908         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
37909         sharing with gnulib.  Report by Eric Blake.
37910
37911 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
37912
37913         * modules/isapipe: New file.
37914         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
37915
37916 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
37917
37918         * modules/configmake (Makefile.am): Add a comment, and omit
37919         the CONFIGMAKE_ prefix from generated macro names.  Suggested
37920         by Bruno Haible.
37921
37922 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
37923
37924         * m4/isapipe.m4: New file.
37925
37926 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
37927
37928         * lib/isapipe.c, lib/isapipe.h: New files.
37929
37930 2006-08-29  Jim Meyering  <jim@meyering.net>
37931
37932         * modules/configmake (Makefile.am): Make configmake.h depend on
37933         Makefile.  Otherwise, a stale configmake.h could hang around.
37934
37935 2006-08-29  Eric Blake  <ebb9@byu.net>
37936
37937         * lib/error.c (error_at_line, print_errno_message): Match libc, after
37938         resolution of upstream bug 3044.
37939
37940 2006-08-29  Bruno Haible  <bruno@clisp.org>
37941
37942         * modules/localcharset (Depends-on): Add configmake.
37943         (Makefile.am): Remove setting of LIBDIR through DEFS.
37944
37945 2006-08-29  Bruno Haible  <bruno@clisp.org>
37946
37947         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
37948         defined.
37949
37950 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
37951
37952         * modules/fcntl: New file.
37953         * modules/chdir-safer (Depends-on): Add fcntl.
37954         * modules/fts: Likewise.
37955         * modules/mkdir-p: Likewise.
37956
37957         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
37958         This undoes the most recent change, since we're now addressing the
37959         problem in a different way.
37960
37961         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
37962         into output, since the output might be called Makefile.am even
37963         if $makefile_name is something different.
37964         (func_import): Use $makefile_am rather than
37965         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
37966         empty.
37967
37968         * modules/inttypes (Files): Add m4/inttypes-h.m4.
37969
37970 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
37971
37972         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
37973         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
37974         recent change to stdint.m4, since we're now addressing the problem in a
37975         different way.
37976
37977 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
37978
37979         * m4/fcntl_h.m4: New file.
37980
37981 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
37982
37983         * lib/fcntl_.h: New file.
37984         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
37985         the fcntl module.
37986         * lib/dirchownmod.c: Likewise.
37987         * lib/fts.c: Likewise.
37988
37989         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
37990         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
37991         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
37992         just before including <inttypes.h>, to avoid circular inclusion.
37993
37994 2006-08-28  Jim Meyering  <jim@meyering.net>
37995
37996         * doc/visibility.texi: Actually read and correct the grammar of the
37997         sentence affected by yesterday's change.
37998
37999 2006-08-28  Eric Blake  <ebb9@byu.net>
38000
38001         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
38002         needs wrapper.
38003
38004 2006-08-28  Eric Blake  <ebb9@byu.net>
38005
38006         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
38007
38008 2006-08-28  Eric Blake  <ebb9@byu.net>
38009
38010         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
38011
38012 2006-08-28  Bruno Haible  <bruno@clisp.org>
38013
38014         * modules/c-strstr: New file, from GNU gettext.
38015         * MODULES.html.sh (String handling): Add c-strstr.
38016
38017 2006-08-28  Bruno Haible  <bruno@clisp.org>
38018
38019         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
38020         macros.
38021         Reported by Eric Blake.
38022
38023 2006-08-28  Bruno Haible  <bruno@clisp.org>
38024
38025         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
38026         (VASNPRINTF): Return a string of length > INT_MAX without failing.
38027         * lib/vasprintf.c: Include errno.h, limits.h.
38028         (EOVERFLOW): New fallback definition.
38029         (vasprintf): Test here whether the string length is > INT_MAX.
38030         * lib/vsnprintf.c: Include errno.h, limits.h.
38031         (EOVERFLOW): New fallback definition.
38032         (vsnprintf): Fix bug when generated string was too long for the buffer.
38033         Test here whether the string length is > INT_MAX.
38034
38035 2006-08-28  Bruno Haible  <bruno@clisp.org>
38036
38037         * lib/inttypes_.h (SCNX*): Remove definitions.
38038         Reported by Eric Blake.
38039
38040 2006-08-28  Bruno Haible  <bruno@clisp.org>
38041
38042         * lib/c-strstr.h: New file, from GNU gettext.
38043         * lib/c-strstr.c: New file, from GNU gettext.
38044
38045 2006-08-28  Bruno Haible  <bruno@clisp.org>
38046
38047         * gnulib-tool: Reorder some statements.
38048
38049 2006-08-28  Bruno Haible  <bruno@clisp.org>
38050
38051         * gnulib-tool: New option --makefile-name.
38052         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
38053         $makefile_name.
38054         (func_import): Write $makefile_name to the cache file, and read it from
38055         there unless explicitly specified. Use $makefile_name as file name
38056         instead of Makefile.am. Adjust the recommendations accordingly.
38057
38058 2006-08-28  Bruno Haible  <bruno@clisp.org>
38059
38060         * gnulib-tool (func_verify_module): Check against misapplying patch.
38061
38062 2006-08-28  Bruno Haible  <bruno@clisp.org>
38063
38064         * gnulib-tool (func_relativize, func_relconcat): New functions.
38065         Give an error if --local-dir is given with --update.
38066         Remove trailing slashes from $local_gnulib_dir.
38067         (func_import): Store the relativized $local_gnulib_dir in
38068         gnulib-cache.m4, and read it from there if not specified explicitly.
38069
38070 2006-08-28  Bruno Haible  <bruno@clisp.org>
38071
38072         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
38073         is the current directory. Respect also $local_gnulib_dir.
38074
38075 2006-08-28  Bruno Haible  <bruno@clisp.org>
38076             Simon Josefsson  <jas@extundo.com>
38077
38078         BeOS portability.
38079         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
38080
38081 2006-08-27  Jim Meyering  <jim@meyering.net>
38082
38083         * doc/visibility.texi: Remove duplicate word: "pointer".
38084
38085 2006-08-26  Bruno Haible  <bruno@clisp.org>
38086
38087         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
38088         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
38089         (Makefile.am): Create inttypes.h from inttypes_.h.
38090         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
38091
38092         * modules/imaxabs: New file.
38093
38094         * modules/imaxdiv: New file.
38095
38096 2006-08-26  Bruno Haible  <bruno@clisp.org>
38097
38098         * m4/inttypes.m4: New file.
38099         * m4/_inttypes_h.m4: Remove file.
38100         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
38101         PRI_MACROS_BROKEN.
38102         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
38103
38104         * m4/imaxabs.m4: New file.
38105
38106         * m4/imaxdiv.m4: New file.
38107
38108 2006-08-26  Bruno Haible  <bruno@clisp.org>
38109
38110         * lib/inttypes_.h: New file.
38111         * lib/inttypes.h: Remove file.
38112         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
38113
38114         * lib/imaxabs.c: New file.
38115
38116         * lib/imaxdiv.c: New file.
38117
38118 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
38119
38120         New config-h module, so that "make" output needn't be cluttered
38121         by -DHAVE_CONFIG_H.
38122         * MODULES.html.sh (Support for building libraries and executables):
38123         Add config-h.
38124         * modules/config-h: New file.
38125         * gnulib-tool (nl, sed_transform_lib_file): New vars.
38126         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
38127         the config-h module is used.
38128
38129         New configmake module, so that "make" output needn't be cluttered
38130         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
38131         * MODULES.html.sh (Support for building libraries and executables):
38132         Add configmake.
38133         * modules/configmake: New file.
38134
38135 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
38136
38137         * m4/config-h.m4: New file.
38138
38139 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
38140
38141         * config/srclist.txt: Add elisp-comp.
38142
38143 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
38144
38145         * MODULES.html.sh (Support for building libraries and executables):
38146         Add elisp-comp.
38147         * build-aux/elisp-comp: New file.
38148         * modules/elisp-comp: New file.
38149
38150 2006-08-24  Bruno Haible  <bruno@clisp.org>
38151
38152         * gnulib-tool (func_create_testdir): Use non-default values of
38153         sourcebase and m4base.
38154
38155 2006-08-24  Bruno Haible  <bruno@clisp.org>
38156
38157         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
38158         HTML structure.
38159
38160 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
38161
38162         * modules/openat (Depends-on): Add lchown.
38163
38164 2006-08-23  Bruno Haible  <bruno@clisp.org>
38165
38166         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
38167         of gl_LOCK_EARLY instead of gl_LOCK.
38168
38169 2006-08-23  Bruno Haible  <bruno@clisp.org>
38170
38171         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
38172         on OSF/1 to no.
38173         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
38174
38175 2006-08-23  Bruno Haible  <bruno@clisp.org>
38176
38177         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
38178         as unusable.
38179
38180         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
38181         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
38182         (gl_LOCK): New macro.
38183
38184 2006-08-22  Simon Josefsson  <jas@extundo.com>
38185
38186         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
38187         to md5 module.
38188
38189 2006-08-22  Simon Josefsson  <jas@extundo.com>
38190
38191         * MODULES.html.sh: Add "Support for maintaining and release
38192         projects".
38193
38194         * build-aux/gnupload: New file, from coreutils.
38195
38196 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
38197
38198         Avoid the need for AC_LIBSOURCES in m4 macros.
38199         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
38200         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
38201         * modules/check-version (EXTRA_DIST): Add check-version.h.
38202         * modules/crc (EXTRA_DIST): Add crc.h.
38203         * modules/des (EXTRA_DIST): Add des.h.
38204         * modules/gc (EXTRA_DIST): Add gc.h.
38205         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
38206         * modules/getline (EXTRA_DIST): Add getline.h.
38207         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
38208         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
38209         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
38210         * modules/md2 (EXTRA_DIST): Add md2.h.
38211         * modules/md4 (EXTRA_DIST): Add md4.h.
38212         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
38213         * modules/read-file (EXTRA_DIST): Add read-file.h.
38214         * modules/readline (EXTRA_DIST): Add readline.h.
38215         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
38216         rijndael-api-fst.h.
38217
38218 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
38219
38220         * m4/rijndael.m4 (gl_ARCFOUR):
38221         * m4/arctwo.m4 (gl_ARCTWO):
38222         * m4/check-version.m4 (gl_CHECK_VERSION):
38223         * m4/crc.m4 (gl_CRC):
38224         * m4/des.m4 (gl_DES):
38225         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
38226         * m4/gc.m4 (gl_GC):
38227         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
38228         * m4/getline.m4 (gl_FUNC_GETLINE):
38229         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
38230         * m4/hmac-md5.m4 (gl_HMAC_MD5):
38231         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
38232         * m4/md2.m4 (gl_MD2):
38233         * m4/md4.m4 (gl_MD4):
38234         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
38235         * m4/read-file.m4 (gl_FUNC_READ_FILE):
38236         * m4/readline.m4 (gl_FUNC_READLINE):
38237         * m4/rijndael.m4 (gl_RIJNDAEL):
38238         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
38239         to get the necessary .h files and whatnot.
38240
38241 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
38242
38243         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
38244         gnulib rather than the other way around.
38245         * config/srclistvars.sh (COREUTILS): Remove.
38246
38247 2006-08-22  Jim Meyering  <jim@meyering.net>
38248
38249         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
38250
38251         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
38252
38253 2006-08-22  Eric Blake  <ebb9@byu.net>
38254
38255         * modules/regexprops-generic: New file.
38256         * MODULES.html.sh (Support for building documentation): List it.
38257
38258 2006-08-22  Eric Blake  <ebb9@byu.net>
38259
38260         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
38261         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
38262         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
38263         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
38264
38265 2006-08-22  Bruno Haible  <bruno@clisp.org>
38266
38267         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
38268         and lib_LTLIBRARIES like the other lib_* variables.
38269
38270 2006-08-22  Bruno Haible  <bruno@clisp.org>
38271
38272         * build-aux/x-to-1.in: New file, from GNU gettext.
38273
38274 2006-08-22  Bruno Haible  <bruno@clisp.org>
38275
38276         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
38277         <utmpx.h> exists.
38278
38279 2006-08-22  Bruno Haible  <bruno@clisp.org>
38280
38281         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
38282         <utmpx.h> exists.
38283
38284 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
38285
38286         BeOS portability.
38287         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
38288         exist.
38289         Problem reported by Bruno Haible.
38290
38291 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
38292
38293         Avoid the need for AC_LIBSOURCES in m4 macros.
38294         * modules/acl (EXTRA_DIST): Add acl.h.
38295         * modules/argmatch (Files): Add m4/argmatch.m4.
38296         (configure.ac): Add gl_ARGMATCH.
38297         (EXTRA_DIST): Renamed from lib_SOURCES, for
38298         consistency with the other modules.  Remove argmatch.c.
38299         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
38300         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
38301         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
38302         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
38303         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
38304         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
38305         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
38306         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
38307         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
38308         * modules/closeout (EXTRA_DIST): Add closeout.h.
38309         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
38310         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
38311         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
38312         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
38313         dirname.h; remove basename.c and stripslash.c.
38314         * modules/exclude (EXTRA_DIST): Add exclude.h.
38315         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
38316         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
38317         * modules/file-type (EXTRA_DIST): Add file-type.h.
38318         * modules/filemode (EXTRA_DIST): Add filemode.h.
38319         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
38320         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
38321         * modules/fpending (EXTRA_DIST): Add __fpending.h.
38322         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
38323         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
38324         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
38325         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
38326         * modules/getdate (EXTRA_DIST): Add getdate.c.
38327         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
38328         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
38329         * modules/getpass (EXTRA_DIST): Add getpass.h.
38330         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
38331         * modules/group-member (EXTRA_DIST): Add group-member.h.
38332         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
38333         * modules/hash (EXTRA_DIST): Add hash.h.
38334         * modules/human (EXTRA_DIST): Add human.h.
38335         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
38336         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
38337         * modules/lchown (EXTRA_DIST): Add lchown.h.
38338         * modules/long-options (EXTRA_DIST): Add long-options.h.
38339         * modules/lstat (EXTRA_DIST): Add lstat.h.
38340         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
38341         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
38342         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
38343         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
38344         * modules/memxor (EXTRA_DIST): Add memxor.h.
38345         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
38346         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
38347         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
38348         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
38349         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
38350         * modules/physmem (EXTRA_DIST): Add physmem.h.
38351         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
38352         * modules/posixver (EXTRA_DIST): Add posixver.h.
38353         * modules/quote (EXTRA_DIST): Add quote.h.
38354         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
38355         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
38356         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
38357         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
38358         regex_internal.h regexec.c.
38359         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
38360         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
38361         * modules/same (EXTRA_DIST): Add same.h.
38362         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
38363         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
38364         * modules/savedir (EXTRA_DIST): Add savedir.h.
38365         * modules/sha1 (EXTRA_DIST): Add sha1.h.
38366         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
38367         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
38368         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
38369         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
38370         * modules/strdup (EXTRA_DIST): Add strdup.h.
38371         * modules/strftime (EXTRA_DIST): Add strftime.h.
38372         * modules/strndup (EXTRA_DIST): Add strndup.h.
38373         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
38374         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
38375         * modules/time_r (EXTRA_DIST): Add time_r.h.
38376         * modules/timespec (EXTRA_DIST): Add timespec.h.
38377         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
38378         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
38379         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
38380         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
38381         * modules/userspec (EXTRA_DIST): Add userspec.h.
38382         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
38383         * modules/utimens (EXTRA_DIST): Add utimens.h.
38384         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
38385         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
38386         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
38387         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
38388         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
38389         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
38390         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
38391         * modules/yesno (EXTRA_DIST): Add yesno.h.
38392
38393 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
38394
38395         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
38396
38397         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
38398         * m4/dev-ino.m4, same-inode.m4: Remove.
38399
38400         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
38401         * m4/acl.m4 (AC_FUNC_ACL):
38402         * m4/backupfile.m4 (gl_BACKUPFILE):
38403         * m4/c-strtod.m4 (gl_C99_STRTOLD):
38404         * m4/canon-host.m4 (gl_CANON_HOST):
38405         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
38406         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
38407         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
38408         * m4/cloexec.m4 (gl_CLOEXEC):
38409         * m4/close-stream.m4 (gl_CLOSE_STREAM):
38410         * m4/closeout.m4 (gl_CLOSEOUT):
38411         * m4/dirfd.m4 (gl_FUNC_DIRFD):
38412         * m4/dirname.m4 (gl_DIRNAME):
38413         * m4/exclude.m4 (gl_EXCLUDE):
38414         * m4/exitfail.m4 (gl_EXITFAIL):
38415         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
38416         * m4/file-type.m4 (gl_FILE_TYPE):
38417         * m4/filemode.m4 (gl_FILEMODE):
38418         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
38419         * m4/fpending.m4 (gl_FUNC_FPENDING):
38420         * m4/fprintftime.m4 (gl_FPRINTFTIME):
38421         * m4/fts.m4 (gl_FUNC_FTS):
38422         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
38423         * m4/getdate.m4 (gl_GETDATE):
38424         * m4/gethrxtime.m4 (gl_GETHRXTIME):
38425         * m4/getpagesize.m4 (gl_GETPAGESIZE):
38426         * m4/getpass.m4 (gl_FUNC_GETPASS):
38427         * m4/gettime.m4 (gl_GETTIME):
38428         * m4/getugroups.m4 (gl_GETUGROUPS):
38429         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
38430         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
38431         * m4/hard-locale.m4 (gl_HARD_LOCALE):
38432         * m4/hash.m4 (gl_HASH):
38433         * m4/idcache.m4 (gl_IDCACHE):
38434         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
38435         * m4/lchown.m4 (gl_FUNC_LCHOWN):
38436         * m4/long-options.m4 (gl_LONG_OPTIONS):
38437         * m4/lstat.m4 (gl_FUNC_LSTAT):
38438         * m4/md5.m4 (gl_MD5):
38439         * m4/memcasecmp.m4 (gl_MEMCASECMP):
38440         * m4/memcoll.m4 (gl_MEMCOLL):
38441         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
38442         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
38443         * m4/memxor.m4 (gl_MEMXOR):
38444         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
38445         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
38446         * m4/modechange.m4 (gl_MODECHANGE):
38447         * m4/mountlist.m4 (gl_MOUNTLIST):
38448         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38449         * m4/openat.m4 (gl_FUNC_OPENAT):
38450         * m4/pathmax.m4 (gl_PATHMAX):
38451         * m4/physmem.m4 (gl_PHYSMEM):
38452         * m4/posixtm.m4 (gl_POSIXTM):
38453         * m4/posixver.m4 (gl_POSIXVER):
38454         * m4/quote.m4 (gl_QUOTE):
38455         * m4/quotearg.m4 (gl_QUOTEARG):
38456         * m4/readtokens.m4 (gl_READTOKENS):
38457         * m4/readutmp.m4 (gl_READUTMP):
38458         * m4/regex.m4 (gl_REGEX):
38459         * m4/safe-read.m4 (gl_SAFE_READ):
38460         * m4/safe-write.m4 (gl_SAFE_WRITE):
38461         * m4/same.m4 (gl_SAME):
38462         * m4/save-cwd.m4 (gl_SAVE_CWD):
38463         * m4/savedir.m4 (gl_SAVEDIR):
38464         * m4/settime.m4 (gl_SETTIME):
38465         * m4/sha1.m4 (gl_SHA1):
38466         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
38467         * m4/stat-macros.m4 (gl_STAT_MACROS):
38468         * m4/stat-time.m4 (gl_STAT_TIME):
38469         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
38470         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
38471         * m4/strdup.m4 (gl_FUNC_STRDUP):
38472         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
38473         * m4/strndup.m4 (gl_FUNC_STRNDUP):
38474         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
38475         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
38476         * m4/time_r.m4 (gl_TIME_R):
38477         * m4/timespec.m4 (gl_TIMESPEC):
38478         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
38479         * m4/unlinkdir.m4 (gl_UNLINKDIR):
38480         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
38481         * m4/userspec.m4 (gl_USERSPEC):
38482         * m4/utimecmp.m4 (gl_UTIMECMP):
38483         * m4/utimens.m4 (gl_UTIMENS):
38484         * m4/xalloc.m4 (gl_XALLOC):
38485         * m4/xgetcwd.m4 (gl_XGETCWD):
38486         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
38487         * m4/xreadlink.m4 (gl_XREADLINK):
38488         * m4/xstrtod.m4 (gl_XSTRTOD):
38489         * m4/yesno.m4 (gl_YESNO):
38490         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
38491         to get the necessary .h files and whatnot.
38492
38493 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
38494             Bruno Haible  <bruno@clisp.org>
38495
38496         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
38497         /bin/sh understanding of '!' conditional negation.
38498
38499 2006-08-21  Jim Meyering  <jim@meyering.net>
38500
38501         * modules/openat (Depends-on): Really alphabetize.
38502
38503         * modules/acl (Depends-on): Add error and quote.
38504
38505         * check-module (find_included_lib_files): Add at-func.c to the
38506         ok-to-include-more-than-once white list.
38507
38508         * modules/openat (Depends-on): Add lstat.  Alphabetize.
38509
38510 2006-08-21  Bruno Haible  <bruno@clisp.org>
38511
38512         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38513         Emit a pkgdata_DATA variable only if some snippets add contents to it.
38514         Reported by Martin Lambers <marlam@marlam.de>.
38515
38516 2006-08-21  Bruno Haible  <bruno@clisp.org>
38517
38518         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
38519         specify an installation location, don't emit a noinst_LIBRARIES or
38520         noinst_LTLIBRARIES assignment.
38521
38522 2006-08-21  Bruno Haible  <bruno@clisp.org>
38523
38524         BeOS portability.
38525         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
38526         BeOS has mbrtowc() but no <wctype.h>.
38527
38528 2006-08-21  Bruno Haible  <bruno@clisp.org>
38529
38530         BeOS portability.
38531         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
38532         exist.
38533
38534 2006-08-21  Bruno Haible  <bruno@clisp.org>
38535
38536         BeOS portability.
38537         * lib/mbchar.h: Include <wctype.h> only if it exists.
38538
38539 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
38540
38541         Remove files that are no longer needed by their respective modules.
38542         * m4/obstack.m4: Remove.
38543         * m4/strerror_r.m4: Remove.
38544         * m4/uint32_t.m4: Remove.
38545         * m4/uintptr_t.m4: Remove.
38546         * m4/ullong_max.m4: Remove.
38547         * m4/xstrtoimax.m4: Remove.
38548         * m4/xstrtoumax.m4: Remove.
38549
38550         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
38551         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
38552         dependencies now capture this.
38553
38554         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
38555         Do not use AC_LIBSOURCES, since gnulib modules now do this.
38556         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
38557         * m4/human.m4 (gl_HUMAN): Likewise.
38558         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
38559         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
38560
38561         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
38562
38563         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
38564         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
38565         stdint.
38566         * m4/human.m4 (gl_HUMAN): Likewise.
38567         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
38568         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
38569         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
38570         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
38571         * m4/xstrtol (gl_XSTRTOL): Likewise.
38572
38573         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
38574         AC_TYPE_LONG_LONG_INT.
38575         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
38576         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
38577         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
38578         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
38579
38580         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
38581         on stdbool.
38582
38583         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
38584         (gl_PREREQ_XSTRTOUL): Remove.
38585
38586         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
38587
38588         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
38589         mode.
38590
38591 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
38592
38593         Add and change modules to make it easier for coreutils to use
38594         gnulib-tool.
38595         * modules/backupfile (Files): Remove m4/d-ino.m4.
38596         (Depends-on): Add d-ino.
38597         * modules/cycle-check (Depends-on): Add stdint.
38598         (lib_SOURCES): Add cycle-check.h.
38599         * modules/d-ino: New module.
38600         * modules/d-type: New module.
38601         * modules/error (Files): Remove m4/strerror_r.m4.
38602         * modules/filemode (Files): Add m4/st_dm_mode.m4.
38603         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
38604         m4/inttypes_h.m4, m4/uintmax_t.m4.
38605         (Depends-on): Add stdint.
38606         (lib_SOURCES): Add fsusage.h.
38607         * modules/getcwd (Files): Remove d-ino.m4.
38608         (Depends-on): Add d-ino.
38609         * modules/getndelim2 (Depends-on): Add stdint.
38610         * modules/glob (Files): Remove m4/d-type.m4.
38611         (Depends-on): Add d-type.
38612         * modules/host-os: New module.
38613         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
38614         m4/inttypes_h.m4, m4/uintmax_t.m4.
38615         * Depends-on: Add stdint.
38616         (lib_SOURCES): Add human.h.
38617         * modules/inttostr (Files): Remove m4/intmax_t.m4,
38618         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
38619         m4/uintmax_t.m4, m4/ulonglong.m4.
38620         (Depends-on): Add stdint.
38621         (EXTRA_DIST): Add inttostr.h.
38622         * modules/lchmod: New module.
38623         * modules/link-follow: New module.
38624         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
38625         (Depends-on): Add lchmod.
38626         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
38627         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
38628         (Depends-on): Add stdint.
38629         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
38630         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
38631         (Depends-on): Add stdint.
38632         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
38633         * modules/perl: New module.
38634         * modules/regex (Depends-on): Add stdint.
38635         * modules/rmdir-errno: New module.
38636         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
38637         m4/intmax_t.m4.
38638         (Depends-on): Add stdint.
38639         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
38640         m4/uintmax_t.m4.
38641         (Depends-on): Add stdint.
38642         * modules/unlink-busy: New module.
38643         * modules/utimecmp (Depends-on): Add stdint.
38644         * modules/uptime: New module.
38645         * modules/winsz-ioctl: New module.
38646         * modules/winsz-termios: New module.
38647         * modules/xnanosleep (Depends-on): Add nanosleep.
38648         * modules/ullong_max: Remove.
38649         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
38650         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
38651         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
38652         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
38653         (Depends-on): Add inttypes.
38654         (lib_SOURCES): Add xstrtol.h.
38655         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
38656         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
38657         * MODULES.html.sh: Move 'assert' into the assert section.
38658         Move 'dummy' into the linking section.
38659         Remove ullong_max.
38660         Add section for compatibility checks for POSIX:2001 functions,
38661         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
38662         winsz-ioctl, and winsz-termios into it.
38663         Add lchmod.
38664         Add top-level Misc section and put host-os, perl, and uptime
38665         into it.
38666
38667 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
38668
38669         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
38670         now assume the stdint module.  Do not include inttypes.h.
38671         * lib/fsusage.h: Likewise.
38672         * lib/getndelim2.c: Likewise.
38673         * lib/human.h: Likewise.
38674         * lib/inttostr.h: Likewise.
38675         * lib/obstack.c: Likewise.
38676         * lib/regex_internal.h: Likewise.
38677         * lib/tempname.c: Likewise.
38678         * lib/utimecmp.c: Likewise.
38679         * lib/xstrtol.h: Likewise.
38680
38681         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
38682
38683         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
38684         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
38685         * lib/xtime.h: Likewise.
38686
38687 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
38688
38689         * modules/openat (Files): Add lib/fchmodat.c.
38690         Fixes problem reported by Jay Youngman.
38691
38692 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
38693
38694         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
38695         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
38696
38697 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
38698             Bruno Haible  <bruno@clisp.org>
38699
38700         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
38701         and is a script that invokes bison. Tighten the code. Add comments.
38702
38703 2006-08-18  Jim Meyering  <jim@meyering.net>
38704
38705         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
38706         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
38707         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
38708         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
38709
38710 2006-08-18  Bruno Haible  <bruno@clisp.org>
38711
38712         * modules/bison-i18n: New file.
38713         * MODULES.html.sh (Internationalization functions): Add it.
38714
38715 2006-08-18  Bruno Haible  <bruno@clisp.org>
38716
38717         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
38718         sys/statvfs.h. When getmntinfo was found, check its declaration and
38719         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
38720
38721 2006-08-18  Bruno Haible  <bruno@clisp.org>
38722
38723         * m4/bison-i18n.m4: New file, from bison.
38724
38725 2006-08-18  Bruno Haible  <bruno@clisp.org>
38726
38727         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
38728         (ME_DUMMY): Treat "kernfs" as a dummy.
38729         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
38730
38731 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
38732
38733         Update from coreutils.
38734
38735         2006-08-15  Jim Meyering  <jim@meyering.net>
38736
38737         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
38738
38739         2006-01-17  Jim Meyering  <jim@meyering.net>
38740
38741         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
38742
38743         2006-01-11  Jim Meyering  <jim@meyering.net>
38744
38745         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
38746         Check for the lchmod function.
38747
38748 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
38749
38750         Update from coreutils.
38751
38752         * lib/__fpending.h: Add copyright notice.
38753         * lib/fprintftime.h: Likewise.
38754         * lib/savedir.c: Use (C) in copyright notice.
38755         * lib/savedir.h: Likewise.
38756
38757         2006-08-15  Jim Meyering  <jim@meyering.net>
38758
38759         * lib/at-func.c: New file, with the logic of all emulated at-functions.
38760         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
38761         in support of the EXPECTED_ERRNO macro.
38762         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
38763         definitions.  Instead, define the appropriate symbols and include
38764         "at-func.c".
38765         * lib/mkdirat.c (mkdirat): Likewise.
38766         * lib/fchmodat.c (fchmodat): Likewise.
38767         (ENOSYS): Remove definition.
38768         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
38769         it.  Don't include "unistd--.h" -- it wasn't ever used.
38770
38771         2006-01-17  Jim Meyering  <jim@meyering.net>
38772
38773         Rewrite fts.c not to change the current working directory,
38774         by using openat, fstatat, fdopendir, etc..
38775
38776         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
38777         (HAVE_OPENAT_SUPPORT): Define.
38778         [_LIBC] (fchdir): Don't undef or define; no longer used.
38779         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
38780         Now, this `function' always succeeds, and consumes its file descriptor
38781         parameter -- so callers must not close such FDs.  Update callers.
38782         (diropen_fd, opendirat, cwd_advance_fd): New functions.
38783         (diropen): Add parameter, SP.  Adjust all callers.
38784         Implement using diropen_fd, rather than open.
38785         (fts_open): Initialize new member, fts_cwd_fd.
38786         Remove fts_rft-setting code.
38787         (fts_close): Close fts_cwd_fd, if necessary.
38788         (__opendir2): Define in terms of opendir or opendirat,
38789         depending on whether the FST_NOCHDIR flag is set.
38790         (fts_build): Since fts_safe_changedir consumes its FD, and since
38791         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
38792         and close the dup'd file descriptor upon failure.
38793         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
38794         (fts_safe_changedir): Tweak semantics to reflect that this function
38795         now calls cwd_advance_fd and hence consumes its FD argument.
38796         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
38797         [struct FTS] (fts_rft): Remove now-unused member.
38798         [struct FTS] (fts_cycle.state): Improve comment.
38799
38800         * lib/openat.c (openat_needs_fchdir): New function.
38801         * lib/openat.h (openat_needs_fchdir): Declare it.
38802
38803 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
38804
38805         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
38806         Problem and fix reported by Pádraig Brady in
38807         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
38808
38809 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
38810
38811         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
38812
38813 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
38814
38815         * lib/memcoll.c (memcoll): Optimize for the common case where the
38816         arguments are bytewise equal.
38817
38818 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
38819
38820         * doc/regexprops-generic.texi: Add a copyright notice.
38821
38822 2006-08-15  Bruno Haible  <bruno@clisp.org>
38823
38824         * modules/tmpdir (License): Change to LGPL.
38825
38826 2006-08-15  Bruno Haible  <bruno@clisp.org>
38827
38828         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
38829         module.
38830
38831 2006-08-14  Simon Josefsson  <jas@extundo.com>
38832
38833         * config/srclist.txt: Add gnupload.
38834
38835 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
38836
38837         Change copyright notice from LGPL 2 to GPL 2, since that's the
38838         standard form used in the gnulib repository.
38839         * tests/test-lock.c: Likewise.
38840         * tests/test-stdint.c: Likewise.
38841         * tests/test-tls.c: Likewise.
38842
38843         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
38844         prelude-manager.  User shorter URLs for GNU projects, without '?'.
38845         Add copyright notice.
38846
38847         * check-module: Add copyright notice.  Output a copyright
38848         notice if "--version" is specified.
38849         * modules/COPYING: New file.
38850         * tests/test-getaddrinfo.c: Add copyright notice.
38851         * tests/test-verify.c: Likewise.
38852
38853 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
38854
38855         Change copyright notice from LGPL 2 to GPL 2, since that's the
38856         standard form used in the gnulib repository.
38857         * lib/lock.c: LGPL -> GPL.
38858         * lib/lock.h: Likewise.
38859         * lib/strnlen1.c: Likewise.
38860         * lib/strnlen1.h: Likewise.
38861         * lib/tls.c: Likewise.
38862         * lib/tls.h: Likewise.
38863         * lib/tmpdir.c: Likewise.
38864
38865         * lib/TODO: Remove; this belongs only in coreutils.
38866
38867 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
38868
38869         Add copyright notices to long-enough files that lack them, since
38870         otherwise the files aren't clearly free.  Use the same notice that
38871         getdate.texi already uses.
38872         * doc/alloca-opt.texi: Add copyright notice.
38873         * doc/alloca.texi: Likewise.
38874         * doc/ctime.texi: Likewise.
38875         * doc/functions.texi: Likewise.
38876         * doc/gcd.texi: Likewise.
38877         * doc/gnulib-tool.texi: Likewise.
38878         * doc/inet_ntoa.texi: Likewise.
38879         * doc/visibility.texi: Likewise.
38880
38881         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
38882         * doc/quote.texi: Add copyright notice.
38883
38884         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
38885         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
38886         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
38887         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
38888         is now obsolete, and give a pointer to the Sun list.
38889         Add copyright notice.
38890
38891 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
38892
38893         * config/srclistvars.sh: Add copyright notice.
38894
38895 2006-08-14  Eric Blake  <ebb9@byu.net>
38896
38897         Import the following change from libc:
38898
38899         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
38900
38901         Upstream bug 2997.
38902         * lib/misc/error.c: Add space between program name and message if file
38903         name is missing.
38904
38905 2006-08-12  Karl Berry  <karl@gnu.org>
38906
38907         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
38908         remove, these originate in gnulib now.
38909
38910 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38911
38912         * doc/Makefile (standards.info standards.html standards.dvi):
38913         Also depend on make-stds.texi.
38914
38915 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
38916
38917         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
38918         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
38919
38920         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
38921         in wchar_t.  Problem reported by Eric Blake.
38922
38923         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
38924         LEN is smaller than SIZE.  Suggested by Bruno Haible.
38925         Also, help the compiler to keep LEN in a register.
38926
38927 2006-08-11  Eric Blake  <ebb9@byu.net>
38928
38929         * users.txt: Sort.  Add tar.
38930
38931 2006-08-11  Bruno Haible  <bruno@clisp.org>
38932
38933         * users.txt: New file.
38934
38935 2006-08-11  Bruno Haible  <bruno@clisp.org>
38936
38937         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
38938         before <wchar.h>. Needed for OSF/1 and BSD/OS.
38939
38940 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
38941
38942         * modules/snprintf (Depends-on): Remove minmax.
38943         (Maintainer): Add self and Bruno.
38944
38945 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
38946
38947         * lib/.cppi-disable: Add snprintf.h, socket_.h.
38948         * lib/snprintf.c: Include <errno.h> and <limits.h>.
38949         (EOVERFLOW): Define if the system does not.
38950         Do not include "minmax.h"; it wasn't used.
38951         (snprintf): Don't assume size_t promotes to an unsigned type.
38952         Fix bug when generated string was too long for the buffer: the
38953         buffer's contents are supposed to be the initial prefix of the
38954         output.  Don't assume vasnprintf returns EOVERFLOW if the size
38955         exceeds INT_MAX; do the check ourselves.
38956
38957         Import the following changes from libc:
38958
38959         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
38960
38961         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
38962         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
38963         set wc to the byte which couldn't be converted.
38964         (re_string_reconstruct): Don't clear valid_raw_len before calling
38965         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
38966         tip_context using re_string_context_at.
38967
38968         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
38969
38970         * lib/posix/regex.h: g++ still cannot handled [restrict].
38971
38972         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
38973
38974         * lib/posix/regex.h: Remove special handling for VMS.
38975
38976 2006-08-10  Jim Meyering  <jim@meyering.net>
38977
38978         * modules/same-inode: New module.
38979         * modules/dev-ino: New module.
38980         * modules/cycle-check: Depend on these modules, rather than simply
38981         including their .h files.
38982         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
38983         required via m4/cycle-check.m4.
38984         * modules/same: Depend on new same-inode module, rather than
38985         including same-inode.h.
38986         * modules/chdir-safer: New file.
38987
38988         * modules/chown (Depends-on): Add stat-macros.
38989
38990 2006-08-10  Jim Meyering  <jim@meyering.net>
38991
38992         * m4/cycle-check.m4: New file.
38993         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
38994         * m4/dev-ino.m4, m4/same-inode.m4: New files.
38995
38996 2006-08-10  Eric Blake  <ebb9@byu.net>
38997
38998         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
38999         in from original proposal.
39000
39001 2006-08-10  Eric Blake  <ebb9@byu.net>
39002         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39003
39004         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
39005         namespace.
39006
39007 2006-08-10  Bruno Haible  <bruno@clisp.org>
39008
39009         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
39010         as well.
39011
39012 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
39013
39014         Sync from coreutils.
39015
39016         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
39017
39018         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
39019         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
39020
39021 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
39022
39023         * modules/restrict: Remove; no longer needed now that we assume
39024         Autoconf 2.59 or later.
39025         * MODULES.html.sh: Remove 'restrict'.
39026         * modules/argp (Depends-on): Remove 'restrict'.
39027         * modules/base64 (Depends-on): Likewise.
39028         * modules/gc (Depends-on): Likewise.
39029         * modules/getaddrinfo (Depends-on): Likewise.
39030         * modules/glob (Depends-on): Likewise.
39031         * modules/inet_ntop (Depends-on): Likewise.
39032         * modules/inet_pton (Depends-on): Likewise.
39033         * modules/memxor (Depends-on): Likewise.
39034         * modules/regex (Depends-on): Likewise.
39035         * modules/strtok_r (Depends-on): Likewise.
39036         * modules/time_r (Depends-on): Likewise.
39037
39038 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
39039
39040         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
39041         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
39042         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
39043         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
39044         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
39045         * m4/memxor.m4 (gl_MEMXOR): Likewise.
39046         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
39047         gl_C_RESTRICT replaced by AC_C_RESTRICT.
39048
39049         Merge from coreutils.
39050         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
39051         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
39052         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39053         * m4/time_r.m4 (gl_TIME_R): Likewise.
39054
39055 2006-08-09  Karl Berry  <karl@gnu.org>
39056
39057         * config/srclist.txt: no more gettext-tools, per Bruno.
39058
39059 2006-08-08  Eric Blake  <ebb9@byu.net>
39060
39061         * modules/verror: New module.
39062         * MODULES.html.sh: Document it.
39063
39064 2006-08-08  Eric Blake  <ebb9@byu.net>
39065
39066         * lib/verror.h, lib/verror.c: New files.
39067
39068 2006-08-08  Eric Blake  <ebb9@byu.net>
39069
39070         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
39071         verror_at_line output complies with GNU Coding Standards even when
39072         file is NULL.
39073
39074 2006-08-07  Bruno Haible  <bruno@clisp.org>
39075
39076         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
39077         versions of AIX.
39078         Reported by Ralf Wildenhues.
39079
39080 2006-08-07  Bruno Haible  <bruno@clisp.org>
39081
39082         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
39083         in an AC_DEFUN. Needed so that the autoconf snippets can use
39084         AC_REQUIRE.
39085
39086 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39087
39088         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39089         Initialize pkgdata_DATA.
39090         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
39091         overriding it.
39092
39093 2006-08-06  Eric Blake  <ebb9@byu.net>
39094
39095         * lib/error.h: Fold in some upstream changes from glibc.
39096         * lib/error.c: Likewise.
39097
39098 2006-08-04  Bruno Haible  <bruno@clisp.org>
39099
39100         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39101         Make the mostlyclean-local rule depend on mostlyclean-generic.
39102         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
39103
39104 2006-07-31  Bruno Haible  <bruno@clisp.org>
39105
39106         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
39107         <stdlib.h>, <string.h>.
39108
39109 2006-07-30  Bruno Haible  <bruno@clisp.org>
39110
39111         * modules/readlink (License): Change to LGPL.
39112
39113 2006-07-30  Bruno Haible  <bruno@clisp.org>
39114
39115         * modules/javaversion (Makefile.am): Distribute javaversion.java and
39116         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
39117         set PKGDATADIR to point to it.
39118
39119 2006-07-30  Bruno Haible  <bruno@clisp.org>
39120
39121         * modules/csharpexec (configure.ac): Comment out macro invocation.
39122         * modules/javaexec (configure.ac): Likewise.
39123         * modules/javacomp-script (configure.ac): Likewise.
39124
39125         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
39126
39127 2006-07-30  Bruno Haible  <bruno@clisp.org>
39128
39129         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
39130         linked-list.
39131
39132 2006-07-30  Bruno Haible  <bruno@clisp.org>
39133
39134         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
39135
39136 2006-07-30  Bruno Haible  <bruno@clisp.org>
39137
39138         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39139         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
39140         get removed.
39141
39142 2006-07-29  Bruno Haible  <bruno@clisp.org>
39143
39144         Make it possible for gnulib-tool to work with locally modified or
39145         augmented gnulib repositories.
39146         * gnulib-tool (func_usage): Document --local-dir option.
39147         (local_gnulib_dir): New variable.
39148         Handle --local-dir option.
39149         (func_lookup_file): New function.
39150         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
39151         (func_get_description, func_get_filelist, func_get_description,
39152         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
39153         func_get_automake_snippet, func_get_include_directive,
39154         func_get_license, func_get_maintainer): Use func_lookup_file.
39155         (func_import, func_create_testdir): Use func_lookup_file.
39156
39157 2006-07-29  Bruno Haible  <bruno@clisp.org>
39158
39159         * modules/setenv (Depends-on): Add unistd.
39160
39161 2006-07-29  Bruno Haible  <bruno@clisp.org>
39162
39163         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
39164
39165 2006-07-29  Bruno Haible  <bruno@clisp.org>
39166
39167         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
39168
39169 2006-07-29  Bruno Haible  <bruno@clisp.org>
39170
39171         * gnulib-tool (import, update): If there is no Makefile.am, look at
39172         aclocal.m4, instead of bailing out.
39173
39174 2006-07-29  Bruno Haible  <bruno@clisp.org>
39175
39176         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
39177         Categorize the options by when they are useful.
39178
39179 2006-07-29  Bruno Haible  <bruno@clisp.org>
39180
39181         * gnulib-tool (func_usage): Document option --no-libtool.
39182         Handle option --no-libtool.
39183         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
39184         for changed semantics of $libtool variable.
39185         (func_import): Likewise. If libtool is not used, show this through
39186         an option --no-libtool.
39187         (func_create_testdir): Update.
39188
39189 2006-07-29  Bruno Haible  <bruno@clisp.org>
39190
39191         * gnulib-tool (func_import): Extend error message about missing
39192         --doc-base.
39193
39194 2006-07-29  Bruno Haible  <bruno@clisp.org>
39195
39196         * gnulib-tool (func_import): Don't create the $docbase directory if
39197         there is no file to store there.
39198
39199 2006-07-29  Bruno Haible  <bruno@clisp.org>
39200
39201         * gnulib-tool (autoconf_minversion): If a --dir option is given and
39202         relevant, look for configure.ac there, not in the current directory.
39203         Also use a simple search for AC_PREREQ, not "autoconf --trace".
39204
39205 2006-07-29  Bruno Haible  <bruno@clisp.org>
39206
39207         * gnulib-tool (SORT): New variable.
39208         (func_usage): Undocument --assume-autoconf option.
39209         Remove --assume-autoconf option handling.
39210         (autoconf_minversion): Determine from the contents of configure.ac.
39211         (func_import): Remove autoconf_minversion handling.
39212         Suggested by Eric Blake.
39213
39214 2006-07-29  Bruno Haible  <bruno@clisp.org>
39215
39216         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
39217
39218 2006-07-29  Bruno Haible  <bruno@clisp.org>
39219
39220         * config/srclist.txt (*setenv.[ch]): Remove rules.
39221
39222 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39223
39224         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
39225
39226 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39227
39228         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
39229         arpa/inet.h.
39230
39231 2006-07-28  Simon Josefsson  <jas@extundo.com>
39232
39233         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
39234         * modules/inet_pton (Depends-on): Likewise.
39235
39236 2006-07-28  Simon Josefsson  <jas@extundo.com>
39237
39238         * m4/netinet_in_h.m4: New file.
39239
39240 2006-07-28  Simon Josefsson  <jas@extundo.com>
39241
39242         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
39243         #include's.
39244
39245 2006-07-28  Simon Josefsson  <jas@extundo.com>
39246
39247         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
39248         #include's.
39249
39250 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
39251
39252         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
39253         setgid on directories only if they set these bits.
39254         * lib/modechange.h: Remove obsolete comment about masks.
39255
39256 2006-07-28  Eric Blake  <ebb9@byu.net>
39257
39258         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
39259         macro expansion.
39260
39261 2006-07-28  Bruno Haible  <bruno@clisp.org>
39262
39263         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
39264
39265 2006-07-28  Bruno Haible  <bruno@clisp.org>
39266
39267         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
39268
39269 2006-07-28  Bruno Haible  <bruno@clisp.org>
39270
39271         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
39272         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
39273         Define fallbacks.
39274         Avoids link error on FreeBSD 4.x.
39275         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39276
39277         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
39278         encoding.
39279         * lib/mbswidth.c (iswcntrl): Likewise.
39280
39281 2006-07-27  Bruno Haible  <bruno@clisp.org>
39282
39283         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
39284         test.
39285
39286 2006-07-27  Bruno Haible  <bruno@clisp.org>
39287
39288         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
39289         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
39290         defined.
39291
39292 2006-07-26  Eric Blake  <ebb9@byu.net>
39293
39294         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
39295
39296 2006-07-26  Eric Blake  <ebb9@byu.net>
39297
39298         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
39299         like mingw that lack mkstemp.
39300         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
39301         avoid compilation warning on mingw.
39302
39303 2006-07-26  Bruno Haible  <bruno@clisp.org>
39304
39305         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
39306         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
39307         INT_FAST*_MIN, INTPTR_MIN.
39308
39309 2006-07-25  Bruno Haible  <bruno@clisp.org>
39310
39311         * modules/version-etc (Depends-on): Add stdarg.
39312
39313 2006-07-25  Bruno Haible  <bruno@clisp.org>
39314
39315         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
39316         complex commands.
39317
39318 2006-07-25  Bruno Haible  <bruno@clisp.org>
39319
39320         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
39321         defined in <stdarg.h> or config.h.
39322
39323 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
39324
39325         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
39326         (gl_STDIO_SAFER): Remove.
39327
39328 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
39329
39330         * MODULES.html.sh (File stream based Input/Output):
39331         Add fopen-safer, tmpfile-safer; remove stdio-safer.
39332         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
39333         * modules/fopen-safer, modules/tmpfile-safer: New files.
39334         * modules/stdio-safer: Remove.
39335
39336 2006-07-24  Bruno Haible  <bruno@clisp.org>
39337
39338         * modules/tmpdir: New file.
39339         * MODULES.html.sh (File system functions): Add it.
39340
39341 2006-07-24  Bruno Haible  <bruno@clisp.org>
39342
39343         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
39344         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
39345
39346 2006-07-24  Bruno Haible  <bruno@clisp.org>
39347
39348         * modules/clean-temp: New file.
39349
39350 2006-07-24  Bruno Haible  <bruno@clisp.org>
39351
39352         * m4/tmpdir.m4: New file, from GNU gettext.
39353
39354 2006-07-24  Bruno Haible  <bruno@clisp.org>
39355
39356         * lib/tmpdir.h: New file, from GNU gettext.
39357         * lib/tmpdir.c: New file, from GNU gettext.
39358
39359 2006-07-24  Bruno Haible  <bruno@clisp.org>
39360
39361         * lib/clean-temp.h: New file, from GNU gettext.
39362         * lib/clean-temp.c: New file, from GNU gettext.
39363
39364 2006-07-23  Eric Blake  <ebb9@byu.net>
39365
39366         * modules/stdio-safer (Files): Add tmpfile-safer.c.
39367         (Depends-on): Add binary-io.
39368
39369 2006-07-23  Eric Blake  <ebb9@byu.net>
39370
39371         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
39372
39373 2006-07-23  Eric Blake  <ebb9@byu.net>
39374
39375         * lib/tmpfile-safer.c: New file.
39376         * lib/stdio-safer.h (fopen_safer): Add prototype.
39377         * lib/stdio--.h (tmpfile): Make safer.
39378
39379 2006-07-23  Bruno Haible  <bruno@clisp.org>
39380
39381         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
39382         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
39383         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
39384         gl_linked_remove_at): Use it.
39385
39386 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39387         and Simon Josefsson <jas@extundo.com>
39388
39389         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
39390
39391         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
39392
39393 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
39394
39395         * modules/close-stream: New file.
39396         * modules/closeout (Description): Make it clear that it exits
39397         with a diagnostic on error.
39398         (Depends-on): Add close-stream.  Remove fpending, stdbool.
39399         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
39400
39401 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
39402
39403         * m4/close-stream.m4: New file.
39404
39405 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
39406
39407         * lib/close-stream.c, lib/close-stream.h: New files.
39408
39409 2006-07-22  Bruno Haible  <bruno@clisp.org>
39410
39411         Merge from GNU gettext 0.15.
39412
39413         2006-05-01  Bruno Haible  <bruno@clisp.org>
39414
39415                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
39416
39417         2006-07-22  Bruno Haible  <bruno@clisp.org>
39418
39419                 * modules/javaversion: New file.
39420                 * MODULES.html.sh (Java): Add javaversion.
39421
39422         2006-03-12  Bruno Haible  <bruno@clisp.org>
39423
39424                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
39425
39426         2005-12-04  Bruno Haible  <bruno@clisp.org>
39427
39428                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
39429                 (untested).
39430
39431         2006-06-21  Bruno Haible  <bruno@clisp.org>
39432
39433                 Avoid warnings from recent versions of mcs.
39434                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
39435                 -o, -L, -r any more. Use options documented since mcs-1.0
39436                 instead. Similarly for -g.
39437
39438         2005-12-04  Bruno Haible  <bruno@clisp.org>
39439
39440                 * build-aux/csharpcomp.sh.in: Suffix for resources is
39441                 .resources, not .resource.
39442
39443         2005-07-09  Bruno Haible  <bruno@clisp.org>
39444
39445                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
39446                 add a .dll suffix.
39447                 Reported by Mark Junker <mjscod@gmx.de>.
39448
39449         2006-07-22  Bruno Haible  <bruno@clisp.org>
39450
39451                 * modules/gettext: Upgrade to gettext-0.15.
39452                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
39453                 m4/visibility.m4.
39454                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
39455
39456 2006-07-22  Bruno Haible  <bruno@clisp.org>
39457
39458         Merge from GNU gettext 0.15.
39459
39460         2006-03-25  Bruno Haible  <bruno@clisp.org>
39461
39462                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
39463
39464         2006-07-21  Bruno Haible  <bruno@clisp.org>
39465
39466                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
39467                 "1.1".
39468
39469         2006-05-09  Bruno Haible  <bruno@clisp.org>
39470
39471                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
39472                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
39473                 for the conftestver execution.
39474
39475         2006-05-01  Bruno Haible  <bruno@clisp.org>
39476
39477                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
39478                 optional target-version argument. Verify that the compiler
39479                 groks source of the specified source-version, or add -source
39480                 option as necessary. Verify that the compiler produces
39481                 bytecode in the specified target-version, or add -target and
39482                 -source options as necessary. Make the result of the test
39483                 available as variable CONF_JAVAC. Also log error output in
39484                 config.log.
39485
39486         2006-03-11  Bruno Haible  <bruno@clisp.org>
39487
39488                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
39489
39490         2006-05-09  Bruno Haible  <bruno@clisp.org>
39491
39492                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
39493                 CLASSPATH_SEPARATOR to a semicolon.
39494
39495         2006-03-12  Bruno Haible  <bruno@clisp.org>
39496
39497                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
39498                 available as variable CONF_JAVA, for subsequent autoconf
39499                 tests. Also log error output in config.log.
39500
39501         2006-07-19  Bruno Haible  <bruno@clisp.org>
39502
39503                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
39504                 that getline works on glibc2 systems. Needed to avoid trouble
39505                 in relocatable.c.
39506                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
39507
39508         2005-12-04  Bruno Haible  <bruno@clisp.org>
39509
39510                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
39511                 launcher (untested).
39512
39513         2005-12-04  Bruno Haible  <bruno@clisp.org>
39514
39515                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
39516
39517         2006-07-22  Bruno Haible  <bruno@clisp.org>
39518
39519                 * gettext.m4: Update from GNU gettext-0.15.
39520                 * nls.m4: Likewise.
39521                 * po.m4: Likewise.
39522                 * inttypes-pri.m4: Likewise.
39523                 * inttypes-h.m4: Renamed from inttypes.m4.
39524                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
39525
39526 2006-07-22  Bruno Haible  <bruno@clisp.org>
39527
39528         Merge from GNU gettext 0.15.
39529
39530         2005-07-05  Bruno Haible  <bruno@clisp.org>
39531
39532                 * printf-args.c (printf_fetchargs): Work around broken
39533                 definition of wint_t on mingw.
39534
39535         2005-02-12  Bruno Haible  <bruno@clisp.org>
39536
39537                 * xallocsa.h: Add extern "C" for C++.
39538
39539         2006-05-17  Bruno Haible  <bruno@clisp.org>
39540
39541                 Cygwin portability.
39542                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
39543
39544         2006-04-30  Bruno Haible  <bruno@clisp.org>
39545
39546                 * progreloc.c: Include <mach-o/dyld.h> if available.
39547                 (find_executable): Use _NSGetExecutablePath when possible.
39548
39549         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
39550
39551                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
39552                 function.
39553
39554         2005-12-29  Bruno Haible  <bruno@clisp.org>
39555
39556                 * progreloc.c (set_program_name_and_installdir): Fix
39557                 compilation error.
39558
39559         2005-12-04  Bruno Haible  <bruno@clisp.org>
39560
39561                 Cygwin portability.
39562                 * progreloc.c: Include <windows.h> also on Cygwin.
39563                 (find_executable): Add support for Cygwin.
39564                 (set_program_name_and_installdir): Handle also platforms with
39565                 nonempty EXEEXT.
39566
39567         2006-07-11  Bruno Haible  <bruno@clisp.org>
39568
39569                 * javacomp.c: Fix a comment.
39570                 Reported by Jim Meyering.
39571
39572         2006-04-30  Bruno Haible  <bruno@clisp.org>
39573
39574                 * javacomp.h (compile_java_class): Add source_version,
39575                 target_version arguments.
39576                 * javacomp.c: Rewritten to choose only a compiler that
39577                 respects the specified source_version and target_version.
39578
39579         2006-06-27  Bruno Haible  <bruno@clisp.org>
39580
39581                 Assume correct S_ISDIR macro.
39582                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
39583
39584         2006-07-22  Bruno Haible  <bruno@clisp.org>
39585
39586                 * javaversion.h: New file, from GNU gettext.
39587                 * javaversion.c: New file, from GNU gettext.
39588                 * javaversion.java: New file, from GNU gettext.
39589                 * javaversion.class: New file, from GNU gettext.
39590
39591         2006-05-17  Bruno Haible  <bruno@clisp.org>
39592
39593                 Cygwin portability.
39594                 * javaexec.c (execute_java_class): Test for jview program
39595                 also on Cygwin.
39596
39597         2006-04-09  Bruno Haible  <bruno@clisp.org>
39598
39599                 * fatal-signal.c: Don't include string.h.
39600                 (at_fatal_signal): Use a copying loop instead of memcpy.
39601
39602         2005-12-04  Bruno Haible  <bruno@clisp.org>
39603
39604                 * csharpexec.c: Add support for 'clix' launcher (untested).
39605                 (execute_csharp_using_sscli): New function.
39606                 (execute_csharp_program): Call it.
39607
39608         2006-06-21  Bruno Haible  <bruno@clisp.org>
39609
39610                 Avoid warnings from recent versions of mcs.
39611                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
39612                 -o, -L, -r any more. Use options documented since mcs-1.0
39613                 instead. Similarly for -g.
39614
39615         2005-07-09  Bruno Haible  <bruno@clisp.org>
39616
39617                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
39618                 add a .dll suffix.
39619                 Reported by Mark Junker <mjscod@gmx.de>.
39620
39621         2006-06-17  Bruno Haible  <bruno@clisp.org>
39622
39623                 * config.charset: Update for NetBSD 3.0.
39624
39625         2006-05-17  Bruno Haible  <bruno@clisp.org>
39626
39627                 Cygwin portability.
39628                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
39629
39630         2006-05-16  Bruno Haible  <bruno@clisp.org>
39631
39632                 * localcharset.c [CYGWIN]: Include <windows.h>.
39633                 (get_charset_aliases): For Cygwin, return the same CPxxx
39634                 aliases list as under WIN32.
39635                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
39636                 the environment variables. Fall back to GetACP().
39637
39638         2006-04-05  Bruno Haible  <bruno@clisp.org>
39639
39640                 * config.charset: Update Juan Manuel Guerrero's address.
39641
39642         2005-02-12  Bruno Haible  <bruno@clisp.org>
39643
39644                 * allocsa.h: Add extern "C" for C++.
39645
39646         2005-02-10  Bruno Haible  <bruno@clisp.org>
39647
39648                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
39649                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
39650
39651         2006-07-22  Bruno Haible  <bruno@clisp.org>
39652
39653                 * gettext.h: Update to GNU gettext-0.15.
39654
39655 2006-07-22  Bruno Haible  <bruno@clisp.org>
39656
39657         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
39658         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
39659         lib-prefix.m4, longdouble.m4, ssize_t.m4.
39660
39661 2006-07-21  Eric Blake  <ebb9@byu.net>
39662
39663         * modules/stdlib-safer: New file.
39664         * MODULES.html.sh (File stream based Input/Output): Add
39665         stdlib-safer.
39666
39667 2006-07-21  Eric Blake  <ebb9@byu.net>
39668
39669         * lib/stdlib-safer.h: New file from coreutils, required by
39670         stdlib--.h.
39671
39672 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
39673
39674         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
39675
39676 2006-07-20  Bruno Haible  <bruno@clisp.org>
39677
39678         * gnulib-tool: Recognize new option --assume-autoconf.
39679         (autoconf_minversion): New variable.
39680         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
39681
39682 2006-07-20  Bruno Haible  <bruno@clisp.org>
39683
39684         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
39685
39686 2006-07-19  Derek R. Price  <derek@ximbiot.com>
39687
39688         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
39689         Reindent and repaginate.
39690
39691 2006-07-19  Derek Price  <derek@ximbiot.com>
39692
39693         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
39694         Correct grammar.
39695
39696 2006-07-17  Bruno Haible  <bruno@clisp.org>
39697
39698         * modules/list: New file.
39699         * modules/array-list: New file.
39700         * modules/carray-list, modules/carray-list-tests: New files.
39701         * modules/linked-list, modules/linked-list-tests: New files.
39702         * modules/avltree-list, modules/avltree-list-tests: New files.
39703         * modules/rbtree-list, modules/rbtree-list-tests: New files.
39704         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
39705         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
39706         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
39707         * modules/oset: New file.
39708         * modules/array-oset: New file.
39709         * modules/avltree-oset, modules/avltree-oset-tests: New files.
39710         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
39711         * tests/test-carray_list.c: New file.
39712         * tests/test-linked_list.c: New file.
39713         * tests/test-avltree_list.c: New file.
39714         * tests/test-rbtree_list.c: New file.
39715         * tests/test-linkedhash_list.c: New file.
39716         * tests/test-avltreehash_list.c: New file.
39717         * tests/test-rbtreehash_list.c: New file.
39718         * tests/test-avltree_oset.c: New file.
39719         * tests/test-rbtree_oset.c: New file.
39720         * MODULES.html.sh (Container data structures): New section.
39721
39722 2006-07-17  Bruno Haible  <bruno@clisp.org>
39723
39724         * m4/gl_list.m4: New file.
39725
39726 2006-07-17  Bruno Haible  <bruno@clisp.org>
39727
39728         * lib/gl_list.h: New file.
39729         * lib/gl_list.c: New file.
39730         * lib/gl_array_list.h: New file.
39731         * lib/gl_array_list.c: New file.
39732         * lib/gl_carray_list.h: New file.
39733         * lib/gl_carray_list.c: New file.
39734         * lib/gl_linked_list.h: New file.
39735         * lib/gl_linked_list.c: New file.
39736         * lib/gl_anylinked_list1.h: New file.
39737         * lib/gl_anylinked_list2.h: New file.
39738         * lib/gl_avltree_list.h: New file.
39739         * lib/gl_avltree_list.c: New file.
39740         * lib/gl_anyavltree_list1.h: New file.
39741         * lib/gl_anyavltree_list2.h: New file.
39742         * lib/gl_rbtree_list.h: New file.
39743         * lib/gl_rbtree_list.c: New file.
39744         * lib/gl_anyrbtree_list1.h: New file.
39745         * lib/gl_anyrbtree_list2.h: New file.
39746         * lib/gl_anytree_list1.h: New file.
39747         * lib/gl_anytree_list2.h: New file.
39748         * lib/gl_linkedhash_list.h: New file.
39749         * lib/gl_linkedhash_list.c: New file.
39750         * lib/gl_anyhash_list1.h: New file.
39751         * lib/gl_anyhash_list2.h: New file.
39752         * lib/gl_avltreehash_list.h: New file.
39753         * lib/gl_avltreehash_list.c: New file.
39754         * lib/gl_rbtreehash_list.h: New file.
39755         * lib/gl_rbtreehash_list.c: New file.
39756         * lib/gl_anytreehash_list1.h: New file.
39757         * lib/gl_anytreehash_list2.h: New file.
39758
39759         * lib/gl_oset.h: New file.
39760         * lib/gl_oset.c: New file.
39761         * lib/gl_array_oset.h: New file.
39762         * lib/gl_array_oset.c: New file.
39763         * lib/gl_avltree_oset.h: New file.
39764         * lib/gl_avltree_oset.c: New file.
39765         * lib/gl_rbtree_oset.h: New file.
39766         * lib/gl_rbtree_oset.c: New file.
39767         * lib/gl_anytree_oset.h: New file.
39768
39769 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
39770
39771         * m4/mkancesdirs.m4: New file.
39772         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
39773         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
39774         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
39775         it.
39776
39777 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
39778
39779         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
39780         * lib/mkancesdirs.h: New files.
39781         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
39782         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
39783         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
39784         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
39785         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
39786         callers changed.  Revamp internals significantly, by not
39787         attempting to create directories that are temporarily more
39788         permissive than the final results.  Do not attempt to use
39789         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
39790         This removes some race conditions, fixes some bugs, and simplifies
39791         things.  Use new dirchownmod function to do owner and mode changes.
39792         * lib/mkdir-p.h: Likewise.
39793         * lib/modechange.c (octal_to_mode): New function.
39794         (struct mode_change): New member mentioned.
39795         (make_node_op_equals): New arg mentioned.  All callers changed.
39796         (mode_compile): Keep track of which mode bits the user has explicitly
39797         mentioned.
39798         (mode_adjust): New arg DIR, so that we implement the X op correctly.
39799         New arg PMODE_BITS, to keep track of which mode bits the user
39800         mentioned; it treats S_ISUID and S_ISGID speciall.
39801         All callers changed.
39802         * lib/modechange.h: Likewise.
39803
39804 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
39805
39806         * MODULES.html.sh: Add mkancestors.
39807         * modules/mkancesdirs: New module.
39808         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
39809         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
39810         The chdir-safer and afs files are now orphans; I'll remove them
39811         unless someone speaks up.
39812         Add lib/dirchownmod.c, lib/dirchownmod.h.
39813         (Depends-on): Remove alloca, chown, save-cwd, dirname.
39814         Add lchown, mkancesdirs.
39815         (Maintainer): Add self.
39816
39817 2006-07-15  Karl Berry  <karl@gnu.org>
39818
39819         * gnulib-tool: help message wording/arrangement.
39820
39821 2006-07-14  Simon Josefsson  <jas@extundo.com>
39822
39823         * doc/gnulib.texi (Libtool and Windows): New section.
39824
39825 2006-07-12  Simon Josefsson  <jas@extundo.com>
39826
39827         * modules/gendocs (License): Fix license, approved by Karl.
39828
39829 2006-07-12  Eric Blake  <ebb9@byu.net>
39830
39831         * MODULES.html.sh: Add gendocs.
39832
39833 2006-07-11  Eric Blake  <ebb9@byu.net>
39834
39835         * modules/fdl: New module, to install doc/fdl.texi.
39836         * MODULES.html.sh: Add new section for documentation modules.
39837         * gnulib-tool: Avoid space-tab.
39838         (--doc-base): New option, to manage files from doc.
39839
39840 2006-07-11  Eric Blake  <ebb9@byu.net>
39841
39842         * m4/absolute-header.m4: Fix comments to match recent change.
39843
39844 2006-07-11  Eric Blake  <ebb9@byu.net>
39845
39846         * gnulib-tool: List --doc-base before --tests-base.
39847
39848 2006-07-11  Derek R. Price  <derek@ximbiot.com>
39849
39850         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
39851
39852 2006-07-11  Bruno Haible  <bruno@clisp.org>
39853
39854         * README: Mention where to put documentation.
39855
39856 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39857
39858         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
39859
39860 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
39861
39862         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
39863         to stdint.m4.
39864
39865 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
39866
39867         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
39868         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
39869         "no/such/file/stdint.h" when there is no such file, so that
39870         the resulting C code can be parsed by dodgy compilers.
39871         Problems reported by Bob Proulx.
39872
39873 2006-07-10  Derek R. Price  <derek@ximbiot.com>
39874
39875         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
39876         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
39877         macros into the GNU _D_EXACT_NAMLEN.
39878         * lib/savedir.c:  Likewise.
39879         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
39880
39881 2006-07-10  Derek R. Price  <derek@ximbiot.com>
39882         and Paul Eggert  <eggert@cs.ucla.edu>
39883
39884         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
39885         * m4/savedir.m4:
39886         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
39887         macros into the GNU _D_EXACT_NAMLEN.
39888
39889 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
39890
39891         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
39892         around the absolute name, to work around a problem with the HP-UX
39893         11.23 native C compiler, reported by Bob Proulx.
39894
39895 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
39896
39897         * doc/maintain.texi, make-stds.texi: Sync from
39898         <http://savannah.gnu.org/projects/gnustandards>.
39899
39900 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
39901
39902         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
39903
39904 2006-07-09  Jim Meyering  <jim@meyering.net>
39905
39906         * m4/glob.m4: Remove a doubled word in a comment.
39907
39908 2006-07-09  Jim Meyering  <jim@meyering.net>
39909
39910         * lib/argp-pv.c: Remove a doubled word in a comment.
39911         * lib/check-version.c (check_version): Likewise.
39912         * lib/javacomp.c (compile_java_class): Likewise.
39913
39914 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
39915
39916         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
39917         for the benefit of people using Autoconf 2.60.  If you want to
39918         support older Autoconf versions you can copy m4/onceonly_2_57.m4
39919         (or m4/onceonly.m4, if pre-2.57) manually.
39920
39921 2006-07-08  Jim Meyering  <jim@meyering.net>
39922
39923         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
39924         comment.
39925         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
39926         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
39927         comment.
39928
39929 2006-07-08  Jim Meyering  <jim@meyering.net>
39930
39931         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
39932
39933 2006-07-07  Simon Josefsson  <jas@extundo.com>
39934
39935         * tests/test-crc.c: Change expected crc value, the test vector
39936         were probably computed using the old broken crc.c?
39937
39938 2006-07-06  Simon Josefsson  <jas@extundo.com>
39939
39940         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
39941         now the canonical place for the M4 file).
39942
39943         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
39944         from the sys_socket dependency now.
39945
39946         * modules/inet_pton (Files): Ditto.
39947
39948         * modules/inet_ntop (Files): Ditto.
39949
39950 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
39951
39952         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
39953         not gl_PREREQ_GETUSERSHELL.
39954
39955 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39956
39957         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
39958         with only one argument, for Autoconf 2.60.
39959         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
39960         expand to nothing, so add a shell command to avoid syntax error.
39961         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
39962
39963 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39964
39965         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
39966
39967 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
39968
39969         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
39970         no longer needed.  Check for isblank decl.
39971         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
39972         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
39973         of existence.
39974
39975 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
39976
39977         * lib/getloadavg.c: Use __VMS, not VMS.
39978         * lib/getopt.c: Likewise.
39979         * lib/getpagesize.h: Likewise.
39980         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
39981         and probably does not work.
39982
39983 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
39984
39985         * lib/.cppi-disable: Add wcwidth.
39986         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
39987         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
39988         (ISGRAPH): Remove.  All uses changed to isgraph.
39989         (FOLD) [!defined _LIBC]: Remove special case.
39990         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
39991         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
39992         HAVE_ISBLANK.
39993         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
39994         case.
39995
39996 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
39997
39998         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
39999         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
40000         brackets.  Other minor changes to suppress some compiler
40001         warnings.
40002
40003 2006-07-06  Derek R. Price  <derek@ximbiot.com>
40004         and Paul Eggert  <eggert@cs.ucla.edu>
40005
40006         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
40007         of invoking obsolescent AC_HEADER_DIRENT macro.
40008         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
40009         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
40010         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
40011         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
40012         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
40013         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
40014         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
40015         * m4/readdir.m4: Remove; no longer needed.
40016
40017 2006-07-06  Derek R. Price  <derek@ximbiot.com>
40018         and Paul Eggert  <eggert@cs.ucla.edu>
40019
40020         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
40021         Don't worry about this obsolete case any more.
40022         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
40023         directories.
40024         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
40025         worry about this obsolete case any more.
40026         * lib/fts.c: Likewise.
40027         * lib/getcwd.c: Likewise.
40028         * lib/glob.h: Likewise.
40029         * lib/savedir.c: Likewise.
40030
40031 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
40032
40033         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
40034         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
40035         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
40036         needed.
40037         All uses removed.
40038         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
40039         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
40040         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
40041         needed.
40042         * m4/getdate.m4 (gl_GETDATE): Likewise.
40043         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
40044         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
40045         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
40046         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
40047         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
40048         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
40049         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
40050         needed.
40051
40052 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
40053
40054         * lib/memcasecmp.c: Include <limits.h>.
40055         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
40056         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
40057         Don't assume isdigit succeeds only on '0' through '9'.
40058
40059 2006-07-05  Eric Blake  <ebb9@byu.net>
40060
40061         * modules/getaddrinfo (Depends-on): Add snprintf.
40062
40063 2006-07-05  Eric Blake  <ebb9@byu.net>
40064
40065         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
40066         to avoid 'header present but could not be compiled' on cygwin.
40067
40068 2006-07-05  Eric Blake  <ebb9@byu.net>
40069
40070         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
40071         missing from netdb.h.
40072         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
40073
40074 2006-07-05  Derek R. Price  <derek@ximbiot.com>
40075
40076         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
40077         no longer needed.
40078         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
40079         * m4/getdate.m4 (gl_GETDATE): Likewise.
40080         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
40081         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
40082         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
40083         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
40084         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
40085
40086 2006-07-05  Derek R. Price  <derek@ximbiot.com>
40087
40088         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
40089         All uses of is_space replaced by isspace.
40090         * lib/exit.h: Don't talk about STDC_HEADERS.
40091         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
40092         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
40093         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
40094         replaced by isprint etc.
40095         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
40096         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
40097         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
40098         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
40099         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
40100         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
40101
40102 2006-07-05  Bruno Haible  <bruno@clisp.org>
40103
40104         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
40105         the function exists, before testing against AIX.
40106         Reported by Martin Lambers <marlam@marlam.de>.
40107
40108 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
40109
40110         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
40111         From Mark D. Baushke.
40112
40113 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
40114
40115         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
40116         to the absolute name, not just one, to bypass Sun C 5.8's
40117         "warning: #include of /usr/include/... may be non-portable".
40118
40119 2006-07-04  Eric Blake  <ebb9@byu.net>
40120
40121         * modules/dirname-tests: New test module.
40122         * tests/test-dirname.c: New file, replacing dirname.c
40123         TEST_DIRNAME section that was recently deleted.
40124
40125 2006-07-04  Bruno Haible  <bruno@clisp.org>
40126
40127         Assume ANSI C header files and <ctype.h> functions.
40128         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
40129         (mbsnwidth): Use isprint, iscntrl instead.
40130
40131 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
40132
40133         Merge from coreutils.
40134         * MODULES.html.sh: Add xstrtold.
40135         * modules/xstrtold: New file.
40136         * modules/cycle-check (Files): Add lib/same-inode.h.
40137         * modules/dirname (Files): Add m4/double-slash-root.m4.
40138         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
40139         * modules/mkdir-p (Files): Add lib/same-inode.h.
40140         * modules/same (Files): Add lib/same-inode.h.
40141
40142 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
40143
40144         * m4/absolute-header.m4: Renamed from full-header-path.m4.
40145         This is to keep the terminology clean; POSIX talks about
40146         "absolute pathnames", not "full pathnames", but the GNU
40147         Coding Standards say to use "path" for something else;
40148         so use "absolute" to keep both sides happy.
40149         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
40150         Set gl_absolute_header, not gl_full_header_path.
40151         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
40152         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
40153         All uses changed.
40154
40155         Merge from coreutils.
40156
40157         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
40158
40159         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
40160         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
40161         want to require the building of c-strtod.o.
40162         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
40163         needs -lm directly.
40164         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
40165
40166         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
40167
40168         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
40169         --as-needed option if available.  Problem reported by Albert Chin in
40170         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
40171         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
40172         cc merely issues a bunch of annoying warnings for --as-needed
40173         (this problem was reported by Bob Proulx).  Also, try linking with
40174         -lm to detect a bug in binutils 2.16 (this problem was reported
40175         by Ralf Wildenhues).
40176
40177         2006-06-18  Jim Meyering  <jim@meyering.net>
40178
40179         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
40180         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
40181         macro.
40182         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
40183         also check for glibc-2.4's abort-inducing bug.
40184
40185         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
40186         Low-probability clean-up should be to use rmdir to get rid of
40187         the just-created directory, not unlink.
40188
40189         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
40190         configure fail, and request a bug report to inform us about it.
40191         Add a comment that, barring reports to the contrary, in 2007 we'll
40192         assume ftruncate is universally available.
40193
40194         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
40195
40196         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
40197
40198         2006-03-12  Jim Meyering  <jim@meyering.net>
40199
40200         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
40201         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
40202         * m4/same.m4 (gl_SAME): Likewise.
40203         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
40204
40205         2006-03-11  Eric Blake  <ebb9@byu.net>
40206
40207         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
40208         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
40209         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
40210         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
40211
40212 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
40213
40214         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
40215         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
40216         reported by Mark D. Baushke, one in
40217         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
40218
40219         Merge from coreutils.
40220
40221         * lib/.cppi-disable: Add stdint_.h.
40222         * lib/.cvsignore: Add stdint.h.
40223
40224         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
40225
40226         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
40227         both double and long double versions.
40228         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
40229         * lib/xstrtold.c: New file.
40230         * lib/xstrtod.h (xstrtold): New decl.
40231
40232         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
40233
40234         * lib/filemode.c (setst): Remove.
40235         (strmode): Rewrite to avoid setst.  This makes the code shorter,
40236         (arguably) clearer, and the generated code is a bit smaller on my
40237         Debian GNU/Linux stable x86 host.
40238
40239         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
40240
40241         * lib/filemode.c: Include "filemode.h" first, to test the interface.
40242         Assume that filemode.h includes sys/types.h and sys/stat.h.
40243         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
40244         (ftypelet): Reorder to put common cases first, for efficiency.
40245         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
40246         to do 'M'.
40247         (strmode): Renamed from mode_string, and now stores 12 bytes instead
40248         of 10, for compatibility with FreeBSD.  All callers changed.
40249         (filemodestring): Now stores 12 bytes instead of 10, and sets file
40250         types that can't be deduced solely from st_mode.  First arg is now a
40251         const pointer.
40252         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
40253         (strmode): Renamed from mode_string.
40254         (filemodestring): New decl.
40255         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
40256         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
40257         needed.
40258         (S_ISPORT, S_ISWHT): New macros, if not already defined.
40259
40260         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
40261
40262         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
40263         fsusage.h now does that.  Include fsusage.h first, to test interface.
40264         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
40265         at most one method (the old code could have generated decls that
40266         didn't conform to C89, not that this was ever exercised).
40267         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
40268
40269         2006-03-19  Jim Meyering  <jim@meyering.net>
40270
40271         Work even in a chroot where d_ino values for entries in "/"
40272         don't match the stat.st_ino values for the same names.
40273         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
40274         number, iterate through all entries again, using lstat instead.
40275         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
40276         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
40277
40278         * lib/getcwd.c (__getcwd): Clarify a comment.
40279         Use memcpy in place of a call to strcpy.
40280
40281         2006-03-12  Jim Meyering  <jim@meyering.net>
40282
40283         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
40284         matches that of the current directory (which we're about to chdir ".."
40285         out of), then save the dev-ino of the parent, instead.
40286
40287         * lib/same-inode.h (SAME_INODE): New file/macro.
40288         * lib/chdir-safer.c (SAME_INODE): Remove definition.
40289         Include "same-inode.h", instead.
40290         * lib/same.c: Likewise.
40291         * lib/cycle-check.h: Include "same-inode.h".
40292         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
40293         * lib/cycle-check.c (SAME_INODE): Remove definition.
40294         * lib/root-dev-ino.h: Include "same-inode.h".
40295
40296         2006-03-11  Eric Blake  <ebb9@byu.net>
40297
40298         * lib/same.c (same_name): s/base_name/last_component/
40299         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
40300         * lib/filenamecat.c (file_name_concat): Likewise.
40301
40302         2006-03-11  Eric Blake  <ebb9@byu.net>,
40303                     Paul Eggert  <eggert@cs.ucla.edu>
40304
40305         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
40306         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
40307         drive prefix.
40308         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
40309         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
40310         (last_component): New method.
40311         * lib/dirname.c (dir_len): Determine when drive letters need a
40312         subsequent slash.  Preserve // when it is special.
40313         (dir_name): Don't append dot when drive letter is absolute.
40314         [TEST_DIRNAME]: Move into a full-blown gnulib test.
40315         * lib/basename.c (base_name): New semantics - malloc the result.
40316         Preserve // when it is special.  Preserve relative files that look
40317         like drive letters.
40318         (base_len): Preserve // when it is special.
40319         (last_component): New method, similar to old base_name semantics.
40320         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
40321         base_name.  Strip redundant slashes from ///.
40322
40323 2006-07-03  Jim Meyering  <jim@meyering.net>
40324
40325         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
40326         macro is used before the first cycle_check call.
40327
40328 2006-07-03  Eric Blake  <ebb9@byu.net>
40329
40330         * modules/dirname (Depends-on): Add xstrndup.
40331
40332 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
40333
40334         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
40335         test cases, so that config.log is a bit easier to follow.
40336
40337 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
40338
40339         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
40340         both are 64 bits, since this seems to be the tradition, and this
40341         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
40342         we ever run into a host that prefers long long to long in this
40343         case, we'll need another configure-time test.  Problem reported by
40344         Jim Meyering.
40345
40346 2006-07-02  Eric Blake  <ebb9@byu.net>
40347
40348         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
40349
40350 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
40351
40352         * modules/inttypes (Depends-on): No longer depends on stdint.
40353         * modules/stdint (Description): Say more about assumptions.
40354         Say that the fast types might differ.  Say macros are used.
40355         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
40356         (Makefile.am): Revise list of substituted symbols to match
40357         new stdint.m4.
40358         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
40359         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
40360         * tests/test-stdint.c (verify_same_types)
40361         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
40362         the code conforms to C99/C89.
40363         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
40364         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
40365
40366 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
40367
40368         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
40369         but fix a bug, by requiring at least 64 bits.
40370         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
40371         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
40372         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
40373         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
40374
40375         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
40376         changes.  Make 2.59 a prerequisite.  Check and substitute for
40377         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
40378         inttypes.h.  Do not use special include files; just use the
40379         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
40380         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
40381         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
40382         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
40383         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
40384         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
40385         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
40386         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
40387         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
40388         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
40389         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
40390         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
40391         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
40392         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
40393         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
40394         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
40395         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
40396         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
40397         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
40398         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
40399         WINT_MAX.  Check for C99 conformance more strictly, by detecting
40400         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
40401         not check for things that C99 does not require, e.g., int8_t.  If
40402         a test isn't needed unless <stdint.h> isn't working, and is
40403         unlikely to be needed for any other reason, then don't do it
40404         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
40405         size_t, since we assume C89 freestanding at least.  Do not check
40406         for sig_atomic_t, wchar_t, or wint_t, since the code now does
40407         the right thing even if the types are not defined.  Instead use:
40408         (gl_STDINT_TYPE_PROPERTIES): New macro.
40409         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
40410         testing whether <sys/types.h> clashes, as Autoconf does this for
40411         us now.  All uses removed.
40412         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
40413         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
40414         (gl_CHECK_TYPE_SAME):
40415         Remove; no longer needed.
40416         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
40417         exists, since we'll return 0 anyway in that case.
40418         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
40419
40420 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
40421
40422         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
40423         possible collision with system files.
40424         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
40425         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
40426         WCHAR_MIN and WCHAR_MAX in this case.
40427         (<stddef.h>): Do not include; no longer needed.
40428         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
40429         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
40430         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
40431         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
40432         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
40433         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
40434         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
40435         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
40436         !defined(__c99))]: Include in this case too, since it's harmless
40437         now.
40438         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
40439         dangerous to do so.
40440         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
40441         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
40442         (_STDINT_MIN, _STDINT_MAX): New macros.
40443         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
40444         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
40445         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
40446         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
40447         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
40448         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
40449         macros, not typedefs; this simplifies things quite a bit.
40450         Use long int for all types narrower than int64_t.
40451         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
40452         Define in terms of long long int or int64_t or long int,
40453         not int64_t or int32_t.  This saves some compile-time testing.
40454         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
40455         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
40456         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
40457         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
40458         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
40459         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
40460         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
40461         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
40462         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
40463         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
40464         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
40465         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
40466         undef any previous version and define our own version, for
40467         simplicity and consistency with the new macros for types.
40468         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
40469         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
40470         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
40471         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
40472         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
40473         @WINT_T_SUFFIX@ to keep things simple here.
40474         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
40475         Simplify by assuming typical 8/16/32/64 host, since we're
40476         already doing that elsewhere anyway.
40477         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
40478         and assume long long int is 64 bits if available.  This
40479         speeds up 'configure'.
40480
40481 2006-07-01  Eric Blake  <ebb9@byu.net>
40482
40483         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
40484         Reported by Andreas Buening.
40485
40486 2006-07-01  Eric Blake  <ebb9@byu.net>
40487
40488         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
40489
40490 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
40491
40492         * lib/getaddrinfo.c: fixed typo
40493
40494 2006-06-29  Jim Meyering  <jim@meyering.net>
40495
40496         * modules/strftime (Maintainer): Add my name, since with the
40497         FPRINTFTIME changes strftime.c has forked from glibc.
40498
40499 2006-06-29  Eric Blake  <ebb9@byu.net>
40500
40501         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
40502
40503 2006-06-29  Eric Blake  <ebb9@byu.net>
40504
40505         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
40506
40507 2006-06-29  Eric Blake  <ebb9@byu.net>
40508
40509         * lib/stat_.h: New file.
40510
40511 2006-06-29  Eric Blake  <ebb9@byu.net>
40512
40513         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
40514         unused static function.
40515
40516 2006-06-29  Eric Blake  <ebb9@byu.net>
40517
40518         * doc/functions.texi (Function Portability): Document missing lstat
40519         on mingw.
40520
40521 2006-06-29  Eric Blake  <ebb9@byu.net>
40522
40523         * MODULES.html.sh: Add sys_stat.
40524         * modules/sys_stat: New module.
40525         * modules/mkstemp (Depends-on): Add sys_stat.
40526
40527 2006-06-29  Derek R. Price  <derek@ximbiot.com>
40528
40529         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
40530
40531 2006-06-29  Derek R. Price  <derek@ximbiot.com>
40532
40533         * m4/c-bs-a.m4: Removed.
40534
40535 2006-06-29  Derek R. Price  <derek@ximbiot.com>
40536
40537         * lib/strftime.c: Assume strftime() exists.
40538
40539 2006-06-29  Derek Price  <derek@ximbiot.com>
40540
40541         * modules/c-bs-a: Removed - \a is C89.
40542         * MODULES.html.sh: Remove c-bs-a.
40543
40544 2006-06-29  Bruno Haible  <bruno@clisp.org>
40545
40546         * modules/wcwidth (License): Change to LGPL.
40547
40548 2006-06-28  Simon Josefsson  <jas@extundo.com>
40549
40550         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
40551         on _WIN32.
40552
40553         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
40554         getnameinfo.
40555
40556 2006-06-28  Simon Josefsson  <jas@extundo.com>
40557
40558         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
40559
40560 2006-06-28  Simon Josefsson  <jas@extundo.com>
40561
40562         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
40563         functions there.  It will succeed on Windows XP, but on Windows
40564         2000 and (presumably) earlier, it will fail, and use the internal
40565         re-implementation.
40566         (use_win32_p): New function.
40567         (getaddrinfo): Use strtoul on servname, to support numeric ports.
40568         Support AI_NUMERICSERV to disable getservbyname.
40569         (getnameinfo): New function, only supports
40570         NI_NUMERICHOST|NI_NUMERICSERV for now.
40571
40572         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
40573         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
40574         getnameinfo.
40575
40576 2006-06-28  Eric Blake  <ebb9@byu.net>
40577
40578         * modules/wcwidth: New file.
40579         * modules/mbchar (Depends-on): Add wcwidth.
40580         * modules/mbswidth (Depends-on): Add wcwidth.
40581         * MODULES.html.sh: Add wcwidth.
40582
40583 2006-06-28  Eric Blake  <ebb9@byu.net>
40584
40585         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
40586         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
40587
40588 2006-06-28  Eric Blake  <ebb9@byu.net>
40589
40590         * lib/xvasprintf.h: Fix comments.
40591
40592 2006-06-28  Eric Blake  <ebb9@byu.net>
40593
40594         * lib/mbchar.h (wcwidth): Include wcwidth.h.
40595         * lib/mbswidth.c (wcwidth): Move from here...
40596         * lib/wcwidth.h: ...to this new file.
40597
40598 2006-06-28  Derek R. Price  <derek@ximbiot.com>
40599
40600         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
40601
40602         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
40603         it's obsolete.
40604         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
40605
40606 2006-06-28  Derek R. Price  <derek@ximbiot.com>
40607
40608         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
40609         Autoconf 2.60 says this stuff was obsolete.
40610
40611 2006-06-28  Bruno Haible  <bruno@clisp.org>
40612
40613         * modules/wcwidth (Files): Add m4/wchar_t.m4.
40614
40615 2006-06-28  Bruno Haible  <bruno@clisp.org>
40616
40617         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
40618         gt_TYPE_WCHAR_T.
40619
40620 2006-06-28  Bruno Haible  <bruno@clisp.org>
40621
40622         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
40623         declaration for wcwidth.
40624         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
40625
40626 2006-06-28  Bruno Haible  <bruno@clisp.org>
40627
40628         * lib/mkdtemp.c [MINGW]: Include <io.h>.
40629         (mkdir): Define using _mkdir.
40630
40631 2006-06-28  Bruno Haible  <bruno@clisp.org>
40632
40633         * lib/getaddrinfo.h: Fix POSIX URL.
40634         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
40635         _WIN32.
40636         (use_win32_p): Make static.
40637         (getaddrinfo): Reject service name if it is empty or does not consist
40638         solely of decimal digits, or if its value is > 65535.
40639         (getnameinfo): Remove useless casts.
40640
40641 2006-06-27  Simon Josefsson  <jas@extundo.com>
40642
40643         * modules/sys_select: New file, suggested by Bruno Haible, Paul
40644         Eggert and Martin Lambers.
40645
40646 2006-06-27  Simon Josefsson  <jas@extundo.com>
40647
40648         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
40649         Eggert and Martin Lambers.
40650
40651 2006-06-27  Bruno Haible  <bruno@clisp.org>
40652
40653         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
40654         result to 0, not to empty.
40655         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
40656
40657 2006-06-27  Bruno Haible  <bruno@clisp.org>
40658
40659         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
40660
40661 2006-06-26  Simon Josefsson  <jas@extundo.com>
40662
40663         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
40664         present.
40665
40666 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
40667
40668         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
40669         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
40670         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
40671
40672 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
40673
40674         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
40675
40676 2006-06-26  Bruno Haible  <bruno@clisp.org>
40677
40678         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
40679
40680 2006-06-26  Bruno Haible  <bruno@clisp.org>
40681
40682         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
40683
40684 2006-06-26  Bruno Haible  <bruno@clisp.org>
40685
40686         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
40687         SGI C compiler in pre-C99 mode.
40688         Suggested by Mark D. Baushke and Larry Jones.
40689
40690 2006-06-26  Bruno Haible  <bruno@clisp.org>
40691
40692         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
40693         WCHAR_MAX.
40694         Reported by Mark D. Baushke and Larry Jones.
40695
40696 2006-06-26  Bruno Haible  <bruno@clisp.org>
40697
40698         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
40699         in pre-C99 mode.
40700         Suggested by Mark D. Baushke and Larry Jones.
40701
40702 2006-06-23  Simon Josefsson  <jas@extundo.com>
40703             Bruno Haible  <bruno@clisp.org>
40704
40705         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
40706         Emit mostlyclean-local rule.
40707         (func_emit_tests_Makefile_am): Likewise.
40708         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
40709
40710 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
40711
40712         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
40713
40714 2006-06-23  Bruno Haible  <bruno@clisp.org>
40715
40716         * tests/test-stdint.c: Update to match ISO C 99 Technical
40717         Corrigendum 1.
40718
40719 2006-06-23  Bruno Haible  <bruno@clisp.org>
40720
40721         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
40722
40723 2006-06-23  Bruno Haible  <bruno@clisp.org>
40724
40725         * lib/stdint_.h: Treat IRIX like OpenBSD.
40726
40727 2006-06-23  Bruno Haible  <bruno@clisp.org>
40728
40729         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
40730         ISO C 99 Technical Corrigendum 1.
40731
40732 2006-06-22  Simon Josefsson  <jas@extundo.com>
40733
40734         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
40735         MinGW.
40736
40737 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40738
40739         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
40740         needed.  Some compiler complained about some of them.  Problem reported
40741         by Larry Jones in
40742         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
40743
40744 2006-06-21  Simon Josefsson  <jas@extundo.com>
40745
40746         * tests/test-getaddrinfo.c: New file.
40747
40748         * modules/getaddrinfo-tests: New file.
40749
40750         * MODULES.html.sh: Add inet_pton.
40751
40752         * modules/inet_pton: New file.
40753
40754 2006-06-21  Simon Josefsson  <jas@extundo.com>
40755
40756         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
40757         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
40758         of using the (limited) gnulib implementation on Windows XP.
40759
40760         * m4/inet_pton.m4: New file.
40761
40762 2006-06-21  Simon Josefsson  <jas@extundo.com>
40763
40764         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
40765         variable.
40766
40767         * lib/socket_.h: Don't define WINVER.
40768
40769         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
40770         slightly modified to work in gnulib.
40771
40772 2006-06-21  Simon Josefsson  <jas@extundo.com>
40773
40774         * doc/gnulib.texi (Windows sockets): Add.
40775
40776 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
40777
40778         * lib/read-file.c (fread_file): Start with buffer allocation of
40779         0 bytes rather than 1 byte; this simplifies the code.
40780         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
40781         code to free buffer and save/restore errno.
40782         (internal_read_file): Remove unused local.
40783
40784 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
40785
40786         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
40787         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
40788         Problem reported by Denis Excoffier in
40789         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
40790
40791 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40792
40793         * modules/sys_socket, modules/socklen: Include sys/types since
40794         FreeBSD 4.x's sys/socket.h needs it.
40795
40796 2006-06-19  Simon Josefsson  <jas@extundo.com>
40797
40798         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
40799
40800 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
40801
40802         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
40803
40804 2006-06-19  Bruno Haible  <bruno@clisp.org>
40805
40806         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
40807         and FULL_PATH_INTTYPES_H in angle brackets.
40808         Reported by Mark D. Baushke <mdb@gnu.org>.
40809
40810 2006-06-17  Eric Blake  <ebb9@byu.net>
40811
40812         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
40813         errno.
40814
40815 2006-06-17  Bruno Haible  <bruno@clisp.org>
40816
40817         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
40818         <sys/inttypes.h>.
40819
40820 2006-06-17  Bruno Haible  <bruno@clisp.org>
40821
40822         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
40823         whether errno is declared. Assume <errno.h> declares errno.
40824
40825 2006-06-17  Bruno Haible  <bruno@clisp.org>
40826
40827         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
40828
40829 2006-06-17  Bruno Haible  <bruno@clisp.org>
40830
40831         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
40832         problem on Solaris 2.5.1.
40833
40834 2006-06-16  Eric Blake  <ebb9@byu.net>
40835
40836         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
40837         * lib/unicodeio.c [!defined errno]: Likewise.
40838         * lib/strtol.c [!defined errno]: Likewise.
40839         * lib/strtod.c [!defined errno]: Likewise.
40840
40841 2006-06-15  Eric Blake  <ebb9@byu.net>
40842
40843         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
40844
40845 2006-06-15  Eric Blake  <ebb9@byu.net>
40846
40847         * config/srclist.txt (ssize_t.m4): Lose sync.
40848
40849 2006-06-15  Bruno Haible  <bruno@clisp.org>
40850
40851         * modules/stdint (Files): Include m4/full-header-path.m4,
40852         m4/size_max.m4, m4/wchar_t.m4.
40853         (Makefile.am): Many more substitutions.
40854         * modules/stdint-tests: New file.
40855         * tests/test-stdint.c: New file.
40856
40857 2006-06-15  Bruno Haible  <bruno@clisp.org>
40858
40859         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
40860         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
40861         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
40862         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
40863         gl_CHECK_TYPE_SAME): New macros.
40864
40865 2006-06-15  Bruno Haible  <bruno@clisp.org>
40866
40867         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
40868
40869 2006-06-15  Bruno Haible  <bruno@clisp.org>
40870
40871         * lib/stdint_.h: Rewritten to be fully auto-configured.
40872         Fixes bug on HP-UX/IA64.
40873
40874 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
40875
40876         * lib/getdate.y (__attribute__): Don't define if already defined.
40877         Problem reported by Larry Jones.
40878         * lib/utimens.c (__attribute__): Likewise.
40879
40880 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
40881
40882         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
40883         reported by Andreas Schwab.
40884
40885 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40886             Bruno Haible  <bruno@clisp.org>
40887
40888         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
40889         check for the declaration of strnlen and a run test that exposes the
40890         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
40891         rpl_strndup.
40892
40893 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40894             Bruno Haible  <bruno@clisp.org>
40895
40896         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
40897
40898 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40899
40900         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
40901         compile test, for Tru64 4.0D.
40902
40903 2006-05-28  Karl Berry  <karl@gnu.org>
40904
40905         * config/srclist.txt (printf-args.c): lose sync.
40906
40907 2006-05-26  Martin Lambers  <marlam@marlam.de>
40908
40909         * lib/getpass.c: Updates the test for the native W32 API, and adds
40910         missing includes, thus fixing compilation warnings.
40911
40912 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40913
40914         * lib/exclude.c (exclude_fnmatch): New function.
40915         (excluded_file_name): Call exclude_fnmatch.
40916         * lib/exclude.h (excluded_file_name): New prototype
40917
40918 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
40919
40920         * lib/tempname.c (small_open, large_open): New macros.
40921         (__open, __open64) [!_LIBC]: Remove.
40922         (__gen_tempname): Use small_open and large_open instead of __open
40923         and __open64.  This fixes a portability bug on HP-UX 11.11i
40924         reported by Simon Wing-Tang in
40925         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
40926
40927 2006-05-24  Bruno Haible  <bruno@clisp.org>
40928
40929         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
40930         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
40931         Reported by Thorsten Maerz <torte@netztorte.de> via
40932         Aaron Stone <aaron@serendipity.cx>.
40933
40934 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
40935
40936         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
40937         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
40938         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
40939         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
40940         not really conditional on the cache.
40941         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
40942
40943 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
40944
40945         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
40946         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
40947         (my_usleep): Don't mishandle maximum value.
40948
40949 2006-05-19  Jim Meyering  <jim@meyering.net>
40950
40951         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
40952
40953 2006-05-17  Bruno Haible  <bruno@clisp.org>
40954
40955         Cygwin portability.
40956         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
40957
40958 2006-05-17  Bruno Haible  <bruno@clisp.org>
40959
40960         * lib/stdint_.h: Fix recognition of Cygwin.
40961
40962 2006-05-15  Bruno Haible  <bruno@clisp.org>
40963
40964         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
40965         on libtool patch by Ralf Wildenhues.
40966
40967 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
40968
40969         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
40970         test for C99 conformance; (bool) 0.5 is an integer constant
40971         expression, but (bool) -0.5 is not.  Problem reported by Fedor
40972         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
40973
40974 2006-05-11  Simon Josefsson  <jas@extundo.com>
40975
40976         * m4/xvasprintf.m4: Fix obvious typo.
40977
40978 2006-05-11  Jim Meyering  <jim@meyering.net>
40979
40980         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
40981         James Lemley.
40982
40983 2006-05-10  Simon Josefsson  <jas@extundo.com>
40984
40985         * lib/md4.c: Typo fix, update copyright years.
40986         (K1, K2): Don't use L because it turn computations into 64-bit on
40987         64-bit platforms.
40988
40989 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
40990
40991         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
40992         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
40993         unwanted sign propagation, e.g., on hosts with 64-bit int.
40994         There still are some problems with reeelly weird theoretical hosts
40995         (e.g., 33-bit int) but it's not worth worrying about now.
40996         * lib/sha1.c (rol): Likewise.
40997         (K1, K2, K3, K4): Remove unnecessary L suffix.
40998
40999 2006-05-10  Bruno Haible  <bruno@clisp.org>
41000
41001         * lib/des.c: Cast to avoid warnings.
41002
41003 2006-05-09  Bruno Haible  <bruno@clisp.org>
41004
41005         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
41006         (Depends-on): Depend also on xsize, stdarg.
41007         (configure.ac): Add gl_XVASPRINTF.
41008
41009 2006-05-09  Bruno Haible  <bruno@clisp.org>
41010
41011         * m4/xvasprintf.m4: New file.
41012
41013 2006-05-09  Bruno Haible  <bruno@clisp.org>
41014
41015         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
41016         (EOVERFLOW): Define fallback value.
41017         (xstrcat): New function.
41018         (xvasprintf): Recognize the special case of a string concatenation.
41019
41020 2006-05-08  Eric Blake  <ebb9@byu.net>
41021
41022         * gnulib-tool (func_version): Base copyright year on CVS date.
41023         (func_emit_copyright_notice): New function.
41024         (func_emit_lib_Makefile_am): Use it.
41025         (func_emit_tests_Makefile_am): Likewise.
41026         (func_import): Likewise.
41027
41028 2006-05-08  Bruno Haible  <bruno@clisp.org>
41029
41030         * modules/stdarg: New file.
41031         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
41032
41033 2006-05-08  Bruno Haible  <bruno@clisp.org>
41034
41035         * m4/stdarg.m4: New file, from GNU gettext.
41036
41037 2006-05-08  Bruno Haible  <bruno@clisp.org>
41038
41039         * config/srclist.txt (build-aux/config.rpath): different from latest
41040         release.
41041
41042 2006-05-08  Bruno Haible  <bruno@clisp.org>
41043
41044         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
41045
41046 2006-05-05  Jim Meyering  <jim@meyering.net>
41047
41048         * m4/warning.m4: New file, derived from bison's file by the same name.
41049
41050 2006-05-03  Bruno Haible  <bruno@clisp.org>
41051
41052         * lib/stdint_.h: Shorter URL.
41053         * lib/inttypes.h: Likewise.
41054
41055 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
41056
41057         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
41058
41059 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
41060
41061         * lib/verify.h: Document the internals better.  Most of this change
41062         was written by Bruno Haible.
41063
41064 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
41065
41066         * doc/verify.texi: New file, partly based on a proposal by
41067         Bruno Haible.
41068
41069 2006-05-02  Bruno Haible  <bruno@clisp.org>
41070
41071         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
41072         test from here...
41073         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
41074
41075 2006-04-29  Bruno Haible  <bruno@clisp.org>
41076
41077         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
41078         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
41079
41080 2006-04-29  Bruno Haible  <bruno@clisp.org>
41081
41082         * gnulib-tool: Make --update option actually work.
41083
41084 2006-04-29  Bruno Haible  <bruno@clisp.org>
41085
41086         * doc/gcd.texi: New file.
41087         * doc/gnulib.texi: Include it.
41088
41089 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
41090
41091         * lib/getdate.y (get_date): When adding relative date, start with the
41092         initial time, not with the result of the first mktime call.
41093
41094 2006-04-25  Bruno Haible  <bruno@clisp.org>
41095
41096         * gnulib-tool (func_import): Output the include directives in three
41097         blocks, sorted separately.
41098         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41099
41100 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
41101
41102         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
41103         to define main with arguments, for C++.  Reported by Eric Blake.
41104         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
41105         Prefer 'int main ()' to 'int main (void)', for C++.
41106         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
41107         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
41108         for 'main', for C99 and C++.
41109
41110 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
41111
41112         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
41113         Don't assume that exit status -1 is valid.
41114         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41115         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
41116         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41117         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
41118         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
41119         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
41120         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
41121         functions can be used without declaring them, or that you can
41122         exit with status -1.
41123         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41124
41125 2006-04-24  Karl Berry  <karl@gnu.org>
41126
41127         * config/srclist.txt (longdouble.m4): sync lost.
41128
41129 2006-04-24  Eric Blake  <ebb9@byu.net>
41130
41131         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
41132
41133 2006-04-24  Bruno Haible  <bruno@clisp.org>
41134
41135         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
41136         poll() implementation in AIX.
41137         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41138
41139 2006-04-24  Bruno Haible  <bruno@clisp.org>
41140
41141         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
41142         assigned exactly once.
41143
41144 2006-04-23  Claudio Fontana  <claudio@gnu.org>
41145             Bruno Haible  <bruno@clisp.org>
41146
41147         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
41148         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
41149         for AM_CPPFLAGS.
41150
41151 2006-04-23  Bruno Haible  <bruno@clisp.org>
41152
41153         * modules/copy-file: Depend on unistd.
41154         * modules/execute: Likewise.
41155         * modules/fatal-signal: Likewise.
41156         * modules/findprog: Likewise.
41157         * modules/mkdtemp : Likewise.
41158         * modules/pipe: Likewise.
41159         * modules/wait-process: Likewise.
41160
41161 2006-04-23  Bruno Haible  <bruno@clisp.org>
41162
41163         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
41164         condition was already detected.
41165         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41166
41167 2006-04-23  Bruno Haible  <bruno@clisp.org>
41168
41169         * lib/copy-file.c: Include <unistd.h> unconditionally.
41170         * lib/execute.c: Likewise.
41171         * lib/fatal-signal.c: Likewise.
41172         * lib/findprog.c: Likewise.
41173         * lib/mkdtemp.c: Likewise.
41174         * lib/pipe.h: Likewise.
41175         * lib/pipe.c: Likewise.
41176         * lib/wait-process.h: Likewise.
41177
41178 2006-04-23  Bruno Haible  <bruno@clisp.org>
41179
41180         * gnulib-tool (func_usage): Fix --import description. Document
41181         --update.
41182         (func_import): Create temporary file in a temporary directory, if
41183         --dry-run is specified. Silence errors from 'grep' when there are no
41184         m4 files in $m4dir.
41185         (func_create_testdir): Silence errors from 'grep' when there are no
41186         m4 files in $m4dir.
41187         Reported by Karl Berry <karl@freefriends.org>.
41188
41189 2006-04-20  Bruno Haible  <bruno@clisp.org>
41190
41191         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
41192         one argument, so that the code will be portable to Autoconf 2.60.
41193         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
41194         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
41195         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
41196
41197 2006-04-19  Derek Price  <derek@ximbiot.com>
41198             Eric Blake  <ebb9@byu.net>
41199
41200         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
41201         rather than "/full/path.h".  Update comment to match.  Shorten &
41202         generalize m4_translit call via AS_TR_CPP.
41203
41204 2006-04-19  Derek Price  <derek@ximbiot.com>
41205             Eric Blake  <ebb9@byu.net>
41206
41207         * lib/inttypes.h: Correct grammar in comment.
41208
41209 2006-04-18  Derek Price  <derek@ximbiot.com>
41210             Paul Eggert  <eggert@cs.ucla.edu>
41211
41212         * modules/inttypes: New file.
41213         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
41214
41215 2006-04-18  Derek Price  <derek@ximbiot.com>
41216             Paul Eggert  <eggert@cs.ucla.edu>
41217
41218         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
41219         New files.
41220
41221 2006-04-18  Derek Price  <derek@ximbiot.com>
41222             Paul Eggert  <eggert@cs.ucla.edu>
41223
41224         * lib/inttypes.h: New file.
41225         * lib/strtoimax.c: Assume <inttypes.h>.
41226
41227 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
41228
41229         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
41230         isn't mounted.  Problem reported by Kir Kolyshkin.
41231
41232 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
41233
41234         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
41235         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
41236         Derek R. Price.
41237         * lib/regex.h (RE_DUP_MAX): Update comment to match current
41238         implementation.
41239
41240 2006-04-12  Eric Blake  <ebb9@byu.net>
41241
41242         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
41243         is now done automatically by the corresponding Autoconf macro.
41244
41245 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
41246
41247         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
41248         time_r.h.
41249
41250 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
41251
41252         Merge regex changes from libc, removing some of our
41253         POSIX-conformance changes that were rejected and redoing them in a
41254         less-intrusive way.
41255
41256         * lib/regcomp.c (re_compile_internal, init_dfa):
41257         Length arg is now size_t, not Idx.  All uses changed.
41258         (peek_token): Forward decl now says internal_function.
41259         (__re_error_msgid, __re_error_msgid_idx):
41260         Now static rather than extern with attribute_hidden.
41261         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
41262         For some reason libc prefers K&R style defns for external functions.
41263         (regerror) [!defined _LIBC]: Likewise.
41264         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
41265         (seek_collating_symbol_entry, lookup_collation_sequence_value):
41266         (build_range_exp, build_collating_symbol):
41267         Use K&R-style defn.
41268         (re_compile_fastmap): Use '\0' to memset, not 0.
41269         (utf8_sb_map): Make the calculations more obvious.
41270         (init_dfa, parse_bracket_exp, build_charclass_op):
41271         Call calloc and cast result, as glibc does.
41272         (init_word_char, fetch_token, peek_token, peek_token_bracket):
41273         (build_range_exp, build_collating_symbol):
41274         Now internal functions.
41275
41276         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
41277
41278         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
41279         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
41280         Don't depend on VMS; depend on __VMS instead, for POSIX
41281         namespace cleanness.
41282         (regoff_t): Define to ssize_t, not long int.
41283
41284         Remove the REG_ macros named below.  Instead, make the old names
41285         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
41286         __USE_GNU_REGEX.
41287         (REG_BACKSLASH_ESCAPE_IN_LISTS):
41288         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
41289         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
41290         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
41291         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
41292         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
41293         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
41294         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
41295         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
41296         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
41297         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
41298         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
41299         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
41300         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
41301         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
41302         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
41303         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
41304         (REG_NREGS):
41305         Remove.  All uses replaced by the old RE_* names.
41306         (RE_BACKSLASH_ESCAPE_IN_LISTS):
41307         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
41308         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
41309         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
41310         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
41311         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
41312         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
41313         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
41314         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
41315         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
41316         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
41317         Don't bother having these macros be independent of each others'
41318         values, since they no longer exist in the POSIX name space.
41319
41320         Rename the following member names back to their old names,
41321         unless !__USE_GNU_REGEX.  All uses changed back.
41322         (buffer): Renamed from re_buffer.
41323         (allocated): Renamed from re_allocated.
41324         (used): Renamed from re_used.
41325         (syntax): Renamed from re_syntax.
41326         (fastmap): Renamed from re_fastmap.
41327         (translate): Renamed from re_translate.
41328         (can_be_null): Renamed from re_can_be_null.
41329         (regs_allocated): Renamed from re_regs_allocated.
41330         (fastmap_accurate): Renamed from re_fastmap_accurate.
41331         (no_sub): Renamed from re_no_sub.
41332         (not_bol): Renamed from re_not_bol.
41333         (not_eol): Renamed from re_not_eol.
41334         (newline_anchor): Renamed from re_newline_anchor.
41335         (num_regs): Renamed from rm_num_regs.
41336         (start): Renamed from rm_start.
41337         (end): Renamed from rm_end.
41338
41339         (free_state): Move up a bit.
41340
41341         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
41342         #define to be empty.
41343         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
41344         when that is what is intended.
41345         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
41346         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
41347         (MAX): New macro.
41348         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
41349         All uses changed back to re_malloc, etc.  It's now the caller's
41350         responsibility to check for overflow; all callers changed.
41351         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
41352         (re_x2nrealloc): Remove.
41353         (free_state): Remove decl.
41354
41355         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
41356         (re_set_registers, re_exec):
41357         Use K&R-style defn.
41358
41359         2006-01-31  Roland McGrath  <roland@redhat.com>
41360
41361         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
41362         Reported by Mike Frysinger <vapier@gentoo.org>.
41363
41364         2006-01-15  Andreas Jaeger  <aj@suse.de>
41365
41366         [BZ #1950]
41367         * lib/regex_internal.c (re_string_reconstruct): Adjust for
41368         build_wcs_upper_buffer change.
41369         (build_wcs_upper_buffer): Change return type.
41370
41371         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
41372
41373         * lib/regex_internal.h: Include <stdint.h> if available.
41374
41375         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
41376
41377         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
41378
41379         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
41380
41381         * lib/regcomp.c: Adjust for changed secondary hash function.
41382
41383         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
41384
41385         * lib/regex.h: Pretty printing.
41386         Clean up namespace a bit.
41387
41388         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
41389
41390         * lib/regexec.c (update_cur_sifted_state, check_arrival,
41391         check_arrival_add_next_nodes): Avoid using uninitialized variable.
41392
41393         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
41394                     Ulrich Drepper  <drepper@redhat.com>
41395
41396         [BZ #1302]
41397         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
41398         changed.
41399         (bitset_word_t): Renamed from bitset_word.  All uses changed.
41400
41401         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
41402
41403         [BZ #281]
41404         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
41405         * lib/regcomp.c: Remove unnecessary uses of
41406         unsigned RE_TRANSLATE_TYPE.
41407         * lib/regex_internal.h: Likewise.
41408         * lib/regex_internal.c: Likewise.
41409         * lib/regexec.c: Likewise.
41410         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
41411
41412         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
41413
41414         * lib/regexec.c (find_recover_state): Remove unnecessary
41415         initialization.
41416         (transit_state_bkref): Make DFA a const pointer.
41417         (get_subexp): Likewise.
41418         (check_arrival): Likewise.
41419         (update_cur_sifted_state): Likewise.
41420         (re_search_internal): Likewise.
41421         (prune_impossible_nodes): Likewise.
41422         (acquire_init_state_context): Likewise.
41423         (proceed_next_node): Likewise.
41424         (set_regs): Likewise.
41425         (free_fail_stack_return): Likewise.
41426         (check_arrival_expand_ecl): Mark DFA parameter as const.
41427         (check_arrival_expand_ecl_sub): Likewise.
41428         (check_subexp_limits): Likewise.
41429         (sub_epsilon_src_nodes):  Likewise.
41430         (add_epsilon_src_nodes):  Likewise.
41431         (merge_state_array): Likewise.
41432         (update_regs): Likewise.
41433         (build_trtable): Likewise.
41434         (sift_states_backward): Mark MCTX parameter as const.
41435         (build_sifted_states): Likewise.
41436         (update_cur_sifted_state): Likewise.
41437         (sift_states_mkref): Likewise.
41438         (check_arrival_expand_ecl): Mark eclosure as const.
41439         (check_dst_limits_calc_pos_1): Likewise.
41440         * lib/regex_internal.h (re_match_context_t): Make dfa a const
41441         pointer.
41442
41443         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
41444
41445         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
41446         (transit_state_sb): Likewise.
41447         (transit_state_mb): Likewise.
41448         (sift_states_iter_mb): Likewise.
41449         (check_arrival_add_next_nodes): Likewise.
41450         (check_node_accept_bytes): Change first parameter to pointer-to-const.
41451         [_LIBC] (re_search_2_stub): Use mempcpy.
41452
41453         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
41454         mbrtowc for very simple UTF-8 case.
41455
41456         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
41457         a pointer-to-const.
41458         (re_acquire_state_context): Likewise.
41459         * lib/regex_internal.h: Adjust prototypes.
41460
41461         * lib/regex.c: Prevent using C++ compilers.
41462
41463         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
41464         (re_acquire_state_context): Likewise.
41465
41466 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
41467
41468         * modules/regex (Depends-on): Add ssize_t.
41469
41470 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
41471
41472         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
41473         translation table.
41474
41475 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
41476
41477         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
41478
41479 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
41480             Bruno Haible  <bruno@clisp.org>
41481
41482         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
41483         <sys/types.h> and <inttypes.h>.
41484
41485 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41486
41487         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
41488         `__error_t_defined', so argp.h will not typedef the former.
41489
41490 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
41491
41492         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
41493         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
41494         glibc names.  Even if glibc is changed to conform to POSIX, the
41495         traditional names will be available anyway, since regex depends on
41496         the extensions module.  Also, fix a longstanding typo in the
41497         implementation of Spencer ERE test #75 from grep 2.3.  Problems
41498         reported by Emanuele Giaquinta.  Also, change sense of cached
41499         variable, so that the message makes sense.
41500
41501 2006-03-24  Simon Josefsson  <jas@extundo.com>
41502
41503         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
41504         including some doc fixes.
41505         (base64_encode_alloc): Fix +1 bug on allocation failures.
41506
41507 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41508
41509         * lib/base64.c (base64_encode): Do not read past end of array with
41510         unsanitized input on systems with CHAR_BIT > 8.
41511
41512 2006-03-24  Eric Blake  <ebb9@byu.net>
41513
41514         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
41515
41516 2006-03-22  Karl Berry  <karl@gnu.org>
41517
41518         * config/srclist.txt (*setenv.[ch]): get from coreutils.
41519         * config/srclistvars.sh (COREUTILS): new var.
41520
41521 2006-03-17  Jim Meyering  <jim@meyering.net>
41522
41523         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
41524         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
41525
41526 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
41527
41528         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
41529         no longer needs it.  Instead, check that regoff_t is as least
41530         as wide as ptrdiff_t.
41531
41532         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
41533         so that our regex.h stays compatible with the installed regex.
41534         This is helpful for installers who configure --without-included-regex.
41535         Problem reported by Emanuele Giaquinta.
41536
41537 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
41538
41539         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
41540         Typedef to long int, not to off_, as POSIX will likely change
41541         in that direction.
41542
41543 2006-03-15  Eric Blake  <ebb9@byu.net>
41544
41545         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
41546
41547 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
41548
41549         * lib/argp-help.c (validate_uparams): Fix typo
41550         * lib/argp-parse.c (argp_default_options): Consistently begin help
41551         messages with a lowercase letter.
41552
41553 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
41554
41555         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
41556         overrun buffers and shouldn't be used (much as gets shouldn't be
41557         used).
41558         * lib/time_r.c (asctime_r, ctime_r): Likewise.
41559
41560 2006-03-08  Simon Josefsson  <jas@extundo.com>
41561
41562         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
41563         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41564
41565 2006-03-08  Simon Josefsson  <jas@extundo.com>
41566
41567         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
41568         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41569
41570 2006-03-08  Simon Josefsson  <jas@extundo.com>
41571
41572         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
41573         signal that configure disabled the device.
41574
41575 2006-03-08  Simon Josefsson  <jas@extundo.com>
41576
41577         * build-aux/maint.mk: Fix refresh-po, to handle no translated
41578         languages.
41579
41580 2006-03-07  Simon Josefsson  <jas@extundo.com>
41581
41582         * modules/getopt (Depends-on): Add unistd.
41583
41584         * modules/unistd: New file.
41585
41586 2006-03-07  Simon Josefsson  <jas@extundo.com>
41587
41588         * modules/gc-random: New file.
41589
41590 2006-03-07  Simon Josefsson  <jas@extundo.com>
41591
41592         * m4/unistd_h.m4: New file.
41593
41594 2006-03-07  Simon Josefsson  <jas@extundo.com>
41595
41596         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
41597         test to be side-effect free by storing the result in the cache
41598         variable gl_cv_lib_readline, and moving the assignment of
41599         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
41600         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41601
41602 2006-03-07  Simon Josefsson  <jas@extundo.com>
41603
41604         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
41605         error on missing devices (the functions will return an error).
41606
41607         * m4/gc.m4: Move random stuff to gc-random.m4
41608
41609 2006-03-07  Simon Josefsson  <jas@extundo.com>
41610
41611         * lib/unistd_.h: New file.
41612
41613 2006-03-07  Simon Josefsson  <jas@extundo.com>
41614
41615         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
41616
41617 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
41618
41619         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
41620         Problem reported by Juan Manuel Guerrero.
41621
41622 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
41623
41624         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
41625         the unistd module.
41626         * lib/getlogin_r.c: Likewise.
41627         * lib/getlogin_r.h: Likewise.
41628         * lib/glob.c: Likewise.
41629         * lib/pagealign_alloc.c: Likewise.
41630         * lib/unistd_.h: Remove; no longer needed.
41631
41632 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
41633
41634         * MODULES.html.sh (Support for systems lacking POSIX:2001):
41635         Add unistd.
41636         * modules/c-stack (Depends-on): Add unistd.
41637         * modules/getlogin_r: Likewise.
41638         * modules/glob: Likewise.
41639         * modules/pagealign_alloc: Likewise.
41640         * modules/unistd (Files): Remove lib/unistd_.h.
41641         (EXTRA_DIST): Remove.
41642         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
41643         need unistd_.h.
41644         (MOSTLYCLEANFILES): Remove unistd.h-t.
41645
41646 2006-03-03  Simon Josefsson  <jas@extundo.com>
41647
41648         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
41649
41650 2006-03-03  Simon Josefsson  <jas@extundo.com>
41651
41652         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
41653         libidn and bison.
41654
41655 2006-03-03  Simon Josefsson  <jas@extundo.com>
41656
41657         * build-aux/maint.mk: Add indent target.
41658
41659 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
41660
41661         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
41662         our replacement poll.h in any case, to avoid a differing
41663         declaration from a system header.  Seen on AIX.
41664
41665 2006-03-01  Simon Josefsson  <jas@extundo.com>
41666
41667         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
41668         <kasal@ucw.cz>.
41669
41670 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
41671
41672         * modules/gettime (Depends-on): Add extensions module.
41673         * modules/nanosleep (Depends-on): Likewise.
41674         * modules/settime (Depends-on): Likewise.
41675
41676 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
41677
41678         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
41679         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
41680         pedantically.
41681         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41682         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
41683
41684         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
41685         not "==".  Reported by Ralf Wildenhues.
41686
41687 2006-03-01  Karl Berry  <karl@gnu.org>
41688
41689         * doc/Copyright/request-*: new files, synced from gnuorg.
41690
41691 2006-03-01  Karl Berry  <karl@gnu.org>
41692
41693         * config/srclist.txt (Copyright/*): new entries.
41694
41695 2006-02-28  Simon Josefsson  <jas@extundo.com>
41696
41697         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
41698
41699 2006-02-27  Simon Josefsson  <jas@extundo.com>
41700
41701         * lib/base64.h: Indent #define's.  From Jim Meyering
41702         <jim@meyering.net>.
41703
41704 2006-02-27  Jim Meyering  <jim@meyering.net>
41705
41706         Revert the change of 2006-02-24, so these files can continue
41707         to be sync'd from gettext.
41708         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
41709         of `config.h'.
41710
41711 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
41712
41713         * modules/intprops: New file.
41714         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
41715         Add intprops.
41716         * modules/getloadavg (Files): Remove lib/intprops.h.
41717         (Depends-on): Add intprops.
41718         * modules/human: Likewise.
41719         * modules/inttostr: Likewise.
41720         * modules/openat: Likewise.
41721         * modules/sig2str: Likewise.
41722         * modules/userspec: Likewise.
41723         * modules/utimecmp: Likewise.
41724         * modules/xnanosleep: Likewise.
41725         * modules/xstrtol: Likewise.
41726
41727 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
41728
41729         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
41730         * modules/lock-tests (TESTS): Use $(EXEEXT).
41731         * modules/tls-tests: Likewise.
41732         * modules/argp-tests: Likewise.
41733         (check_PROGRAMS): New var, replacing...
41734         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
41735
41736 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41737
41738         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
41739         `config.h'.
41740
41741 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
41742
41743         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
41744
41745 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41746
41747         Sync from coreutils.
41748         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
41749         gl_CHDIR_SAFER.
41750
41751 2006-02-22  Jim Meyering  <jim@meyering.net>
41752
41753         Sync from coreutils.
41754         * m4/chdir-safer.m4: New file.
41755
41756 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
41757
41758         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
41759         AT_FDCWD exceeds INT_MAX.
41760         * lib/openat.h (AT_FDCWD): Likewise.
41761
41762 2006-02-17  Eric Blake  <address@hidden>
41763
41764         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
41765
41766 2006-02-16  Simon Josefsson  <jas@extundo.com>
41767
41768         * modules/getaddrinfo (Depends-on): Add sys_socket.
41769
41770 2006-02-15  Simon Josefsson  <jas@extundo.com>
41771
41772         * build-aux/maint.mk: Add dsyntax-check rule.
41773
41774 2006-02-15  Eric Blake  <ebb9@byu.net>
41775
41776         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
41777         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
41778         'present but cannot compile' warnings on cygwin.
41779         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
41780         use ws2tcpip.h if sys/socket.h works.
41781         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
41782         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
41783
41784 2006-02-14  Simon Josefsson  <jas@extundo.com>
41785
41786         * modules/maintainer-makefile (Files): Rename.
41787
41788         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
41789         and (the local) Makefile.cfg to maint-cfg.mk.
41790
41791         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
41792         to the latter.
41793
41794         * modules/maintainer-makefile: New module.
41795
41796         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
41797         severaly stripped to make it possible to build it up from scratch
41798         with reliable tests.
41799
41800         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
41801         fixes to permit overriding the default actions when configure and
41802         makefile are not available.
41803
41804 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
41805
41806         Sync from coreutils.
41807         * modules/lstat (Depends-on): Don't depend on xalloc.
41808         (License): Change from GPL to LGPL, since this is now simply a
41809         replacement for a libc function.
41810
41811 2006-02-14  Jim Meyering  <jim@meyering.net>
41812
41813         Sync from coreutils.
41814
41815         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
41816         failure on deficient systems, and simplify gnulib lgpl dependencies.
41817         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
41818         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
41819
41820         * lib/xalloc-die.c: Remove unused definition of N_.
41821
41822 2006-02-14  Jim Meyering  <jim@meyering.net>
41823
41824         Sync from coreutils.
41825         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
41826         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
41827         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
41828         double-quote uses of that variable, to accommodate the rare case in
41829         which getmntent is available in none of the libraries checked.  This
41830         happens at least on FreeBSD 5.0.
41831
41832 2006-02-13  Simon Josefsson  <jas@extundo.com>
41833
41834         * gnulib-tool (Usage): Fix --import, from
41835         karl@freefriends.org (Karl Berry).
41836
41837 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
41838
41839         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
41840
41841 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
41842
41843         * lib/argp-namefrob.h: Restore changes accidentally lost during the
41844         "autoupdate" on 2005-12-12.
41845
41846 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
41847
41848         * modules/closeout (Depends-on): Remove atexit.
41849
41850 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
41851
41852         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
41853         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
41854
41855 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
41856
41857         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
41858         __EXTENSIONS__ if this causes compilation to fail.  Problem
41859         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
41860         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
41861
41862 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
41863
41864         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
41865         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
41866         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
41867         All uses changed.
41868
41869 2006-01-26  Simon Josefsson  <jas@extundo.com>
41870
41871         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
41872         prototype is visible on mingw32.
41873
41874         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
41875         for mingw32.
41876
41877         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
41878         mingw32).
41879
41880 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
41881
41882         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
41883         attempt to open for write; this always fails, at least on POSIX
41884         hosts.  This reinstates the 2006-01-09 change, which was
41885         inadvertently removed.
41886
41887 2006-01-26  Bruno Haible  <bruno@clisp.org>
41888
41889         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
41890         Reported by Paul Eggert.
41891
41892 2006-01-26  Bruno Haible  <bruno@clisp.org>
41893             Paul Eggert  <eggert@cs.ucla.edu>
41894
41895         * lib/stdbool_.h (_Bool)
41896         [(! (defined __cplusplus || defined __BEOS__)
41897           && !defined __GNUC__
41898           && !(defined __HP_cc || defined __xlc__
41899                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
41900                || defined __sgi))]:
41901         #define to signed char in these cases too; this simplifies
41902         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
41903         etc., separately) and makes it more conservative.
41904
41905 2006-01-25  Simon Josefsson  <jas@extundo.com>
41906
41907         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
41908         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
41909         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
41910
41911 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
41912
41913         * lib/argp-namefrob.h: Bugfix. Remove stray #
41914
41915 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
41916
41917         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
41918         so that we test the test.
41919         Check for yet another HP-UX cc bug involving *bool |= bool.
41920
41921 2006-01-25  Karl Berry  <karl@gnu.org>
41922
41923         * config/srclist.txt (vasnprintf.c): sync lost.
41924
41925 2006-01-25  Jim Meyering  <jim@meyering.net>
41926
41927         Sync from the stable (b5) branch of coreutils:
41928
41929         * lib/fts.c (fts_children): Don't let close() clobber errno from
41930         failed fchdir().
41931
41932         * lib/fts.c (fts_stat): When following a symlink-to-directory,
41933         don't necessarily interpret stat-fails+lstat-succeeds as indicating
41934         a dangling symlink.  That can also happen at least for ELOOP.
41935         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
41936         FYI, this bug predates the inclusion of fts.c in coreutils.
41937
41938         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
41939         in their own block, so pre-c99 compilers don't object.
41940
41941         Avoid the double-free (first in fts_read, second in fts_close) that
41942         would occur when an `active' directory is made inaccessible (e.g.,
41943         via chmod a-x) during a traversal.
41944         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
41945         before returning.  Reproduce this failure by
41946         mkdir -p a/b; cd a; chmod a-x . b
41947         Reported by Stavros Passas.
41948
41949 2006-01-25  Jim Meyering  <jim@meyering.net>
41950
41951         * lib/fileblocks.c: Remove more useless parentheses.
41952         * lib/readutmp.h: Likewise.
41953
41954 2006-01-25  Bruno Haible  <bruno@clisp.org>
41955
41956         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
41957         warnings.
41958         Reported by Paul Eggert.
41959
41960 2006-01-25  Bruno Haible  <bruno@clisp.org>
41961
41962         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
41963         rid of a trap command. For Solaris sh.
41964         Reported by Mark D. Baushke <mdb@gnu.org>.
41965
41966 2006-01-24  Simon Josefsson  <jas@extundo.com>
41967
41968         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
41969         Bruno.
41970
41971 2006-01-24  Karl Berry  <karl@gnu.org>
41972
41973         * config/srclist.txt (argp-namefrob.h): sync lost.
41974
41975 2006-01-24  Jim Meyering  <jim@meyering.net>
41976
41977         * modules/openat (Files): Add lib/intprops.h.
41978         From Mark D. Baushke.
41979
41980 2006-01-24  Jim Meyering  <jim@meyering.net>
41981
41982         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
41983         Reported by Mark D. Baushke.
41984
41985 2006-01-24  Jim Meyering  <jim@meyering.net>
41986
41987         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
41988
41989 2006-01-24  Bruno Haible  <bruno@clisp.org>
41990
41991         * modules/strnlen (Maintainer): Change from glibc to all.
41992
41993 2006-01-24  Bruno Haible  <bruno@clisp.org>
41994
41995         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
41996         Patch by Paul Eggert.
41997
41998 2006-01-24  Bruno Haible  <bruno@clisp.org>
41999
42000         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
42001         already has it.
42002         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
42003         2005-11-26.
42004
42005         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
42006         'signed char' to avoid problems with the built-in _Bool type.
42007         Reported by Paul Eggert on 2005-11-26.
42008
42009 2006-01-24  Bruno Haible  <bruno@clisp.org>
42010
42011         * gnulib-tool (func_import): Avoid constructing complicated sed
42012         expressions inside backquote.
42013         Report and solution by Mark D. Baushke <mdb@gnu.org>.
42014
42015 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
42016
42017         These changes imported from libc.
42018         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
42019         test and two separate function calls.
42020         * lib/strndup.c (__strndup): Add libc_hidden_def.
42021
42022 2006-01-23  Simon Josefsson  <jas@extundo.com>
42023
42024         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
42025         Remove the test_*_SOURCES variable: automake infers it by default.
42026         * modules/tls-tests: Likewise.
42027
42028 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42029
42030         Work around porting bugs reported by Dieter in
42031         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
42032         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
42033         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
42034         Include "getopt.h" first, to check interface.
42035         (getenv): Declare only if defined HAVE_DECL_GETENV &&
42036         !HAVE_DECL_GETENV.
42037         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
42038         (__strndup): Revert to K&R-style function dfns, the glibc style.
42039         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
42040         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
42041         Include strnlen.h first, to get prototype properly.
42042         (strnlen): Renamed from __strnlen.
42043         Remove weak alias.
42044
42045 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42046
42047         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
42048
42049 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42050
42051         * config/srclist.txt: Adjust to reflect glibc reorganization.
42052         This affects only comments.
42053
42054 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
42055
42056          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
42057          Reported by Bruce Korb <bkorb@gnu.org>.
42058
42059 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
42060
42061         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
42062         to pacify gcc -Wswitch-default.
42063
42064 2006-01-22  Bruno Haible  <bruno@clisp.org>
42065
42066         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
42067         temporary buffer for sprintf, take into account the precision also
42068         for 'd', 'i', 'u', 'o', 'x', 'X'.
42069
42070 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
42071
42072         * modules/argp-tests: New module
42073         * tests/test-argp.c: New file
42074         * tests/test-argp-2.sh: New file
42075
42076 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
42077
42078         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
42079         (__argp_base_name): Removed
42080         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
42081         typo.
42082         (__argp_base_name): Provide macro definition or extern declaration
42083         depending on the configuration
42084
42085 2006-01-20  Simon Josefsson  <jas@extundo.com>
42086
42087         * modules/inet_ntop (Depends-on): Depend on sys_socket.
42088
42089 2006-01-20  Simon Josefsson  <jas@extundo.com>
42090
42091         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
42092
42093 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
42094
42095         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
42096         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
42097         Suggested by Bruno Haible.
42098
42099 2006-01-20  Karl Berry  <karl@gnu.org>
42100
42101         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
42102         until changes propagate, I guess.
42103
42104 2006-01-19  Simon Josefsson  <jas@extundo.com>
42105
42106         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
42107
42108 2006-01-19  Simon Josefsson  <jas@extundo.com>
42109
42110         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
42111
42112 2006-01-19  Simon Josefsson  <jas@extundo.com>
42113
42114         * gnulib-tool: Set check_PROGRAMS.
42115
42116         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
42117         modules/des-tests, modules/gc-arcfour-tests,
42118         modules/gc-arctwo-tests, modules/gc-des-tests,
42119         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
42120         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
42121         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
42122         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
42123         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
42124         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
42125         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
42126         test_*_SOURCES.
42127
42128 2006-01-18  Simon Josefsson  <jas@extundo.com>
42129
42130         * modules/socklen (Depends-on): Depend on sys_socket.
42131
42132 2006-01-18  Simon Josefsson  <jas@extundo.com>
42133
42134         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
42135         modules/des-tests, modules/gc-arcfour-tests,
42136         modules/gc-arctwo-tests, modules/gc-des-tests,
42137         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
42138         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
42139         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
42140         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
42141         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
42142         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
42143         $(EXEEXT) to automake TESTS variable, for mingw32.
42144
42145 2006-01-17  Simon Josefsson  <jas@extundo.com>
42146
42147         * modules/socklen (Include): Need sys/socket.h.
42148
42149 2006-01-17  Bruno Haible  <bruno@clisp.org>
42150
42151         * modules/ssize_t (Include): Add <sys/types.h>.
42152
42153 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
42154
42155         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
42156         it's not portable and it doesn't work with cross-compiles.
42157         Problem reported by Bruno Haible.  Fix missing-$ typo in
42158         'test "gl_cv_ignore_unused_libraries" ...' that prevented
42159         -zignore from being used with Sun's C compiler.
42160
42161 2006-01-12  Simon Josefsson  <jas@extundo.com>
42162
42163         * lib/base64.c: Fix warning, reported by Bruno Haible
42164         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
42165
42166 2006-01-12  Bruno Haible  <bruno@clisp.org>
42167
42168         * modules/ldd: New file.
42169         * build-aux/ldd.sh.in: New file.
42170         * MODULES.html.sh (Support for building libraries and executables): Add
42171         ldd.
42172
42173 2006-01-12  Bruno Haible  <bruno@clisp.org>
42174
42175         * m4/ldd.m4: New file.
42176
42177 2006-01-12  Bruno Haible  <bruno@clisp.org>
42178
42179         * gnulib-tool (func_import, func_create_testdir): Don't go into an
42180         endless loop while replacing $auxdir with build-aux.
42181
42182 2006-01-11  Simon Josefsson  <jas@extundo.com>
42183
42184         * lib/stdint_.h (SIZE_MAX): Add missing (.
42185
42186 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
42187
42188         Sync from coreutils.
42189         * lib/md5.c: Fix commentary typos.
42190         (alignof, UNALIGNED_P): No need for a GCC-specific version.
42191         * lib/md5.h (__attribute__): Remove; unused.
42192         * lib/sha1.c: Fix commentary to match md5 better.
42193         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
42194         so that we don't need to worry about alignment.  All uses changed.
42195         This merges the 2005-10-28 md5 change into sha1.
42196
42197 2006-01-11  Jim Meyering  <jim@meyering.net>
42198
42199         Sync from coreutils.
42200         * lib/md5.c (OP): Fix spacing.
42201
42202 2006-01-11  Bruno Haible  <bruno@clisp.org>
42203
42204         Ensure automatic ordering between gl_LOCK and gl_ARGP.
42205         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
42206         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
42207
42208 2006-01-11  Bruno Haible  <bruno@clisp.org>
42209
42210         Ensure automatic ordering between gl_LOCK and gl_ARGP.
42211         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
42212         the "early" section as well.
42213
42214 2006-01-11  Bruno Haible  <bruno@clisp.org>
42215
42216         Avoid "ar: no archive members specified" error on MacOS X.
42217         * gnulib-tool (func_modules_add_dummy): New function.
42218         (func_import, func_create_testdir): Invoke it.
42219
42220 2006-01-11  Bruno Haible  <bruno@clisp.org>
42221
42222         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
42223         with $auxdir in AC_CONFIG_FILES statements.
42224
42225 2006-01-11  Bruno Haible  <bruno@clisp.org>
42226
42227         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42228         Initialize also noinst_HEADERS to empty.
42229
42230 2006-01-11  Bruno Haible  <bruno@clisp.org>
42231
42232         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
42233         variables.
42234         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
42235         autoreconf.
42236
42237 2006-01-11  Bruno Haible  <bruno@clisp.org>
42238
42239         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
42240         overridable by the user.
42241         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42242
42243 2006-01-10  Simon Josefsson  <jas@extundo.com>
42244
42245         * modules/sys_socket: New file.
42246
42247 2006-01-10  Simon Josefsson  <jas@extundo.com>
42248
42249         * m4/sys_socket_h.m4: New file.
42250
42251 2006-01-10  Simon Josefsson  <jas@extundo.com>
42252
42253         * lib/socket_.h: New file.
42254
42255 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
42256
42257         * modules/readutmp (Maintainer): Add myself.
42258
42259 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
42260
42261         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
42262         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
42263         People who are still concerned with buggy memcmp implementations
42264         can invoke gl_FUNC_MEMCMP themselves.
42265
42266 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
42267
42268         * lib/regex_internal.h (BITSET_WORD_BITS):
42269         Work around a bug in 64-bit PGC (before version 6.1-2), where the
42270         preprocessor mishandles large unsigned values as if they were signed.
42271         Problem reported by Claudio Fontana in
42272         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
42273
42274 2006-01-10  Jim Meyering  <jim@meyering.net>
42275
42276         Avoid the double-free (first in fts_read, second in fts_close) that
42277         would occur when an `active' directory is made inaccessible (e.g.,
42278         via chmod a-x) during a traversal.
42279         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
42280         before returning.  Reproduce this failure by
42281         mkdir -p a/b; cd a; chmod a-x . b
42282         Reported by Stavros Passas.
42283
42284         Sync from coreutils.
42285         * lib/sha1.c: Tweak grammar in a comment.
42286
42287 2006-01-10  Jim Meyering  <jim@meyering.net>
42288
42289         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
42290         Patch by Joerg Sonnenberger.
42291
42292 2006-01-10  Bruno Haible  <bruno@clisp.org>
42293
42294         * modules/readutmp: Depend on module free.
42295         * modules/strtok_r: Depend on module restrict.
42296
42297 2006-01-10  Bruno Haible  <bruno@clisp.org>
42298
42299         * modules/gettext (configure.ac): Add an invocation of
42300         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
42301
42302 2006-01-10  Bruno Haible  <bruno@clisp.org>
42303
42304         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
42305         Reported by Werner Lemberg <wl@gnu.org>.
42306
42307 2006-01-10  Bruno Haible  <bruno@clisp.org>
42308
42309         * lib/localcharset.c: Update from GNU gettext.
42310
42311 2006-01-10  Bruno Haible  <bruno@clisp.org>
42312
42313         * lib/argp.h (__const): Remove macro. Use const instead.
42314         * lib/argp-fmtstream.h (__const): Likewise.
42315         * lib/glob_.h (__const): Remove macro.
42316         * lib/glob-libc.h: Use const instead of __const.
42317
42318 2006-01-10  Bruno Haible  <bruno@clisp.org>
42319
42320         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
42321         variable.
42322         Needed to avoid an automake error regarding the 'gettext' module.
42323
42324 2006-01-09  Simon Josefsson  <jas@extundo.com>
42325
42326         * modules/inet_ntop (Depends-on): Add restrict.
42327
42328 2006-01-09  Simon Josefsson  <jas@extundo.com>
42329
42330         * modules/gc-rijndael-tests (License): Put under LGPL.
42331
42332         * modules/gc-des-tests (License): Likewise.
42333
42334         * modules/gc-arcfour-tests (License): Likewise.
42335
42336         * modules/gc-arctwo-tests (License): Likewise.
42337
42338         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
42339
42340         * modules/gc-hmac-sha1-tests (Files): Likewise.
42341
42342         * modules/gc-hmac-md5-tests (License): Likewise.
42343
42344         * modules/gc-sha1-tests (License): Likewise.
42345
42346         * modules/gc-md5-tests (License): Likewise.
42347
42348         * modules/gc-md4-tests (License): Likewise.
42349
42350         * modules/gc-md2-tests (License): Likewise.
42351
42352         * modules/gc-tests (License): Likewise.
42353
42354         * modules/des-tests (License): Likewise.
42355
42356         * modules/md4-tests (License): Likewise.
42357
42358         * modules/md2-tests (License): Likewise.
42359
42360 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
42361
42362         Sync from coreutils:
42363
42364         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
42365         * modules/lib-ignore: New file.
42366         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
42367         chdir-safer.m4, lchmod.m4.
42368         * modules/openat: Add mkdirat.c, openat-priv.h.
42369
42370 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
42371
42372         Sync from coreutils.
42373         * m4/lib-ignore.m4: New file.
42374         * m4/lchmod.m4: New file.
42375
42376 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
42377
42378         Sync from coreutils.
42379         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
42380         for write access: POSIX says that must fail.
42381         * lib/fts.c (diropen): Likewise.
42382         * lib/save-cwd.c (save_cwd): Likewise.
42383         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
42384         well, for minor improvements on hosts that lack O_DIRECTORY.
42385         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
42386         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
42387         Fall back on chown if open failed with EACCES.
42388
42389         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
42390         Report an error at compile-time if only a 1-second nominal clock
42391         resolution is found.
42392
42393         * lib/lchmod.h: New file.
42394         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
42395         (make_dir_parents): Use lchown rather than chown, and
42396         lchmod rather than chmod.
42397
42398         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
42399         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
42400         "proc" reported by n0dalus.
42401
42402         * lib/mountlist.c: Include <limits.h>.
42403         (dev_from_mount_options)
42404         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
42405         New function.  It no longer assumes "dev=" has the System V meaning
42406         on Linux (since it doesn't).  It also parses "dev=" more carefully.
42407         (read_file_system_list)
42408         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
42409         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
42410         dev= in that case.
42411
42412         * lib/posixtm.h (PDS_PRE_2000): New macro.
42413         * lib/posixtm.c (year): Arg is now syntax_bits rather than
42414         allow_century.  All usages changed.  Reject dates outside the range
42415         1969-1999 if PDS_PRE_2000 is used.
42416
42417 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
42418
42419         Sync from coreutils.
42420         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
42421         (Time of day items): Mention the possibility of leap seconds.
42422         Problem reported by Dr. David Alan Gilbert.
42423
42424 2006-01-09  Jim Meyering  <jim@meyering.net>
42425
42426         Sync from coreutils.
42427
42428         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
42429
42430         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
42431
42432         * lib/modechange.c (mode_compile): Reject an invalid mode string
42433         that starts with an octal digit.  From Andreas Gruenbacher.
42434
42435         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
42436         and dup to open_safer and dup_safer, respectively.
42437         (openat_permissive): Fix typo in comment.
42438
42439         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
42440         "gettext.h"; either no longer needed or are guaranteed by openat.h.
42441         (_): Remove; no longer needed.
42442         (openat): Renamed from rpl_openat; no need for rpl_openat
42443         since openat.h renames openat for us.
42444         Replace most of the body with a call to openat_permissive,
42445         to avoid duplicate code.
42446         Port to (probably hypothetical) environments were mode_t is
42447         wider than int.
42448         (openat_permissive): Require mode arg, so that we can check
42449         types better.  Put it just after flags.  Change cwd failure
42450         indicator from pointer-to-bool to pointer-to-errno-value.
42451         All callers changed.
42452         Invoke openat_save_fail and/or openat_restore_fail if
42453         cwd_errno is null, so that openat can call us.
42454         (openat_permissive, fdopendir, fstatat, unlinkat):
42455         Simplify errno handling to avoid some duplicate code,
42456         as it's OK to set errno on success.
42457         * lib/openat.h: Revamp code so that function macros depend on
42458         __OPENAT_PREFIX only, not also on AT_FDCWD.
42459         (openat_ro): Remove.  Caller changed to use openat_permissive.
42460         (openat_permissive): Now a macro, if not a function.
42461         (openat_restore_fail, openat_save_fail): Now always functions,
42462         since mkdirat needs them even if __OPENAT_PREFIX is defined.
42463
42464         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
42465         and openat.c.
42466         * lib/mkdirat.c: Include openat-priv.h.
42467         Remove definitions of macros defined therein.
42468         * lib/openat.c: Likewise.
42469
42470         * lib/mkdirat.c (mkdirat): New file and function.
42471         * lib/openat.h (mkdirat): Declare.
42472
42473         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
42474
42475         * lib/openat.h (openat_permissive): Declare.
42476         (openat_ro): Define.
42477
42478         * lib/openat.c (EXPECTED_ERRNO): New macro.
42479         (openat_permissive): New function -- used in remove.c rewrite.
42480         (all functions): Set errno just before returning, only if there
42481         was an actual failure.
42482         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
42483
42484         Emulate openat-family functions using Linux's procfs, if possible.
42485         Idea and some code based on Ulrich Drepper's glibc changes.
42486
42487         * lib/openat.c: (BUILD_PROC_NAME): New macro.
42488         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
42489         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
42490         before falling back on save_cwd and restore_cwd.
42491         (fdopendir, fstatat, unlinkat): Likewise.
42492
42493         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
42494         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
42495
42496         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
42497         as second argument to va_arg.  Otherwise, some versions of gcc
42498         warn that `if this code is reached, the program will abort'.
42499
42500 2006-01-09  Jim Meyering  <jim@meyering.net>
42501
42502         Sync from coreutils.
42503         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
42504         Require openat-priv.h.
42505
42506 2006-01-09  Bruno Haible  <bruno@clisp.org>
42507
42508         * modules/strnlen (Include): Use strnlen.h.
42509
42510 2006-01-09  Bruno Haible  <bruno@clisp.org>
42511
42512         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
42513
42514 2006-01-09  Bruno Haible  <bruno@clisp.org>
42515
42516         * lib/sysexit_.h (EX_OK): New macro.
42517         Suggested by Martin Lambers <marlam@marlam.de>.
42518
42519 2006-01-09  Bruno Haible  <bruno@clisp.org>
42520
42521         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
42522         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
42523
42524 2006-01-09  Bruno Haible  <bruno@clisp.org>
42525
42526         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
42527         numbers.
42528
42529 2006-01-09  Bruno Haible  <bruno@clisp.org>
42530
42531         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
42532         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
42533         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
42534         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
42535
42536 2006-01-09  Bruno Haible  <bruno@clisp.org>
42537
42538         * build-aux/javacomp.sh.in: New file, moved from lib/.
42539         * modules/javacomp-script (Files): Update.
42540         (configure.ac): Add AC_CONFIG_FILES invocation.
42541         (EXTRA_DIST): Remove variable.
42542
42543         * build-aux/javaexec.sh.in: New file, moved from lib/.
42544         * modules/javaexec (Files): Update.
42545         (configure.ac): Add AC_CONFIG_FILES invocation.
42546         (EXTRA_DIST): Remove javaexec.sh.in.
42547
42548         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
42549         * modules/csharpcomp-script (Files): Update.
42550         (configure.ac): Add AC_CONFIG_FILES invocation.
42551         (EXTRA_DIST): Remove variable.
42552
42553         * build-aux/csharpexec.sh.in: New file, moved from lib/.
42554         * modules/csharpexec (Files): Update.
42555         (configure.ac): Add AC_CONFIG_FILES invocation.
42556         (EXTRA_DIST): Remove csharpexec.sh.in.
42557
42558 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
42559
42560         Sync from coreutils.
42561
42562         Add POSIX ACL support
42563         * lib/acl.h (copy_acl, set_acl): Add declarations.
42564         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
42565         systems other than Linux.
42566         (chmod_or_fchmod): New function: use fchmod when possible,
42567         and chmod otherwise.
42568         (file_has_acl): Add a POSIX ACL implementation, with a
42569         Linux-specific subcase.
42570         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
42571         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
42572         acls are unsupported.
42573         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
42574         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
42575         are unsupported.
42576
42577 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
42578
42579         Sync from coreutils.
42580         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
42581
42582 2006-01-07  Bruno Haible  <bruno@clisp.org>
42583
42584         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
42585         gl_EARLY.
42586
42587 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
42588
42589         * lib/strftime.c (tzname): Don't declare if it is already #defined.
42590         Problem reported for Mingw by Mark Junker.
42591
42592 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
42593
42594         * README: Gnulib normally doesn't generate a tarball.
42595
42596 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
42597
42598         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
42599         long int, not int, for nanosecond counts, so that people who are
42600         used to POSIX struct timespec won't be surprised.  Reported by Jim
42601         Meyering.
42602
42603 2005-12-28  Bruno Haible  <bruno@clisp.org>
42604
42605         * build-aux/config.rpath: Update from GNU gettext.
42606
42607 2005-12-16  Jim Meyering  <jim@meyering.net>
42608
42609         * modules/fprintftime: New module.
42610         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
42611
42612 2005-12-16  Jim Meyering  <jim@meyering.net>
42613
42614         * m4/fprintftime.m4: New file.
42615
42616 2005-12-16  Jim Meyering  <jim@meyering.net>
42617
42618         * lib/fprintftime.c, lib/fprintftime.h: New files.
42619
42620 2005-12-15  Simon Josefsson  <jas@extundo.com>
42621
42622         * modules/socklen (configure.ac): Fix M4 macro name, to align with
42623         new m4/socklen.m4.
42624
42625 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
42626
42627         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
42628         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
42629
42630 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
42631
42632         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
42633         * lib/argp-help.c (fill_in_uparams): Check if the constructed
42634         struct uparams is valid. Fall back to the default values if it is
42635         not.
42636
42637 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
42638
42639         * modules/argp (Files): Add argp-pin.c
42640         (Depends-on): dirname
42641         (lib_SOURCES): Add argp-pin.c
42642
42643 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
42644
42645         * m4/argp.m4:  Check if program_invocation_name and
42646         program_invocation_short_name are declared and define appropriate
42647         macros if they are not.
42648
42649 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
42650
42651         * lib/argp-help.c (__argp_base_name): New function
42652         (__argp_short_program_name): Rewrite using __argp_base_name
42653         * lib/argp-namefrob.h: Define program_invocation_name and
42654         program_invocation_short_name if requested
42655         (__argp_base_name): Add prototype
42656         * lib/argp-parse.c (argp_def): Use gettext wrappers
42657         (argp_default_parser): Use __argp_base_name
42658         * lib/argp-pin.c: New file. Defines program_invocation_name and
42659         program_invocation_short_name on systems that lack them.
42660
42661 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
42662
42663         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
42664         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
42665         porting problem reported by Georg Schwarz in
42666         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
42667
42668 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
42669
42670         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
42671         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
42672         porting problem reported by Georg Schwarz in
42673         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
42674
42675 2005-12-05  Bruno Haible  <bruno@clisp.org>
42676
42677         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
42678         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
42679         Reported by Mark Junker <mjscod@gmx.de>.
42680
42681 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
42682
42683         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
42684         Use implementation from Albert Chin, with some
42685         comments/corrections by Stepan Kasal and myself.
42686
42687 2005-12-02  Bruno Haible  <bruno@clisp.org>
42688
42689         * gnulib-tool (func_import): Accept GPLed build tool modules when
42690         --lgpl is given.
42691         * modules/csharpcomp-script: New file.
42692         * modules/csharpcomp: Depend on it.
42693         * modules/javacomp-script: New file.
42694         * modules/javacomp: Depend on it.
42695         Suggested by Simon Josefsson.
42696
42697 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
42698
42699         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
42700         statement, to work around an HP-UX 10.20 compiler bug reported by
42701         Peter O'Gorman.
42702
42703 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
42704
42705         * modules/savedir (Depends-on): Add openat.
42706
42707 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
42708
42709         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
42710         (uintmax_t) [defined uintmax_t]: Do not declare.
42711         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
42712         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
42713         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
42714         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
42715         sake of portability to weird hosts that C allows (though we don't
42716         know of any practical examples).
42717
42718         * lib/savedir.h (fdsavedir): New decl.
42719         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
42720         contains most of the former guts of savedir.
42721         (savedir): Use savedirstream.
42722         Include "openat.h".
42723
42724 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
42725
42726         * modules/obstack (Files): Add m4/ulonglong.m4.
42727         Problem reported by Davide Angelocola.
42728
42729 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
42730
42731         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
42732         coreutils no longer futzes with rounding modes.
42733
42734 2005-11-14  Jim Meyering  <jim@meyering.net>
42735
42736         * lib/mkstemp-safer.c: Include <config.h>, required for possible
42737         replacement of mkstemp.
42738
42739 2005-11-10  Simon Josefsson  <jas@extundo.com>
42740
42741         * lib/readline.c: Remove EOL.
42742
42743 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
42744
42745         * modules/gethrxtime (Depends-on): Add gettime.
42746
42747 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
42748
42749         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
42750         or gettimeofday; no longer needed.
42751
42752 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
42753
42754         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
42755         time business.
42756         (gethrxtime) [! (HAVE_NANOUPTIME
42757         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
42758         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
42759         our own approximation.
42760
42761 2005-11-08  Eric Blake  <ebb9@byu.net>
42762
42763         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
42764
42765 2005-11-08  Eric Blake  <ebb9@byu.net>
42766
42767         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
42768
42769 2005-11-04  Bruno Haible  <bruno@clisp.org>
42770
42771         * gnulib-tool: Implement --update mode.
42772
42773 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
42774
42775         Fix porting problem reported by Theodoros V. Kalamatianos.
42776         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
42777         Don't assume that futimes failing means we must fail.
42778
42779 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
42780
42781         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
42782         variables to suggest the intended function of the PATH_MAX check.
42783
42784 2005-10-30  Kean Johnston  <jkj@sco.com>
42785
42786         Trivial changes to support SCO systems.
42787         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
42788         as PATH_MAX.
42789         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
42790         where __ptr is null when no I/O is pending.
42791
42792 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
42793
42794         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
42795         leave errno alone.  Problem reported by Dmitry V. Levin.
42796
42797 2005-10-28  Simon Josefsson  <jas@extundo.com>
42798
42799         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
42800         Test more.
42801
42802         * tests/test-gc-md2.c, tests/test-md2.c: New files.
42803
42804         * modules/md2, modules/md2-tests: New files.
42805
42806 2005-10-28  Simon Josefsson  <jas@extundo.com>
42807
42808         * m4/inet_ntop.m4: More tests.
42809
42810         * m4/gc-md2.m4, md2.m4: New file.
42811
42812 2005-10-28  Simon Josefsson  <jas@extundo.com>
42813
42814         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
42815         "restrict" keywords, as per POSIX.  Protect the function
42816         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
42817         Don't use K&R prototypes.  Check the sprintf return values.
42818         Re-define EAFNOSUPPORT if not present.  Indent.
42819
42820         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
42821         suggested by Bruno Haible <bruno@clisp.org>.
42822
42823         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
42824
42825         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
42826
42827         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
42828         libgcrypt).
42829
42830         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
42831
42832         * lib/md2.h, lib/md2.c: New files.
42833
42834 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
42835
42836         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
42837         errno alone.  Problem reported by Frederic Jolliton.
42838
42839 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
42840
42841         * modules/verify (License): Change from GPL to LGPL.  This is a
42842         tiny module and there are apparently near-equivalents that are
42843         under the BSD license.
42844
42845 2005-10-24  Simon Josefsson  <jas@extundo.com>
42846
42847         * modules/sha1: Relicense to LGPL.
42848
42849 2005-10-24  Simon Josefsson  <jas@extundo.com>
42850
42851         * lib/md4.h: Shrink buffer size, now that we changed the type.
42852
42853 2005-10-23  Simon Josefsson  <jas@extundo.com>
42854
42855         * gnulib-tool (func_import): Fix --tests-base.
42856
42857 2005-10-22  Simon Josefsson  <jas@extundo.com>
42858
42859         * modules/arcfour (Depends-on): Need stdint.
42860
42861 2005-10-22  Simon Josefsson  <jas@extundo.com>
42862
42863         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
42864         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
42865
42866 2005-10-22  Simon Josefsson  <jas@extundo.com>
42867
42868         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
42869         suggested by Bruno Haible <bruno@clisp.org>.
42870
42871 2005-10-22  Simon Josefsson  <jas@extundo.com>
42872
42873         * lib/crc.h: Include stddef.h, for size_t.
42874
42875 2005-10-22  Simon Josefsson  <jas@extundo.com>
42876
42877         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
42878         arcfour_context struct (simplify test vector testing in GNU
42879         Shishi).
42880
42881 2005-10-21  Simon Josefsson  <jas@extundo.com>
42882
42883         * modules/des, modules/des-tests: New files.
42884
42885         * modules/gc-des, modules/gc-des-tests: New files.
42886
42887         * tests/test-des.c, tests/test-gc-des.c: New file.
42888
42889 2005-10-21  Simon Josefsson  <jas@extundo.com>
42890
42891         * modules/arctwo, modules/arctwo-tests: New files.
42892
42893         * tests/test-arctwo.c: New file.
42894
42895         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
42896
42897         * tests/test-gc-arctwo.c: New file.
42898
42899 2005-10-21  Simon Josefsson  <jas@extundo.com>
42900
42901         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
42902         Bruno Haible <bruno@clisp.org>.
42903
42904         * m4/gc-des.m4: New file.
42905
42906 2005-10-21  Simon Josefsson  <jas@extundo.com>
42907
42908         * m4/arctwo.m4: New file.
42909
42910         * m4/gc-arctwo.m4: New file.
42911
42912 2005-10-21  Simon Josefsson  <jas@extundo.com>
42913
42914         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
42915         block.
42916
42917 2005-10-21  Simon Josefsson  <jas@extundo.com>
42918
42919         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
42920         <bruno@clisp.org>.
42921
42922         * lib/hmac-sha1.c (hmac_sha1): Likewise.
42923
42924         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
42925         Bruno Haible <bruno@clisp.org>.
42926
42927         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
42928         <bruno@clisp.org>.
42929
42930 2005-10-21  Simon Josefsson  <jas@extundo.com>
42931
42932         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
42933
42934 2005-10-21  Simon Josefsson  <jas@extundo.com>
42935
42936         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
42937
42938 2005-10-21  Simon Josefsson  <jas@extundo.com>
42939
42940         * lib/des.h, lib/des.c: New files.
42941
42942         * lib/gc-gnulib.c: Support DES.c
42943
42944 2005-10-21  Simon Josefsson  <jas@extundo.com>
42945
42946         * lib/arctwo.h, lib/arctwo.c: New files.
42947
42948         * lib/gc-gnulib.c: Support ARCTWO.
42949
42950 2005-10-21  Simon Josefsson  <jas@extundo.com>
42951
42952         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
42953         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42954
42955 2005-10-21  Simon Josefsson  <jas@extundo.com>
42956
42957         * gnulib-tool (func_import, func_create_testdir): Define automake
42958         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
42959         Makefile.am snippet),
42960         suggested by Bruno Haible <bruno@clisp.org>.
42961
42962         * modules/gc (Makefile.am): Use it.
42963
42964 2005-10-21  Bruno Haible  <bruno@clisp.org>
42965
42966         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
42967         patch.
42968
42969 2005-10-19  Simon Josefsson  <jas@extundo.com>
42970
42971         * tests/test-gc-rijndael.c: New file.
42972
42973         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
42974
42975 2005-10-19  Simon Josefsson  <jas@extundo.com>
42976
42977         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
42978         interface too.
42979
42980 2005-10-19  Simon Josefsson  <jas@extundo.com>
42981
42982         * tests/test-gc-arcfour.c: New file.
42983
42984         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
42985
42986 2005-10-19  Simon Josefsson  <jas@extundo.com>
42987
42988         * modules/gc-md4, modules/gc-md4-tests: New file.
42989
42990         * tests/test-gc-md4.c: New file.
42991
42992 2005-10-19  Simon Josefsson  <jas@extundo.com>
42993
42994         * m4/gc-md4.m4: New file.
42995
42996 2005-10-19  Simon Josefsson  <jas@extundo.com>
42997
42998         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
42999         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
43000         <kasal@ucw.cz>.
43001
43002 2005-10-19  Simon Josefsson  <jas@extundo.com>
43003
43004         * m4/gc-arcfour.m4: New file.
43005
43006         * m4/gc-rijndael.m4: New file.
43007
43008 2005-10-19  Simon Josefsson  <jas@extundo.com>
43009
43010         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
43011
43012 2005-10-19  Simon Josefsson  <jas@extundo.com>
43013
43014         * lib/gc-gnulib.c: Support ARCFOUR.
43015
43016 2005-10-19  Simon Josefsson  <jas@extundo.com>
43017
43018         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
43019         support.
43020
43021         * lib/gc.h: Add ECB enum type.
43022
43023         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
43024
43025 2005-10-18  Simon Josefsson  <jas@extundo.com>
43026
43027         * tests/test-md5.c: New file.
43028
43029         * modules/md5-tests: New file.
43030
43031 2005-10-18  Simon Josefsson  <jas@extundo.com>
43032
43033         * tests/test-md4.c: New file.
43034
43035         * modules/md4, modules/md4-tests: New files.
43036
43037 2005-10-18  Simon Josefsson  <jas@extundo.com>
43038
43039         * m4/md4.m4: New file.
43040
43041 2005-10-18  Simon Josefsson  <jas@extundo.com>
43042
43043         * lib/md4.h, lib/md4.c: New files, based on md5.?.
43044
43045 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
43046
43047         * gnulib-tool (func_create_testdir): Omit the second check whether
43048         BUILT_SOURCES in nonempty.
43049
43050 2005-10-17  Simon Josefsson  <jas@extundo.com>
43051
43052         * tests/test-rijndael.c: New file.
43053
43054 2005-10-17  Simon Josefsson  <jas@extundo.com>
43055
43056         * modules/sha1: Depend on stdint instead of md5.
43057
43058         * modules/md5: Depend on stdint, remove uint32_t.
43059
43060 2005-10-17  Simon Josefsson  <jas@extundo.com>
43061
43062         * modules/gc-sha1-tests: New file.
43063
43064         * tests/test-gc-sha1.c: New file.
43065
43066 2005-10-17  Simon Josefsson  <jas@extundo.com>
43067
43068         * m4/md5.m4: Remove call to uint32_t.m4.
43069
43070 2005-10-17  Simon Josefsson  <jas@extundo.com>
43071
43072         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
43073
43074         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
43075         md5.h.
43076
43077         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
43078
43079         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
43080
43081 2005-10-17  Simon Josefsson  <jas@extundo.com>
43082
43083         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
43084
43085 2005-10-17  Simon Josefsson  <jas@extundo.com>
43086
43087         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
43088
43089 2005-10-17  Simon Josefsson  <jas@extundo.com>
43090
43091         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
43092
43093         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
43094
43095 2005-10-17  Bruno Haible  <bruno@clisp.org>
43096
43097         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
43098         that it can also be used in a test.
43099
43100 2005-10-16  Bruno Haible  <bruno@clisp.org>
43101
43102         * gnulib-tool (func_emit_tests_Makefile_am): Also define
43103         TESTS_ENVIRONMENT, so that individual tests can augment it.
43104
43105         * gnulib-tool (func_create_testdir): Use an intermediate target for
43106         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
43107         macros, like $(ALLOCA_H), which cannot be passed through the command
43108         line.
43109
43110 2005-10-15  Simon Josefsson  <jas@extundo.com>
43111
43112         * modules/rijndael-tests: New file.
43113
43114         * modules/rijndael: New file.
43115
43116 2005-10-15  Simon Josefsson  <jas@extundo.com>
43117
43118         * m4/rijndael.m4: New file.
43119
43120 2005-10-15  Simon Josefsson  <jas@extundo.com>
43121
43122         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
43123
43124         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
43125
43126 2005-10-14  Simon Josefsson  <jas@extundo.com>
43127
43128         * tests/test-arcfour.c: New file.
43129
43130         * modules/arcfour, modules/arcfour-tests: New files.
43131
43132 2005-10-14  Simon Josefsson  <jas@extundo.com>
43133
43134         * m4/arcfour.m4: New file.
43135
43136 2005-10-14  Simon Josefsson  <jas@extundo.com>
43137
43138         * lib/arcfour.h, lib/arcfour.c: New files.
43139
43140 2005-10-14  Roland McGrath  <roland@redhat.com>
43141
43142         Import from libc.  [BZ #1331]
43143         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
43144         macro argument.
43145         Reported by Matej Vela <vela@debian.org>.
43146
43147 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
43148
43149         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
43150         include <wchar.h>; no longer needed.
43151
43152 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
43153
43154         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
43155
43156 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
43157         and  Ulrich Drepper  <drepper@redhat.com>
43158
43159         Import from libc.
43160         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
43161         instead of inline stream orientation test and two separate
43162         function calls.  Pay no attention to USE_IN_LIBIO.
43163
43164 2005-10-13  Simon Josefsson  <jas@extundo.com>
43165
43166         * modules/gc-hmac-md5-tests: New file.
43167
43168         * tests/test-gc-hmac-sha1.c: New file.
43169
43170         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
43171
43172         * modules/gc-hmac-md5-tests: New file.
43173
43174         * tests/test-gc-md5.c: New file.
43175
43176         * modules/gc-md5-tests: New file.
43177
43178 2005-10-13  Simon Josefsson  <jas@extundo.com>
43179
43180         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
43181         Move memory allocation outside of loop.
43182
43183 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
43184
43185         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
43186         intermediate directory is in a read-only file system.  Problem
43187         reported by Eric Blake.
43188
43189 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
43190
43191         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
43192
43193 2005-10-12  Simon Josefsson  <jas@extundo.com>
43194
43195         * tests/test-hmac-sha1.c: New file.
43196
43197         * modules/hmac-sha1-tests: New file.
43198
43199         * modules/hmac-sha1: New file.
43200
43201 2005-10-12  Simon Josefsson  <jas@extundo.com>
43202
43203         * modules/gc-sha1: New file.
43204
43205 2005-10-12  Simon Josefsson  <jas@extundo.com>
43206
43207         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
43208
43209         * tests/test-gc-pbkdf2-sha1.c: New file.
43210
43211 2005-10-12  Simon Josefsson  <jas@extundo.com>
43212
43213         * modules/gc-md5, modules/gc-hmac-md5: New files.
43214
43215         * modules/gc (Files): Remove md5, memxor and hmac files.
43216
43217 2005-10-12  Simon Josefsson  <jas@extundo.com>
43218
43219         * m4/gc-pbkdf2-sha1.m4: New file.
43220
43221         * m4/gc-hmac-sha1.m4: New file.
43222
43223         * m4/gc-sha1: New file.
43224
43225         * m4/hmac-sha1.m4: New file.
43226
43227 2005-10-12  Simon Josefsson  <jas@extundo.com>
43228
43229         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
43230
43231         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
43232
43233 2005-10-12  Simon Josefsson  <jas@extundo.com>
43234
43235         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
43236         suggested by Bruno Haible <bruno@clisp.org>.
43237
43238 2005-10-12  Simon Josefsson  <jas@extundo.com>
43239
43240         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
43241
43242 2005-10-12  Simon Josefsson  <jas@extundo.com>
43243
43244         * lib/gc-pbkdf2-sha1.c: New file.
43245
43246         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
43247
43248 2005-10-12  Simon Josefsson  <jas@extundo.com>
43249
43250         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
43251
43252         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
43253
43254 2005-10-12  Simon Josefsson  <jas@extundo.com>
43255
43256         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
43257         GC_USE_HMAC_MD5, respectively.
43258
43259         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
43260         (gc_md5): Fix typo.
43261
43262         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
43263
43264         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
43265
43266         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
43267
43268 2005-10-12  Bruno Haible  <bruno@clisp.org>
43269
43270         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
43271         Reported by Stepan Kasal <kasal@ucw.cz>.
43272
43273 2005-10-11  Simon Josefsson  <jas@extundo.com>
43274
43275         * tests/test-crc.c: New file.
43276
43277         * modules/crc, modules/crc-tests: New files.
43278
43279 2005-10-11  Simon Josefsson  <jas@extundo.com>
43280
43281         * m4/crc.m4: New file.
43282
43283 2005-10-11  Simon Josefsson  <jas@extundo.com>
43284
43285         * lib/gc.h: Add gc_hash and gc_hash_buffer.
43286
43287         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
43288
43289         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
43290
43291 2005-10-11  Simon Josefsson  <jas@extundo.com>
43292
43293         * lib/crc.h, lib/crc.c: New files.
43294
43295         * lib/gc.h (gc_hash_buffer): Add doc.
43296
43297 2005-10-11  Bruno Haible  <bruno@clisp.org>
43298
43299         * modules/c-strcasestr: New file.
43300         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
43301
43302 2005-10-11  Bruno Haible  <bruno@clisp.org>
43303
43304         * modules/c-strcase: New file.
43305         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
43306
43307 2005-10-11  Bruno Haible  <bruno@clisp.org>
43308
43309         * lib/strcasecmp.c: Include limits.h.
43310         (strcasecmp): Avoid integer overflow on exotic platforms.
43311         * lib/strncasecmp.c: Include limits.h.
43312         (strncasecmp): Avoid integer overflow on exotic platforms.
43313         Reported by Paul Eggert.
43314
43315 2005-10-11  Bruno Haible  <bruno@clisp.org>
43316
43317         * lib/c-strcasestr.h: New file, from GNU gettext.
43318         * lib/c-strcasestr.c: New file, from GNU gettext.
43319
43320 2005-10-11  Bruno Haible  <bruno@clisp.org>
43321
43322         * lib/c-strcase.h: New file, from GNU gettext.
43323         * lib/c-strcasecmp.c: New file, from GNU gettext.
43324         * lib/c-strncasecmp.c: New file, from GNU gettext.
43325
43326 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
43327
43328         * modules/mempcpy (License): GPL -> LGPL.
43329         * modules/strchrnul (License): Likewise.
43330         * modules/sysexits (License): Likewise.
43331
43332 2005-10-08  Simon Josefsson  <jas@extundo.com>
43333
43334         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
43335
43336 2005-10-07  Simon Josefsson  <jas@extundo.com>
43337
43338         * m4/memxor.m4: Remove gl_C_RESTRICT call.
43339
43340 2005-10-06  Simon Josefsson  <jas@extundo.com>
43341
43342         * tests/test-hmac-md5.c: New file.
43343
43344         * modules/hmac-md5-tests: New file.
43345
43346         * modules/hmac-md5: New file.
43347
43348 2005-10-06  Simon Josefsson  <jas@extundo.com>
43349
43350         * m4/hmac-md5.m4: New file.
43351
43352         * m4/memxor.m4: Require gl_C_RESTRICT.
43353
43354 2005-10-06  Simon Josefsson  <jas@extundo.com>
43355
43356         * lib/memxor.c (memxor): Avoid casts and warnings.
43357
43358 2005-10-06  Simon Josefsson  <jas@extundo.com>
43359
43360         * lib/hmac-md5.c: New file.
43361
43362         * lib/hmac.h: New file.
43363
43364 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
43365
43366         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
43367         promotes to int, not unsigned int, to catch the AIX 5.3
43368         compiler bug.
43369
43370 2005-10-05  Simon Josefsson  <jas@extundo.com>
43371
43372         * modules/memxor: New file.
43373
43374         * modules/iconv (Files): Move config.rpath to havelib, it is used
43375         there.
43376
43377         * modules/havelib (Files): Add config.rpath.
43378
43379 2005-10-05  Simon Josefsson  <jas@extundo.com>
43380
43381         * m4/memxor.m4: New file.
43382
43383 2005-10-05  Simon Josefsson  <jas@extundo.com>
43384
43385         * lib/memxor.c (memxor): Fix compiler error.
43386
43387         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
43388         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
43389
43390         * lib/memxor.h, lib/memxor.c: New files.
43391
43392         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
43393         we assume all systems have it, suggested by Jim Meyering
43394         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
43395         any systems lack sys/socket.h; mingw32 is known to lack it, but we
43396         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
43397         same reasons.
43398
43399 2005-10-05  Simon Josefsson  <jas@extundo.com>
43400
43401         * config/srclist.txt: Add glibc bug 1423 for md5.h.
43402
43403 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
43404
43405         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
43406         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
43407         needed, since the source code now assumes these .h files.
43408
43409 2005-10-05  Derek Price  <derek@ximbiot.com>
43410
43411         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
43412
43413 2005-10-05  Bruno Haible  <bruno@clisp.org>
43414
43415         * modules/stdint (License): Change to LGPL.
43416
43417 2005-10-04  Simon Josefsson  <jas@extundo.com>
43418
43419         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
43420         D. Baushke" <mdb@gnu.org>.
43421
43422 2005-10-04  Bruno Haible  <bruno@clisp.org>
43423
43424         * lib/verify.h (verify_true): Provide alternative definition for C++.
43425
43426 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
43427
43428         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
43429         (SSIZE_MAX): New macro, if not already defined.
43430         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
43431         than 2 GiB.
43432
43433 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
43434
43435         Sync from coreutils.
43436         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
43437         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
43438         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
43439         ULLONG_MAX doesn't work with 2.7.2.1.
43440
43441 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
43442
43443         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
43444         From Ben Pfaff.
43445
43446         * modules/exclude (Depends-on): Depend on verify.
43447         * modules/strtoimax (Depends-on): Likewise.
43448         * modules/utimecmp (Depends-on): Likewise.
43449
43450 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
43451
43452         * lib/exclude.c: Include verify.h.
43453         (verify): Remove.  All callers changed to use verify.h's version.
43454         * lib/strtoimax.c: Likewise.
43455         * lib/utimecmp.c: Likewis.e
43456
43457         Sync from coreutils.
43458         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
43459         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
43460         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
43461         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
43462         bother returning ENOSYS if settimeofday or stime fails; just let
43463         them return whatever errno they want to return.
43464         * lib/utimens.c: Include unistd.h, for dup2.
43465         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
43466         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
43467
43468 2005-10-02  Jim Meyering  <jim@meyering.net>
43469
43470         Sync from coreutils.
43471         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
43472         from glibc-2.2.5 that fails for read-only files.
43473
43474 2005-10-02  Jim Meyering  <jim@meyering.net>
43475
43476         Sync from coreutils.
43477         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
43478         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
43479         `#if HAVE_CONFIG_H'.
43480         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
43481         Remove AT_FDCWD test.
43482         Do not consume the fd unless successful.
43483         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
43484         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
43485         block, so that we don't even try to compile it if settimeofday is
43486         available.  This works around a compilation failure on OSF1 V5.1,
43487         due to stime requiring a `long int*' while tv_sec is `int'.
43488
43489 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
43490
43491         Sync from coreutils.
43492         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
43493         against `yes', rather than just testing for nonempty.
43494
43495 2005-10-01  Simon Josefsson  <jas@extundo.com>
43496
43497         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
43498         and Darwin.
43499
43500         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
43501         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
43502         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
43503         freeaddrinfo and gai_strerror are declared by the POSIX headers.
43504         Check if struct addrinfo is declared.
43505
43506 2005-10-01  Simon Josefsson  <jas@extundo.com>
43507
43508         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
43509         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
43510         AI_* and EAI_* definitions.  Protect function declarations.
43511
43512 2005-10-01  Jim Meyering  <jim@meyering.net>
43513
43514         Sync from coreutils.
43515
43516         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
43517         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
43518         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
43519         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
43520         in the inet and nsl libraries.  Required on Solaris 5.7.
43521
43522 2005-10-01  Jim Meyering  <jim@meyering.net>
43523
43524         Sync from coreutils.
43525         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
43526         in the inet and nsl libraries.  Required on Solaris 5.7.
43527
43528 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
43529
43530         * lib/getdelim.c (getdelim): Remove unused variables.
43531
43532 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
43533
43534         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
43535         so that the code works even with ancient cpp.  Portability problem
43536         with GCC 2.7.2.1 reported by Thomas M.Ott.
43537
43538 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
43539
43540         * modules/regex (Depends-on): Add strcase.
43541
43542         * modules/gethostname (Licence): Change from GPL to LGPL, since
43543         gethostname.c is a trivial implementation of a standard library
43544         function.
43545         * modules/poll (License): Change from GPL to LGPL, since it's
43546         derived from LGPL code.
43547
43548 2005-09-27  Jim Meyering  <jim@meyering.net>
43549
43550         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
43551         HAVE_CONFIG_H.
43552
43553         * lib/intprops.h (signed_type_or_expr__): Define.
43554         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
43555         for unsigned types.
43556
43557 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
43558
43559         * lib/verify.h (verify_expr): Remove, replacing with:
43560         (verify_true): New macro that returns true instead of void.
43561         (verify_type__): Remove.
43562         (verify): Use verify_true rather than verify_type__.
43563
43564 2005-09-26  Bruno Haible  <bruno@clisp.org>
43565
43566         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
43567         is necessary.
43568         (lib_SOURCES): Remove mbchar.c.
43569         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
43570         (Files): Add m4/mbrtowc.m4.
43571         * modules/mbiter: Likewise.
43572         * modules/mbuiter: Likewise.
43573
43574 2005-09-26  Bruno Haible  <bruno@clisp.org>
43575
43576         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
43577         compile mbchar.c if they are not both present.
43578         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
43579         * m4/mbiter.m4 (gl_MBITER): Likewise.
43580         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
43581         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
43582         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
43583
43584 2005-09-25  Jim Meyering  <jim@meyering.net>
43585
43586         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
43587         also uses socklen_t.
43588
43589 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
43590
43591         * lib/utimens.c (ENOSYS): Define if not already defined.
43592         (futimens): Support having a null PATH if the file descriptor
43593         is nonnegative.
43594
43595         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
43596         Remove.
43597         (__attribute): Define to empty unless GCC 3.1 or later.
43598         This works around a core dump on OpenBSD 3.4, which has GCC
43599         2.95.3, which dumps core when given __attribute__(()).  It also
43600         simplifies other tests, since we really don't want to bother with
43601         worrying about which ancient version of GCC supported what.
43602         Original problem reported by Yoann Vandoorselaere, with part of
43603         the fix suggested by Derek Price.
43604
43605 2005-09-24  Jim Meyering  <jim@meyering.net>
43606
43607         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
43608         so we can once again use a positive bitfield width of 1 -- now we
43609         don't have to explain why we were using a bitfield width of 2.
43610
43611 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
43612
43613         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
43614         and similarly for the other external symbols.  Problem reported
43615         by James Gallager.
43616
43617         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
43618         bug reported by Jim Meyering.
43619
43620         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
43621         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
43622         not needed, since socklen is a prerequisite module.
43623
43624 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
43625
43626         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
43627         Problem reported by Eric Blake.
43628         (getaddrinfo): Initialize se so that it's not garbage.
43629         Redo internal storage allocation so that it doesn't make unportable
43630         assumptions about alignment.
43631         Fix a memory leak.
43632
43633         * lib/utimens.c (futimens): Use futimesat if available.
43634         Prefer it to futimes since it doesn't have the futimes bug.
43635
43636         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
43637         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
43638         Instead, declare a function that returns a pointer to an array,
43639         and use verify_type__ to declare the size of the array.
43640         Problem and germ of a solution reported by Bruno Haible.
43641         (verify_type__): Use 2, not 1, for bitfield size, to avoid
43642         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
43643
43644 2005-09-23  Jim Meyering  <jim@meyering.net>
43645
43646         Sync from coreutils.
43647         Correct build failure (socklen_t not defined) on at least
43648         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
43649         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
43650
43651 2005-09-23  Jim Meyering  <jim@meyering.net>
43652
43653         * modules/getaddrinfo (Depends-on): Add socklen.
43654
43655 2005-09-23  Bruno Haible  <bruno@clisp.org>
43656
43657         * tests/test-verify.c: New file.
43658
43659 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
43660
43661         Sync from coreutils.
43662
43663         * modules/argmatch (Depends-on): Add verify.
43664         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
43665         unistd-safer.
43666         * modules/save-cwd (Depends-on): Likewise.
43667
43668         * modules/openat (Files): Add lib/openat-die.c.
43669         (Depends-on): Remove error, exitfail.
43670         Add dirname.
43671
43672         * modules/verify: New file.
43673         * MODULES.html.sh (Diagnostics <assert.h>): New section,
43674         with "verify" module.
43675
43676 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
43677
43678         Sync from coreutils.
43679
43680         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
43681         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
43682         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
43683         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
43684         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
43685         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
43686         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
43687         Don't bother checking for string.h, stdlib.h, unistd.h.
43688         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
43689         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
43690         module's job.
43691         * m4/jm-macros.m4 (gl_MACROS): Likewise.
43692         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
43693
43694         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
43695         (gl_GETDATE): Use it.
43696
43697         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
43698
43699 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
43700
43701         Sync from coreutils.
43702
43703         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
43704         stat-time.h.
43705         * lib/argmatch.h: Include verify.h
43706         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
43707         (ARGMATCH_ASSERT): Remove; unused.
43708         * lib/canonicalize.c: Assume STDC_HEADERS.
43709         * lib/exclude.c: Include "strcase.h".
43710         * lib/regex_internal.h [!defined _LIBC]: Likewise.
43711         * lib/getusershell.c: Include stdio--.h rather than stdio.h
43712         and stdio-safer.h.
43713         (getusershell): Call fopen, not fopen_safer.
43714         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
43715         Do not include unistd-safer.h.
43716         (save_cwd): Don't call fd_safer; no longer needed
43717         now that we include fcntl--.h.
43718
43719         * lib/getdate.y (relative_time): New type.
43720         (RELATIVE_TIME_0): New constant.
43721         (parser_control): Use relative_time instead of doing it ourselves.
43722         (%union): Add new relative_time rel member.
43723         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
43724         Now typeless.
43725         (relunit, relunit_snumber): Now of type rel.
43726         (zone, rel, relunit, get_date): Adjust to above changes.
43727
43728         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
43729         Do not include unistd-safer.h.
43730         (getloadavg): Don't call fd_safer; no longer needed
43731         now that we include fcntl--.h.
43732
43733         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
43734         (make_dir_parents): Treat ENOSYS like EEXIST.
43735
43736         Improve quality of diagnostics on restore_cwd failure.
43737         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
43738         (make_dir_parents): Last arg is now int * (for errno), not bool *.
43739         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
43740         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
43741         each time through the loop.  Do not diagnose restore_cwd failure;
43742         that is the caller's job (and perhaps the caller does not care).
43743
43744         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
43745         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
43746         If the file already exists but is not a directory, don't bother
43747         to try to make its parents.
43748         Close potential file descriptor leak if we can't chdir("/") (!).
43749         Don't always return true if chdir($PWD) fails; return true only
43750         if the requested action was done successfully (except for the
43751         chdir($PWD)).
43752         Don't log final directory unless we actually made it.
43753         Refactor to avoid duplicate code to fix up permissions.
43754         Don't attempt to fix up parent permissions if chdir($PWD) fails.
43755
43756         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
43757         to make it a bit faster and (I hope) clearer.
43758         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
43759         Fix bug in formats like %2N.
43760
43761         * lib/verify.h: New file.
43762
43763 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
43764
43765         Sync from coreutils.
43766         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
43767
43768 2005-09-22  Jim Meyering  <jim@meyering.net>
43769
43770         Sync from coreutils.
43771
43772         * m4/lstat.m4 (gl_FUNC_LSTAT):
43773         Use AC_LIBSOURCES to require lstat.c and lstat.h.
43774         Remove obsolete comment.
43775         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
43776         * m4/xstrtod.m4: Likewise.
43777
43778         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
43779
43780 2005-09-22  Jim Meyering  <jim@meyering.net>
43781
43782         Sync from coreutils.
43783
43784         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
43785
43786         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
43787         the .tm_year member, since otherwise gcc-4.0 would now warn about
43788         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
43789
43790         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
43791         order to avoid an unsuppressible warning from gcc on 64-bit systems.
43792
43793         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
43794         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
43795         when run in a time zone for which daylight savings time is in effect
43796         for the starting date.
43797
43798         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
43799         stop us from restricting permissions of just-created absolute-named
43800         directories.
43801         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
43802         to restore initial working directory.
43803         * lib/mkdir-p.c (make_dir_parents): New parameter:
43804         different_working_dir, to tell caller if/when we change the working
43805         directory and are unable to return to the initial one.
43806         * lib/mkdir-p.h (make_dir_parents): Update prototype.
43807         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
43808         `return false'.  This fixes a bug introduced on 2004-07-30.
43809
43810         * lib/openat.c (fdopendir): Be sure to close the supplied
43811         file descriptor before returning.  This makes our replacement
43812         implementation a little closer to Solaris's, where fdopendir
43813         ties the file descriptor to the returned DIR* pointer.
43814         * lib/openat.c (unlinkat): New function.
43815         * lib/openat.h (unlinkat): Add prototype.
43816         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
43817         (openat_restore_fail): Rename from openat_restore_die.
43818         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
43819
43820         Provide an alternative to exiting immediately upon save_cwd or
43821         restore_cwd failure.  Now, an application can arrange e.g.,
43822         to perform a longjump in that case.
43823         * lib/openat.c: Include dirname.h.
43824         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
43825         (rpl_openat, fdopendir, fstatat): Call openat_save_die
43826         and openat_restore_die rather than calling error directly.
43827         Don't include "error.h" or "exitfail.h"; they're no longer needed.
43828
43829         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
43830         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
43831         define.
43832
43833         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
43834         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
43835                             int utc, int nanoseconds);
43836         Background:
43837         date should not have to allocate a megabyte of virtual memory to
43838         handle a format argument like +%1048575T.  When implemented with
43839         strftime, it must allocate such a buffer, use strftime to fill it
43840         in, print it, then free it.
43841         With fprintftime, it simply prints everything and exits.
43842         With no need for memory allocation, that's one fewer way to fail.
43843         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
43844         optional field width, not before, so we accept %9:z, not %:9z.
43845         (my_strftime): Be sure to use L_('x') for literals.
43846
43847         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
43848         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
43849         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
43850         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
43851         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
43852         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
43853         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
43854         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
43855         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
43856         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
43857         * lib/xgethostname.c, lib/xreadlink.c:
43858         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
43859
43860         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
43861         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
43862         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
43863         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
43864         and don't include <sys/file.h>).
43865
43866 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
43867
43868         Sync from coreutils.
43869
43870         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
43871         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
43872         [!LDAV_DONE]: Avoid unused variable warning.
43873
43874 2005-09-21  Bruno Haible  <bruno@clisp.org>
43875
43876         * lib/unicodeio.h (unicode_to_mb): New declaration.
43877
43878 2005-09-20  Derek Price  <derek@ximbiot.com>
43879
43880         * lib/getaddrinfo.c: Don't include <netdb.h> included from
43881         getaddrinfo.h.
43882
43883 2005-09-20  Bruno Haible  <bruno@clisp.org>
43884
43885         * gnulib-tool: Remove trailing slashes from the values specified for
43886         --source-base, --m4-base, --tests-base, --aux-dir.
43887         Suggested by Simon Josefsson <jas@extundo.com>.
43888
43889 2005-09-20  Bruno Haible  <bruno@clisp.org>
43890
43891         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
43892         func_modules_to_filelist, func_import, func_create_testdir): Make all
43893         sorting results locale-independent, so that gnulib-cache.m4 doesn't
43894         change when gnulib-tool is invoked in a different locale.
43895
43896 2005-09-19  Simon Josefsson  <jas@extundo.com>
43897
43898         * m4/socklen.m4: Fix typo.
43899
43900 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43901
43902         Use a consistent style for including <config.h>.
43903         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
43904         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
43905         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
43906         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
43907         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
43908         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
43909         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
43910         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
43911         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
43912         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
43913         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
43914         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
43915         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
43916         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
43917         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
43918         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
43919         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
43920         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
43921         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
43922         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
43923         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
43924         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
43925         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
43926         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
43927         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
43928         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
43929         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
43930         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
43931         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
43932         lib/xstrtoumax.c, lib/yesno.c:
43933         Standardize inclusion of config.h.
43934         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
43935         lib/inttostr.h:  Removed inclusion of config.h from header files.
43936         * lib/inttostr.c:  Adjusted in-tree users.
43937         * lib/timespec.h: Remove superfluous warning to include config.h.
43938         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
43939         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
43940         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
43941         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
43942         config.h with HAVE_CONFIG_H.
43943
43944 2005-09-19  Jim Meyering  <jim@meyering.net>
43945
43946         * modules/pathmax (License): Change to LGPL.
43947
43948 2005-09-19  Derek Price  <derek@ximbiot.com>
43949
43950         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
43951
43952 2005-09-19  Bruno Haible  <bruno@clisp.org>
43953
43954         * gnulib-tool (import): Provide default for --tests-base.
43955
43956 2005-09-19  Bruno Haible  <bruno@clisp.org>
43957
43958         * doc/quote.texi: New file, extracted from gnulib.texi.
43959         * doc/ctime.texi: New file, extracted from gnulib.texi.
43960         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
43961         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
43962         * doc/gnulib.texi: Include them.
43963
43964 2005-09-18  Bruno Haible  <bruno@clisp.org>
43965
43966         Portability fix.
43967         * gnulib-tool (func_readlink): New function.
43968         (func_ln_if_changed): Use it.
43969
43970 2005-09-18  Bruno Haible  <bruno@clisp.org>
43971
43972         * gnulib-tool: Support --with-tests also with --import.
43973         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
43974         (func_import): Use variables $testsbase and $inctests. Emit a
43975         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
43976         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
43977         SUBDIRS += $testsdir.
43978         (func_create_testdir): Update.
43979
43980 2005-09-18  Bruno Haible  <bruno@clisp.org>
43981
43982         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
43983         instead of $dry_run.
43984         (func_cp_if_changed, func_mv_if_changed): Remove functions.
43985         (func_ln_if_changed): Don't handle dry-run here.
43986         (func_import): In dry-run mode, detect more precisely which actions
43987         would be performed, and don't use "...ing" verbs.
43988
43989 2005-09-18  Bruno Haible  <bruno@clisp.org>
43990
43991         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
43992         (func_import): Use join on two temporary files instead of three nested
43993         loops, in order to determine which files are new or old.
43994
43995 2005-09-18  Bruno Haible  <bruno@clisp.org>
43996
43997         * gnulib-tool (func_import): Comment out code that spits out the
43998         new files with --dry-run.
43999
44000 2005-09-18  Bruno Haible  <bruno@clisp.org>
44001
44002         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
44003
44004 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
44005
44006         * lib/stat-time.h: New file.
44007         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
44008         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
44009         in a different way.
44010         (timespec_cmp): New function.
44011         * lib/utimecmp.c: Include stat-time.h.
44012         (SYSCALL_RESOLUTION): Depend on whether various struct stat
44013         members exist, not on the obsolescent ST_MTIM_NSEC.
44014         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
44015
44016 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
44017
44018         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
44019
44020 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
44021
44022         * MODULES.html.sh (File system functions): Add stat-time.
44023         * modules/stat-time: New file.
44024         * modules/timespec (Files): Remove m4/st_mtim.m4; this
44025         is now done in a different way, by the stat-time module.
44026         * modules/utimecmp (Depends-on): Add stat-time.
44027
44028 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
44029
44030         * m4/st_mtim.m4: Remove.  Superseded by...
44031         * m4/stat-time.m4: New file.
44032         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
44033         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
44034
44035 2005-09-15  Derek Price  <derek@ximbiot.com>
44036
44037         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
44038
44039 2005-09-15  Derek Price  <derek@ximbiot.com>
44040
44041         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
44042         * lib/regex_internal.c: Ditto, using this...
44043         (__GNUC_PREREQ): ...new macro.
44044         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
44045         using...
44046         (__GNUC_PREREQ): ...this new macro.
44047
44048         * lib/strstr.h: Include string.h. Define strstr as a macro here.
44049
44050 2005-09-15  Derek Price  <derek@ximbiot.com>
44051             Paul Eggert  <eggert@cs.ucla.edu>
44052
44053         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
44054         changes, consolidating in...
44055         * lib/regex_internal.h: ...this file.
44056
44057 2005-09-13  Jim Meyering  <jim@meyering.net>
44058
44059         * lib/canon-host.c: Filter through gnu indent and reword comments
44060         slightly.
44061         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
44062
44063 2005-09-13  Derek Price  <derek@ximbiot.com>
44064
44065         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
44066         failure.
44067         Reported by Jim Meyering  <jim@meyering.net>.
44068
44069 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
44070
44071         * lib/base64.c: Typo.
44072         (base64_encode): Put b64str in initialized data section.
44073
44074 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
44075
44076         Merge glibc and coreutils changes into gnulib, plus a few
44077         extra fixes.
44078         * lib/md5.c: Use #error rather than a string.
44079         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
44080         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
44081         (__attribute__): Define to empty for non recent-GCC.
44082         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
44083         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
44084         Renamed from their non-__ counterparts, with new macros replacing
44085         them if not _LIBC.  Add __THROW attribute.
44086         (rol): Remove.
44087         (struct md5_ctx): Align buffer if using GCC.
44088         * lib/sha1.h (struct sha1_ctx): Likewise.
44089         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
44090         The old name was backwards.
44091         (NOTSWAP): Remove; not used.
44092         (rol): New macro, moved here from md5.h.
44093         (sha1_process_block): Remove a FIXME that doesn't make sense.
44094
44095 2005-09-12  Derek Price  <derek@ximbiot.com>
44096
44097         Return usable errors from canon-host.
44098         * lib/canon-host.h: New file.
44099         * lib/canon-host.c (canon_host): Wrap...
44100         (canon_host_r): ...this new function, which now relies exclusively on
44101         getaddrinfo.
44102         (ch_strerror): New function.
44103         (last_cherror): New global.
44104         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
44105         interface.
44106         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
44107         void *.
44108         (freeaddrinfo): Free ai->ai_canonname when set.
44109
44110 2005-09-12  Derek Price  <derek@ximbiot.com>
44111
44112         Make canon-host require getaddrinfo.
44113         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
44114         AC_LIBSOURCE canon-host.h.  Call...
44115         (gl_PREREQ_CANON_HOST): ...this new function, which requires
44116         gl_GETADDRINFO.
44117         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
44118
44119 2005-09-12  Derek Price  <derek@ximbiot.com>
44120
44121         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
44122         LGPL.
44123         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
44124
44125 2005-09-12  Derek Price  <derek@ximbiot.com>
44126
44127         * lib/gai_strerror.c: Include config.h when available.  Include
44128         getaddrinfo.h before other headers to test interface.
44129         Reported by Larry Jones <lawrence.jones@ugs.com>.
44130
44131 2005-09-12  Derek Price  <derek@ximbiot.com>
44132             Paul Eggert  <eggert@cs.ucla.edu>
44133
44134         * modules/glob (Files): Add glob-libc.h.
44135
44136 2005-09-12  Derek Price  <derek@ximbiot.com>
44137             Paul Eggert  <eggert@cs.ucla.edu>
44138
44139         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
44140         glob_.h, glob-libc.h.
44141         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
44142
44143 2005-09-12  Derek Price  <derek@ximbiot.com>
44144             Paul Eggert  <eggert@cs.ucla.edu>
44145
44146         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
44147         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
44148         protecting things that should be done only in gnulib contexts.
44149         * lib/glob_.h: New file, containing only the glob things needed for
44150         gnulib.
44151         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
44152         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
44153         (glob, globfree, glob_pattern_p): Now defined simply in terms of
44154         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
44155         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
44156         and to respect the namespace rules better.
44157
44158 2005-09-08  Simon Josefsson  <jas@extundo.com>
44159
44160         * modules/socklen: New file.
44161
44162 2005-09-08  Simon Josefsson  <jas@extundo.com>
44163
44164         * m4/socklen.m4: New file.
44165
44166 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44167
44168         * modules/utimens (Files): Add m4/utimbuf.m4, since
44169         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
44170         Reported by Sergey Poznyakoff.
44171
44172 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44173
44174         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
44175         definitions, since that's the preferred style in glibc.
44176         Fix a minor spacing issue, and update copyright notice to match
44177         glibc's.
44178
44179 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44180
44181         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
44182
44183 2005-09-06  Simon Josefsson  <jas@extundo.com>
44184
44185         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
44186         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
44187
44188 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
44189
44190         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
44191         warning.
44192
44193 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
44194
44195         * config/srclist.txt: Add glibc bug 1302.
44196
44197 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
44198
44199         Change bitset word type from unsigned int to unsigned long int,
44200         as this has better performance on typical 64-bit hosts.
44201         Port bitset code to hosts with unusual word sizes.
44202         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
44203         (build_collating_symbol):
44204         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
44205         argument is a bitset.  This is merely a style issue, but it makes
44206         it clearer that an entire array is expected.
44207         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
44208         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
44209         Port to the case where bitset_word is not the same as unsigned int.
44210         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
44211         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
44212         Likewise.
44213         * lib/regexec.c (check_dst_limits_calc_pos_1,
44214         check_subexp_matching_top):
44215         (build_trtable, group_nodes_into_DFAstates):
44216         Likewise.
44217         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
44218         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
44219         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
44220         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
44221         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
44222         * lib/regcomp.c (optimize_subexps, lower_subexp):
44223         Work even if bitset_word has holes in its bitwise representation.
44224         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
44225         * lib/regexec.c (check_dst_limits_calc_pos_1,
44226         check_subexp_matching_top):
44227         Likewise.
44228         * lib/regex_internal.c (re_string_reconstruct):
44229         Don't assume UCHAR_MAX == 255.
44230         * lib/regex_internal.h (bitset_set_all): Likewise.
44231         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
44232         All uses changed.
44233         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
44234         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
44235         All uses changed.
44236         (BITSET_WORD_MAX): New macro.
44237         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
44238         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
44239         (bitset_empty, bitset_copy):
44240         Prefer sizeof (bitset) to multiplying it out ourselves.
44241         (bitset_not_merge): Remove; unused.
44242         (bitset_contain): Return bool, not unsigned int with one bit on.
44243         All callers changed.
44244         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
44245         alignment than re_node_set; do this by defining a new internal
44246         type struct dests_alloc and using it to allocate memory.
44247
44248 2005-09-05  Bruno Haible  <bruno@clisp.org>
44249
44250         * gnulib-tool (func_import): Fix comparison in handling of symbolic
44251         links.
44252
44253 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
44254
44255         * modules/size_max (Makefile.am): Add size_max.h
44256
44257 2005-09-04  Derek Price  <derek@ximbiot.com>
44258
44259         * gnulib-tool (func_import): Fix reversed $symbolic logic.
44260
44261 2005-09-03  Simon Josefsson  <jas@extundo.com>
44262
44263         * gnulib-tool: Fix typo.
44264
44265 2005-09-03  Simon Josefsson  <jas@extundo.com>
44266
44267         * config/srclist.txt: Add glibc bug 1293.
44268
44269 2005-09-03  Derek Price  <derek@ximbiot.com>
44270
44271         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
44272         From Larry Jones <lawrence.jones@ugs.com>.
44273
44274 2005-09-02  Simon Josefsson  <jas@extundo.com>
44275
44276         * modules/socklen: New file.
44277
44278 2005-09-02  Simon Josefsson  <jas@extundo.com>
44279
44280         * modules/havelib: New module.
44281
44282         * modules/gettext, modules/iconv, modules/lock, modules/readline:
44283         Use havelib.
44284
44285 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
44286
44287         Check for arithmetic overflow when calculating sizes, to prevent
44288         some buffer-overflow issues.  These patches are conservative, in the
44289         sense that when I couldn't determine whether an overflow was possible,
44290         I inserted a run-time check.
44291         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
44292         macros.
44293         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
44294         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
44295         (re_xnrealloc, re_x2nrealloc): New inline functions.
44296         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
44297         parse_bracket_exp):
44298         (build_equiv_class, build_charclass): Check for arithmetic overflow
44299         in size expression calculations.
44300         * lib/regex_internal.c (re_string_realloc_buffers):
44301         (build_wcs_upper_buffer, re_node_set_add_intersect):
44302         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
44303         (re_dfa_add_node, register_state): Likewise.
44304         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
44305         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
44306         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
44307         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
44308
44309 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
44310
44311         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
44312         m4/ulonglong.m4.  Problem reported by Martin Lambers.
44313
44314 2005-09-02  Bruno Haible  <bruno@clisp.org>
44315
44316         Support for lib vs. lib64 distinction on biarch platforms.
44317         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
44318         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
44319         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
44320
44321 2005-09-02  Bruno Haible  <bruno@clisp.org>
44322
44323         * gnulib-tool (import): In the other first-use case, provide defaults
44324         as well.
44325
44326 2005-09-02  Bruno Haible  <bruno@clisp.org>
44327
44328         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
44329         patches not yet found in the latest gettext release.
44330
44331 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44332
44333         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
44334         to avoid a collision with bits/local_lim.h in glibc.
44335         All uses changed.  Problem reported by Dmitry V. Levin in
44336         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
44337
44338         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
44339         bugs in int versus size_t comparisons.
44340         (re_string_context_at): Fix bug where the code assumed that
44341         Idx is signed.
44342
44343         Use bool where appropriate.
44344         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
44345         All callers changed.
44346         (calc_eclosure_iter): Likewise, for ROOT arg.
44347         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
44348         (build_charclass_op): Likewise, for NON_MATCH arg.
44349         * lib/regex_internal.c (re_string_allocate, re_string_construct):
44350         (re_string_construct_common): Likewise, for ICASE arg.
44351         * lib/regexec.c (re_search_2_stub, re_search_stub):
44352         Likewise, for RET_LEN arg.
44353         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
44354         (set_regs): Likewise, for FL_BACKTRACK arg.
44355         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
44356         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
44357         (calc_eclosure_iter, parse_bracket_exp):
44358         Use bool for internal variables that are booleans.
44359         * lib/regexec.c (re_search_internal, check_matching,
44360         proceed_next_node):
44361         (set_regs, build_sifted_states, sift_states_bkref):
44362         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
44363         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
44364         (find_collation_sequence_value):
44365         Likewise.
44366         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
44367         (re_node_set_compare):
44368         Return bool, not int. All callers changed.
44369         * lib/regexec.c (check_halt_node_context, check_dst_limits):
44370         (build_trtable, check_node_accept): Likewise.
44371         * lib/regex_internal.h: Include stdbool.h.
44372
44373         Fix bugs uncovered when converting to bool.
44374         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
44375         failure instead of charging ahead blindly.
44376         * lib/regex_internal.c (register_state): Likewise.
44377         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
44378         for freeing internal storage.
44379         (group_nodes_into_DFA_states): Use unsigned int, not int, for
44380         bitset pieces used as boolean, to avoid undefined behavior
44381         on hosts that do int overflow checking.
44382
44383 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44384
44385         * config/srclist.txt: Add glibc bugs 1285-1287.
44386
44387 2005-09-01  Jim Meyering  <jim@meyering.net>
44388
44389         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
44390         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
44391         Require gl_STAT_MACROS, too.
44392
44393 2005-09-01  Bruno Haible  <bruno@clisp.org>
44394
44395         * gnulib-tool (import): In the first-use case, provide defaults.
44396
44397 2005-09-01  Bruno Haible  <bruno@clisp.org>
44398
44399         * gnulib-tool (func_import): Remove the .tmp files.
44400
44401 2005-09-01  Bruno Haible  <bruno@clisp.org>
44402
44403         * gnulib-tool (func_import): Fix handling of symbolic links.
44404
44405 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44406
44407         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
44408         old glibc regex code mishandles strings longer than 2**31 bytes.
44409         This patch fixes this when the regex code is used in gnulib
44410         (i.e., outside glibc).
44411
44412         This patch should not affect the use of the regex code inside
44413         glibc.  No doubt this problem also needs to be handled for glibc
44414         as well, but the result will be an incompatible change to the
44415         glibc ABI, and the old ABI will have to be supported too.  That
44416         can be the the subject for another patch.
44417
44418         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
44419         governing whether the rest of this patch is active.  By default,
44420         the macro is disabled and the patch has no effect.
44421         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
44422         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
44423         (struct re_pattern_buffer, re_search, re_search_2, re_match):
44424         (re_match_2, re_set_registers): Use the new types.
44425         * lib/regex_internal.h (Idx, re_hashval_t): New types.
44426         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
44427         New macros.
44428         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
44429         (re_string_context_at, bin_tree_t, re_dfastate_t):
44430         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
44431         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
44432         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
44433         (re_string_char_size_at, re_string_wchar_at):
44434         (re_string_elem_size_at):
44435         Use the new types and macros to port to 64-bit hosts.
44436         Use unsigned types for internal values, so that the code
44437         mostly works even for arrays larger than SSIZE_MAX.
44438         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
44439         (search_duplicated_node, calc_eclosure_iter, fetch_number):
44440         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
44441         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
44442         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
44443         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
44444         (calc_inveclosure, parse_dup_op, build_range_exp):
44445         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
44446         (fetch_number, create_token_tree, mark_opt_subexp):
44447         Likewise.
44448         * lib/regex_internal.c (re_string_construct_common,
44449         create_ci_newstate):
44450         (create_cd_newstate, re_string_allocate, re_string_construct):
44451         (re_string_realloc_buffers, build_wcs_upper_buffer):
44452         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
44453         (re_string_reconstruct, re_string_peek_byte_case):
44454         (re_string_fetch_byte_case, re_string_context_at):
44455         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
44456         (re_node_set_init_copy, re_node_set_add_intersect):
44457         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
44458         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
44459         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
44460         (re_acquire_state, re_acquire_state_context, register_state):
44461         Likewise.
44462         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
44463         search_cur_bkref_entry):
44464         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
44465         (re_search_internal, re_search_2_stub, re_search_stub)
44466         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
44467         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
44468         (update_cur_sifted_state, check_dst_limits):
44469         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
44470         (check_subexp_limits, sift_states_bkref, merge_state_array):
44471         (check_subexp_matching_top, get_subexp, get_subexp_sub):
44472         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
44473         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
44474         (expand_bkref_cache, check_node_accept_bytes):
44475         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
44476         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
44477         (acquire_init_state_context, check_halt_node_context):
44478         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
44479         (sift_states_backward, clean_state_log_if_needed):
44480         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
44481         (find_recover_state, transit_state_sb, transit_state_mb):
44482         (transit_state_bkref, build_trtable, match_ctx_clean):
44483         Likewise.
44484         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
44485         to work around an assumption that REG_MISSING is negative.
44486
44487         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
44488         (seek_collating_symbol_entry) [defined _LIBC]:
44489         (lookup_collation_sequence_value) [defined _LIBC]:
44490         (build_range_exp, build_collating_symbol) [defined _LIBC]:
44491         Use prototypes rather than old-style function definitions.
44492         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
44493         (transit_state_sb) [0]:
44494         (find_collation_sequence_value) [defined _LIBC]: Likewise.
44495
44496         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
44497         rm_eo.
44498
44499         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
44500         (optimize_subexps, lower_subexp):
44501         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
44502         since the signed shift might overflow.  Use 1u<<31 instead.
44503         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
44504         Likewise.
44505         * lib/regexec.c (check_dst_limits_calc_pos_1,
44506         check_subexp_matching_top): Likewise.
44507
44508         * lib/regcomp.c (optimize_subexps, lower_subexp):
44509         Use CHAR_BIT rather than 8, for clarity.
44510         * lib/regexec.c (check_dst_limits_calc_pos_1):
44511         (check_subexp_matching_top): Likewise.
44512         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
44513         have to worry about portability issues when shifting it left.
44514         Remove no-longer-needed test for table_size > 0.
44515         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
44516         in a word, as the resulting behavior is undefined.
44517         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
44518         in one case, a <= should have been an <, and in another case the
44519         whole test was missing.
44520         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
44521         the standard name CHAR_BIT.
44522         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
44523         this is not true on one's complement and signed-magnitude hosts.
44524
44525         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
44526         next_last_offset.
44527         (struct re_dfa_t): Remove unused member states_alloc.
44528         * lib/regcomp.c (init_dfa): Don't initialize unused members.
44529
44530 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44531
44532         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
44533         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
44534         and large-file glibc and in 32-bit large-file Solaris.
44535
44536 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44537
44538         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
44539         lengths fit in regoff_t; this isn't true if regoff_t is the same
44540         width as size_t.
44541         * lib/regex.c (re_search_internal): 5th arg is LAST_START
44542         (= START + RANGE) instead of RANGE.  This avoids overflow
44543         problems when regoff_t is the same width as size_t.
44544         All callers changed.
44545         (re_search_2_stub): Check for overflow when adding the
44546         sizes of the two strings.
44547         (re_search_stub): Check for overflow when adding START
44548         to RANGE; if it occurs, substitute the extreme value.
44549
44550 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44551
44552         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
44553
44554 2005-08-31  Jim Meyering  <jim@meyering.net>
44555
44556         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
44557         a pointer-to-const.
44558         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
44559         (register_state): Likewise.
44560         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
44561         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
44562         (group_nodes_into_DFAstates): Likewise.
44563
44564 2005-08-31  Jim Meyering  <jim@meyering.net>
44565
44566         * check-module: Add a FIXME comment.
44567
44568 2005-08-31  Eric Blake  <ebb9@byu.net>
44569
44570         * modules/unistd-safer (Files): Add unistd--.h.
44571         * modules/stdio-safer (Files): Add stdio--.h.
44572
44573 2005-08-31  Derek Price  <derek@ximbiot.com>
44574
44575         * lib/getdelim.c (getdelim): Return EOF on EOF.
44576         Reported by Larry Jones <lawrence.jones@ugs.com>.
44577
44578 2005-08-31  Bruno Haible  <bruno@clisp.org>
44579
44580         Avoid unnecessary diffs in the generated lib/Makefile.am.
44581         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
44582         the generated files.
44583         (func_import): Don't set cmd.
44584
44585 2005-08-31  Bruno Haible  <bruno@clisp.org>
44586
44587         * lib/strstr.c: Include <stddef.h>, for NULL.
44588         * lib/strcasestr.c: Likewise.
44589         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44590
44591 2005-08-31  Bruno Haible  <bruno@clisp.org>
44592
44593         * gnulib-tool: New option --macro-prefix.
44594         (func_import): Use macro_prefix.
44595         (import): Handle option --macro-prefix.
44596
44597 2005-08-31  Bruno Haible  <bruno@clisp.org>
44598
44599         * gnulib-tool (import): Rename most ac_* variables to cached_*.
44600         Also use new variables cached_lgpl, cached_libtool.
44601
44602 2005-08-31  Bruno Haible  <bruno@clisp.org>
44603
44604         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
44605         always instantiating them.
44606
44607 2005-08-31  Bruno Haible  <bruno@clisp.org>
44608
44609         * gnulib-tool (func_import): Read the previous cached settings
44610         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
44611         earlier added by gnulib but are now dropped. Warn when a gnulib file
44612         overwrites a non-gnulib file.
44613
44614 2005-08-31  Bruno Haible  <bruno@clisp.org>
44615
44616         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
44617         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
44618         projects that don't keep autogenerated files in CVS. Put into
44619         actioncmd only the specified modules, not the transitive closure.
44620
44621 2005-08-31  Bruno Haible  <bruno@clisp.org>
44622
44623         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
44624         Create directories that shall be filled.
44625         (import): Don't look for gl_* macros in configure.ac. Recurse across
44626         all directories containing a gnulib-cache.m4 files, if meaningful.
44627
44628 2005-08-31  Bruno Haible  <bruno@clisp.org>
44629
44630         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
44631         (import): Set seen_libtool when we see gl_LIBTOOL.
44632
44633 2005-08-31  Bruno Haible  <bruno@clisp.org>
44634
44635         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
44636         declaration macro definitions from generated gnulib.m4.
44637
44638 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
44639
44640         * lib/iconvme.h: Add prototype for iconv_alloc.
44641
44642 2005-08-29  Simon Josefsson  <jas@extundo.com>
44643
44644         * lib/iconvme.c: Fix errno.
44645
44646 2005-08-29  Bruno Haible  <bruno@clisp.org>
44647
44648         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
44649         that it works when the directory contains spaces.
44650
44651 2005-08-29  Bruno Haible  <bruno@clisp.org>
44652
44653         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
44654
44655 2005-08-29  Bruno Haible  <bruno@clisp.org>
44656
44657         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
44658         Emit more advice.
44659
44660 2005-08-29  Bruno Haible  <bruno@clisp.org>
44661         and Stepan Kasal  <kasal@ucw.cz>
44662
44663         * check-module: If more parameters are given, check each of them
44664         separately; add more exceptions, as noted by Jim Meyering.
44665         (check_module): New procedure.
44666         (%exempt_header): Now contains all exceptions.
44667
44668 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
44669
44670         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
44671
44672 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
44673
44674         * lib/iconvme.c: Split iconv_string into iconv_alloc.
44675
44676 2005-08-28  Bruno Haible  <bruno@clisp.org>
44677
44678         * m4/gnulib-tool.m4: New file.
44679
44680 2005-08-27  Jim Meyering  <jim@meyering.net>
44681
44682         * modules/unistd-safer (Files): Add pipe-safer.c.
44683         * modules/fcntl-safer (Files): Add creat-safer.c.
44684
44685 2005-08-27  Jim Meyering  <jim@meyering.net>
44686
44687         * m4/stdlib-safer.m4: New file.  From coreutils.
44688         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
44689         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
44690         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
44691         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
44692         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
44693
44694 2005-08-27  Jim Meyering  <jim@meyering.net>
44695
44696         * lib/fopen-safer.c: Merge minor changes from coreutils.
44697         * lib/dup-safer.c: Likewise.
44698         * lib/fd-safer.c: Likewise.
44699
44700         Merge from coreutils.
44701         * lib/stdio--.h: New file.
44702         * lib/stdlib--.h: New file.
44703         * lib/mkstemp-safer.c: New file.
44704
44705         GNU tar needs these.
44706         * lib/pipe-safer.c: New file.
44707         * lib/creat-safer.c: New file.
44708         * lib/fcntl--.h (creat): Define to creat_safer.
44709         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
44710         * lib/unistd--.h (pipe): Define to pipe_safer.
44711         * lib/unistd-safer.h: Declare pipe_safer.
44712
44713 2005-08-26  Simon Josefsson  <jas@extundo.com>
44714
44715         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
44716         Haible <bruno@clisp.org>.
44717
44718 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
44719
44720         * lib/regex_internal.h: Remove all references to
44721         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
44722         or better.
44723         (bitset_not, bitset_merge, bitset_not_merge):
44724         (bitset_mask, re_string_allocate, re_string_construct):
44725         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
44726         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
44727         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
44728         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
44729         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
44730         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
44731         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
44732         (re_acquire_state_context):
44733         Remove unnecessary forward decls.
44734         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
44735         Put __attribute at function definition,
44736         now that the function decl has been removed.
44737         * lib/regex_internal.c (re_string_peek_byte_case):
44738         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
44739         Likewise.
44740
44741 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
44742
44743         * m4/regex.m4: Add AC_PREREQ(2.50).
44744         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
44745
44746 2005-08-25  Simon Josefsson  <jas@extundo.com>
44747
44748         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
44749         __fsetlocking.
44750
44751 2005-08-25  Simon Josefsson  <jas@extundo.com>
44752
44753         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
44754         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
44755         GLIBC specific code.
44756
44757 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44758
44759         Make regex safe for g++.  This fixes one real bug (an "err"
44760         that should have been "*err").  g++ problem reported by
44761         Sam Steingold.
44762         * lib/regex_internal.h (re_calloc): New macro, consistent with
44763         re_malloc etc.  All callers of calloc changed to use re_calloc.
44764         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
44765         not int.  All callers changed.
44766         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
44767         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
44768         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
44769         (find_recover_state): Change "err" to "*err"; this fixes what
44770         appears to be a real bug.
44771         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
44772         versus int.
44773
44774 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44775
44776         * modules/regex (Depends-on): Add malloc, since the code
44777         assumes that !malloc(0) means failure.
44778
44779 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44780
44781         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
44782
44783         alloca modernization/simplification for regex.
44784         * lib/regex.c: Remove portability cruft for alloca.  This no longer
44785         needs to be at the start of the file, and can be moved into
44786         regex_internal.h and simplified.
44787         * lib/regex_internal.h: Include <alloca.h>.
44788         (__libc_use_alloca) [!defined _LIBC]: New macro.
44789         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
44790         now works outside glibc.
44791
44792 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44793
44794         * config/srclist.txt: Add glibc bugs 1241, 1245.
44795
44796 2005-08-25  Jim Meyering  <jim@meyering.net>
44797
44798         * lib/open-safer.c: Include <config.h>.
44799         Otherwise, we'd lose LARGEFILE support in any file using
44800         e.g. "fcntl--.h"
44801
44802 2005-08-25  Bruno Haible  <bruno@clisp.org>
44803
44804         * m4/minmax.m4: Require autoconf 2.52.
44805         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
44806         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
44807         alternatives of translit over the alphabet.
44808         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
44809
44810 2005-08-24  Simon Josefsson  <jas@extundo.com>
44811
44812         * tests/test-getpass.c: New file.
44813
44814 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44815
44816         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
44817         for GNU regex features.
44818
44819 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44820
44821         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
44822         * lib/regex.h (regerror): Likewise.
44823
44824         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
44825         requires this.  (The code never needed it.)
44826
44827         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
44828         All uses of recently-renamed identifiers changed to use the new,
44829         POSIX-compliant names.  The code will build and run just fine
44830         without these changes, but it's better to eat our own dog food
44831         and use the standard-conforming names.
44832
44833         * lib/regex.h: Fix a multitude of POSIX name space violations.
44834         These changes have an effect only for programs that define
44835         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
44836         do not change anything for programs compiled in the normal way.
44837         Also, there is no effect on the ABI.
44838
44839         (_REGEX_SOURCE): New macro.
44840         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
44841         defined and _GNU_SOURCE is not; this fixes a name space violation.
44842
44843         Rename the following macros to obey POSIX requirements.
44844         The old names are still visible as macros if _REGEX_SOURCE is defined.
44845         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
44846         RE_BACKSLASH_ESCAPE_IN_LISTS.
44847         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
44848         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
44849         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
44850         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
44851         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
44852         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
44853         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
44854         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
44855         (REG_INTERVALS): renamed from RE_INTERVALS.
44856         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
44857         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
44858         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
44859         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
44860         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
44861         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
44862         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
44863         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
44864         RE_UNMATCHED_RIGHT_PAREN_ORD.
44865         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
44866         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
44867         (REG_DEBUG): renamed from RE_DEBUG.
44868         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
44869         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
44870         unusual, since we can't clash with the POSIX REG_ICASE.
44871         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
44872         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
44873         (REG_NO_SUB): renamed from RE_NO_SUB.
44874         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
44875         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
44876         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
44877         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
44878         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
44879         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
44880         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
44881         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
44882         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
44883         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
44884         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
44885         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
44886         RE_SYNTAX_POSIX_MINIMAL_BASIC.
44887         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
44888         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
44889         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
44890         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
44891         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
44892         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
44893         (REG_FIXED): Renamed from REGS_FIXED.
44894         (REG_NREGS): Renamed from RE_NREGS.
44895
44896         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
44897         of other REG_* macros, since POSIX says the user is allowed to
44898         #undef these macros selectively.
44899
44900         (reg_errcode_t): Update comment stating what other tables need
44901         to be consistent.
44902
44903         Rename the following enum values to obey POSIX requirements.
44904         The old names are still visible as macros.
44905         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
44906         is not defined, since GNU is supposed to be a superset of POSIX as
44907         much as possible, and since we want reg_errcode_t to be a signed
44908         type for implementation consistency.
44909         (_REG_NOERROR): Renamed from REG_NOERROR.
44910         (_REG_NOMATCH): Renamed from REG_NOMATCH.
44911         (_REG_BADPAT): Renamed from REG_BADPAT.
44912         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
44913         (_REG_ECTYPE): Renamed from REG_ECTYPE.
44914         (_REG_EESCAPE): Renamed from REG_EESCAPE.
44915         (_REG_ESUBREG): Renamed from REG_ESUBREG.
44916         (_REG_EBRACK): Renamed from REG_EBRACK.
44917         (_REG_EPAREN): Renamed from REG_EPAREN.
44918         (_REG_EBRACE): Renamed from REG_EBRACE.
44919         (_REG_BADBR): Renamed from REG_BADBR.
44920         (_REG_ERANGE): Renamed from REG_ERANGE.
44921         (_REG_ESPACE): Renamed from REG_ESPACE.
44922         (_REG_BADRPT): Renamed from REG_BADRPT.
44923         (_REG_EEND): Renamed from REG_EEND.
44924         (_REG_ESIZE): Renamed from REG_ESIZE.
44925         (_REG_ERPAREN): Renamed from REG_ERPAREN.
44926         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
44927         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
44928         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
44929         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
44930
44931         (_REG_RE_NAME, _REG_RM_NAME): New macros.
44932         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
44933         changed.  But support the old name if the new one is not defined
44934         and if _REGEX_SOURCE.
44935
44936         Change the following member names in struct re_pattern_buffer.
44937         The old names are still supported if !_REGEX_SOURCE.
44938         The new names are always supported, regardless of _REGEX_SOURCE.
44939         (re_buffer): Renamed from buffer.
44940         (re_allocated): Renamed from allocated.
44941         (re_used): Renamed from used.
44942         (re_syntax): Renamed from syntax.
44943         (re_fastmap): Renamed from fastmap.
44944         (re_translate): Renamed from translate.
44945         (re_can_be_null): Renamed from can_be_null.
44946         (re_regs_allocated): Renamed from regs_allocated.
44947         (re_fastmap_accurate): Renamed from fastmap_accurate.
44948         (re_no_sub): Renamed from no_sub.
44949         (re_not_bol): Renamed from not_bol.
44950         (re_not_eol): Renamed from not_eol.
44951         (re_newline_anchor): Renamed from newline_anchor.
44952
44953         Change the following member names in struct re_registers.
44954         The old names are still supported if !_REGEX_SOURCE.
44955         The new names are always supported, regardless of _REGEX_SOURCE.
44956         (rm_num_regs): Renamed from num_regs.
44957         (rm_start): Renamed from start.
44958         (rm_end): Renamed from end.
44959
44960         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
44961         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
44962         Prepend __ to parameter names.
44963
44964         Undo yesterday's changes.
44965
44966 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44967
44968         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
44969         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
44970         lib/regex.c.
44971
44972 2005-08-24  Jim Meyering  <jim@meyering.net>
44973
44974         Sync from coreutils.
44975         * m4/fcntl-safer.m4: New file.
44976
44977         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
44978         and object files for this module.
44979
44980 2005-08-24  Jim Meyering  <jim@meyering.net>
44981
44982         Sync from coreutils.
44983         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
44984
44985 2005-08-24  Jim Meyering  <jim@meyering.net>
44986
44987         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
44988         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
44989
44990 2005-08-24  Jim Meyering  <jim@meyering.net>
44991
44992         * modules/fcntl-safer: New module.
44993         * modules/fts (Depends-on): Add fcntl-safer.
44994         * MODULES.html.sh (File descriptor based Input/Output):
44995         Add fcntl-safer.
44996
44997 2005-08-24  Bruno Haible  <bruno@clisp.org>
44998
44999         Support for unit test modules.
45000         * modules/README: Mention tests modules.
45001         * modules/TEMPLATE-TESTS: New file.
45002         * gnulib-tool: New options --extract-tests-module, --with-tests and
45003         --tests-base (unused for the moment).
45004         (testsbase, inctests): New variables.
45005         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
45006         (func_verify_module): Exclude TEMPLATE-TESTS.
45007         (func_verify_nontests_module, func_verify_tests_module): New functions.
45008         (func_get_dependencies): Add implicit dependency for tests modules.
45009         (func_get_tests_module): New function.
45010         (func_modules_transitive_closure): When --with-tests was specified,
45011         include the unit tests as well, unless explicitly avoided.
45012         (func_emit_lib_Makefile_am): Ignore the tests modules here.
45013         (func_emit_tests_Makefile_am): New function.
45014         (func_create_testdir): When --with-tests was specified, emit a
45015         tests/ directory.
45016         * MODULES.html.sh (Future developments): Update.
45017
45018 2005-08-24  Bruno Haible  <bruno@clisp.org>
45019
45020         * modules/tls-tests: New file.
45021         * tests/test-tls.c: New file, from GNU gettext.
45022
45023 2005-08-24  Bruno Haible  <bruno@clisp.org>
45024
45025         * modules/lock-tests: New file.
45026         * tests/test-lock.c: New file, from GNU gettext.
45027
45028 2005-08-24  Bruno Haible  <bruno@clisp.org>
45029
45030         * lib/lock.h: Add multiple inclusion guard.
45031         * lib/tls.h: Add multiple inclusion guard.
45032
45033 2005-08-24  Bruno Haible  <bruno@clisp.org>
45034
45035         * gnulib-tool: Add support for the --aux-dir option to
45036         --create-testdir, --create-megatestdir, --test, --megatest.
45037         (func_create_testdir, func_create_megatestdir): Optionally emit a
45038         AC_CONFIG_AUX_DIR directive.
45039         (create-testdir, create-megatestdir, test, megatest): Provide a
45040         default value for $auxdir.
45041
45042 2005-08-24  Bruno Haible  <bruno@clisp.org>
45043
45044         * gnulib-tool (import): Use compound statement instead of subshell
45045         where possible.
45046
45047 2005-08-24  Bruno Haible  <bruno@clisp.org>
45048
45049         * gnulib-tool (import): Change --aux-dir default to "build-aux".
45050
45051 2005-08-24  Bruno Haible  <bruno@clisp.org>
45052
45053         * gnulib-tool (func_version): Update.
45054
45055 2005-08-24  Bruno Haible  <bruno@clisp.org>
45056
45057         * gnulib-tool (func_import, func_create_testdir,
45058         func_create_megatestdir): Quote all autoconf macro arguments.
45059
45060 2005-08-24  Bruno Haible  <bruno@clisp.org>
45061
45062         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
45063         option --force, because --force causes the aclocal.m4 of each
45064         subdirectory to be newer than the corresponding config.h.in.
45065
45066 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
45067
45068         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
45069         All contents moved to gl_REGEX.
45070         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
45071         assume that it does.
45072
45073 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
45074
45075         * lib/regex.h (REG_NOSYS)
45076         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
45077         Define, since POSIX requires it as of 2001.
45078         (_REG_ENOSYS)
45079         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
45080         New private symbol, used to keep the enum signed in all cases.
45081         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
45082         Youngman in
45083         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
45084
45085         * lib/regex_internal.c (re_string_skip_chars, register_state):
45086         (calc_state_hash):
45087         Remove forward decls; no longer needed now that we use prototypes.
45088         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
45089         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
45090         (clean_state_log_if_needed): Likewise.
45091
45092 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
45093
45094         * config/srclist.txt: Add glibc bugs 1231-1233.
45095
45096 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45097
45098         Fix problems reported by Sam Steingold in
45099         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
45100         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
45101         assumed that reg_errcode_t is a signed type, which is not
45102         necessarily true if _XOPEN_SOURCE is not defined.
45103         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
45104         since some compilers warn about it otherwise.
45105
45106 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45107
45108         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
45109         (init_word_char, create_initial_state, duplicate_node_closure):
45110         (fetch_token, peek_token_bracket, build_range_exp):
45111         (build_collating_symbol): Remove forward decls; no longer needed
45112         now that we use prototypes.
45113
45114         * lib/regcomp.c:
45115         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
45116         (re_compile_fastmap_iter, regcomp, regerror, regfree):
45117         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
45118         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
45119         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
45120         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
45121         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
45122         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
45123         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
45124         (build_range_exp, build_collating_symbol, parse_bracket_exp):
45125         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
45126         (build_charclass, build_charclass_op, fetch_number, create_tree):
45127         (create_token_tree, mark_opt_subexp, duplicate_tree):
45128         Use prototypes rather than old-style definitions.
45129
45130         * lib/regex_internal.c:
45131         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
45132         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
45133         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
45134         (re_string_reconstruct, re_string_peek_byte_case):
45135         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
45136         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
45137         (re_node_set_init_copy, re_node_set_add_intersect):
45138         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
45139         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
45140         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
45141         (re_acquire_state, re_acquire_state_context, register_state):
45142         (create_ci_newstate, create_cd_newstate, free_state):
45143         Likewise.
45144         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
45145         re_search_2):
45146         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
45147         (re_search_internal, prune_impossible_nodes):
45148         (acquire_init_state_context, check_matching, static):
45149         (check_halt_node_context, check_halt_state_context, proceed_next_node):
45150         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
45151         (update_regs, sift_states_backward, build_sifted_states):
45152         (clean_state_log_if_needed, merge_state_array):
45153         (update_cur_sifted_state, add_epsilon_src_nodes):
45154         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
45155         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
45156         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
45157         (find_recover_state, check_subexp_matching_top, transit_state_mb):
45158         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
45159         (check_arrival, check_arrival_add_next_nodes):
45160         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
45161         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
45162         (check_node_accept_bytes, check_node_accept, extend_buffers):
45163         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
45164         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
45165         (sift_ctx_init):
45166         Likewise.
45167
45168         * lib/regex_internal.h:
45169         (re_string_allocate, re_string_construct, re_string_reconstruct):
45170         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
45171         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
45172         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
45173         (re_string_context_at, re_string_peek_byte_case):
45174         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
45175         is defined, since we now use prototypes always.
45176
45177         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
45178         C89 or better.  All uses removed.
45179
45180 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45181
45182         * config/srclist.txt: Add glibc bugs 1220-1227.
45183
45184 2005-08-20  Jim Meyering  <jim@meyering.net>
45185
45186         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
45187         of unused local, dfa.
45188
45189 2005-08-20  Bruno Haible  <bruno@clisp.org>
45190
45191         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
45192
45193 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45194
45195         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
45196         (re_node_set_insert_last, re_dfa_add_node):
45197         Rename local variables to avoid GCC shadowing warnings.
45198
45199 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45200
45201         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
45202         [defined lint]: Suppress bogus uninitialized-variable warnings.
45203
45204         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
45205         and let the caller return REG_ESPACE if out of space.  This
45206         removes an uninitialied-variable warning with GCC 4.0.1, and also
45207         avoids taking the address of a local variable.  All callers
45208         changed.
45209
45210 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45211
45212         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
45213         $LIBCSRC/posix/regexec.c.
45214         Add glibc bug 1217 for regcomp.c.
45215
45216 2005-08-19  Jim Meyering  <jim@meyering.net>
45217
45218         * lib/regexec.c (proceed_next_node): Redo local variables to
45219         avoid GCC shadowing warnings.
45220
45221 2005-08-18  Bruno Haible  <bruno@clisp.org>
45222
45223         * lib/strstr.c (strstr): Fix return value in multibyte case.
45224         * lib/strcasestr.c (strcasestr): Likewise.
45225
45226 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
45227
45228         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
45229
45230 2005-08-17  Jim Meyering  <jim@meyering.net>
45231
45232         Make the %s format (seconds since the epoch) work for a negative
45233         number and when used with a zero-padded field width, e.g. %015s.
45234
45235         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
45236         label so that it precedes the code to set `digits'.  Otherwise,
45237         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
45238         print `00-22'.  Now, it prints `-0022', as it should.
45239
45240 2005-08-17  Bruno Haible  <bruno@clisp.org>
45241
45242         * modules/strstr (Files): Add m4/mbrtowc.m4.
45243         (Depends-on): Add mbuiter.
45244
45245 2005-08-17  Bruno Haible  <bruno@clisp.org>
45246
45247         * modules/strcasestr: New file.
45248         * MODULES.html.sh (String handling, based on ANSI C 89): Add
45249         strcasestr.
45250
45251 2005-08-17  Bruno Haible  <bruno@clisp.org>
45252
45253         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
45254
45255 2005-08-17  Bruno Haible  <bruno@clisp.org>
45256
45257         * modules/mbuiter: New file.
45258         * MODULES.html.sh (Extended multibyte and wide character utilities):
45259         Add mbuiter.
45260
45261 2005-08-17  Bruno Haible  <bruno@clisp.org>
45262
45263         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
45264         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
45265
45266 2005-08-17  Bruno Haible  <bruno@clisp.org>
45267
45268         * m4/strcasestr.m4: New file.
45269
45270 2005-08-17  Bruno Haible  <bruno@clisp.org>
45271
45272         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
45273         * lib/strstr.c: Completely rewritten, with multibyte locale support.
45274
45275 2005-08-17  Bruno Haible  <bruno@clisp.org>
45276
45277         * lib/strcasestr.h: New file.
45278         * lib/strcasestr.c: New file.
45279
45280 2005-08-17  Bruno Haible  <bruno@clisp.org>
45281
45282         * lib/strcasecmp.c: Use mbuiter.h.
45283
45284 2005-08-17  Bruno Haible  <bruno@clisp.org>
45285
45286         * lib/mbuiter.h: New file.
45287
45288 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
45289
45290         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
45291         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
45292         and gl_GETOPT are both invoked via different paths (as happens
45293         with GNU tar CVS because it uses both argp and getopt), the former
45294         wins.
45295
45296 2005-08-16  Bruno Haible  <bruno@clisp.org>
45297
45298         * modules/tls: New file.
45299         * MODULES.html.sh (Multithreading): Add tls.
45300
45301 2005-08-16  Bruno Haible  <bruno@clisp.org>
45302
45303         * modules/strnlen1: New file.
45304         * MODULES.html.sh (String handling): Add strnlen1.
45305
45306 2005-08-16  Bruno Haible  <bruno@clisp.org>
45307
45308         * modules/strcase (Files): Add m4/mbrtowc.m4.
45309         (Depends-on): Add strnlen1, mbchar.
45310
45311 2005-08-16  Bruno Haible  <bruno@clisp.org>
45312
45313         * modules/mbiter: New file.
45314         * MODULES.html.sh (Extended multibyte and wide character utilities):
45315         Add mbiter.
45316
45317 2005-08-16  Bruno Haible  <bruno@clisp.org>
45318
45319         * modules/mbfile: New file.
45320         * MODULES.html.sh (Extended multibyte and wide character utilities):
45321         Add mbfile.
45322
45323 2005-08-16  Bruno Haible  <bruno@clisp.org>
45324
45325         * modules/mbchar: New file.
45326         * MODULES.html.sh (Extended multibyte and wide character utilities):
45327         New section.
45328
45329 2005-08-16  Bruno Haible  <bruno@clisp.org>
45330
45331         * m4/tls.m4: New file, from GNU gettext.
45332
45333 2005-08-16  Bruno Haible  <bruno@clisp.org>
45334
45335         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
45336         always.
45337         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
45338
45339 2005-08-16  Bruno Haible  <bruno@clisp.org>
45340
45341         * m4/mbiter.m4: New file.
45342
45343 2005-08-16  Bruno Haible  <bruno@clisp.org>
45344
45345         * m4/mbfile.m4: New file.
45346
45347 2005-08-16  Bruno Haible  <bruno@clisp.org>
45348
45349         * m4/mbchar.m4: New file.
45350
45351 2005-08-16  Bruno Haible  <bruno@clisp.org>
45352
45353         * lib/tls.h: New file, from GNU gettext.
45354         * lib/tls.c: New file, from GNU gettext.
45355
45356 2005-08-16  Bruno Haible  <bruno@clisp.org>
45357
45358         * lib/strnlen1.h: New file.
45359         * lib/strnlen1.c: New file.
45360
45361 2005-08-16  Bruno Haible  <bruno@clisp.org>
45362
45363         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
45364         (mbi_init): Update.
45365         (mbi_avail, mbi_advance): Let the iteration end before the terminating
45366         NUL byte, not after it.
45367
45368 2005-08-16  Bruno Haible  <bruno@clisp.org>
45369
45370         * lib/strcase.h (strcasecmp): Add note in comments.
45371         * lib/strncasecmp.c: Use code from strcasecmp.c.
45372         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
45373         (strcasecmp): Work correctly in multibyte locales.
45374
45375 2005-08-16  Bruno Haible  <bruno@clisp.org>
45376
45377         * lib/mbiter.h: New file.
45378
45379 2005-08-16  Bruno Haible  <bruno@clisp.org>
45380
45381         * lib/mbfile.h: New file.
45382
45383 2005-08-16  Bruno Haible  <bruno@clisp.org>
45384
45385         * lib/mbchar.h: New file.
45386         * lib/mbchar.c: New file.
45387
45388 2005-08-16  Bruno Haible  <bruno@clisp.org>
45389
45390         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
45391         the valid ones. Makes the comparison operations transitive:
45392         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
45393         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
45394
45395 2005-08-15  Simon Josefsson  <jas@extundo.com>
45396
45397         * modules/ssize_t (License): Change to 'unlimited'.
45398
45399         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
45400
45401 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45402
45403         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
45404         Add comments for each pending glibc patch.
45405
45406 2005-08-15  Bruno Haible  <bruno@clisp.org>
45407
45408         * lib/regex.h (__restrict_arr): Don't define to __restrict if
45409         __cplusplus is defined.
45410
45411 2005-08-14  Jim Meyering  <jim@meyering.net>
45412
45413         Sync from coreutils.
45414
45415         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
45416         Use the hash-table-based cycle-detection code not just when
45417         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
45418         Reported by James Youngman in
45419         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
45420         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
45421         FTS_TIGHT_CYCLE_CHECK.
45422         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
45423         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
45424         once again.
45425         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
45426         * lib/fts.c (fd_safer): Remove decl.
45427         Include fcntl--.h rather than unistd-safer.h
45428         (fts_safe_changedir): Don't call fd_safer; no longer needed
45429         now that we include fcntl--.h.
45430
45431 2005-08-12  Simon Josefsson  <jas@extundo.com>
45432
45433         * modules/getndelim2: Use ssize_t module.
45434         * modules/getnline: Likewise.
45435         * modules/safe-read: Likewise.
45436         * modules/xreadlink: Likewise.
45437
45438         * modules/ssize_t: New file.
45439
45440 2005-08-12  Simon Josefsson  <jas@extundo.com>
45441
45442         * m4/readline.m4: Look for termcap, curses or ncurses if required.
45443
45444 2005-08-12  Simon Josefsson  <jas@extundo.com>
45445
45446         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45447         ssize_t.
45448
45449 2005-08-12  Simon Josefsson  <jas@extundo.com>
45450
45451         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
45452         readline, getdelim and check_version.
45453         (Support for systems lacking ISO C 99: Sizes of integer types):
45454         Add size_max.
45455
45456 2005-08-12  Bruno Haible  <bruno@clisp.org>
45457
45458         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
45459
45460 2005-08-11  Simon Josefsson  <jas@extundo.com>
45461
45462         * modules/readline: New file.
45463
45464         * modules/strnlen (Files): Add strnlen.h.
45465
45466 2005-08-11  Simon Josefsson  <jas@extundo.com>
45467
45468         * m4/readline.m4: New file.
45469
45470 2005-08-11  Simon Josefsson  <jas@extundo.com>
45471
45472         * lib/readline.h, readline.c: New file.
45473
45474 2005-08-11  Simon Josefsson  <jas@extundo.com>
45475
45476         * doc/gnulib.texi (Initial import, Finishing touches): Mention
45477         gl_AVOID.
45478
45479 2005-08-11  Bruno Haible  <bruno@clisp.org>
45480
45481         * lib/strnlen.h (strnlen): Change parameter name to match comment.
45482
45483 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
45484
45485         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
45486
45487 2005-08-10  Simon Josefsson  <jas@extundo.com>
45488
45489         * tests/test-iconvme.c: New file.
45490
45491 2005-08-10  Simon Josefsson  <jas@extundo.com>
45492
45493         * m4/strnlen.m4: New file.
45494
45495         * m4/strndup.m4: Don't check for strnlen declaration, done in
45496         strnlen.m4.
45497
45498 2005-08-10  Simon Josefsson  <jas@extundo.com>
45499
45500         * lib/strndup.c: Use strnlen.h.
45501
45502         * lib/strnlen.h: New file.
45503
45504 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
45505
45506         * README: Typos.
45507
45508 2005-08-02  Simon Josefsson  <jas@extundo.com>
45509
45510         * modules/readline: New file.
45511
45512 2005-08-02  Simon Josefsson  <jas@extundo.com>
45513
45514         * modules/getdelim: New file.
45515
45516         * modules/getline: Rewrite, don't use getndelim2.
45517
45518 2005-08-02  Simon Josefsson  <jas@extundo.com>
45519
45520         * m4/getline.m4: Separate out getdelim stuff into separate module.
45521
45522         * m4/getdelim.m4: New file.
45523
45524 2005-08-02  Simon Josefsson  <jas@extundo.com>
45525
45526         * lib/getline.h, getline.c: Rewrite.
45527
45528         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
45529
45530 2005-07-31  Bruno Haible  <bruno@clisp.org>
45531
45532         * lib/lock.h (gl_lock_initializer): New macro.
45533         (gl_lock_define_initialized): Use it.
45534         (gl_rwlock_initializer): New macro.
45535         (gl_rwlock_define_initialized): Use it.
45536         (gl_recursive_lock_initializer): New macro.
45537         (gl_recursive_lock_define_initialized): Use it.
45538
45539 2005-07-30  Karl Berry  <karl@gnu.org>
45540
45541         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
45542         Report from Ben Pfaff, regarding getopt.
45543
45544 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
45545
45546         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
45547         normal way.
45548         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
45549         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
45550         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
45551         (gl_GETOPT): Use the new macros.  Most of the implementation
45552         is moved to the new macros.  This is for programs like Emacs
45553         that don't want all the functionality of gl_GETOPT.
45554
45555 2005-07-26  Bruno Haible  <bruno@clisp.org>
45556
45557         * m4/lock.m4: Update from GNU gettext.
45558
45559 2005-07-26  Bruno Haible  <bruno@clisp.org>
45560
45561         * lib/lock.h: Update from GNU gettext.
45562         * lib/lock.c: Update from GNU gettext.
45563
45564 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
45565
45566         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
45567         obsolescent AC_TRY_RUN.  Include the default includes files, for
45568         'exit'.
45569
45570 2005-07-24  Bruno Haible  <bruno@clisp.org>
45571
45572         * modules/visibility: New file.
45573         * MODULES.html.sh (Misc): Add visibility.
45574
45575 2005-07-24  Bruno Haible  <bruno@clisp.org>
45576
45577         * m4/visibility.m4: New file.
45578
45579 2005-07-24  Bruno Haible  <bruno@clisp.org>
45580
45581         * doc/visibility.texi: New file.
45582
45583 2005-07-22  Bruno Haible  <bruno@clisp.org>
45584
45585         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
45586         $(ALLOCA_H), redundant through BUILT_SOURCES.
45587         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
45588         redundant through BUILT_SOURCES.
45589         * modules/byteswap (Makefile.am): Remove explicit dependency on
45590         $(BYTESWAP_H), redundant through BUILT_SOURCES.
45591         * modules/fnmatch (Makefile.am): Remove explicit dependency on
45592         $(FNMATCH_H), redundant through BUILT_SOURCES.
45593         * modules/getopt (Makefile.am): Remove explicit dependency on
45594         $(GETOPT_H), redundant through BUILT_SOURCES.
45595         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
45596         redundant through BUILT_SOURCES.
45597         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
45598         redundant through BUILT_SOURCES.
45599         * modules/stdbool (Makefile.am): Remove explicit dependency on
45600         $(STDBOOL_H), redundant through BUILT_SOURCES.
45601         * modules/stdint (Makefile.am): Remove explicit dependency on
45602         $(STDINT_H), redundant through BUILT_SOURCES.
45603         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
45604         Remove explicit dependency on $(SYSEXITS_H).
45605         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
45606
45607 2005-07-18  Simon Josefsson  <jas@extundo.com>
45608
45609         * lib/check-version.c (check_version): Accept identical versions too.
45610
45611 2005-07-18  Bruno Haible  <bruno@clisp.org>
45612
45613         * modules/lock: New file.
45614         * MODULES.html.sh (Multithreading): New section.
45615
45616 2005-07-18  Bruno Haible  <bruno@clisp.org>
45617
45618         * m4/lock.m4: New file, from GNU gettext.
45619
45620 2005-07-18  Bruno Haible  <bruno@clisp.org>
45621
45622         * lib/lock.h: New file, from GNU gettext.
45623         * lib/lock.c: New file, from GNU gettext.
45624
45625 2005-07-18  Bruno Haible  <bruno@clisp.org>
45626
45627         * lib/lock.h (gl_once_t): New type.
45628         (gl_once_define, gl_once): New macros.
45629         * lib/lock.c (fresh_once): New variable.
45630         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
45631         functions.
45632
45633 2005-07-16  Simon Josefsson  <jas@extundo.com>
45634
45635         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
45636         workaround, suggested by Bruno.
45637
45638 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
45639
45640         * modules/xalloc (Depends-on): Add xalloc-die.
45641         * modules/xvasprintf (Depends-on): Add xalloc-die.
45642
45643 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
45644
45645         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
45646         with a minor change.
45647
45648 2005-07-15  Bruno Haible  <bruno@clisp.org>
45649
45650         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
45651         When using lib/poll.c, define poll as rpl_poll.
45652
45653 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
45654
45655         * modules/argp (Depends-on): Remove unlocked-io.
45656
45657 2005-07-14  Derek Price  <derek@ximbiot.com>
45658
45659         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
45660         for glob symlink bug.
45661
45662 2005-07-14  Bruno Haible  <bruno@clisp.org>
45663
45664         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
45665         Instead, test for *_unlocked function declarations directly.
45666
45667 2005-07-11  Simon Josefsson  <jas@extundo.com>
45668
45669         * modules/size_max: New file.
45670
45671         * modules/xsize: Depend on size_max module for size_max.m4.
45672
45673 2005-07-11  Simon Josefsson  <jas@extundo.com>
45674
45675         * lib/size_max.h: New file.
45676
45677 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
45678
45679         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
45680         copyright symbol and the year.
45681         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
45682         (version_etc_va): Use parameterized copyright notice.
45683         Reword to conform to the current GNU coding standards.
45684
45685 2005-07-11  Karl Berry  <karl@gnu.org>
45686
45687         * doc/gnulib.texi (Quoting): new node.
45688         (Initial import): more info, from Patrice.
45689
45690 2005-07-11  Bruno Haible  <bruno@clisp.org>
45691
45692         * gnulib-tool (func_usage): Document option --avoid.
45693         (Command line options): Handle --avoid.
45694         (func_acceptable): New function.
45695         (func_modules_transitive_closure): Use it.
45696
45697 2005-07-11  Bruno Haible  <bruno@clisp.org>
45698
45699         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
45700         Reported by Jim Meyering.
45701
45702 2005-07-10  Bruno Haible  <bruno@clisp.org>
45703
45704         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
45705         Needed when size_t is smaller than 'unsigned int'.
45706         Reported by Paul Eggert.
45707
45708 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
45709
45710         * modules/argp (Depends-on): Add unlocked-io
45711
45712 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
45713
45714         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
45715         block of defines.
45716
45717 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
45718
45719         * config/srclist.txt: Comment out regcomp.c, since we have a porting
45720         fix now.
45721
45722 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
45723         and Paul Eggert  <eggert@cs.ucla.edu>
45724
45725         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
45726         in wint_t, not wchar_t.  Remove now-unnecessary cast.
45727
45728 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
45729
45730         * modules/regex (Files): Add lib/regex_internal.c,
45731         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
45732         (Depends-on): Add extensions.
45733         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
45734
45735 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
45736
45737         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
45738         pathconf.
45739         * m4/same.m4 (gl_SAME): Likewise.
45740         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
45741
45742         * m4/regex.m4: Adjust to new libc regex implementation.
45743         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
45744         all the .c and .h parts of (the new) regex.
45745         Quote the m4 stuff better.
45746         Check for RE_ICASE bug of old gnulib.
45747         Check for REG_STARTEND of recent libc.
45748         Rename local variables from jm_* to gl_*.
45749         Quote operand of "test -f".
45750         Say "recent enough" version of libc, not "version 2".
45751         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
45752         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
45753         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
45754         Remove check for btowc, isascii.
45755         Require AM_LANGINFO_CODESET.
45756
45757 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
45758
45759         * lib/regex.c, regex.h: Sync from libc.
45760         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
45761         * lib/regexec.c:
45762         New files, synced from libc, except that regex_internal.h
45763         currently has a small porting fix.
45764
45765 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
45766
45767         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
45768         regex_internal.c, regexec.c.
45769         Add regex_internal.h too, but as a comment, since the libc version
45770         is currently broken in gnulib mode.
45771
45772 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45773
45774         Support programs like Emacs that use gnulib but not gettext.
45775         * MODULES.html.sh (Internationalization functions): Add gettext-h.
45776         * modules/gettext-h: New file.
45777         * modules/gettext (Files): Remove lib/gettext.h.
45778         (Depends-on): Add gettext-h.
45779         (Makefile.am): Remove lib_SOURCES.
45780         * modules/argmatch, modules/c-stack, modules/closeout:
45781         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
45782         * modules/execute, modules/file-type, modules/getaddrinfo:
45783         * modules/getopt, modules/human, modules/javacomp:
45784         * modules/javaexec, modules/mkdir-p, modules/obstack:
45785         * modules/openat, modules/pagealign_alloc, modules/pipe:
45786         * modules/quotearg, modules/regex, modules/rpmatch:
45787         * modules/unicodeio, modules/userspec, modules/version-etc:
45788         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
45789         * modules/xsetenv:
45790         Depend on gettext-h, not gettext.
45791
45792 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45793
45794         * gnulib-tool (func_import): Add support for 'public domain' license.
45795         * modules/alloca, modules/atexit, modules/memmove:
45796         Now public domain, not GPL.
45797         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
45798         * modules/realloc, modules/strerror, modules/strtod:
45799         Now LGPL, not GPL.
45800
45801 2005-07-05  Bruno Haible  <bruno@clisp.org>
45802
45803         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
45804         autoconf CVS. Needed for mingw.
45805
45806 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45807
45808         Remove the dependency of the strftime module on the tzset module.
45809         * modules/strftime (Depends-on): Remove dependency on tzset.
45810
45811 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45812
45813         Remove the dependency of the strftime module on the tzset module.
45814         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
45815         gl_FUNC_TZSET_CLOBBER.
45816
45817 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45818
45819         Remove the dependency of the strftime module on the tzset module.
45820         * lib/strftime.c (my_strftime)
45821         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
45822         Copy the input structure, to work around some of the bug with
45823         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
45824         Solaris releases, you should also use the tzset module, but we won't
45825         require it as a dependency any more since we don't want LGPLed code
45826         to depend on GPLed code.
45827
45828 2005-07-02  Jim Meyering  <jim@meyering.net>
45829
45830         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
45831         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
45832         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
45833         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
45834
45835 2005-07-02  Jim Meyering  <jim@meyering.net>
45836
45837         * lib/backupfile.c (backup_args): Change a `0' to NULL.
45838
45839 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45840
45841         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
45842         declares only 'struct timespec;' (!).
45843
45844 2005-07-01  Jim Meyering  <jim@meyering.net>
45845
45846         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
45847         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
45848         * lib/save-cwd.c, tempname.c:
45849         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
45850         and don't include <sys/file.h>).
45851
45852 2005-06-29  Jim Meyering  <jim@meyering.net>
45853
45854         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
45855         type name.  Use the variable name instead.
45856         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
45857         Likewise.
45858
45859 2005-06-28  Simon Josefsson  <jas@extundo.com>
45860
45861         * modules/check-version (Files): Add check-version.m4.
45862
45863 2005-06-28  Simon Josefsson  <jas@extundo.com>
45864
45865         * m4/check-version.m4: New file, suggested by Jim Meyering
45866         <jim@meyering.net>.
45867
45868 2005-06-28  Simon Josefsson  <jas@extundo.com>
45869
45870         * lib/check-version.h, lib/check-version.c: New files.
45871
45872 2005-06-28  Simon Josefsson  <jas@extundo.com>
45873
45874         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
45875         collision with global variable.  Better indentation.  Don't
45876         increment buffer pointer beyond buffer end.  Based on comments
45877         from Paul Eggert <eggert@cs.ucla.edu>.
45878
45879         * lib/base64.h: Indent.
45880
45881 2005-06-28  Simon Josefsson  <jas@extundo.com>
45882
45883         * doc/gnulib.texi (Library version handling): New section.
45884
45885 2005-06-28  Jim Meyering  <jim@meyering.net>
45886
45887         * check-module (find_included_lib_files): Hard-code another
45888         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
45889         but modules/fts-lgpl (correctly) does not list those files.
45890
45891         * modules/canonicalize (Files): Add lib/pathmax.h.
45892
45893 2005-06-25  Simon Josefsson  <jas@extundo.com>
45894
45895         * modules/check-version: New file.
45896
45897 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
45898
45899         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
45900         initializer of struct addrinfo, as an indication that we don't
45901         care how many members the structure has.
45902
45903 2005-06-24  Derek Price  <derek@ximbiot.com>
45904         and Bruno Haible  <bruno@clisp.org>
45905
45906         Remove stat module & update lstat.
45907         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
45908         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
45909         * m4/stat.m4: Remove this file.
45910
45911 2005-06-24  Derek Price  <derek@ximbiot.com>
45912         and Bruno Haible  <bruno@clisp.org>
45913
45914         Remove stat module & update lstat.
45915         * lib/stat.c: Remove this file...
45916         (slash_aware_lstat): ...moving this content and its support...
45917         * lib/lstat.c (rpl_lstat): ...into here.
45918         * lib/lstat.h: New file.
45919
45920 2005-06-24  Derek Price  <derek@ximbiot.com>
45921         and Bruno Haible  <bruno@clisp.org>
45922
45923         Remove stat module & update lstat.
45924         * config/srclist.txt (libc sources): Remove stat.
45925
45926 2005-06-24  Derek Price  <derek@ximbiot.com>
45927         and Bruno Haible  <bruno@clisp.org>
45928
45929         Remove stat module & update lstat.
45930         * MODULES.html.sh (stat): Remove.
45931         * MODULES.html: Regenerated.
45932         * modules/lstat (Description): Correct function name.
45933         (Files): Add "lstat.h".
45934         (Depends-on): Remove stat, add xalloc, stat-macros.
45935         * modules/stat: Remove this file.
45936         (Include): Add "lstat.h", remove <sys/stat.h>.
45937
45938 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
45939
45940         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
45941         (ranged_convert): Don't save conversion in a temporary struct.
45942         This causes a warning with GCC 4.0.0, and anyway in the typical
45943         case it's not worth the extra 100 bytes or so of code.
45944         (ranged_convert, __mktime_internal): When calling a function via a
45945         pointer P, use P () rather than (*P) (), as we now assume C89 or
45946         better.
45947
45948 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
45949
45950         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
45951         "who -r" failed to give output.  Problem reported by Tim Waugh.
45952
45953         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
45954         (xcalloc): Use it to avoid needless tests.
45955         Problem reported by Jim Meyering.
45956
45957 2005-06-20  Derek Price  <derek@ximbiot.com>
45958
45959         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
45960         unnecessary for Autoconfs > 2.59c.
45961
45962 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
45963
45964         * lib/argp.h (__option_is_short): Check upper limit of
45965         __key. Isprint() requires its argument to have the value
45966         of an unsigned char or EOF.
45967
45968 2005-06-16  Jim Meyering  <jim@meyering.net>
45969
45970         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
45971         when either N or S is zero.
45972
45973 2005-06-16  Derek Price  <derek@ximbiot.com>
45974
45975         * m4/bison.m4: Declare YACC & YFLAGS precious.
45976
45977 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
45978
45979         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
45980         multibyte string or pattern, fall back on unibyte matching.
45981         Problem reported by James Youngman.
45982
45983 2005-06-08  Bruno Haible  <bruno@clisp.org>
45984
45985         * modules/csharpcomp: New file.
45986         * MODULES.html.sh (C#): Add csharpcomp.
45987
45988 2005-06-08  Bruno Haible  <bruno@clisp.org>
45989
45990         * m4/csharpcomp.m4: New file, from GNU gettext.
45991
45992 2005-06-08  Bruno Haible  <bruno@clisp.org>
45993
45994         * lib/csharpcomp.h: New file, from GNU gettext.
45995         * lib/csharpcomp.c: New file, from GNU gettext.
45996         * lib/csharpcomp.sh.in: New file, from GNU gettext.
45997
45998 2005-06-08  Bruno Haible  <bruno@clisp.org>
45999
46000         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
46001         warning on mingw.
46002
46003 2005-06-07  Derek Price  <derek@ximbiot.com>
46004
46005         Sync from CVS.
46006         * lib/glob_.h: Indent nested #ifdef.
46007
46008 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
46009
46010         Sync from coreutils.
46011         Use "file name" when talking about file names, instead of "filename"
46012         or "path", as per the GNU coding standards.
46013         * lib/mkdir-p.c: Renamed from makepath.c.
46014         (make_dir_parents): Renamed from make_path.  All callers changed.
46015         * lib/mkdir-p.h: Likewise.  All includers changed.
46016         * lib/filenamecat.c: Renamed from path-concat.c.
46017         (file_name_concat): Renamed from path_concat.  All callers changed.
46018         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
46019         * lib/filenamecat.h: Likewise.  All includers changed.
46020         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
46021         in comments or local variable names.
46022         * lib/basename.c: Likewise.
46023         * lib/canonicalize.c, canonicalize.h: Likewise.
46024         * lib/dirname.c, dirname.h: Likewise.
46025         * lib/euidaccess.c: Likewise.
46026         * lib/exclude.c: Likewise
46027         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
46028         * lib/fsusage.c, fsuage.h: Likewise.
46029         * lib/fts.c, fts_.h: Likewise.
46030         * lib/getcwd.c: Likewise.
46031         * lib/getloadavg.c: Likewise.
46032         * lib/mkstemp.c: Likewise.
46033         * lib/mountlist.c, mountlist.h: Likewise.
46034         * lib/openat.c, openat.h: Likewise.
46035         * lib/readlink-stub.c: Likewise.
46036         * lib/readutmp.c, readutmp.h: Likewise.
46037         * lib/rename.c: Likewise.
46038         * lib/rmdir.c: Likewise.
46039         * lib/same.c: Likewise.
46040         * lib/savedir.c: Likewise.
46041         * lib/stripslash.c: Likewise.
46042         * lib/tempname.c: Likewise.
46043         * lib/xreadlink.c: Likewise.
46044         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
46045         All uses changed.
46046         * lib/exclude.h: Likewise.
46047
46048         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
46049         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
46050         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
46051         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
46052         * lib/pathmax.h: Include <limits.h> unconditionally, since other
46053         files have been getting away with it for years (MORE/BSD 4.3
46054         is extinct now).
46055         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
46056         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
46057
46058         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
46059         Define to 256, not 255, as per modern POSIX.
46060
46061 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
46062
46063         Sync from coreutils.
46064         Use "file name" when talking about file names, instead of "filename"
46065         or "path", as per the GNU coding standards.
46066         * MODULES.html.sh: mkdir-p renamed from makepath.
46067         filenamecat renamed from path-concat.
46068         * modules/filenamecat: Renamed from modules/path-concat.
46069         (Files): filenamecat.h and filenamecat.c renamed from
46070         path-concat.h and path-concat.c.
46071         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
46072         (Include): filenamecat.h, not path-concat.h.
46073         * modules/mkdir-p: Renamed from modules/makepath.
46074         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
46075         makepath.c.
46076         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
46077         (Include): mkdir-p.h, not makepath.h.
46078
46079 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
46080
46081         Sync from coreutils.
46082         * m4/mkdir-p.m4: Renamed from makepath.m4.
46083         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
46084         Rename files from makepath.c to mkdir-p.c, and from
46085         makepath.h to mkdir-p.h.
46086         * m4/filenamecat.m4: Renamed from path-concat.m4.
46087         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
46088         Rename files from path-concat.c to filenamecat.c,
46089         and from path-concat.h to filenamecat.h.
46090         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
46091         "file name" in local variables or comments.
46092         * m4/rename.m4: Likewise.
46093
46094 2005-06-01  Bruno Haible  <bruno@clisp.org>
46095
46096         * modules/csharpexec: New file.
46097         * MODULES.html.sh (C#): New section.
46098
46099 2005-06-01  Bruno Haible  <bruno@clisp.org>
46100
46101         * m4/csharp.m4: New file, from GNU gettext.
46102         * m4/csharpexec.m4: New file, from GNU gettext.
46103
46104 2005-06-01  Bruno Haible  <bruno@clisp.org>
46105
46106         * lib/csharpexec.h: New file, from GNU gettext.
46107         * lib/csharpexec.c: New file, from GNU gettext.
46108         * lib/csharpexec.sh.in: New file, from GNU gettext.
46109
46110 2005-05-31  Derek Price  <derek@ximbiot.com>
46111             Paul Eggert  <eggert@cs.ucla.edu>
46112
46113         Sync from cvs.
46114         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
46115
46116 2005-05-31  Derek Price  <derek@ximbiot.com>
46117             Paul Eggert  <eggert@cs.ucla.edu>
46118
46119         Sync from cvs.
46120         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
46121
46122 2005-05-29  Derek Price  <derek@ximbiot.com>
46123
46124         * config/srclist.txt (glob_.h, glob.c): Add these files.
46125
46126 2005-05-29  Derek Price  <derek@ximbiot.com>
46127
46128         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
46129         * modules/glob: New file.
46130         * modules/getlogin_r: Add link to POSIX spec in description.
46131
46132 2005-05-29  Derek Price  <derek@ximbiot.com>
46133             Paul Eggert  <eggert@cs.ucla.edu>
46134
46135         * m4/glob.m4: New file.
46136
46137 2005-05-29  Derek Price  <derek@ximbiot.com>
46138             Paul Eggert  <eggert@cs.ucla.edu>
46139
46140         * lib/glob_.h, lib/glob.c: New files.
46141
46142 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
46143
46144         * modules/fts (Files): Remove m4/inttypes-pri.m4.
46145         * modules/fts-lgpl (Depends-on): Remove gettext.
46146
46147 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
46148
46149         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
46150         and don't require gt_INTTYPES_PRI.
46151
46152 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
46153
46154         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
46155
46156         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
46157         the configuration hassle isn't worth it.
46158         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
46159         (LONGEST_MODIFIER, PRIuMAX): Remove.
46160
46161 2005-05-27  Bruno Haible  <bruno@clisp.org>
46162
46163         * lib/getlogin_r.h: Remove second include of <stddef.h>.
46164
46165 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
46166
46167         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
46168         _POSIX_PTHREAD_SEMANTICS for Solaris.
46169
46170 2005-05-25  Derek Price  <derek@ximbiot.com>
46171
46172         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
46173
46174 2005-05-25  Derek Price  <derek@ximbiot.com>
46175             Paul Eggert  <eggert@cs.ucla.edu>
46176
46177         * modules/getlogin_r, m4/getlogin_r.m4: New files.
46178         * lib/getlogin_r.c, getlogin_r.h: New files.
46179
46180 2005-05-25  Bruno Haible  <bruno@clisp.org>
46181             Derek Price  <derek@ximbiot.com>
46182
46183         * lib/getlogin_r.h: Simplify API documentation.
46184
46185 2005-05-23  Derek Price  <derek@ximbiot.com>
46186
46187         * modules/minmax (Files): Add m4/minmax.m4.
46188         (configure.ac): Add gl_MINMAX.
46189
46190 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
46191
46192         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
46193         so that unistd-safer.h (GPL'ed code) need not be included.
46194
46195 2005-05-22  Bruno Haible  <bruno@clisp.org>
46196
46197         * m4/minmax.m4: New file.
46198         Based on a patch by Derek Price <derek@ximbiot.com>.
46199
46200 2005-05-22  Bruno Haible  <bruno@clisp.org>
46201
46202         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
46203         (INT64_MIN): Fix definition.
46204         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
46205
46206         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
46207         NEED_SIGNED_INT_TYPES.
46208
46209         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
46210         HAVE_SYSTEM_INTTYPES.
46211
46212 2005-05-22  Bruno Haible  <bruno@clisp.org>
46213
46214         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
46215         Also include <sys/param.h> if it defines MIN, MAX.
46216         Based on a patch by Derek Price <derek@ximbiot.com>.
46217
46218 2005-05-21  Jim Meyering  <jim@meyering.net>
46219
46220         * modules/fts (Files): Add m4/inttypes-pri.m4.
46221         (Depends-on): Add lstat and remove gettext.  Alphabetize.
46222
46223 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
46224
46225         New fts module.
46226         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
46227         (setup_dir, free_dir): New functions.
46228         (enter_dir, leave_dir): Define trivial
46229         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
46230         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
46231         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
46232         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
46233         Move to fts-cycle.c.
46234         (fts_open): Use setup_dir.
46235         (fts_close): Use free_dir.
46236         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
46237         This adds a label and some gotos, but the alternatives were messier.
46238         Check for memory allocation failure when entering a dir.
46239         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
46240         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
46241         (FTS): New member fts_cycle, that is a union that contains the
46242         old active_dir_ht and cycle_state.  All uses changed to mention
46243         fts_cycle.ht and fts_cycle.state.
46244         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
46245         fts.c, with the following changes:
46246         (setup_dir, free_dir): New functions.
46247         (enter_dir): Now returns bool.  Return true if successful, false
46248         if memory exhausted.  All callers changed.
46249         Do not bother partly cleaning up on
46250         memory allocation failure; that is free_dir's job.
46251         However, free ad if hash_insert fails, to avoid memory leak.
46252         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
46253         fts->fts_options to see which union member to use.
46254
46255 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
46256
46257         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
46258         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
46259
46260 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
46261
46262         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
46263
46264 2005-05-20  Jim Meyering  <jim@meyering.net>
46265
46266         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
46267         Now a macro, to pacify GCC.
46268
46269 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
46270
46271         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
46272         of -1.
46273
46274 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
46275
46276         * lib/chown.c (rpl_chown): Return -1 on failure.
46277
46278 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
46279
46280         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
46281         Don't check for stddef.h.
46282         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
46283         don't use its results.
46284         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
46285         since we include them unconditionally.  Don't require
46286         AM_STDBOOL_H, since stdbool is a prerequisite.
46287         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
46288         since we assume C89 or better.
46289         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
46290         as we don't use their results.
46291         Don't check for fchdir, memmove, memset, strrchr, as we use
46292         them unconditionally.
46293         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
46294         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
46295
46296 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
46297
46298         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
46299         Include <stddef.h> unconditionally, since we assume C89 now.
46300         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
46301         * lib/fts.c: Include fts_.h first, to check interface.
46302         Do not include intprops.h; no longer needed.
46303         Include cycle-check.h and hash.h, since fts_.h no longer does.
46304         Remove unnecessary casts of closedir to void.
46305         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
46306         decide whether to decrement nlinks.
46307         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
46308         (FTS): Use struct hash_table * instead of Hash_table, so that
46309         we no longer need to include hash.h here.
46310
46311 2005-05-18  Jim Meyering  <jim@meyering.net>
46312
46313         * modules/dirfd (License): Change to LGPL.  Most of the code
46314         is already in the public domain.
46315
46316 2005-05-18  Jim Meyering  <jim@meyering.net>
46317
46318         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
46319         Reported by Yoann Vandoorselaere.
46320
46321 2005-05-17  Jim Meyering  <jim@meyering.net>
46322
46323         * m4/fts.m4: New file, from coreutils.
46324
46325 2005-05-17  Jim Meyering  <jim@meyering.net>
46326
46327         * lib/fts.c, lib/fts_.h: New files, from coreutils.
46328
46329 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
46330
46331         Sync from coreutils.
46332         * m4/unlinkdir.m4: New file.
46333
46334 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
46335
46336         Sync from coreutils.
46337         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
46338         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
46339         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
46340         White space changes only.
46341         * lib/makepath.c (make_path): Port to hosts where leading "//" is
46342         special.
46343         * lib/yesno.c: Include getline.h, not ctype.h.
46344         (yesno): Don't remove leading white space; POSIX doesn't allow it.
46345         Use getline to remove arbitrary restriction on response length.
46346
46347 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
46348
46349         * config/srclist-update: Spell out "Street" in FSF postal
46350         mail address; this is the style the FSF seems to prefer.
46351
46352         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
46353         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
46354         this updates FSF postal mail address.
46355
46356         Sync from coreutils.
46357         * modules/unlinkdir: New file.
46358         * modules/yesno (Depends-on): Add getline.
46359         * MODULES.html.sh (File system functions): Add unlinkdir.
46360
46361 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
46362
46363         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
46364         lib/strsep.h:
46365         Change the initial comment to refer to GPL, not LGPL.
46366         gnulib-tool will change it to LGPL as needed.
46367
46368         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
46369         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
46370         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
46371         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
46372         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
46373         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
46374         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
46375         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
46376         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
46377         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
46378         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
46379         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
46380         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
46381         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
46382         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
46383         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
46384         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
46385         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
46386         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
46387         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
46388         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
46389         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
46390         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
46391         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
46392         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
46393         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
46394         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
46395         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
46396         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
46397         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
46398         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
46399         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
46400         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
46401         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
46402         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
46403         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
46404         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
46405         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
46406         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
46407         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
46408         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
46409         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
46410         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
46411         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
46412         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
46413         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
46414         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
46415         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
46416         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
46417         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
46418         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
46419         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
46420         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
46421         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
46422         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
46423         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
46424         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
46425         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
46426         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
46427         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
46428         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
46429         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
46430         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
46431         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
46432         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
46433         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
46434         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
46435         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
46436         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
46437         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
46438         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
46439         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
46440         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
46441         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
46442         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
46443         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
46444         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
46445         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
46446         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
46447         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
46448         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
46449         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
46450         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
46451         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
46452         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
46453         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
46454         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
46455         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
46456         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
46457         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
46458         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
46459         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
46460         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
46461         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
46462         lib/yesno.c, lib/yesno.h:
46463         Update FSF postal mail address.
46464
46465 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
46466
46467         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
46468         tests/test-memmem.c, tests/test-stpncpy.c:
46469         Update FSF postal mail address.
46470
46471 2005-05-13  Bruno Haible  <bruno@clisp.org>
46472
46473         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
46474         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
46475         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
46476         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
46477         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
46478         Add support for 64-bit integers in the MSVC compiler.
46479
46480 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
46481
46482         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
46483
46484 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
46485
46486         * gnulib-tool (func_import): Sort and uniquify recommended includes.
46487
46488 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
46489
46490         * doc/getdate.texi (General date syntax): Don't say that date
46491         date --iso-8601=ns generates acceptable dates; it doesn't yet.
46492         Problem reported by Nic Ferrier.
46493
46494 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46495
46496         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
46497         specified in ai_socktype. Fix invalid ai_protocol
46498         check. ai_protocol is usually set to 0 or depending on
46499         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
46500         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
46501         ai_socktype / ai_protocol in the returned addrinfo structure.
46502
46503 2005-05-10  Simon Josefsson  <jas@extundo.com>
46504
46505         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
46506         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46507
46508 2005-05-10  Karl Berry  <karl@gnu.org>
46509
46510         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
46511         (from http://www.gnu.org/licenses).
46512         * doc/COPYING.LIB: also rename to COPYING.LESSER.
46513         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
46514         fdl.texi suffices.
46515
46516 2005-05-10  Karl Berry  <karl@gnu.org>
46517
46518         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
46519         (COPYING.DOC): remove.
46520
46521         * config/srclist-update: new FSF address.
46522
46523 2005-05-10  Derek Price  <derek@ximbiot.com>
46524
46525         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
46526         possible.
46527
46528 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46529             Bruno Haible  <bruno@clisp.org>
46530
46531         * modules/inet_ntop: New file.
46532         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46533         inet_ntop.
46534
46535 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46536             Bruno Haible  <bruno@clisp.org>
46537
46538         * m4/inet_ntop.m4: New file.
46539
46540 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46541             Bruno Haible  <bruno@clisp.org>
46542
46543         * lib/inet_ntop.h: New file.
46544         * lib/inet_ntop.c: New file, from glibc with modifications.
46545
46546 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
46547
46548         * modules/time_r (License): Change to LGPL.
46549         * modules/extensions (License): Change to LGPL.  Actually,
46550         the license is more permissive than that, but currently gnulib-tool
46551         doesn't know how to handle more-permissive licenses.
46552
46553         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
46554         Problem reported by Dave Love.
46555
46556 2005-05-08  Jim Meyering  <jim@meyering.net>
46557
46558         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
46559         blank.
46560
46561 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
46562
46563         * modules/argmatch (Depends-on): Add stdbool.
46564         * modules/backupfile (Depends-on): Likewise.
46565         * modules/chdir-long (Depends-on): Likewise.
46566         * modules/closeout (Depends-on): Likewise.
46567         * modules/cycle-check (Depends-on): Likewise.
46568         * modules/dirname (Depends-on): Likewise.
46569         * modules/fnmatch (Depends-on): Likewise.
46570         * modules/fsusage (Depends-on): Likewise.
46571         * modules/fwriteerror (Depends-on): Likewise.
46572         * modules/getcwd (Depends-on): Likewise.
46573         * modules/getloadavg (Depends-on): Likewise.
46574         * modules/hard-locale (Depends-on): Likewise.
46575         * modules/makepath (Depends-on): Likewise.
46576         * modules/mountlist (Depends-on): Likewise.
46577         * modules/nanosleep (Depends-on): Likewise.
46578         * modules/posixtm (Depends-on): Likewise.
46579         * modules/quotearg (Depends-on): Likewise.
46580         * modules/readtokens (Depends-on): Likewise.
46581         * modules/readtokens0 (Depends-on): Likewise.
46582         * modules/readutmp (Depends-on): Likewise.
46583         * modules/save-cwd (Depends-on): Likewise.
46584         * modules/strftime (Depends-on): Likewise.
46585         * modules/userspec (Depends-on): Likewise.
46586         * modules/utimecmp (Depends-on): Likewise.
46587         * modules/xgetcwd (Depends-on): Likewise.
46588         * modules/xnanosleep (Depends-on): Likewise.
46589         * modules/xstrtod (Depends-on): Likewise.
46590         * modules/yesno (Depends-on): Likewise.
46591
46592 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
46593
46594         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
46595         needless checks.
46596
46597 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
46598
46599         Merge from coreutils.  Among other things,
46600         add bulletproofing for cases where stdin, stdout, or stderr are closed.
46601         * lib/fd-safer.c: New file.
46602         * lib/fcntl-safer.h, open-safer.c: Remove.
46603         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
46604         * lib/dup-safer.c: Include unistd-safer.h first.
46605         Don't include errno.h.
46606         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
46607         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
46608         * lib/file-type.c: Rely on file-type.h change.
46609         * lib/getloadavg.c: Include unistd-safer.h.
46610         (getloadavg): Use safer open.
46611         * lib/getusershell.c: Include "stdio-safer.h".
46612         (getusershell): Use safer fopen.
46613         * lib/long-options.c (long_options): Use NULL rather than 0.
46614         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
46615         'free'.
46616         * lib/modechange.c: Likewise.
46617         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
46618         (MODE_DONE): New constant.
46619         (struct mode_change): Remove 'next' member.
46620         (make_node_op_equals): New function; like the old one of the
46621         same name, except it allocates an array.
46622         (mode_compile, mode_create_from_ref): Use it.
46623         (mode_compile): Allocate result as an array, not a linked list.
46624         Parse octal string ourself, so that we catch mistakes like "+0".
46625         (mode_adjust): Arg is an array, not a linked list.
46626         * lib/modechange.c: Include stat-macros.h, xalloc.h.
46627         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
46628         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
46629         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
46630         Remove.  This is now stat-macros.h's job.
46631         (talloc): Remove.  All callers replaced by xalloc, so that
46632         our invokers don't have to worry about reporting memory failures.
46633         (make_node_op_equals): Remove.
46634         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
46635         New constants.
46636         (struct mode_change): Moved here from modechange.h.
46637         (mode_append_entry): Remove.
46638         (mode_compile): Remove MASKED_OPS arg, since it encouraged
46639         apps to have incorrect behavior.  Use simpler algorithm for head
46640         and tail.  Don't futz with umask; that's now the job of mode_adjust.
46641         Detect more invalid usages rather than having somewhat-random behavior.
46642         Don't insert an "a=" action, as that leads to incorrect behavior.
46643         (mode_compile, mode_create_from_ref): Return NULL on error instead
46644         of an enum, since now there's only one way to have an error.  All
46645         callers changed.
46646         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
46647         at the correct time.  Simplify calculation of "+u" and its ilk.
46648         Don't mishandle "+X".
46649         (mode_free): Remove "register" and localize decls.
46650         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
46651         (struct mode_change): Move to modechange.c; callers don't
46652         need to see this stuff.
46653         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
46654         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
46655         (mode_change, mode_adjust): Reflect the new signatures noted above.
46656         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
46657         that might redefine system include files.
46658         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
46659         (my_usleep): Use NULL rather than (void *) 0.
46660         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
46661         Use siginterrupt to specify that system calls should be interrupted.
46662         (rpl_nanosleep): Move initialization of suspended closer to call of
46663         my_usleep.
46664         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
46665         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
46666         (desirable_utmp_entry): New function.
46667         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
46668         using x2nrealloc, to simplify logic.
46669         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
46670         size calculation.  Do not assume utmp file is a regular file.
46671         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
46672         (READ_UTMP_CHECK_PIDS): New constant.
46673         * lib/save-cwd.c: Include unistd-safer.h.
46674         (save_cwd): Use fd_safer.
46675         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
46676         [!_LIBC] Include "stat-macros.h" instead.
46677         * lib/unistd-safer.h (fd_safer): New decl.
46678
46679 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
46680
46681         * modules/getloadavg (Depends-on): Add unistd-safer.
46682         * modules/getusershell (Depends-on): Add stdio-safer.
46683         * modules/lstat (Depends-on): Remove xalloc.
46684         * modules/mkstemp (Depends-on): Add stat-macros.
46685         * modules/modechange (Depends-on): Remove xstrtol.
46686         Add stat-macros, xalloc.
46687         * modules/save-cwd (Depends-on): Add unistd-safer.
46688         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
46689         * modules/unistd-safer (Files): Add lib/fd-safer.c
46690         (Makefile.am): Remove lib_SOURCES.
46691
46692         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
46693         Remove fcntl-safer; unistd-safer supersedes it.
46694
46695 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
46696
46697         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
46698         AC_HEADER_STAT.
46699         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
46700         (gl_PREREQ_CHOWN): Remove.
46701         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
46702         it.  Don't require AC_HEADER_STAT.
46703         (gl_PREREQ_LSTAT): Remove.
46704         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
46705         Don't require AC_HEADER_STAT.
46706         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
46707         (gl_PREREQ_RMDIR): Remove.
46708         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
46709         mention stat-macros.h or AC_HEADER_STAT, since we'll make
46710         the stat-macros module a prerequisite.
46711         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
46712         * m4/filemode.m4 (gl_FILEMODE): Likewise.
46713         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
46714         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
46715         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
46716         variable names.
46717         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
46718         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
46719         variable prefixes.
46720         * m4/fcntl-safer.m4: Remove.
46721         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
46722         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
46723         Invoke gl_PREREQ_FD_SAFER.
46724         (gl_PREREQ_FD_SAFER): New macro.
46725         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
46726         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
46727         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
46728         Remove duplicate call to AC_LIBOBJ(readutmp).
46729         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
46730
46731         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
46732         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
46733
46734 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
46735
46736         * MODULES.html.sh (Misc): Add byteswap.
46737
46738 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
46739
46740         * modules/getcwd (Depends-on): Add extensions.
46741         * modules/openat (Depends-on): Likewise.
46742
46743 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
46744
46745         * modules/byteswap: New file.
46746
46747 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
46748
46749         * m4/byteswap.m4: New file.
46750
46751 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
46752
46753         * lib/byteswap_.h: New file.
46754
46755 2005-04-25  Karl Berry  <karl@gnu.org>
46756
46757         * m4/gettext.m4: Update from GNU gettext 0.14.4.
46758
46759 2005-04-25  Albert Chin  <china@thewrittenword.com>
46760
46761         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
46762         Toolkit C bug.
46763
46764 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
46765
46766         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
46767         (func_ln_if_changed) Remove forcibly for no error message
46768         in case file does not exist.
46769
46770 2005-04-19  Simon Josefsson  <jas@extundo.com>
46771
46772         * gnulib-tool (Options): Make --symlink mean --symbolic.
46773
46774 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
46775
46776         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
46777
46778 2005-04-16  Simon Josefsson  <jas@extundo.com>
46779
46780         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
46781
46782 2005-04-15  Simon Josefsson  <jas@extundo.com>
46783
46784         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
46785
46786 2005-04-15  Simon Josefsson  <jas@extundo.com>
46787
46788         * gnulib-tool: Rename --symlink to --symbolic.
46789
46790 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
46791
46792         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
46793         symbolic links to files instead of copying/moving.  Add --aux-dir,
46794         specifying directory relative --dir where auxiliary build tools
46795         are placed.
46796
46797 2005-04-14  Bruno Haible  <bruno@clisp.org>
46798
46799         * modules/allocsa (License): Change to LGPL.
46800         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46801
46802 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
46803
46804         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
46805         that "UTC +1 second" continues to work.  Problem reported
46806         by Dmitry V. Levin.
46807         (relunit_snumber): New rule.
46808         (relunit): Use it.
46809
46810 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
46811
46812         * lib/getdate.y (universal_time_zone_table): New constant.
46813         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
46814         universal_time_zone_table.
46815         (lookup_zone): Prefer universal_time_zone_table to
46816         local_time_zone_table, so that "GMT" time stamps are allowed in
46817         London during the summer.  Problem reported by Ian Abbott.
46818
46819 2005-04-12  Jim Meyering  <jim@meyering.net>
46820
46821         * lib/human.c (humblock): Set *options even when returning due to
46822         xstrtoumax conversion failure.  Thanks to a used-uninitialized
46823         warning from gcc-4.
46824
46825 2005-04-09  Jim Meyering  <jim@meyering.net>
46826
46827         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
46828         -Wuninitialized: initialize tm0.tm_year.
46829
46830 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
46831
46832         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
46833         count, since there's no maximum.  All uses changed.
46834         Add member dsts_seen.
46835         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
46836         not being INT_MAX.
46837         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
46838         Use pc_rels_seen to decide whther a date is absolute.
46839
46840         * lib/getdate.y (number): Don't overwrite year.
46841         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
46842         check.
46843
46844 2005-04-02  Simon Josefsson  <jas@extundo.com>
46845
46846         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
46847         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
46848
46849 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
46850
46851         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
46852         where no absolute path name can be longer than PATH_MAX.
46853
46854 2005-03-27  Jim Meyering  <jim@meyering.net>
46855
46856         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
46857
46858 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
46859
46860         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
46861         "one's complement" -> "ones' complement" in comment, as per Knuth.
46862         "value of type" -> "type or expression" in comment.
46863         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
46864
46865 2005-03-26  Jim Meyering  <jim@meyering.net>
46866
46867         Comment nits.
46868         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
46869         Correct typos: s/or/of/.
46870
46871 2005-03-26  Jim Meyering  <jim@meyering.net>
46872
46873         * modules/check-include-files: Move to ../ and rename to...
46874         * check-module: ...this.
46875
46876 2005-03-25  Jim Meyering  <jim@meyering.net>
46877
46878         * modules/xvasprintf (Files): Add xalloc.h.
46879
46880 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
46881
46882         * modules/gettext (Files): config/config.rpath ->
46883         build-aux/config.rpath
46884         * modules/iconv (Files): Likewise.
46885         Problem reported by Oskar Liljeblad.
46886
46887 2005-03-23  Jim Meyering  <jim@meyering.net>
46888
46889         * modules/check-include-files: New script to check for
46890         missing dependencies, multiple includes, etc.
46891
46892         * modules/c-strtold (Depends-on): Add xalloc.
46893         * modules/c-strtod (Depends-on): Add xalloc.
46894         * modules/hash (Depends-on): Add xalloc.
46895         (Files): Remove lib/xalloc.h.
46896
46897         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
46898         * modules/userspec (Files): Add lib/inttostr.h.
46899
46900 2005-03-23  Jim Meyering  <jim@meyering.net>
46901
46902         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
46903
46904 2005-03-22  Jim Meyering  <jim@meyering.net>
46905
46906         * modules/stat-macros: New module.
46907         * modules/canonicalize, modules/euidaccess, modules/file-type,
46908         * modules/filemode, modules/lchown, modules/makepath,
46909         * modules/rmdir, modules/stat: Depend on new stat-macros module
46910         rather than listing lib/stat-macros.h manually.
46911         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
46912
46913 2005-03-22  Jim Meyering  <jim@meyering.net>
46914
46915         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
46916
46917 2005-03-22  Bruno Haible  <bruno@clisp.org>
46918
46919         * config/srclist.txt: Replace target directory 'config' with
46920         'build-aux'.
46921         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
46922         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
46923         ../build-aux/.
46924
46925 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
46926
46927         * modules/chdir-long (Depends-on): Add mempcpy.
46928
46929         * modules/acl, modules/backupfile, modules/c-strtod,
46930         modules/c-strtold, modules/canon-host, modules/canonicalize,
46931         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
46932         modules/exclude, modules/exitfail, modules/file-type,
46933         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
46934         modules/getdate, modules/getline, modules/getpagesize,
46935         modules/getpass, modules/getugroups, modules/group-member,
46936         modules/hard-locale, modules/hash, modules/human, modules/idcache,
46937         modules/inttostr, modules/long-options, modules/makepath,
46938         modules/md5, modules/memcasecmp, modules/memcoll,
46939         modules/modechange, modules/mountlist, modules/path-concat,
46940         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
46941         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
46942         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
46943         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
46944         modules/strftime, modules/strndup, modules/strverscmp,
46945         modules/timespec, modules/unlocked-io, modules/userspec,
46946         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
46947         modules/yesno:
46948         Remove lib_SOURCES line from Makefile.am section, as this is now
46949         done automatically by the corresponding Autoconf macro.
46950
46951 2005-03-21  Jim Meyering  <jim@meyering.net>
46952
46953         Changes imported from coreutils.
46954
46955         * lib/cycle-check.c: Don't include xalloc.h.
46956
46957         * lib/path-concat.c: Don't include assert.h.
46958         (path_concat): Remove assertion that would have triggered
46959         for ABASE starting with more than one slash.
46960         Reported by Andreas Schwab.
46961
46962         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
46963         properly when ABASE is an absolute file name.
46964         Correct the description of this function.
46965         Include <assert.h>.
46966         Add an assertion and a test driver.
46967         This fixes a bug introduced on 2004-07-02.
46968         Andreas Schwab reported the resulting failure of cp --parents:
46969         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
46970
46971 2005-03-21  Jim Meyering  <jim@meyering.net>
46972
46973         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
46974         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
46975
46976 2005-03-21  Jim Meyering  <jim@meyering.net>
46977         and  Paul Eggert  <eggert@cs.ucla.edu>
46978
46979         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
46980         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
46981         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
46982         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
46983         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
46984         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
46985         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
46986         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
46987         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
46988         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
46989         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
46990         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
46991         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
46992         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
46993         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
46994         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
46995         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
46996         for these modules.
46997
46998 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
46999
47000         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
47001         (which shouldn't happen), generate nothing instead of returning 0
47002         immediately, so that nstrftime (NULL, ...) doesn't return 0.
47003
47004 2005-03-16  Bruno Haible  <bruno@clisp.org>
47005
47006         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
47007         HAVE_LONGLONG_64BIT.
47008
47009 2005-03-16  Bruno Haible  <bruno@clisp.org>
47010
47011         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
47012         HAVE_LONGLONG_64BIT.
47013
47014 2005-03-16  Bruno Haible  <bruno@clisp.org>
47015
47016         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
47017         HAVE_LONGLONG_64BIT.
47018
47019 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
47020
47021         * lib/strftime.c (my_strftime): Prepend space to format so that we can
47022         reliably distinguish strftime failure from empty output on POSIX
47023         hosts.
47024
47025 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
47026
47027         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
47028         (iconv_string): Don't guess a size-zero buffer, as that might cause
47029         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
47030         result would be 'too large', where 'too large' is (heuristically)
47031         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
47032         overflow concerns.  This will prevent some unwanted malloc failures
47033         when the inputs are very large.
47034
47035 2005-03-15  Karl Berry  <karl@gnu.org>
47036
47037         * config/srclist.txt (config.rpath): from gettext.
47038         * config/config.rpath: update.
47039
47040 2005-03-15  Bruno Haible  <bruno@clisp.org>
47041
47042         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
47043         to 'negate'.
47044
47045         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
47046         variable.
47047
47048         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
47049         results.
47050
47051 2005-03-14  Simon Josefsson  <jas@extundo.com>
47052
47053         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
47054         <fx@gnu.org>.
47055
47056 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
47057
47058         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
47059         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
47060         intprops.h.
47061         * lib/strtol.c: Likewise.
47062
47063 2005-03-14  Jim Meyering  <jim@meyering.net>
47064
47065         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
47066         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
47067         to be nonzero so that we (and caller) can detect the difference
47068         between a valid zero-length expansion and an error return, even
47069         when the underlying strftime fails before writing anything into
47070         that location.
47071
47072 2005-03-14  Bruno Haible  <bruno@clisp.org>
47073
47074         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
47075         Update from GNU gettext 0.14.3.
47076
47077 2005-03-10  Jim Meyering  <jim@meyering.net>
47078
47079         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
47080
47081 2005-03-10  Jim Meyering  <jim@meyering.net>
47082
47083         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
47084         so that this module works on systems without fchdir.
47085
47086 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
47087
47088         Factor int-properties macros into a single file, except for
47089         glibc-related files.
47090         * lib/intprops.h: New file.
47091         * lib/getloadavg.c: Include it instead of limits.h.
47092         (INT_STRLEN_BOUND): Remove.
47093         * lib/human.c: Include intprops.h.
47094         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
47095         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
47096         302/1000.
47097         * lib/inttostr.h: Include intprops.h instead of limits.h.
47098         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
47099         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
47100         for consistency with intprops.h.
47101         (time_t_is_integer, twos_complement_arithmetic): Use them.
47102         * lib/sig2str.h: Include <signal.h>, intprops.h.
47103         (INT_STRLEN_BOUND): Remove.
47104         * lib/strftime.c (TYPE_SIGNED): Remove.
47105         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
47106         * lib/strtol.c: Adjust comments to match intprops.h.
47107         * lib/userspec.c: Include intprops.h.
47108         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
47109         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
47110         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
47111         instead of rolling our own expressions.
47112         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
47113
47114         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
47115         instead of int.
47116         (my_strftime): Do not mishandle years close to INT_MAX, by doing
47117         the right thing even if adding 1900 would overflow.  Similarly
47118         for tm_mon + 1 and tm_yday + 1.
47119         Make %Y always equivalent to %C%y, and similarly for %G and %g.
47120         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
47121         (DO_SIGNED_NUMBER): New macro.
47122         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
47123
47124 2005-03-07  Bruno Haible  <bruno@clisp.org>
47125
47126         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
47127
47128 2005-03-07  Bruno Haible  <bruno@clisp.org>
47129
47130         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
47131
47132 2005-03-04  Derek R. Price  <derek@ximbiot.com>
47133
47134         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
47135         (func_import): Only replace files via --import when they have actually
47136         changed.
47137
47138 2005-03-03  Derek R. Price  <derek@ximbiot.com>
47139
47140         * m4/mmap-anon.m4: New file.
47141         * m4/pagealign_alloc.m4: New file.
47142
47143 2005-03-03  Derek R. Price  <derek@ximbiot.com>
47144             Bruno Haible  <bruno@clisp.org>
47145
47146         * modules/pagealign_alloc: New file.
47147         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
47148
47149 2005-03-03  Derek R. Price  <derek@ximbiot.com>
47150             Bruno Haible  <bruno@clisp.org>
47151
47152         * lib/pagealign_alloc.h: New file.
47153         * lib/pagealign_alloc.c: New file.
47154
47155 2005-03-03  Bruno Haible  <bruno@clisp.org>
47156
47157         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
47158         Use an all-permissive copyright notice, recommended by RMS.
47159
47160 2005-03-02  Bruno Haible  <bruno@clisp.org>
47161
47162         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
47163         of AIX, the replacement has to be done only after <string.h> is
47164         included, therefore not in config.h. stpncpy.h does the replacement,
47165         and stpncpy.c uses it.
47166
47167 2005-03-02  Bruno Haible  <bruno@clisp.org>
47168
47169         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
47170         stpncpy.c uses it.
47171
47172 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47173
47174         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
47175         The workaround isn't strictly needed for POSIX conformance, and
47176         it's too much of a pain to configure and maintain.  We'll ask
47177         people to fix their kernels instead.
47178         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
47179         (NANOSLEEP_BUG_WORKAROUND): Remove.
47180         (xnanosleep): Remove the workaround.
47181
47182 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47183
47184         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
47185         Reported by Derek Price.
47186         (Include): Add "timespec.h".
47187
47188         * modules/xnanosleep (Depends-on): Remove gethrxtime.
47189
47190 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47191
47192         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
47193         to detect nanosleep bug.
47194
47195 2005-03-01  Bruno Haible  <bruno@clisp.org>
47196
47197         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
47198
47199 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
47200
47201         * modules/gethrxtime: New file.
47202         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
47203         (Depends-on): Add gethrxtime.
47204         (configure.ac): Add gl_XNANOSLEEP.
47205         (Makefile.am): Remove lib_SOURCES line.
47206
47207 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
47208
47209         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
47210         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
47211
47212 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
47213
47214         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
47215         * lib/timespec.h (gettime): Return void, since it always
47216         succeeds now.  All uses changed.
47217         * lib/gettime.c (gettime) Likewise.
47218         [HAVE_NANOTIME]: Prefer nanotime.
47219         Assume gettimeofday succeeds, as POSIX requires.
47220         Assime time () succeeds, since other code already does.
47221         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
47222         (timespec_subtract): Remove.
47223         (NANOSLEEP_BUG_WORKAROUND): New constant.
47224         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
47225         things considerably.  Use it only on GNU/Linux hosts, since the
47226         workaround shouldn't be needed elsewhere.
47227
47228 2005-02-24  Bruno Haible  <bruno@clisp.org>
47229
47230         * modules/gettext (Files): Add m4/glibc2.m4.
47231
47232 2005-02-24  Bruno Haible  <bruno@clisp.org>
47233
47234         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
47235         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
47236         * m4/progtest.m4:
47237         Update from GNU gettext 0.14.2.
47238         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
47239
47240 2005-02-24  Bruno Haible  <bruno@clisp.org>
47241
47242         * lib/localcharset.c: Update from GNU gettext 0.14.2.
47243         * lib/config.charset: Update from GNU gettext 0.14.2.
47244
47245 2005-02-24  Bruno Haible  <bruno@clisp.org>
47246
47247         * lib/gettext.h: Update from GNU gettext 0.14.2.
47248
47249 2005-02-23  Simon Josefsson  <jas@extundo.com>
47250
47251         * m4/iconvme.m4: New file.
47252
47253 2005-02-23  Jim Meyering  <jim@meyering.net>
47254
47255         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
47256         change.
47257         Thanks to Bruno Haible for catching it.
47258
47259 2005-02-22  Simon Josefsson  <jas@extundo.com>
47260
47261         * modules/iconvme: New file.
47262
47263         * MODULES.html.sh: Add iconvme.
47264
47265 2005-02-22  Simon Josefsson  <jas@extundo.com>
47266
47267         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
47268
47269 2005-02-22  Simon Josefsson  <jas@extundo.com>
47270
47271         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
47272
47273 2005-02-22  Jim Meyering  <jim@meyering.net>
47274
47275         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
47276         s/ifndef/ifdef/.
47277
47278 2005-02-20  Neil Conway  <neilc@samurai.com>
47279
47280         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
47281         returned by OSX/Darwin if the specified buffer is not large
47282         enough for the hostname.
47283
47284 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
47285
47286         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
47287         pass it to _help, otherwise the latter coredumps trying to
47288         dereference state.root_argp.
47289
47290 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
47291
47292         * modules/chdir-long (Depends-on): Add memrchr.
47293         * modules/memrchr (Files): Add lib/memrchr.h.
47294         (Include): "memrchr.h".
47295
47296 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
47297
47298         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
47299
47300 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
47301
47302         * lib/memrchr.h: New file.
47303         * lib/chdir-long.c: Include it.
47304         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
47305         Don't bother including stddef.h.
47306
47307 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
47308
47309         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
47310         inclusion.
47311         Include <sys/types.h>, for dev_t.
47312         (ME_DUMMY, ME_REMOTE): Move from here....
47313         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
47314         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
47315         Dmitry V. Levin.
47316         Include mountlist.h first, to test the interface.
47317
47318 2005-01-29  Bruno Haible  <bruno@clisp.org>
47319
47320         * lib/progname.c (program_name): Initialize.
47321         Needed when linking statically on MacOS X.
47322
47323 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
47324
47325         Sync from coreutils.
47326         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
47327         (Depends-on): Add c-strtod.
47328         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
47329
47330 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
47331
47332         Sync from coreutils.
47333         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
47334
47335         Remove files that are specific to coreutils.
47336         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
47337
47338 2005-01-28  Bruno Haible  <bruno@clisp.org>
47339
47340         * modules/javacomp: New file.
47341         * MODULES.html.sh (Java): Add javacomp.
47342
47343 2005-01-28  Bruno Haible  <bruno@clisp.org>
47344
47345         * m4/javacomp.m4: New file, from GNU gettext.
47346
47347 2005-01-28  Bruno Haible  <bruno@clisp.org>
47348
47349         * lib/javacomp.sh.in: New file, from GNU gettext.
47350         * lib/javacomp.h: New file, from GNU gettext.
47351         * lib/javacomp.c: New file, from GNU gettext.
47352
47353 2005-01-26  Simon Josefsson  <jas@extundo.com>
47354
47355         * lib/gai_strerror.c: Use GPL in header.
47356
47357 2005-01-26  Bruno Haible  <bruno@clisp.org>
47358
47359         * modules/javaexec: New file.
47360         * MODULES.html.sh (Java): Add javaexec.
47361
47362 2005-01-26  Bruno Haible  <bruno@clisp.org>
47363
47364         * m4/javaexec.m4: New file, from GNU gettext.
47365
47366 2005-01-26  Bruno Haible  <bruno@clisp.org>
47367
47368         * lib/javaexec.sh.in: New file, from GNU gettext.
47369         * lib/javaexec.h: New file, from GNU gettext.
47370         * lib/javaexec.c: New file, from GNU gettext.
47371
47372 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
47373
47374         * modules/lchown (Depends-on): Remove lchown.h
47375
47376 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
47377
47378         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
47379         must be defined if the header file was not found, in order
47380         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
47381
47382 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
47383
47384         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
47385         initializers for struct pentry_state.
47386         (__argp_error): Check return value of __asprintf
47387         (__argp_failure): Translate error message
47388
47389         * lib/argp-parse.c: Removed braces around the expansion of N_()
47390
47391 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47392
47393         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
47394         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
47395         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
47396         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
47397         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
47398         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
47399         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
47400         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
47401         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
47402         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
47403         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
47404         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
47405         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
47406         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
47407         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
47408         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
47409         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
47410         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
47411         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
47412         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
47413         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
47414         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
47415         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
47416         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
47417         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
47418         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
47419         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
47420         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
47421         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
47422         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
47423         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
47424         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
47425         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
47426         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
47427         xstrtol.m4, xstrtoumax.m4, yesno.m4:
47428         Use an all-permissive copyright notice, recommended by RMS.
47429
47430 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
47431
47432         * modules/chdir-long (Depends-on): Remove mempcpy.
47433
47434 2005-01-21  Jim Meyering  <jim@meyering.net>
47435
47436         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
47437         same value as for Solaris 9.
47438
47439         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
47440         component length.  This included changing the parameter to be
47441         of type `char *' rather than `char const *'.
47442         * lib/chdir-long.h (chdir_long): Update prototype.
47443
47444         * lib/openat.c (fdopendir, fstatat): New functions.
47445         * lib/openat.h: Include headers required for use of DIR and struct
47446         stat.
47447         [AT_SYMLINK_NOFOLLOW]: Define.
47448         (fdopendir, fstatat): Add prototypes.
47449
47450 2005-01-21  Bruno Haible  <bruno@clisp.org>
47451
47452         * modules/classpath: New file.
47453         * MODULES.html.sh (Java): Add classpath.
47454
47455 2005-01-21  Bruno Haible  <bruno@clisp.org>
47456
47457         * lib/classpath.h: New file, from GNU gettext.
47458         * lib/classpath.c: New file, from GNU gettext.
47459
47460 2005-01-20  Simon Josefsson  <jas@extundo.com>
47461
47462         * modules/version-etc-fsf: New file.
47463
47464 2005-01-20  Simon Josefsson  <jas@extundo.com>
47465
47466         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
47467         * lib/version-etc.c: Remove version_etc_copyright.
47468         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
47469         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
47470
47471 2005-01-20  Simon Josefsson  <jas@extundo.com>
47472
47473         * lib/base64.h (isbase64): Add.
47474
47475         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
47476         using a unsigned prototype, don't inline.
47477         (base64_decode): Use it.
47478
47479 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
47480
47481         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
47482         it.
47483
47484 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
47485
47486         * lib/save-cwd.c (save_cwd): Remove code to support the case
47487         where fchdir is missing or flaky.
47488
47489 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
47490
47491         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
47492
47493 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
47494
47495         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
47496         AC_LIBSOURCES now does this.
47497         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
47498         with new ullong_max module.
47499
47500 2005-01-19  Bruno Haible  <bruno@clisp.org>
47501
47502         * modules/sh-quote: New file.
47503         * MODULES.html.sh (Executing programs): Add sh-quote.
47504
47505 2005-01-19  Bruno Haible  <bruno@clisp.org>
47506
47507         * lib/sh-quote.h: New file, from GNU gettext.
47508         * lib/sh-quote.c: New file, from GNU gettext.
47509
47510 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
47511
47512         Merge from coreutils.
47513         * m4/ullong_max.m4: New file.
47514         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
47515         (gl_MACROS): Assume localeconv exists.
47516
47517 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
47518
47519         Merge changes from coreutils, as described below in several
47520         changelogs dated today.
47521
47522         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
47523         (O_DIRECTORY): Remove; not needed here, since "." must be
47524         a directory.  All uses removed.
47525         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
47526         universal on Suns, and we also need to test for IRIX.
47527         Revamp code to use 'if' rather than '#if'.
47528         Avoid unnecessary comparison of cwd->desc to 0.
47529
47530         * lib/utimens.c (futimens): Robustify the previous patch, by checking
47531         for known valid error numbers rather than observed invalid ones.
47532
47533 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
47534
47535         * modules/ullong_max: New file.
47536
47537         * modules/chdir-long, modules/openat: New files.
47538         * modules/save-cwd (Depends-on): Depend on chdir-long.
47539         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
47540
47541 2005-01-18  Jim Meyering  <jim@meyering.net>
47542
47543         Merge from coreutils.
47544         * m4/chdir-long.m4, m4/openat.m4: New files.
47545         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
47546         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
47547         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
47548         is sane and DOES follow symlinks.  Besides, testing 20 different
47549         systems found no broken chown implementations.
47550         Prompted by a change in rsync's copy of this macro.
47551         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
47552
47553         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
47554
47555         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
47556         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
47557         NULL-means-set-to-current-time semantics.
47558         Remove temporary file immediately, rather than waiting
47559         for configure's at-exit trap code to do it.
47560
47561 2005-01-18  Jim Meyering  <jim@meyering.net>
47562
47563         * lib/version-etc.c (version_etc_copyright): Update copyright date.
47564
47565         * lib/utimens.c (futimens): Account for the fact that futimes
47566         can also fail with errno == ENOSYS or errno == ENOENT.
47567         Patch from Dmitry V. Levin.
47568
47569         Change the name of the robust chdir function from chdir to chdir_long.
47570         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
47571         (restore_cwd): Use chdir_long, not chdir.
47572         * lib/chdir-long.c: Renamed from chdir.c.
47573         * lib/chdir-long.h: Renamed from chdir.h.
47574         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
47575         Hurd.
47576
47577 2005-01-18  Bruno Haible  <bruno@clisp.org>
47578
47579         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
47580         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
47581         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
47582         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
47583         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
47584         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
47585         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
47586         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
47587         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
47588         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
47589         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
47590         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
47591         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
47592         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
47593         Use an all-permissive copyright notice, recommended by RMS.
47594
47595 2005-01-18  Bob Proulx  <bob@proulx.com>
47596
47597         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
47598         simplify offsetof() macro construct to avoid compile failure with
47599         native HP-UX 11.0 ANSI C compiler.
47600
47601 2005-01-17  Bruno Haible  <bruno@clisp.org>
47602
47603         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
47604         redundant because stpncpy.m4 takes care of it.
47605
47606 2005-01-17  Bruno Haible  <bruno@clisp.org>
47607
47608         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
47609
47610 2005-01-17  Bruno Haible  <bruno@clisp.org>
47611
47612         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
47613         used.
47614
47615 2005-01-17  Bruno Haible  <bruno@clisp.org>
47616
47617         * lib/fwriteerror.h (fwriteerror): Change specification to include
47618         fclose.
47619         * lib/fwriteerror.c: Include <stdbool.h>.
47620         (fwriteerror): At the end, close the file stream. Record whether
47621         stdout was already closed.
47622
47623 2005-01-17  Bruno Haible  <bruno@clisp.org>
47624
47625         * lib/execute.c (environ): Declare if needed.
47626         * lib/pipe.c (environ): Likewise.
47627         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
47628
47629 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
47630
47631         * modules/argp: Depend on vsnprintf
47632
47633 2005-01-10  Jim Meyering  <jim@meyering.net>
47634
47635         * modules/closeout (Depends-on): Add atexit.
47636
47637 2005-01-06  Bruno Haible  <bruno@clisp.org>
47638
47639         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
47640
47641 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47642
47643         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
47644         definitions to be after all include files, to avoid collisions.
47645         Problem reported by Bob Proulx.
47646
47647 2005-01-04  Jim Meyering  <jim@meyering.net>
47648
47649         Changes imported from coreutils.
47650         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
47651         as the mkstemp template, use a temporary directory and an
47652         8.3-friendly template to avoid trouble on systems like DJGPP.
47653         Reported by Juan M. Guerrero via Stepan Kasal.
47654         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
47655         close. Remove the temporary directory right away, rather than waiting
47656         for configure's at-exit trap code to do it.
47657         Suggestion from Stepan Kasal.
47658
47659 2005-01-01  Simon Josefsson  <jas@extundo.com>
47660
47661         * gnulib-tool: Print #include directives when --import'ing.
47662
47663 2004-12-28  Simon Josefsson  <jas@extundo.com>
47664
47665         * tests/test-base64.c: Include required header files.  Remove
47666         unused variables.
47667
47668 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
47669
47670         * modules/error (Depends-on): Remove gettext.
47671
47672 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
47673
47674         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
47675         not needed.  This removes a dependency on the gettext module.
47676         [defined _LIBC]: Do not include <libintl.h>; not needed.
47677
47678 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
47679
47680         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
47681         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
47682
47683 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
47684
47685         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
47686         HAVE_DECL_STRTOLD.
47687
47688 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
47689
47690         * modules/getdate (Depends-on): Remove alloca-opt.
47691
47692 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
47693
47694         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
47695
47696 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
47697
47698         * lib/argp-parse.c: Include <stddef.h>.
47699         (alignof, alignto): New macros.
47700         (parser_init): Don't assume that void * is aligned sufficiently
47701         for struct option.
47702
47703         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
47704         need to extend the stack.
47705         (YYINITDEPTH): New macro, so that the initial stack isn't overly
47706         large.
47707
47708 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
47709
47710         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
47711
47712 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
47713
47714         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
47715         (2004-10-24) change.  Apparently this was a false alarm.
47716
47717         * modules/getdate: Depend on alloca-opt, not alloca.
47718
47719 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
47720
47721         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
47722         Remove now-obsolete comment about AIX.
47723         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
47724         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
47725         (YYMAXDEPTH): New macro.
47726
47727 2004-12-18  Simon Josefsson  <jas@extundo.com>
47728
47729         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
47730
47731 2004-12-18  Bruno Haible  <bruno@clisp.org>
47732
47733         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
47734
47735 2004-12-18  Bruno Haible  <bruno@clisp.org>
47736
47737         * lib/fatal-signal.c (fatal_signals): Make non-const.
47738         (init_fatal_signals): New function.
47739         (uninstall_handlers, install_handlers): Ignore signals that were set to
47740         SIG_IGN.
47741         (at_fatal_signal): Call init_fatal_signals.
47742         (init_fatal_signal_set): Likewise. Ignore signals that were set to
47743         SIG_IGN.
47744         Reported by Paul Eggert.
47745
47746 2004-12-18  Bruno Haible  <bruno@clisp.org>
47747
47748         * doc/alloca.texi: New file.
47749         * doc/alloca-opt.texi: New file.
47750
47751 2004-12-17  Jim Meyering  <jim@meyering.net>
47752
47753         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
47754         Otherwise, install-sh could exit with improper exit status when
47755         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
47756
47757 2004-12-16  Simon Josefsson  <jas@extundo.com>
47758
47759         * tests/test-base64.c: Add license.
47760
47761 2004-12-15  Stepan Kasal  <address@hidden>
47762
47763         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
47764
47765 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
47766
47767         * modules/getcwd (Files): Add m4/d-ino.m4.
47768         Suggested by Mark D. Baushke.
47769
47770 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
47771
47772         * lib/getdate.y (textint): New member "negative".
47773         (time_zone_hhmm): New function.
47774         Expect 14 shift-reduce conflicts, not 13.
47775         (o_colon_minutes): New rule.
47776         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
47777         (yylex): Set the "negative" member of signed numbers.
47778
47779 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
47780
47781         * doc/getdate.texi (Time of day items, Time zone items):
47782         Describe new formats +00:00, UTC+00:00.
47783
47784 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
47785
47786         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
47787         spurious "-l"s.  Problem reported by Stepan Kasal.
47788
47789 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
47790
47791         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
47792         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
47793
47794 2004-12-04  Simon Josefsson  <jas@extundo.com>
47795
47796         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
47797         Vandoorselaere <yoann@prelude-ids.org>.
47798
47799 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
47800
47801         Changes imported from coreutils.
47802         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
47803         exist.
47804         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
47805
47806 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
47807
47808         Changes imported from coreutils.
47809         * lib/hard-locale.c: Assume <locale.h> exists.
47810         Include "strdup.h".
47811         (GLIBC_VERSION): New macro.
47812         (hard_locale): Assume setlocale exists.
47813         Rewrite to avoid #ifdef.
47814         Use strdup rather than malloc + strcpy.
47815         * lib/human.c: Assume <locale.h> exists.
47816         (human_readable): Assume localeconv exists.
47817
47818 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
47819
47820         * modules/hard-locale (Depends-on): Add strdup.
47821
47822 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
47823
47824         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
47825         convert T2, not T.  (Imported from libc.)
47826
47827 2004-11-30  Simon Josefsson  <jas@extundo.com>
47828
47829         * modules/restrict (License): Change to LGPL.
47830
47831 2004-11-30  Simon Josefsson  <jas@extundo.com>
47832
47833         * m4/restrict.m4: Add copyright and copying conditions.
47834
47835 2004-11-30  Simon Josefsson  <jas@extundo.com>
47836
47837         * m4/base64.m4: New file.
47838
47839 2004-11-30  Simon Josefsson  <jas@extundo.com>
47840
47841         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
47842         base64.
47843
47844         * tests/test-base64.c: New file.
47845
47846         * modules/base64: New file.
47847
47848 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
47849
47850         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
47851         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
47852
47853         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
47854
47855 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
47856
47857         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
47858         (__getcwd.c): Don't restore errno; glibc doesn't.
47859         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
47860         first, falling back to our code only if its results look suspicious.
47861         Ensure that the resulting buffer is only as large as necessary.
47862
47863         * lib/readutmp.c: Include readutmp.h first.
47864         Include <errno.h>, since readutmp.h no longer does that.
47865         * lib/readutmp.h: Don't include <errno.h>,
47866         <sys/param.h>, <time.h>; not needed to establish interface.
47867         (errno): Remove decl.
47868         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
47869         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
47870         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
47871
47872 2004-11-28  Simon Josefsson  <jas@extundo.com>
47873
47874         * lib/base64.h, base64.c: New file.
47875
47876 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
47877
47878         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
47879
47880 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
47881
47882         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
47883         (Depends-on): Remove pathmax, same.  Add mempcpy.
47884         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
47885         (Makefile.am): Append getcwd.h to lib_SOURCES.
47886         (Include): Add getcwd.h.
47887         (Maintainer): Change from Jim Meyering to "all, glibc",
47888         since getdate now uses intended-for-glibc code.
47889         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
47890         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
47891
47892 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
47893
47894         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
47895         HP's ANSI C compiler.
47896         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
47897         Declaring int functions causes warnings on some modern systems and
47898         shouldn't be needed to compile on ancient ones.
47899         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
47900         defined.
47901
47902         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
47903         with the following changes.
47904         (__set_errno): Parenthesize properly.
47905         Include <stdbool.h>.
47906         (MIN, MAX, MATCHING_INO): New macros.
47907         (__getcwd): Define with prototype, not K&R form.
47908         Use heuristics to allocate default buffer on stack if possible.
47909         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
47910         behavior, and to avoid the PATH_MAX limit when computing
47911         ../../../../...
47912         Use MATCHING_INO to compare inode number to file.
47913         Check for arithmetic overflow in size calculations.
47914         Fix bug in reallocation of dot array that caused getcwd to fail
47915         on directories nested deeper than 75.
47916         Be more careful about saving errno on error.
47917         Do not use realloc; use only free+malloc, as this is a bit
47918         more flexible and avoids a needless copy operation.
47919         Do not inspect st_dev and st_ino for symbolic links; POSIX
47920         doesn't specify the latter.
47921         Check for closedir errors.
47922         Avoid needless casts.
47923         Use "#ifdef weak_alias" around weak_alias, to be like other
47924         glibc code.
47925         The following changes to getcwd.c have effect only when used in
47926         gnulib; they have no effect inside glibc proper.
47927         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
47928         as alloca isn't used.
47929         (alloca, __alloca): Likewise.
47930         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
47931         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
47932         unconditionally, as gnulib assumes C89 or better.
47933         Do not include <sys/param.h>.
47934         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
47935         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
47936         better.
47937         (NULL) [!defined NULL]: Remove; we assume C89 or better.
47938         Include <dirent.h> in a way that is compatible with modern Autoconf.
47939         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
47940         New macros, if not already defined.
47941         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
47942         Use "_LIBC", not "defined _LIBC", for consistency.
47943         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
47944         a mempcpy module.
47945         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
47946         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
47947         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
47948         credit only to Jim Meyering and adjust the copyright dates.
47949         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
47950         <stdlib.h>, <unistd.h>, "pathmax.h".
47951         Instead, include "xgetcwd.h" (first) and "getcwd.h".
47952         (INITIAL_BUFFER_SIZE): Remove.
47953         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
47954
47955 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
47956
47957         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
47958         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
47959         Use the _ONCE methods, for efficiency.
47960         Check for fcntl.h.  In test program, include <errno.h>
47961         and <fcntl.h> if available.  Remove old K&R cruft from
47962         test program.  Check for common errors in GNU/Linux,
47963         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
47964         don't do AC_LIBOBJ, as that's getcwd.m4's job.
47965         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
47966         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
47967         name accordingly.
47968         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
47969         accommodate new getcwd.c.
47970         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
47971         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
47972         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
47973         that's all we need now.
47974
47975 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
47976
47977         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
47978         argp-parse.c depends on getopt internals, that means we should
47979         always use our getopt, to be on the safe side.
47980         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
47981         order not to spoil the result of an eventual previous invocation
47982         of gl_GETOPT_SUBSTITUTE.
47983
47984 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
47985
47986         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
47987         redefinition warnings. To avoid them, include the defines
47988         in `#if !defined __need_getopt ... #endif'. The only place
47989         where __getopt_argv_const is used is in definitions
47990         of getopt_long and getopt_long_only below, which are as well
47991         protected by `#ifndef __need_getopt'.
47992         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
47993         __need_getopt after including <stdio.h> and <unistd.h> These
47994         headers might have defined it.
47995
47996 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
47997
47998         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
47999
48000 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
48001
48002         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
48003         (futimens): New function, which uses futimes if available.
48004         (futimens, utimens): Support timespec==NULL, with same semantics
48005         as utime and utimens.
48006         * lib/utimens.h (futimens): New decl.
48007
48008 2004-11-23  Jim Meyering  <jim@meyering.net>
48009
48010         * lib/getopt_.h: Remove trailing blanks.
48011
48012 2004-11-23  Jim Meyering  <jim@meyering.net>
48013
48014         * lib/__fpending.c: Add comment.
48015
48016 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
48017
48018         * modules/canonicalize (Depends-on): Add xreadlink.
48019         Problem reported by James Youngman.
48020
48021 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
48022
48023         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
48024         New macros.
48025         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
48026         optopt): Use them instead of invoking ## directly; otherwise, the
48027         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
48028
48029 2004-11-19  Bruno Haible  <bruno@clisp.org>
48030
48031         * lib/strtok_r.c: Move comments from here...
48032         * lib/strtok_r.h: ... to here.
48033
48034 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
48035
48036         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
48037         implementations that mishandle size_t overflow.
48038
48039 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
48040
48041         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
48042         might fail.  Problem reported by Yoann Vandoorselaere.
48043         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
48044         implementations that mishandle size_t overflow.
48045
48046 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
48047
48048         * modules/canon-host (Depends-on): Add strdup.
48049
48050 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
48051
48052         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
48053
48054 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
48055
48056         * lib/canon-host.c: Include "strdup.h".
48057         (canon_host): Use getaddrinfo if available, so that IPv6 works.
48058         Use strdup instead of malloc/strcpy to duplicate strings.
48059
48060         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
48061         (human_space_before_unit): New constant.
48062         * lib/human.c (human_readable): Support it.
48063
48064         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
48065         (xgetcwd): Set errno correctly when failing.
48066         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
48067         the failure is actually due to a PATH_MAX problem.
48068
48069         Further getopt changes to make it more likely that glibc will
48070         buy the changes back.
48071         * lib/getopt.c (POSIXLY_CORRECT): New constant.
48072         (getopt): Use it, so to preserve glibc semantic
48073         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
48074         when compiling for libc.
48075         * lib/getopt_.h (__getopt_argv_const): Bring it back.
48076         (getopt_long, getopt_long_only): Use it.
48077
48078         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
48079         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
48080         (getopt): Argv is now char * const *, as per standard.
48081         (_getopt_internal_r, _getopt_internal): Argv is now char **,
48082         not char *__getopt_argv_const *.
48083         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
48084         _getopt_long_only_r): Likewise.
48085         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
48086         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
48087         _getopt_long_r, _getopt_long_only_r): Likewise.
48088         * lib/getopt_.h (__getopt_argv_const): Remove.
48089         (getopt): Argv is now char * const *, as per standard.
48090
48091         * lib/getdate.y (tORDINAL): New token.
48092         (day, relunit): Allow it for relative times.
48093         (relative_time_table): Use tORDINAL for ordinals.
48094
48095 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
48096
48097         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
48098         Document that "second" isn't allowed as an ordinal number.
48099
48100 2004-11-16  Jim Meyering  <jim@meyering.net>
48101
48102         * modules/closeout (Depends-on): Add fpending.
48103
48104 2004-11-15  Jim Meyering  <jim@meyering.net>
48105
48106         * lib/closeout.c: Include "__fpending.h" once again.
48107         Include <stdbool.h>.
48108         (close_stdout): Don't fail just because stdout was closed initially,
48109         since some programs don't write to stdout in the normal course of
48110         operation (other than --version and --help), and we don't want this
48111         function to make e.g. `touch file >&-' fail.
48112         But do fail if it was closed and someone has tried to write to it.
48113         E.g., `printf foo >&-' must fail.
48114
48115 2004-11-13  Jim Meyering  <jim@meyering.net>
48116
48117         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
48118
48119 2004-11-12  Simon Josefsson  <jas@extundo.com>
48120
48121         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
48122         small doc fix is still pending.
48123
48124 2004-11-11  Simon Josefsson  <jas@extundo.com>
48125
48126         * modules/strtok_r: New file.
48127
48128         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48129         strtok_r.
48130
48131 2004-11-11  Simon Josefsson  <jas@extundo.com>
48132
48133         * m4/strtok_r.m4: New file.
48134
48135         * m4/getopt.m4: Replace opterr.
48136
48137 2004-11-11  Simon Josefsson  <jas@extundo.com>
48138
48139         * lib/strtok_r.h, strtok_r.c: New file.
48140
48141 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
48142
48143         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
48144         of replacing opterr, getopt, etc.  This should handle the
48145         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
48146
48147 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
48148
48149         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
48150         we can stop lying to compilers about the constness of argv when we
48151         are compiled outside glibc.
48152         (getopt, getopt_long, getopt_long_only): Use it.
48153         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
48154         _getopt_internal, getopt): Likewise.
48155         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
48156         _getopt_long_only_r): Likewise.
48157         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
48158         _getopt_long_r, _getopt_long_only_r): Likewise.
48159
48160         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
48161         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
48162         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
48163         the other external symbols.
48164         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
48165         declaration, since the above renaming now works around collisions.
48166
48167 2004-11-11  Jim Meyering  <jim@meyering.net>
48168
48169         * lib/linebreak.c: Remove trailing blanks.
48170         * lib/alloca_.h: Likewise.
48171         * lib/acosl.c: Likewise.
48172         * lib/euidaccess.c: Likewise.
48173         * lib/allocsa.h: Likewise.
48174
48175 2004-11-10  Simon Josefsson  <jas@extundo.com>
48176
48177         * m4/getaddrinfo.m4: New file.
48178
48179 2004-11-10  Simon Josefsson  <jas@extundo.com>
48180
48181         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
48182
48183 2004-11-10  Simon Josefsson  <jas@extundo.com>
48184
48185         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48186         getaddrinfo.
48187
48188         * modules/getaddrinfo: New file.
48189
48190 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48191
48192         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
48193
48194 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48195
48196         * lib/mktime.c (SHR): New macro, which is a portable
48197         substitute for >> that should work even on Crays.
48198         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
48199         Problem reported by Mark D. Baushke in
48200         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
48201         * lib/getdate.y (SHR): Likewise.
48202         (tm_diff): Use it.
48203         * lib/strftime.c (SHR): Likewise.
48204         (tm_diff): Use it.
48205         * lib/quotearg.c (struct quoting_options): Use unsigned int for
48206         quote_these_too, so that right shifts are well defined.  All uses
48207         changed.
48208
48209 2004-11-10  Jim Meyering  <jim@meyering.net>
48210
48211         Ensure that no close failure goes unreported.
48212         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
48213         return early when it seems there's nothing to flush.
48214         Don't include __fpending.h.
48215
48216 2004-11-10  Jim Meyering  <jim@meyering.net>
48217
48218         * modules/closeout (Depends-on): Remove fpending.
48219
48220 2004-11-10  Jim Meyering  <jim@meyering.net>
48221
48222         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
48223
48224 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
48225
48226         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
48227         gl_FUNC_STRFTIME.
48228         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
48229         and AC_REQUIRE when possible, to avoid duplicate checks.
48230         Check for <wchar.h>.
48231
48232 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
48233
48234         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
48235
48236 2004-11-09  Bruno Haible  <bruno@clisp.org>
48237
48238         * m4/sockpfaf.m4: New file.
48239
48240 2004-11-05  Bruno Haible  <bruno@clisp.org>
48241
48242         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
48243         Reported by Mark D. Baushke <mdb@cvshome.org>.
48244
48245 2004-11-04  Bruno Haible  <bruno@clisp.org>
48246
48247         2004-09-11  Bruno Haible  <bruno@clisp.org>
48248                 * allocsa.valgrind: New file.
48249         2004-02-06  Bruno Haible  <bruno@clisp.org>
48250                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
48251                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
48252                 Reported by Christopher Seip <chris.seip@hp.com>.
48253
48254 2004-11-04  Bruno Haible  <bruno@clisp.org>
48255
48256         * modules/allocsa (Files): Add lib/allocsa.valgrind.
48257         (Makefile.am): Distribute it.
48258
48259 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
48260
48261         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
48262         with errno == ERANGE if the buffer is too small.
48263         Problem reported by Mark D. Baushke.
48264
48265 2004-11-03  Albert Chin  <china@thewrittenword.com>
48266             Paul Eggert  <eggert@cs.ucla.edu>
48267
48268         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
48269         equivalent, substitute $ac_type for equivalent type rather than
48270         blindly using uint32_t *always* which won't work if uint32_t is not
48271         available.  Define _UINT32_T to work around typedef of uint32_t if
48272         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
48273         2.5.1.
48274
48275 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
48276
48277         * m4/jm-macros.m4: Sync from coreutils.
48278         (gl_MACROS): Check for mbrlen, for pathchk.
48279         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
48280
48281 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
48282
48283         * lib/xreadlink.c (MAXSIZE): New macro.
48284         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
48285         size does not exceed MAXSIZE.  Avoid cast.
48286         As suggested by Mark D. Baushke in
48287         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
48288         if readlink fails with buffer size just under MAXSIZE, try again
48289         with MAXSIZE.
48290
48291 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
48292
48293         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
48294
48295 2004-11-02  Derek R. Price  <derek@ximbiot.com>
48296         and  Paul Eggert  <eggert@cs.ucla.edu>
48297
48298         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
48299         (get_date): Overparenthesize to avoid GCC warning.
48300
48301 2004-11-02  Bruno Haible  <bruno@clisp.org>
48302
48303         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
48304         returns void.
48305
48306 2004-11-02  Bruno Haible  <bruno@clisp.org>
48307
48308         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
48309         function returns void.
48310
48311 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
48312
48313         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
48314         fflush_unlocked, flockfile, funlockfile, funlockfile,
48315         fputs_unlocked, putc_unlocked.
48316
48317 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
48318
48319         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
48320         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
48321         already declared.
48322
48323 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
48324
48325         * modules/getdate (Files): Add doc/getdate.texi.
48326         (Depends-on): Add setenv, xalloc.
48327
48328 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
48329
48330         * lib/getdate.y: Add support for TZ="foo" within a date string.
48331         Fix some bugs near time_t boundaries.  Reject dates with
48332         out-of-range components, e.g., "Sept 31".
48333         Include <stdlib.h>, "setenv.h", "xalloc.h".
48334         (ISDIGIT_LOCALE): Remove; unused.
48335         Note that the TZ and time functions used here are not reentrant.
48336         (mktime_ok, get_tz): New functions.
48337         (TZBUFSIZE): New constant.
48338         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
48339         This requires that we sometimes generate our own TZ="XXX..." setting.
48340
48341 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
48342
48343         * doc/getdate.texi: New file, from coreutils with modifications for
48344         the new TZ parsing.
48345
48346 2004-10-27  Derek R. Price  <derek@ximbiot.com>
48347
48348         * lib/mktime.c (not_equal_tm): Remove redundant check.
48349
48350 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48351
48352         * modules/regex (lib_SOURCES): Add regex.c.
48353         Reported by James Youngman in
48354         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
48355
48356 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48357
48358         * lib/getdate.y: Use Bison 1.875 features, and some minor
48359         code cleanups.  This change does not affect semantics.
48360         Don't include <stdlib.h>; no longer needed.
48361         Don't include unlocked-io.h; only the "#if TEST" code uses
48362         stdio, and performance isn't crucial there.
48363         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
48364         Bison 1.875 features as described below.
48365         All uses of "PC." replaced by "pc->".
48366         (YYSTYPE): Add a forward declaration.
48367         (yylex, yyerror): Use full prototypes in forward decls.
48368         Use "%pure-parser" rather than obsolescent "%pure_parser".
48369         Use %parse-param and %lex-param instead of obsolescent
48370         YYPARSE_PARAM and YYLEX_PARAM.
48371         (meridian_table, month_and_day_table, time_units_table,
48372         relative_time_table, time_zone_table, military_table,
48373         lookup_zone, lookup_word, get_date):
48374         Use NULL instead of 0 where appropriate.
48375         (to_hour): Avoid abort (), to avoid a dependency on
48376         stdlib.h.
48377         (yyerror, yylex): Now accepts parser_control * arg.
48378         (main) [TEST]: Use '\0' rather than 0 for char.
48379
48380 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
48381
48382         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
48383
48384 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
48385
48386         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
48387         It's now the caller's responsibility to handle the case where
48388         !HAVE_GETPAGESIZE && !defined getpagesize.
48389
48390         * lib/mktime.c (leapyear): Arg is long int, not int.
48391
48392 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
48393
48394         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
48395
48396 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
48397
48398         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
48399         missing.  Problem reported by James Youngman.
48400
48401 2004-10-16  Simon Josefsson  <jas@extundo.com>
48402
48403         * gnulib-tool: Fix comments.  Fix parse problem.
48404         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
48405
48406 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
48407
48408         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
48409         implementation of getopt_long.  Problem reported by Alexander Taler in:
48410         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
48411
48412 2004-10-15  Bruno Haible  <bruno@clisp.org>
48413
48414         * gnulib-tool: Untabify. Initialize supplied_libname.
48415         (func_usage): More homogenous output.
48416         (func_modules_transitive_closure, func_modules_to_filelist,
48417         func_emit_lib_Makefile_am): New functions.
48418         (func_import): New function, extracted from big case statement. Use
48419         func_get_license, func_modules_transitive_closure,
48420         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
48421         opt_lgpl. Don't use test -a, as it's not portable.
48422         (func_create_testdir): Use func_modules_transitive_closure,
48423         func_modules_to_filelist, func_emit_lib_Makefile_am.
48424
48425 2004-10-15  Bruno Haible  <bruno@clisp.org>
48426
48427         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
48428
48429 2004-10-15  Bruno Haible  <bruno@clisp.org>
48430
48431         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
48432         the portions belonging to each module.
48433         Suggested by Derek Robert Price <derek@ximbiot.com>.
48434
48435 2004-10-12  Simon Josefsson  <jas@extundo.com>
48436
48437         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
48438         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
48439         to real functions.
48440
48441 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48442
48443         * modules/vsnprintf: New file.
48444
48445 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48446
48447         * m4/vsnprintf.m4: New file.
48448
48449 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48450
48451         * lib/vsnprintf.h: New file.
48452         * lib/vsnprintf.c: New file.
48453
48454 2004-10-11  Bruno Haible  <bruno@clisp.org>
48455
48456         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
48457         vsnprintf.
48458
48459 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
48460
48461         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
48462
48463 2004-10-07  Bruno Haible  <bruno@clisp.org>
48464
48465         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
48466         fits into the provided buffer.
48467
48468 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
48469
48470         * lib/diacrit.c, diacrit.h: Add GPL notice.
48471
48472         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
48473         notice.
48474         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
48475         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
48476         This avoids a potential constant-folding bug.
48477
48478 2004-10-05  Bruno Haible  <bruno@clisp.org>
48479
48480         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
48481         for the declaration of strsep.
48482
48483 2004-10-05  Bruno Haible  <bruno@clisp.org>
48484
48485         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
48486
48487 2004-10-04  Simon Josefsson  <jas@extundo.com>
48488
48489         * modules/memmem: New file.
48490         * tests/test-memmem.c: New file.
48491         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
48492
48493 2004-10-04  Simon Josefsson  <jas@extundo.com>
48494
48495         * m4/memmem.m4: New file.
48496
48497 2004-10-04  Simon Josefsson  <jas@extundo.com>
48498
48499         * lib/memmem.h: New file.
48500         * lib/memmem.c: New file, taken from glibc.
48501
48502 2004-10-04  Simon Josefsson  <jas@extundo.com>
48503
48504         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
48505         '#ifdef USE_UNLOCKED_IO'.
48506
48507 2004-10-04  Simon Josefsson  <jas@extundo.com>
48508
48509         * config/srclist.txt: Add memmem from glibc.
48510
48511 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
48512
48513         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
48514
48515         * modules/argmatch, modules/argp, modules/closeout, modules/error,
48516         modules/exclude, modules/getdate, modules/getline,
48517         modules/getndelim2, modules/getpass, modules/getpass-gnu,
48518         modules/getusershell, modules/linebuffer, modules/md5,
48519         modules/mountlist, modules/posixtm, modules/readtokens,
48520         modules/readutmp, modules/regex, modules/sha1,
48521         modules/version-etc, modules/yesno:
48522         Remove dependency on unlocked-io.
48523
48524 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
48525
48526         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
48527
48528         * m4/unlocked-io.m4: Add copyright notice.
48529         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
48530
48531 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
48532
48533         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
48534         * lib/xmalloc.c (xmemdup): Likewise.
48535         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
48536         XFREE): Remove these long-obsolescent macros.
48537         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
48538         * lib/xstrdup.c: Remove.
48539
48540         * lib/regex.c (re_comp): Cast gettext return value to char *,
48541         Problem reported by Martin Neitzel via Mark D. Baushke.
48542
48543 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
48544
48545         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
48546         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
48547         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
48548         regex.c, sha1.c, version-etc.c, yesno.c:
48549         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
48550         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
48551         the includer's responsibility.
48552
48553         Sync from coreutils.
48554
48555         * lib/modechange.c (mode_compile): Don't decrement a pointer that
48556         points to the start of a string, as the C Standard says the
48557         resulting behavior is undefined.
48558
48559         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
48560         simple -> simple_backups, numbered_existing ->
48561         numbered_existing_backups, numbered -> numbered_backups
48562         to avoid shadowing problems.  All uses changed.
48563         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
48564         * lib/backupfile.c (check_extension, numbered_backup):
48565         Rename locals to avoid shadowing 'basename'.
48566         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
48567         once.
48568
48569         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
48570         * lib/.cvsignore: Add getopt.h.
48571
48572 2004-10-04  Bruno Haible  <bruno@clisp.org>
48573
48574         * modules/README: New file.
48575         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
48576         not a module.
48577
48578 2004-10-02  Jim Meyering  <jim@meyering.net>
48579
48580         * lib/dirfd.h, getpagesize.h: Add copyright notice.
48581
48582 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48583
48584         * modules/strsep: New file.
48585
48586 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48587
48588         * m4/strsep.m4: New file.
48589
48590 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48591
48592         * lib/strsep.h: New file.
48593         * lib/strsep.c: New file.
48594
48595 2004-10-01  Simon Josefsson  <jas@extundo.com>
48596
48597         * lib/snprintf.c (snprintf): Handle size==0.
48598
48599 2004-10-01  Simon Josefsson  <jas@extundo.com>
48600             Bruno Haible  <bruno@clisp.org>
48601
48602         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
48603         (snprintf): Declare 'args'.
48604
48605 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
48606
48607         * lib/snprintf.c: Remove comments as to why each header is needed.
48608
48609 2004-10-01  Bruno Haible  <bruno@clisp.org>
48610
48611         * MODULES.html.sh: Add strsep.
48612
48613 2004-09-30  Simon Josefsson  <jas@extundo.com>
48614
48615         * modules/snprintf: New file.
48616
48617 2004-09-30  Simon Josefsson  <jas@extundo.com>
48618
48619         * m4/snprintf.m4: New file.
48620
48621 2004-09-30  Simon Josefsson  <jas@extundo.com>
48622
48623         * lib/snprintf.h, lib/snprintf.c: New files.
48624
48625 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
48626
48627         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
48628         (hol_entry_help): Never translate an empty string.
48629         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
48630         * lib/argp.h (OPTION_NO_TRANS): New option.
48631
48632 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
48633
48634         * modules/argp (Maintainer): Replace Simon Josefsson
48635         by Sergey Poznyakoff.
48636
48637 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
48638
48639         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
48640         changes merged back into glibc.
48641
48642 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
48643
48644         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
48645
48646 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
48647
48648         * lib/xvasprintf.c: Include xalloc.h.
48649         (xvasprintf): Use xalloc_die, not xmalloc_die.
48650
48651 2004-09-29  Bruno Haible  <bruno@clisp.org>
48652
48653         * modules/alloca-opt: New file, derived from modules/alloca.
48654         * modules/allocsa: Depend on alloca-opt instead of alloca.
48655         * modules/setenv: Likewise.
48656         * modules/vasnprintf: Likewise.
48657         * MODULES.html.sh: Add alloca-opt.
48658
48659 2004-09-28  Simon Josefsson  <jas@extundo.com>
48660
48661         * gnulib-tool: New parameter --lgpl, to asseert that modules are
48662         LGPL, and to replace license template from GPL to LGPL.
48663
48664 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
48665
48666         * modules/dummy: Change license to LGPL.
48667
48668 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
48669
48670         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
48671
48672 2004-09-24  Simon Josefsson  <jas@extundo.com>
48673
48674         * modules/minmax (License): Change from GPL to LGPL.
48675
48676 2004-09-23  Simon Josefsson  <jas@extundo.com>
48677
48678         * gnulib-tool (--import): Typo.
48679
48680 2004-09-23  Simon Josefsson  <jas@extundo.com>
48681
48682         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
48683
48684 2004-09-22  Bruno Haible  <bruno@clisp.org>
48685
48686         * modules/*: Add 'License' field.
48687         * gnulib-tool: Accept --extract-license option.
48688         (func_get_license): New function.
48689
48690 2004-09-21  Bruno Haible  <bruno@clisp.org>
48691
48692         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
48693         Reported by Simon Josefsson.
48694
48695 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
48696
48697         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
48698         gl_AC_TYPE_LONG_LONG.
48699
48700 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
48701
48702         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
48703
48704 2004-09-18  Simon Josefsson  <jas@extundo.com>
48705         and  Paul Eggert  <eggert@cs.ucla.edu>
48706
48707         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
48708         calls with autoreconf.  Define GL_LIB.
48709
48710 2004-09-14  Karl Berry  <karl@gnu.org>
48711
48712         * config/srclist.txt: unsync setenv.c, sigh.
48713
48714 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
48715
48716         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
48717         Problem reported by Bruno Haible in:
48718         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
48719
48720 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
48721
48722         * config/srclist.txt: Comment out argp-pvh.c.
48723
48724 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
48725
48726         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
48727         in case some system header has #define'd it.  Problem reported by
48728         Soeren D. Schulze in
48729         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
48730
48731 2004-09-09  Karl Berry  <karl@gnu.org>
48732
48733         * regex.[ch]: delete from the root.  These were supposed to be
48734                 synced with emacs cvs, but this has not happened for about
48735                 a year, and anyway nothing else uses emacs regex.[ch].
48736                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
48737                 lib/regex[.ch] is untouched.
48738
48739 2004-09-09  Bruno Haible  <bruno@clisp.org>
48740
48741         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
48742
48743 2004-09-09  Bruno Haible  <bruno@clisp.org>
48744
48745         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
48746         modifications.
48747         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
48748
48749 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
48750
48751         * modules/xvasprintf: New file.
48752         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
48753
48754 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
48755
48756         * lib/xvasprintf.h: New file.
48757         * lib/xvasprintf.c: New file.
48758         * lib/xasprintf.c: New file.
48759
48760 2004-09-08  Bruno Haible  <bruno@clisp.org>
48761
48762         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
48763
48764 2004-09-08  Bruno Haible  <bruno@clisp.org>
48765
48766         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
48767         length is > INT_MAX.
48768         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
48769         more.
48770
48771 2004-09-08  Bruno Haible  <bruno@clisp.org>
48772
48773         * lib/stdint_.h: New file, taken from GNU clisp.
48774
48775 2004-09-08  Bruno Haible  <bruno@clisp.org>
48776             Oskar Liljeblad  <oskar@osk.mine.nu>
48777
48778         * modules/stdint: New file.
48779         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
48780
48781 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
48782
48783         Import from coreutils.
48784         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
48785         strings on unbounded length.  alloca's performance benefits aren't
48786         that important here.
48787         (V_STRDUP): Remove.
48788         (parse_with_separator): New function, with most of the internals
48789         of the old parse_user_spec.  Allow user to omit both user and group,
48790         for compatibility with FreeBSD.
48791         Clone only the user name, not the entire spec.
48792         Do not set *uid, *gid unless entirely successful.
48793         Avoid memory leak in some failing cases.
48794         Fix regression for USER.GROUP reported by Dmitry V. Levin in
48795         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
48796         (parse_user_spec): Rewrite to use parse_with_separator.
48797
48798 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
48799
48800         * modules/userspec: Don't depend on alloca.
48801
48802 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
48803
48804         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
48805
48806 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
48807
48808         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
48809         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
48810         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
48811
48812 2004-08-16  Simon Josefsson  <jas@extundo.com>
48813
48814         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
48815         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
48816         Add --dry-run for --import.
48817         Let user provided command line parameters override configure.ac
48818         settings.
48819
48820 2004-08-12  Simon Josefsson  <jas@extundo.com>
48821
48822         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
48823         as discussed with Paul Eggert in threads rooted at
48824         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
48825         and
48826         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
48827         Before, the test was empty, and relied on ELIDE_CODE in source
48828         code.)
48829         (gl_PREREQ_GETOPT): New macro.
48830         (gl_GETOPT): Use them.
48831
48832 2004-08-12  Simon Josefsson  <jas@extundo.com>
48833
48834         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
48835         * lib/getopt_.h: Renamed from getopt.h.
48836
48837 2004-08-12  Simon Josefsson  <jas@extundo.com>
48838
48839         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
48840         Change default library name from libfoo to libgnu.
48841         Now, if you have a configure.ac that says:
48842                 gl_SOURCE_BASE(gl)
48843                 gl_M4_BASE(gl/m4)
48844                 gl_MODULES(error getopt etcetera)
48845                 gl_INIT
48846         you can import all you need by running:
48847                 ../gnulib/gnulib-tool --import
48848
48849         * modules/getopt (Files): Rename getopt.h to getopt_.h.
48850         (Makefile.am): Rewrite, use logic from argz.
48851         (Include): Use <getopt.h> instead of "getopt.h".
48852
48853 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
48854
48855         * modules/argp (Files): Add m4/unlocked-io.m4.
48856         (Depends-on): Add extensions.
48857
48858 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
48859
48860         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
48861         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
48862         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
48863         Check for program_invocation_name, program_invocation_short_name,
48864         flockfile, funlockfile, features.h, _getopt_long_only_r.
48865
48866 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
48867
48868         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
48869         its complicated substitute.
48870         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
48871         and program_invocation_name.
48872         (__argp_basename) [!_LIBC]: Remove; the only use was
48873         replaced by its body.
48874         (__argp_short_program_name): Change condition from
48875         !defined __argp_short_program_name to
48876         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
48877         to match argp-namefrob.h.
48878         (__argp_failure): Don't assume strerror_r returns char *.
48879         * lib/argp-parse.c (N_): Define unconditionally.
48880         (argp_default_options): Fill out initializers with 0 to avoid
48881         gcc warnings.
48882
48883 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
48884
48885         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
48886         getopt1.c.
48887
48888 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
48889
48890         Merge from coreutils.
48891
48892         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
48893
48894         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
48895         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
48896
48897 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
48898
48899         Merge from coreutils.
48900
48901         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
48902         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
48903         for Reliant Unix 5.43.
48904
48905         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
48906         (union fooround): Use uintmax_t, not long int.
48907         The rest is a merge from libc:
48908         [defined _LIBC]: Include <shlib-compat.h>.
48909         (_obstack) [defined _LIBC]: Remove after 2.3.4.
48910
48911         * lib/settime.c (settime): Recode to avoid warning with
48912         Sun Forte C 6U2.
48913
48914         * lib/strverscmp.c: Convert to UTF-8.
48915
48916 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
48917
48918         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
48919         m4/uintmax_t.m4.
48920
48921 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48922
48923         * modules/xalloc-die: New file.
48924         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
48925
48926         * modules/md5 (Files): Add m4/uint32_t.m4.
48927         * modules/sha1: Renamed from modules/sha.
48928         (Files):
48929         Rename lib/sha.h to lib/sha1.h.
48930         Rename lib/sha.c to lib/sha1.c.
48931         Rename m4/sha.m4 to m4/sha1.m4.
48932         (lib_SOURCES): Likewise.
48933         (configure.ac): Rename gl_SHA to gl_SHA1.
48934         (Include): sha.h -> sha1.h.
48935
48936 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48937
48938         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
48939         * m4/sha1.m4: Renamed from sha.m4.
48940         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
48941
48942 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48943
48944         * lib/obstack.h (obstack_empty_p):
48945         Don't assume that chunk->contents is suitably aligned.
48946         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
48947         Likewise. Problem reported by Benno in
48948         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
48949
48950         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
48951         readable.  This could be improved further but it'd take some work.
48952
48953 2004-08-08  Simon Josefsson  <jas@extundo.com>
48954
48955         * modules/xgethostname (Depends-on): Remove exit and error (not
48956         used).
48957
48958         * modules/getpass-gnu: Add getpass.h.
48959         (Depends-on): Add stdbool.
48960         * modules/getpass: Add getpass.h.
48961
48962 2004-08-08  Simon Josefsson  <jas@extundo.com>
48963
48964         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
48965         Check getpass declaration.
48966
48967 2004-08-08  Simon Josefsson  <jas@extundo.com>
48968
48969         * lib/xgethostname.c: Don't include error.h (not used).
48970
48971         * lib/getpass.h: Add.
48972         * lib/getpass.c: Include getpass.h first.
48973
48974 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
48975
48976         * lib/xalloc-die.c: New file.
48977         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
48978         All uses removed.
48979         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
48980         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
48981         xalloc-die.c.
48982         (_, N_, xalloc_die): Move to xalloc-die.c.
48983         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
48984         so that we needn't mess with xalloc_msg_memory_exhausted.
48985
48986         * lib/sha1.h: Renamed from sha.h.
48987         (SHA1_H): Renamed from _SHA_H.
48988         (sha1_ctx): Renamed from sha_ctx.
48989         (sha1_init_ctx): Renamed from sha_init_ctx.
48990         (sha1_process_block): Renamed from sha_process_block.
48991         (sha1_process_bytes): Renamed from sha_process_bytes.
48992         (sha1_finish_ctx): Renamed from sha_finish_ctx.
48993         (sha1_read_ctx): Renamed from sha_read_ctx.
48994         (sha1_stream): Renamed from sha_stream.
48995         (sha1_buffer): Renamed from sha_buffer.
48996         * lib/sha1.c: Likewise; renamed from sha.c.
48997         Do not include <sys/types.h>.
48998         Include <stddef.h> rather than <stdlib.h>.
48999
49000 2004-08-08  Bruno Haible  <bruno@clisp.org>
49001
49002         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
49003         FILESYSTEM_PREFIX_LEN.
49004         * lib/progreloc.c: Likewise.
49005         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
49006
49007 2004-08-06  Simon Josefsson  <jas@extundo.com>
49008
49009         * modules/progname (Depends-on): Don't depend on stdbool.
49010
49011 2004-08-06  Simon Josefsson  <jas@extundo.com>
49012
49013         * modules/getsubopt: New file.
49014         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49015         getsubopt.
49016
49017 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
49018
49019         More merge from coreutils.
49020
49021         * m4/utimens.m4, m4/utimecmp.m4: New files.
49022         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
49023         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
49024         prereq.m4, sha.m4: Import changes from coreutils.
49025
49026 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
49027
49028         More merge from coreutils.
49029         * modules/raise, modules/readtokens0, modules/utimens:
49030         * modules/utimecmp, module/xnanosleep: New files.
49031         * modules/strftime: Add lib/strftime.h.
49032         Change include from <time.h> to "strftime.h".
49033         * modules/yesno: Add lib/yesno.h.
49034         * modules/backupfile: Remove lib/addext.c.
49035         * modules/euidaccess: Add stat-macros.h.
49036         * modules/canonicalize, modules/euidaccess,
49037         modules/filemode, modules/lchown, modules/makepath,
49038         modules/rmdir, modules/stat: Likewise.
49039
49040 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
49041
49042         Merge from tar.
49043         * lib/argp-help.c (make_hol, hol_append): Don't assume that
49044         SIZE_MAX is a valid preprocessor constant.
49045         (__argp_basename): Change from "#ifndef _LIBC"
49046         to "#ifndef __argp_short_program_name", so that
49047         we don't compile these functions for tar.
49048
49049         More merges from coreutils.
49050         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
49051         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
49052         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
49053         * lib/addext.c: Remove; no longer needed.
49054         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
49055         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
49056         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
49057         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
49058         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
49059         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
49060         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
49061         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
49062         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
49063         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
49064         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
49065         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
49066         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
49067         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
49068         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
49069         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
49070         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
49071         Import changes from coreutils.
49072
49073 2004-08-05  Simon Josefsson  <jas@extundo.com>
49074
49075         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
49076
49077 2004-08-05  Simon Josefsson  <jas@extundo.com>
49078
49079         * m4/getsubopt.m4: New file.
49080
49081 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
49082
49083         Merge from coreutils.
49084
49085         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
49086         * m4/getcwd-path-max.m4: New files.
49087
49088         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
49089         FILESYSTEM_PREFIX_LEN ->
49090         FILE_SYSTEM_PREFIX_LEN.
49091         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
49092         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
49093         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
49094         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
49095
49096         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
49097         prerequisite modules now handle the DOS stuff.
49098         Don't check for unistd.h.
49099
49100 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
49101
49102         Merge from coreutils.
49103
49104         * lib/.gdb-history: Remove; this doesn't belong here.
49105
49106         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
49107         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
49108         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
49109         * lib/getcwd.c: New files.
49110
49111         * lib/dirname.h: Include <stdbool.h>.
49112         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
49113         for consistency with POSIX terminology.  All uses changed.
49114         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
49115         (strip_trailing_slashes): Use bool for booleans.
49116         * lib/stripslash.c (strip_trailing_slashes): Likewise.
49117
49118         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
49119         sometimes returns a positive errno value even when it succeeds.
49120         (print_errno_message) [!LIBC]: Fall back on strerror if
49121         __strerror_r fails.
49122
49123         * lib/path-concat.c (mempcpy): Don't define if a system header defines
49124         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
49125         (longest_relative_suffix): New function.
49126         (path_concat): Use it.  Assume first argument is not NULL.
49127         Port to DOS.  Omit redundant separators.
49128         Report an error instead of returning NULL.
49129         Use mempcpy instead of memcpy.
49130         (xpath_concat): Remove: not declared or used.
49131
49132         * lib/same.h: Include <stdbool.h>
49133         (same_name): Return bool, not int.
49134         * lib/same.c (same_name): Likewise.
49135         (errno): Don't declare; we assume C89 or better now.
49136
49137         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
49138         if not already defined.
49139
49140         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
49141         * lib/dup-safer.c (errno): Likewise.
49142
49143 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
49144
49145         Merge from coreutils.
49146         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
49147         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
49148         * modules/path-concat: Don't depend on strdup.
49149
49150 2004-08-03  Simon Josefsson  <jas@extundo.com>
49151
49152         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
49153         * lib/progname.h: Don't include stdbool.h.
49154
49155 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
49156
49157         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
49158         * MODULES.html.sh (func_all_modules): Remove fatal.
49159
49160 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
49161
49162         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
49163
49164 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
49165
49166         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
49167         working.
49168
49169 2004-08-02  Simon Josefsson  <jas@extundo.com>
49170
49171         * lib/getsubopt.h: New file, with comments from Bruno Haible.
49172         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
49173         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
49174
49175 2004-08-01  Simon Josefsson  <jas@extundo.com>
49176
49177         * lib/xgetdomainname.c: Include stdlib.h, for free().
49178
49179 2004-07-19  Bruno Haible  <bruno@clisp.org>
49180
49181         * MODULES.html.sh (func_all_modules): Add dummy.
49182
49183 2004-07-16  Simon Josefsson  <jas@extundo.com>
49184
49185         * modules/dummy: New file.
49186
49187 2004-07-16  Simon Josefsson  <jas@extundo.com>
49188
49189         * lib/dummy.c: New file.
49190
49191 2004-07-16  Bruno Haible  <bruno@clisp.org>
49192
49193         * lib/backupfile.h: Add extern "C" for C++.
49194         * lib/closeout.h: Likewise.
49195         * lib/copy-file.h: Likewise.
49196         * lib/findprog.h: Likewise.
49197         * lib/full-write.h: Likewise.
49198         * lib/pathname.h: Likewise.
49199         * lib/progname.h: Likewise.
49200         * lib/stpcpy.h: Likewise.
49201         * lib/stpncpy.h: Likewise.
49202         * lib/strcase.h: Likewise.
49203         * lib/strstr.h: Likewise.
49204         * lib/xalloc.h: Likewise.
49205
49206         * lib/mbswidth.h: Add extern "C" for C++.
49207         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
49208
49209 2004-07-13  Robert Millan  <robertmh@gnu.org>
49210
49211         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
49212
49213 2004-07-09  Simon Josefsson  <jas@extundo.com>
49214
49215         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
49216         failed without this.)
49217
49218 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49219
49220         * modules/chown (Files): Add lib/fchown-stub.c, since
49221         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
49222
49223 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49224
49225         * lib/fchown-stub.c: New file.
49226
49227 2004-06-24  Jim Meyering  <jim@meyering.net>
49228
49229         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
49230
49231 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
49232
49233         * modules/argz: Omit "#include".
49234
49235         * MODULES.html.sh (func_all_modules): Add calloc, to match
49236         2004-06-01 addition of calloc module.
49237
49238 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
49239
49240         * m4/argz.m4: New file, which is autoupdated from libtool.
49241
49242 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
49243
49244         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
49245         libtool.
49246
49247 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
49248
49249         * config/srclist-update: Don't insist on "USA." before the
49250         close-comment, as libtool omits the period and puts the */ on a
49251         separate line.
49252         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
49253         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
49254
49255 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
49256
49257         * modules/argz: New file.
49258         * MODULES.html.sh (func_all_modules): Add argz.
49259
49260 2004-06-12  Jim Meyering  <jim@meyering.net>
49261         and  Paul Eggert  <eggert@cs.ucla.edu>
49262
49263         * modules/hash (Files): Add lib/xalloc.h.
49264         * modules/pipe (Depends-on): Add wait-process.
49265         * modules/stat (Depends-on): Add xalloc.
49266         * modules/userspec (Files): Add lib/userspec.h.
49267         * modules/xstrto
49268
49269         Upgrade from gettext-0.13.
49270         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
49271         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
49272         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
49273
49274 2004-06-10  Jim Meyering  <jim@meyering.net>
49275
49276         * lib/calloc.c: New file.
49277
49278 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
49279
49280         * lib/getdate.y (yylex): Allow space between sign and number.
49281         Problem reported by Dan Jacobson.
49282
49283 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
49284
49285         Merge from coreutils CVS.
49286
49287         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
49288         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
49289         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
49290         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
49291         xstrtol.m4: Fix copyright date and/or serial number.
49292
49293         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
49294         See if we need an fchown replacement.
49295         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
49296         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
49297         and use the replacement function if we detect either defect.
49298
49299         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
49300         gl_UTIMECMP.
49301
49302 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
49303         and  Jim Meyering  <jim@meyering.net>
49304
49305         Merge from coreutils CVS.
49306
49307         * lib/stat-macros.h: New file, with contents from file-type.h
49308         and coreutils' system.h.
49309         * lib/file-type.c: Include "stat-macros.h".
49310         * lib/file-type.h (file_type): Move all macro definitions to new file,
49311         stat-macros.h.
49312
49313         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
49314         Wrap old code with this conditional.
49315         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
49316         function that does not dereference symlinks.
49317         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
49318
49319         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
49320         dependency problems.
49321         (xreadlink): Accept new arg SIZE, for efficiency.
49322         All decls and uses changed.
49323         * lib/xreadlink.h: Include <stddef.h>, for size_t.
49324
49325         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
49326         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
49327
49328         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
49329         sysexits.h.
49330
49331 2004-06-01  Jim Meyering  <jim@meyering.net>
49332
49333         * m4/calloc.m4: New file.
49334
49335 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
49336
49337         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
49338         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
49339         Also, fix a typo in a diagnostic.
49340
49341 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
49342
49343         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
49344         or AC_FUNC_REALLOC.
49345
49346 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
49347
49348         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
49349         macros to be defined.
49350         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
49351         the allocator returns NULL because the requested size is zero.
49352
49353 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
49354
49355         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
49356         var.  Add comment explaining why libc still defines it.  This
49357         merges the following patch from glibc:
49358         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
49359
49360 2004-05-20  Andreas Schwab  <schwab@suse.de>
49361
49362         * m4/free.m4: Replace free if it not known to work, not the other
49363         way round.
49364
49365 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
49366
49367         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
49368         present in glibc since revision 1.1 of this file.
49369         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
49370         obstack_alignment_mask, obstack_alloc, obstack_base,
49371         obstack_blank, obstack_blank_fast, obstack_chunk_size,
49372         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
49373         obstack_grow0, obstack_init, obstack_int_grow,
49374         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
49375         obstack_next_free, obstack_object_size, obstack_ptr_grow,
49376         obstack_ptr_grow_fast, obstack_room): Remove declarations of
49377         nonexistent functions.
49378
49379 2004-05-18  Karl Berry  <karl@gnu.org>
49380
49381         * config/srclist.txt: break link for vasnprintf.c.
49382
49383 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
49384
49385         Port obstack to the AS/400, where pointers are 16 bytes wide and
49386         you cannot cast an integer to a valid pointer.  This patch is
49387         currently waiting to be integrated into glibc; see
49388         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
49389
49390         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
49391         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
49392         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
49393         (struct obstack): temp member is now a union of a pointer and
49394         an integer, instead of an integer.  All integer uses changed.
49395         This does not affect the physical layout of struct obstack,
49396         except on hosts (like the AS/400) where the size or alignment of
49397         void * is greater than that of ptrdiff_t.
49398         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
49399         __STDC__)]: Store temporary in pointer member of union, not
49400         integer member.
49401         * lib/obstack.c: Include <stddef.h>, for offsetof.
49402         (struct fooalign): Remove; it doesn't need a name.
49403         (union fooround): Change double to long double, and add void *.
49404         (DEFAULT_ALIGNMENT): Use offsetof to compute.
49405         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
49406         not a macro.  Hence the values are always int; so remove all
49407         casts-to-int in uses.
49408
49409 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
49410
49411         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
49412         we can get this patch merged into glibc.
49413
49414 2004-05-17  Derek R. Price  <derek@ximbiot.com>
49415             Paul Eggert  <eggert@cs.ucla.edu>
49416
49417         * m4/argp: Depend on alloca.
49418
49419 2004-05-17  Derek R. Price  <derek@ximbiot.com>
49420             Paul Eggert  <eggert@cs.ucla.edu>
49421
49422         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
49423         freecoding.
49424
49425 2004-05-17  Bruno Haible  <bruno@clisp.org>
49426
49427         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
49428         precision that consists of a '.' followed by an empty digit string.
49429         Patch by Tor Lillqvist <tml@iki.fi>.
49430
49431 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
49432
49433         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
49434         for backward compatibility with older code.  We need our own
49435         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
49436         it under some other name, and our alloca.h will define it.
49437
49438 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
49439             Derek Price  <derek@ximbiot.com>
49440
49441         * lib/alloca.c: Include <alloca.h>, to get our interface.
49442         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
49443         include <alloca.h> first.  Use C89 prototype for alloca; this
49444         requires including <stddef.h> for size_t.  Use extern "C" if C++.
49445         Use #elif for simplicity, since we can assume C89 now.
49446         Don't try to source the system alloca.h since it will not be found
49447         and to prevent recursively including its replacement.
49448         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
49449         * lib/regex.c: Likewise.
49450
49451 2004-05-16  Derek Price  <derek@ximbiot.com>
49452             Paul Eggert  <eggert@cs.ucla.edu>
49453
49454         getline cleanup.  This changes the getndelim2 API: both order of
49455         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
49456         no delimiter).
49457
49458         * lib/getline.c: Don't include stddef.h or stdio.h, since our
49459         interface does that.
49460         (getline): Always use getdelim, so that we don't have two
49461         copies of this code.
49462         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
49463         if available.
49464         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
49465         (GETNDELIM2_MAXIMUM): New macro.
49466         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
49467         instead of the old practice of delim2==0.  All callers changed.
49468         Return -1 on overflow, instead of returning junk.
49469         Do not set *linesize unless allocation succeeds.
49470         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
49471         that we include sys/types.h.
49472         * lib/getnline.h: Likewise.
49473         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
49474         (getndelim2): Reorder arguments.
49475         * lib/getnline.c (getnline, getndelim):
49476         Don't discard the NMAX argument.
49477         (getnline): Invoke getndelim, to avoid code duplication.
49478         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
49479         of (size_t) -1 by callers of the getnline family.
49480
49481 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
49482
49483         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
49484         Check for gettimeofday.
49485         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
49486         Check for settimeofday, stime.
49487
49488 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
49489
49490         * lib/nanosleep.c (suspended): Change its type from int to
49491         sig_atomic_t volatile.
49492         (first_call): Make it private to rpl_nanosleep, and have it
49493         be zero initially as that's a bit faster.
49494         (my_usleep): Round up fractional times instead of truncating them,
49495         as this is the usual meaning for 'sleep'.
49496
49497         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
49498         doesn't work.
49499         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
49500         (ENOSYS): Define if not defined.
49501         (settime): Fall back on stime if it exists and settimeofday fails.
49502         But don't bother with fallbacks if a method fails with errno == EPERM.
49503
49504 2004-05-11  Jim Meyering  <jim@meyering.net>
49505
49506         Prior to this change, the save_cwd caller required read access to the
49507         current directory on most systems (ones with the fchdir function).
49508
49509         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
49510         fails, try write-only, and finally, resort to using xgetcwd.
49511
49512 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
49513
49514         * lib/obstack.c, obstack.h: Import changes from libc.
49515
49516 2004-04-28  Bruno Haible  <bruno@clisp.org>
49517
49518         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
49519         also implicitly appends .exe to executables.
49520         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
49521         accepts Windows pathnames.
49522         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
49523         Treat Cygwin like Windows, since it now accepts Windows pathnames.
49524         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
49525         Treat Cygwin like Windows, since it now accepts Windows pathnames.
49526         Reported by Derek Robert Price <derek@ximbiot.com>.
49527
49528 2004-04-21  Karl Berry  <karl@gnu.org>
49529
49530         * config/srclist.txt (localcharset.c): break sync.
49531
49532 2004-04-20  Paul Eggert  <eggert@twinsun.com>
49533
49534         * m4/host-os.m4: Add a copyright notice.
49535
49536 2004-04-20  Jim Meyering  <jim@meyering.net>
49537
49538         Change UTILS_ to gl_ in AC_DEFINE'd names.
49539         Change utils_- and jm_-prefixed variables, too.
49540         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
49541         UTILS_FUNC_MKDIR_TRAILING_SLASH.
49542         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
49543
49544         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
49545         Don't emit trailing blanks.
49546         Also rename jm_-prefixed variables to have gl_ prefix.
49547
49548         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
49549         Also rename jm_-prefixed variables to have gl_ prefix.
49550
49551         * m4/jm-macros.m4: Reflect the renamings.
49552         * m4/prereq.m4: Likewise.
49553
49554 2004-04-20  Jim Meyering  <jim@meyering.net>
49555
49556         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
49557         memory.
49558
49559 2004-04-20  Jim Meyering  <jim@meyering.net>
49560             Bruno Haible  <bruno@clisp.org>
49561
49562         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
49563         memory when realloc fails.
49564
49565 2004-04-19  Jim Meyering  <jim@meyering.net>
49566
49567         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
49568         now that readutmp.c may call `free (0)'.
49569
49570 2004-04-19  Bruno Haible  <bruno@clisp.org>
49571
49572         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
49573         * m4/inttypes_h.m4: Likewise.
49574         * m4/stdint_h.m4: Likewise.
49575         * m4/intmax_t.m4: Likewise.
49576         * m4/uintmax_t.m4: Likewise.
49577
49578 2004-04-18  Jim Meyering  <jim@meyering.net>
49579
49580         * m4/prereq.m4: Don't forbid jm_ prefix.
49581
49582         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
49583         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
49584         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
49585         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
49586         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
49587         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
49588         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
49589         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
49590         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
49591         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
49592         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
49593         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
49594         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
49595         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
49596         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
49597         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
49598         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
49599         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
49600         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
49601
49602 2004-04-18  Jim Meyering  <jim@meyering.net>
49603
49604         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
49605         failure, don't leak memory and do call END_UTMP_ENT.
49606
49607 2004-04-16  Jim Meyering  <jim@meyering.net>
49608
49609         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
49610         coreutils' stat program.
49611         (gl_PREREQ): Don't require jm_PREREQ_STAT.
49612
49613 2004-04-11  Paul Eggert  <eggert@twinsun.com>
49614
49615         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
49616         C89.
49617         (CHAR_BIT): Remove, since we assume C89.
49618         Include <stdint.h> if available, as per current Autoconf CVS advice.
49619
49620 2004-03-31  Jim Meyering  <jim@meyering.net>
49621
49622         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
49623         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
49624         * m4/xalloc.m4: Likewise.
49625
49626 2004-03-30  Paul Eggert  <eggert@twinsun.com>
49627
49628         Merge from coreutils.
49629
49630         * m4/inttostr.m4: New file.
49631         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
49632         Require AM_STDBOOL_H and gl_TIMESPEC instead.
49633         Require gl_CLOCK_TIME.
49634         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
49635
49636 2004-03-30  Paul Eggert  <eggert@twinsun.com>
49637
49638         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
49639         not bool, to be more consistent with Unix conventions.
49640         Suggested by Bruno Haible.
49641
49642         Merge from coreutils.
49643
49644         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
49645         * lib/umaxtostr.c: New files.
49646
49647         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
49648         the usual <time.h> dance.
49649         (get_date): Change signature to support fractional time stamps.
49650         All callers changed.
49651         * lib/getdate.y: Include "getdate.h" first, as we can now
49652         assume C89 and don't need to worry about 'const'.
49653         Similarly, include "unlocked-io.h" near start, not in middle.
49654         Include <limits.h>.
49655         (textint.value): Use long int rather than int.
49656         (textint.digits): Use size_t rather than int.
49657         (BILLION, LOG10_BILLION): New constants.
49658         (parser_control): New member rel_ns.  Members day_ordinal,
49659         time_zone, month, day, hour, minutes, rel_year, rel_month,
49660         rel_day, rel_hour, rel_minutes, rel_seconds
49661         are now long int, not int.  Member seconds is now struct timespec,
49662         not int.  New member timespec_seen.  Members dates_seen, days_seen,
49663         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
49664         not int.
49665         (%union.intval): Now long int, not int.
49666         New member timespec.
49667         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
49668         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
49669         (spec): Now is a timespec or an item list.
49670         (timespec, items): New nonterminals.
49671         (time, rel, relunit, number, get_date):
49672         Add support for fractional seconds.
49673         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
49674         (gmtime, localtime, mktime): Remove decls; not needed with C89.
49675         (to_hour): First arg is now long int, not int.
49676         (to_year): Returns long int, not int.
49677         Don't treat year -70 like 70.
49678         (tm_diff): Returns long int, not int.
49679         (lookup_word): Use bool instead of int when appropriate.
49680         (yylex): Use size_t for count, not int.
49681         Detect overflow when parsing large integer constants.
49682         Add support for fractions.
49683         (get_date): Make pointers 'const' if possible.
49684         Use more-portable code to detect integer overflow.
49685         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
49686         Don't use ctime; it's not reliable if the year has >4 digits.
49687
49688         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
49689         This is for compatibility with BSD.
49690
49691         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
49692         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
49693         From coreutils' system.h.
49694
49695         * lib/userspec.c: Don't include "posixver.h".
49696         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
49697         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
49698         compatible extension.  Simplify code by removing a boolean int
49699         that was always nonzero if a string was nonnull.
49700
49701 2004-03-30  Jim Meyering  <jim@meyering.net>
49702
49703         Merge from coreutils.
49704
49705         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
49706         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
49707         on some systems one must include <grp.h> before it.
49708         Reported by Christian Krackowizer.
49709
49710 2004-03-30  Jim Meyering  <jim@meyering.net>
49711
49712         Merge from coreutils.
49713
49714         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
49715
49716         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
49717         an empty input stream.
49718
49719         * lib/readtokens.c: Include <stdbool.h>.
49720         (readtoken): Use `size_t' rather than int/long.
49721         All callers adjusted.
49722         Use `bool' rather than `int' where appropriate.
49723         Use memset rather than an explicit loop.
49724         Use x2nrealloc rather than xrealloc.
49725         Allow the use of `\0' as a delimiter.
49726         (readtokens): Likewise.
49727         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
49728
49729 2004-03-30  Jim Meyering  <jim@meyering.net>
49730
49731         * m4/realloc.m4: Remove file, since now it does no more than
49732         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
49733         the `configure.ac' section of module/realloc.
49734         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
49735
49736 2004-03-30  Bruno Haible  <bruno@clisp.org>
49737
49738         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
49739         nonnull.
49740
49741 2004-03-29  Paul Eggert  <eggert@twinsun.com>
49742
49743         Merge changes to getloadavg.c from coreutils and Emacs.
49744
49745         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
49746         Define to an expression, not to the empty string.
49747         Include cloexec.h and xalloc.h.
49748         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
49749         Use set_cloexec_flag rather than rolling our own.
49750         * lib/cloexec.c, lib/cloexec.h: New files.
49751
49752 2004-03-29  Paul Eggert  <eggert@twinsun.com>
49753
49754         * m4/cloexec.m4: New file.
49755
49756 2004-03-18  Paul Eggert  <eggert@twinsun.com>
49757
49758         * lib/getopt.h: Sync with libc CVS.
49759
49760 2004-03-18  Paul Eggert  <eggert@twinsun.com>
49761             Bruno Haible  <bruno@clisp.org>
49762
49763         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
49764         mbswidth.
49765
49766 2004-03-18  Paul Eggert  <eggert@twinsun.com>
49767             Bruno Haible  <bruno@clisp.org>
49768
49769         * lib/mbswidth.h: Include <wchar.h> only if
49770         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
49771         <wchar.h>.
49772         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
49773
49774 2004-03-09  Paul Eggert  <eggert@twinsun.com>
49775
49776         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
49777         Sync with libc CVS.
49778         * lib/getopt_int.h: New file, also synced from libc.
49779
49780 2004-03-09  Paul Eggert  <eggert@twinsun.com>
49781
49782         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
49783         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
49784         Bring back getopt.c, getopt.h, getopt1.c.
49785
49786 2004-03-07  Paul Eggert  <eggert@twinsun.com>
49787
49788         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
49789         All uses changed.  Check for sa_sigaction member; this fixes
49790         a bug first reported by Jason Andrade in
49791         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
49792
49793 2004-03-07  Paul Eggert  <eggert@twinsun.com>
49794
49795         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
49796         '#if' expressions.  Unlike the code it replaces, it does not
49797         depend on (defined _SC_PAGESIZE).  However, it does depend on
49798         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
49799         first reported by Jason Andrade in
49800         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
49801
49802 2004-02-25  Simon Josefsson  <jas@extundo.com>
49803
49804         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
49805
49806 2004-02-25  Simon Josefsson  <jas@extundo.com>
49807
49808         * lib/strdup.h: New file.
49809         * lib/strdup.c: Include it.
49810         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
49811         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
49812
49813 2004-02-23  Karl Berry  <karl@gnu.org>
49814
49815         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
49816         (from fencepost.gnu.org:/gd/gnuorg).
49817
49818 2004-02-23  Karl Berry  <karl@gnu.org>
49819
49820         * config/srclistvars.sh (GNUORG) [karl]: redefine.
49821         * config/srclist.txt: add maintain/standards documents.
49822
49823 2004-02-18  Bruno Haible  <bruno@clisp.org>
49824
49825         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
49826         Reported by Derek Robert Price <derek@ximbiot.com>.
49827
49828 2004-02-16  Karl Berry  <karl@gnu.org>
49829
49830         * config/mkinstalldirs, install-sh: update from automake.
49831
49832 2004-02-06  Karl Berry  <karl@gnu.org>
49833
49834         * m4/po.m4: update from gettext 0.14.1.
49835
49836 2004-02-06  Karl Berry  <karl@gnu.org>
49837
49838         * lib/config.charset: update from gettext 0.14.1.
49839
49840 2004-02-05  Paul Eggert  <eggert@twinsun.com>
49841
49842         Add comments and code, prompted by suggestions from Bruno Haible
49843         for sh-quote.
49844         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
49845         describing the enum quoting_style values.
49846         * lib/quotearg.c (quotearg_alloc): New function.
49847         (quotearg_buffer_restyled): Treat lone { and } as special.
49848         Treat = as special.  Work around bug with older shells
49849         that "see" a '\' that is really the 2nd byte of a multibyte char.
49850         Quote empty string with shell_quoting_style.
49851
49852 2004-02-03  Bruno Haible  <bruno@clisp.org>
49853
49854         * m4/pipe.m4: New file, from GNU gettext.
49855
49856 2004-02-03  Bruno Haible  <bruno@clisp.org>
49857
49858         * lib/pipe.h: New file, from GNU gettext.
49859         * lib/pipe.c: New file, from GNU gettext.
49860
49861 2004-01-27  Bruno Haible  <bruno@clisp.org>
49862
49863         * m4/execute.m4: New file, from GNU gettext.
49864
49865 2004-01-27  Bruno Haible  <bruno@clisp.org>
49866
49867         * lib/execute.h: New file, from GNU gettext.
49868         * lib/execute.c: New file, from GNU gettext.
49869         * lib/w32spawn.h: New file, from GNU gettext.
49870
49871 2004-01-24  Paul Eggert  <eggert@twinsun.com>
49872
49873         Merge from diffutils.
49874
49875         * lib/file-type.c (file_type): Add typed memory objects.
49876         * lib/file-type.h (S_TYPEISTMO): New macro.
49877
49878         * lib/c-stack.h (c_stack_action): Remove argv argument.
49879         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
49880         (die): Don't calculate message unless segv_action returns.
49881         (get_stack_location, min_address_from_argv, max_address_from_argv,
49882         volatile stack_base, volatile_stack_size): Remove.
49883         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
49884         that every segmentation violation is a stack overflow.  (Ouch!)
49885         See Debian bug 136249 (still outstanding) for more info about why
49886         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
49887
49888 2004-01-24  Paul Eggert  <eggert@twinsun.com>
49889
49890         Exit-status fix from coreutils.
49891
49892         Use exit_failure consistently in place of EXIT_FAILURE,
49893         so that program exit statuses are consistent on failure.
49894
49895         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
49896         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
49897         * lib/argmatch.h: Comment fix to match the above.
49898         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
49899         Now a macro referring to exit_failure, instead of a separate
49900         variable.  Include "exitfail.h" to get it.
49901         * lib/xstrtol.h: Include "exitfail.h".
49902         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
49903
49904         * lib/long-options.c (parse_long_options): Use prototype
49905         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
49906         for clarity.
49907
49908 2004-01-21  Jim Meyering  <jim@meyering.net>
49909
49910         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
49911         so as not to conflict with a different-sized __mktime_internal
49912         function in GNU libc.
49913         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
49914         Problem building statically-linked `ls' reported by Michael Brunnbauer.
49915
49916 2004-01-20  Karl Berry  <karl@gnu.org>
49917
49918         * config/config.guess: update from config.
49919
49920         * config/srclistvars.sh: GNUWWWLICENSES for karl.
49921
49922 2004-01-20  Bruno Haible  <bruno@clisp.org>
49923
49924         Safer stack allocation.
49925         * lib/setenv.c: Include allocsa.h.
49926         (alloca): Remove fallback definition.
49927         (freea): Remove macro.
49928         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
49929         instead of freea.
49930
49931 2004-01-20  Bruno Haible  <bruno@clisp.org>
49932
49933         * m4/eealloc.m4: New file, from GNU gettext.
49934
49935 2004-01-20  Bruno Haible  <bruno@clisp.org>
49936
49937         * m4/allocsa.m4: New file, from GNU gettext.
49938
49939 2004-01-20  Bruno Haible  <bruno@clisp.org>
49940
49941         * lib/xallocsa.h: New file, from GNU gettext.
49942         * lib/xallocsa.c: New file, from GNU gettext.
49943
49944 2004-01-20  Bruno Haible  <bruno@clisp.org>
49945
49946         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
49947
49948 2004-01-20  Bruno Haible  <bruno@clisp.org>
49949
49950         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
49951         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
49952         specially.
49953
49954 2004-01-20  Bruno Haible  <bruno@clisp.org>
49955
49956         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
49957         patch.
49958
49959 2004-01-20  Bruno Haible  <bruno@clisp.org>
49960
49961         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
49962
49963 2004-01-20  Bruno Haible  <bruno@clisp.org>
49964
49965         * lib/eealloc.h: New file.
49966
49967 2004-01-20  Bruno Haible  <bruno@clisp.org>
49968
49969         * lib/binary-io.h: Avoid warnings on Cygwin.
49970
49971 2004-01-20  Bruno Haible  <bruno@clisp.org>
49972
49973         * lib/allocsa.h: New file, from GNU gettext.
49974         * lib/allocsa.c: New file, from GNU gettext.
49975
49976 2004-01-18  Karl Berry  <karl@gnu.org>
49977
49978         * doc/gpl.texi, doc/lgpl.texi: new files.
49979
49980 2004-01-18  Karl Berry  <karl@gnu.org>
49981
49982         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
49983         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
49984
49985 2004-01-15  Paul Eggert  <eggert@twinsun.com>
49986
49987         Merge from coreutils.
49988
49989         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
49990         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
49991         (gl_DEFAULT_POSIX2_VERSION): Move
49992         the documentation from 'configure' into 'config.hin',
49993         so that 'configure --help' isn't burdened by it and
49994         we don't have to worry about its formatting there.
49995         Reword the documentation so that it's more succinct
49996         and can be run together into a single paragraph.
49997         * m4/same.m4 (gl_SAME): Check for pathconf.
49998
49999 2004-01-15  Paul Eggert  <eggert@twinsun.com>
50000
50001         Merge from coreutils.
50002
50003         * lib/posixver.c: Include posixver.h.
50004
50005         * lib/same.c: Include <stdbool.h>, <limits.h>.
50006         (_POSIX_NAME_MAX): Define if not defined.
50007         (MIN): New macro.
50008         (same_name): If file names are silently truncated, report
50009         that the file names are the same if they are the same after
50010         the silent truncation.
50011
50012         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
50013         conversion function.
50014         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
50015         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
50016         longer needed.
50017
50018 2004-01-15  Jim Meyering  <jim@meyering.net>
50019
50020         Merge from coreutils.
50021
50022         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
50023         if no library is required.
50024         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
50025         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
50026         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
50027         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
50028         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
50029         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
50030         value, $ac_cv_search_crypt, if it's "none required".
50031         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
50032         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
50033         not gl_FUNC_GETLOADAVG.
50034         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
50035         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
50036
50037 2004-01-15  Jim Meyering  <jim@meyering.net>
50038
50039         Merge from coreutils.
50040
50041         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
50042         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
50043         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
50044
50045         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
50046         optional configure-time default.
50047
50048         * lib/version-etc.c (version_etc_copyright): Update copyright date.
50049
50050         * lib/xreadlink.c (xreadlink): Correct outdated comment.
50051
50052 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
50053
50054         Merge from coreutils.
50055
50056         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
50057         value, $ac_cv_search_nanosleep, if it's "none required".
50058
50059 2004-01-14  Paul Eggert  <eggert@twinsun.com>
50060
50061         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
50062         with like-named macro in fnmatch.c.
50063         (EXT): Use an internal constant instead.
50064
50065         Merge fnmatch patches from glibc.
50066         * lib/fnmatch.c (mbsinit): Remove define.
50067         Add libc_hidden_ver (__fnmatch, fnmatch).
50068         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
50069         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
50070
50071 2004-01-14  Karl Berry  <karl@gnu.org>
50072
50073         * config/install-sh: update from automake.
50074
50075 2004-01-13  Karl Berry  <karl@gnu.org>
50076
50077         * config/install-sh: update from automake.
50078
50079 2004-01-09  Karl Berry  <karl@gnu.org>
50080
50081         * config/install-sh: update from automake.
50082
50083 2004-01-05  Karl Berry  <karl@gnu.org>
50084
50085         * config/config.{sub,guess}: update from config.
50086
50087 2003-12-31  Karl Berry  <karl@gnu.org>
50088
50089         * config/depcomp: update from automake.
50090
50091 2003-12-14  Karl Berry  <karl@gnu.org>
50092
50093         * lib/config.charset: update from gettext-runtime.
50094
50095 2003-12-03  Paul Eggert  <eggert@twinsun.com>
50096
50097         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
50098         Bug reported by Alfred M. Szmidt.
50099
50100 2003-12-03  Bruno Haible  <bruno@clisp.org>
50101
50102         * m4/gettext.m4: Upgrade from gettext-0.13.
50103         * m4/po.m4: Upgrade from gettext-0.13.
50104         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
50105         * m4/intmax.m4: New file, from gettext-0.13.
50106         * m4/printf-posix.m4: New file, from gettext-0.13.
50107
50108 2003-11-29  Karl Berry  <karl@gnu.org>
50109
50110         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
50111
50112 2003-11-25  Paul Eggert  <eggert@twinsun.com>
50113             Bruno Haible  <bruno@clisp.org>
50114
50115         * lib/printf-parse.h: Don't include sys/types.h.
50116         (ARG_NONE): New macro.
50117         (char_directive): Change type of *arg_index fields to size_t.
50118         * lib/printf-parse.c: Don't include sys/types.h.
50119         (SSIZE_MAX): Remove macro.
50120         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
50121         Remove unnecessary overflow check.
50122         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
50123         fields.
50124
50125 2003-11-25  Bruno Haible  <bruno@clisp.org>
50126
50127         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
50128
50129 2003-11-25  Bruno Haible  <bruno@clisp.org>
50130
50131         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
50132         gt_TYPE_SSIZE_T.
50133
50134 2003-11-24  Paul Eggert  <eggert@twinsun.com>
50135
50136         * modules/alloca: Remove dependency on xalloc.
50137
50138 2003-11-24  Paul Eggert  <eggert@twinsun.com>
50139
50140         * lib/alloca.c: Remove dependency on xalloc module.
50141         (xalloc_die): Remove.
50142         (memory_full) [!defined emacs]: New macro.
50143         [!defined emacs]: Don't include xalloc.h.
50144         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
50145         address arithmetic overflows.  Change datatypes a bit to avoid
50146         unnecessary casts.
50147
50148 2003-11-22  Jim Meyering  <jim@meyering.net>
50149
50150         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
50151         s/size/size_t/.
50152
50153 2003-11-21  Karl Berry  <karl@gnu.org>
50154
50155         * config/config.{sub,guess}: update from config.
50156
50157 2003-11-18  Karl Berry  <karl@gnu.org>
50158
50159         * config/config.{sub,guess}: update from config.
50160
50161         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
50162
50163 2003-11-17  Paul Eggert  <eggert@twinsun.com>
50164
50165         * README: Mention that S+T cannot overflow if S is the size of
50166         an existing object and T is sufficiently small.
50167
50168 2003-11-17  Jim Meyering  <jim@meyering.net>
50169
50170         On systems without utime and without a utimes function capable of
50171         dealing with a NULL struct utimbuf* argument, this utime replacement
50172         could -- in unusual circumstances -- leak a file descriptor.
50173         * lib/utime.c: Include <unistd.h> and <errno.h>.
50174         (utime_null): Be sure to close `fd' and to preserve errno.
50175         Reported by Geoff Collyer via Arnold Robbins.
50176
50177 2003-11-17  Bruno Haible  <bruno@clisp.org>
50178
50179         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
50180         (Depends-on): Add xsize.
50181
50182 2003-11-17  Bruno Haible  <bruno@clisp.org>
50183
50184         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
50185
50186 2003-11-17  Bruno Haible  <bruno@clisp.org>
50187
50188         * lib/vasnprintf.c (alloca): Remove fallback definition.
50189         (freea): Remove definition.
50190         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
50191         Reported by Paul Eggert.
50192
50193 2003-11-16  Paul Eggert  <eggert@twinsun.com>
50194             Bruno Haible  <bruno@clisp.org>
50195
50196         Protect against address arithmetic overflow.
50197         * lib/printf-args.h: Include stddef.h.
50198         (arguments): Change type of field 'count' to size_t.
50199         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
50200         'unsigned int' where appropriate.
50201         * lib/printf-parse.h: Include sys/types.h.
50202         (char_directive): Change type of *arg_index fields to ssize_t.
50203         (char_directives): Change type of fields 'count', max_*_length to
50204         size_t.
50205         * lib/printf-parse.c: Include sys/types.h and xsize.h.
50206         (SSIZE_MAX): Define fallback value.
50207         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
50208         instead of 'int' where appropriate. Check a_allocated, d_allocated
50209         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
50210         * lib/vasnprintf.c: Include xsize.h.
50211         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
50212         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
50213         overflow. Avoid wraparound when converting a width or precision from
50214         decimal to binary.
50215
50216 2003-11-16  Bruno Haible  <bruno@clisp.org>
50217
50218         Update from GNU gettext.
50219         * lib/printf-parse.c: Generalize to it can be compiled for wide
50220         strings.
50221         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
50222         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
50223         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
50224         SNPRINTF): New macros.
50225         Don't include <alloca.h> if the file is used inside libintl.
50226         (local_wcslen): New function, for Solaris 2.5.1.
50227         (VASNPRINTF): Use it instead of wcslen.
50228
50229 2003-11-16  Bruno Haible  <bruno@clisp.org>
50230
50231         * lib/xsize.h (xmax): New function.
50232         (xsum, xsum3, xsum4): Declare as "pure" functions.
50233
50234 2003-11-12  Paul Eggert  <eggert@twinsun.com>
50235
50236         * modules/xalloc (Files): Undo latest change, since xalloc.h
50237         no longer needs SIZE_MAX or PTRDIFF_MAX.
50238
50239 2003-11-12  Paul Eggert  <eggert@twinsun.com>
50240
50241         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
50242         gl_PTRDIFF_MAX.
50243
50244 2003-11-12  Paul Eggert  <eggert@twinsun.com>
50245
50246         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
50247         "return", to pacify some unknown compiler.  Problem reported
50248         by Joerg Schilling.
50249
50250 2003-11-12  Paul Eggert  <eggert@twinsun.com>
50251
50252         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
50253         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
50254         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
50255         heuristic is just as accurate as far as we know, and it removes a
50256         dependency on size_max.m4 and ptrdiff_max.m4.
50257
50258 2003-11-11  Bruno Haible  <bruno@clisp.org>
50259
50260         * modules/xsize (Files): Add m4/size_max.m4.
50261         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
50262
50263 2003-11-11  Bruno Haible  <bruno@clisp.org>
50264
50265         * m4/size_max.m4: New file.
50266         * m4/ptrdiff_max.m4: New file.
50267         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
50268         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
50269         (gl_XALLOC): Invoke it.
50270
50271 2003-11-11  Bruno Haible  <bruno@clisp.org>
50272
50273         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
50274         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
50275         defined.
50276
50277 2003-11-10  Paul Eggert  <eggert@twinsun.com>
50278
50279         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
50280         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
50281         rejected some allocations of exactly SIZE_MAX - 2 bytes.
50282         From Bruno Haible.
50283         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
50284         not (size_t) -1, since it's defined here.
50285
50286 2003-11-09  Karl Berry  <karl@gnu.org>
50287
50288         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
50289
50290 2003-11-06  Paul Eggert  <eggert@twinsun.com>
50291
50292         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
50293         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
50294         Reject sizes of exactly SIZE_MAX bytes.
50295         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
50296         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
50297
50298 2003-11-05  Bruno Haible  <bruno@clisp.org>
50299
50300         * lib/xsize.h: Include limits.h, to avoid a possible collision with
50301         SIZE_MAX defined in <limits.h> on Solaris.
50302
50303 2003-11-04  Jim Meyering  <jim@meyering.net>
50304
50305         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
50306         variable names, rather than @VAR@.
50307         * modules/poll: Likewise.
50308
50309 2003-11-04  Bruno Haible  <bruno@clisp.org>
50310
50311         * modules/xsize: New file.
50312         * modules/linebreak: Depend on xsize.
50313         * MODULES.html.sh (func_all_modules): Add xsize.
50314
50315 2003-11-04  Bruno Haible  <bruno@clisp.org>
50316
50317         * m4/xsize.m4: New file.
50318
50319 2003-11-04  Bruno Haible  <bruno@clisp.org>
50320
50321         * lib/xsize.h: New file.
50322         * lib/linebreak.c: Include xsize.h.
50323         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
50324         argument for overflow.
50325         Suggested by Paul Eggert.
50326
50327 2003-11-03  Karl Berry  <karl@gnu.org>
50328
50329         * config/config.{guess,sub}: update from config.
50330
50331 2003-11-03  Jim Meyering  <jim@meyering.net>
50332
50333         * modules/userspec (lib_SOURCES): Add userspec.h.
50334         (Include): Add "userspec.h".
50335         Improve description.
50336
50337 2003-11-03  Jim Meyering  <jim@meyering.net>
50338
50339         * lib/userspec.c: Include "userspec.h".
50340         * lib/userspec.h: New file.
50341
50342 2003-11-03  Bruno Haible  <bruno@clisp.org>
50343
50344         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
50345
50346 2003-11-03  Bruno Haible  <bruno@clisp.org>
50347
50348         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
50349         available, to avoid (extremely rare) race condition.
50350         Suggested by Paul Eggert.
50351
50352 2003-11-02  Karl Berry  <karl@gnu.org>
50353
50354         * config/srclist.txt (vasprintf.c): sync broken, sigh.
50355
50356 2003-10-31  Paul Eggert  <eggert@twinsun.com>
50357
50358         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
50359         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
50360         (read_filesystem_list): Set and use me_type_malloced.
50361         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
50362         whatever the type happens to be), for brevity and consistency.
50363         Check for size calculation overflow on Alphas running OSF/1.
50364
50365 2003-10-31  Jim Meyering  <jim@meyering.net>
50366
50367         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
50368
50369         * lib/linebuffer.c: Include <string.h> for declaration of memset.
50370
50371 2003-10-30  Paul Eggert  <eggert@twinsun.com>
50372             Bruno Haible  <bruno@clisp.org>
50373
50374         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
50375         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
50376
50377 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
50378
50379         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
50380         netbsd*-gnu*.  Suggested by Robert Millan.
50381
50382 2003-10-29  Paul Eggert  <eggert@twinsun.com>
50383
50384         * modules/group-member: Depend on stdbool.
50385
50386 2003-10-29  Paul Eggert  <eggert@twinsun.com>
50387
50388         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
50389
50390 2003-10-29  Paul Eggert  <eggert@twinsun.com>
50391
50392         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
50393         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
50394         after the 'gnu' in these cases.  This fixes some bugs in the
50395         previous change, and is based on suggestions by Robert Millan.
50396
50397 2003-10-29  Paul Eggert  <eggert@twinsun.com>
50398
50399         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
50400         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
50401         no longer needed.
50402         * lib/quotearg.c (quotearg_n_options): Use it.
50403         * lib/group-member.c: Include <stdbool.h>.
50404         (free_group_info): Arg is now const *; don't free arg.
50405         (get_group_info): Now returns bool and accepts struct group_info *,
50406         rather than returning a malloc'ed struct group_info *.
50407         All uses changed.  Check for overflow in internal size calculation.
50408
50409         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
50410         rather than xmalloc/xrealloc.
50411         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
50412         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
50413         conformance bug: the old code used a pointer after freeing the
50414         storage that it addressed.
50415         * lib/hash.c (hash_initialize): Simplify the code by using
50416         xalloc_oversized rather than doing it by hand.
50417         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
50418         the buffer preserved.  Use free and xmalloc instead.
50419         * lib/quotearg.c (quotearg_n_options): Likewise.
50420         Use a simpler test for size overflow.  Don't use xalloc_oversized
50421         because unsigned int might be wider than size_t (!); this suggests
50422         that we should switch from unsigned int to size_t for slot numbers.
50423
50424 2003-10-28  Paul Eggert  <eggert@twinsun.com>
50425
50426         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
50427         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
50428         NetBSD kernels.  Requested by Richard Stallman.
50429
50430 2003-10-27  Paul Eggert  <eggert@twinsun.com>
50431
50432         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
50433         to allocate the returned structure.  Do not allocate a subarray,
50434         as x2nrealloc will do that.
50435         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
50436         instead of xnrealloc.
50437         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
50438
50439 2003-10-27  Bruno Haible  <bruno@clisp.org>
50440
50441         * lib/stdbool_.h: Better support for BeOS.
50442
50443 2003-10-26  Paul Eggert  <eggert@twinsun.com>
50444
50445         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
50446         now uses inline.
50447
50448 2003-10-26  Paul Eggert  <eggert@twinsun.com>
50449
50450         * lib/xalloc.h (xalloc_oversized): New static inline function, for
50451         callers that want to do their own size-overflow checking.  Include
50452         <stdbool.h>, since xalloc_oversized returns bool.
50453         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
50454         to use xalloc_oversized.
50455
50456         Add two functions x2realloc, x2nrealloc, for programs that grow
50457         arrays dynamically by doubling their sizes.
50458         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
50459         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
50460         New functions.
50461
50462         Port to C99 semantics for 'inline' of external functions.
50463         Bug reported by Bruno Haible.
50464         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
50465         with the old contents of xnmalloc.
50466         (xnmalloc, xmalloc): Use it.
50467         (xnrealloc_inline): New static inline function,
50468         with the old contents of xnrealloc.
50469         (xnrealloc, xrealloc): Use it.
50470
50471         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
50472         that.
50473
50474 2003-10-26  Karl Berry  <karl@gnu.org>
50475
50476         * config/srclist.txt (COPYING.DOC): no longer available from
50477         /gd/gnuorg; don't know where the ultimate source is.
50478
50479 2003-10-25  Paul Eggert  <eggert@twinsun.com>
50480
50481         Fix several address-calculation bugs in the hash modules,
50482         plus some minor code cleanup.
50483
50484         * lib/hash.h: Include <stdbool.h>, for bool.
50485         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
50486         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
50487         hash_get_n_entries, hash_get_max_bucket_length,
50488         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
50489         hash_rehash): Use size_t rather than unsigned.
50490         * lib/hash.c (struct hash_table, hash_get_n_buckets,
50491         hash_get_n_buckets_used, hash_get_n_entries,
50492         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
50493         hash_get_entries, hash_do_for_each, hash_string, is_prime,
50494         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
50495         Likewise.
50496         (SIZE_MAX): Define if not defined.
50497         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
50498         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
50499         hash_print):
50500         Use const * when possible.
50501         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
50502         (check_tuning): Fix bug: if tuning parameters were very close to
50503         0 or 1, rounding errors could have caused subscript violations.
50504         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
50505         (hash_initialize): Add 'fail:' label
50506         to free table and return NULL, and use it to simplify code.
50507         Use calloc rather than clearing the storage ourself.
50508         (hash_initialize, hash_rehash): Check for arithmetic overflow in
50509         buffer size calculations.
50510         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
50511         Include <stddef.h>, for size_t.
50512         * lib/hash-pjw.c (hash_pjw): Likewise.
50513         Switch to method described by Bruno Haible.
50514         Include <limits.h>, for CHAR_BIT.
50515         (SIZE_BITS): New macro.
50516
50517 2003-10-23  Paul Eggert  <eggert@twinsun.com>
50518
50519         * m4/getline.m4 (AM_FUNC_GETLINE):
50520         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
50521         hosts.  Problem reported by Derek Robert Price in
50522         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
50523         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
50524         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
50525
50526 2003-10-21  Paul Eggert  <eggert@twinsun.com>
50527
50528         * lib/getndelim2.c (getndelim2): When size calculation overflows,
50529         ceiling the allocation at NMAX bytes rather than silently
50530         discarding input bytes before NMAX is reached.  This makes
50531         a difference only if NMAX exceeds SIZE_MAX / 2.
50532
50533         * lib/obstack.c: Merge from glibc.
50534         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
50535         Add libc_hidden_def (_obstack_newchunk).
50536         (_obstack_free) [! defined _LIBC]: Remove.
50537         [defined _LIBC]: Make a strong alias from obstack_free, rather than
50538         a clone of the function body.
50539         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
50540         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
50541
50542         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
50543         glibc.
50544         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
50545         arg to memcpy.
50546
50547         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
50548         (obstack_ptr_grow_fast, obstack_int_grow_fast):
50549         Don't use lvalue casts, as GCC plans to remove support for them
50550         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
50551         was also present in the non-GCC version, indicating that this
50552         code had always been buggy and had never been widely used.
50553         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
50554         Use the fast variant of each macro, rather than copying the
50555         definiens of the fast variant; that way, we'll be more likely to
50556         catch future bugs in the fast variants.
50557
50558 2003-10-20  Bruno Haible  <bruno@clisp.org>
50559
50560         * modules/wait-process: New file.
50561         * MODULES.html.sh (func_all_modules): Add wait-process.
50562
50563 2003-10-20  Bruno Haible  <bruno@clisp.org>
50564
50565         * m4/wait-process.m4: New file.
50566
50567 2003-10-20  Bruno Haible  <bruno@clisp.org>
50568
50569         * lib/wait-process.h: New file, from GNU gettext.
50570         * lib/wait-process.c: New file, from GNU gettext.
50571
50572 2003-10-19  Jim Meyering  <jim@meyering.net>
50573
50574         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
50575         HPUX 10.20.
50576
50577 2003-10-18  Karl Berry  <karl@gnu.org>
50578
50579         * config/config.guess: update from config.
50580
50581 2003-10-16  Paul Eggert  <eggert@twinsun.com>
50582
50583         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
50584         (getgroups): First arg is int, not size_t.
50585         Don't let 'free' mangle errno.
50586
50587 2003-10-16  Paul Eggert  <eggert@twinsun.com>
50588
50589         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
50590
50591 2003-10-16  Karl Berry  <karl@gnu.org>
50592
50593         * config/config.{guess,sub}: update from config.
50594
50595 2003-10-16  Jim Meyering  <jim@meyering.net>
50596
50597         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
50598         memcpy.
50599
50600 2003-10-15  Paul Eggert  <eggert@twinsun.com>
50601
50602         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
50603         (SIZE_MAX): Remove.
50604         (new_exclude, add_exclude_file): Initial size no longer needs to
50605         be a power of 2.
50606         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
50607         our own address arithmetic overflow checking.
50608
50609         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
50610         (fnmatch): Do not alloca more than 2000 wide characters;
50611         instead, use malloc for large buffers.
50612         Check for address arithmetic overflow, and return -1
50613         with errno set to ENOMEM in that case.
50614         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
50615         (NEW_PATTERN): Do not alloca more than 8000 bytes;
50616         instead, return -1.  Check for address arithmetic overflow.
50617
50618 2003-10-14  Paul Eggert  <eggert@twinsun.com>
50619
50620         Handle invalid suffixes and overflow independently, so that
50621         callers can treat them independently as needed.  Fix some bugs in
50622         suffix handling, e.g., "100k@" was not diagnosed as an invalid
50623         suffix for a human-readable blocksize.  The major caller-visible
50624         change is the addition of a new
50625         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
50626         that both overflow and suffix chars were found.
50627
50628         * lib/human.c (humblock): Don't check separately for invalid suffix
50629         char; that is xstrtoumax's job (now that its bug is fixed).
50630         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
50631         INTMAX_MAX]: New macros.
50632         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
50633         TYPE_MAXIMUM): New macros.
50634         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
50635         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
50636         if overflow occurs, as it's what __strtol does and it's more useful
50637         in practice.
50638         (__xstrtol): If __strtol reports some error other than ERANGE,
50639         reflect it to the caller as LONGINT_INVALID.  If it reports
50640         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
50641         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
50642         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
50643         value.
50644         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
50645         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
50646         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
50647         [defined UINTMAX_MAX]: New macros.
50648
50649 2003-10-14  Bruno Haible  <bruno@clisp.org>
50650
50651         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
50652
50653 2003-10-14  Bruno Haible  <bruno@clisp.org>
50654
50655         * m4/sig_atomic_t: New file, from GNU gettext.
50656         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
50657
50658 2003-10-14  Bruno Haible  <bruno@clisp.org>
50659
50660         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
50661         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
50662         Also use volatile where needed.
50663
50664 2003-10-12  Paul Eggert  <eggert@twinsun.com>
50665
50666         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
50667         Change maintainer from Bruno Haible to 'all'.
50668
50669 2003-10-12  Paul Eggert  <eggert@twinsun.com>
50670
50671         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
50672
50673 2003-10-12  Paul Eggert  <eggert@twinsun.com>
50674
50675         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
50676         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
50677         and define in terms of the other primitives.
50678         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
50679         (SIZE_MAX): Define if not already defined.
50680         (array_size_overflow): New function.
50681         (xalloc_die): Abort instead of exiting if 'error' returns.
50682         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
50683         (xmalloc, xrealloc): Use them.
50684         (xcalloc): Check for address arithmetic overflow.
50685         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
50686         a bit faster than strcpy.
50687
50688 2003-10-10  Simon Josefsson  <jas@extundo.com>
50689
50690         * modules/argp (Depends-on): Add restrict and strcase.
50691
50692 2003-10-10  Simon Josefsson  <jas@extundo.com>
50693
50694         * m4/argp.m4: Add AC_C_INLINE.
50695
50696 2003-10-08  Paul Eggert  <eggert@twinsun.com>
50697
50698         Merge getpass from libc, plus a few fixes.
50699
50700         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
50701         Include <stdbool.h>.
50702         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
50703         __fsetlocking to empty.
50704         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
50705         do include <bits/libc-lock.h>.
50706         Do not include <fcntl.h>; not needed.
50707         [_LIBC]: Include <wchar.h>.
50708         (NOTCANCEL_MODE): New macro.
50709         (flockfile, funlockfile) [_LIBC]: New macros.
50710         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
50711         [!_LIBC]: New macros.
50712         (call_fclose): New function.
50713         (getpass): Use it.  Save tty stream separately; this simplifies the
50714         code and makes it more reliable if stdin happens to equal stdout.
50715         Invoke __fsetlocking on tty.
50716         Handle thread cancellation if needed.
50717         Namespace cleanup (use __tcgetattr, __getline).
50718         Use bool for Booleans.
50719         [USE_IN_LIBIO]: Handle wide streams.
50720         [!_LIBC]: Unconditionally do the fseek, since we don't know what
50721         stream might go where.
50722
50723         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
50724         doesn't have to include <stdio.h> before us.
50725         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
50726         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
50727         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
50728         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
50729         if not declared, so that we can use getpass.c code from libc without
50730         rewriting it.
50731         (flockfile, ftrylockfile, funlockfile): New macros.
50732
50733 2003-10-08  Paul Eggert  <eggert@twinsun.com>
50734
50735         * modules/getpass: Depend on stdbool.
50736
50737 2003-10-08  Paul Eggert  <eggert@twinsun.com>
50738
50739         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
50740
50741 2003-10-07  Karl Berry  <karl@gnu.org>
50742
50743         * config/config.{guess,sub}: update from config.
50744
50745 2003-10-06  Jim Meyering  <jim@meyering.net>
50746             Bruno Haible  <bruno@clisp.org>
50747
50748         This lets translators provide better translations for the
50749         "Written by ..." part of --version output.
50750         * lib/version-etc.h: Include stdarg.h.
50751         (version_etc_copyright): Declare as readonly.
50752         (version_etc): Make this function variadic with a NULL-terminated list
50753         of author name strings.
50754         (version_etc_va): New declaration.
50755         * lib/version-etc.c: Include stdarg.h, stdlib.h.
50756         (version_etc_copyright): Declare as readonly.
50757         (version_etc_va): New function. Provide a different translatable string
50758         for each possible number of authors < 10. Abbreviate when there are 10
50759         authors or more.
50760         (version_etc): Make this function variadic. Call version_etc_va.
50761         Suggestion from Gary V. Vaughan.
50762
50763         * lib/long-options.h (parse_long_options): Change prototype: the
50764         authors string is moved to the end and becomes variadic.
50765         * lib/long-options.c: Include stdarg.h.
50766         (parse_long_options): Make this function variadic, too.
50767         Call version_etc_va, not version_etc.
50768
50769 2003-10-06  Bruno Haible  <bruno@clisp.org>
50770
50771         * modules/version-etc-2: Remove file.
50772         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
50773
50774 2003-10-06  Bruno Haible  <bruno@clisp.org>
50775
50776         * modules/fatal-signal: New file.
50777         * MODULES.html.sh (func_all_modules): Add fatal-signal.
50778
50779 2003-10-06  Bruno Haible  <bruno@clisp.org>
50780
50781         * m4/fatal-signal.m4: New file.
50782         * m4/signalblocking.m4: New file, from GNU gettext.
50783
50784 2003-10-06  Bruno Haible  <bruno@clisp.org>
50785
50786         * lib/version-etc-2.h: Remove file.
50787         * lib/version-etc-2.c: Remove file.
50788
50789 2003-10-06  Bruno Haible  <bruno@clisp.org>
50790
50791         * lib/fatal-signal.h: New file, from GNU gettext.
50792         * lib/fatal-signal.c: New file, from GNU gettext.
50793
50794 2003-10-05  Paul Eggert  <eggert@twinsun.com>
50795
50796         * README: Rework advice for preventing empty .o files.
50797         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
50798         not <sys/types.h>.
50799
50800 2003-10-04  Karl Berry  <karl@gnu.org>
50801
50802         * lib/argp*: update from libc.
50803
50804 2003-10-04  Karl Berry  <karl@gnu.org>
50805
50806         * config/config.{guess,sub}: update from config.
50807
50808 2003-10-02  Bruno Haible  <bruno@clisp.org>
50809
50810         * modules/lchown (Include): Add lchown.h.
50811         * modules/time_r (Include): Use "..." syntax.
50812         * modules/xgetdomainname (Include): Add xgetdomainname.h.
50813
50814 2003-10-01  Simon Josefsson  <jas@extundo.com>
50815
50816         * MODULES.html.sh (func_all_modules): Move gethostname from section
50817         'based on' to section 'lacking' POSIX:2001.
50818
50819 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
50820
50821         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
50822         to output mode on the same stream.
50823
50824 2003-09-29  Paul Eggert  <eggert@twinsun.com>
50825
50826         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
50827         Fix arg typo in previous patch.
50828
50829 2003-09-28  Jim Meyering  <jim@meyering.net>
50830
50831         * lib/error.c: Correct cpp indentation.
50832
50833 2003-09-27  Paul Eggert  <eggert@twinsun.com>
50834
50835         * modules/free: New file.
50836
50837 2003-09-27  Paul Eggert  <eggert@twinsun.com>
50838
50839         * m4/free.m4: New file.
50840
50841 2003-09-27  Paul Eggert  <eggert@twinsun.com>
50842
50843         * lib/minmax.h (MIN, MAX)
50844         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
50845         Omit the special code that used __typeof__, since we worry that
50846         it could be more trouble than it's worth.  See:
50847         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
50848         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
50849
50850         * lib/free.c: New file.
50851
50852 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
50853
50854         Trivial fixes to Makefile.am parts of module listings.
50855         * modules/strstr: Append strstr.h to lib_SOURCES.
50856         * modules/strcase: Likewise, for strcase.h.
50857
50858 2003-09-27  Karl Berry  <karl@gnu.org>
50859
50860         * config/mkinstalldirs: update from automake.
50861
50862 2003-09-26  Paul Eggert  <eggert@twinsun.com>
50863
50864         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
50865         (error_tail): Do not loop, reallocating temporary buffer, since
50866         the output cannot contain more wide characters than the input
50867         contains bytes, the size must be big enough already.  This avoids
50868         one potential size overflow calculation.  Check for size overflow
50869         when calculating temporary buffer size.  Free temporary buffer
50870         when done, if it was allocated with malloc; this plugs a memory
50871         leak.  Remove casts from void * to pointers, that are no longer
50872         needed now that we're assuming C89 or better.
50873
50874         Merge error changes from glibc.
50875
50876         * lib/error.c, error.h: Update copyright notice header to match glibc.
50877         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
50878         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
50879         Disable cancellation while printing error.
50880         * lib/error.h: Prepend __ to parameter names.
50881
50882 2003-09-26  Jim Meyering  <jim@meyering.net>
50883
50884         * lib/error.c (error_tail): Move some declarations
50885         into inner scope where the local variables are used.
50886
50887 2003-09-26  Bruno Haible  <bruno@clisp.org>
50888
50889         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
50890         stpncpy().
50891         Don't define stpncpy through config.h; it's now done through stpncpy.h.
50892
50893 2003-09-26  Bruno Haible  <bruno@clisp.org>
50894
50895         * lib/stpncpy.h (gnu_stpncpy): New declaration.
50896         (stpncpy): Define as alias for gnu_stpncpy.
50897         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
50898
50899 2003-09-25  Simon Josefsson  <jas@extundo.com>
50900
50901         * lib/xgetdomainname.h: New file.
50902         * lib/xgetdomainname.c: New file.
50903
50904 2003-09-25  Simon Josefsson  <jas@extundo.com>
50905             Bruno Haible  <bruno@clisp.org>
50906
50907         * modules/getdomainname: New file.
50908         * modules/xgetdomainname: New file.
50909         * MODULES.html.sh (func_all_modules): Add getdomainname,
50910         xgetdomainname.
50911
50912 2003-09-25  Simon Josefsson  <jas@extundo.com>
50913             Bruno Haible  <bruno@clisp.org>
50914
50915         * m4/getdomainname.m4: New file.
50916
50917 2003-09-25  Simon Josefsson  <jas@extundo.com>
50918             Bruno Haible  <bruno@clisp.org>
50919
50920         * lib/getdomainname.h: New file.
50921         * lib/getdomainname.c: New file.
50922
50923 2003-09-25  Karl Berry  <karl@gnu.org>
50924
50925         * lib/argp-fmtstream.c, argp-help.c: update from libc.
50926
50927 2003-09-25  Karl Berry  <karl@gnu.org>
50928
50929         * config/install-sh: update from automake.
50930
50931 2003-09-25  Bruno Haible  <bruno@clisp.org>
50932
50933         * modules/version-etc-2: New file, from modules/version-etc with
50934         modifications.
50935         * MODULES.html.sh (func_all_modules): Add version-etc-2.
50936
50937 2003-09-25  Bruno Haible  <bruno@clisp.org>
50938
50939         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
50940         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
50941
50942 2003-09-24  Simon Josefsson  <jas@extundo.com>
50943
50944         * modules/xgethostname: Add xgethostname.h.
50945
50946 2003-09-24  Paul Eggert  <eggert@twinsun.com>
50947
50948         * lib/linebuffer.c (freebuffer): Don't free the argument, just
50949         the buffer associated with the argument.  Bug reported by
50950         Simon Josefsson.
50951
50952 2003-09-24  Paul Eggert  <eggert@twinsun.com>
50953
50954         * README: Document assumptions that 'int' is at least 32 bits
50955         wide, that integer arithmetic is 2's complement without overflow,
50956         that there are no holes in integer values, that adding sizes of
50957         two nonoverlapping objects can't overflow, and that all-bits-zero
50958         yields scalar zero.  Fix spelling and capitalization typos.
50959
50960 2003-09-19  Karl Berry  <karl@gnu.org>
50961
50962         * lib/argp.h: update from libc.
50963
50964 2003-09-17  Paul Eggert  <eggert@twinsun.com>
50965
50966         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
50967         to avoid spurious warnings like "AC_RUN_IFELSE was called before
50968         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
50969
50970 2003-09-17  Paul Eggert  <eggert@twinsun.com>
50971
50972         * gnulib-tool: Use "test -h", not "test -L", for portability
50973         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
50974         (tags_regexp): Remove, since \| doesn't conform to POSIX.
50975         (sed_extract_prog): Issue s commands one-by-one, rather than
50976         using \| in one s command.
50977
50978 2003-09-16  Paul Eggert  <eggert@twinsun.com>
50979
50980         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
50981         input error, instead of returning NULL the next time we are called
50982         (and therefore losing track of errno).
50983
50984 2003-09-16  Bruno Haible  <bruno@clisp.org>
50985
50986         * gnulib-tool (func_create_testdir): Warn about duplicated
50987         dependencies.
50988
50989 2003-09-15  Paul Eggert  <eggert@twinsun.com>
50990
50991         * modules/argmatch, modules/fatal, modules/obstack,
50992         modules/xalloc, modules/xgethostname: Sort dependencies by
50993         importance, not alphabetically.
50994
50995 2003-09-15  Paul Eggert  <eggert@twinsun.com>
50996
50997         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
50998         fails, so that the caller gets the proper errno.
50999
51000         * lib/readutmp.c (read_utmp): Likewise.
51001         Check for fstat error.  Close stream and free storage
51002         when failing.
51003
51004 2003-09-14  Karl Berry  <karl@gnu.org>
51005
51006         * config/srclist.txt (strdup.c): disable for c89 changes.
51007
51008 2003-09-14  Jim Meyering  <jim@meyering.net>
51009
51010         * lib/getloadavg.c: Correct cpp indentation.
51011         * lib/strdup.c: Likewise.
51012         * lib/vasnprintf.c: Likewise.
51013
51014 2003-09-14  Bruno Haible  <bruno@clisp.org>
51015
51016         * modules/fwriteerror: New file.
51017         * MODULES.html.sh (func_all_modules): Add fwriteerror.
51018
51019 2003-09-14  Bruno Haible  <bruno@clisp.org>
51020
51021         * lib/fwriteerror.h: New file.
51022         * lib/fwriteerror.c: New file.
51023
51024 2003-09-12  Paul Eggert  <eggert@twinsun.com>
51025
51026         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
51027         modules/xgethostname, modules/xalloc: Depend on exit.
51028
51029 2003-09-12  Paul Eggert  <eggert@twinsun.com>
51030
51031         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
51032
51033         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
51034         and AC_MINIX, too, so that their extensions are available.
51035
51036         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
51037         This macro has been superseded by gl_BACKUPFILE.
51038
51039         More patches to assume C89 or better.
51040
51041         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
51042
51043         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
51044         unconditionally.
51045         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
51046         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
51047         Include <string.h>, <stdlib.h> unconditionally.
51048         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
51049         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
51050         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
51051         headers or for string.h.
51052         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
51053         or strtoul.
51054
51055         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
51056         headers.
51057         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
51058         * m4/userspec.m4 (gl_USERSPEC): Likewise.
51059         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
51060         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
51061         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
51062         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
51063         memcpy, memset.
51064         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
51065         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
51066         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
51067         strtol.
51068         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
51069         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
51070         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
51071         strtoul.
51072
51073 2003-09-12  Paul Eggert  <eggert@twinsun.com>
51074
51075         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
51076         * lib/obstack.c [!defined _LIBC]: Likewise.
51077         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
51078         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
51079         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
51080
51081         More changes to assume C89 or better.
51082
51083         * lib/error.c (error_tail): Assume vprintf.
51084
51085         * lib/argmatch.c (getenv): Remove decl.
51086         * lib/progreloc.c (get_full_program_name): Define via prototype.
51087         * lib/setenv.c (clearenv): Likewise.
51088         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
51089         needed.
51090         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
51091         (malloc, memcpy): Remove decls.
51092         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
51093         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
51094         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
51095         (memcpy): Remove macro.
51096         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
51097         (__P): Remove.  All uses removed.
51098         (PTR): Remove.  All uses changed to void *.
51099         (CHAR_BIT, NULL): Remove.
51100         (spaces, zeros, memset_space, memset_zero)
51101         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
51102         Remove.
51103         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
51104         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
51105         Define with prototype.
51106         Remove now-unnecessary prototype decl.
51107         (extra_args_spec): Assume ANSI C.  All uses changed.
51108         (extra_args_spec_iso): Remove.
51109         (my_strftime, emacs_strftimeu): Define via prototype.
51110         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
51111         unconditionally.
51112         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
51113         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
51114         (strtoul, strtol): Remove decls.
51115         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
51116         LONG_MAX): Remove.
51117         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
51118         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
51119         (LOCALE_PARAM_PROTO): New macro.
51120         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
51121         (INTERNAL (strtol), strtol): Define with a prototype.
51122         (PARAMS): Remove.  All uses removed.
51123         * lib/tempname.c: Include <string.h> unconditionally.
51124         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
51125         * lib/xgethostname.c (main): Define with a prototype.
51126         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
51127         Include <stdlib.h> unconditionally.
51128         (calloc, malloc, realloc, free): Remove decls.
51129         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
51130         Include <stdlib.h> unconditionally.  Sort include file names.
51131         (strtod): Remove.
51132         (xstrtod): Define with a prototype.
51133         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
51134         (strtol, strtoul): Remove decls.
51135
51136 2003-09-11  Paul Eggert  <eggert@twinsun.com>
51137
51138         More patches to assume C89 or better.
51139         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
51140         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
51141         string.h, memchr, STDC_HEADERS.
51142
51143 2003-09-11  Paul Eggert  <eggert@twinsun.com>
51144
51145         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
51146         Include <stdlib.h>, <string.h> unconditionally.
51147         Remove now-unnecessary cast to char *.
51148         * lib/strnlen.c: Include <string.h> unconditionally.
51149         * lib/yesno.c (yesno): Define with a prototype.
51150
51151 2003-09-11  Bruno Haible  <bruno@clisp.org>
51152
51153         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
51154
51155 2003-09-10  Jim Meyering  <jim@meyering.net>
51156
51157         * lib/error.c: Correct indentation of cpp directives.
51158
51159 2003-09-10  Bruno Haible  <bruno@clisp.org>
51160
51161         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
51162         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
51163         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
51164         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
51165         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
51166         <stdlib.h> and <string.h> checks.
51167         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
51168         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
51169
51170 2003-09-10  Bruno Haible  <bruno@clisp.org>
51171
51172         * lib/strcspn.c: Include <string.h> unconditionally.
51173         * lib/strpbrk.c: Include <string.h> unconditionally.
51174         * lib/strstr.c: Include <string.h> unconditionally.
51175         * lib/unicodeio.c: Include <string.h> unconditionally.
51176         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
51177         * lib/unsetenv.c: Likewise.
51178         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
51179         * lib/yesno.c: Include <stdlib.h> unconditionally.
51180         (rpmatch): Add prototype.
51181
51182 2003-09-09  Paul Eggert  <eggert@twinsun.com>
51183
51184         More patches to assume C89 or better.
51185         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
51186         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
51187         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
51188         or for string.h.
51189         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
51190         stdlib.h.
51191         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
51192         C headers.
51193         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
51194         string.h.
51195         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
51196         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
51197         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
51198         or for string.h.
51199         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
51200         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
51201         C headers.
51202         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
51203         memcpy.
51204         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
51205         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
51206         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
51207         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
51208         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
51209         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
51210         string.h, free.
51211         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
51212         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
51213         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
51214         C headers, or for string.h.
51215         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
51216         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
51217         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
51218         headers, memory.h, stdlib.h, string.h, strings.h.
51219         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
51220         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
51221         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
51222         strchr.
51223         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
51224         headers, memory.h, string.h.
51225         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
51226         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
51227         free.
51228         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
51229         headers.
51230         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
51231         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
51232         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
51233         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
51234         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
51235
51236 2003-09-09  Paul Eggert  <eggert@twinsun.com>
51237
51238         More K&R removal.
51239
51240         * lib/acosl.c (main): Use a prototype.
51241         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
51242         tanl.c: Likewise.
51243
51244         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
51245
51246         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
51247         (getopt, etopt_long, getopt_long_only, _getopt_internal)
51248         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
51249         with a prototype.
51250         * lib/getopt.c (const): Remove macro.
51251         Include <string.h> unconditionally.
51252         (my_index): Remove; all uses changed to strchr.
51253         (strlen): Remove decl.
51254         (exchange): Remove forward decl; no longer needed.
51255         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
51256         Define with prototype.
51257         * lib/getopt1.c (const): Remove macro.
51258         (getopt_long, getopt_long_only, main): Define with prototype.
51259
51260         * lib/getugroups.c: Include <string.h> unconditionally.
51261
51262         * lib/getusershell.c: Include <stdlib.h> unconditionally.
51263         (getusershell, setusershell, endusershell, readname, main):
51264         Define with prototypes.
51265
51266         * lib/group-member.c: Include group-member.h first.
51267         Include <stdlib.h> unconditionally.
51268
51269         * lib/hard-locale.c: Include hard-locale.h first.
51270         Include <stdlib.h>, <string.h> unconditionally.
51271
51272         * lib/hash.c (free, malloc): Remove decls.
51273         Include <stdlib.h> unconditionally.
51274
51275         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
51276         (getenv): Do not declare.
51277
51278         * lib/idcache.c: Include <string.h> unconditionally.
51279
51280         * lib/long-options.c: Include long-options.h first, to test interface.
51281         Include <stdlib.h> unconditionally.
51282
51283         * lib/makepath.c: Include makepath.h first, to test interface.
51284         Include <stdlib.h> and <string.h> unconditionally.
51285
51286         * lib/linebuffer.c: Include <stdlib.h>.
51287         (free): Remove decl.
51288
51289         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
51290         stddef.h. rpl_malloc returns void *, not char *.
51291         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
51292         prototype.
51293
51294         * lib/md5.h: Include <limits.h> unconditionally.
51295         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
51296         (__P): Remove; all uses removed.
51297         * lib/md5.c: Include "md5.h" first.
51298         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
51299         md5_buffer, md5_process_bytes, md5_process_block):
51300         Define with prototypes.
51301         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
51302         * lib/sha.c: Include "sha.h" first.
51303         Include <stdlib.h>, <string.h> unconditionally.
51304
51305         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
51306         * lib/memcmp.c (__ptr_t): Likewise.
51307         * lib/memrchr.c (__ptr_t): Likewise.
51308         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
51309         Include <string.h> unconditionally.
51310         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
51311         * lib/memchr.c: Include <stdlib.h> unconditionally.
51312         * lib/memchr.c (LONG_MAX): Remove.
51313         * lib/memrchr.c (LONG_MAX): Likewise.
51314         * lib/memchr.c (__memchr): Define via a prototype.
51315         * lib/memrchr.c (__memrchr): Likewise.
51316         * lib/memcmp.c (__P): Remove, and remove all uses.
51317         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
51318         Remove forward decls; no longer needed.
51319         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
51320         Use types required by C89 in prototype.
51321
51322         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
51323         * lib/savedir.c: Likewise.
51324         * lib/mkdir.c (free): Remove decl.
51325         * lib/rmdir.c (rmdir): Define with a prototype.
51326         * lib/savedir.c: Include savedir.h first, to test interface.
51327
51328         * lib/mktime.c (STDC_HEADERS): Remove.
51329         Include <stdlib.h>, <string.h> unconditionally.
51330
51331         * lib/modechange.c: Include <stdlib.h> unconditionally.
51332         (malloc): Remove decl.
51333
51334         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
51335         (free): Remove decl.
51336
51337         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
51338         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
51339         (This type really should be intptr_t, but that's a C99ism.)
51340         (_obstack_memcpy): Remove: all uses changed to memcpy.
51341         Include <string.h> unconditionally.
51342         (struct obstack): Assume __STDC__ for types of members
51343         chunkfun, freefun, extra_arg.
51344         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
51345         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
51346         obstack_begin, obstack_specify_allocation,
51347         obstack_specify_allocation_with_arg, obstack_chunkfun,
51348         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
51349         Remove unprototyped decls and the macros that use them.
51350         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
51351         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
51352         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
51353         (defined __STDC__ && __STDC__)]:
51354         Remove nonprototyped code.
51355         Include <stdlib.h> unconditionally.
51356         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
51357         _obstack_allocated_p, _obstack_free, obstack_free,
51358         _obstack_memory_used, print_and_abort):
51359         Define using prototypes.
51360         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
51361         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
51362         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
51363         obstack_next_free, obstack_object_size, obstack_room) [0]:
51364         Remove unused, unprototyped code.
51365
51366         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
51367
51368         * lib/physmem.c (physmem_total, physmem_available, main): Define
51369         with prototypes.
51370
51371         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
51372         (main): Define with a prototype.
51373
51374         * lib/posixver.c (getenv): Remove decl.
51375
51376         * lib/putenv.c (malloc): Returns void *, not char *.
51377         Include <string.h> unconditionally.
51378         (strchr, memcpy, NULL): Do not define.
51379
51380         * lib/readtokens.c: Include readtokens.h first, to test interface.
51381         Include <stdlib.h>, <string.h> unconditionally.
51382         (init_tokenbuffer): Define with a prototype.
51383
51384         * lib/regex.c (PARAMS): Remove.  All uses removed.
51385         All uses of _RE_ARGS removed, too.
51386         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
51387         unconditionally.
51388         (bzero): Assume memset exists.
51389         (memcmp, memcpy, NULL): Remove.
51390         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
51391         char, or assignments to local vars of type signed char.
51392         (init_syntax_once, PREFIX(extract_number_and_incr),
51393         PREFIX(print_partial_compiled_pattern),
51394         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
51395         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
51396         PREFIX(regex_grow_registers), PREFIX(regex_compile),
51397         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
51398         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
51399         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
51400         wcs_compile_range, byte_compile_range, truncate_wchar,
51401         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
51402         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
51403         count_mbs_length, wcs_re_match_2_internal,
51404         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
51405         PREFIX(alt_match_null_string_p),
51406         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
51407         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
51408         regfree, PREFIX(extract_number)): Define with prototype.  Remove
51409         now-unnecessary declaration, if any.
51410         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
51411         regcomp, regexec):
51412         Remove now-unnecessary casts among pointer types.
51413         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
51414
51415         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
51416         (free): Remove decl.
51417
51418         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
51419
51420         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
51421         (free): Remove decl.
51422
51423         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
51424         * lib/xgetcwd.c: Likewise.
51425
51426         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
51427         (free): Remove decl.
51428
51429         * lib/strchrnul.c (strchrnul): Define with a prototype.
51430         Fix bug: c_in was not converted to char before searching.
51431
51432         The following changes are not K&R related:
51433
51434         * lib/group-member.h: Include <sys/types.h>, so that this file is
51435         self-contained.
51436         * lib/makepath.h: Likewise.
51437
51438         * lib/getusershell.c (readname, default_index, line_size, readname):
51439         Use size_t, not int, for sizes.
51440         (readname): If the size overflows, report an error instead of
51441         looping forever.
51442
51443 2003-09-09  Paul Eggert  <eggert@twinsun.com>
51444
51445         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
51446         libc.
51447
51448 2003-09-09  Paul Eggert  <eggert@twinsun.com>
51449
51450         * README: New section: portability guidelines.
51451
51452 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
51453
51454         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
51455         C89 spec.
51456
51457 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
51458
51459         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
51460
51461 2003-09-08  Paul Eggert  <eggert@twinsun.com>
51462
51463         Assume C89 or better; remove K&R cruft.
51464         A few of these changes were first proposed by Derek Robert Price
51465         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
51466
51467         * lib/addext.c: Include <string.h> unconditionally.
51468         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
51469         Don't declare getenv or malloc.
51470
51471         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
51472         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
51473         (NULL): Remove.
51474         (find_stack_direction, alloca): Use prototypes.
51475
51476         * lib/atexit.c (atexit): Define using a prototype.
51477
51478         * lib/basename.c, dirname.c, stripslash.c:
51479         Include <string.h> unconditionally.
51480
51481         * lib/bcopy.c: Include <stddef.h>.
51482         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
51483
51484         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
51485
51486         * lib/error.h (error, error_at_line, error_print_progname)
51487         [! (defined (__STDC__) && __STDC__)]: Remove decls.
51488         * lib/error.c: Include error.h first, to check interface.
51489         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
51490         (VA_START): Remove; all uses changeed to va_start.
51491         (exit, strerror): Remove decls.
51492         (error_print_progname): Prototype uncondionally.
51493         Don't include <errno.h>; no longer needed.
51494         (private_strerror): Remove.
51495         (error_tail): Always define.
51496         (error, error_at_line): Assume C89 or better; always use prototypes.
51497         * lib/fatal.c: Include "fatal.h" first, to test interface.
51498         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
51499         (VA_START): Remove; all uses changed to va_start.
51500         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
51501         this case.
51502         (exit): Remove decl.
51503         (fatal): Prototype unconditionally.  Assume va_start works.
51504         Abort at end, to pacify gcc.
51505
51506         * lib/euidaccess.c (main): Define with a prototype.
51507
51508         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
51509
51510         * lib/exitfail.c: Include <stdlib.h> unconditionally.
51511
51512         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
51513         prototypes.
51514         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
51515         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
51516         (getenv): Remove decl.
51517         (fnmatch): Define using a prototype.
51518         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
51519         (FCT): Define using a prototype.
51520
51521         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
51522
51523         * lib/gethostname.c: Include <stddef.h>.
51524         (gethostname): Define with prototype.  Length is size_t, not int.
51525
51526 2003-09-08  Paul Eggert  <eggert@twinsun.com>
51527
51528         Assume C89 or better; remove K&R cruft.
51529         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
51530         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
51531         string.h, getenv, malloc.
51532         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
51533         headers.
51534         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
51535         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
51536         do not check for strerror.
51537         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
51538         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
51539         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
51540         do not check for doprnt or vprintf.
51541         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
51542         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
51543
51544 2003-09-08  Paul Eggert  <eggert@twinsun.com>
51545
51546         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
51547         getversion.c should have been removed then, but was accidentally
51548         preserved.
51549
51550         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
51551         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
51552
51553 2003-09-08  Karl Berry  <karl@gnu.org>
51554
51555         * config/config.sub, config.guess, srclistvars.sh: update from savannah
51556                 config, forget about prep.
51557
51558         * config/depcomp, missing: update from automake.
51559
51560 2003-09-07  Paul Eggert  <eggert@twinsun.com>
51561
51562         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
51563         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
51564
51565 2003-09-07  Paul Eggert  <eggert@twinsun.com>
51566
51567         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
51568         copy_tm_result.  Bug reported by Simon Josefsson in
51569         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
51570
51571 2003-09-06  Paul Eggert  <eggert@twinsun.com>
51572
51573         * m4/time_r.m4: New file.
51574         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
51575         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
51576         is. Check for timegm declaration.
51577         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
51578         Do not check for gmtime_r.
51579         Replace mktime if __mktime_internal does not exist and if mktime
51580         hasn't been replaced already.
51581
51582 2003-09-06  Paul Eggert  <eggert@twinsun.com>
51583
51584         * lib/time_r.c, lib/time_r.h: New files.
51585
51586         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
51587         __localtime_r.
51588         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
51589         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
51590
51591         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
51592         __gmtime_r.
51593         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
51594         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
51595         Include <time_r.h>.
51596
51597         * lib/timegm.c: Switch to glibc implementation, with the following
51598         changes:
51599         [defined HAVE_CONFIG_H]: Include <config.h>.
51600         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
51601         (__mktime_internal) [!defined _LIBC]: New decl.
51602         (__gmtime_r) [!defined _LIBC]: New macro and function.
51603         (timegm): Use a prototype, since gnulib assumes C89.
51604         Do not bother declaring tmp to be const, as it's not really usefu.
51605         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
51606         (timegm): Declare only if HAVE_DECL_TIMEGM.
51607
51608 2003-09-06  Paul Eggert  <eggert@twinsun.com>
51609
51610         * MODULES.html.sh (func_all_modules): Add time_r.
51611         * modules/time_r: New file.
51612         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
51613         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
51614
51615 2003-09-03  Paul Eggert  <eggert@twinsun.com>
51616
51617         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
51618         Bug reported by Lute Kamstra in
51619         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
51620
51621         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
51622         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
51623         course with correspondingly smaller numbers for tomorrow and
51624         yesterday.  From Tadayoshi Funaba.  Originally installed into
51625         sh-utils on 1999-08-07, but the patch got lost (I guess during the
51626         coreutils merge?).
51627
51628 2003-08-31  Simon Josefsson  <jas@extundo.com>
51629
51630         * modules/timegm: New file.
51631         * MODULES.html.sh (func_all_modules): Add timegm.
51632
51633 2003-08-31  Simon Josefsson  <jas@extundo.com>
51634
51635         * m4/timegm.m4: New file.
51636
51637 2003-08-31  Simon Josefsson  <jas@extundo.com>
51638
51639         * lib/timegm.h: New file.
51640         * lib/timegm.c: New file.  Based on
51641         wget-1.8.2/src/http.c:mktime_from_utc.
51642
51643 2003-08-31  Karl Berry  <karl@gnu.org>
51644
51645         * lib/argp.h: update from libc.
51646
51647 2003-08-28  Bruno Haible  <bruno@clisp.org>
51648
51649         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
51650         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
51651         followed by '#define fnmatch fnmatch_posix' gives an error.
51652
51653 2003-08-28  Bruno Haible  <bruno@clisp.org>
51654
51655         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
51656         warning on QNX, which defines O_BINARY to 000000.
51657
51658 2003-08-27  Jim Meyering  <jim@meyering.net>
51659
51660         * m4/mkstemp.m4: Require that the system mkstemp be able to create
51661         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
51662         would fail after 32.  Reported by Danny Levinson.  Details here:
51663         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
51664
51665 2003-08-24  Bruno Haible  <bruno@clisp.org>
51666
51667         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
51668         MSVC7 <stdio.h> is included later.
51669
51670 2003-08-22  Simon Josefsson  <jas@extundo.com>
51671
51672         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
51673
51674 2003-08-20  Karl Berry  <karl@gnu.org>
51675
51676         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
51677
51678 2003-08-20  Bruno Haible  <bruno@clisp.org>
51679
51680         * modules/progname: New file.
51681         * MODULES.html.sh (func_all_modules): Add progname.
51682
51683 2003-08-20  Bruno Haible  <bruno@clisp.org>
51684
51685         * lib/progname.h: New file, from GNU gettext.
51686         * lib/progname.c: New file, from GNU gettext.
51687         * lib/progreloc.c: New file, from GNU gettext.
51688
51689 2003-08-19  Jim Meyering  <jim@meyering.net>
51690
51691         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
51692         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
51693
51694 2003-08-19  Bruno Haible  <bruno@clisp.org>
51695
51696         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
51697         more.
51698
51699 2003-08-19  Bruno Haible  <bruno@clisp.org>
51700
51701         * lib/xstrdup.c: Assume <string.h> exists.
51702
51703 2003-08-18  Paul Eggert  <eggert@twinsun.com>
51704
51705         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
51706         in makefile rules.
51707
51708 2003-08-18  Jim Meyering  <jim@meyering.net>
51709
51710         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
51711         * m4/lib-ld.m4: Likewise.
51712
51713 2003-08-18  Jim Meyering  <jim@meyering.net>
51714
51715         * lib/setenv.h: Indent nested cpp directive.
51716         * lib/vasnprintf.c: Remove trailing blanks.
51717
51718 2003-08-17  Simon Josefsson  <jas@extundo.com>
51719
51720         * modules/xstrndup: New file.
51721         * MODULES.html.sh (func_all_modules): Add xstrndup.
51722
51723 2003-08-17  Simon Josefsson  <jas@extundo.com>
51724
51725         * modules/argp: Fix autoconf macro name. Add more dependencies.
51726
51727 2003-08-17  Simon Josefsson  <jas@extundo.com>
51728
51729         * m4/xstrndup.m4: New file.
51730
51731 2003-08-17  Simon Josefsson  <jas@extundo.com>
51732
51733         * m4/argp.m4: New file.
51734
51735 2003-08-17  Simon Josefsson  <jas@extundo.com>
51736             Bruno Haible  <bruno@clisp.org>
51737
51738         * lib/xstrndup.h: New file.
51739         * lib/xstrndup.c: New file.
51740
51741 2003-08-17  Bruno Haible  <bruno@clisp.org>
51742
51743         * modules/strndup (Files, Include): Add lib/strndup.h.
51744
51745 2003-08-17  Bruno Haible  <bruno@clisp.org>
51746
51747         * modules/euidaccess (Files): Add lib/euidaccess.h.
51748
51749 2003-08-17  Bruno Haible  <bruno@clisp.org>
51750
51751         * lib/strndup.h: New file.
51752
51753 2003-08-17  Bruno Haible  <bruno@clisp.org>
51754
51755         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
51756         like AC_GNU_SOURCE.
51757         * modules/extensions (configure.ac): Comment out the invocation of
51758         gl_USE_SYSTEM_EXTENSIONS.
51759
51760 2003-08-16  Paul Eggert  <eggert@twinsun.com>
51761
51762         Merges from coreutils, etc.
51763         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
51764         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
51765         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
51766         fixing a typo.
51767         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
51768         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
51769
51770 2003-08-16  Paul Eggert  <eggert@twinsun.com>
51771
51772         Document merge from coreutils.
51773         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
51774         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
51775         * modules/utime: Add m4/utimes-null.m4.
51776
51777 2003-08-16  Paul Eggert  <eggert@twinsun.com>
51778
51779         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
51780         space, undoing this 2003-08-12 change:
51781         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
51782
51783 2003-08-16  Paul Eggert  <eggert@twinsun.com>
51784
51785         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
51786         strtoul.c from libc, undoing this 2003-08-12 change:
51787         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
51788
51789 2003-08-16  Jim Meyering  <jim@meyering.net>
51790
51791         Merges from coreutils.
51792         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
51793         prefix.  Adjust cache variables similarly.  Create 500 rather than
51794         just 300 files, to exercise bug on Darwin6.5, too.
51795         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
51796         $missing_dir.
51797         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
51798         AM_SYS_POSIX_TERMIOS.
51799         Reported by mkc@mathdogs.com.
51800         Also change use of $am_cv_sys_posix_termios
51801         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
51802         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
51803         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
51804         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
51805         in /proc/mounts until it finds one with matching device number.  This
51806         is unnecessary when the FILE argument *is* a mount point.  No stat call
51807         is necessary in that case.  So, disable the statvfs-testing code on
51808         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
51809         as RedHat bug# 84846.
51810         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
51811         to 1MB, so as not to render systems with no stack size limit (e.g.,
51812         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
51813         Include <unistd.h>.  On some systems,
51814         it is required for the definition of _SC_PAGESIZE.
51815
51816 2003-08-16  Jim Meyering  <jim@meyering.net>
51817
51818         Merge from coreutils.
51819         * lib/xstrtoimax.c: #else #if -> #elif.
51820         * lib/xstrtoumax.c: Likewise.
51821
51822 2003-08-16  Jim Meyering  <jim@meyering.net>
51823
51824         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
51825         * m4/utimes.m4: Removed.
51826         * m4/utimes-null.m4: Renamed from utimes.m4.
51827
51828         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
51829         to 1MB, so as not to render systems with no stack size limit (e.g.,
51830         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
51831         Include <unistd.h>.  On some systems,
51832         it is required for the definition of _SC_PAGESIZE.
51833
51834 2003-08-16  Jim Meyering  <jim@meyering.net>
51835         and Paul Eggert  <eggert@cs.ucla.edu>
51836
51837         Merges from coreutils, etc.
51838
51839         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
51840         using the latest version from cvs.  This avoids problems with #line
51841         directives using a vendor (Sun) compiler.
51842         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
51843         Don't set GETGROUPS_LIB here; now it's
51844         done via getgroups.m4's wrapper function.
51845         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
51846         rather than just in sh-util/configure.in, so that the
51847         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
51848         same.
51849         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
51850         AC_FUNC_GETLOADAVG where to find getloadavg.c.
51851         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
51852         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
51853         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
51854         Remove code that is now done by the newly-required macros.
51855         Append $(EXEEXT) to DF_PROG.
51856         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
51857         Do not invoke or require the following here,
51858         since prereq.m4 or some gnulib .m4 now does this for us:
51859         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
51860         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
51861         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
51862         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
51863         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
51864         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
51865         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
51866         AC_FUNC_OBSTACK.
51867         Do not replace the following functions, as this is now the job
51868         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
51869         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
51870         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
51871         atexit getpass, strdup, getpagesize.
51872         Replace 'raise'.
51873         Do not check for the following functions, as this is now the job
51874         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
51875         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
51876         setregid.
51877         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
51878         Check for sys/sysctl.h.
51879         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
51880         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
51881         of checking for ssize_t ourselves.
51882
51883         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
51884         Require every macro that gnulib/modules/* suggests for us.
51885         (jm_PREREQ_ADDEXT): New macro.
51886         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
51887         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
51888
51889         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
51890         (gl_PHYSMEM): Use it.
51891         Also check for `table' function.
51892         Check for new headers and functions.
51893         Add check for sys/sysmp.h.
51894         With suggestions from Kaveh Ghazi.
51895         Ignore headers that are present but cannot be compiled.  This
51896         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
51897         C 5.4.
51898
51899 2003-08-15  Paul Eggert  <eggert@twinsun.com>
51900
51901         Document merge from coreutils.
51902         * modules/userspec: Depend on posixver.
51903         * modules/strftime: Depend on tzset.
51904
51905 2003-08-15  Paul Eggert  <eggert@twinsun.com>
51906
51907         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
51908         rather than tab, after '#' in shell-script copyright notices.
51909         Suggested by Bruno Haible.
51910
51911 2003-08-15  Paul Eggert  <eggert@twinsun.com>
51912
51913         * config/srclist-update: Use three spaces, rather than tab, after '#'
51914         in shell-script copyright notices.  Suggested by Bruno Haible.
51915         Remove unnecessary parenthesization in regular expression.
51916
51917 2003-08-15  Jim Meyering  <jim@meyering.net>
51918
51919         Merge from coreutils.
51920         * lib/xgethostname.c: Include <stdlib.h>.
51921         (xghostname): Don't exit for anything other than memory-related
51922         failure; just return NULL.
51923         * lib/userspec.c: Include "posixver.h".
51924         (parse_user_spec): Accept `.' as a separator only
51925         in pre-POSIX-200112 mode.
51926         * lib/strtoimax.c: Use #elif rather than #else #if.
51927         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
51928         Remove function, now that we can rely on a working tzset function.
51929         [!_LIBC]: Ensure that the required autoconf test has been run.
51930         [!defined _NL_CURRENT && HAVE_STRFTIME]:
51931         Use underlying_strftime for %r.
51932         * lib/sha.c: Merge in some clean-up and optimization changes from
51933         glibc.
51934         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
51935         Ensure that it is a multiple of 64.
51936         Rearrange loop exit tests so as to avoid performing an
51937         additional fread after encountering an error or EOF.
51938         * lib/realloc.c: Update copyright date.
51939
51940 2003-08-15  Jim Meyering  <jim@meyering.net>
51941         and Paul Eggert  <eggert@twinsun.com>
51942
51943         Merge from coreutils.
51944         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
51945         member but strut utmpx does not.  Needed for AIX 4.3.3.
51946         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
51947
51948 2003-08-15  Jim Meyering  <jim@meyering.net>
51949         and Paul Eggert  <eggert@cs.ucla.edu>
51950
51951         Merges from coreutils, etc.
51952         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
51953         Require gl_FUNC_TZSET_CLOBBER.
51954         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
51955         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
51956         members.
51957
51958 2003-08-14  Paul Eggert  <eggert@twinsun.com>
51959
51960         Help the merge from coreutils.
51961         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
51962         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
51963         * m4/tzset.m4: Use it too.
51964
51965 2003-08-14  Paul Eggert  <eggert@twinsun.com>
51966
51967         * modules/tzset: New file.
51968
51969 2003-08-14  Jim Meyering  <jim@meyering.net>
51970
51971         Merges from coreutils.
51972         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
51973         variable names, rather than @FNMATCH_H@.
51974         * modules/alloca: Likewise for $(ALLOCA_H).
51975
51976         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
51977         the three copies of the literal target, `fnmatch.h'.
51978         * modules/alloca (alloca.h): Likewise.
51979
51980 2003-08-14  Jim Meyering  <jim@meyering.net>
51981
51982         Merge from coreutils.
51983         * m4/tzset.m4: New file.
51984         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
51985         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
51986         otherwise, AIX 5.1 systems would end up using the latter.
51987         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
51988         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
51989         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
51990         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
51991
51992 2003-08-14  Jim Meyering  <jim@meyering.net>
51993
51994         Merge from coreutils.
51995         * lib/obstack.h: Whitespace changes.
51996         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
51997         and xcalloc return values.
51998         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
51999         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
52000         hang on OSF/1 5.1 for DIR on both local and remote file systems.
52001         Reported by (and fix confirmed by) Nelson H. F. Beebe.
52002         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
52003         error from mntctl.
52004         Use mntctl's return value to drive the entry-processing loop, since
52005         we can't rely on the value of the vmt_length member in the last
52006         entry.  On some systems doing so could result in exhausting
52007         virtual memory.  Based in part on a patch from Mike Jetzer.
52008
52009 2003-08-14  Jim Meyering  <jim@meyering.net>
52010         and Paul Eggert  <eggert@twinsun.com>
52011
52012         Merges from coreutils, plus other fixes.
52013         * lib/physmem.c: Merge in portability changes from gcc/libiberty
52014         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
52015         for credits and details.  Thanks to Kaveh Ghazi for helping
52016         to keep these files in sync.
52017         (ARRAY_SIZE): Define it.
52018         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
52019         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
52020         (memcasecmp): Don't assume size_t fits in unsigned int.
52021         Remove casts and duplicate code.
52022         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
52023         (memcpy): Remove definition.
52024         Merge in some clean-up and optimization changes from glibc.
52025         [BLOCKSIZE]: Move definition to top of file.
52026         Ensure that it is a multiple of 64.
52027         Rearrange loop exit tests so as to avoid performing an
52028         additional fread after encountering an error or EOF.
52029         * lib/md5.h (md5_uintptr): Define.
52030         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
52031         return to the initial working directory.  Preserve errno
52032         for caller.
52033         * lib/idcache.c: Include "xalloc.h".
52034         (xmalloc, xrealloc): Remove decls.
52035         (getuser): Remove casts no longer required in C89.
52036         * lib/human.c: Include stdio.h, for sprintf.
52037         * lib/group-member.c: Include "xalloc.h".
52038         (xmalloc, xrealloc): Remove decls.
52039         (get_group_info): Remove casts no longer required in C89.
52040         * lib/getusershell.c (readname): Remove casts no longer required in
52041         C89.
52042         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
52043         * lib/getline.c: Whitespace fix, from coreutils.
52044
52045 2003-08-13  Paul Eggert  <eggert@twinsun.com>
52046
52047         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
52048         Check for isascii.
52049
52050         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
52051         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
52052         Undo previous (whitespace-only) change.
52053
52054 2003-08-13  Paul Eggert  <eggert@twinsun.com>
52055
52056         * lib/exclude.c: Include <ctype.h>
52057         (IN_CTYPE_DOMAIN): New macro.
52058         (is_space): New fn.
52059         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
52060         and empty lines.
52061
52062         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
52063         Undo previous (whitespace-only) change.
52064
52065 2003-08-13  Paul Eggert  <eggert@twinsun.com>
52066
52067         * config/srclist-update: Change update back to the old behavior,
52068         leaving whitespace alone.  Use one 'sed' command rather than a
52069         pipeline.
52070         (fixlicense): Now a variable, not a function.
52071         (remove_trailing_blanks): Remove.
52072         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
52073         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
52074         Undo previous (whitespace-only) change.
52075
52076 2003-08-12  Paul Eggert  <eggert@twinsun.com>
52077
52078         Merge from coreutils.
52079         * modules/euidaccess: Add lib_SOURCES, include for new
52080         file euidaccess.h
52081
52082 2003-08-12  Paul Eggert  <eggert@twinsun.com>
52083
52084         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
52085         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
52086         Normalize leading white space and remove trailing white space.
52087
52088         Merge from coreutils
52089         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
52090
52091         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
52092         0.12.1.  These files are now being upgraded automatically by
52093         ../config/srclist-update.
52094
52095 2003-08-12  Paul Eggert  <eggert@twinsun.com>
52096
52097         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
52098         Normalize leading white space and remove trailing white space.
52099         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
52100         notice, as per ../config/srclist-update.
52101
52102         Merge from coreutils.
52103         * lib/euidaccess.h: New file.
52104         * lib/euidaccess.c: Include it.
52105         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
52106         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
52107         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
52108
52109 2003-08-12  Paul Eggert  <eggert@twinsun.com>
52110
52111         * config/srclist-update: Add copyright notice.
52112         (remove_id_lines, remove_trailing_blanks): New constants.
52113         (fixfile): Use them to normalize spacing a bit in copied files.
52114         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
52115         Normalize leading white space and remove trailing white space.
52116
52117         * config/texinfo.tex: Sync with texinfo.
52118
52119         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
52120         strtoul.c from libc, to merge coreutils whitespace changes.
52121
52122         * config/srclist.txt: Get the following m4 files from gettext:
52123         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
52124         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
52125         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
52126         wint_t.m4.
52127
52128 2003-08-12  Karl Berry  <karl@gnu.org>
52129
52130         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
52131         been made.
52132
52133 2003-08-11  Paul Eggert  <eggert@twinsun.com>
52134
52135         * modules/gnu-source, m4/gnu-source.m4:
52136         Remove; we're assuming Autoconf 2.54 or later now.
52137         Suggested by Bruno Haible.
52138         * MODULES.html.sh (func_all_modules): Remove gnu-source.
52139
52140 2003-08-11  Bruno Haible  <bruno@clisp.org>
52141
52142         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
52143
52144 2003-08-11  Bruno Haible  <bruno@clisp.org>
52145
52146         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
52147         (vasnprintf): Use it instead of wcslen.
52148
52149 2003-08-11  Bruno Haible  <bruno@clisp.org>
52150
52151         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
52152         value to ensure that _Bool promotes to int. Use #define for _Bool when
52153         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
52154
52155 2003-08-10  Karl Berry  <karl@gnu.org>
52156
52157         * lib/regex.h: update from libc (whitespace fix).
52158
52159 2003-08-09  Paul Eggert  <eggert@twinsun.com>
52160
52161         Merge some files from coreutils.  These changes were
52162         originally made by Jim Meyering.
52163         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
52164         many older Unixes require this.
52165         * lib/alloca.c (alloca): Remove cast to argument of free;
52166         no longer needed in C89.
52167         * lib/alloca_.h, regex.h: Fix white space to match
52168         what GNU indent does.
52169
52170 2003-08-09  Paul Eggert  <eggert@twinsun.com>
52171
52172         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
52173         apparently Emacs's Unicode mode got confused before my 2003-08-05
52174         checkin.
52175
52176 2003-08-08  Paul Eggert  <eggert@twinsun.com>
52177
52178         * m4/extensions.m4: New file.
52179         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
52180         Require gl_USE_SYSTEM_EXTENSIONS.
52181         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
52182         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
52183
52184 2003-08-08  Paul Eggert  <eggert@twinsun.com>
52185
52186         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
52187         * modules/extensions, modules/gnu-source: New files.
52188         * modules/timespec, modules/unlocked-io: Depend on extensions.
52189
52190 2003-08-07  Paul Eggert  <eggert@twinsun.com>
52191
52192         * modules/restrict: New file.
52193         * MODULES.html.sh (func_all_modules): Add restrict.
52194         * modules/regex: Depend on restrict.
52195
52196 2003-08-07  Paul Eggert  <eggert@twinsun.com>
52197
52198         * m4/restrict.m4: New file.
52199         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
52200
52201 2003-08-07  Bruno Haible  <bruno@clisp.org>
52202
52203         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
52204         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
52205
52206 2003-08-07  Bruno Haible  <bruno@clisp.org>
52207
52208         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
52209         makes the module 'getndelim2' compatible with the module 'getline'.
52210
52211 2003-08-05  Paul Eggert  <eggert@twinsun.com>
52212
52213         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
52214         byte with "\201" to avoid glitches when editing that source file
52215         with multi-gnome-terminal.
52216
52217 2003-08-05  Paul Eggert  <eggert@twinsun.com>
52218
52219         * lib/bumpalloc.h: Remove.
52220
52221 2003-08-05  Paul Eggert  <eggert@twinsun.com>
52222
52223         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
52224         * modules/bumpalloc: Remove.
52225
52226 2003-08-04  Paul Eggert  <eggert@twinsun.com>
52227
52228         * lib/getloadavg.c: Change copyright notice and spacing to conform to
52229         GNU coding style.
52230
52231         Merge from coreutils.
52232         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
52233         1. From glibc.
52234         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
52235         from Karl Berry, implemented by Jim Meyering.
52236         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
52237         from Dmitry V. Levin.
52238         Remove anachronistic cast of xrealloc.
52239         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
52240         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
52241         type. Otherwise, it wouldn't compile with at least /bin/cc on
52242         ymp-cray-unicos9.0.2.X.
52243         Combine two mostly-identical uses of alloca into one.
52244         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
52245
52246 2003-08-04  Dave Love  <d.love@dl.ac.uk>
52247
52248         [From Emacs.]
52249
52250         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
52251         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
52252         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
52253         obsolete NLIST_NAME_UNION.
52254         [__GNU__]: Undef BSD and FSCALE.
52255         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
52256
52257 2003-08-03  Paul Eggert  <eggert@twinsun.com>
52258
52259         * lib/stdbool_.h (_Bool): Make it signed char, instead of
52260         an enum type, so that it's guaranteed to promote to int.  See:
52261         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
52262
52263 2003-08-03  Karl Berry  <karl@gnu.org>
52264
52265         * config/depcomp: update from automake.
52266
52267 2003-07-31  Paul Eggert  <eggert@twinsun.com>
52268
52269         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
52270         (strerror): Don't assume that a printable int fits in 14 bytes.
52271
52272 2003-07-31  Bruno Haible  <bruno@clisp.org>
52273
52274         * modules/getpass-gnu: New file.
52275         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
52276
52277 2003-07-31  Bruno Haible  <bruno@clisp.org>
52278
52279         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
52280
52281 2003-07-24  Karl Berry  <karl@gnu.org>
52282
52283         * config/missing: update from automake.
52284
52285 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
52286             Bruno Haible  <bruno@clisp.org>
52287
52288         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
52289         * lib/getline.c (getline, getdelim): Likewise.
52290         Remove _GNU_SOURCE define; now it's defined in config.h through
52291         m4/getline.m4.
52292
52293 2003-07-23  Karl Berry  <karl@gnu.org>
52294
52295         * config/config.sub: update from prep.
52296
52297 2003-07-22  Paul Eggert  <eggert@twinsun.com>
52298
52299         * modules/xalloc (Depends-on): Add exitfail.
52300         * modules/xmemcoll: Likewise.
52301
52302 2003-07-22  Paul Eggert  <eggert@twinsun.com>
52303
52304         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
52305         over-parenthesization in macros.
52306
52307         Sync with coreutils.
52308
52309         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
52310         required by C99.
52311
52312         Use `exit_failure' for xalloc and xmemcoll instead of their own
52313         private exit-failure variables.
52314         * lib/xalloc.h (xalloc_exit_failure): Remove.
52315         * lib/xmalloc.c: Likewise.  Include exitfail.h.
52316         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
52317         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
52318         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
52319         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
52320
52321 2003-07-20  Jim Meyering  <jim@meyering.net>
52322
52323         * modules/closeout (Depends-on): Add exitfail.
52324         Suggestion from Bruno Haible.
52325
52326 2003-07-19  Karl Berry  <karl@gnu.org>
52327
52328         * config/config.sub: update from prep.
52329
52330 2003-07-18  Paul Eggert  <eggert@twinsun.com>
52331
52332         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
52333         Remove.
52334         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
52335         to test that it can stand by itself.  Include "exitfail.h".
52336         Clients should set exit_failure instead.
52337         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
52338
52339 2003-07-18  Bruno Haible  <bruno@clisp.org>
52340
52341         * modules/getndelim2: New file.
52342         * modules/getline: Share files with module getndelim2.
52343         * modules/getnline: Depend on getndelim2 instead of sharing files with
52344         it. Add getnline.c to lib_SOURCES.
52345         * MODULES.html.sh (func_all_modules): Add getndelim2.
52346
52347 2003-07-18  Bruno Haible  <bruno@clisp.org>
52348
52349         * m4/getndelim2.m4: New file.
52350         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
52351         invoke gl_PREREQ_GETNDELIM2.
52352         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
52353         gl_PREREQ_GETNDELIM2.
52354         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
52355         gl_GETNDELIM2.
52356
52357 2003-07-18  Bruno Haible  <bruno@clisp.org>
52358
52359         * lib/getndelim2.h: New file.
52360         * lib/getndelim2.c: Make into a module of its own. Include config.h,
52361         getndelim2.h.
52362         (getndelim2): Make non-static. Change return type to ssize_t.
52363         * lib/getline.h: Change argument names.
52364         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
52365         * lib/getnline.c: Include getndelim2.h.
52366
52367 2003-07-18  Andreas Schwab  <schwab@suse.de>
52368
52369         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
52370
52371 2003-07-17  Karl Berry  <karl@gnu.org>
52372
52373         * config/config.sub: update from prep.
52374
52375 2003-07-17  Bruno Haible  <bruno@clisp.org>
52376
52377         * modules/getnline: New file.
52378         * modules/getline: Add lib/getndelim2.c to source file list.
52379         * MODULES.html.sh (func_all_modules): Add getnline.
52380
52381 2003-07-17  Bruno Haible  <bruno@clisp.org>
52382
52383         * m4/getnline.m4: New file.
52384
52385 2003-07-17  Bruno Haible  <bruno@clisp.org>
52386
52387         * m4/Makefile.am.in: Remove file.
52388         * m4/Makefile.am: Remove file.
52389         * m4/Makefile.in: Remove file.
52390
52391 2003-07-17  Bruno Haible  <bruno@clisp.org>
52392
52393         * lib/getnline.h: New file.
52394         * lib/getnline.c: New file.
52395         * lib/getndelim2.c: New file, extracted from getline.c.
52396         (getndelim2): Renamed from getdelim2, with added nmax argument.
52397         * lib/getline.c: Include getndelim2.c.
52398         (getdelim2): Moved out to getndelim2.c.
52399         (getline, getdelim): Update.
52400
52401 2003-07-17  Bruno Haible  <bruno@clisp.org>
52402
52403         * lib/Makefile.am: Remove file.
52404         * lib/Makefile.in: Remove file.
52405
52406 2003-07-17  Bruno Haible  <bruno@clisp.org>
52407
52408         * configure.in: Remove file.
52409         * Makefile.in: Remove file.
52410
52411 2003-07-17  Bruno Haible  <bruno@clisp.org>
52412
52413         * MODULES.html.sh: Put the </BODY> right before </HTML>.
52414
52415 2003-07-16  Karl Berry  <karl@gnu.org>
52416
52417         * config/srclist-update: was running fixlicense twice, which caused
52418                 texinfo.tex to be nullified for some reason.  Simplify,
52419                 $gplsrc is no longer needed as far as I can see?
52420
52421 2003-07-16  Jim Meyering  <jim@meyering.net>
52422
52423         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
52424
52425 2003-07-15  Paul Eggert  <eggert@twinsun.com>
52426
52427         * config/srclist.txt: Get the following files from gettext-runtime/intl
52428         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
52429         ref-del.sin.  From Bruno Haible.
52430         * config/srclist-update (fixfile): Change grep pattern again, since the
52431         previous fix didn't work (there was another trailing $).  Use
52432         '[$]' to escape the $s.
52433
52434 2003-07-15  Karl Berry  <karl@gnu.org>
52435
52436         * lib/vasnprintf.c: update from gettext.
52437
52438 2003-07-15  Karl Berry  <karl@gnu.org>
52439
52440         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
52441         gets expanded when surrounded by '$'.
52442
52443 2003-07-15  Jim Meyering  <jim@meyering.net>
52444
52445         * modules/save-cwd: Don't depend on error.  From Derek Price.
52446
52447 2003-07-15  Jim Meyering  <jim@meyering.net>
52448
52449         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
52450
52451 2003-07-14  Simon Josefsson  <jas@extundo.com>
52452
52453         * modules/mempcpy: New file.
52454         * MODULES.html.sh (func_all_modules): Add mempcpy.
52455
52456 2003-07-14  Simon Josefsson  <jas@extundo.com>
52457
52458         * m4/mempcpy.m4: New file.
52459
52460 2003-07-14  Simon Josefsson  <jas@extundo.com>
52461
52462         * lib/mempcpy.h: New file.
52463         * lib/mempcpy.c: New file.
52464
52465 2003-07-14  Paul Eggert  <eggert@twinsun.com>
52466
52467         * modules/getdate, modules/posixtm: Depend on mktime.
52468
52469 2003-07-14  Paul Eggert  <eggert@twinsun.com>
52470
52471         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
52472         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
52473         unicodeio.c, unicodeio.h, unlocked-io.h:
52474         Switch from LGPL to GPL.
52475
52476 2003-07-14  Paul Eggert  <eggert@twinsun.com>
52477
52478         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
52479         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
52480         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
52481         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
52482         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
52483         updated automatically by ../config/srclist-update.  This changes
52484         their license from LPGL to GPL.
52485
52486 2003-07-14  Paul Eggert  <eggert@twinsun.com>
52487
52488         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
52489         assumed to refer to the root of the most recent stable gettext version.
52490         * config/srclistvars.sh: Add defaults for eggert.
52491         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
52492         Match "This program" as well as "The program".  This is needed
52493         for gettext.
52494
52495 2003-07-14  Jim Meyering  <jim@meyering.net>
52496
52497         Don't emit diagnostics.  Let callers do that.
52498         * lib/save-cwd.c: Don't include "error.h".
52499         (save_cwd): Don't call error.  Ensure that errno is valid
52500         when returning nonzero.
52501
52502         * lib/save-cwd.h (restore_cwd): Update prototype.
52503         * lib/save-cwd.c (restore_cwd): Remove two parameters.
52504         Simplify.  Don't call error upon failure.  Let callers do that.
52505         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
52506         when auditing is enabled.  But don't bother updating the #if.
52507
52508 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
52509
52510         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
52511         it breaks C++ compilation.
52512         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
52513
52514 2003-07-10  Simon Josefsson  <jas@extundo.com>
52515
52516         * modules/strchrnul (Makefile.am): Add strchrnul.h.
52517
52518 2003-07-10  Jim Meyering  <jim@meyering.net>
52519
52520         * m4/clock_time.m4: Remove trailing blank.
52521         * m4/intmax_t.m4: Likewise.
52522
52523 2003-07-10  Jim Meyering  <jim@meyering.net>
52524
52525         * lib/vasnprintf.c: Remove trailing blanks.
52526         Make cpp indentation consistent.
52527
52528 2003-07-09  Paul Eggert  <eggert@twinsun.com>
52529
52530         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
52531         posixver.c, strftime.c, strnlen.c, strverscmp.c:
52532         Switch from LGPL to GPL.
52533
52534 2003-07-09  Paul Eggert  <eggert@twinsun.com>
52535
52536         * config/srclist.txt: Sort sublists.  Add
52537         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
52538         that differ from gnulib for one reason or another; we'd like this list
52539         to be smaller but for now let's document what we have.
52540
52541 2003-07-08  Paul Eggert  <eggert@twinsun.com>
52542
52543         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
52544         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
52545         and sweeter "eval x=$x".
52546         * config/srclist.txt: Get lib/argp* from glibc.
52547
52548 2003-07-07  Paul Eggert  <eggert@twinsun.com>
52549
52550         * lib/mktime.c: Fix some boundary cases and remove need for floating
52551         point.
52552
52553         Issue a compile-time diagnostic if time_t is floating point, or if
52554         two's complement arithmetic is not in effect, or if arithmetic
52555         right shift does not propagate the sign.  These assumptions were
52556         all in the original code but they weren't checked.
52557
52558         (TIME_T_MIDPOINT, verify): New macros.
52559         (__isleap): Remove; it has integer overflow problems.
52560         (leapyear): New function, without those problems.
52561         (ydhms_tm_diff): Remove; splitting into two parts.
52562         (ydhms_diff): New function, containing the arithmetic part of
52563         the old ydhms_tm_diff function.  Issue a compile-time
52564         diagnostic if we are not using C99 integer division.
52565         Avoid casts when possible.
52566         (guess_time_tm): New function, containing the checking part of
52567         the old ydhms_tm_diff function.  Return the new value, rather than
52568         the difference between it and the old.  Accept a new argument T
52569         so that *T specifies the old value.  Check for overflow in the result.
52570
52571         (__mktime_internal): Use a time_t offset, not a long int offset.
52572         This undoes the 2003-06-04 change, which is no longer needed now
52573         that we have better overflow checking.
52574         (localtime_offset): Likewise.
52575
52576         (__mktime_internal): Avoid harmful overflow on hosts where time_t
52577         and long are 64-bit but int is only 32-bit.
52578         (ydhms_diff): Use long int to store year1 and yday1.
52579         Issue a compile-time diagnostic if long int is not wide enough.
52580
52581         (__mktime_internal): Use long int to store adjusted year and yday.
52582         Use plain C rather than preprocessor commands, if that doesn't
52583         affect efficiency.
52584         Check for overflow (and try to repair) after each probe
52585         rather than checking only at the very end.  This avoids some bugs
52586         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
52587         does not equal GMT offset at maximum time).
52588         Use integer to check for overflow rather than floating point; this
52589         is more portable to non-IEEE hosts, and is a tad faster.
52590         When we detect that we are oscillating between two values,
52591         don't check whether tm_isdst has the requested value, since
52592         we already know the answer.  When tm_isdst has the wrong value,
52593         use a different heuristic to find the right one, based on the
52594         extreme values actually observed in practice in tz2003a,
52595         rather than the (overly optimistic) "previous 3 calendar quarters".
52596
52597         (not_equal_tm, print_tm, check_result): Use "const T" rather than
52598         "T const" to accommodate glibc style.
52599         (check_result): Use less-confusing report format.  "long" -> "long int.
52600         (main): Likewise.
52601         Don't loop if the iteration overflows time_t.
52602         Allow a negative step in the iteration.
52603
52604 2003-07-06  Karl Berry  <karl@gnu.org>
52605
52606         * config/depcomp: update from automake.
52607         * config/config.sub: update from prep.
52608
52609 2003-07-03  Karl Berry  <karl@gnu.org>
52610
52611         * config/config.guess: update from prep.
52612
52613 2003-07-01  Paul Eggert  <eggert@twinsun.com>
52614
52615         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
52616         xreadlink.c now includes it unconditionally.
52617
52618 2003-07-01  Paul Eggert  <eggert@twinsun.com>
52619
52620         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
52621         having it depend on HAVE_SYS_TYPES_H.
52622
52623 2003-07-01  Bruno Haible  <bruno@clisp.org>
52624
52625         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
52626         <sys/types.h> should be sufficient.
52627         Reported by Paul Eggert.
52628
52629 2003-06-26  Karl Berry  <karl@gnu.org>
52630
52631         * config/depcomp: update from automake.
52632
52633 2003-06-26  Bruno Haible  <bruno@clisp.org>
52634
52635         * modules/human: Depend on module stdbool.
52636
52637 2003-06-25  Bruno Haible  <bruno@clisp.org>
52638
52639         * modules/readlink: New file.
52640         * modules/xreadlink: Depend on it.
52641         * MODULES.html.sh (func_all_modules): Add readlink.
52642
52643 2003-06-25  Bruno Haible  <bruno@clisp.org>
52644
52645         * m4/readlink.m4: New file.
52646
52647 2003-06-25  Bruno Haible  <bruno@clisp.org>
52648
52649         * lib/readlink.c: New file.
52650
52651 2003-06-22  Karl Berry  <karl@gnu.org>
52652
52653         * config/srclist.txt: update mkinstalldirs from automake.
52654         * config/mkinstalldirs: update.
52655
52656 2003-06-22  Bruno Haible  <bruno@clisp.org>
52657
52658         Portability to mingw32.
52659         * m4/ssize_t.m4: New file, from GNU gettext.
52660         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
52661         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
52662
52663 2003-06-22  Bruno Haible  <bruno@clisp.org>
52664
52665         * modules/safe-read: Add m4/ssize_t.m4.
52666         * modules/xreadlink: Add m4/ssize_t.m4.
52667
52668 2003-06-20  Bruno Haible  <bruno@clisp.org>
52669
52670         Assume C89, so PARAMS isn't needed.
52671         * lib/unicodeio.h (PARAMS): Remove.
52672         * lib/unicodeio.c: Don't use PARAMS.
52673
52674 2003-06-18  Karl Berry  <karl@gnu.org>
52675
52676         * config/config.{guess,sub}: update from prep.
52677
52678 2003-06-18  Jim Meyering  <jim@meyering.net>
52679
52680         Merge changes from coreutils.
52681         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
52682         Remove explicit declarations of xmalloc and realloc.
52683         Include xalloc.h.
52684         (read_utmp): Remove anachronistic cast of xmalloc.
52685
52686 2003-06-17  Paul Eggert  <eggert@twinsun.com>
52687
52688         Assume C89, so PARAMS isn't needed.
52689         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
52690         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
52691         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
52692         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
52693         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
52694         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
52695         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
52696         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
52697         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
52698         lib/xstrtod.h, lib/xstrtol.h: Likewise.
52699         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
52700         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
52701         no longer needed. Anyway, config.h should always be included before any
52702         other file.
52703
52704 2003-06-11  Simon Josefsson  <jas@extundo.com>
52705
52706         * modules/sysexits: New file.
52707         * MODULES.html.sh (func_all_modules): Add sysexits.
52708
52709 2003-06-11  Simon Josefsson  <jas@extundo.com>
52710
52711         * lib/sysexit_.h: New file.
52712
52713 2003-06-11  Derek Price  <derek@ximbiot.com>
52714
52715         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
52716         necessary.
52717
52718 2003-06-11  Bruno Haible  <bruno@clisp.org>
52719
52720         * m4/sysexits.m4: New file.
52721
52722 2003-06-10  Simon Josefsson  <jas@extundo.com>
52723
52724         * lib/argp.h: New file, from glibc.
52725         * lib/argp-ba.c: New file, from glibc.
52726         * lib/argp-eexst.c: New file, from glibc.
52727         * lib/argp-fmtstream.c: New file, from glibc.
52728         * lib/argp-fmtstream.h: New file, from glibc.
52729         * lib/argp-fs-xinl.c: New file, from glibc.
52730         * lib/argp-help.c: New file, from glibc.
52731         * lib/argp-namefrob.h: New file, from glibc.
52732         * lib/argp-parse.c: New file, from glibc.
52733         * lib/argp-pv.c: New file, from glibc.
52734         * lib/argp-pvh.c: New file, from glibc.
52735         * lib/argp-xinl.c: New file, from glibc.
52736
52737 2003-06-10  Simon Josefsson  <jas@extundo.com>
52738
52739         * modules/strchrnul: New file.
52740
52741 2003-06-10  Simon Josefsson  <jas@extundo.com>
52742
52743         * modules/argp: New file.
52744
52745 2003-06-10  Simon Josefsson  <jas@extundo.com>
52746
52747         * m4/strchrnul.m4: New file.
52748
52749 2003-06-10  Simon Josefsson  <jas@extundo.com>
52750
52751         * lib/strchrnul.h: New file.
52752         * lib/strchrnul.c: New file.
52753
52754 2003-06-10  Bruno Haible  <bruno@clisp.org>
52755
52756         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
52757
52758 2003-06-07  Karl Berry  <karl@gnu.org>
52759
52760         * config/config.{guess,sub}: update from prep.
52761
52762 2003-06-07  Jim Meyering  <jim@meyering.net>
52763
52764         * modules/strtod: Use $(...) notation, not @...@ for
52765         AC_REPLACE'd variables.
52766         * modules/localcharset: Likewise.
52767
52768 2003-06-07  Jim Meyering  <jim@meyering.net>
52769
52770         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
52771         in place of my name in the copyright comment.
52772         Remove definition and uses of __P.
52773
52774         From coreutils.
52775         * lib/stat.c: Don't declare xmalloc explicitly.
52776         Instead, include "xalloc.h".
52777         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
52778         xrealloc, and xcalloc return values.
52779         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
52780         Improve comment.
52781         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
52782
52783 2003-06-07  Bruno Haible  <bruno@clisp.org>
52784
52785         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
52786         avoid AC_CONFIG_LINKS.
52787         * modules/fnmatch (Makefile.am): Use explicit creation rule for
52788         fnmatch.h, to avoid AC_CONFIG_LINKS.
52789         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
52790
52791 2003-06-07  Bruno Haible  <bruno@clisp.org>
52792
52793         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
52794         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
52795         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
52796         directory.
52797         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
52798         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
52799         directory.
52800
52801 2003-06-06  Jim Meyering  <jim@meyering.net>
52802
52803         Merge from coreutils.
52804         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
52805         Consolidate declarations and initializations of *_base* locals.
52806
52807         Merge from coreutils.
52808         This avoids a core dump on systems without GNU putenv,
52809         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
52810         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
52811         (unsetenv): New static function, from GNU libc.
52812         (rpl_putenv): Use it.
52813
52814         * lib/modechange.c: Remove trailing blanks.
52815
52816         Merge from coreutils.
52817         * lib/fsusage.c: Remove declaration of statfs.
52818         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
52819
52820         * lib/posixtm.c: Include <stdbool.h> unconditionally.
52821
52822 2003-06-06  Jim Meyering  <jim@meyering.net>
52823
52824         * lib/stdbool_.h: Renamed from stdbool.h.in.
52825
52826 2003-06-06  Jim Meyering  <jim@meyering.net>
52827             Bruno Haible  <bruno@clisp.org>
52828
52829         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
52830         Adjust Makefile.am snippet not to redirect directly to target.
52831         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
52832
52833 2003-06-05  Paul Eggert  <eggert@twinsun.com>
52834
52835         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
52836         mismatch, look in future quarters as well as past.  This fixes a
52837         bug when processing fall-backwards gaps immediately after a long
52838         period of daylight-saving time.
52839
52840         * lib/mktime.c: Assume freestanding C89 or better.
52841         (HAVE_LIMITS_H): Remove.  Assume it's 1.
52842         (__P): Remove; not used.
52843         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
52844         (mktime, not_equal_tm, print_tm, check_result,
52845         main): Use prototypes.  Use const * where appropriate.
52846         (main): Fix typo in testing code that uncovered by above changes.
52847         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
52848
52849 2003-06-04  Paul Eggert  <eggert@twinsun.com>
52850
52851         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
52852         locale.h, localeconv.  This merges changes from coreutils.
52853
52854         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
52855         It can be removed after the next Autoconf is released.
52856         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
52857         needed.
52858
52859 2003-06-04  Paul Eggert  <eggert@twinsun.com>
52860
52861         * lib/mktime.c: Fix Debian bug 177940
52862         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
52863         (localtime_offset): Now long int, not time_t, because we want it
52864         to be guaranteed to be signed.  All uses changed.
52865         (__mktime_internal): If overflow would occur when adding offset,
52866         don't add it.
52867
52868         Merge 'human' changes from coreutils.  Rewrite to support
52869         locale-specific notations like thousands separators.
52870         * lib/human.c: Simplify authorship notice.
52871         Include human.h immediately after config.h.
52872         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
52873         <limits.h>: Do not include, since human.h does.
52874         (SIZE_MAX, UINTMAX_MAX): New macros.
52875         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
52876         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
52877         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
52878         (power_letter): Renamed from suffixes.
52879         (generate_suffix_backwards): Remove.
52880         (adjust_value): Now takes int style (because of human.h changes)
52881         and long double value (for greater precision on some platforms).
52882         (group_number): New function.
52883         (human_readable): Use it.  Use integer options, not enum.
52884         Put the options before the sizes in the arg list.
52885         Support all the new options.
52886         The old human_readable function has been removed;
52887         use inttostr.h instead.
52888         (human_readable, default_block_size, humblock):
52889         Use uintmax_t, not int, for block sizes.
52890         (human_readable_inexact, block_size_types): Remove.
52891         (block_size_opts): New constant.
52892         (human_options): Renamed from human_block_size, with new signature
52893         that allows block sizes up to UINTMAX_MAX.  All callers changed.
52894         * lib/human.h: Add copyright and authorship notice.
52895         Include <limits.h> and <stdbool.h> unconditionally.
52896         (PARAMS): Remove.  All uses removed.
52897         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
52898         (enum human_inexact_style): Remove tag; now a nameless enum.
52899         (human_floor, human_ceiling, human_round_to_even): Now have
52900         values 2, 0, 1 rather than -1, 1, 0.
52901         (human_group_digits, human_suppress_point_zero, human_autoscale,
52902         human_base_1024, human_SI, human_B): New constants.
52903         (human_readable_inexact, human_block_size): Remove.
52904         (human_readable): Size args are now uintmax_t, not int.
52905         (human_options): New decl.
52906
52907         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
52908         unnecessary now that we assume C89 or better.  This change
52909         imported from coreutils.
52910
52911         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
52912         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
52913         in the 2003-05-30 sync from glibc.
52914
52915         .h files should stand alone, but we shouldn't include <sys/types.h>
52916         if we can get away with just <stddef.h>.
52917
52918         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
52919         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
52920         rather than <sys/types.h>, as we merely need size_t.
52921         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
52922         to get size_t.
52923         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
52924         Include <stdio.h>, to get FILE.
52925         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
52926         memcasecmp.h has included <stddef.h> and all we need is size_t.
52927         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
52928         our interface, instead of including <sys/types.h>
52929
52930 2003-06-04  Paul Eggert  <eggert@twinsun.com>
52931
52932         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
52933         now, as glibc mktime is buggy on non-glibc systems.
52934
52935 2003-06-03  Karl Berry  <karl@gnu.org>
52936
52937         * config/config.sub: update from prep.
52938
52939 2003-06-02  Paul Eggert  <eggert@twinsun.com>
52940
52941         [from coreutils]
52942         Fix some minor time-related bugs with POSIX time arguments.
52943         Some valid time stamps were being rejected (notably -1, and
52944         time stamps before 1900 on 64-bit hosts).  And some invalid
52945         time stamps were being accepted, e.g. September 31.
52946
52947         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
52948         that we can return (time_t) -1 successfully.
52949         * lib/posixtm.c: Likewise.
52950         [HAVE_STDBOOL_H]: Include <stdbool.h>.
52951         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
52952         (t): Remove static var.
52953         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
52954         of static var.  All uses changed.
52955         (year): Do not reject years before 1900; they can occur with
52956         64-bit time_t.
52957         (posix_time_parse): Do not check for out-of-range components;
52958         that is now the caller's responsibility, since our checks were
52959         only approximations.
52960         (posixtime): Use mktime to check for out-of-range components,
52961         since it knows them exactly.
52962         If mktime returns (time_t) -1, check whether an error actually occurred
52963         by invoking localtime on -1.
52964         (main) [TEST_POSIXTIME]: Check for input data errors, and report
52965         posixtime failures better.
52966         Improve the test data (in comments only).
52967
52968 2003-06-02  Karl Berry  <karl@gnu.org>
52969
52970         * config/mkinstalldirs (version): new variable.
52971         (--version): new option.
52972         (usage): improve message.
52973
52974 2003-05-30  Karl Berry  <karl@gnu.org>
52975
52976         * lib/mktime.c: update from libc.
52977
52978 2003-05-30  Bruno Haible  <bruno@clisp.org>
52979
52980         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
52981         * config/config.rpath: Upgrade to gettext-0.12.1.
52982
52983 2003-05-30  Bruno Haible  <bruno@clisp.org>
52984
52985         * m4/gettext.m4: Upgrade to gettext-0.12.1.
52986         * m4/nls.m4: New file, from gettext-0.12.1.
52987         * m4/po.m4: New file, from gettext-0.12.1.
52988         * m4/progtest.m4: Upgrade to gettext-0.12.1.
52989
52990 2003-05-30  Bruno Haible  <bruno@clisp.org>
52991
52992         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
52993         * lib/localcharset.h: Likewise.
52994         * lib/localcharset.c: Likewise.
52995
52996 2003-05-29  Karl Berry  <karl@gnu.org>
52997
52998         * config/config.rpath: update from gettext.
52999
53000 2003-05-28  Paul Eggert  <eggert@twinsun.com>
53001
53002         Assume the headers required for C89 freestanding compilers.
53003         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
53004         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
53005         * m4/human.m4 (gl_HUMAN): Likewise.
53006         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
53007         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
53008         * m4/userspec.m4 (gl_USERSPEC): Likewise.
53009         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
53010         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53011         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
53012
53013 2003-05-28  Paul Eggert  <eggert@twinsun.com>
53014
53015         Assume the headers required for C89 freestanding compilers.
53016         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
53017         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
53018         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
53019         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
53020         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
53021         define, since <limits.h> is guaranteed to do that.
53022         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
53023         * lib/exclude.c: Include <stdbool.h> unconditionally.
53024         * lib/tempname.c: Include <stddef.h> unconditionally.
53025         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
53026         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
53027         <stddef.h> does that.
53028         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
53029         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
53030         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
53031         needed.
53032         * lib/xstrtol.c: Likewise.
53033         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
53034         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
53035
53036         * lib/addext.c (addext): Use assignment rather than cast, to avoid
53037         warnings on some platforms.
53038
53039         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
53040         arbitrarily.
53041
53042 2003-05-26  Jim Meyering  <jim@meyering.net>
53043
53044         Merge in a change from coreutils:
53045         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
53046         that is guaranteed to be `no'.  Use `no_such_member' to indicate
53047         that condition, rather than `-1' which is slightly misleading.
53048         Change the name of the cache variable to have the gl_ prefix.
53049         Prompted by a patch from Richard Dawe for DJGPP.
53050
53051 2003-05-24  Karl Berry  <karl@gnu.org>
53052
53053         * config/config.guess: update from prep.
53054
53055 2003-05-22  Karl Berry  <karl@gnu.org>
53056
53057         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
53058
53059 2003-05-20  Karl Berry  <karl@gnu.org>
53060
53061         * config/config.guess: update from prep.
53062
53063 2003-05-18  Karl Berry  <karl@gnu.org>
53064
53065         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
53066         might actually be set by the user.
53067
53068         * config/depcomp, install-sh, mdate-sh: update from automake.
53069
53070 2003-05-17  Bruno Haible  <bruno@clisp.org>
53071
53072         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
53073         invalid expansion for AC_EGREP_CPP.
53074         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
53075         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
53076         Suggested by Akim Demaille <akim@epita.fr> in
53077         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
53078
53079 2003-05-12  Jim Meyering  <jim@meyering.net>
53080
53081         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
53082         the space-padded-by-default conversion specifiers, %e, %k, %l.
53083
53084 2003-05-12  Bruno Haible  <bruno@clisp.org>
53085
53086         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
53087         the string is longer than 4 KB.
53088
53089 2003-05-11  Karl Berry  <karl@gnu.org>
53090
53091         * config/config.{guess,sub}: update from prep.
53092
53093 2003-05-09  Bruno Haible  <bruno@clisp.org>
53094
53095         * modules/error: Add m4/strerror_r.m4 to file list.
53096
53097 2003-05-03  Bruno Haible  <bruno@clisp.org>
53098
53099         Upgrade to Unicode-4.0.
53100         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
53101         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
53102         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
53103         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
53104         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
53105         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
53106         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
53107         Change width of U+E0100..U+E01EF from 1 to 0.
53108
53109 2003-04-25  Jim Meyering  <jim@meyering.net>
53110
53111         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
53112         of type size_t, not int.
53113
53114 2003-04-25  Bruno Haible  <bruno@clisp.org>
53115
53116         * lib/copy-file.c: Include <stddef.h>, for size_t.
53117
53118 2003-04-21  Paul Eggert  <eggert@twinsun.com>
53119
53120         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
53121         code which expansion is under static control.  Patch imported from
53122         Akim Demaille's patch to Bison; see
53123         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
53124
53125 2003-04-14  Bruno Haible  <bruno@clisp.org>
53126
53127         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
53128
53129 2003-04-11  Jim Meyering  <jim@meyering.net>
53130
53131         Merge changes from Coreutils.
53132
53133         2003-03-22  Jim Meyering  <jim@meyering.net>
53134
53135         * lib/strftime.c (widen): Cast alloca return value to proper type.
53136
53137         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
53138
53139         From GNU libc.
53140         * lib/strftime.c (my_strftime): Handle very large width
53141         specifications for numeric values correctly.  Improve checks for
53142         overflow.
53143
53144         2003-01-19  Jim Meyering  <jim@meyering.net>
53145
53146         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
53147         definitions.
53148         (nl_get_alt_digit) [! defined my_strftime]: Define.
53149         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
53150         _nl_get_alt_digit and _nl_get_walt_digit.
53151
53152         * lib/strftime.c (my_strftime): Merge in locale-related changes from
53153         libc. These changes have no effect outside of _LIBC.
53154
53155 2003-04-10  Bruno Haible  <bruno@clisp.org>
53156
53157         * modules/findprog: New file.
53158         * MODULES.html.sh (func_all_modules): Add it.
53159
53160 2003-04-10  Bruno Haible  <bruno@clisp.org>
53161
53162         * m4/findprog.m4: New file.
53163         * m4/eaccess.m4: New file.
53164
53165 2003-04-10  Bruno Haible  <bruno@clisp.org>
53166
53167         * lib/findprog.h: New file, from GNU gettext.
53168         * lib/findprog.c: New file, from GNU gettext.
53169
53170 2003-04-05  Jim Meyering  <jim@meyering.net>
53171
53172         Merge changes from Coreutils.
53173
53174         * lib/exclude.h (PARAMS): Remove definition and uses.
53175         * lib/exclude.c: Remove uses of `PARAMS'.
53176
53177         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
53178         Add test-cases for DOS filenames. Declare program_name.
53179         (main): Set up program_name.  Patch by Rich Dawe.
53180
53181         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
53182         error from mntctl.
53183         Use mntctl's return value to drive the entry-processing loop, since
53184         we can't rely on the value of the vmt_length member in the last
53185         entry.  On some systems doing so could result in exhausting
53186         virtual memory.  Based in part on a patch from Mike Jetzer.
53187
53188 2003-04-04  Bruno Haible  <bruno@clisp.org>
53189
53190         * modules/linebreak: New file.
53191         * MODULES.html.sh (func_all_modules): Add it.
53192
53193 2003-04-04  Bruno Haible  <bruno@clisp.org>
53194
53195         * m4/linebreak.m4: New file.
53196
53197 2003-04-04  Bruno Haible  <bruno@clisp.org>
53198
53199         * lib/linebreak.h: New file, from GNU gettext.
53200         * lib/linebreak.c: New file, from GNU gettext with slight
53201         modifications.
53202         * lib/lbrkprop.h: New file, from GNU gettext.
53203
53204 2003-04-03  Bruno Haible  <bruno@clisp.org>
53205
53206         * modules/utf8-ucs4: New file.
53207         * modules/utf16-ucs4: New file.
53208         * modules/ucs4-utf8: New file.
53209         * modules/ucs4-utf16: New file.
53210         * MODULES.html.sh (func_all_modules): Add them.
53211
53212 2003-04-03  Bruno Haible  <bruno@clisp.org>
53213
53214         * m4/utf-ucs4.m4: New file.
53215         * m4/ucs4-utf.m4: New file.
53216
53217 2003-04-03  Bruno Haible  <bruno@clisp.org>
53218
53219         * lib/utf8-ucs4.h: New file, from GNU gettext.
53220         * lib/utf16-ucs4.h: New file, from GNU gettext.
53221         * lib/ucs4-utf8.h: New file, from GNU gettext.
53222         * lib/ucs4-utf16.h: New file, from GNU gettext.
53223
53224 2003-04-02  Bruno Haible  <bruno@clisp.org>
53225
53226         * modules/binary-io: New file.
53227         * MODULES.html.sh (func_all_modules): Add it.
53228
53229 2003-04-02  Bruno Haible  <bruno@clisp.org>
53230
53231         * lib/binary-io.h: New file, from GNU gettext.
53232
53233 2003-04-01  Bruno Haible  <bruno@clisp.org>
53234
53235         * modules/pathname: New file.
53236         * MODULES.html.sh (func_all_modules): Add it.
53237
53238 2003-04-01  Bruno Haible  <bruno@clisp.org>
53239
53240         * lib/pathname.h: New file, from GNU gettext.
53241         * lib/concatpath.c: New file, from GNU gettext.
53242
53243 2003-03-30  Bruno Haible  <bruno@clisp.org>
53244
53245         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
53246
53247 2003-03-30  Bruno Haible  <bruno@clisp.org>
53248
53249         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
53250         function chown() doesn't exist.
53251
53252 2003-03-28  Bruno Haible  <bruno@clisp.org>
53253
53254         * modules/copy-file: New file.
53255         * MODULES.html.sh (func_all_modules): Add it.
53256
53257 2003-03-28  Bruno Haible  <bruno@clisp.org>
53258
53259         * m4/copy-file.m4: New file.
53260
53261 2003-03-28  Bruno Haible  <bruno@clisp.org>
53262
53263         * lib/copy-file.h: New file, from GNU gettext.
53264         * lib/copy-file.c: New file, from GNU gettext.
53265
53266 2003-03-18  Jim Meyering  <jim@meyering.net>
53267
53268         * lib/quote.c (quote_n): Fix typo in comment.
53269
53270 2003-03-18  Bruno Haible  <bruno@clisp.org>
53271
53272         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
53273         checking.
53274         * m4/onceonly_2_57.m4: Likewise.
53275
53276 2003-03-17  Bruno Haible  <bruno@clisp.org>
53277
53278         * m4/onceonly.m4: Require autoconf 2.54 or newer.
53279         (m4_quote): Remove macro.
53280         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
53281
53282 2003-03-14  Jim Meyering  <jim@meyering.net>
53283
53284         Merge changes from Coreutils.
53285         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
53286         to be const, in order to avoid warnings.
53287         (obstack_room): Likewise.
53288         (obstack_empty_p): Likewise.
53289
53290 2003-03-14  Bruno Haible  <bruno@clisp.org>
53291
53292         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
53293         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
53294
53295 2003-03-13  Paul Eggert  <eggert@twinsun.com>
53296
53297         Merge changes from Bison.
53298         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
53299         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
53300         when compiling Bison 1.875's `bitset bset = obstack_alloc
53301         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
53302         * lib/hash.c: Include <stdbool.h> unconditionally.
53303
53304 2003-03-13  Paul Eggert  <eggert@twinsun.com>
53305
53306         * m4/onceonly.m4 (m4_quote): New macro.
53307         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
53308         Quote AC_FOREACH variable-expansions properly.
53309
53310 2003-03-13  Paul Eggert  <eggert@twinsun.com>
53311
53312         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
53313
53314 2003-03-09  Paul Eggert  <eggert@twinsun.com>
53315
53316         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
53317         Reported by Bruce Becker; see:
53318         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
53319
53320 2003-03-03  Paul Eggert  <eggert@twinsun.com>
53321             Bruno Haible  <bruno@clisp.org>
53322
53323         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
53324         Reported by John Hughes, see
53325         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
53326
53327 2003-02-20  Bruno Haible  <bruno@clisp.org>
53328
53329         * MODULES.html.sh (func_all_modules): Add poll.
53330
53331 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
53332
53333         * modules/poll: New file.
53334
53335 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
53336
53337         * lib/poll_.h: New file.
53338         * lib/poll.c: New file.
53339
53340 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
53341
53342         * m4/poll.m4: New file.
53343
53344 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
53345
53346         * modules/mathl: New file.
53347
53348 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
53349
53350         * lib/mathl.h: New file.
53351         * lib/acosl.c: New file.
53352         * lib/asinl.c: New file.
53353         * lib/atanl.c: New file.
53354         * lib/ceill.c: New file.
53355         * lib/cosl.c: New file.
53356         * lib/expl.c: New file.
53357         * lib/floorl.c: New file.
53358         * lib/frexpl.c: New file.
53359         * lib/ldexpl.c: New file.
53360         * lib/logl.c: New file.
53361         * lib/sincosl.c: New file.
53362         * lib/sinl.c: New file.
53363         * lib/sqrtl.c: New file.
53364         * lib/tanl.c: New file.
53365         * lib/trigl.c: New file.
53366         * lib/trigl.h: New file.
53367
53368 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
53369
53370         * m4/mathl.m4: New file.
53371
53372 2003-02-18  Bruno Haible  <bruno@clisp.org>
53373
53374         * MODULES.html.sh (func_all_modules): Add mathl.
53375
53376 2003-02-17  Bruno Haible  <bruno@clisp.org>
53377
53378         * modules/mkdtemp: New module.
53379         * MODULES.html.sh (func_all_modules): Add it.
53380
53381 2003-02-17  Bruno Haible  <bruno@clisp.org>
53382
53383         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
53384
53385 2003-02-17  Bruno Haible  <bruno@clisp.org>
53386
53387         * lib/mkdtemp.h: New file, from GNU gettext.
53388         * lib/mkdtemp.c: New file, from GNU gettext.
53389
53390 2003-02-02  Jim Meyering  <jim@meyering.net>
53391
53392         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
53393         e.g. glibc-2.2.93.
53394
53395 2003-01-31  Bruno Haible  <bruno@clisp.org>
53396
53397         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
53398         'rpl_rename'.
53399         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
53400         'rpl_strnlen'.
53401         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
53402         'rpl_strtod'.
53403         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
53404         'rpl_utime'.
53405
53406 2003-01-31  Bruno Haible  <bruno@clisp.org>
53407
53408         * lib/rename.c: #undef rename before defining rpl_rename.
53409         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
53410
53411 2003-01-30  Bruno Haible  <bruno@clisp.org>
53412
53413         * modules/vasnprintf, modules/vasprintf: New modules.
53414         * MODULES.html.sh (func_all_modules): Add them.
53415
53416 2003-01-30  Bruno Haible  <bruno@clisp.org>
53417
53418         * m4/signed.m4: New file, from GNU gettext.
53419         * m4/longdouble.m4: New file, from GNU gettext.
53420         * m4/wchar_t.m4: New file, from GNU gettext.
53421         * m4/wint_t.m4: New file, from GNU gettext.
53422         * m4/vasnprintf.m4: New file.
53423         * m4/vasprintf.m4: New file.
53424
53425 2003-01-30  Bruno Haible  <bruno@clisp.org>
53426
53427         * lib/printf-args.h: New file, from GNU gettext.
53428         * lib/printf-args.c: New file, from GNU gettext.
53429         * lib/printf-parse.h: New file, from GNU gettext.
53430         * lib/printf-parse.c: New file, from GNU gettext.
53431         * lib/vasnprintf.h: New file, from GNU gettext.
53432         * lib/vasnprintf.c: New file, from GNU gettext.
53433         * lib/asnprintf.c: New file, from GNU gettext.
53434         * lib/vasprintf.h: New file, from GNU gettext with modifications.
53435         * lib/vasprintf.c: New file, from GNU gettext.
53436         * lib/asprintf.c: New file, from GNU gettext.
53437
53438 2003-01-29  Bruno Haible  <bruno@clisp.org>
53439
53440         * modules/stpncpy: New module.
53441         * MODULES.html.sh (func_all_modules): Add it.
53442
53443 2003-01-29  Bruno Haible  <bruno@clisp.org>
53444
53445         * m4/stpncpy.m4: New file.
53446
53447 2003-01-29  Bruno Haible  <bruno@clisp.org>
53448
53449         * lib/stpncpy.h: New file, from GNU gettext with modifications.
53450         * lib/stpncpy.c: New file, from GNU gettext with modifications.
53451
53452 2003-01-28  Bruno Haible  <bruno@clisp.org>
53453
53454         * modules/c-ctype: New module.
53455         * MODULES.html.sh (func_all_modules): Add it.
53456
53457 2003-01-28  Bruno Haible  <bruno@clisp.org>
53458
53459         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
53460         Paul Eggert.
53461         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
53462         Paul Eggert.
53463
53464 2003-01-27  Bruno Haible  <bruno@clisp.org>
53465
53466         * modules/xsetenv: New module.
53467         * MODULES.html.sh (func_all_modules): Add it.
53468
53469 2003-01-27  Bruno Haible  <bruno@clisp.org>
53470
53471         * lib/xsetenv.h: New file, from GNU gettext.
53472         * lib/xsetenv.c: New file, from GNU gettext.
53473
53474 2003-01-23  Jim Meyering  <jim@meyering.net>
53475
53476         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
53477         from working on systems without dirfd (at least Irix and OSF1/Tru64).
53478
53479 2003-01-23  Bruno Haible  <bruno@clisp.org>
53480
53481         * modules/minmax: New module.
53482         * MODULES.html.sh (func_all_modules): Add it.
53483
53484 2003-01-23  Bruno Haible  <bruno@clisp.org>
53485
53486         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
53487         Eggert.
53488
53489 2003-01-22  Bruno Haible  <bruno@clisp.org>
53490
53491         * modules/exit: New module.
53492         * MODULES.html.sh (func_all_modules): Add it.
53493
53494 2003-01-22  Bruno Haible  <bruno@clisp.org>
53495
53496         * lib/exit.h: New file, from GNU gettext.
53497
53498 2003-01-19  Bruno Haible  <bruno@clisp.org>
53499
53500         * gnulib-tool: Recognize option --extract-maintainer.
53501         (func_get_maintainer): New function.
53502         * modules/*: Add Maintainer entry.
53503
53504 2003-01-16  Jim Meyering  <jim@meyering.net>
53505
53506         * m4/regex.m4: The `regex' struct is both input and output.
53507         Initialize it before each use.  Patch by Tim Waugh.
53508
53509 2003-01-16  Bruno Haible  <bruno@clisp.org>
53510
53511         * MODULES.html.sh: Add a table of contents. Add the module name as
53512         leftmost column. Add hyperlinks.
53513
53514 2003-01-15  Bruno Haible  <bruno@clisp.org>
53515
53516         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
53517
53518 2003-01-15  Bruno Haible  <bruno@clisp.org>
53519
53520         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
53521         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
53522         suffix.
53523
53524 2003-01-15  Bruno Haible  <bruno@clisp.org>
53525
53526         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
53527
53528 2003-01-15  Bruno Haible  <bruno@clisp.org>
53529
53530         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
53531         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
53532
53533 2003-01-14  Jim Meyering  <jim@meyering.net>
53534
53535         * lib/same.c (same_name): Tweak a comment.
53536
53537 2003-01-14  Bruno Haible  <bruno@clisp.org>
53538
53539         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
53540         when a string comparison is sufficient.
53541
53542 2003-01-14  Bruno Haible  <bruno@clisp.org>
53543
53544         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
53545         'unsigned int'.
53546
53547 2003-01-14  Bruno Haible  <bruno@clisp.org>
53548
53549         * lib/hash-pjw.c: Add comment about low quality of this function.
53550
53551 2003-01-13  Bruno Haible  <bruno@clisp.org>
53552
53553         * modules/stpcpy: Distribute lib/stpcpy.h.
53554         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
53555
53556 2003-01-13  Bruno Haible  <bruno@clisp.org>
53557
53558         * modules/*: Add a description.
53559         * modules/strpbrk: Fix Makefile.am snippet.
53560         * modules/strtoimax: Fix dependencies.
53561         * modules/strtoumax: Likewise.
53562
53563 2003-01-13  Bruno Haible  <bruno@clisp.org>
53564
53565         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
53566         * modules/alloca (Makefile.am): All object files depend on alloca.h.
53567         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
53568
53569 2003-01-13  Bruno Haible  <bruno@clisp.org>
53570
53571         * gnulib-tool (func_create_testdir): Store config/* files in the main
53572         directory.
53573         * config.rpath: Move to ...
53574         * config/config.rpath: ... here.
53575         * modules/gettext: Contains config/config.rpath, not config.rpath.
53576         * modules/iconv: Likewise.
53577
53578 2003-01-12  Paul Eggert  <eggert@twinsun.com>
53579
53580         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
53581         to avoid collisions with libcurses and libreadline.
53582
53583         * m4/getstr.m4: Remove.
53584         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
53585
53586 2003-01-12  Paul Eggert  <eggert@twinsun.com>
53587
53588         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
53589         to avoid collisions with libcurses and libreadline.
53590
53591         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
53592         * lib/getstr.h, getstr.c: Remove.
53593         * lib/getline.c: Include "getline.h", to check interface.
53594         Move body of old getstr.c here: this defines MIN_CHUNK and
53595         declares getdelim2, which is renamed from getstr.
53596         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
53597
53598         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
53599         All uses changed.
53600         * lib/linebuffer.h: Likewise.
53601         (readline): Remove backward-compatibility macro.
53602
53603 2003-01-12  Paul Eggert  <eggert@twinsun.com>
53604
53605         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
53606         to avoid collisions with libcurses and libreadline.
53607         * getstr: Remove.
53608         * MODULES.html.sh: Remove getstr.
53609         * modules/getline: Depend on unlocked-io, not getstr.
53610
53611 2003-01-12  Jim Meyering  <jim@meyering.net>
53612
53613         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
53614
53615 2003-01-10  Bruno Haible  <bruno@clisp.org>
53616
53617         * modules/alloca: Change Makefile.am requirements. Simplify Include
53618         requirements. Add lib/alloca_.h to file list.
53619
53620 2003-01-10  Bruno Haible  <bruno@clisp.org>
53621
53622         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
53623
53624 2003-01-10  Bruno Haible  <bruno@clisp.org>
53625
53626         * lib/alloca_.h: New file.
53627         * lib/getdate.y: Unconditionally include alloca.h.
53628         * lib/makepath.c: Likewise.
53629         * lib/setenv.c: Likewise.
53630         * lib/userspec.c: Likewise.
53631
53632 2003-01-09  Karl Berry  <karl@gnu.org>
53633
53634         * MODULES.html.sh: include `dirname $0` in PATH, to find
53635         gnulib-tool.
53636
53637 2003-01-09  Bruno Haible  <bruno@clisp.org>
53638
53639         * modules/stdbool: Change configure.ac, Makefile.am requirements.
53640         Simplify Include requirements. Add lib/stdbool.h.in to file list.
53641
53642 2003-01-09  Bruno Haible  <bruno@clisp.org>
53643
53644         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
53645
53646 2003-01-09  Bruno Haible  <bruno@clisp.org>
53647
53648         * lib/stdbool.h.in: New file.
53649
53650 2003-01-09  Bruno Haible  <bruno@clisp.org>
53651
53652         * gnulib-tool (func_all_modules): Ignore files ending in ~.
53653         * MODULES.html.sh: Likewise.
53654
53655 2003-01-08  Jim Meyering  <jim@meyering.net>
53656
53657         * lib/full-write.c: Undefine and define-away `const' after inclusion
53658         of errno.h, not before.  Suggestion from Bruno Haible.
53659
53660 2003-01-08  Bruno Haible  <bruno@clisp.org>
53661
53662         * modules/full-read: Depend on full-write.
53663
53664 2003-01-08  Bruno Haible  <bruno@clisp.org>
53665
53666         * lib/safe-read.c: Include specification header first, to ensure its
53667         selfcontainedness.
53668         * lib/full-write.c: Likewise.
53669
53670 2003-01-07  Jim Meyering  <jim@meyering.net>
53671
53672         * lib/full-write.c: Rework so that it may serve to define full_read,
53673         too.
53674         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
53675
53676 2003-01-07  Bruno Haible  <bruno@clisp.org>
53677
53678         * lib/strtoimax.c: Include <stdint.h> as an alternative to
53679         <inttypes.h>.
53680         * lib/xstrtol.h: Likewise.
53681         * lib/xstrtoimax.c: Likewise.
53682         * lib/xstrtoumax.c: Likewise.
53683         * lib/human.h: Likewise.
53684
53685         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
53686         on systems that have <inttypes.h> but not <stdint.h>.
53687
53688 2003-01-07  Bruno Haible  <bruno@clisp.org>
53689
53690         * MODULES.html.sh: Add copyright notice.
53691         (missed_files): Omit CVS directory entries.
53692         (func_module): Make it work with sed-3.02.
53693         * MODULES.txt: Remove file.
53694
53695 2003-01-06  Jim Meyering  <jim@meyering.net>
53696
53697         * lib/version-etc.c: Update year in translatable copyright string.
53698
53699 2003-01-03  Karl Berry  <karl@gnu.org>
53700
53701         * config/config.{guess,sub}: update from prep.
53702
53703 2003-01-02  Karl Berry  <karl@gnu.org>
53704
53705         * doc/COPYING.DOC: belatedly updated to 1.2.
53706
53707 2003-01-01  Karl Berry  <karl@gnu.org>
53708
53709         * gnulib-tool (func_verify_module): report module name $module in
53710         error message, not $1.
53711         * gnulib-tool (create-testdir): don't complain if destdir couldn't
53712         be created, only if it doesn't exist.
53713         * gnulib-tool (last_checkin_date): don't expand the $Date here.
53714
53715 2002-12-31  Paul Eggert  <eggert@twinsun.com>
53716
53717         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
53718
53719 2002-12-31  Paul Eggert  <eggert@twinsun.com>
53720
53721         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
53722         memcmp if strcoll doesn't work.
53723
53724 2002-12-31  Bruno Haible  <bruno@clisp.org>
53725
53726         * lib/utime.c (utime_null): No need to call ftruncate if the file was
53727         nonempty.
53728
53729 2002-12-31  Bruno Haible  <bruno@clisp.org>
53730
53731         * lib/memcoll.c (STRCOLL): New macro.
53732         (memcoll): Use it.
53733
53734 2002-12-31  Bruno Haible  <bruno@clisp.org>
53735
53736         * lib/localcharset.h: New file.
53737         * lib/localcharset.c: Include it.
53738         * lib/unicodeio.c: Likewise.
53739
53740 2002-12-31  Bruno Haible  <bruno@clisp.org>
53741
53742         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
53743         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
53744
53745 2002-12-31  Bruno Haible  <bruno@clisp.org>
53746
53747         * lib/getline.h: Include <stddef.h>, for size_t.
53748
53749         * lib/unicodeio.h: Include <stddef.h>, for size_t.
53750         * lib/unicodeio.c: Don't include <stddef.h>.
53751
53752 2002-12-31  Bruno Haible  <bruno@clisp.org>
53753
53754         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
53755         HAVE_TM_ZONE.
53756
53757 2002-12-24  Karl Berry  <karl@gnu.org>
53758
53759         * config/config.guess: update from prep.
53760
53761 2002-12-24  Bruno Haible  <bruno@clisp.org>
53762
53763         General infrasructure.
53764         * m4/README: Rewritten.
53765         * m4/onceonly.m4: New file.
53766         * m4/onceonly_2_57.m4: New file.
53767
53768         Module atexit.
53769         * m4/atexit.m4: New file.
53770
53771         Module strtod.
53772         * m4/strtod.m4: New file.
53773
53774         Module strtol.
53775         * m4/strtol.m4: New file.
53776
53777         Module strtoul.
53778         * m4/strtoul.m4: New file.
53779
53780         Module memchr.
53781         * m4/memchr.m4: New file.
53782
53783         Module memcmp.
53784         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
53785         (jm_FUNC_MEMCMP): Invoke it.
53786
53787         Module memcpy.
53788         * m4/memcpy.m4: New file.
53789
53790         Module memmove.
53791         * m4/memmove.m4: New file.
53792
53793         Module memset.
53794         * m4/memset.m4: New file.
53795
53796         Module strcspn.
53797         * m4/strcspn.m4: New file.
53798
53799         Module strpbrk.
53800         * m4/strpbrk.m4: New file.
53801
53802         Module strstr.
53803         * m4/strstr.m4: New file.
53804
53805         Module strerror.
53806         * m4/strerror.m4: New file.
53807
53808         Module mktime.
53809         * m4/mktime.m4: Renamed from jm-mktime.m4.
53810         (gl_PREREQ_MKTIME): New macro.
53811         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
53812
53813         Module malloc.
53814         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
53815         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
53816         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
53817
53818         Module realloc.
53819         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
53820         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
53821         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
53822
53823         Module strftime.
53824         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
53825         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
53826         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
53827         gl_TM_GMTOFF.
53828         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
53829
53830         Module xalloc.
53831         * m4/xalloc.m4: New file.
53832
53833         Module alloca.
53834         * m4/alloca.m4: New file.
53835
53836         Module putenv.
53837         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
53838         (jm_FUNC_PUTENV): Invoke it.
53839
53840         Module setenv.
53841         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
53842         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
53843         when invoked twice.
53844         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
53845         gt_FUNC_SETENV.
53846
53847         Module memrchr.
53848         * m4/memrchr.m4: New file.
53849
53850         Module stpcpy.
53851         * m4/stpcpy.m4: New file.
53852
53853         Module strcase.
53854         * m4/strcase.m4: New file.
53855
53856         Module strdup.
53857         * m4/strdup.m4: New file.
53858
53859         Module strnlen.
53860         * m4/strnlen.m4: New file.
53861
53862         Module strndup.
53863         * m4/strndup.m4: New file.
53864
53865         Module xstrtod.
53866         * m4/xstrtod.m4: New file.
53867
53868         Module xstrtol.
53869         * m4/xstrtol.m4: New file.
53870
53871         Module getdate.
53872         * m4/getdate.m4: New file.
53873
53874         Module unlocked-io.
53875         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
53876         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
53877         * m4/jm-glibc-io.m4n: Remove file.
53878
53879         Module long-options.
53880         * m4/long-options.m4: New file.
53881
53882         Module md5.
53883         * m4/md5.m4: New file.
53884
53885         Module sha.
53886         * m4/sha.m4: New file.
53887
53888         Module getstr.
53889         * m4/getstr.m4: New file.
53890
53891         Module getline.
53892         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
53893         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
53894         <sys/types.h>, for size_t. Use the function name gnu_getline, not
53895         simply getline. Infoke gl_PREREQ_GETLINE.
53896
53897         Module obstack.
53898         * m4/obstack.m4: New file.
53899
53900         Module hash.
53901         * m4/hash.m4: New file.
53902
53903         Module readtokens.
53904         * m4/readtokens.m4: New file.
53905
53906         Module strverscmp.
53907         * m4/strverscmp.m4: New file.
53908
53909         Module stdbool.
53910         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
53911         OSF/1.
53912
53913         Module strtoll.
53914         * m4/strtoll.m4: New file.
53915
53916         Module strtoull.
53917         * m4/strtoull.m4: New file.
53918
53919         Module strtoimax.
53920         * m4/strtoimax.m4: New file.
53921
53922         Module strtoumax.
53923         * m4/strtoumax.m4: New file.
53924
53925         Module xstrtoimax.
53926         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
53927         jm_AC_PREREQ_XSTRTOIMAX.
53928         Moved the strtol prerequisites to strtol.m4.
53929         Moved the strtoll prerequisites to strtoll.m4.
53930         Moved the strtoimax prerequisites to strtoimax.m4.
53931
53932         Module xstrtoumax.
53933         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
53934         jm_AC_PREREQ_XSTRTOUMAX.
53935         Moved the strtoul prerequisites to strtoul.m4.
53936         Moved the strtoull prerequisites to strtoull.m4.
53937         Moved the strtoumax prerequisites to strtoumax.m4.
53938
53939         Module chown.
53940         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
53941         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
53942
53943         Module dup2.
53944         * m4/dup2.m4: New file.
53945
53946         Module ftruncate.
53947         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
53948         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
53949
53950         Module getgroups.
53951         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
53952         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
53953
53954         Module gettimeofday.
53955         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
53956         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
53957         gl_PREREQ_GETTIMEOFDAY.
53958
53959         Module mkdir.
53960         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
53961         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
53962
53963         Module mkstemp.
53964         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
53965         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
53966         jm_AC_TYPE_UINTMAX_T.
53967         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
53968
53969         Module stat.
53970         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
53971         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
53972
53973         Module lstat.
53974         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
53975         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
53976
53977         Module timespec.
53978         * m4/timespec.m4 (gl_TIMESPEC): New macro.
53979         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
53980         * m4/st_mtim.m4: Indentation.
53981
53982         Module nanosleep.
53983         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
53984         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
53985         gl_PREREQ_NANOSLEEP.
53986
53987         Module regex.
53988         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
53989         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
53990         (gl_REGEX): New macro.
53991
53992         Module rename.
53993         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
53994         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
53995
53996         Module rmdir.
53997         * m4/rmdir.m4: New file.
53998
53999         Module utime.
54000         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
54001         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
54002         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
54003
54004         Module dirname.
54005         * m4/dirname.m4: New file.
54006
54007         Module getopt.
54008         * m4/getopt.m4: New file.
54009
54010         Module unistd-safer.
54011         * m4/unistd-safer.m4: New file.
54012
54013         Module fnmatch.
54014         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
54015         declaration.
54016         (gl_PREREQ_FNMATCH_EXTRA): New macro.
54017         (gl_FUNC_FNMATCH_POSIX): New macro.
54018         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
54019         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
54020         simply fnmatch.
54021
54022         Module exclude.
54023         * m4/exclude.m4: New file.
54024
54025         Module human.
54026         * m4/human.m4: New file.
54027
54028         Module acl.
54029         * m4/acl.m4: Nop.
54030
54031         Module backupfile.
54032         * m4/backupfile.m4: New file.
54033         * m4/d-ino.m4: Indentation.
54034
54035         Module fsusage.
54036         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
54037         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
54038         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
54039
54040         Module dirfd.
54041         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
54042         requirements.
54043
54044         Module euidaccess.
54045         * m4/euidaccess.m4: New file.
54046
54047         Module file-type.
54048         * m4/file-type.m4: New file.
54049
54050         Module fileblocks.
54051         * m4/fileblocks.m4: New file.
54052
54053         Module filemode.
54054         * m4/filemode.m4: New file.
54055
54056         Module isdir.
54057         * m4/isdir.m4: New file.
54058
54059         Module lchown.
54060         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
54061         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
54062
54063         Module makepath.
54064         * m4/makepath.m4: New file.
54065
54066         Module modechange.
54067         * m4/modechange.m4: New file.
54068
54069         Module mountlist.
54070         * m4/mountlist.m4: New file.
54071         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
54072         Indentation.
54073
54074         Module path-concat.
54075         * m4/path-concat.m4: New file.
54076
54077         Module pathmax.
54078         * m4/pathmax.m4: New file.
54079
54080         Module same.
54081         * m4/same.m4: New file.
54082
54083         Module save-cwd.
54084         * m4/save-cwd.m4: New file.
54085
54086         Module savedir.
54087         * m4/savedir.m4: New file.
54088
54089         Module xgetcwd.
54090         * m4/xgetcwd.m4: New file.
54091         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
54092
54093         Module xreadlink.
54094         * m4/xreadlink.m4: New file.
54095
54096         Module safe-read.
54097         * m4/safe-read.m4: New file.
54098
54099         Module safe-write.
54100         * m4/safe-write.m4: New file.
54101
54102         Module closeout.
54103         * m4/closeout.m4: New file.
54104
54105         Module stdio-safer.
54106         * m4/stdio-safer.m4: New file.
54107
54108         Module getpass.
54109         * m4/getpass.m4: New file.
54110
54111         Module getugroups.
54112         * m4/getugroups.m4: New file.
54113
54114         Module group-member.
54115         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
54116         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
54117
54118         Module idcache.
54119         * m4/idcache.m4: New file.
54120
54121         Module userspec.
54122         * m4/userspec.m4: New file.
54123
54124         Module gettime.
54125         * m4/clock_time.m4: New file.
54126         * m4/gettime.m4: New file.
54127
54128         Module settime.
54129         * m4/settime.m4: New file.
54130
54131         Module posixtm.
54132         * m4/posixtm.m4: New file.
54133
54134         Module gethostname.
54135         * m4/gethostname.m4: New file.
54136
54137         Module canon-host.
54138         * m4/canon-host.m4: New file.
54139
54140         Module gettext.
54141         * m4/codeset.m4: New file, from gettext-0.11.5.
54142         * m4/gettext.m4: New file, from gettext-0.11.5.
54143         * m4/glibc21.m4: New file, from gettext-0.11.5.
54144         * m4/iconv.m4: New file, from gettext-0.11.5.
54145         * m4/intdiv0.m4: New file, from gettext-0.11.5.
54146         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
54147         * m4/inttypes.m4: New file, from gettext-0.11.5.
54148         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
54149         * m4/isc-posix.m4: New file, from gettext-0.11.5.
54150         * m4/lcmessage.m4: New file, from gettext-0.11.5.
54151         * m4/lib-ld.m4: New file, from gettext-0.11.5.
54152         * m4/lib-link.m4: New file, from gettext-0.11.5.
54153         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
54154         * m4/progtest.m4: New file, from gettext-0.11.5.
54155         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
54156         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
54157         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
54158
54159         Module localcharset.
54160         * m4/localcharset.m4: New file.
54161
54162         Module hard-locale.
54163         * m4/hard-locale.m4: New file.
54164
54165         Module mbswidth.
54166         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
54167         onceonly macros.
54168         * m4/mbrtowc.m4: Add comment.
54169
54170         Module memcasecmp.
54171         * m4/memcasecmp.m4: New file.
54172
54173         Module memcoll.
54174         * m4/memcoll.m4: New file.
54175
54176         Module unicodeio.
54177         * m4/unicodeio.m4: New file.
54178
54179         Module rpmatch.
54180         * m4/rpmatch.m4: New file.
54181
54182         Module yesno.
54183         * m4/yesno.m4: New file.
54184
54185         Module exitfail.
54186         * m4/exitfail.m4: New file.
54187
54188         Module c-stack.
54189         * m4/c-stack.m4 (gl_C_STACK): New macro.
54190         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
54191
54192         Module error.
54193         * m4/error.m4 (gl_ERROR): New macro.
54194         (jm_PREREQ_ERROR): Use onceonly macros.
54195
54196         Module fatal.
54197         * m4/fatal.m4: New file.
54198
54199         Module getloadavg.
54200         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
54201         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
54202
54203         Module getpagesize.
54204         * m4/getpagesize.m4: New file.
54205
54206         Module getusershell.
54207         * m4/getusershell.m4: New file.
54208
54209         Module physmem.
54210         * m4/physmem.m4: New file.
54211
54212         Module posixver.
54213         * m4/posixver.m4: New file.
54214
54215         Module quotearg.
54216         * m4/quotearg.m4: New file.
54217
54218         Module quote.
54219         * m4/quote.m4: New file.
54220
54221         Module readutmp.
54222         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
54223
54224         Module sig2str.
54225         * m4/sig2str.m4: New file.
54226
54227         Other.
54228         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
54229         ulonglong.m4.
54230         * m4/intmax_t.m4: New file.
54231         * m4/d-type.m4: Indentation.
54232         * m4/jm-macros.m4: Update.
54233         * m4/prereq.m4 (jm_PREREQ): Update.
54234         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
54235         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
54236         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
54237         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
54238         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
54239         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
54240         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
54241         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
54242         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
54243         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
54244         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
54245         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
54246         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
54247         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
54248         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
54249         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
54250         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
54251         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
54252         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
54253
54254 2002-12-24  Bruno Haible  <bruno@clisp.org>
54255
54256         * MODULES.txt: Update according to m4/ changes.
54257
54258         Module gettext.
54259         * config.rpath: New file, from gettext-0.11.5.
54260
54261         * modules/*: New module descriptions.
54262         * gnulib-tool: New file.
54263         * MODULES.html.sh: New file.
54264
54265 2002-12-21  Karl Berry  <karl@gnu.org>
54266
54267         * doc/fdl.texi: update to version 1.2.
54268
54269 2002-12-19  Karl Berry  <karl@gnu.org>
54270
54271         * config/config.guess: update from prep.
54272
54273 2002-12-18  Bruno Haible  <bruno@clisp.org>
54274
54275         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
54276         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
54277
54278 2002-12-17  Bruno Haible  <bruno@clisp.org>
54279
54280         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
54281         stdlib.h, string.h.
54282
54283 2002-12-17  Bruno Haible  <bruno@clisp.org>
54284
54285         * lib/canon-host.c (strdup): Remove unused declaration.
54286
54287         * lib/fsusage.c: Include full_read.h.
54288         (get_fs_usage): Use full_read instead of safe_read.
54289
54290         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
54291
54292 2002-12-12  Karl Berry  <karl@gnu.org>
54293
54294         * config/config.guess: update from prep.
54295
54296 2002-12-11  Bruno Haible  <bruno@clisp.org>
54297
54298         * m4/setenv.m4: New file, from gettext-0.11.5.
54299
54300 2002-12-11  Bruno Haible  <bruno@clisp.org>
54301
54302         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
54303         not unsetenv().
54304         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
54305         modifications:
54306
54307         2002-12-11  Bruno Haible  <bruno@clisp.org>
54308
54309                 * setenv.c (alloca): Fall back to malloc.
54310                 (freea): New macro.
54311                 (setenv): Use freea() to free memory allocated with alloca().
54312
54313         2002-11-13  Bruno Haible  <bruno@clisp.org>
54314
54315                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
54316                 function declarations.
54317                 * unsetenv.c (unsetenv): Likewise.
54318
54319         2002-03-04  Bruno Haible  <bruno@clisp.org>
54320
54321                 Portability to AIX 4.3.3.
54322                 * unsetenv.c: New file, extracted from setenv.c.
54323                 * setenv.c: Move the unsetenv() function to unsetenv.c.
54324
54325         2001-12-20  Bruno Haible  <bruno@clisp.org>
54326
54327                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
54328                 use malloc instead. For SunOS 4.
54329
54330         2001-12-11  Bruno Haible  <bruno@clisp.org>
54331
54332                 * setenv.c: Declare alloca.
54333                 (compar_fn_t): New typedef.
54334                 (KNOWN_VALUE, STORE_VALUE): Use it.
54335
54336         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
54337         setenv.h.
54338
54339 2002-12-10  Paul Eggert  <eggert@twinsun.com>
54340
54341         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
54342         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
54343         Choose values that are less likely to collide with system fnmatch
54344         options.
54345         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
54346         defined (e.g., a pure POSIX system).
54347         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
54348         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
54349
54350 2002-12-06  Paul Eggert  <eggert@twinsun.com>
54351
54352         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
54353         a pain in practice to deal with generated m4 files.  This change
54354         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
54355
54356         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
54357         and jm-glibc-io.m4, as they are no longer a special case.
54358         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
54359         kludge and the auto-generation stuff.  Check only whether the
54360         functions are declared, not whether they exist, since older hosts
54361         that don't declare the functions can't use the optimization anyway.
54362
54363 2002-12-06  Jim Meyering  <jim@meyering.net>
54364
54365         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
54366
54367         Merge in changes from libc's misc/error.c, in preparation
54368         for the merge of gnulib's changes back into libc.
54369
54370         * lib/error.c (_): Define only if not already defined.
54371         Move definition to follow all #include directives.
54372         Include unlocked-io.h only if !_LIBC.
54373         [_LIBC]: Include <libio/libioP.h>.
54374         [USE_IN_LIBIO]: Include <libio/iolibio.h>
54375         (fflush): Tweak definition to use INTUSE.
54376         (putc): Define.
54377
54378 2002-12-05  Paul Eggert  <eggert@twinsun.com>
54379
54380         * lib/alloca.c [defined emacs]: Include "lisp.h".
54381         (xalloc_die) [defined emacs]: New macro.
54382         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
54383         [! defined emacs]: Include <xalloc.h>.
54384         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
54385         (pointer): Typedef to POINTER_TYPE *.
54386         (malloc): Remove decl; we now always use xmalloc.
54387         (alloca): Use old-style definition, since Emacs needs this.
54388         Check for arithmetic overflow when computing combined size.
54389
54390 2002-12-04  Paul Eggert  <eggert@twinsun.com>
54391
54392         Do not generate unlocked-io.h automatically, since it's easier to
54393         maintain it by hand.
54394
54395         * lib/unlocked-io.h: New file, from GNU diffutils,
54396         but with proper copyright notice and attribution.
54397         * lib/gen-uio: Remove.
54398         * lib/Makefile.am: Add copyright notice.
54399         (libfetish_a_SOURCES): Add unlocked-io.h.
54400         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
54401         (DISTCLEANFILES, io_functions): Remove macros.
54402         (EXTRA_DIST): Remove gen_uio.
54403         (unlocked-io.h): Remove rule.
54404
54405 2002-12-04  Jim Meyering  <jim@meyering.net>
54406
54407         Reflect the fact that stat.c and lstat.c are no longer generated.
54408         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
54409         (DISTCLEANFILES): Likewise.
54410         (EXTRA_DIST): Likewise.
54411         (all_local): Don't depend on stat.c or lstat.c.
54412         (stat.c, lstat.c): Remove rules.
54413         (EXTRA_DIST): Remove xstat.in.
54414
54415         * lib/xstat.in: Remove file.  Contents moved into stat.c.
54416         * lib/stat.c: New file.  Contents mostly from xstat.in.
54417         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
54418         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
54419
54420         * lib/safe-read.c: Rework so that it may serve to define safe_write,
54421         too.
54422         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
54423
54424 2002-12-03  Jim Meyering  <jim@meyering.net>
54425
54426         * lib/safe-read.c, safe-write.c: Change variable names and comments,
54427         but not semantics, to minimize the differences between these two files.
54428         (safe_read): Change comment to mention SAFE_READ_ERROR.
54429
54430         * lib/safe-read.c (IS_EINTR): Define.
54431         (safe_read): Use IS_EINTR in place of in-function cpp directives.
54432
54433 2002-12-02  Jim Meyering  <jim@meyering.net>
54434
54435         * lib/safe-read.c (EINTR): Define.
54436         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
54437         (INT_MAX): Provide fallback.
54438         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
54439
54440         * lib/safe-read.h (SAFE_READ_ERROR): Define.
54441
54442 2002-12-02  Bruno Haible  <bruno@clisp.org>
54443
54444         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
54445         Define, taken from safe-read.c.
54446         (INT_MAX): Provide fallback.
54447         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
54448         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
54449
54450         * lib/safe-read.c (EINTR): Remove definition.
54451         (safe_read): Don't use EINTR if it is absent.
54452
54453 2002-12-01  Jim Meyering  <jim@meyering.net>
54454
54455         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
54456         zero.
54457         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
54458
54459 2002-11-27  Paul Eggert  <eggert@twinsun.com>
54460
54461         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
54462         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
54463         with `if (! (value < limit)) abort ();', for readability.
54464
54465 2002-11-26  Karl Berry  <karl@gnu.org>
54466
54467         * lib/strdup.c: copy from libc again, with jim's ok.
54468         * lib/.cppi-disable: re-add strdup.c
54469
54470 2002-11-25  Karl Berry  <karl@gnu.org>
54471
54472         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
54473         instead of "strtol.c".
54474
54475 2002-11-25  Karl Berry  <karl@gnu.org>
54476
54477         * config/install-sh: update from automake for variable quoting, $0 in
54478         error msgs, etc.
54479
54480         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
54481         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
54482         entry.
54483
54484 2002-11-25  Jim Meyering  <jim@meyering.net>
54485
54486         * lib/mktime.c: Sync from libc, now that it has the latest fix.
54487
54488 2002-11-24  Karl Berry  <karl@gnu.org>
54489
54490         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
54491         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
54492
54493 2002-11-24  Jim Meyering  <jim@meyering.net>
54494
54495         Update from coreutils:
54496
54497         * lib/mktime.c: Merge in changes from libc.
54498
54499         Avoid a link-time failure on some Linux systems.
54500         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
54501         (otherwise).
54502         (__mon_yday): Declare with the STATIC attribute.
54503         (__mktime_internal): Likewise.
54504         Based on a report from Greg Schafer.
54505
54506 2002-11-23  Jim Meyering  <jim@meyering.net>
54507
54508         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
54509         Use `unsigned', not `int', as type of index.
54510
54511         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
54512
54513         * lib/fsusage.c: Remove unneeded parentheses around operands of
54514         `defined'.
54515
54516 2002-11-22  Paul Eggert  <eggert@twinsun.com>
54517
54518         * lib/quotearg.h: Allow multiple inclusion by surrounding with
54519         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
54520         so that we can be included first.
54521         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
54522         * lib/quotearg.c: Include quotearg.h immediately after config.h.
54523         No need to include stddef.h or sys/types.h any more.
54524         Surround local include files with "", not "<>".
54525         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
54526         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
54527         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
54528         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
54529         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
54530         (ISPRINT): Remove; no longer needed now that we assume C89.
54531
54532         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
54533         Preserve errno.
54534
54535         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
54536         quotearg_char): Use SIZE_MAX rather than
54537         (size_t) -1 when we are talking about "infinity".
54538
54539         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
54540
54541 2002-11-22  Paul Eggert  <eggert@twinsun.com>
54542
54543         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
54544         hint that one should use `if (! x) abort ();' rather than `assert
54545         (x);', and anyway it's one less thing to worry about configuring.
54546         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
54547         hash_rehash, hash_insert): Use abort rather than assert.
54548
54549 2002-11-22  Bruno Haible  <bruno@clisp.org>
54550
54551         * lib/safe-read.h: Assume C89. Add comments.
54552         (safe_read): Change return type to size_t.
54553         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
54554         byte counts > SSIZE_MAX correctly.
54555         * lib/safe-write.h: New file.
54556         * lib/safe-write.c: New file.
54557         * lib/full-read.h: New file.
54558         * lib/full-read.c: New file.
54559         * lib/full-write.h: Assume C89. Add comments.
54560         * lib/full-write.c: Include safe-write.h.
54561         (full_write): Rewritten to use safe_write.
54562         Suggested by Jim Meyering and Paul Eggert.
54563
54564 2002-11-21  Jim Meyering  <jim@meyering.net>
54565
54566         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
54567
54568         Merge in changes from the coreutils.
54569
54570         2002-09-25  Paul Eggert  <eggert@twinsun.com>
54571         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
54572         <stdint.h>.
54573         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
54574         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
54575         int.  Work more efficiently if X is the same width as uintmax_t.
54576         Do not compare X to -1, to avoid bogus compiler warning.
54577         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
54578         Don't assume that f_frsize and f_bsize are the same type.
54579
54580         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
54581         warning on FreeBSD.
54582
54583         * lib/makepath.c (make_path): Restore umask *before* creating the final
54584         component.
54585         (make_path): Minor reformatting.
54586
54587         * lib/xmalloc.c: Adjust to work with new autoconf macros,
54588         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
54589         HAVE_MALLOC/HAVE_REALLOC.
54590
54591         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
54592         dummy ones.  At least on GNU/Linux systems, `auto' means something
54593         else.
54594         From Michael Stone.
54595
54596 2002-11-21  Bruno Haible  <bruno@clisp.org>
54597
54598         Remove case insensitive option matching.
54599         * lib/argmatch.h (argcasematch): Remove declaration.
54600         (ARGCASEMATCH): Remove macro.
54601         (__xargmatch_internal): Remove case_sensitive argument.
54602         (XARGMATCH): Update.
54603         (XARGCASEMATCH): Remove macro.
54604         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
54605         case_sensitive argument.
54606         (argcasematch): Remove function.
54607         (__xargmatch_internal): Remove case_sensitive argument.
54608         (main): Use XARGMATCH instead of XARGCASEMATCH.
54609
54610         * lib/xmalloc.c: Change compile-time error message. Add comment about
54611         required autoconf version.
54612
54613 2002-11-20  Paul Eggert  <eggert@twinsun.com>
54614
54615         Merge argmatch cleanups from Bison.  Assume C89.
54616
54617         * lib/argmatch.c: Include config.h here, not in argmatch.h.
54618         Include stdlib.h, for EXIT_FAILURE.
54619         Always include <string.h>, since we assume C89.
54620         (EXIT_FAILURE): Remove pre-C89 bug workaround.
54621         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
54622         Include <stddef.h> instead, since it's all we need for size_t.
54623         (PARAMS): Remove.  All uses removed.
54624         (ARRAY_CARDINALITY): Do not bother to #undef.
54625         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
54626         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
54627         Remove unnecessary parentheses.
54628         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
54629         Insert necessary parentheses.
54630         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
54631         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
54632
54633 2002-11-19  Bruno Haible  <bruno@clisp.org>
54634
54635         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
54636         * lib/mbswidth.h: Include <stddef.h>, for size_t.
54637
54638         * lib/mbswidth.h (PARAMS): Remove macro.
54639         (mbswidth, mbsnwidth): Use ANSI C function declarations.
54640         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
54641
54642         * lib/gcd.h (PARAMS): Remove macro.
54643         (gcd): Use ANSI C function declarations.
54644         * lib/gcd.c (gcd): Likewise.
54645
54646 2002-11-15  Bruno Haible  <bruno@clisp.org>
54647
54648         * lib/strcspn.c: Include <stddef.h>.
54649         (strcspn): Use ANSI C function declaration. Change return type to
54650         size_t. Use NULL.
54651         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
54652         (strpbrk): Use NULL.
54653         * lib/strpbrk.h (PARAMS): Remove macro.
54654         (strpbrk): Use ANSI C function declaration.
54655         * lib/strstr.c: Don't include <sys/types.h>.
54656         * lib/strstr.h (PARAMS): Remove macro.
54657         (strstr): Use ANSI C function declarations.
54658
54659 2002-11-14  Karl Berry  <karl@gnu.org>
54660
54661         * config/mkinstalldirs: `do' on separate line, instead of
54662         `for var; do'.
54663
54664 2002-11-06  Bruno Haible  <bruno@clisp.org>
54665
54666         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
54667         * lib/gcd.c (gcd): Likewise.
54668
54669 2002-11-05  Bruno Haible  <bruno@clisp.org>
54670
54671         * lib/gcd.h: New file, from gettext-0.11.5.
54672         * lib/gcd.c: New file, from gettext-0.11.5.
54673
54674 2002-11-05  Bruno Haible  <bruno@clisp.org>
54675
54676         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
54677         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
54678         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
54679         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
54680
54681         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
54682         <libintl.h>.
54683         * lib/makepath.c: Include gettext.h instead of <locale.h> and
54684         <libintl.h>.
54685
54686         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
54687         * lib/human.c: Include gettext.h instead of <libintl.h>.
54688         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
54689         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
54690         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
54691         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
54692         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
54693         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
54694         (textdomain): Remove definition.
54695         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
54696
54697         * lib/long-options.c: Remove include of <libintl.h> and definition of
54698         _.
54699         * lib/same.c: Remove include of <libintl.h> and definition of _.
54700
54701 2002-11-04  Owen Taylor  <otaylor@redhat.com>
54702
54703         * lib/config.charset: A few additions for Solaris.
54704
54705 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
54706
54707         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
54708         * lib/localcharset.c (locale_charset): Declare as extern "C".
54709
54710 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
54711
54712         * lib/config.charset: msdos in uk_UA uses CP1125.
54713
54714 2002-11-04  Bruno Haible  <bruno@clisp.org>
54715
54716         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
54717         * lib/strcase.h: New file, from GNU gettext-0.11.5.
54718         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
54719         * lib/strstr.h: New file, from GNU gettext-0.11.5.
54720         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
54721
54722 2002-11-04  Bruno Haible  <bruno@clisp.org>
54723
54724         * lib/localcharset.c (locale_charset): Don't return an empty string.
54725
54726 2002-11-04  Bruno Haible  <bruno@clisp.org>
54727
54728         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
54729         aliases.
54730
54731 2002-11-04  Bruno Haible  <bruno@clisp.org>
54732
54733         * lib/config.charset: Update for newest glibc. Add canonical names
54734         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
54735
54736 2002-11-04  Bruno Haible  <bruno@clisp.org>
54737
54738         * lib/config.charset: Add support for NetBSD.
54739
54740 2002-11-04  Bruno Haible  <bruno@clisp.org>
54741
54742         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
54743
54744 2002-11-01  Bruno Haible  <bruno@clisp.org>
54745
54746         * configure.in: Add AC_CONFIG_AUX_DIR call.
54747         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
54748         test/Makefile.
54749         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
54750
54751 2002-09-28  Karl Berry  <karl@gnu.org>
54752
54753         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
54754         installed automake until the next release, since changes have been
54755         made.
54756
54757 2002-09-25  Karl Berry  <karl@gnu.org>
54758
54759         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
54760         * lib/getopt*: copy from libc/posix.
54761         * lib/gettext.h: copy from gettext.
54762         * lib/.cppi-disable: add strdup.c, gettext.h.
54763
54764 2002-09-25  Karl Berry  <karl@gnu.org>
54765
54766         * config/srclist.txt: enable gettext.h check.
54767         * config/config.{guess,sub}: update from prep.
54768         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
54769                 from automake 1.6.3.
54770         See srclist*.
54771
54772 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
54773
54774         * regex.c (PATFETCH): Remove the translating fetch.
54775         (PATFETCH_RAW): Rename to PATFETCH.
54776         (set_image_of_range): New fun.
54777         (SET_RANGE_TABLE_WORK_AREA): Use it.
54778         (regex_compile): Don't translate the pattern chars so eagerly.
54779         Only do it when inserting an `exactn' bytecode or when handling
54780         a char-range.
54781         (mutually_exclusive_p): Avoid empty statement.
54782
54783 2002-07-06  Jim Meyering  <meyering@lucent.com>
54784
54785         * m4/README: Don't mention Makefile.am.in.
54786         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
54787
54788 2002-07-01  Jim Meyering  <meyering@lucent.com>
54789
54790         * lib/c-stack.c: Include sys/time.h.
54791         From Volker Borchert.
54792
54793 2002-06-26  Paul Eggert  <eggert@twinsun.com>
54794
54795         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
54796
54797 2002-06-26  Paul Eggert  <eggert@twinsun.com>
54798
54799         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
54800         New macro.  Use it uniformly instead of
54801         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
54802         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
54803         reported by Vin Shelton.
54804
54805 2002-06-22  Paul Eggert  <eggert@twinsun.com>
54806
54807         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
54808         Do not assume SA_SIGINFO behavior.
54809         Bug reported by Jim Meyering on NetBSD 1.5.2.
54810
54811 2002-06-22  Jim Meyering  <meyering@lucent.com>
54812
54813         * m4/c-stack.m4: New file, from diffutils-2.8.2.
54814         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
54815
54816         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
54817         now that configure.ac uses AC_GNU_SOURCE.
54818         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
54819         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
54820
54821         Update to latest tools.  Suggestions from Paul Eggert.
54822         * m4/stdbool.m4: New file, from diffutils-2.8.2.
54823         * m4/gnu-source.m4: Update from diffutils-2.8.2.
54824         * m4/fnmatch.m4: Likewise.
54825         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
54826         to AC_HEADER_STDBOOL
54827
54828 2002-06-22  Jim Meyering  <meyering@lucent.com>
54829
54830         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
54831         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
54832
54833 2002-06-22  Jim Meyering  <meyering@lucent.com>
54834
54835         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
54836
54837         * lib/exitfail.c, exitfail.h: Likewise.
54838         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
54839
54840         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
54841         of fnmatch.h.
54842         (EXTRA_DIST): Add fnmatch_loop.c.
54843         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
54844
54845         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
54846         * lib/fnmatch.c: Update from diffutils-2.8.2.
54847         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
54848         * lib/fnmatch.h: Remove file.
54849
54850 2002-06-21  Jim Meyering  <meyering@lucent.com>
54851
54852         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
54853         * m4/mbrtowc.m4: Likewise.
54854
54855         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
54856         * m4/mbswidth.m4: Reflect name change:
54857         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
54858         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
54859
54860         * m4/lib-link.m4: Update from gettext-0.11.2.
54861         * m4/gettext.m4: Likewise.
54862
54863         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
54864         From Alfred M. Szmidt.
54865
54866 2002-06-18  Paul Eggert  <eggert@twinsun.com>
54867
54868         * lib/file-type.h: Report an error if neither S_ISREG nor
54869         S_IFREG is defined, instead of using a test specific to glibc
54870         2.2.  This should be safe, since POSIX requires S_ISREG and
54871         Unix Version 7 had S_IFREG.  We don't need to check for
54872         <sys/types.h> since we don't use any symbols that it defines.
54873
54874 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
54875
54876         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
54877         $@-t, so that each temporary file name is unique and valid in the first
54878         8 characters, for operation under DOS.
54879
54880 2002-06-15  Paul Eggert  <eggert@twinsun.com>
54881
54882         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
54883
54884 2002-06-15  Jim Meyering  <meyering@lucent.com>
54885
54886         Work even with DJGPP 2.03, which lacks support for symlinks.
54887         From Richard Dawe.
54888         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
54889         is defined.
54890         * lib/lchown.c (S_ISLNK): Likewise.
54891
54892 2002-06-15  Jim Meyering  <meyering@lucent.com>
54893
54894         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
54895         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
54896         have been included before this file.
54897
54898 2002-06-14  Jim Meyering  <meyering@lucent.com>
54899
54900         * lib/file-type.h: Use the version from diffutils-2.8.2.
54901         * lib/file-type.c: Likewise.
54902
54903 2002-06-07  Jim Meyering  <meyering@lucent.com>
54904
54905         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
54906         They're needed at least for NetBSD 1.5.2.
54907         ($statxfs_includes): Include those same headers.
54908         ($statxfs_includes): Include sys/vfs.h if available.
54909         ($statxfs_includes): Likewise for sys/statvfs.h.
54910         Check for the following members in both structs statfs and statvfs:
54911         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
54912
54913 2002-06-01  Jim Meyering  <meyering@lucent.com>
54914
54915         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
54916         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
54917
54918 2002-05-28  Jim Meyering  <meyering@lucent.com>
54919
54920         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
54921         Reported by Volker Borchert.
54922
54923 2002-05-27  Jim Meyering  <meyering@lucent.com>
54924
54925         Fix a problem seen only on nonconforming systems whereby ls.c's
54926         use of localtime, and then of gettimeofday would cause trouble:
54927         the localtime call used to initialize rpl_gettimeofday's save
54928         mechanism would clobber ls's current local time information so
54929         that in any long listing the first file would always be listed
54930         with date 1970-01-01.  Analysis by Volker Borchert.
54931
54932         * lib/gettimeofday.c (localtime): Undefine.
54933         (rpl_localtime): New function.
54934
54935 2002-05-27  Jim Meyering  <meyering@lucent.com>
54936
54937         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
54938         localtime.
54939
54940         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
54941         use the replacement function; it wouldn't resolve at link time.
54942         Reported by Volker Borchert.
54943
54944 2002-05-22  Jim Meyering  <meyering@lucent.com>
54945
54946         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
54947         file-type.h.
54948         * lib/file-type.h: New file.
54949         * lib/file-type.c (file_type): New file/function.  Extracted from
54950         diffutils.
54951
54952 2002-04-30  Jim Meyering  <meyering@lucent.com>
54953
54954         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
54955
54956 2002-04-29  Paul Eggert  <eggert@twinsun.com>
54957
54958         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
54959
54960 2002-04-29  Paul Eggert  <eggert@twinsun.com>
54961
54962         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
54963         Do not check for alloca.h (no longer used) or stdbool.h (was never
54964         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
54965
54966 2002-04-29  Paul Eggert  <eggert@twinsun.com>
54967
54968         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
54969
54970 2002-04-29  Jim Meyering  <meyering@lucent.com>
54971
54972         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
54973         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
54974         Use AC_FUNC_STRNLEN here instead.
54975
54976         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
54977         With autoconf-2.53a, it's part of AC_PROG_CC.
54978
54979 2002-04-28  Paul Eggert  <eggert@twinsun.com>
54980
54981         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
54982         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
54983
54984 2002-04-28  Paul Eggert  <eggert@twinsun.com>
54985
54986         * lib/sig2str.h, lib/sig2str.c: New files.
54987         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
54988
54989 2002-04-28  Paul Eggert  <eggert@twinsun.com>
54990
54991         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
54992         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
54993         of 127, since 64 is the largest conceivable number for ancient
54994         nonstandard hosts.
54995         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
54996
54997 2002-04-28  Jim Meyering  <meyering@lucent.com>
54998
54999         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
55000
55001 2002-04-24  Jim Meyering  <meyering@lucent.com>
55002
55003         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
55004         (jm_PREREQ): Use it.
55005
55006         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
55007         mach/mach.h fcntl.h.
55008         Check for this function: setlocale.
55009
55010 2002-04-24  Jim Meyering  <meyering@lucent.com>
55011
55012         * lib/gettext.h: New file, from Gettext.
55013         * lib/Makefile.am (INCLUDES): Remove -I../intl.
55014         (libfetish_a_SOURCES): Add gettext.h.
55015
55016 2002-04-16  Jim Meyering  <meyering@lucent.com>
55017
55018         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
55019         ut_pid, ut_id, ut_exit.
55020
55021 2002-04-16  Jim Meyering  <meyering@lucent.com>
55022
55023         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
55024         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
55025         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
55026
55027 2002-04-12  Jim Meyering  <meyering@lucent.com>
55028
55029         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
55030         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
55031         existence of the getmntinfo function.  Needed for Darwin 5.3.
55032
55033         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
55034         This is necessary at least on Darwin 5.3.
55035
55036         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
55037         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
55038         strnlen.o in the library, and that makes some versions of ranlib
55039         object.
55040
55041 2002-04-12  Jim Meyering  <meyering@lucent.com>
55042
55043         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
55044
55045 2002-04-09  Jim Meyering  <meyering@lucent.com>
55046
55047         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
55048         to be more precise.  Rather than saying we're checking whether the
55049         function `works', say what we're testing.
55050         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
55051         Reported by Bruno Haible.
55052
55053 2002-03-10  Jim Meyering  <meyering@lucent.com>
55054
55055         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
55056         Suggestion from Santiago Vila.
55057
55058 2002-03-08  Jim Meyering  <meyering@lucent.com>
55059
55060         * lib/rename.c: Mention that this wrapper is needed also on
55061         mips-dec-ultrix4.4 systems.
55062
55063 2002-03-02  Jim Meyering  <meyering@lucent.com>
55064
55065         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
55066         not HAVE_CLOCK_SETTIME.
55067
55068 2002-02-27  Paul Eggert  <eggert@twinsun.com>
55069
55070         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
55071         Check for clock_settime.
55072
55073 2002-02-27  Paul Eggert  <eggert@twinsun.com>
55074
55075         * lib/nanosleep.h: Rename to....
55076         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
55077
55078         * lib/gettime.c: New file.
55079         * lib/settime.c: New file.
55080         * lib/stime.c: Remove.
55081
55082         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
55083         timespec.h.  Remove nanosleep.h.
55084
55085 2002-02-25  Paul Eggert  <eggert@twinsun.com>
55086
55087         * m4/acl.m4: New file.
55088         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
55089         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
55090
55091 2002-02-25  Paul Eggert  <eggert@twinsun.com>
55092
55093         * lib/acl.c, lib/acl.h: New files.
55094         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
55095
55096 2002-02-24  Jim Meyering  <meyering@lucent.com>
55097
55098         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
55099         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
55100         cause trouble.  Reported by Nelson Beebe.
55101
55102 2002-02-23  Paul Eggert  <eggert@twinsun.com>
55103
55104         * lib/path-concat.c (xpath_concat): Reorder code to pacify
55105         compilers that don't know that xalloc_die never returns.
55106
55107 2002-02-20  Jim Meyering  <meyering@lucent.com>
55108
55109         * lib/getdate.c: Regenerate using bison-1.33.
55110
55111 2002-02-17  Jim Meyering  <meyering@lucent.com>
55112
55113         * config/config.guess (main): Don't use `head -1'; it's no longer
55114         portable. Use `sed 1q' instead.
55115
55116 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
55117
55118         * m4/codeset.m4: Upgrade to gettext-0.11.
55119         * m4/gettext.m4: Upgrade to gettext-0.11.
55120         * m4/glibc21.m4: Upgrade to gettext-0.11.
55121         * m4/iconv.m4: Upgrade to gettext-0.11.
55122         * m4/isc-posix.m4: Upgrade to gettext-0.11.
55123         * m4/lcmessage.m4: Upgrade to gettext-0.11.
55124         * m4/lib-ld.m4: New file, from gettext-0.11.
55125         * m4/lib-link.m4: New file, from gettext-0.11.
55126         * m4/lib-prefix.m4: New file, from gettext-0.11.
55127         * m4/progtest.m4: Upgrade to gettext-0.11.
55128
55129 2002-02-15  Paul Eggert  <eggert@twinsun.com>
55130
55131         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
55132         (jm_PREREQ): Use it.
55133
55134 2002-02-15  Paul Eggert  <eggert@twinsun.com>
55135
55136         * lib/posixver.c, lib/posixver.h: New files.
55137         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
55138
55139 2002-02-02  Paul Eggert  <eggert@twinsun.com>
55140             Bruno Haible  <bruno@clisp.org>
55141
55142         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
55143         (fwrite_success_callback): New declaration.
55144         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
55145         print_unicode_char. Call failure callback instead of error.
55146         (fwrite_success_callback): New function.
55147         (exit_failure_callback): New function.
55148         (fallback_failure_callback): New function.
55149         (print_unicode_char): Call unicode_to_mb.
55150
55151 2002-01-26  Jim Meyering  <meyering@lucent.com>
55152
55153         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
55154         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
55155
55156 2002-01-26  Jim Meyering  <meyering@lucent.com>
55157
55158         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
55159
55160 2002-01-22  Paul Eggert  <eggert@twinsun.com>
55161
55162         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
55163
55164 2002-01-22  Jim Meyering  <meyering@lucent.com>
55165
55166         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
55167         Otherwise, some versions of automake would omit the rule that makes
55168         Makefile from Makefile.in.
55169
55170 2002-01-21  Paul Eggert  <eggert@twinsun.com>
55171
55172         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
55173         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
55174         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
55175         (memcoll): Set errno to zero if there is no error.
55176
55177         * lib/quotearg.c (quotearg_buffer_restyled):
55178         Fix bug with quoting buffers containing NUL when backslashing escapes.
55179         This bug was exposed by the other changes in this patch.
55180         (quotearg_n_options): New arg ARGSIZE.
55181         All callers changed.
55182         (quoting_options_from_style): New function.
55183         (quotearg_n_style): Use it.
55184         (quotearg_n_style_mem): New function.
55185
55186         * lib/quotearg.h (quotearg_n_style_mem): New function.
55187
55188 2002-01-19  Jim Meyering  <meyering@lucent.com>
55189
55190         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
55191         Remove useless quotes: DF_PROG="df".
55192         * m4/strnlen.m4: New file.
55193
55194 2002-01-16  Paul Eggert  <eggert@twinsun.com>
55195
55196         * lib/backupfile.c (ISDIGIT): Comment fix.
55197         * lib/getdate.y (ISDIGIT): Likewise.
55198         * lib/posixtm.c (ISDIGIT, year): Likewise.
55199         * lib/strverscmp.c (ISDIGIT): Likewise.
55200         * lib/userspec.c (ISDIGIT): Likewise.
55201
55202 2002-01-16  Jim Meyering  <meyering@lucent.com>
55203
55204         * lib/getdate.y: Add three semicolons, each just before a closing
55205         brace. Bison (as of version 1.31) no longer papers over that mistake.
55206
55207 2002-01-05  Jim Meyering  <meyering@lucent.com>
55208
55209         * lib/version-etc.c (version_etc_copyright): Update copyright year.
55210
55211 2001-12-19  Paul Eggert  <eggert@twinsun.com>
55212
55213         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
55214         not silently exit merely because the output buffer happens to
55215         have nothing pending.
55216
55217 2001-12-18  Paul Eggert  <eggert@twinsun.com>
55218
55219         See the big note in ../ChangeLog.
55220         * lib/human.c (suffixes): Prefer K to k for 1024.
55221         (generate_suffix_backwards): New function.
55222         (human_readable_inexact): Use it.
55223         * lib/xstrtol.c (__xstrtol): If there is no number but there
55224         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
55225         Accept 'K' as well as 'k'.
55226
55227 2001-12-15  Jim Meyering  <meyering@lucent.com>
55228
55229         * lib/regex.h (__restrict_arr): Update from libc.
55230
55231         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
55232         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
55233         (STREQ): Define.
55234
55235 2001-12-14  Jim Meyering  <meyering@lucent.com>
55236
55237         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
55238         Suggestion from Bruno Haible.
55239
55240 2001-12-10  Jim Meyering  <meyering@lucent.com>
55241
55242         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
55243         xrealloc, Instead, include "xalloc.h".
55244         (initbuffer): Don't cast xmalloc return value to char*.
55245         (readline): Reword comment.
55246         Don't cast xrealloc return value to char*
55247         Return NULL, not 0.
55248
55249 2001-12-09  Jim Meyering  <meyering@lucent.com>
55250
55251         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
55252         about `signed and unsigned type in conditional expression'.
55253         * lib/posixtm.c (posix_time_parse): Likewise.
55254
55255         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
55256
55257         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
55258         to avoid a pedantic warning.
55259
55260         * lib/getstr.c: Don't include assert.h.
55261         (getstr): Remove warning-evoking assertions.
55262         Return -1 if offset parameter is out of bounds.
55263         Change the type of a local from int to size_t.
55264
55265         * lib/strftime.c (my_strftime_localtime_r): Include this function
55266         definition in the `#if ! HAVE_TM_GMTOFF' block.
55267
55268         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
55269         Include xalloc.h instead.
55270
55271 2001-12-02  Jim Meyering  <meyering@lucent.com>
55272
55273         * lib/tempname.c: Don't declare getenv, thus reverting the change of
55274         2001-11-18.  It's no longer necessary, now that stdlib.h is always
55275         included.
55276
55277         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
55278         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
55279
55280 2001-11-30  Akim Demaille  <akim@epita.fr>
55281
55282         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
55283         before being defined.
55284
55285 2001-11-27  Paul Eggert  <eggert@twinsun.com>
55286
55287         * lib/quotearg.h (quotearg_n, quotearg_n_style):
55288         First arg is int, not unsigned.
55289         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
55290         (SIZE_MAX, UINT_MAX): New macros.
55291         (quotearg_n_options): Abort if N is negative.
55292         Avoid overflow check on hosts where size_t is 64 bits and int
55293         is 32 bits, as overflow is impossible there.
55294         Fix off-by-one typo that caused unnecessary reallocation.
55295
55296 2001-11-27  Jim Meyering  <meyering@lucent.com>
55297
55298         * lib/tempname.c: Merge with version from libc.
55299         * lib/regex.c: Likewise.
55300
55301         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
55302         systems for which STDC_HEADERS is 0, it was not included, resulting in
55303         a warning about an integer-to-pointer conversion problem with getenv.
55304         Reported by Volker Borchert.
55305
55306 2001-11-26  Jim Meyering  <meyering@lucent.com>
55307
55308         * lib/gtod.h: Remove file.
55309         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
55310         * lib/gettimeofday.c: Don't include gtod.h.
55311         (GTOD_init): Remove function.
55312         (rpl_gettimeofday): Do its job here instead, rather than aborting.
55313         Suggestion from Volker Borchert.
55314
55315 2001-11-23  Jim Meyering  <meyering@lucent.com>
55316
55317         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
55318         it.
55319         * lib/hash.c (struct hash_table): Define it here instead.
55320
55321 2001-11-22  Jim Meyering  <meyering@lucent.com>
55322
55323         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
55324
55325 2001-11-20  Jim Meyering  <meyering@lucent.com>
55326
55327         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
55328         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
55329
55330 2001-11-19  Jim Meyering  <meyering@lucent.com>
55331
55332         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
55333         directory.  Use "conftestXXXXXX" as the template.
55334         Suggestion from Paul Eggert.
55335
55336         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
55337         immediately, so the test doesn't mistakenly hit the max-open-files
55338         limit.
55339
55340 2001-11-18  Paul Eggert  <eggert@twinsun.com>
55341
55342         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
55343         (TEMPORARIES): New macro.
55344         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
55345         removes an artificial limitation (e.g. HP-UX 10.20, where
55346         TMP_MAX is 17576).
55347
55348 2001-11-18  Jim Meyering  <meyering@lucent.com>
55349
55350         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
55351
55352 2001-11-18  Jim Meyering  <meyering@lucent.com>
55353
55354         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
55355         on SunOS 4.
55356
55357         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
55358         files will be created before anything else.
55359
55360 2001-11-17  Paul Eggert  <eggert@twinsun.com>
55361
55362         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
55363         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
55364
55365 2001-11-17  Jim Meyering  <meyering@lucent.com>
55366
55367         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
55368         Prompted by a report from Bob Proulx.
55369
55370         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
55371         Instead, require UTILS_FUNC_MKSTEMP.
55372
55373 2001-11-17  Jim Meyering  <meyering@lucent.com>
55374
55375         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
55376         Now, that's done as part of AC_FUNC_STRTOD.
55377
55378 2001-11-17  Jim Meyering  <meyering@lucent.com>
55379
55380         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
55381         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
55382         rather than group writable.  Patch by Juan F. Codagnone.
55383
55384         * lib/readtokens.c: Remove explicit declarations of xmalloc and
55385         xrealloc, Instead, include "xalloc.h".
55386
55387         * lib/mountlist.c: Include unlocked-io.h after all system headers.
55388         Remove explicit declarations of xmalloc, xrealloc,
55389         and xstrdup.  Instead, include "xalloc.h".
55390
55391         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
55392         unlocked-io.h.
55393         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
55394         Likewise.
55395         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
55396
55397         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
55398         Reported by Padraig Brady.
55399
55400         * lib/mkstemp.c: #undef mkstemp.
55401         Include config.h.
55402         (rpl_mkstemp): Rename from mkstemp.
55403         Protoize.
55404
55405 2001-11-16  Jim Meyering  <meyering@lucent.com>
55406
55407         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
55408         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
55409         determine the amount of total physical memory, use pstat_getstatic.
55410         HPUX-11 doesn't define _SC_PHYS_PAGES.
55411         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
55412         If sysconf couldn't be used to determine the amount of available
55413         physical memory, use both pstat_getstatic and pstat_getdynamic.
55414         Based on a patch from Bob Proulx.
55415
55416 2001-11-10  Jim Meyering  <meyering@lucent.com>
55417
55418         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
55419         (jm_PREREQ): Use it.
55420
55421 2001-11-09  Jim Meyering  <meyering@lucent.com>
55422
55423         * m4/jm-macros.m4: Require autoconf-2.52f.
55424         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
55425         Use these AC_-prefixed names, not the AM_-prefixed ones.
55426
55427         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
55428
55429 2001-11-05  Jim Meyering  <meyering@lucent.com>
55430
55431         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
55432
55433 2001-11-04  Jim Meyering  <meyering@lucent.com>
55434
55435         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
55436         $DEFS.
55437
55438 2001-11-03  Jim Meyering  <meyering@lucent.com>
55439
55440         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
55441         of AC_DEFUN.
55442
55443         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
55444         know the name of the variable in the macro definition.
55445
55446 2001-11-03  Jim Meyering  <meyering@lucent.com>
55447
55448         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
55449         in argmatch_to_argument call.
55450
55451         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
55452         argument.
55453
55454         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
55455         e.g., a fault due to an attempt to free a NULL pointer.
55456
55457 2001-11-01  Jim Meyering  <meyering@lucent.com>
55458
55459         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
55460         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
55461
55462 2001-11-01  Jim Meyering  <meyering@lucent.com>
55463
55464         * lib/dirfd.c, lib/dirfd.h: New files.
55465         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
55466
55467         * lib/hash.c (hash_print) [TESTING]: Clean up.
55468
55469 2001-10-22  Paul Eggert  <eggert@twinsun.com>
55470
55471         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
55472         to avoid a warning if -Wall.
55473
55474 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
55475
55476         * README: New file
55477         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
55478         (per RMS's instructions, this is now the canonical source)
55479         * lgpl/, gpl/: New directories.
55480
55481 2001-10-21  Paul Eggert  <eggert@twinsun.com>
55482
55483         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
55484
55485 2001-10-21  Jim Meyering  <meyering@lucent.com>
55486
55487         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
55488         this code would end up calling gettext even in packages built
55489         with --disable-nls.
55490         * lib/getopt.c (_): Likewise.
55491         * lib/regex.c (_): Likewise.
55492
55493 2001-10-20  Paul Eggert  <eggert@twinsun.com>
55494
55495         * m4/error.m4 (jm_PREREQ_ERROR):
55496         Do not invoke AC_CHECK_FUNCS with strerror_r, as
55497         AC_FUNC_STRERROR_R does that.
55498         Check for strerror declaration.
55499
55500         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
55501         are supposed to have them these days.
55502         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
55503         Merge changes from latest Autoconf CVS.
55504         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
55505         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
55506         POSIX decided to standardize on the int flavor of strerror_r.
55507
55508 2001-10-20  Paul Eggert  <eggert@twinsun.com>
55509
55510         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
55511         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
55512         Use strerror_r that is only a macro, even if it is not a function.
55513         (strerror): Check for HAVE_DECL_STRERROR before declaring.
55514         (private_strerror): Use prototypes, not old-style function definition.
55515         (print_errno_message): New function.
55516         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
55517         char*-flavored one.
55518         (error_tail, error, error_at_line): Use it.
55519
55520 2001-10-11  Jim Meyering  <meyering@lucent.com>
55521
55522         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
55523         and quote_n (1, ... to avoid clobbering a buffer.
55524
55525 2001-10-05  Jim Meyering  <meyering@lucent.com>
55526
55527         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
55528         hash-pjw.h.
55529         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
55530         * lib/hash-pjw.h: New file.
55531
55532 2001-09-30  Jim Meyering  <meyering@lucent.com>
55533
55534         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
55535         `struct fsstat' has the `f_fstypename' member.
55536         Use that to define FS_TYPE, which is now used to make
55537         the getfsstat link test tighter.
55538
55539 2001-09-30  Jim Meyering  <meyering@lucent.com>
55540
55541         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
55542         Include <sys/ucred.h>, for Apple Darwin.
55543         Include sys/mount.h and sys/fs_types.h only if available.
55544         (FS_TYPE): Define.
55545         (read_filesystem_list): Use FS_TYPE.
55546
55547 2001-09-29  Paul Eggert  <eggert@twinsun.com>
55548
55549         * lib/exclude.c (excluded_filename): 0 -> false, since it's
55550         a boolean context.
55551
55552 2001-09-29  Jim Meyering  <meyering@lucent.com>
55553
55554         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
55555         [one-argument getmntent function]): Include stdio.h before mntent.h.
55556         SunOS 4.1.x needs it for the declaration of `FILE'.
55557         Patch by Volker Borchert.
55558
55559         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
55560         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
55561         sys/fs_types.h, and make the link-test for getfsstat guard #include
55562         directives with appropriate #if HAVE_*_H tests so that we can
55563         detect getfsstat on Apple Darwin1.3.7 systems.
55564         Reported by Nelson Beebe.
55565         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
55566
55567 2001-09-28  Paul Eggert  <eggert@twinsun.com>
55568
55569         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
55570         #defines strtoimax.  Also treat the other strto* functions
55571         like strtoimax.
55572
55573         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
55574         Check for strtoul and strtoumax,
55575         as those declarations are made even in the signed case.
55576         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
55577         Likewise, for strtol and strtoimax.
55578
55579 2001-09-28  Paul Eggert  <eggert@twinsun.com>
55580
55581         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
55582         #defines strtoimax.  Also treat the other strto* functions
55583         like strtoimax.
55584
55585         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
55586         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
55587         (strtoimax, strtoumax): Do not declare if already defined as a macro.
55588
55589 2001-09-26  Jim Meyering  <meyering@lucent.com>
55590
55591         Most macros in unlocked-io.h had the wrong number of arguments.
55592         * lib/gen-uio: New script.
55593         (USE_UNLOCKED_IO): Define to 1 if not already defined.
55594         * lib/unlocked-io.hin: Remove file.
55595         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
55596         rather than trying to embed it here.
55597         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
55598         Reported by Padraig Brady.
55599
55600 2001-09-25  Volker Borchert  <bt@teknon.de>
55601
55602         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
55603         `result'.
55604
55605 2001-09-24  Jim Meyering  <meyering@lucent.com>
55606
55607         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
55608
55609 2001-09-23  Jim Meyering  <meyering@lucent.com>
55610
55611         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
55612         instead of the mere test for existence of mntent.h.  The latter
55613         would get a false-positive on AIX 3.4 systems.
55614         In the outer getmntent if-block, don't die if neither of the getmntent
55615         tests succeeds.  Instead, just fall through and continue with the
55616         remaining tests.
55617
55618 2001-09-23  Jim Meyering  <meyering@lucent.com>
55619
55620         * lib/mountlist.c: Remove useless parentheses in #if directives.
55621         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
55622         the deprecated MOUNTED symbol is no longer defined in mntent.h.
55623
55624 2001-09-22  Jim Meyering  <meyering@lucent.com>
55625
55626         * m4/gettext.m4: New file.  From gettext.
55627         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
55628         * m4/progtest.m4: Likewise
55629         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
55630         * m4/glibc21.m4: Likewise.
55631
55632         * m4/libintl.m4: Remove.  No longer used.
55633
55634 2001-09-22  Jim Meyering  <meyering@lucent.com>
55635
55636         * lib/localcharset.c: Update from latest gettext.
55637         * lib/config.charset: Likewise.
55638
55639 2001-09-20  Jim Meyering  <meyering@lucent.com>
55640
55641         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
55642         strtoimax.
55643         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
55644         strtoumax.
55645
55646 2001-09-20  Jim Meyering  <meyering@lucent.com>
55647
55648         * lib/xstrtol.c (strtoimax): Guard declaration with
55649         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
55650         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
55651         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
55652         (strtoumax): Likewise, for completeness (it wasn't necessary).
55653
55654 2001-09-17  Paul Eggert  <eggert@twinsun.com>
55655
55656         * lib/strtoimax.c (HAVE_LONG_LONG):
55657         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
55658         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
55659         to work around bug in IBM C compiler.
55660
55661 2001-09-17  Jim Meyering  <meyering@lucent.com>
55662
55663         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
55664         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
55665         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
55666         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
55667         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
55668         whenever the right hand side need not be expanded by the shell.
55669
55670 2001-09-16  Paul Eggert  <eggert@twinsun.com>
55671
55672         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
55673         library.  It's not correct, as some older glibcs are buggy.
55674         fnmatch wasn't fixed until glibc 2.2.
55675
55676         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
55677         special shell magic here.
55678
55679 2001-09-16  Jim Meyering  <meyering@lucent.com>
55680
55681         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
55682         * m4/jm-macros.m4: Require it.
55683
55684 2001-09-16  Jim Meyering  <meyering@lucent.com>
55685
55686         * lib/mkdir.c: New file.
55687
55688 2001-09-15  Jim Meyering  <meyering@lucent.com>
55689
55690         * m4/jm-macros.m4: Check for help2man.
55691
55692 2001-09-11  Jim Meyering  <meyering@lucent.com>
55693
55694         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
55695         The body, by Paul Eggert, was moved here from configure.in.
55696         * m4/jm-macros.m4: Require UTILS_HOST_OS.
55697
55698 2001-09-04  Paul Eggert  <eggert@twinsun.com>
55699
55700         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
55701         (jm_PREREQ): Use it.
55702
55703 2001-09-04  Paul Eggert  <eggert@twinsun.com>
55704
55705         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
55706         Use ssize_t, not int, to store result of readlink.
55707         Check for ssize_t overflow as well as size_t overflow,
55708         as POSIX says the result of readlink is implementation-defined
55709         when ssize_t overflows.
55710         Remove unnecessary cast to char*.
55711         Use free+malloc instead of realloc, as the storage doesn't need
55712         to be preserved and it's clearer and can be more efficient that way.
55713         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
55714         * lib/xreadlink.h (xreadlink): Update prototype.
55715
55716 2001-09-04  Paul Eggert  <eggert@twinsun.com>
55717
55718         * lib/xgetcwd.c: Revert some of the previous change; intead,
55719         fix the HAVE_GETCWD_NULL code to behave more like the
55720         !HAVE_GETCWD_NULL code used to.
55721
55722         Include "xalloc.h".
55723         (xgetcwd): Do not return NULL when memory is exhausted; instead,
55724         invoke xalloc_die.
55725
55726 2001-09-03  Paul Eggert  <eggert@twinsun.com>
55727
55728         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
55729         sys/param.h, as pathmax.h includes them.
55730
55731 2001-09-03  Paul Eggert  <eggert@twinsun.com>
55732
55733         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
55734         (jm_PREREQ_XGETCWD): New macro.
55735
55736         * m4/getcwd.m4: New file.
55737
55738 2001-09-03  Paul Eggert  <eggert@twinsun.com>
55739
55740         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
55741         like the HAVE_GETCWD_NULL code.
55742         Include pathmax.h if not HAVE_GETCWD.
55743         Do not include xalloc.h.
55744         (INITIAL_BUFFER_SIZE): New symbol.
55745         Do not use xmalloc / xrealloc, since the caller is responsible for
55746         handling errors.  Preserve errno around `free' during failure.
55747         Do not overrun buffer when using getwd.
55748
55749 2001-09-03  Paul Eggert  <eggert@twinsun.com>
55750
55751         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
55752         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
55753         getcwd (NULL, 0).
55754
55755 2001-09-03  Paul Eggert  <eggert@twinsun.com>
55756
55757         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
55758         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
55759         spotted by Jim Meyering.
55760
55761 2001-09-03  Jim Meyering  <meyering@lucent.com>
55762
55763         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
55764         failure.
55765
55766 2001-09-02  Jim Meyering  <meyering@lucent.com>
55767
55768         * lib/error.c: Update from GNU libc.
55769
55770 2001-09-01  Jim Meyering  <meyering@lucent.com>
55771
55772         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
55773         Used by df.
55774
55775 2001-09-01  Jim Meyering  <meyering@lucent.com>
55776
55777         * lib/xreadlink.c: New file.
55778         * lib/xreadlink.h: New file.
55779         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
55780         xreadlink.h.
55781
55782         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
55783         doesn't conflict with sparc Solaris 7's definition in
55784         /usr/include/sys/int_types.h.
55785
55786         * lib/exclude.c: Use `""', not `<>' to #include non-system header
55787         files.
55788         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
55789         and strncasecmp as r-values.  Unixware didn't have declarations.
55790
55791 2001-08-31  Paul Eggert  <eggert@twinsun.com>
55792
55793         * lib/xstrtol.h: Add copyright notice.
55794         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
55795         LONGINT_INVALID_SUFFIX_CHAR.
55796
55797 2001-08-31  Paul Eggert  <eggert@twinsun.com>
55798
55799         * lib/xstrtol.c (strtoimax): New decl.
55800
55801 2001-08-31  Paul Eggert  <eggert@twinsun.com>
55802
55803         * lib/xgetcwd.c: Don't include pathmax.h.
55804         Include stdlib.h and unistd.h if available.
55805         Include xalloc.h.
55806         (xmalloc, xstrdup, free): Remove decls.
55807         (xgetcwd): Don't assume sizes fit in unsigned.
55808         Check for overflow when computing sizes.
55809         Simplify reallocation code.
55810
55811 2001-08-31  Paul Eggert  <eggert@twinsun.com>
55812
55813         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
55814         a directory's st_size can have an arbitrary value, so the old
55815         usage could waste an arbitrary amount of memory.  All uses
55816         changed.
55817         * lib/savedir.h: Update prototype.
55818
55819 2001-08-31  Paul Eggert  <eggert@twinsun.com>
55820
55821         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
55822
55823         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
55824         old strtoimax.c.
55825
55826         Also, make the following further changes to make this file's
55827         configuration more similar to that of strtol.c:
55828         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
55829         (strtoumax, uintmax_t, strtoull, strtol): Remove.
55830         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
55831         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
55832         changed to signed values.
55833
55834         And make the following changes as well:
55835         Fix copyright notice, as 1999 was missing.
55836         (verify): New macro.
55837         (strtoimax): Check sizes at compile-time, not run-time.
55838         Prefer strtol to strtoll if both work.
55839         (main): Remove; it was not that useful and was a pain to maintain.
55840
55841         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
55842
55843 2001-08-31  Jim Meyering  <meyering@lucent.com>
55844
55845         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
55846         Use an initial, malloc'd, buffer of length 128 rather than
55847         a statically allocated one of length 1024.
55848
55849 2001-08-30  Paul Eggert  <eggert@twinsun.com>
55850
55851         Simplify code, partly by assuming autoconf 2.52 semantics.
55852
55853         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
55854
55855         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
55856         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
55857         All uses removed.
55858         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
55859         Move AC_REQUIRE to next-to-top level, to avoid confusion.
55860         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
55861         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
55862         jm_AC_HEADER_INTTYPES_H.
55863         * m4/jm-macros.m4 (jm_MACROS): Likewise.
55864
55865         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
55866
55867         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
55868         Quote first arg of AC_DEFUN.
55869         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
55870         since they are needed to parse the include file even if we need
55871         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
55872         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
55873         but with opposite signedness.
55874
55875 2001-08-30  Paul Eggert  <eggert@twinsun.com>
55876
55877         Merge 'exclude' changes from tar 1.13.22.
55878         This fixes one or two unlikely storage allocation overflow bugs,
55879         but doesn't change user-visible behavior otherwise.
55880
55881 2001-08-30  Paul Eggert  <eggert@twinsun.com>
55882
55883         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
55884         (jm_PREREQ_EXCLUDE): New macro.
55885
55886 2001-08-30  Paul Eggert  <eggert@twinsun.com>
55887
55888         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
55889         tm to be declared.
55890
55891 2001-08-30  Paul Eggert  <eggert@twinsun.com>
55892
55893         * lib/hash.c: Remove '2001' from copyright notice.
55894
55895 2001-08-30  Paul Eggert  <eggert@twinsun.com>
55896
55897         * lib/full-write.h: New file.
55898         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
55899         * lib/full-write.c: Correct credits, as cccp.c no longer
55900         exists and anyway it was so heavily changed from the old cccp
55901         code as to be unrecognizable.  Include full-write.h.
55902         (full_write) Return size_t, with short writes meaning failure.
55903         All callers changed.  This fixes a bug with large buffers
55904         on 64-bit hosts.
55905         * lib/utime.c: Include full-write.h.
55906
55907 2001-08-30  Paul Eggert  <eggert@twinsun.com>
55908
55909         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
55910         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
55911         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
55912         Include if available.
55913         (<xalloc.h>): Include
55914         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
55915         (verify): New macro.  Use it to verify that EXCLUDE macros do not
55916         collide with FNM macros.
55917         (struct patopts): New struct.
55918         (struct exclude): Use it, as exclude patterns now come with options.
55919         (new_exclude): Support above changes.
55920         (new_exclude, add_exclude_file):
55921         Initial size must now be a power of two to simplify overflow checking.
55922         (free_exclude, fnmatch_no_wildcards): New function.
55923         (excluded_filename): No longer requires options arg, as the options
55924         are determined by add_exclude.  Now returns bool, not int.
55925         (excluded_filename, add_exclude):
55926         Add support for the fancy new exclusion options.
55927         (add_exclude, add_exclude_file): Now takes int options arg.
55928         Check for arithmetic overflow when computing sizes.
55929         (add_exclude_file): xrealloc might modify errno, so don't
55930         realloc until after errno might be used.
55931
55932         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
55933         New macros.
55934         (free_exclude): New decl.
55935         (add_exclude, add_exclude_file): Now takes int options arg.
55936         (excluded_filename): No longer requires options arg, as the options
55937         are determined by add_exclude.  Now returns bool, not int.
55938
55939 2001-08-30  Paul Eggert  <eggert@twinsun.com>
55940
55941         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
55942
55943 2001-08-27  Jim Meyering  <meyering@lucent.com>
55944
55945         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
55946
55947         * lib/version-etc.c (N_): Remove definition.
55948         Revert most of last change.
55949         Instead, simply don't mark the `Copyright...' string for translation.
55950         Based on advice from Paul Eggert.
55951
55952         * lib/strtoxmax.c: Tweak comment.
55953
55954 2001-08-26  Jim Meyering  <meyering@lucent.com>
55955
55956         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
55957
55958         * m4/xstrtoimax.m4: New file.
55959         * m4/xstrtoumax.m4: Add comments explaining why we
55960         AC_REPLACE_FUNCS(strtol).
55961
55962 2001-08-26  Jim Meyering  <meyering@lucent.com>
55963
55964         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
55965         of copyright with `%s' so translators don't get an untranslated
55966         message in 2002.
55967         (COPYRIGHT_YEAR): Define.
55968         (version_etc): Use fprintf rather than fputs.
55969         Suggestion from Ulrich Drepper.
55970
55971         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
55972
55973         * lib/strtoll.c: New file, from GNU libc.
55974         * lib/xstrtoimax.c: New file.
55975
55976         * lib/xstrtol.h: Add xstrtoimax.
55977         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
55978         * lib/strtoimax.c: New file.  Likewise, but first define
55979         STRTOUXMAX_SIGNED.
55980
55981         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
55982         ...
55983         * lib/strtoxmax.c: ... then renamed to this.
55984
55985 2001-08-18  Paul Eggert  <eggert@twinsun.com>
55986
55987         * m4/inttypes.m4: Add AC_PREREQ(2.13).
55988         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
55989         (jm_AC_TYPE_INTMAX_T): New macro.
55990         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
55991
55992         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
55993
55994         * m4/longlong.m4: Renamed from ulonglong.m4.
55995         * m4/inttypes.m4: Renamed from inttypes_h.m4.
55996         * m4/uintmax_t.m4: Removed.
55997
55998 2001-08-13  Paul Eggert  <eggert@twinsun.com>
55999
56000         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
56001         Port to Solaris 8, where 'sed' requires a space after the 'r'
56002         command, and where sh dislikes "$/".  Clean up the spacing a bit.
56003         Redirect output to $tmp just once.
56004
56005 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
56006
56007         * lib/addext.c (<errno.h>): Include.
56008         (errno): Declare if not defined.
56009         (addext): Work correctly when pathconf returns -1 and leaves
56010         errno alone because there is no limit.  Also, work even if
56011         pathconf returns a value greater than SIZE_MAX.
56012
56013 2001-08-12  Jim Meyering  <meyering@lucent.com>
56014
56015         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
56016         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
56017         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
56018         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
56019         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
56020         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
56021         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
56022         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
56023         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
56024         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
56025         utime.m4, utimes.m4, xstrtoumax.m4:
56026         Quote the first argument in each use of AC_DEFUN.
56027
56028 2001-08-12  Jim Meyering  <meyering@lucent.com>
56029
56030         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
56031         Simply `return getcwd (NULL, 0);'.
56032         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
56033         Use 1300 as initial value for length, not PATH_MAX.
56034
56035         * lib/pathmax.h: Clean up cpp syntax.
56036
56037 2001-08-12  Jim Meyering  <meyering@lucent.com>
56038
56039         * lib/gettimeofday.c: New file.
56040         * lib/gtod.h: New file.
56041         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
56042
56043 2001-08-05  Jim Meyering  <meyering@lucent.com>
56044
56045         * m4/jm-macros.m4: Require autoconf-2.52.
56046
56047 2001-08-04  Jim Meyering  <meyering@lucent.com>
56048
56049         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
56050         stmt, to get in sync with glibc.
56051
56052 2001-08-03  Paul Eggert  <eggert@twinsun.com>
56053
56054         The following changes are from gettext 0.10.39 as maintained by
56055         Bruno Haible.
56056
56057         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
56058         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
56059         with inverted sense.  All uses changed.
56060
56061         * lib/mbswidth.c: Don't include <limits.h>.
56062         Include <stdlib.h> and <string.h> unconditionally.
56063         (iswcntrl, mbsinit, ISCNTRL): New macros.
56064         (mbsnwidth): Use K&R style function declarations.
56065         Don't bother checking for MB_LEN_MAX == 1, since the compiler
56066         can optimize it when MB_CUR_MAX == 1.
56067         The width of control characters is zero, not 1.
56068
56069 2001-08-03  Paul Eggert  <eggert@twinsun.com>
56070
56071         The following changes are from gettext 0.10.39 as maintained by
56072         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
56073
56074         * m4/codeset.m4: Upgrade to serial AM1.
56075         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
56076         all uses changed.  Quote first arg of AC_DEFUN.
56077         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
56078
56079         * m4/iconv.m4: Upgrade to serial AM2.
56080         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
56081         Add --with-libconv-prefix.
56082         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
56083         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
56084         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
56085         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
56086         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
56087
56088         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
56089         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
56090         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
56091         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
56092         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
56093         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
56094         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
56095         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
56096         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
56097
56098         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
56099         string.h any more.
56100
56101         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
56102         not the default value.
56103
56104         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
56105         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
56106         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
56107         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
56108         Also check for iswcntrl, used for wcwidth fallback.
56109         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
56110         to Autoconf 2.13.
56111
56112 2001-08-03  Jim Meyering  <meyering@lucent.com>
56113
56114         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
56115         as it was in the original.  Reported by Paul Eggert.
56116
56117 2001-07-16  Jim Meyering  <meyering@lucent.com>
56118
56119         * m4/gettimeofday.m4: New file.
56120         Prompted by a report from Bernhard Baehr.
56121
56122 2001-07-15  Jim Meyering  <meyering@lucent.com>
56123
56124         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
56125         stuff. Now it's in ../Makefile.cfg.
56126
56127 2001-07-15  Jim Meyering  <meyering@lucent.com>
56128
56129         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
56130         (BUILT_SOURCES): Add unlocked-io.h.
56131         (io_functions): Define.
56132         (unlocked-io.h): New rule.
56133         (DISTCLEANFILES): Add unlocked-io.h.
56134         (all-local): Depend on unlocked-io.h, to ensure it is created.
56135
56136         * lib/unlocked-io.hin: New file
56137
56138         * lib/regex.c: Update from glibc.
56139
56140 2001-07-05  Jim Meyering  <meyering@lucent.com>
56141
56142         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
56143         recommendation.
56144         (libfetish_a_SOURCES): Put all .h files here instead.
56145         Remove a thus-exposed (better checks in automake) duplicate and
56146         two unnecessary .h files.
56147
56148 2001-07-04  Jim Meyering  <meyering@lucent.com>
56149
56150         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
56151         that generates jm-glibc-io.m4 so that it doesn't trigger any make
56152         distcheck failure.
56153
56154 2001-07-02  Jim Meyering  <meyering@lucent.com>
56155
56156         The following changes were prompted by suggestions from Bruno Haible.
56157
56158         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
56159         is now generated.
56160         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
56161         definition of EXTRA_DIST.
56162         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
56163         ensure that the generated file is created/updated whenever the list
56164         of $(unlocked_functions) is changed.
56165         (jm-glibc-io.m4): New rule.
56166         (unlocked-io.h): New rule -- currently unused.
56167
56168 2001-06-24  Jim Meyering  <meyering@lucent.com>
56169
56170         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
56171         unmatched right bracket, rather than kludging it with an extra,
56172         falsely-matching quote in a comment.  Patch by Akim Demaille.
56173
56174 2001-06-11  Jim Meyering  <meyering@lucent.com>
56175
56176         * lib/regex.c: Update from GNU libc.
56177
56178 2001-05-27  Jim Meyering  <meyering@lucent.com>
56179
56180         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
56181         Check for ut_type in struct utmp.
56182
56183 2001-05-27  Jim Meyering  <meyering@lucent.com>
56184
56185         * lib/readutmp.h (UT_TYPE): Define.
56186
56187 2001-05-24  Jim Meyering  <meyering@lucent.com>
56188
56189         * lib/argmatch.c: Include "quote.h".
56190         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
56191         quote function.  Reported by Göran Uddeborg.
56192
56193 2001-05-22  Jim Meyering  <meyering@lucent.com>
56194
56195         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
56196         now that we use the package-supplied version unconditionally.
56197         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
56198
56199 2001-05-21  Jim Meyering  <meyering@lucent.com>
56200
56201         * m4/regex.m4: Change a couple backticks to single quotes to avoid
56202         shell syntax errors.
56203
56204 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
56205
56206         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
56207
56208 2001-05-20  Paul Eggert  <eggert@twinsun.com>
56209
56210         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
56211         Don't bother to check library strftime, since
56212         we'll be using our own my_strftime function anyway.
56213         Define my_strftime instead of strftime.
56214
56215 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
56216
56217         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
56218         which is not yet declared.
56219
56220 2001-05-15  Jim Meyering  <meyering@lucent.com>
56221
56222         * m4/regex.m4: Use proper quoting so brackets appear in the test
56223         program.
56224         Reported by, and with help from, Bruno Haible.
56225
56226 2001-05-13  Jim Meyering  <meyering@lucent.com>
56227
56228         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
56229         undefined.
56230
56231 2001-05-11  Paul Eggert  <eggert@twinsun.com>
56232
56233         dirname code cleanup.  base_name now behaves more compatibly
56234         with POSIX basename when given file names that have trailing
56235         slashes, and similarly for dir_name.  Add new primitives
56236         base_len and dir_len.  Put the directory-name-related decls
56237         into dirname.h.
56238
56239         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
56240         * lib/backupfile.c (base_name): Likewise.
56241         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
56242         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
56243         * lib/makepath.c (strip_trailing_slashes): Likewise.
56244         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
56245         ISSLASH): Likewise.
56246         * lib/rename.c (strip_trailing_slashes): Likewise.
56247         * lib/same.c (base_name): Likewise.
56248         * lib/stripslash.c (ISSLASH): Likewise.
56249
56250         * lib/addext.c: Include <dirname.h> after size_t is defined.
56251         * lib/backupfile.c: Likewise.
56252
56253         * lib/addext.c (addext): Use base_len to trim redundant
56254         trailing slashes instead of doing it ourselves.
56255         But do not trim the last slash if it is not redundant.
56256
56257         * lib/backupfile.c (find_backup_file_name,
56258         max_backup_version): Use base_len instead of rolling it ourselves.
56259         Handle the case of "" and (on DOS) "C:" correctly.
56260
56261         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
56262         needed. Include <string.h>, <dirname.h>.
56263         (base_name): Allow file names ending in slashes, other than names
56264         that are all slashes.  In this case, return the basename followed
56265         by the slashes.  This is more general, and can be used in places
56266         where the original base_name purposely had an assertion failure.
56267         (base_len): New function.
56268
56269         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
56270         Do not include <assert.h>; no longer needed.
56271         Include xalloc.h.
56272         (memrchr): Remove decl.
56273         (dir_name_r): Remove.
56274         (dir_len): Renamed from dirlen.  All callers changed.
56275         Rewrite in terms of base_name, for simplicity and consistency.
56276         (dir_name): Never return NULL.  All callers changed.
56277         Do not include <stdlib.h> in test program; no longer needed.
56278         return 0; is fine for test program.
56279
56280         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
56281         New macros.
56282         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
56283
56284         * lib/path-concat.c (path_concat): Use base_len to compute
56285         base length, not strlen; this means we cannot rely on memcpy
56286         to null-terminate.
56287
56288         * lib/same.c (STREQ): Remove.
56289         (same_name): Handle the case where the basename ends in trailing '/'.
56290
56291         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
56292         a slash was stripped.  Do not strip the last slash after a
56293         file system prefix.
56294
56295 2001-05-11  Paul Eggert  <eggert@twinsun.com>
56296
56297         * lib/Makefile.am (libfetish_a_SOURCES):
56298         Add strftime.c, since we now compile it on all hosts.
56299
56300         * lib/strftime.c (my_strftime):
56301         Define to nstrftime if emacs, but only if my_strftime is not defined.
56302         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
56303         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
56304         Add one more extra argument: a nanoseconds value.
56305         All uses changed.
56306         (ns): New macro.
56307         (my_strftime function): Add %N format.
56308         (emacs_strftimeu): Renamed from emacs_strftime,
56309         with extra ut argument.
56310
56311 2001-05-09  Paul Eggert  <eggert@twinsun.com>
56312
56313         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
56314
56315 2001-04-21  Jim Meyering  <meyering@lucent.com>
56316
56317         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
56318         doesn't interfere.
56319
56320 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
56321
56322         * m4/ftruncate.m4: Check for chsize.
56323         Link with ftruncate.o unconditionally if ftruncate is missing.
56324         This was required when cross-compiling to i586-mingw32msvc.
56325
56326 2001-04-08  Jim Meyering  <meyering@lucent.com>
56327
56328         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
56329         recomputed; that's necessary when the offset spans a DST transition.
56330         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
56331
56332 2001-04-02  Jim Meyering  <meyering@lucent.com>
56333
56334         * lib/regex.h, regex.c: Update from GNU libc.
56335
56336 2001-03-24  Jim Meyering  <meyering@lucent.com>
56337
56338         * m4/jm-macros.m4: Require autoconf-2.49d.
56339
56340 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
56341
56342         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
56343
56344 2001-03-19  Paul Eggert  <eggert@twinsun.com>
56345
56346         * lib/version-etc.c (version_etc_copyright): Update to 2001.
56347
56348 2001-03-17  Jim Meyering  <meyering@lucent.com>
56349
56350         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
56351         now that the version in autoconf is equivalent.
56352         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
56353
56354         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
56355         Suggestion from Akim Demaille.
56356
56357         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
56358         (jm_PREREQ_TEMPNAME): New function.
56359
56360 2001-03-16  Paul Eggert  <eggert@twinsun.com>
56361
56362         * lib/tempname.c (uint64_t): Define to uintmax_t if
56363         not defined, and if UINT64_MAX is not defined.
56364         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
56365         Reported by John David Anglin.
56366
56367 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
56368
56369         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
56370         resolve alias if codeset is empty.
56371         * lib/config.charset (BeOS): Use wildcard syntax.
56372
56373 2001-03-13  Jim Meyering  <meyering@lucent.com>
56374
56375         * lib/path-concat.c (path_concat)
56376         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
56377         concatenating e.g., `C:' and `foo'.
56378         From Bruno Haible.
56379
56380 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
56381
56382         * lib/localcharset.c (locale_charset): Don't use
56383         setlocale(LC_CTYPE,NULL). Don't return NULL.
56384         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
56385
56386 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
56387
56388         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
56389         support for DOS/DJGPP.
56390
56391 2001-03-01  Paul Eggert  <eggert@twinsun.com>
56392
56393         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
56394         lacks mkstemp.  Compile our own tempname.c if we compile our own
56395         mkstemp.c, as mkstemp relies on tempname.
56396
56397 2001-03-01  Jim Meyering  <meyering@lucent.com>
56398
56399         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
56400         AH_VERBATIM really does output its argument verbatim.
56401
56402 2001-02-28  Paul Eggert  <eggert@twinsun.com>
56403
56404         * lib/Makefile.am (libfetish_a_SOURCES):
56405         Add dup-safer.c, fopen-safer.c.
56406         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
56407
56408         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
56409         * lib/unistd-safer.h: New files.
56410
56411 2001-02-25  Paul Eggert  <eggert@twinsun.com>
56412
56413         The mkstemp replacement is taken from glibc 2.2.2, with some
56414         portability fixes for use outside glibc, as follows:
56415
56416         * lib/tempname.c (struct_stat64): New macro.
56417         (direxists, __gen_tempname): Use it.
56418         This avoids a portability problem with Solaris 8.
56419
56420         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
56421         (<stddef.h>, <stdint.h>, <string.h>):
56422         Include only if STDC_HEADERS || _LIBC.
56423         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
56424         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
56425         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
56426         (__set_errno): Define this macro if <errno.h> doesn't.
56427         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
56428         Define these macros if <stdio.h> doesn't.
56429         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
56430         Define these macros if <sys/stat.h>
56431         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
56432         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
56433         __xstat64): Define if not _LIBC.
56434         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
56435         (__gen_tempname): Invoke gettimeofday only if
56436         HAVE_GETTIMEOFDAY || _LIBC;
56437         otherwise, fall back on plain "time".
56438         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
56439
56440         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
56441
56442         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
56443
56444 2001-02-18  Paul Eggert  <eggert@twinsun.com>
56445
56446         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
56447
56448 2001-02-17  Paul Eggert  <eggert@twinsun.com>
56449
56450         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
56451         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
56452         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
56453         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
56454
56455 2001-02-17  Paul Eggert  <eggert@twinsun.com>
56456
56457         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
56458         Remove workaround macros for hosts that have mbrtowc but not
56459         mbstate_t, as we now insist on proper declarations for both
56460         before using mbrtowc.
56461
56462 2001-02-17  Jim Meyering  <meyering@lucent.com>
56463
56464         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
56465         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
56466         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
56467         UnixWare 7.1.1.
56468
56469         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
56470         rather than AC_CACHE_VAL.
56471
56472 2001-02-17  Jim Meyering  <meyering@lucent.com>
56473
56474         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
56475         around included file name.
56476
56477         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
56478
56479         * lib/strftime.c: Update from GNU libc (the only changes were to
56480         comments).
56481
56482 2001-02-17  Jim Meyering  <meyering@lucent.com>
56483
56484         * lib/regex.c: Update from libc.
56485
56486 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
56487
56488         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
56489         clash.
56490
56491 2001-02-16  Paul Eggert  <eggert@twinsun.com>
56492
56493         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
56494         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
56495         Reported by Mark Hounschell via Paul Eggert.
56496
56497 2001-02-07  Jim Meyering  <meyering@lucent.com>
56498
56499         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
56500
56501 2001-02-05  Jim Meyering  <meyering@lucent.com>
56502
56503         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
56504         it includes the patch required for `large file' support with at least
56505         HP-UX's 10.20 /bin/cc.
56506
56507 2001-02-03  Jim Meyering  <meyering@lucent.com>
56508
56509         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
56510         AS_IF, now that it works once again (mysteriously).
56511         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
56512
56513 2001-01-30  Jim Meyering  <meyering@lucent.com>
56514
56515         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
56516         * m4/chown.m4: Rename conftestchown to conftest.chown.
56517         * m4/rename.m4: s/conftestdir/conftest.d1/ and
56518         s/conftestdir2/conftest.d2/.
56519         * m4/utimes.m4: s/conftestdata/conftest.data/
56520         Inspired by Pavel Roskin's change in autoconf.
56521
56522 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
56523
56524         * lib/config.charset: Update for FreeBSD 4.2.
56525
56526 2001-01-27  Jim Meyering  <meyering@lucent.com>
56527
56528         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
56529         a use of AS_IF.
56530         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
56531
56532 2001-01-26  Jim Meyering  <meyering@lucent.com>
56533
56534         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
56535         quotearg.c includes it.
56536
56537 2001-01-26  Jim Meyering  <meyering@lucent.com>
56538
56539         * lib/quotearg.c: Include stddef.h.
56540         * lib/quote.c: Include stddef.h.
56541         Reported by Axel Kittenberger.
56542
56543         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
56544         line in double quotes so that it evokes a better diagnostic.
56545         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
56546         Reported by Axel Kittenberger.
56547
56548 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
56549
56550         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
56551         as if it was a `charset'.
56552
56553 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
56554
56555         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
56556         has const.
56557
56558 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
56559
56560         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
56561         to avoid a warning.  Add back 'const' to inptr.
56562
56563 2001-01-20  Jim Meyering  <meyering@lucent.com>
56564
56565         Be sure that headers are checked before used in code compiled
56566         for the type checks.
56567         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
56568         In place of that, invoke jm_CHECK_ALL_TYPES.
56569         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
56570         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
56571         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
56572         The check for ssize_t was mistakenly run before the test for unistd.h.
56573
56574         The configure-time check for stdbool.h was missing.
56575         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
56576         (jm_PREREQ_HASH): New function.
56577
56578 2001-01-17  Jim Meyering  <meyering@lucent.com>
56579
56580         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
56581         for autoconf-2.49c.
56582         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
56583
56584 2001-01-16  Jim Meyering  <meyering@lucent.com>
56585
56586         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
56587         From Bruno Haible.
56588
56589 2001-01-14  Jim Meyering  <meyering@lucent.com>
56590
56591         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
56592         foo and bar.  Create conftestdir/ in the script, not in the C code.
56593         Remove directories in the script, not in the C code.
56594         Remove conftestdir{,2} before trying to create the directory.
56595         Make the entire configure script fail if the mkdir fails.
56596
56597 2001-01-14  Jim Meyering  <meyering@lucent.com>
56598
56599         * lib/rename.c: New file.  From Volker Borchert.
56600         Include stdlib.h, string.h or strings.h, and xalloc.h.
56601         Use strip_trailing_slashes rather than open-coding it.
56602
56603 2001-01-03  Paul Eggert  <eggert@twinsun.com>
56604
56605         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
56606
56607 2001-01-03  Jim Meyering  <meyering@lucent.com>
56608
56609         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
56610         of local `inptr' to avoid warning with some system declarations of
56611         iconv.
56612
56613 2001-01-02  Volker Borchert  <bt@teknon.de>
56614
56615         * m4/rename.m4: New file.
56616         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
56617
56618 2001-01-01  Jim Meyering  <meyering@lucent.com>
56619
56620         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
56621         even on systems with utmpx.h.  It's necessary for the declaration of
56622         utmp's ut_user member.  Reported by Andreas Jaeger.
56623
56624         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
56625         available. They are required for the declarations of getgrgid and
56626         getpwuid resp.
56627         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
56628         Reported by Andreas Jaeger.
56629
56630 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
56631
56632         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
56633         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
56634         so `make install' also works in VPATH builds.
56635
56636 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
56637
56638         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
56639         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
56640         can be used in subdirectories.
56641
56642 2000-12-29  Paul Eggert  <eggert@twinsun.com>
56643
56644         * lib/modechange.c: Do not assume that mode_t uses the
56645         traditional octal encoding.  E.g. "chmod 1 FOO" should set
56646         the other-execute bit of FOO even if S_IXOTH != 1.
56647
56648         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
56649         WOTH, XOTH, ALLM): New macros.
56650         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
56651          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
56652         Use them.
56653         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
56654         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
56655         (mode_compile):
56656         No need to use uintmax_t; unsigned long is long enough.
56657         Don't bother to get suffix since we don't use it.
56658
56659 2000-12-26  Jim Meyering  <meyering@lucent.com>
56660
56661         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
56662         better with autoheader.
56663
56664 2000-12-24  Jim Meyering  <meyering@lucent.com>
56665
56666         * lib/hash.c (is_prime): Return explicit boolean values.
56667         (hash_get_first): Return NULL to appease Irix5.6's 89.
56668         Reported by Nelson Beebe.
56669
56670 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
56671
56672         * lib/localcharset.c (locale_charset): Add support for Win32.
56673
56674 2000-12-18  Paul Eggert  <eggert@twinsun.com>
56675
56676         * lib/physmem.h, lib/physmem.c: New files.
56677
56678         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
56679         (noinst_HEADERS): Add physmem.h.
56680
56681         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
56682         't' for compatibility with Solaris 8 sort.
56683
56684 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
56685
56686         * lib/config.charset: Add support for BeOS.
56687
56688 2000-12-17  Jim Meyering  <meyering@lucent.com>
56689
56690         * m4/dos.m4 (jm_AC_DOS): New file and macro.
56691         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
56692
56693 2000-12-16  Jim Meyering  <meyering@lucent.com>
56694
56695         This bug had a serious impact on chown: `chown N:M FILE' (for integer
56696         N and M) would have treated it like `chown N:N FILE'.
56697
56698         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
56699
56700 2000-12-16  Jim Meyering  <meyering@lucent.com>
56701
56702         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
56703         SHELLS_FILE to a file name that's useful on djgpp systems.
56704         Include stdlib.h.
56705         (ADDITIONAL_DEFAULT_SHELLS): Define.
56706         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
56707         Based mostly on a patch from Prashant TR.
56708
56709 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
56710
56711         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
56712         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
56713         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
56714
56715 2000-12-08  Andreas Schwab  <schwab@suse.de>
56716
56717         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
56718         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
56719
56720 2000-12-07  Jim Meyering  <meyering@lucent.com>
56721
56722         * lib/stripslash.c (ISSLASH): Define.
56723         (strip_trailing_slashes): Use ISSLASH rather than comparing against
56724         `/'.
56725         From Prashant TR.
56726
56727         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
56728         (dir_name_r): Declare this function as static.
56729         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
56730         manifest itself on a name containing a mix of slashes and
56731         backslashes.
56732         Make this function work with names starting with a DOS-style
56733         drive letter and colon prefix.
56734         (dir_name): Append `.' if necessary.
56735         Based mostly on patches from Prashant TR and Eli Zaretskii.
56736
56737         * lib/dirname.h (dir_name_r): Remove prototype.
56738
56739 2000-12-06  Paul Eggert  <eggert@twinsun.com>
56740
56741         * m4/off_t-format.m4: Remove this file.
56742         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
56743
56744 2000-12-06  Jim Meyering  <meyering@lucent.com>
56745
56746         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
56747         replacement strtoull, we may well need the replacement strtoul, too.
56748         Check for declarations of strtoul and strtoull.
56749         Check for strtol.  Mainly as a cue to cause automake to include
56750         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
56751         Check for limits.h -- strtol.c needs it.
56752
56753 2000-12-05  Jim Meyering  <meyering@lucent.com>
56754
56755         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
56756
56757 2000-12-04  Jim Meyering  <meyering@lucent.com>
56758
56759         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
56760         Also include memory.h, stdlib.h, unistd.h if appropriate.
56761         Reported by Andreas Jaeger (conflicting declaration of malloc).
56762
56763 2000-12-02  Jim Meyering  <meyering@lucent.com>
56764
56765         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
56766         * m4/jm-macros.m4 (jm_MACROS): require it.
56767
56768 2000-12-02  Jim Meyering  <meyering@lucent.com>
56769
56770         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
56771
56772 2000-12-01  Paul Eggert  <eggert@twinsun.com>
56773
56774         * lib/memrchr.c: Include <config.h> before any system include file.
56775
56776 2000-11-30  Jim Meyering  <meyering@lucent.com>
56777
56778         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
56779
56780 2000-11-30  Jim Meyering  <meyering@lucent.com>
56781
56782         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
56783
56784 2000-11-29  Paul Eggert  <eggert@twinsun.com>
56785
56786         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
56787
56788 2000-11-26  Jim Meyering  <meyering@lucent.com>
56789
56790         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
56791
56792 2000-11-22  Paul Eggert  <eggert@twinsun.com>
56793
56794         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
56795         size of (size_t) -1; it's not portable.
56796
56797 2000-11-17  Jim Meyering  <meyering@lucent.com>
56798
56799         * lib/strstr.c: Update from GNU libc.
56800
56801 2000-11-17  Akim Demaille  <akim@epita.fr>
56802
56803         * lib/obstack.h: Formatting changes.
56804         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
56805         prevent type checking.
56806         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
56807         cast the value to (void *): assigning a `foo *' to a `void *'
56808         variable is valid.
56809         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
56810
56811 2000-11-16  Jim Meyering  <meyering@lucent.com>
56812
56813         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
56814
56815 2000-11-11  Jim Meyering  <meyering@lucent.com>
56816
56817         * lib/error.c: Add a couple #includes, merging from GNU libc version.
56818
56819 2000-11-10  Jim Meyering  <meyering@lucent.com>
56820
56821         * lib/obstack.h: Update from GNU libc.
56822         * lib/obstack.c: Likewise.
56823
56824 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
56825
56826         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
56827
56828 2000-11-06  Paul Eggert  <eggert@twinsun.com>
56829
56830         * lib/getusershell.c (setusershell): Use rewind rather than
56831         fseek/fseeko, to avoid configuration hassles with fseeko.
56832         Don't bother opening SHELLS_FILE if shellstream is NULL;
56833         it's not necessary.
56834
56835 2000-11-05  Jim Meyering  <meyering@lucent.com>
56836
56837         * lib/makepath.h (make_dir): Declare.
56838         * lib/makepath.c (make_dir): Remove `static' attribute.
56839         Tweak a comment.
56840
56841 2000-11-04  Jim Meyering  <meyering@lucent.com>
56842
56843         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
56844
56845 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
56846
56847         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
56848         last one in a bucket, advance to the next bucket.
56849
56850 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
56851
56852         * lib/fnmatch.c: Do not comment out all the code if we are using
56853         the GNU C library, because in some cases we are replacing buggy
56854         code in the GNU C library itself.
56855
56856 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
56857
56858         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
56859         (regex_compile): Catch bogus \(\1\).
56860
56861 2000-10-30  Paul Eggert  <eggert@twinsun.com>
56862
56863         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
56864         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
56865         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
56866
56867 2000-10-30  Paul Eggert  <eggert@twinsun.com>
56868
56869         * lib/error.h, getline.h, modechange.h:
56870         Remove "2000" from Copyright line, as the file hasn't been
56871         changed this year other than in the copyright notice.
56872
56873         * lib/xalloc.h: Add "2000" to Copyright line, as this file
56874         was changed this year.
56875
56876 2000-10-29  Jim Meyering  <meyering@lucent.com>
56877
56878         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
56879         renaming.
56880         * m4/ls-mntd-fs.m4: Likewise
56881
56882 2000-10-29  Jim Meyering  <meyering@lucent.com>
56883
56884         * lib/xstat.in: Fix grammar in comment.
56885
56886 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
56887
56888         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
56889         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
56890         doesn't define __restrict_arr.
56891
56892 2000-10-28  Jim Meyering  <meyering@lucent.com>
56893
56894         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
56895         (jm_PREREQ_MEMCHR): New function.
56896
56897 2000-10-28  Jim Meyering  <meyering@lucent.com>
56898
56899         * lib/memchr.c: Update from libc.
56900         Adjust for portability:
56901         [HAVE_STDLIB_H]: Include stdlib.h.
56902         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
56903         Undef __memchr, too.
56904         [!weak_alias]: Define __memchr to memchr.
56905
56906         * lib/regex.c: Update from libc.
56907         * lib/regex.h: Likewise.
56908         * lib/getopt1.c: Likewise.
56909         * lib/memcmp.c: Likewise.
56910
56911         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
56912         Avoid using fseek, when possible -- it's broken by design.
56913         Patch by Ulrich Drepper.
56914
56915 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
56916
56917         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
56918         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
56919         Giving in to popular pressure to shut up the compiler with casts.
56920
56921 2000-10-26  Jim Meyering  <meyering@lucent.com>
56922
56923         * lib/strftime.c: Update from libc.
56924
56925 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
56926
56927         * regex.c: More `unsigned char' -> `re_char' changes.
56928         Also change several `int' into `re_wchar_t'.
56929         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
56930         (PUSH_FAILURE_POINTER): Don't cast any more.
56931         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
56932         We want GCC to complain, since this piece of code makes
56933         re_match non-reentrant, which *should* be fixed.
56934         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
56935         (EXTEND_BUFFER): Use RETALLOC.
56936         (SET_LIST_BIT): Don't cast.
56937         (re_wchar_t): New type.
56938         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
56939         that those two functions will always properly return.
56940         (IMMEDIATE_QUIT_CHECK): Cast to void.
56941         (analyse_first): Use recursion rather than an explicit stack.
56942         (re_compile_fastmap): Can't fail anymore.
56943         (re_search_2): Don't check re_compile_fastmap for failure.
56944         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
56945         Now also sets the new value (passed in a new argument).
56946         (re_match_2_internal): Use it.
56947         Also, use a new var `reg' of type size_t when looping through regs
56948         rather than reuse the inappropriate `mcnt'.
56949
56950 2000-10-25  Jim Meyering  <meyering@lucent.com>
56951
56952         * lib/obstack.c: Update from libc.
56953
56954 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
56955
56956         * regex.c (regex_compile): Change the way of handling a range from
56957         a char less than 256 to a char not less than 256.
56958
56959 2000-10-24  Andrew Innes  <andrewi@gnu.org>
56960
56961         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
56962         NT-Emacs only.
56963         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
56964         so that re_search functions only quit when callers expect them to.
56965
56966 2000-10-23  Jim Meyering  <meyering@lucent.com>
56967
56968         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
56969         wrong.  That set_locale call must not have any side effects.
56970         From Paul Eggert.
56971
56972 2000-10-22  Jim Meyering  <meyering@lucent.com>
56973
56974         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
56975         [CYCLIC]: Remove now-unused definition.
56976
56977         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
56978         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
56979         Suggestion from Ulrich Drepper.
56980
56981 2000-10-21  Jim Meyering  <meyering@lucent.com>
56982
56983         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
56984         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
56985         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
56986
56987 2000-10-21  Jim Meyering  <meyering@lucent.com>
56988
56989         * lib/dirname.c (memrchr): Declare if necessary.
56990         (dir_name): Remove the restriction that there be no
56991         trailing slashes.  Now, this code skips past them, effectively
56992         ignoring them.
56993         [TEST_DIRNAME] (main): New unit tests.
56994
56995         * lib/memrchr.c: New file from GNU libc.
56996         Undef __memrchr, too.
56997         [!weak_alias]: Define __memrchr to memrchr.
56998         Guard weak_alias use with `#ifdef weak_alias'.
56999
57000 2000-10-21  Jim Meyering  <meyering@lucent.com>
57001
57002         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
57003         (dir_name): Use dir_name_r.
57004         * lib/dirname.h (dir_name_r): Declare it.
57005
57006 2000-10-17  Jim Meyering  <meyering@lucent.com>
57007
57008         * lib/quote.h (PARAMS): Define and use.
57009         Reported by Akim Demaille.
57010
57011         * lib/getopt.c: Update from libc.
57012
57013 2000-10-16  Jim Meyering  <meyering@lucent.com>
57014
57015         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
57016         setlocale.
57017         From Jan Fedak.
57018
57019 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
57020
57021         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
57022
57023 2000-09-25  Jim Meyering  <meyering@lucent.com>
57024
57025         * lib/md5.h (rol): Define (from GnuPG).
57026
57027         * lib/sha.c: Give credit (GnuPG) where due.
57028         (M): Use rol rather than open-coding it.
57029         Add a FIXME comment.
57030
57031 2000-09-21  Jim Meyering  <meyering@lucent.com>
57032
57033         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
57034         Reported by Michael Stone.
57035
57036 2000-09-20  Jim Meyering  <meyering@lucent.com>
57037
57038         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
57039         (noinst_HEADERS): Add sha.h.
57040         Based on code from Scott G. Miller and from GnuPG.
57041
57042 2000-09-18  Jim Meyering  <meyering@lucent.com>
57043
57044         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
57045         LIBS. Otherwise, everyone ends up linking with -lelf for some
57046         configurations.
57047         Reported by Mike Stone.
57048
57049 2000-09-15  Jim Meyering  <meyering@lucent.com>
57050
57051         * lib/regex.c: Update from libc.
57052
57053 2000-09-10  Jim Meyering  <meyering@lucent.com>
57054
57055         * lib/getopt.c (_getopt_internal): Update from glibc.
57056
57057 2000-09-09  Jim Meyering  <meyering@lucent.com>
57058
57059         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
57060         think it should be used as a general replacement for isascii.
57061         * lib/fnmatch.c: Likewise.
57062         * lib/mbswidth.c: Likewise
57063         * lib/regex.c: Likewise.
57064
57065         Don't use atoi.
57066         * lib/userspec.c: Include sys/param.h and limits.h.
57067         Include xstrtol.h.
57068         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
57069         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
57070         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
57071         UID, GID.  Check range.
57072
57073 2000-09-06  Jim Meyering  <meyering@lucent.com>
57074
57075         * lib/getopt.c (_getopt_internal): Update from glibc.
57076
57077 2000-08-30  Jim Meyering  <meyering@lucent.com>
57078
57079         * lib/strftime.c: Merge in changes from GNU libc.
57080
57081 2000-08-26  Jim Meyering  <meyering@lucent.com>
57082
57083         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
57084         * m4/fpending.m4: New file.
57085
57086 2000-08-26  Jim Meyering  <meyering@lucent.com>
57087
57088         * lib/closeout.c: Include "__fpending.h".
57089         (close_stdout_status): Return right away if there's nothing to flush.
57090
57091         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
57092         * lib/__fpending.c: New file.
57093         * lib/__fpending.h: New file.
57094
57095 2000-08-20  Jim Meyering  <meyering@lucent.com>
57096
57097         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
57098         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
57099         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
57100
57101 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
57102
57103         Improve fileutils installation on systems where running
57104         programs (like install) can't be unlinked.
57105         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
57106         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
57107
57108 2000-08-07  Paul Eggert  <eggert@twinsun.com>
57109
57110         Standardize on "memory exhausted" instead of "Memory exhausted"
57111         or "virtual memory exhausted".
57112         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
57113         "virtual memory exhausted".
57114         * lib/same.c (same_name): Invoke xalloc_die instead of printing
57115         our own message.
57116         * lib/userspec.c (parse_user_spec): Likewise.
57117         * lib/bumpalloc.h: comment fix
57118         * lib/same.c, userspec.c: Include xalloc.h.
57119
57120         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
57121         not char *const and pointing to a constant array.
57122         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
57123         (xrealloc): Comment fix.
57124
57125         * lib/userspec.c (parse_user_spec):
57126         Don't translate a message until just before returning,
57127         to avoid unnecessary translation.
57128
57129 2000-08-07  Jim Meyering  <meyering@lucent.com>
57130
57131         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
57132         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
57133         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
57134         getgroups.c, gethostname.c, getopt.h, group-member.c,
57135         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
57136         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
57137         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
57138         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
57139         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
57140         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
57141         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
57142         yesno.c: Back out Copyright date changes for each file with no change
57143         this year.  This eases coordination with other programs using the same
57144         source code modules.  From Paul Eggert.
57145
57146 2000-08-06  Paul Eggert  <eggert@twinsun.com>
57147
57148         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
57149         not char, for compatibility with glibc 2.1.3 strftime.c.
57150
57151 2000-08-03  Greg McGary  <greg@mcgary.org>
57152
57153         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
57154         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
57155         (EXTEND_BUFFER): Use them.
57156
57157 2000-08-01  Jim Meyering  <meyering@lucent.com>
57158
57159         * lib/dirname.c (ISSLASH): Define.
57160         (BACKSLASH_IS_PATH_SEPARATOR): Define.
57161         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
57162         both `\' and `/' may be use as path separators.
57163         Based on a patch from Prashant TR.
57164
57165 2000-07-31  Paul Eggert  <eggert@twinsun.com>
57166
57167         * lib/quotearg.c (quotearg_n_options): Don't make the initial
57168         slot vector a constant, since it might get modified.
57169
57170 2000-07-31  Jim Meyering  <meyering@lucent.com>
57171
57172         * lib/xmalloc.c: Use `virtual memory exhausted', not
57173         `Memory exhausted'.
57174         * lib/obstack.c (print_and_abort): Likewise.
57175
57176 2000-07-30  Paul Eggert  <eggert@twinsun.com>
57177
57178         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
57179         buffer, so that the caller can always quote one small
57180         component of a "memory exhausted" message in slot 0.
57181         From a suggestion by Jim Meyering.
57182
57183 2000-07-30  Jim Meyering  <meyering@lucent.com>
57184
57185         * lib/makepath.c (make_path): Quote the other instance, too.
57186
57187         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
57188         (STATIC_BUF_SIZE): Define.
57189         (quotearg_n_options): Use only statically allocated storage when
57190         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
57191         than STATIC_BUF_SIZE.
57192
57193 2000-07-29  Jim Meyering  <meyering@lucent.com>
57194
57195         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
57196         * lib/dirname.c (dir_name): Likewise.
57197
57198         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
57199         `/'.
57200
57201         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
57202         (dir_name): Assert that there are no trailing slashes.
57203
57204 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
57205
57206         * lib/mbswidth.h (mbswidth): Add a flags argument.
57207         (mbswidth): New declaration.
57208         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
57209         * lib/mbswidth.c (mbswidth): Add a flags argument.
57210         (mbsnwidth): New function.
57211
57212 2000-07-24  Jim Meyering  <meyering@lucent.com>
57213
57214         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
57215
57216 2000-07-23  Paul Eggert  <eggert@twinsun.com>
57217
57218         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
57219
57220 2000-07-23  Paul Eggert  <eggert@twinsun.com>
57221
57222         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
57223         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
57224         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
57225         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
57226         invoke multibyte primitives.
57227
57228 2000-07-23  Paul Eggert  <eggert@twinsun.com>
57229
57230         * lib/quotearg.c:
57231         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
57232         so that mbstate_t is always defined.
57233
57234         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
57235         be 1 in at least one GCC installation, and this configuration
57236         error is likely to be common.  Ignoring MB_LEN_MAX hurts
57237         performance on hosts that have mbrtowc but have only unibyte
57238         locales, but I assume these hosts are rare.
57239
57240 2000-07-23  Paul Eggert  <eggert@twinsun.com>
57241
57242         * lib/mbswidth.c (_XOPEN_SOURCE):
57243         Don't define; this causes problems on Solaris 7.
57244         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
57245
57246 2000-07-23  Jim Meyering  <meyering@lucent.com>
57247
57248         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
57249         too: getgrgid, getpwuid, getuid.
57250
57251 2000-07-23  Jim Meyering  <meyering@lucent.com>
57252
57253         * lib/basename.c (base_name): Add an assertion.
57254
57255 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
57256
57257         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
57258         shadow its mbsinit function.
57259
57260 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
57261
57262         * lib/mbswidth.h: New file.
57263         * lib/mbswidth.c: New file.
57264         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
57265         (noinst_HEADERS): Add mbswidth.h.
57266
57267 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
57268
57269         * lib/config.charset: Add support for FreeBSD. Improve support for
57270         HP-UX and IRIX 6.
57271
57272 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
57273
57274         * m4/mbswidth.m4: New file.
57275         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
57276
57277 2000-07-15  Jim Meyering  <meyering@lucent.com>
57278
57279         * lib/makepath.c: Include quote.h.
57280         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
57281         corresponding argument in a `quote (...)' call.
57282         Give better diagnostics.
57283
57284         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
57285         (noinst_HEADERS): Add quote.h.
57286
57287         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
57288         from tar's src/misc.c.
57289         * lib/quote.h: New file.  Prototypes for same.
57290
57291 2000-07-14  Paul Eggert  <eggert@twinsun.com>
57292
57293         From a suggestion by Bruno Haible.
57294         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
57295         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
57296         to decide whether to define the BeOS workaround macro;
57297         this adjusts to the change to AC_MBSTATE_T.
57298
57299 2000-07-14  Jim Meyering  <meyering@lucent.com>
57300
57301         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
57302         jm_AC_TYPE_UINTMAX_T.
57303
57304 2000-07-13  Paul Eggert  <eggert@twinsun.com>
57305
57306         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
57307
57308         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
57309         quotearg_buffer_restyled): Add support for
57310         clocale_quoting_style.  Undo previous change to
57311         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
57312         and "{RIGHT QUOTATION MARK}" msgids.
57313
57314 2000-07-10  Paul Eggert  <eggert@twinsun.com>
57315
57316         From a suggestion by Bruno Haible.
57317         * m4/mbstate_t.m4 (AC_MBSTATE_T):
57318         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
57319         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
57320         and mbstate_t, to a single-part test that simply defines mbstate_t.
57321         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
57322         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
57323
57324 2000-07-10  Jim Meyering  <meyering@lucent.com>
57325
57326         * m4/strerror_r.m4: Mirror the correction made in autoconf.
57327
57328         * m4/gnu-source.m4: Output to confdefs.h directly.
57329         Suggestion from Akim Demaille.
57330
57331 2000-07-09  Paul Eggert  <eggert@twinsun.com>
57332
57333         The old behavior of quoting `like this' doesn't look good with
57334         newer, ISO-style fonts.  See:
57335         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
57336
57337         Instead, quote "like this" by default.  Let the translator
57338         tailor the locale-specific quoting behavior by providing
57339         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
57340
57341         * lib/quotearg.c (N_): New macro.
57342         (gettext_default): New function.
57343         (quotearg_buffer_restyled): Use
57344         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
57345         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
57346
57347 2000-07-09  Jim Meyering  <meyering@lucent.com>
57348
57349         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
57350         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
57351
57352         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
57353         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
57354
57355 2000-07-09  Jim Meyering  <meyering@lucent.com>
57356
57357         * lib/Most files: Update copyright dates to include 2000.
57358
57359 2000-07-08  Jim Meyering  <meyering@lucent.com>
57360
57361         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
57362         if not defined.
57363         (xgethostname): Remove now-unnecessary #ifdef.
57364         Move declaration of `err' into loop where it's used.
57365
57366 2000-07-05  Paul Eggert  <eggert@twinsun.com>
57367         and Bruno Haible  <haible@clisp.cons.org>
57368
57369         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
57370         only if the test for an object-type mbstate_t fails.  This
57371         prevents us from mistakenly reporting that mbstate_t is a
57372         system object type after we "#define mbstate_t int" to work
57373         around its lack.
57374
57375 2000-07-05  Paul Eggert  <eggert@twinsun.com>
57376         and Bruno Haible  <haible@clisp.cons.org>
57377
57378         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
57379
57380 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
57381
57382         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
57383         to strerror_r.
57384         Include <ctype.h> for use of isalpha.
57385
57386 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
57387
57388         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
57389         by allocating a larger buffer. Test the gethostname return value for
57390         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
57391         returns an error and ENAMETOOLONG isn't defined.
57392
57393 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
57394
57395         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
57396         dimension.
57397
57398 2000-07-04  Jim Meyering  <meyering@lucent.com>
57399
57400         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
57401         of the deprecated AC_CHECKING.
57402
57403 2000-07-04  Jim Meyering  <meyering@lucent.com>
57404
57405         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
57406         Reported by Bruno Haible.
57407
57408 2000-07-04  Jim Meyering  <meyering@lucent.com>
57409
57410         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
57411         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
57412         lacks mbrtowc.
57413
57414 2000-07-03  Paul Eggert  <eggert@twinsun.com>
57415
57416         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
57417         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
57418
57419 2000-07-03  Paul Eggert  <eggert@twinsun.com>
57420         and Bruno Haible  <haible@clisp.cons.org>
57421
57422         * lib/quotearg.c (mbrtowc):
57423         Assign to *pwc, and return 1 only if result is nonzero.
57424         (iswprint): Use ISPRINT when substituting our own mbrtowc.
57425
57426 2000-07-03  Jim Meyering  <meyering@lucent.com>
57427
57428         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
57429
57430 2000-07-03  Jim Meyering  <meyering@lucent.com>
57431
57432         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
57433         This is necessary to get a definition of e.g., UTMP_FILE on
57434         HP-UX 10.20.
57435         From Bob Proulx.
57436
57437 2000-07-02  Jim Meyering  <meyering@lucent.com>
57438
57439         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
57440
57441         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
57442         AC_LIBOBJ(function_name).
57443         * m4/chown.m4: Likewise.
57444         * m4/fnmatch.m4: Likewise.
57445         * m4/ftruncate.m4: Likewise.
57446         * m4/getgroups.m4: Likewise.
57447         * m4/getline.m4: Likewise.
57448         * m4/group-member.m4: Likewise.
57449         * m4/jm-macros.m4: Likewise.
57450         * m4/lstat.m4: Likewise.
57451         * m4/malloc.m4: Likewise.
57452         * m4/memcmp.m4: Likewise.
57453         * m4/nanosleep.m4: Likewise.
57454         * m4/putenv.m4: Likewise.
57455         * m4/realloc.m4: Likewise.
57456         * m4/regex.m4: Likewise.
57457         * m4/stat.m4: Likewise.
57458         * m4/strftime.m4: Likewise.
57459
57460 2000-07-02  Jim Meyering  <meyering@lucent.com>
57461
57462         * lib/quotearg.c (mbstate_t): Don't define here.
57463
57464 2000-07-02  Jim Meyering  <meyering@lucent.com>
57465
57466         * lib/nanosleep.c (SIGCONT): Define if not already defined.
57467
57468 2000-07-01  Jim Meyering  <meyering@lucent.com>
57469
57470         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
57471
57472 2000-07-01  Jim Meyering  <meyering@lucent.com>
57473
57474         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
57475         problem.
57476
57477 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
57478
57479         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
57480         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
57481
57482 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
57483
57484         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
57485         per change in ../m4/ls-mntd-fs.m4.
57486         (read_filesystem_list): Ignore symbolic links.
57487
57488 2000-06-29  Jim Meyering  <meyering@lucent.com>
57489
57490         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
57491         for declaration of strcmp.
57492
57493         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
57494
57495         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
57496         Avoid warning by casting result to `char *' to remove `const'.
57497
57498 2000-06-28  Jim Meyering  <meyering@lucent.com>
57499
57500         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
57501         included by quotearg.c, for which we perform this test.  From
57502         Bruno Haible.
57503
57504 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
57505
57506         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
57507         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
57508         <utmpx.h> exists, put readutmp.o into LIBOBJS.
57509
57510 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
57511
57512         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
57513
57514 2000-06-26  Paul Eggert  <eggert@twinsun.com>
57515
57516         savedir now sets errno on failure and invokes xmalloc to get memory.
57517         Fix a couple of other minor bugs while we're at it.
57518
57519         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
57520         (NAMLEN): Remove macro.
57521         (malloc, realloc): Remove decls.
57522         (stpcpy): Likewise.
57523         ("xalloc.h"): Include.
57524         (NAME_SIZE_DEFAULT): New macro.
57525         (savedir): Use xmalloc / xrealloc to allocate memory.
57526         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
57527         Skip "" directory entries.
57528         Use strlen to calculate directory entry length, since the old method
57529         is rarely used these days and isn't worth supporting.
57530         Don't use a pointer after freeing it.
57531         Check for integer overflow when calculating allocation size.
57532         Use memcpy to copy entries, instead of stpcpy.
57533         Set errno properly when returning NULL.
57534         Check for readdir error.
57535
57536 2000-06-26  Jim Meyering  <meyering@lucent.com>
57537
57538         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
57539
57540 2000-06-25  Jim Meyering  <meyering@lucent.com>
57541
57542         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
57543         Linux header bug when _XOPEN_SOURCE is defined to 500.
57544
57545 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
57546
57547         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
57548         deficiency.
57549
57550 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
57551
57552         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
57553         Include xalloc.h.
57554         Don't include <stdlib.h>.  Don't declare malloc, realloc.
57555
57556 2000-06-24  Jim Meyering  <meyering@lucent.com>
57557
57558         * m4/strerror_r.m4: Revive this file -- to try out an experimental
57559         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
57560         for which strerror does return char*, but which lacks a conveniently
57561         accessible declaration of the function.  If the compile-test says
57562         strerror_r doesn't work, then resort to a `run'-test that works on
57563         BeOS and segfaults on DEC Unix.
57564
57565 2000-06-24  Jim Meyering  <meyering@lucent.com>
57566
57567         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
57568
57569 2000-06-23  Paul Eggert  <eggert@twinsun.com>
57570
57571         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
57572         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
57573
57574 2000-06-23  Paul Eggert  <eggert@twinsun.com>
57575
57576         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
57577         (mbrtowc, mbstate_t): Define substitutes if
57578         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
57579         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
57580         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
57581
57582 2000-06-23  Jim Meyering  <meyering@lucent.com>
57583
57584         * m4/afs.m4: Add missing AC_MSG_RESULT.
57585         Reported by Bruno Haible.
57586
57587         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
57588         Suggestion from Bruno Haible.
57589
57590 2000-06-23  Jim Meyering  <meyering@lucent.com>
57591
57592         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
57593
57594 2000-06-21  Jim Meyering  <meyering@lucent.com>
57595
57596         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
57597
57598 2000-06-21  Jim Meyering  <meyering@lucent.com>
57599
57600         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
57601         (noinst_HEADERS): Add getstr.h.
57602
57603         * lib/getline.c (getstr): Move into a separate file.
57604         * lib/getstr.c (getstr): New file, extracted from getline.c, with
57605         the following changes: new parameter, delim2; both delim[12]
57606         parameters have type `int', not `char'.  The latter would lose
57607         with 8-bit delimiters.
57608         * lib/getstr.h: New file.
57609
57610 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
57611
57612         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
57613         than 1024, return a memory chunk of least possible size, instead
57614         of size PATH_MAX + 2. In the loop, increment the size proportionally.
57615         Use free/xmalloc instead of xrealloc to avoid copying for very long
57616         paths.
57617
57618 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
57619
57620         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
57621         the empty string.
57622
57623 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
57624
57625         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
57626         address, not strdup.  Include <stdlib.h> and don't declare free().
57627
57628 2000-06-19  Jim Meyering  <meyering@lucent.com>
57629
57630         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
57631
57632 2000-06-18  Jim Meyering  <meyering@lucent.com>
57633
57634         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
57635
57636         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
57637         `checking whether...' message to be consistent with that of the
57638         lstat test.
57639
57640 2000-06-18  Jim Meyering  <meyering@lucent.com>
57641
57642         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
57643         Besides, these days every porting target provides a mkdir function.
57644
57645         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
57646         needed. (this snippet comes from src/system.h).
57647
57648 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
57649
57650         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
57651
57652 2000-06-15  Paul Eggert  <eggert@twinsun.com>
57653
57654         * lib/human.c (adjust_value): New function.
57655         (human_readable_inexact): Apply rounding style even when
57656         printing approximate values.
57657
57658 2000-06-14  Paul Eggert  <eggert@twinsun.com>
57659
57660         * lib/human.c (human_readable_inexact): Allow an input block
57661         size that is not a multiple of the output block size, and vice versa.
57662         Reported by Piergiorgio Sartor.
57663
57664 2000-06-14  Paul Eggert  <eggert@twinsun.com>
57665
57666         * lib/getdate.y (get_date): Apply relative times after time
57667         zone indicator, not before.  Reported by Todd A. Jacobs.
57668
57669 2000-06-13  Jim Meyering  <meyering@lucent.com>
57670
57671         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
57672
57673         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
57674
57675 2000-06-12  Paul Eggert  <eggert@twinsun.com>
57676
57677         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
57678
57679 2000-06-12  Jim Meyering  <meyering@lucent.com>
57680
57681         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
57682         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
57683         optional argument.
57684         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
57685         the optional argument, `lib'.
57686
57687 2000-06-08  Jim Meyering  <meyering@lucent.com>
57688
57689         * m4/largefile.m4: Remove file (now that it's part of autoconf).
57690
57691 2000-06-04  Paul Eggert  <eggert@twinsun.com>
57692
57693         Rewrite largefile configuration so that we don't need to run
57694         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
57695         AC_CANONICAL_HOST in configure.in -- jmm]
57696
57697         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
57698         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
57699         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
57700         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
57701         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
57702         All uses changed.
57703         Instead of inspecting the output of getconf, try to compile the
57704         test program without and with the macro definition.
57705         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
57706         for getconf.  Instead, check for the needed flags by compiling
57707         test programs.
57708
57709 2000-06-04  Paul Eggert  <eggert@twinsun.com>
57710
57711         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
57712
57713 2000-06-04  Jim Meyering  <meyering@lucent.com>
57714
57715         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
57716         SunOS 4.1.4 for which gid_t is an unsigned type.
57717
57718 2000-06-03  Jim Meyering  <meyering@lucent.com>
57719
57720         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
57721         now that autoconf requires that.
57722
57723         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
57724         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
57725         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
57726
57727 2000-06-03  Jim Meyering  <meyering@lucent.com>
57728
57729         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
57730
57731 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
57732
57733         * m4/glibc21.m4: New file.
57734         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
57735
57736 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
57737
57738         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
57739         newer, don't install charset.alias.
57740         * lib/config.charset: Change the Linux/glibc rules so they become empty
57741         on glibc-2.1 or newer.
57742
57743 2000-06-02  Jim Meyering  <meyering@lucent.com>
57744
57745         * lib/mountlist.c: Back out last change.  Instead, do this...
57746         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
57747         me_dummy member using the same `ignore'-testing code.
57748         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
57749         fs_type strings.
57750         From Mark D. Roth.
57751
57752 2000-05-29  Jim Meyering  <meyering@lucent.com>
57753
57754         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
57755         mounts with the `ignore' attribute.  Based on a patch from
57756         Mark D. Roth.
57757
57758 2000-05-28  Jim Meyering  <meyering@lucent.com>
57759
57760         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
57761         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
57762         * m4/stat.m4: Likewise.
57763         * m4/lstat.m4: Likewise.
57764         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
57765
57766         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
57767         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
57768
57769 2000-05-26  Jim Meyering  <meyering@lucent.com>
57770
57771         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
57772
57773 2000-05-24  Jim Meyering  <meyering@lucent.com>
57774
57775         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
57776         autoconf requires that.
57777         * m4/lib-check.m4: Likewise.
57778         * m4/jm-macros.m4: Likewise.
57779         * m4/strftime.m4: Likewise.
57780
57781         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
57782         AC_CHECK_DECLS, now that autoconf requires that.
57783
57784 2000-05-22  Jim Meyering  <meyering@lucent.com>
57785
57786         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
57787         * m4/lstat.m4: Likewise.
57788
57789 2000-05-22  Jim Meyering  <meyering@lucent.com>
57790
57791         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
57792
57793 2000-05-20  Jim Meyering  <meyering@lucent.com>
57794
57795         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
57796         (jm_PREREQ): Use it.
57797
57798 2000-05-18  Jim Meyering  <meyering@lucent.com>
57799
57800         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
57801         back, too, since it may have been modified by allocate_entry.
57802         (hash_delete): Rewrite to use neither the assignment operator
57803         nor the comma operator in an if-expression.
57804
57805 2000-05-15  Paul Eggert  <eggert@twinsun.com>
57806
57807         * lib/closeout.c:
57808         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
57809         Remove; no longer needed.
57810         "quotearg.h": Add include.
57811         (file_name): Do not bother to explicitly initialize to NULL; it's less
57812         efficient on some hosts.
57813         (close_stdout_status): Remove test as to whether stdout was already
57814         closed; it breaks for the case "echo x | sort >&-".
57815         Quote file name colons.
57816         Do not assume that _("write error") lacks format strings.
57817
57818 2000-05-15  Jim Meyering  <meyering@lucent.com>
57819
57820         * lib/version-etc.c (version_etc_copyright): Update the copyright
57821         string used in all --version output.
57822
57823 2000-05-14  Jim Meyering  <meyering@lucent.com>
57824
57825         * lib/closeout.c (close_stdout_set_file_name): New function.
57826         (close_stdout_status): Use new file-scoped global.
57827         Return right away if fstat says the stdout file descriptor is invalid.
57828         * lib/closeout.h (close_stdout_set_file_name): Declare.
57829
57830 2000-05-10  Jim Meyering  <meyering@lucent.com>
57831
57832         * lib/closeout.c [default_exit_status]: New file-scoped variable.
57833         (close_stdout_set_status): New function.
57834         * lib/closeout.h (close_stdout_set_status): Declare.
57835
57836 2000-05-09  Jim Meyering  <meyering@lucent.com>
57837
57838         * m4/gettext.m4: Rename this...
57839         * m4/libintl.m4: ...to this.
57840
57841 2000-05-08  Jim Meyering  <meyering@lucent.com>
57842
57843         * lib/long-options.c: Don't include closeout.h.
57844         (parse_long_options): Don't call close_stdout for --version.
57845
57846 2000-05-06  Paul Eggert  <eggert@twinsun.com>
57847
57848         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
57849         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
57850         2.1.3 bug.  This avoids a clash when files like regex.c define
57851         _GNU_SOURCE.
57852
57853 2000-05-06  Jim Meyering  <meyering@lucent.com>
57854
57855         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
57856         (AC_REPLACE_FUNCS): Add strnlen.
57857
57858         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
57859         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
57860
57861         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
57862         AC_SEARCH_LIBS call for nanosleep.
57863         (LIB_NANOSLEEP): Set and AC_SUBST.
57864
57865 2000-05-06  Jim Meyering  <meyering@lucent.com>
57866
57867         * lib/strnlen.c: Undefine __strnlen and strnlen.
57868         [!weak_alias]: Define __strnlen to strnlen.
57869
57870         * lib/atexit.c: New file, from libiberty.
57871
57872 2000-05-06  Jim Meyering  <meyering@lucent.com>
57873
57874         * lib/closeout.c (close_stdout_status): Also check for errors on the
57875         stderr stream.
57876
57877 2000-05-05  Jim Meyering  <meyering@lucent.com>
57878
57879         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
57880         AC_SEARCH_LIBS call for clock_gettime.
57881         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
57882
57883         * m4/search-libs.m4: Update from autoconf.
57884
57885         su doesn't work on Solaris 2.6.
57886         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
57887         <shadow.h>.  Reported by Dragos Harabor.
57888
57889 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
57890
57891         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
57892         memcpy instead of xmalloc, xrealloc, path_concat.
57893         (locale_charset): Treat empty environment variables as absent.
57894         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
57895
57896 2000-05-04  Jim Meyering  <meyering@lucent.com>
57897
57898         * lib/getopt.c: Update from glibc.
57899         * lib/obstack.c: Likewise.
57900         * lib/obstack.h: Likewise.
57901         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
57902         file
57903
57904         * lib/regex.h: Likewise.
57905         * lib/strndup.c: Likewise.
57906         * lib/strnlen.c: New file, from glibc.
57907
57908 2000-05-03  Jim Meyering  <meyering@lucent.com>
57909
57910         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
57911
57912 2000-05-02  Paul Eggert  <eggert@twinsun.com>
57913
57914         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
57915         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
57916         compile-time test, rather than inspecting host and OS, to
57917         decide whether to define _LARGEFILE_SOURCE.
57918
57919 2000-05-01  Jim Meyering  <meyering@lucent.com>
57920
57921         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
57922
57923         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
57924         Based on a patch from Bruno Haible.
57925
57926 2000-05-01  Jim Meyering  <meyering@lucent.com>
57927
57928         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
57929
57930 2000-04-29  Jim Meyering  <meyering@lucent.com>
57931
57932         * lib/path-concat.c: Declare strdup only if it's not defined.
57933         * lib/canon-host.c: Likewise.
57934
57935 2000-04-28  Jim Meyering  <meyering@lucent.com>
57936
57937         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
57938         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
57939         is included first, then limits.h is included by locale.h by libintl.h.
57940         From John David Anglin.
57941
57942 2000-04-25  Jim Meyering  <meyering@lucent.com>
57943
57944         * lib/makepath.c (S_IRWXUGO): Define.
57945         (make_path): Always perform explicit chmod if MODE specifies any
57946         of the `special' permission bits.  Prompted by a bug report against
57947         install from Mate Wierdl and Joost van Baal.
57948
57949 2000-04-18  Jim Meyering  <meyering@lucent.com>
57950
57951         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
57952         (jm_PREREQ): Use it.
57953
57954 2000-04-18  Jim Meyering  <meyering@lucent.com>
57955
57956         * lib/README: New file.
57957
57958         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
57959         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
57960
57961 2000-04-17  Jim Meyering  <meyering@lucent.com>
57962
57963         Get it right :-)
57964         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
57965         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
57966         Suggestion from Akim Demaille.
57967
57968 2000-04-17  Jim Meyering  <meyering@lucent.com>
57969
57970         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
57971         the definition of it to rpl_strftime also defined-away the system's
57972         declaration.
57973
57974 2000-04-15  Jim Meyering  <meyering@lucent.com>
57975
57976         Use `C' to denote so-called `contiguous' files, the same way
57977         that tar does.
57978         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
57979         (ftypelet): Use S_ISCTG.
57980         From Michael Deutschmann.
57981
57982 2000-04-14  Jim Meyering  <meyering@lucent.com>
57983
57984         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
57985         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
57986         clobbered.
57987
57988 2000-04-14  Jim Meyering  <meyering@lucent.com>
57989
57990         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
57991
57992 2000-04-13  Jim Meyering  <meyering@lucent.com>
57993
57994         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
57995         AH_VERBATIM to insert required #ifndef into config.h.in.
57996         Suggestion from Akim Demaille.
57997
57998 2000-04-12  Jim Meyering  <meyering@lucent.com>
57999
58000         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
58001         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
58002         Christian Krackowizer.
58003
58004         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
58005         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
58006         (AC_SYS_LARGEFILE): Require.
58007         (AM_C_PROTOTYPES): Require.
58008
58009 2000-04-08  Jim Meyering  <meyering@lucent.com>
58010
58011         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
58012         names don't conflict.  Reported by Eli Zaretskii.
58013
58014 2000-04-07  Jim Meyering  <meyering@lucent.com>
58015
58016         * lib/putenv.c: Move inclusion of errno.h so it follows that of
58017         sys/types.h, to work around system header problems on AIX 3.2.5.
58018         From Bruno Haible.
58019
58020 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
58021
58022         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
58023         bug.  Deal with the different error behavior of Irix iconv.
58024
58025 2000-04-05  Paul Eggert  <eggert@twinsun.com>
58026
58027         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
58028         IRIX if the installer said otherwise.
58029
58030 2000-04-05  Jim Meyering  <meyering@lucent.com>
58031
58032         Portability tweaks required for ultrix4.3.
58033         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
58034         (jm_CHECK_DECLS): Add getutent to the list of functions.
58035         (_jm_DECL_HEADERS): Add utmpx.h.
58036         From John David Anglin.
58037
58038         * m4/strftime.m4: Back out the 2000-04-02 change.
58039         Instead of that change, simply undefine putenv in the test program.
58040
58041 2000-04-05  Jim Meyering  <meyering@lucent.com>
58042
58043         Portability tweaks required for ultrix4.3.
58044         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
58045         getutent.
58046         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
58047         * lib/canon-host.c: Declare strdup.
58048         * lib/path-concat.c: Likewise.
58049         From John David Anglin.
58050
58051 2000-04-04  Jim Meyering  <meyering@lucent.com>
58052
58053         Be more DOS 8.3-friendly.
58054         * lib/ref-add.sin: Renamed from ref-add.sed.in.
58055         * lib/ref-del.sin: Renamed from ref-del.sed.in.
58056         * lib/Makefile.am: Reflect renaming.
58057         Reported by Eli Zaretskii.
58058
58059         Use a temporary file name that won't clash with `charset.alias'
58060         in the DOS 8.3 name space.
58061         * lib/Makefile.am (charset_tmp): Define.
58062         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
58063         (uninstall-local): Likewise.
58064         Reported by Eli Zaretskii.
58065
58066 2000-04-03  Jim Meyering  <meyering@lucent.com>
58067
58068         * m4/gettext.m4: Fix typo in comment.
58069
58070         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
58071         textutils/configure.in).  Suggestion from Paul Eggert.
58072         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
58073
58074 2000-04-02  Paul Eggert  <eggert@twinsun.com>
58075
58076         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
58077         variable in the shell rather than using putenv, which isn't
58078         portable.  This avoids the configure-time inter-test dependency
58079         on the potentially-renamed putenv function.
58080
58081 2000-03-30  Paul Eggert  <eggert@twinsun.com>
58082
58083         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
58084         before checking struct stat.st_blksize, so that
58085         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
58086
58087 2000-03-29  Paul Eggert  <eggert@twinsun.com>
58088
58089         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
58090         since strftime.c uses HAVE_STRFTIME to decide whether to use
58091         the underlying strftime.
58092
58093 2000-03-29  Paul Eggert  <eggert@twinsun.com>
58094
58095         * lib/time/strftime.c (my_strftime): Make sure we call the system
58096         strftime, not ourselves, when invoking the underlying strftime.
58097
58098 2000-03-24  Jim Meyering  <meyering@lucent.com>
58099
58100         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
58101         (charset_alias): Define.
58102         (install-exec-local): Factor out common code.
58103         (uninstall-local): Split lines longer than 80.
58104         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
58105         (SUFFIXES): Define.
58106         (.sed.in.sed): New rule.  Don't redirect directly to $@.
58107         (CLEANFILES): Add ref-add.sed and ref-del.sed.
58108
58109 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
58110
58111         * lib/config.charset: Output a line containing "Packages using this
58112         file".
58113         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
58114         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
58115         ref-del.sed): New rules.
58116
58117 2000-03-17  Jim Meyering  <meyering@lucent.com>
58118
58119         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
58120         Otherwise, include <strings.h>
58121
58122 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
58123
58124         * lib/unicodeio.c (utf8_wctomb): New function.
58125         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
58126         format instead of in UCS-4 with platform dependent endianness.
58127
58128 2000-03-10  Jim Meyering  <meyering@lucent.com>
58129
58130         * m4/lib-check.m4: Look for getspnam in -lgen, too.
58131         From Marco Franzen.
58132
58133 2000-03-07  Paul Eggert  <eggert@twinsun.com>
58134
58135         * lib/savedir.c (savedir): Work even if directory size is
58136         negative; this can happen with some screwy NFS configurations.
58137
58138 2000-03-06  Jim Meyering  <meyering@lucent.com>
58139
58140         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
58141         if it's NULL (because we ran out of memory).  From Bruno Haible.
58142
58143 2000-03-05  Jim Meyering  <meyering@lucent.com>
58144
58145         * lib/localcharset.c ("path-concat.h"): Include.
58146         (get_charset_aliases): Use path_concat instead of ANSI string
58147         concatenation.
58148
58149         * lib/unicodeio.h (PARAMS): Define.
58150         Use it to guard prototype.
58151
58152 2000-03-04  Jim Meyering  <meyering@lucent.com>
58153
58154         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
58155         for lib/localcharset.c.
58156
58157 2000-03-04  Jim Meyering  <meyering@lucent.com>
58158
58159         * lib/Makefile.am (install-exec-local): Create $(libdir) before
58160         installing into it.
58161         (uninstall-local): Uncomment this rule so `make distcheck' works
58162         once again.
58163
58164         * lib/unicodeio.c (<errno.h>): Include it.
58165         (errno): Declare if not defined.
58166
58167         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
58168
58169         * lib/config.charset: New version, incorporating remarks from a linux
58170         i18n mailing list.  From Bruno Haible.
58171
58172 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
58173
58174         * m4/codeset.m4: New file.
58175         * m4/iconv.m4: New file.
58176         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
58177
58178 2000-03-03  Jim Meyering  <meyering@lucent.com>
58179
58180         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
58181
58182 2000-03-02  Jim Meyering  <meyering@lucent.com>
58183
58184         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
58185         the messages come out on separate lines.
58186
58187         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
58188         rather than jm_CHECK_DECLARATIONS.
58189         * m4/decl.m4: Remove now-unused file.
58190
58191         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
58192         geteuid.
58193
58194 2000-03-02  Jim Meyering  <meyering@lucent.com>
58195
58196         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
58197
58198 2000-03-01  Jim Meyering  <meyering@lucent.com>
58199
58200         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
58201         * lib/unicodeio.c: Likewise.
58202
58203 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
58204
58205         * lib/config.charset: New file.
58206         * lib/localcharset.c: New file.
58207         * lib/unicodeio.h, lib/unicodeio.c: New files.
58208         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
58209         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
58210         (noinst_HEADERS): Add unicodeio.h.
58211         (all-local, install-exec-local, charset.alias): New targets.
58212
58213 2000-02-28  Paul Eggert  <eggert@twinsun.com>
58214
58215         * lib/quotearg.c (ALERT_CHAR): New macro.
58216         (quotearg_buffer_restyled): Use it.
58217
58218 2000-02-27  Jim Meyering  <meyering@lucent.com>
58219
58220         * m4/check-decl.m4: Add getenv to the list.
58221
58222 2000-02-27  Jim Meyering  <meyering@lucent.com>
58223
58224         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
58225         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
58226
58227         * lib/backupfile.c: Guard inclusion of stdlib.h with
58228         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
58229         Declare malloc if needed.
58230
58231         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
58232         `#ifndef HAVE_DECL..'
58233         now that autoconf always defines the HAVE_DECL_ symbols.
58234         * lib/human.c: Likewise.
58235         * lib/same.c: Likewise.
58236         * lib/strtoumax.c: Likewise.
58237
58238         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
58239         declaration check was not run.
58240         * lib/hash.c: Likewise.
58241         * lib/human.c: Likewise.
58242         * lib/same.c: Likewise.
58243         * lib/strtoumax.c: Likewise.
58244
58245         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
58246         `.', then first look up the entire `.'-containing string as a login
58247         name.
58248
58249 2000-02-23  Jim Meyering  <meyering@lucent.com>
58250
58251         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
58252         in place of my hack.
58253
58254 2000-02-18  Paul Eggert  <eggert@twinsun.com>
58255
58256         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
58257         (textint): New typedef.
58258         (parser_control): Member year changed from int to textint.
58259         All uses changed.
58260         (YYSTYPE): Removed; replaced by %union with int and textint members.
58261         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
58262         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
58263         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
58264         (tSNUMBER, tUNUMBER): Now of type <textintval>.
58265         (date, number, to_year): Use width of number in digits, not its value,
58266         to determine whether it's a 2-digit year, or a 2-digit time.
58267         (yylex): Store number of digits of numeric tokens.
58268         Reported by John Kendall.
58269
58270         (parser_control): Changed from struct parser_control to typedef (for
58271         consistency).  All uses changed.
58272
58273         (tID): Removed; not used.
58274         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
58275
58276 2000-02-14  Paul Eggert  <eggert@twinsun.com>
58277
58278         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
58279         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
58280
58281 2000-02-12  Jim Meyering  <meyering@lucent.com>
58282
58283         * lib/userspec.c (ISDIGIT): Define it.
58284         (isdigit): Remove definition.
58285         (is_number): Use ISDIGIT, not isdigit.
58286         <libintl.h>: Include.
58287         (_ and N_): Define.
58288         (parse_user_spec): Mark translatable strings.
58289
58290 2000-02-10  Jim Meyering  <meyering@lucent.com>
58291
58292         With these changes, nanosleep.[ch] are finally enough like the other
58293         lib/* replacement files to compile on a few more losing systems.
58294
58295         * lib/nanosleep.h: Don't include config.h.
58296         Remove prototype from declaration of nanosleep.
58297         (PARAMS): Remove now-unneeded definition.
58298         * lib/nanosleep.c: #undef nanosleep.
58299         (rpl_nanosleep): Rename from nanosleep.
58300
58301 2000-02-10  Jim Meyering  <meyering@lucent.com>
58302
58303         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
58304         gnu_nanosleep to rpl_nanosleep.
58305
58306 2000-02-09  Jim Meyering  <meyering@lucent.com>
58307
58308         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
58309         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
58310
58311 2000-02-08  Akim Demaille  <akim@epita.fr>
58312
58313         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
58314         `[' and `]' and remove uses of `changequote'.
58315         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
58316         (AC_SYS_LARGEFILE): Likewise.
58317         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
58318         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
58319         of changequote.
58320         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
58321         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
58322         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
58323         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
58324
58325 2000-02-05  Jim Meyering  <meyering@lucent.com>
58326
58327         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
58328         Remove explicit use of AC_HEADER_TIME.  It is required by
58329         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
58330         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
58331         in autoconf whereby the expansion of the latter ended up preceding
58332         the expansion of its prerequisite, AC_HEADER_TIME.
58333         Reported by Volker Borchert.
58334
58335 2000-02-03  Jim Meyering  <meyering@lucent.com>
58336
58337         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
58338
58339 2000-02-03  Jim Meyering  <meyering@lucent.com>
58340
58341         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
58342         rather than with `#if HAVE_UTMPNAME'.
58343
58344 2000-02-02  Jim Meyering  <meyering@lucent.com>
58345
58346         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
58347         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
58348         Reported by Eli Zaretskii.
58349
58350 2000-02-01  Jim Meyering  <meyering@lucent.com>
58351
58352         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
58353
58354 2000-01-31  Jim Meyering  <meyering@lucent.com>
58355
58356         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
58357         functions.  Add the time.h and sys/time.h headers along with the
58358         AC_REQUIRE'ment of AC_HEADER_TIME.
58359
58360 2000-01-31  Jim Meyering  <meyering@lucent.com>
58361
58362         * lib/nanosleep.h (nanosleep): Guard declaration with
58363         `#if ! HAVE_DECL_NANOSLEEP'.
58364         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
58365         the declaration in that vendor's sys/timers.h.
58366         Reported by Christian Krackowizer.
58367
58368         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
58369         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
58370         (ISPRINT): Likewise.
58371         Reported by Tom Tromey.
58372
58373 2000-01-30  Jim Meyering  <meyering@lucent.com>
58374
58375         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
58376
58377         * m4/prereq.m4 (utmp_includes): Define.
58378         Check for ut_user and ut_name members in both struct utmpx
58379         and struct utmp.
58380
58381 2000-01-30  Jim Meyering  <meyering@lucent.com>
58382
58383         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
58384         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
58385         header files where only utmpx.ut_user is declared.
58386
58387         * lib/readutmp.h (UT_USER): Define.
58388
58389 2000-01-29  Jim Meyering  <meyering@lucent.com>
58390
58391         * m4/lib-check.m4: New file containing library-related checks from
58392         fileutils and sh-utils (textutils had none).
58393
58394 2000-01-28  Jim Meyering  <meyering@lucent.com>
58395
58396         * m4/perl.m4: Change format of warning message to look more like that
58397         from the missing script.  Suggestion from François Pinard.
58398
58399 2000-01-25  Jim Meyering  <meyering@lucent.com>
58400
58401         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
58402         well as time.h in the compile check.
58403         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
58404         Fix typo in cross-compiling case: s/yes/no/.
58405
58406 2000-01-23  Jim Meyering  <meyering@lucent.com>
58407
58408         * m4/jm-macros.m4: Move df-related tests here from
58409         fileutils/configure.in
58410
58411         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
58412         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
58413
58414         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
58415         s/space/ac_fsusage_space/.
58416         (jm_FILE_SYSTEM_USAGE): Take two parameters.
58417
58418         * m4/ftruncate.m4: New file (derived from part of
58419         fileutils/configure.in).
58420         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
58421         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
58422
58423         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
58424         AC_SUBST these here, rather than just in sh-util/configure.in, so
58425         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
58426         all the same.
58427         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
58428         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
58429         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
58430         (AC_SUBST(POW_LIBM)): Likewise.
58431         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
58432
58433 2000-01-23  Jim Meyering  <meyering@lucent.com>
58434
58435         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
58436         obstack.c.
58437
58438 2000-01-22  Jim Meyering  <meyering@lucent.com>
58439
58440         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
58441
58442         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
58443
58444         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
58445         configure.in
58446         (AC_CHECK_HEADERS): Likewise for sh-utils.
58447         (AC_CHECK_HEADERS): Likewise for textutils.
58448         Merge the three lists of headers.
58449
58450         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
58451         from fileutils' configure.in.
58452
58453         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
58454         code. Moved tests into their own function (_jm_DECL_HEADERS) in
58455         check-decl.m4.
58456
58457         * m4/check-decl.m4: Use #if rather than #ifdef.
58458         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
58459         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
58460         (_jm_DECL_HEADERS): Define new function.
58461         (jm_CHECK_DECLARATIONS): Require it.
58462
58463 2000-01-22  Jim Meyering  <meyering@lucent.com>
58464
58465         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
58466         [! HAVE_DECL_STRTOULL]: Declare strtoull.
58467         Required for some AIX systems.  Reported by Christian Krackowizer.
58468         [TESTING] (main): New function.
58469
58470         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
58471         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
58472         letters.
58473
58474         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
58475         iswprint.
58476
58477         * lib/strverscmp.c (ISDIGIT): Define.
58478         (strverscmp): Use ISDIGIT, not isdigit.
58479
58480 2000-01-19  Jim Meyering  <meyering@lucent.com>
58481
58482         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
58483         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
58484         defines `struct timespec' in <sys/time.h>
58485
58486         * m4/c-bs-a.m4: Remove uses of changequote altogether.
58487         Thanks to Akim for explaining.
58488
58489 2000-01-17  Paul Eggert  <eggert@twinsun.com>
58490
58491         * lib/nanosleep.c (nanosleep):
58492         Don't use SA_INTERRUPT to decide whether to call sigaction, as
58493         POSIX.1 doesn't require SA_INTERRUPT and some systems
58494         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
58495         it's been part of POSIX.1 since day 1 (in 1988).
58496
58497 2000-01-17  Jim Meyering  <meyering@lucent.com>
58498
58499         * lib/interlock: Remove unused file.  Reported by François Pinard.
58500
58501 2000-01-16  Paul Eggert  <eggert@twinsun.com>
58502
58503         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
58504         alert, backslash, formfeed, and vertical tab unnecessarily in
58505         shell quoting style.
58506
58507 2000-01-16  Jim Meyering  <meyering@lucent.com>
58508
58509         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
58510         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
58511         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
58512         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
58513
58514 2000-01-16  Jim Meyering  <meyering@lucent.com>
58515
58516         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
58517         because the latter didn't work.
58518
58519 2000-01-15  Jim Meyering  <meyering@lucent.com>
58520
58521         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
58522         (AC_REPLACE_FUNCS): Add memcpy and memset.
58523         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
58524         Add strpbrk.
58525         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
58526
58527 2000-01-12  Jim Meyering  <meyering@lucent.com>
58528
58529         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
58530         (jm_PREREQ): Use it.
58531         (jm_PREREQ_READUTMP): New macro.
58532         (jm_PREREQ): Use it.
58533
58534 2000-01-11  Paul Eggert  <eggert@twinsun.com>
58535
58536         Quote multibyte characters correctly.
58537         * m4/c-bs-a.m4: New file.
58538         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
58539         (jm_PREREQ): Use it.
58540
58541 2000-01-11  Paul Eggert  <eggert@twinsun.com>
58542
58543         * m4/uintmax_t.m4: Port to autoconf 2.13.
58544
58545 2000-01-08  Jim Meyering  <meyering@ascend.com>
58546
58547         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
58548         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
58549
58550 2000-01-04  Jim Meyering  <meyering@ascend.com>
58551
58552         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
58553         jm_STRUCT_DIRENT_D_TYPE.
58554         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
58555         jm_STRUCT_DIRENT_D_INO.
58556         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
58557         jm_STRUCT_UTIMBUF.
58558         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
58559         renamings.
58560         * m4/utime.m4: Likewise.
58561
58562         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
58563         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
58564
58565 2000-01-03  Paul Eggert  <eggert@twinsun.com>
58566
58567         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
58568         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
58569
58570 2000-01-02  Jim Meyering  <meyering@ascend.com>
58571
58572         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
58573         remember if this is necessary.
58574
58575 1999-12-26  Jim Meyering  <meyering@ascend.com>
58576
58577         * m4/jm-macros.m4: Use it here.
58578         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
58579
58580 1999-12-23  Jim Meyering  <meyering@ascend.com>
58581
58582         * m4/jm-macros.m4: Check for clock_gettime (moved from
58583         fileutils/configure.in)
58584         Check for gettimeofday.
58585
58586 1999-12-20  Jim Meyering  <meyering@ascend.com>
58587
58588         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
58589         autoconf-2.14a-1999-12-20.
58590
58591 1999-12-19  Jim Meyering  <meyering@ascend.com>
58592
58593         * m4/lstat-slash.m4: New file.
58594         * m4/jm-macros.m4: Use the new macro:
58595         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58596
58597 1999-12-07  Jim Meyering  <meyering@ascend.com>
58598
58599         * m4/perl.m4: Require that File::Compare be available, too.
58600         Too many systems seem to lack it.
58601
58602         * m4/strftime.m4: Add checks for most of the cpp macros tested in
58603         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
58604
58605 1999-11-18  Paul Eggert  <eggert@twinsun.com>
58606
58607         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
58608         problem with the QNX 4.25 shell, which doesn't propagate exit
58609         status of failed commands inside shell assignments.
58610
58611 1999-11-17  Jim Meyering  <meyering@ascend.com>
58612
58613         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
58614
58615 1999-11-07  Jim Meyering  <meyering@ascend.com>
58616
58617         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
58618
58619 1999-11-06  Jim Meyering  <meyering@ascend.com>
58620
58621         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
58622         * m4/jm-macros.m4 (jm_MACROS): Use it here.
58623
58624 1999-11-05  Jim Meyering  <meyering@ascend.com>
58625
58626         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
58627         configure.in of textutils, fileutils, and sh-utils into this one
58628         (shared between those packages) file.
58629         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
58630         AC_STRUCT_ST_BLKSIZE.
58631
58632 1999-11-03  Jim Meyering  <meyering@ascend.com>
58633
58634         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
58635         of AC_CHECK_TYPE checks includes unistd.h.
58636         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
58637         Suggestion from Akim Demaille.
58638
58639 1999-10-30  Jim Meyering  <meyering@ascend.com>
58640
58641         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
58642         m4-quoted string.
58643         * m4/ls-mntd-fs.m4: Likewise.
58644         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
58645         * m4/jm-winsz1.m4: Likewise.
58646
58647         * m4/const.m4: Remove file, since the fix made it into the experimental
58648         version of autoconf.
58649         * m4/mktime.m4: Likewise.
58650
58651         * m4/check-type.m4: Remove file, now that the latest version of
58652         AC_CHECK_TYPE takes a third arg to specify additional #includes.
58653
58654         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
58655         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
58656         AC_CHECK_TYPE.
58657
58658 1999-10-04  Jim Meyering  <meyering@ascend.com>
58659
58660         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
58661
58662 1999-09-22  Paul Eggert  <eggert@twinsun.com>
58663
58664         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
58665         2.95.1 bug with HP-UX 10.20.
58666
58667 1999-09-17  Jim Meyering  <meyering@ascend.com>
58668
58669         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
58670         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
58671         due to missing strdup (against sh-utils-2.0).
58672
58673 1999-08-29  Jim Meyering  <meyering@ascend.com>
58674
58675         * m4/jm-macros.m4: Require jm_BISON.
58676         * m4/bison.m4: New file.
58677
58678 1999-08-17  Paul Eggert  <eggert@twinsun.com>
58679
58680         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
58681         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
58682
58683 1999-08-05  Jim Meyering  <meyering@ascend.com>
58684
58685         * m4/getline.m4: Rename test file from conftestdata to conftest.data
58686         to avoid conflicts with `conftest' on 8+3 filesystems.
58687         Suggestion from Eli Zaretskii.
58688
58689 1999-08-04  Jim Meyering  <meyering@ascend.com>
58690
58691         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
58692         fileutils and sh-utils (textutils's getline test was inadequate).
58693         (AM_FUNC_GETLINE): Run this test.
58694         (AC_CHECK_FUNCS): Check for getdelim.
58695         Reported by Bob Proulx.
58696
58697 1999-08-02  Jim Meyering  <meyering@ascend.com>
58698
58699         * m4/jm-macros.m4: Add a comment.
58700
58701 1999-08-01  Paul Eggert  <eggert@twinsun.com>
58702
58703         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
58704         <inttypes.h> defines strtoumax as a macro (and not as a
58705         function).
58706
58707 1999-08-01  Paul Eggert  <eggert@twinsun.com>
58708
58709         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
58710         that we can shift, multiply and divide unsigned long long
58711         values; Ultrix cc can't do it.
58712
58713 1999-08-01  Paul Eggert  <eggert@twinsun.com>
58714
58715         * m4/mktime.m4: New file, which is a preview of what should appear
58716         in the next public autoconf release.
58717
58718 1999-08-01  Paul Eggert  <eggert@twinsun.com>
58719
58720         * m4/lfs.m4: Remove this file.
58721         * m4/largefile.m4: New file.  It contains the old contents of
58722         lfs.m4, except that all names with prefix AC_LFS have been
58723         changed to use the prefix AC_SYS_LARGEFILE instead, to be
58724         compatible with future autoconf versions.  Also, some minor m4
58725         quoting problems have been fixed.
58726
58727 1999-08-01  Paul Eggert  <eggert@twinsun.com>
58728
58729         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
58730         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
58731         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
58732         and simplify the shell code.
58733
58734 1999-08-01  Jim Meyering  <meyering@ascend.com>
58735
58736         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
58737         m4.
58738
58739 1999-07-20  Jim Meyering  <meyering@ascend.com>
58740
58741         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
58742
58743 1999-07-15  Jim Meyering  <meyering@ascend.com>
58744
58745         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
58746
58747 1999-05-22  Jim Meyering  <meyering@ascend.com>
58748
58749         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
58750
58751 1999-05-20  Jim Meyering  <meyering@ascend.com>
58752
58753         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
58754         Add a colon after each `then' in case $4 is empty.
58755
58756 1999-05-16  Jim Meyering  <meyering@ascend.com>
58757
58758         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
58759
58760 1999-05-10  Jim Meyering  <meyering@ascend.com>
58761
58762         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
58763
58764         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
58765         AC_FUNC_MKTIME.
58766
58767 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
58768
58769         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
58770
58771 1999-05-04  Paul Eggert  <eggert@twinsun.com>
58772
58773         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
58774         not CPPFLAGS, so that linking works correctly in IRIX.
58775
58776 1999-04-30  Paul Eggert  <eggert@twinsun.com>
58777
58778         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
58779
58780 1999-04-20  Paul Eggert  <eggert@twinsun.com>
58781
58782         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
58783         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
58784         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
58785         jm_AC_TYPE_UNSIGNED_LONG_LONG.
58786         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
58787
58788         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
58789
58790 1999-04-20  Jim Meyering  <meyering@ascend.com>
58791
58792         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
58793         AC_REPLACE xstroull if necessary.  From Paul Eggert.
58794         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
58795
58796 1999-04-18  Jim Meyering  <meyering@ascend.com>
58797
58798         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
58799         * m4/jm-macros.m4: Use it.
58800
58801 1999-04-06  Jim Meyering  <meyering@ascend.com>
58802
58803         * m4/strftime.m4: Remove test for %f.
58804
58805 1999-03-29  Jim Meyering  <meyering@ascend.com>
58806
58807         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
58808         superset of the AC_TYPE_* checks in the textutils, fileutils,
58809         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
58810         AC_TYPE_PID_T.
58811
58812 1999-03-28  Jim Meyering  <meyering@ascend.com>
58813
58814         * m4/jm-macros.m4: Define GNU_PACKAGE here.
58815         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
58816         replaced e.g., in the *.sh files of the sh-utils.
58817
58818 1999-03-20  Jim Meyering  <meyering@ascend.com>
58819
58820         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
58821         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
58822         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
58823
58824 1999-03-19  Jim Meyering  <meyering@ascend.com>
58825
58826         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
58827
58828 1999-03-12  Jim Meyering  <meyering@ascend.com>
58829
58830         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
58831
58832 1999-03-07  Jim Meyering  <meyering@ascend.com>
58833
58834         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
58835         declared.
58836
58837 1999-02-17  Jim Meyering  <meyering@ascend.com>
58838
58839         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
58840         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
58841
58842 1999-02-07  Jim Meyering  <meyering@ascend.com>
58843
58844         * m4/group-member.m4: New file -- extracted from sh-utils'
58845         configure.in.
58846
58847         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
58848         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
58849
58850 1999-02-06  Jim Meyering  <meyering@ascend.com>
58851
58852         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
58853         * m4/fnmatch.m4: Likewise.
58854         * m4/getgroups.m4: Likewise.
58855         * m4/lstat.m4: Likewise.
58856         * m4/malloc.m4: Likewise.
58857         * m4/putenv.m4: Likewise.
58858         * m4/realloc.m4: Likewise.
58859         * m4/regex.m4: Likewise.
58860         * m4/stat.m4: Likewise.
58861         * m4/strftime.m4: Likewise.
58862         Suggestion from Alain Magloire.
58863
58864         * m4/chown.m4: Use `.$ac_objext', not `.o'.
58865         * m4/fnmatch.m4: Likewise.
58866         * m4/getgroups.m4: Likewise.
58867         * m4/getline.m4: Likewise.
58868         * m4/lstat.m4: Likewise.
58869         * m4/malloc.m4: Likewise.
58870         * m4/memcmp.m4: Likewise.
58871         * m4/putenv.m4: Likewise.
58872         * m4/realloc.m4: Likewise.
58873         * m4/regex.m4: Likewise.
58874         * m4/stat.m4: Likewise.
58875         * m4/strftime.m4: Likewise.
58876         Suggestion from Alain Magloire.
58877
58878         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
58879         an argument.
58880
58881         * m4/regex.m4: Add a run-time Test for proper operation of
58882         re_compile_pattern.
58883
58884 1999-01-31  Jim Meyering  <meyering@ascend.com>
58885
58886         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
58887
58888 1999-01-30  Jim Meyering  <meyering@ascend.com>
58889
58890         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
58891
58892         * m4/jm-mktime.m4: Make this a wrapper around the official
58893         AM_FUNC_MKTIME rather than my private copy, now that the official one
58894         is up to date.
58895         * m4/mktime.m4: Remove file.
58896
58897         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
58898         * m4/uptime.m4: Likewise.
58899         * m4/uintmax_t.m4: Likewise.
58900
58901 1999-01-28  Jim Meyering  <meyering@ascend.com>
58902
58903         * m4/jm-macros.m4: Use jm_AFS.
58904         * m4/afs.m4: New file (from fileutils' configure.in).
58905
58906         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
58907         * m4/chown.m4: Likewise.
58908         * m4/d-ino.m4: Likewise.
58909         * m4/d-type.m4: Likewise.
58910         * m4/fnmatch.m4: Likewise.
58911         * m4/getgroups.m4: Likewise.
58912         * m4/gettext.m4: Likewise.
58913         * m4/jm-mktime.m4: Likewise.
58914         * m4/jm-winsz2.m4: Likewise.
58915         * m4/lcmessage.m4: Likewise.
58916         * m4/ls-mntd-fs.m4: Likewise.
58917         * m4/malloc.m4: Likewise.
58918         * m4/memcmp.m4: Likewise.
58919         * m4/putenv.m4: Likewise.
58920         * m4/realloc.m4: Likewise.
58921         * m4/st_mtim.m4: Likewise.
58922         * m4/strftime.m4: Likewise.
58923
58924 1999-01-16  Jim Meyering  <meyering@ascend.com>
58925
58926         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
58927         (ARGMATCH_DIE_DECL): Define.
58928
58929 1999-01-12  Jim Meyering  <meyering@ascend.com>
58930
58931         * m4/Makefile.am.in: Rewrite to avoid using fmt.
58932         Reported by Lars Hecking.
58933
58934 1999-01-10  Jim Meyering  <meyering@ascend.com>
58935
58936         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
58937         gross kludge.
58938         * m4/inttypes_h.m4: Likewise.
58939         * m4/lstat.m4: Likewise.
58940         * m4/malloc.m4: Likewise.
58941         * m4/readdir.m4: Likewise.
58942         * m4/realloc.m4: Likewise.
58943         * m4/st_dm_mode.m4: Likewise.
58944         * m4/stat.m4: Likewise.
58945         * m4/utimbuf.m4: Likewise.
58946         * m4/utimes.m4: Likewise.
58947
58948         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
58949         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
58950         comments in config.h.in are meaningful.
58951
58952         * m4/jm-macros.m4: Require autoconf-2.13 here.
58953
58954         * m4/regex.m4: By default, don't use the included regex.c on systems
58955         with glibc 2.  Suggestion from Uli Drepper.
58956
58957 1999-01-02  Jim Meyering  <meyering@ascend.com>
58958
58959         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
58960
58961 1998-12-18  Jim Meyering  <meyering@ascend.com>
58962
58963         * m4/Makefile.am.in (Makefile.am): Simplify rule.
58964         Based on a suggestion from Lars Hecking.
58965
58966 1998-11-16  Paul Eggert  <eggert@twinsun.com>
58967
58968         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
58969
58970 1998-11-16  Jim Meyering  <meyering@ascend.com>
58971
58972         * m4/lfs.m4: Double-quote the `uname...` expression.
58973
58974 1998-11-14  Jim Meyering  <meyering@ascend.com>
58975
58976         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
58977         * m4/stat.m4: Likewise.
58978
58979 1998-11-03  Jim Meyering  <meyering@ascend.com>
58980
58981         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
58982         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
58983
58984 1998-10-18  Jim Meyering  <meyering@ascend.com>
58985
58986         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
58987
58988 1998-10-17  Jim Meyering  <meyering@ascend.com>
58989
58990         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
58991         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
58992         calls for those previously hard-coded headers.  Instead, take a new
58993         parameter.
58994         (jm_CHECK_DECLARATIONS): Reflect interface change.
58995         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
58996         (jm_CHECK_DECL_LOCALTIME_R): New macro.
58997
58998         * m4/mktime.m4: Test for spring-forward gap before long-running test.
58999
59000 1998-10-14  Jim Meyering  <meyering@ascend.com>
59001
59002         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
59003         instead of "TZ=America/Vancouver".  From Paul Eggert.
59004
59005 1998-10-11  Jim Meyering  <meyering@ascend.com>
59006
59007         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
59008         This adds a test for a recently added compatibility fix for mktime.c.
59009         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
59010
59011 1998-09-27  Jim Meyering  <meyering@ascend.com>
59012
59013         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
59014
59015         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
59016         ../configure.in, including a change from Gordon Matzigkeit to allow
59017         cross-compiling for the Hurd.
59018
59019         * m4/glibc.m4: New file/macro to test for the GNU C Library
59020         versions 1 and 2.  From Gordon Matzigkeit.
59021         Indent.
59022
59023 1998-09-21  Jim Meyering  <meyering@ascend.com>
59024
59025         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
59026
59027 1998-08-18  Paul Eggert  <eggert@twinsun.com>
59028
59029         Port nanosecond-resolution times to UnixWare 2.1.2 and
59030         pedantic Solaris 2.6.
59031
59032         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
59033         AC_STRUCT_ST_MTIM.
59034         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
59035         Generate name of ns member, instead of just 1 or undef.
59036         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
59037
59038 1998-08-15  Jim Meyering  <meyering@ascend.com>
59039
59040         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
59041         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
59042         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
59043         instead of jm_TYPE_SSIZE_T.
59044
59045 1998-08-12  Jim Meyering  <meyering@ascend.com>
59046
59047         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
59048
59049 1998-08-02  Jim Meyering  <meyering@ascend.com>
59050
59051         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
59052         in acconfig.h manually.
59053
59054 1998-07-31  Paul Eggert  <eggert@twinsun.com>
59055
59056         * m4/st_mtim.m4: New file.
59057
59058 1998-07-28  Jim Meyering  <meyering@ascend.com>
59059
59060         * m4/utimes.m4: Undef stat.
59061
59062 1998-07-25  Jim Meyering  <meyering@ascend.com>
59063
59064         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
59065         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
59066
59067 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
59068
59069         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
59070         uid and gid actually remain unchanged.
59071
59072 1998-07-07  Jim Meyering  <meyering@ascend.com>
59073
59074         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
59075
59076 1998-07-04  Jim Meyering  <meyering@ascend.com>
59077
59078         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
59079         to prove that this macro can be used in packages without regex.c.
59080
59081 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
59082
59083         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
59084         is to be used.
59085
59086 1998-07-03  Jim Meyering  <meyering@ascend.com>
59087
59088         * m4/gettext.m4: Add -lintl if it's found to be necessary.
59089
59090         * m4/gettext.m4: New file -- from gettext-0.10.35.
59091         * m4/lcmessage.m4: Likewise.
59092         * m4/progtest.m4: Likewise.
59093
59094         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
59095         * m4/jm-macros.m4: Require the new macro.
59096
59097 1998-06-29  Jim Meyering  <meyering@ascend.com>
59098
59099         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
59100         for the definition of NGROUPS (used in a system header included
59101         by sys/mount.h).
59102
59103 1998-06-28  Jim Meyering  <meyering@ascend.com>
59104
59105         * m4/ls-mntd-fs.m4: New file.
59106         * m4/fstypename.m4: New file.
59107
59108         * m4/jm-macros.m4: Require the new macro.
59109         * m4/jm-glibc-io.m4: New file.
59110
59111 1998-05-19  Jim Meyering  <meyering@ascend.com>
59112
59113         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
59114         * m4/lchown.m4: New file.
59115
59116         * m4/Makefile.am.in: New file.
59117         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
59118
59119 1998-05-14  Jim Meyering  <meyering@ascend.com>
59120
59121         * m4/Makefile.am (EXTRA_DIST): Add them.
59122         * m4/jm-macros.m4: New file.
59123         * m4/utimbuf.m4: New file.
59124
59125 1998-05-12  Jim Meyering  <meyering@ascend.com>
59126
59127         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
59128
59129 1998-05-11  Jim Meyering  <meyering@ascend.com>
59130
59131         * m4/isc-posix.m4: New file.
59132
59133 1998-05-10  Jim Meyering  <meyering@ascend.com>
59134
59135         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
59136
59137 1998-05-09  Jim Meyering  <meyering@ascend.com>
59138
59139         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
59140         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
59141         with automake.
59142
59143         * m4/ssize_t.m4: New file.
59144         * m4/mktime.m4: Remove file -- the new automake has this now.
59145
59146 1998-04-26  Jim Meyering  <meyering@ascend.com>
59147
59148         * m4/assert.m4: New file.
59149         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
59150
59151 1998-04-05  Jim Meyering  <meyering@ascend.com>
59152
59153         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
59154         (jm_PREREQ): Use it here.
59155
59156 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
59157
59158         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
59159         in acconfig.h.
59160
59161 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
59162
59163         * m4/prereq.m4: New file.
59164         * m4/error.m4: New file.
59165         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
59166
59167 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
59168
59169         * m4/getline.m4: Don't set am_cv_func_working_getline before the
59170         cache-check for the same variable -- that defeated the purpose of
59171         the test; the test program was never run.  This was a problem only
59172         on systems with losing getline functions -- HP-UX 10.20 is one.
59173         Reported by Bjorn Helgaas.
59174
59175 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
59176
59177         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
59178
59179 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
59180
59181         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
59182
59183         * m4/const.m4: New file.  Use an initializer in this declaration
59184         typedef int charset[2]; const charset x;
59185         Reported by Bob Glickstein.
59186
59187 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
59188
59189         * m4/chown.m4: Fix reversed types on -1 args to chown.
59190         From Kaveh Ghazi.
59191
59192 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
59193
59194         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
59195         Add lseek and memchr.
59196
59197         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
59198         T.E.Dickey <dickey@clark.net> said that some older preprocessors
59199         have a 20-character limit on names.
59200
59201 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
59202
59203         * m4/inttypes_h.m4: New file.
59204         * m4/uintmax_t.m4: New file.
59205         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
59206
59207
59208         -----
59209
59210         Local Variables:
59211         coding: utf-8
59212         End:
59213
59214         Copyright (C) 1997-2009 Free Software Foundation, Inc.
59215
59216         Copying and distribution of this file, with or without
59217         modification, are permitted provided the copyright notice
59218         and this notice are preserved.