canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
[gnulib.git] / ChangeLog
1 2009-09-17  Eric Blake  <ebb9@byu.net>
2
3         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
4         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
5         slashes when checking if last component is missing.
6         * tests/test-canonicalize.c (main): Test this.
7
8         canonicalize, canonicalize-lgpl: honor // if distinct from /
9         * modules/canonicalize (Files): Add double-slash-root.m4.
10         * modules/canonicalize-lgpl (Files): Likewise.
11         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
12         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
13         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
14         fallback definition.
15         (canonicalize_filename_mode): Use it to protect //.
16         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
17         (__realpath): Likewise.
18         * tests/test-canonicalize.c (main): Test this.
19         * tests/test-canonicalize-lgpl.c (main): Likewise.
20         * modules/canonicalize-tests (Depends-on): Add same-inode.
21         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
22
23         canonicalize-lgpl: fix glibc bug with trailing slash
24         * m4/canonicalize-lgpl.m4: Move contents...
25         * m4/canonicalize.m4: ...here.
26         (gl_CANONICALIZE_LGPL): Factor realpath check...
27         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
28         glibc 2.3.5 bug, fixed 2005-04-27.
29         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
30         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
31         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
32         * modules/canonicalize-lgpl (Files): Manage file rename.
33         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34         * modules/stdlib (Makefile.am): Substitute witness.
35         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
36         is needed.
37         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
38         replacement is required.
39         * lib/canonicalize.c (canonicalize_file_name): Likewise.
40         * doc/glibc-functions/canonicalize_file_name.texi
41         (canonicalize_file_name): Document this.
42         * doc/posix-functions/realpath.texi (realpath): Likewise.
43
44         canonicalize-lgpl: reject non-directory with trailing slash
45         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
46         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
47         catches failures in glibc 2.3.5.
48         * tests/test-canonicalize.c (main): Likewise.
49
50         canonicalize-lgpl: use native realpath if it works
51         * lib/canonicalize-lgpl.c (realpath): Guard with
52         FUNC_REALPATH_WORKS.
53         * lib/stdlib.in.h (realpath): Make declaration optional based on
54         HAVE_REALPATH.
55         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
56         native realpath works.
57         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
58         * modules/stdlib (Makefile.am): Substitute witness.
59
60         canonicalize, canonicalize-lgpl: use <stdlib.h>
61         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
62         (Include): Mention <stdlib.h>.
63         (configure.ac): Mention functions we provide.
64         * modules/canonicalize (configure.ac): Likewise.
65         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
66         realpath if canonicalize_file_name is missing.
67         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
68         * modules/stdlib (Makefile.am): Substitute witnesses.
69         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
70         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
71         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
72         * NEWS: Document this.
73         * doc/glibc-functions/canonicalize_file_name.texi
74         (canonicalize_file_name): Likewise.
75         * doc/posix-functions/realpath.texi (realpath): Likewise.
76         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
77
78         test-canonicalize: consolidate into single C program
79         * tests/test-canonicalize.sh: Delete; move setup into...
80         * tests/test-canonicalize.c (main): ...the program, making it
81         easier to run in debugger.  Add some tests.
82         * modules/canonicalize-tests (Files): Remove unused file.
83         (Depends-on): Add progname.
84         (configure.ac, Makefile.am): Simplify.
85
86         test-canonicalize-lgpl: consolidate into single C program
87         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
88         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
89         easier to run in debugger.  Add some tests.
90         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
91         (configure.ac, Makefile.am): Simplify.
92
93         canonicalize: avoid resolvepath
94         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
95         unnecessary checks.
96         * lib/canonicalize.c (includes): Simplify.
97         (canonicalize_file_name): Drop resolvepath implementation.
98         * modules/canonicalize (Depends-on): Drop filenamecat.
99
100         canonicalize: don't lose errno
101         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
102         over calls to free.
103
104         canonicalize: simplify errno handling
105         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
106         assignment.
107
108         canonicalize, canonicalize-lgpl: update module dependencies
109         * modules/canonicalize (Depends-on): Add extensions, lstat,
110         pathmax, stdlib.
111         (Files): Drop pathmax.h.
112         (configure.ac): Adjust macro name.
113         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
114         lstat, stdlib, sys_stat.
115         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
116         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
117         extensions.
118         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
119         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
120         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
121         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
122         declaration, if available.
123         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
124         we can rely on the readlink module.
125         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
126         (includes): Use <unistd.h> unconditionally.
127
128 2009-09-17  Eric Blake  <ebb9@byu.net>
129
130         maint: make Include sections of modules consistent
131         * modules/alloca: Use only header name; no need to list #include.
132         * modules/alloca-opt: Likewise.
133         * modules/arpa_inet: Likewise.
134         * modules/canon-host: Likewise.
135         * modules/configmake: Likewise.
136         * modules/dirent: Likewise.
137         * modules/eealloc: Likewise.
138         * modules/environ: Likewise.
139         * modules/fchdir: Likewise.
140         * modules/fcntl: Likewise.
141         * modules/fcntl-h: Likewise.
142         * modules/gethrxtime: Likewise.
143         * modules/gettime: Likewise.
144         * modules/ignore-value: Likewise.
145         * modules/inet_ntop: Likewise.
146         * modules/inet_pton: Likewise.
147         * modules/inttypes: Likewise.
148         * modules/isnand-nolibm: Likewise.
149         * modules/isnanf-nolibm: Likewise.
150         * modules/mbchar: Likewise.
151         * modules/mbfile: Likewise.
152         * modules/mbiter: Likewise.
153         * modules/mbuiter: Likewise.
154         * modules/netdb: Likewise.
155         * modules/netinet_in: Likewise.
156         * modules/nproc: Likewise.
157         * modules/pagealign_alloc: Likewise.
158         * modules/poll: Likewise.
159         * modules/printf-frexp: Likewise.
160         * modules/pthread: Likewise.
161         * modules/putenv: Likewise.
162         * modules/random_r: Likewise.
163         * modules/relocatable-prog: Likewise.
164         * modules/search: Likewise.
165         * modules/select: Likewise.
166         * modules/selinux-h: Likewise.
167         * modules/settime: Likewise.
168         * modules/signal: Likewise.
169         * modules/size_max: Likewise.
170         * modules/socklen: Likewise.
171         * modules/ssize_t: Likewise.
172         * modules/stdarg: Likewise.
173         * modules/stdbool: Likewise.
174         * modules/stddef: Likewise.
175         * modules/stdint: Likewise.
176         * modules/stdio: Likewise.
177         * modules/stdlib: Likewise.
178         * modules/string: Likewise.
179         * modules/strings: Likewise.
180         * modules/sys_file: Likewise.
181         * modules/sys_ioctl: Likewise.
182         * modules/sys_select: Likewise.
183         * modules/sys_socket: Likewise.
184         * modules/sys_stat: Likewise.
185         * modules/sys_time: Likewise.
186         * modules/sys_times: Likewise.
187         * modules/sys_utsname: Likewise.
188         * modules/sys_wait: Likewise.
189         * modules/sysexits: Likewise.
190         * modules/time: Likewise.
191         * modules/times: Likewise.
192         * modules/tmpfile: Likewise.
193         * modules/trim: Likewise.
194         * modules/unistd: Likewise.
195         * modules/wchar: Likewise.
196         * modules/wctype: Likewise.
197
198 2009-09-17  Bruno Haible  <bruno@clisp.org>
199
200         Make getdate.y compile on QNX and NetBSD 5 / i386.
201         * m4/getdate.m4 (gl_GETDATE): Conditionally define
202         TIME_T_FITS_IN_LONG_INT.
203         * lib/getdate.y (long_time_t): New type.
204         (relative_time): Change type of 'seconds' field to long_time_t.
205         (get_date): Update types of local variables. Check against overflow
206         during conversion from long_time_t to time_t.
207         Reported by Matt Kraai <kraai@ftbfs.org>
208         and Hasso Tepper <hasso@netbsd.org>.
209
210 2009-09-17  Bruno Haible  <bruno@clisp.org>
211
212         * modules/COPYING: Update copyright years.
213         * modules/README: Likeiwse.
214         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
215         Reported by Ian Beckwith <ianb@erislabs.net>.
216
217 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
218
219         * users.txt: Update references for gnuit package.
220
221 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
222
223         * m4/getdelim.m4: Fix typo in copyright line.
224
225 2009-09-17  Bruno Haible  <bruno@clisp.org>
226
227         * lib/atoll.c: Use the standard header with GPL copyright.
228         * lib/argz.in.h: Likewise.
229         * lib/glob.c: Likewise.
230         * lib/glob-libc.h: Likewise.
231         * lib/random_r.c: Likewise.
232         * lib/siglist.h: Likewise.
233         * lib/strsignal.c: Likewise.
234         Reported by Ian Beckwith <ianb@erislabs.net>.
235
236 2009-09-17  Eric Blake  <ebb9@byu.net>
237
238         rmdir: ensure correct dependency order
239         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
240
241 2009-09-17  Bruno Haible  <bruno@clisp.org>
242
243         Disable assertion that fails on NetBSD 5 / i386.
244         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
245         Reported by Sam Steingold <sds@gnu.org>
246         and Hasso Tepper <hasso@netbsd.org>.
247
248 2009-09-16  Eric Blake  <ebb9@byu.net>
249
250         unlinkdir: port to mingw
251         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
252         on which no one can unlink a directory.
253
254         stdlib: sort witness names
255         * modules/stdlib (Makefile.am): Sort replacements.
256         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
257         * lib/stdlib.in.h: Likewise.
258
259         parse-duration-tests: avoid link failure
260         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
261         LIBINTL.
262         Reported by Tom G. Christensen.
263
264         openat-tests: ensure unlinkat behaves like rmdir
265         * tests/test-rmdir.c (main): Factor guts...
266         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
267         * modules/rmdir-tests (Files): Ship new file.
268         * modules/openat-tests: New test.
269         * tests/test-unlinkat.c: Likewise.
270
271         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
272         * modules/rmdir-errno (Status, Notice): Now obsolete.
273
274         rmdir: work around cygwin 1.5.x and mingw bugs
275         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
276         * lib/rmdir.c (rmdir): Work around it.
277         * modules/rmdir (Status, Notice): No longer obsolete.
278         (Files): Add dos.m4.
279         (Depends-on): Add unistd.
280         (configure.ac): Set witnesses.
281         (License): Relax to LGPLv2+.
282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
283         * modules/unistd (Makefile.am): Substitute witnesses.
284         * lib/unistd.in.h (rmdir): Declare replacement.
285         * doc/posix-functions/rmdir.texi (rmdir): Document this.
286         * modules/rmdir-tests: New tests.
287         * tests/test-rmdir.c: Likewise.
288
289 2009-09-15  Eric Blake  <ebb9@byu.net>
290
291         fchdir: improve use of replacement functions
292         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
293         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
294         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
295         REPLACE_CLOSEDIR.
296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
297         * modules/sys_stat (Makefile.am): Substitute correct witness.
298         * modules/dirent (Makefile.am): Likewise.
299         * modules/unistd (Makefile.am): Likewise.
300         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
301         * lib/unistd.in.h (dup): Likewise.
302         * lib/sys_stat.in.h (fstat): Likewise.
303
304         maint: ignore gnulib-tool temp files
305         * .gitignore: Ignore files created during gnulib-tool --test.
306
307 2009-09-13  Jim Meyering  <meyering@redhat.com>
308
309         posixtm: don't reject a time that specify "60" as the number of seconds
310         * lib/posixtm.c (posixtime): The code to reject invalid dates
311         would also reject a time specified with the .60 suffix.
312         But POSIX allows that, in order to accommodate leap seconds.
313         So don't reject it.
314         (main): Adjust tests accordingly.
315         * modules/posixtm (Depends-on): Add stpcpy.
316
317 2009-09-11  Jim Meyering  <meyering@redhat.com>
318
319         announce-gen: include [$release_type] in emitted Subject:
320         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
321         e.g., [stable] in the emitted Subject: line.
322
323 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
324
325         Remove obsolete macros from several modules.
326         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
327         obsolete Autoconf macros with their modern counterparts.
328         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
329         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
330         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
331         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
332         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
333         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
334         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
335         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
336         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
337         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
338         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
339         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
340         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
341         * m4/sockets.m4 (gl_SOCKETS): Likewise.
342         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
343         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
344         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
345         * m4/time_r.m4 (gl_TIME_R): Likewise.
346         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
347         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
348         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
349
350         Fix copyright header in build-aux scripts.
351         * build-aux/git-version-gen: Fix copyright header to match GPLv3
352         recommendation.
353         * build-aux/ncftpput-ftp: Likewise.
354         * build-aux/update-copyright: Likewise.
355
356 2009-09-09  Eric Blake  <ebb9@byu.net>
357
358         test-link: allow Linux choice of errno
359         * tests/test-link.c (main): Relax test for alternate error.
360
361         strndup: fix improper m4 caching
362         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
363         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
364         (gl_PREREQ_STRNDUP): Delete.
365         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
366         * modules/string (Makefile.am): Substitute it.
367         * lib/string.in.h (strndup): Modernize prototype.
368
369         getcwd: port to mingw
370         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
371         different from the POSIX assumptions made throughout the getcwd
372         module; fortunately, the mingw getcwd does not need replacement.
373         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
374         * modules/getcwd-tests: New test.
375         * tests/test-getcwd.c: Likewise.
376
377         link: fix platform bugs
378         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
379         * lib/link.c (link): Work around them.  Fix related mingw bug.
380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
381         * modules/unistd (Makefile.am): Substitute it.
382         * lib/unistd.in.h (link): Declare replacement.
383         * doc/posix-functions/link.texi (link): Document this.
384         * modules/link (Depends-on): Add strdup-posix, sys_stat.
385
386         test-link: consolidate into single C program, test more cases
387         * tests/test-link.sh: Delete.
388         * tests/test-link.c: Test more error conditions.  Exposes bugs on
389         at least Cygwin and Solaris.
390         * modules/link-tests (Files): Remove unused file.
391         (Depends-on): Add errno, sys_stat.
392         (Makefile.am): Simplify.
393
394 2009-09-08  Bruno Haible  <bruno@clisp.org>
395
396         Work around towlower, towupper bug on mingw.
397         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
398         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
399         * doc/posix-functions/towlower.texi: Mention the mingw bug.
400         * doc/posix-functions/towupper.texi: Likewise.
401         Reported by Eric Blake.
402
403 2009-09-08  Jim Meyering  <meyering@redhat.com>
404
405         build: don't try to run autoheader if we don't use it
406         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
407         is not used in configure.ac.
408
409 2009-09-08  Eric Blake  <ebb9@byu.net>
410
411         euidaccess: fix compilation error
412         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
413
414         rawmemchr: relax license
415         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
416         okay.
417         Reported by Jim Meyering.
418
419         mkfifoat: new module
420         * modules/mkfifoat: New file.
421         * lib/mkfifoat.c: Likewise.
422         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
423         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
424         * modules/sys_stat (Makefile.am): Use them.
425         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
426         * MODULES.html.sh (File system functions): Mention module.
427         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
428         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
429         * modules/mkfifoat-tests: New test.
430         * tests/test-mkfifoat.c: Likewise.
431
432         strchrnul: relax license
433         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
434         okay.
435         Reported by Jim Meyering.
436
437 2009-09-08  Eric Blake  <ebb9@byu.net>
438
439         fstatat: fix compilation on Solaris
440         * lib/fstatat.c (includes): Add fcntl.h.
441         Reported by Pádraig Brady.
442
443 2009-09-07  Eric Blake  <ebb9@byu.net>
444
445         rename: modernize replacement
446         * modules/rename (Depends-on): Add stdio.
447         (configure.ac): Declare witness.
448         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
449         stdio take care of replacement.
450         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
451         * modules/stdio (Makefile.am): Substitute them.
452         * lib/stdio.in.h (rename): Declare replacement.
453         * lib/rename.c (includes): Allow cross-compilation to non-windows
454         machines.
455         * doc/posix-functions/rename.texi (rename): Improve
456         documentation.
457
458         stdio: sort witness names
459         * modules/stdio (Makefile.am): Sort replacements.
460         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
461         * lib/stdio.in.h: Likewise.
462
463         getcwd: minor cleanups
464         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
465         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
466
467         openat: provide more convenience names
468         * modules/faccessat (configure.ac): Add C witness.
469         * lib/unistd.in.h (readlinkat): Fix typo.
470         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
471         convenience wrappers.
472         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
473         wrappers in syntax checks.
474
475 2009-09-06  Eric Blake  <ebb9@byu.net>
476
477         doc: fix comments in recent patches
478         * lib/faccessat.c: Mention correct function.
479         * lib/fchmodat.c: Likewise.
480         * lib/fchownat.c: Likewise.
481         * lib/symlinkat.c: Likewise.
482         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
483         constants.
484
485         faccessat, symlinkat: continue cleanup of previous patch
486         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
487         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
488         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
489         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
490         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
491         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
492         set.
493
494 2009-09-06  Bruno Haible  <bruno@clisp.org>
495
496         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
497         (fstatat): Declare if GNULIB_FSTATAT is set.
498         (mkdirat): Declare if GNULIB_MKDIRAT is set.
499         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
500         (unlinkat): Declare if GNULIB_UNLINKAT is set.
501         * modules/fcntl-h (Files): Remove m4/openat.m4.
502         * modules/sys_stat (Files): Remove m4/openat.m4.
503         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
504         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
505         * modules/unistd (Files): Remove m4/openat.m4.
506         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
507         GNULIB_OPENAT.
508         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
509         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
510         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
511         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
512         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
513         gl_OPENAT_DEFAULTS.
514         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
515         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
516         Don't require gl_OPENAT_DEFAULTS.
517         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
518         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
519         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
520         (gl_OPENAT_DEFAULTS): Remove macro.
521
522 2009-09-06  Bruno Haible  <bruno@clisp.org>
523
524         * modules/openat (configure.ac): Remove unneeded witness.
525
526 2009-09-06  Bruno Haible  <bruno@clisp.org>
527
528         Set errno to ENOSYS when a function is entirely unsupported.
529         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
530         EOPNOTSUPP.
531         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
532         * modules/chown (Depends-on): Remove errno.
533
534 2009-09-06  Bruno Haible  <bruno@clisp.org>
535
536         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
537
538 2009-09-06  Bruno Haible  <bruno@clisp.org>
539
540         * lib/sys_stat.in.h: Fix preprocessor command indentation.
541
542 2009-09-06  Ben Pfaff  <blp@gnu.org>
543             Bruno Haible  <bruno@clisp.org>
544
545         Work around a glibc bug in strtok_r.
546         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
547         Undefine if UNDEFINE_STRTOK_R is set.
548         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
549         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
550         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
551         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
552         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
553         UNDEFINE_STRTOK_R.
554         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
555
556 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
557
558         exclude: minor fix
559         * lib/exclude.c: Include wctype.h
560
561 2009-09-06  Akim Demaille  <demaille@gostai.com>
562
563         bootstrap: improve error message
564         * build-aux/bootstrap (find_tool): Upon failure, report the list
565         of candidates.
566         Honor the initial value of the envvar.
567
568 2009-09-05  Eric Blake  <ebb9@byu.net>
569
570         symlinkat: new module
571         * modules/symlinkat: New file.
572         * lib/symlinkat.c: Likewise.
573         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
575         * modules/unistd (Makefile.am): Use them.
576         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
577         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
578         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
579         * MODULES.html.sh (File system functions): Mention module.
580         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
581         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
582         * modules/symlinkat-tests: New test.
583         * tests/test-symlinkat.c: Likewise.
584
585         test-openat-safer: add more checks
586         * tests/test-openat-safer.c (main): Check more code paths.
587
588 2009-09-05  Jim Meyering  <meyering@redhat.com>
589
590         syntax-check: detect unnecessary inclusion of openat.h
591         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
592
593 2009-09-05  Bruno Haible  <bruno@clisp.org>
594
595         Support towlower, towupper.
596         * doc/posix-functions/towlower.texi: Mention module wctype.
597         * doc/posix-functions/towupper.texi: Likewise.
598         * lib/wctype.in.h (towlower, towupper): New functions.
599         * tests/test-wctype.c: Include stdio.h, stdlib.h.
600         (ASSERT): New macro.
601         (e): New variable.
602         (main): Test also towlower, towupper. Test WEOF argument.
603         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
604
605 2009-09-05  Bruno Haible  <bruno@clisp.org>
606
607         Fix conversion behaviour when the input is invalid.
608         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
609         mark occurring in first pass of indirect conversion.
610         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
611         input.
612         Found by clang's static analyzer.
613
614 2009-09-05  Bruno Haible  <bruno@clisp.org>
615
616         * tests/test-striconveh.c (main): Test indirect conversion on platforms
617         where direct conversion is possible.
618
619 2009-09-04  Eric Blake  <ebb9@byu.net>
620
621         openat: fail with ENOENT on empty name
622         * lib/openat-proc.c (openat_proc_name): Special-case the empty
623         buffer.
624
625         link-follow: fix logic bug in prior patch
626         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
627         reversed sense of yes and no in prior patch.  Avoid confusing
628         compilation failure with desired semantics.
629
630         link-follow: accomodate mingw and cross-compilation
631         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
632         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
633         cross-compilation results to -1, to make linkat easier to
634         implement when cross-compiling.  Trivially support mingw.
635         * modules/link-follow (configure.ac): Call new name.
636         * NEWS: Mention this.
637
638 2009-09-03  Eric Blake  <ebb9@byu.net>
639
640         faccessat: compile replacement
641         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
642         needed.
643
644         fts: fix compilation error
645         * lib/fts.c (includes): Re-add "openat.h", for
646         openat_needs_fchdir.
647
648         faccessat: new module
649         * modules/faccessat: New file.
650         * lib/faccessat.c: Likewise.
651         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
653         * modules/unistd (Makefile.am): Use it.
654         * lib/unistd.in.h (faccessat): Declare it.
655         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
656         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
657         * MODULES.html.sh (File system functions): Mention it.
658         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
659         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
660
661         euidaccess: prefer POSIX over non-standard implementation
662         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
663         * lib/euidaccess.c (euidaccess): Use it if available.
664
665         openat: make template easier to use
666         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
667         AT_FUNC_F2 to be undefined.
668         (VALIDATE_FLAG): New macro; use it to reject bad flags.
669         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
670         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
671         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
672         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
673         Likewise.
674         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
675         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
676         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
677         Likewise.
678
679         openat: declare in POSIX headers
680         * NEWS: Mention this.
681         * modules/openat (configure.ac): Declare witnesses.
682         (Depends-on): Add fcntl-h, sys_stat, unistd.
683         (Include): Mention correct headers.
684         * modules/fcntl-h (Depends-on): Add link-warning.
685         (Files): Add openat.m4.
686         (Makefile.am): Substitute witnesses.
687         * modules/sys_stat (Files, Makefile.am): Likewise.
688         * modules/unistd (Files, Makefile.am): Likewise.
689         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
690         (gl_OPENAT_DEFAULTS): New macro.
691         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
693         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
694         (SYS_STAT_H): Remove unused variable.
695         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
696         * lib/fcntl--.h (includes): Remove unneeded header.
697         * lib/openat-safer.c (includes): Likewise.
698         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
699         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
700         appropriate headers.
701         (__OPENAT_PREFIX): Delete.
702         * lib/fcntl.in.h (openat): Provide declaration.
703         (AT_FDCWD): Fix Solaris bug.
704         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
705         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
706         * lib/fchmodat.c (includes):  Adjust to find declaration.
707         * lib/fchownat.c (includes): Likewise.
708         * lib/mkdirat.c (includes): Likewise.
709         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
710         still visible.
711
712 2009-09-02  Eric Blake  <ebb9@byu.net>
713
714         errno: use consistently
715         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
716         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
717         * lib/canonicalize.c (ELOOP): Likewise.
718         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
719         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
720         * lib/lchown.c (EOPNOTSUPP): Likewise.
721         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
722         * lib/savewd.c (ESTALE): Likewise.
723         * lib/settime.c (ENOSYS): Likewise.
724         * lib/utimens.c (ENOSYS): Likewise.
725         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
726         * lib/chdir-safer.c (ELOOP): Likewise.
727         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
728         * modules/c-stack (Depends-on): Add errno.
729         * modules/canonicalize (Depends-on): Likewise.
730         * modules/chdir-safer (Depends-on): Likewise.
731         * modules/fdopendir (Depends-on): Likewise.
732         * modules/inet_ntop (Depends-on): Likewise.
733         * modules/inet_pton (Depends-on): Likewise.
734         * modules/lchown (Depends-on): Likewise.
735         * modules/openat (Depends-on): Likewise.
736         * modules/savewd (Depends-on): Likewise.
737         * modules/settime (Depends-on): Likewise.
738         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
739
740         fts: avoid leaking fds
741         * modules/fts (Depends-on): Add cloexec.
742         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
743         flag.
744
745         fts: make directory fds more robust
746         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
747         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
748
749         backupfile, chdir-long, fts, savedir: make safer
750         * lib/backupfile.c (includes): Use "dirent--.h", since
751         numbered_backup can write to stderr during readdir.
752         * lib/savedir.c (includes): Likewise.
753         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
754         emulation can write to stderr on failure.
755         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
756         * lib/getcwd.c: Document why opendir_safer is unused.
757         * lib/glob.c: Likewise.
758         * lib/scandir.c: Likewise.
759         * lib/openat-proc.c: Likewise, for open_safer.
760         * modules/backupfile (Depends-on): Add dirent-safer.
761         * modules/savedir (Depends-on): Likewise.
762         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
763         * modules/chdir-long (Depends-on): Add openat-safer.
764
765         openat-safer: new module
766         * modules/openat-safer: New file.
767         * lib/openat-safer.c: Likewise.
768         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
769         * lib/fcntl-safer.h (openat_safer): Declare.
770         * lib/fcntl--.h (openat): Override.
771         * MODULES.html.sh (File descriptor based I/O): Mention it.
772         * lib/openat.h: Add double-inclusion guards.
773         * lib/openat.c (includes): Only include "fcntl-safer.h", not
774         "fcntl--.h", so we can implement openat.
775         * modules/openat-safer-tests: New test.
776         * tests/test-openat-safer.c: New file.
777
778         dirent-safer: new module
779         * modules/dirent-safer: New file.
780         * lib/dirent--.h: Likewise.
781         * lib/dirent-safer.h: Likewise.
782         * lib/opendir-safer.c: Likewise.
783         * m4/dirent-safer.m4: Likewise.
784         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
785         * modules/dirent-safer-tests: New test.
786         * tests/test-dirent-safer.c: New file.
787         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
788
789         fdopendir: optimize on mingw
790         * lib/unistd.in.h (_gl_directory_name): New prototype.
791         * lib/fchdir.c (_gl_directory_name): Implement it.
792         (fchdir): Use it to simplify implementation.
793         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
794         fchdir, when available, to avoid calling [f]chdir().
795
796         fdopendir: split into its own module
797         * lib/openat.c (fdopendir): Move...
798         * lib/fdopendir.c: ...into new file.
799         * modules/fdopendir: New module.
800         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
801         * modules/openat (Depends-on): Add fdopendir.
802         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
803         fdopendir here.
804         * modules/savedir (Depends-on): Only need fdopendir, not full
805         openat.
806         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
807         * lib/openat.h (fdopendir): Drop prototype.
808         * lib/dirent.in.h (fdopendir): Provide prototype.
809         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
810         * modules/dirent (Makefile.am): Substitute them.
811         * MODULES.html.sh (File system functions): Mention it.
812         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
813         * modules/fdopendir-tests: New file.
814         * tests/test-fdopendir.c: Likewise.
815
816         fchdir: use more consistent macro convention
817         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
818         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
819         REPLACE_FCHDIR, rather than relying on config.h macros.
820         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
821         inside a single make-time REPLACE_FCHDIR block, rather than using
822         the config.h FCHDIR_REPLACEMENT.
823         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
824         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
825         Manage fstat replacement.
826         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
827         REPLACE_FCHDIR.
828         * modules/sys_stat (Files): Add m4/unistd_h.m4.
829         (Makefile.am): Substitute REPLACE_FCHDIR.
830         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
831         FCHDIR_REPLACEMENT.
832         * lib/dup-safer.c (dup_safer): Likewise.
833         * lib/dup2.c (rpl_dup2): Likewise.
834         * lib/dup3.c (rpl_dup3): Likewise.
835         * lib/open.c (rpl_open): Likewise.
836
837         fchdir: simplify error handling, and support dup3
838         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
839         stdbool, malloc-posix, realloc-posix.
840         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
841         (ensure_dirs_slot): Return false on allocation failure.
842         (rpl_dup2): Delete.
843         (_gl_register_dup): New function.
844         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
845         (_gl_register_fd): Close fd on allocation failure.
846         * lib/fcntl.in.h (_gl_register_fd): Update signature.
847         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
848         prototype.
849         (rpl_dup2_fchdir): Delete prototype.
850         * lib/open.c (open): Update caller.
851         * lib/dup2.c (dup2): Track fchdir metadata.
852         * lib/dup3.c (dup3): Likewise.
853         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
854         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
855
856 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
857
858         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
859         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
860         don't pass arguments to AC_OUTPUT.
861
862 2009-09-02  Bruno Haible  <bruno@clisp.org>
863
864         * modules/mkdtemp (License): Relicense under LGPLv2+.
865         Reported by Paolo Bonzini.
866
867 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
868
869         Replace uses of obsolete autoconf macros in Jim's modules.
870         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
871         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
872         can evoke a warning from autoconf when run with -Wobsolete
873         enabled.  They were declared obsolete for good reasons (see
874         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
875         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
876         should not continue using the deprecated macros.
877         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
878         obsolete Autoconf macros with modern counterparts.
879         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
880         * m4/dos.m4 (gl_AC_DOS): Likewise.
881         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
882         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
883         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
884         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
885         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
886         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
887         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
888         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
889         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
890         Likewise.
891         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
892         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
893         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
894         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
895         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
896         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
897
898 2009-09-01  Eric Blake  <ebb9@byu.net>
899
900         fchdir: fix off-by-one bug in previous patch
901         * lib/fchdir.c (rpl_fstat): Use correct bounds.
902         (_gl_unregister_fd): Delete useless if.
903
904 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
905
906         maint.mk: sort the list of syntax-check rules
907         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
908         easier to get a sense of progress when the rules are run sequentially
909         and take a long time.
910
911 2009-09-01  Simon Josefsson  <simon@josefsson.org>
912
913         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
914         * modules/netinet_in: Likewise.
915         * modules/sys_file: Likewise.
916         * modules/sys_ioctl: Likewise.
917         * modules/sys_select: Likewise.
918         * modules/sys_socket: Likewise.
919         * modules/sys_stat: Likewise.
920         * modules/sys_time: Likewise.
921         * modules/sys_times: Likewise.
922         * modules/sys_utsname: Likewise.
923         * modules/sys_wait: Likewise.
924
925 2009-09-01  Jim Meyering  <meyering@redhat.com>
926
927         fts: help ensure that return values are not ignored
928         * lib/fts_.h (__GNUC_PREREQ): Define.
929         (__attribute_warn_unused_result__): Define.
930         (fts_children, fts_close, fts_open, fts_read): Declare with
931         __attribute_warn_unused_result__.
932
933         fts: fts_close now fails also when closing a dir file descriptor fails
934         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
935         and propagate to caller, along with errno.
936
937         announce-gen: correct formatting in --help output
938         * build-aux/announce-gen (usage): Move the one-line description in
939         --help output "up", to where it belongs, just after Usage:.
940
941 2009-08-31  Eric Blake  <ebb9@byu.net>
942
943         fchdir: port to mingw
944         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
945         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
946         opened, then use a substitute.
947         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
948         replacement.
949         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
950         (_gl_register_fd): No need to check stat if open already filters
951         all directories.
952         (fchdir): Fix error condition to match POSIX.
953         * modules/fchdir (Depends-on): Add sys_stat.
954         * doc/posix-functions/open.texi (open): Document the limitation.
955         * modules/fchdir-tests: New file.
956         * tests/test-fchdir.c: Likewise.
957
958         canonicalize: allow cross-testing from cygwin to mingw
959         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
960         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
961         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
962         Likewise.
963         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
964         target does not support symlinks.
965         * tests/test-canonicalize-lgpl.sh: Likewise.
966
967         chown: avoid compilation warning on mingw
968         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
969         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
970         mingw.
971         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
972         * modules/chown (Depends-on): Add errno.
973
974 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
975
976         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
977         command.
978
979 2009-08-31  Jim Meyering  <meyering@redhat.com>
980
981         canonicalize: remove useless initialization
982         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
983         initialization of local, "end".
984
985 2009-08-30  Bruno Haible  <bruno@clisp.org>
986
987         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
988         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
989         ENOSYS.
990
991 2009-08-30  Bruno Haible  <bruno@clisp.org>
992
993         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
994         /usr/xpg4/bin/tr when it exists.
995         * tests/test-pipe-filter-gi1.sh: Likewise.
996
997 2009-08-30  Bruno Haible  <bruno@clisp.org>
998
999         Work around deficient /usr/bin/id program on Solaris.
1000         * tests/test-file-has-acl.sh (ID): New variable.
1001         * tests/test-set-mode-acl.sh (ID): Likewise.
1002         * tests/test-copy-acl.sh (ID): Likewise.
1003         * tests/test-copy-file.sh (ID): Likewise.
1004
1005 2009-08-30  Bruno Haible  <bruno@clisp.org>
1006
1007         New module 'xstriconveh'.
1008         * lib/xstriconveh.h: New file.
1009         * lib/xstriconveh.c: New file.
1010         * modules/xstriconveh: New file.
1011
1012 2009-08-30  Bruno Haible  <bruno@clisp.org>
1013
1014         Make it easier to use mem_cd_iconveh.
1015         * lib/striconveh.h (iconveh_t): New type.
1016         (iconveh_open, iconveh_close): New declarations.
1017         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
1018         with a single 'const iconveh_t *' argument.
1019         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
1020         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
1021         with a single 'const iconveh_t *' argument.
1022         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
1023         * tests/test-striconveh.c (main): Update.
1024         * NEWS: Mention the change.
1025
1026 2009-08-30  Bruno Haible  <bruno@clisp.org>
1027
1028         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
1029         problem.
1030
1031 2009-08-30  Bruno Haible  <bruno@clisp.org>
1032
1033         Work around iconv_open problem on Solaris.
1034         * lib/iconv_open-solaris.gperf: New file.
1035         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
1036         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
1037         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
1038         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
1039         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
1040         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
1041
1042 2009-08-29  Jim Meyering  <meyering@redhat.com>
1043
1044         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
1045         * top/maint.mk (cvs-check): Remove target; it was just an alias
1046         to the better-named vc-diff-check.
1047         (maintainer-distcheck): Remove rule.  It was used only from
1048         the (alpha/beta/major) target, and all of its commands but one
1049         were coreutils-specific.
1050         (vc-dist): Remove rule.
1051         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
1052         Run vc-diff-check, not vc-dist.
1053         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
1054
1055 2009-08-27  Bruno Haible  <bruno@clisp.org>
1056
1057         * tests/test-bitrotate.c (main): Remove test that uses a shift count
1058         of 0.
1059
1060 2009-08-27  Bruno Haible  <bruno@clisp.org>
1061
1062         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
1063         compilers.
1064         * doc/func.texi: Document the SunPRO C bug.
1065
1066 2009-08-27  Bruno Haible  <bruno@clisp.org>
1067
1068         Fix link error on Solaris.
1069         * tests/test-parse-duration.c (xstrdup): Remove function.
1070
1071 2009-08-26  Pádraig Brady  <P@draigbrady.com>
1072
1073         ignore-value: handle pointer types, too
1074         * lib/ignore-value.h (__attribute__): Remove definition.
1075         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
1076         of a more concise and more-often effective "(void) i" statement.
1077         (ignore_ptr): New function to suppress warnings from functions that
1078         return pointers, and to make it explicit that one function doesn't
1079         handle all cases.
1080
1081 2009-08-25  Bruno Haible  <bruno@clisp.org>
1082
1083         dup2: work around a Linux bug.
1084         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
1085         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
1086         * doc/posix-functions/dup2.texi: Mention the Linux bug.
1087         Reported by Simon Josefsson.
1088
1089 2009-08-25  Jim Meyering  <meyering@redhat.com>
1090
1091         libguestfs uses gnulib
1092         * users.txt: Add libguestfs.
1093
1094 2009-08-24  Eric Blake  <ebb9@byu.net>
1095
1096         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
1097         * lib/pipe2.c (includes): Add binary-io.h.
1098         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
1099
1100 2009-08-24  Bruno Haible  <bruno@clisp.org>
1101
1102         Tolerate declared but missing accept4 syscall.
1103         * lib/accept4.c (accept4): Invoke original accept4 function first, if
1104         available.
1105         * lib/sys_socket.in.h (accept4): If the function is already present,
1106         override it.
1107         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
1108         * modules/accept4 (Makefile.am): Compile accept4.c always.
1109         Reported by Paolo Bonzini and Eric Blake.
1110
1111 2009-08-23  Bruno Haible  <bruno@clisp.org>
1112
1113         New module 'accept4'.
1114         * lib/sys_socket.in.h (accept4): New declaration.
1115         * lib/accept4.c: New file.
1116         * m4/accept4.m4: New file.
1117         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
1118         GNULIB_ACCEPT4, HAVE_ACCEPT4.
1119         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
1120         HAVE_ACCEPT4.
1121         * modules/accept4: New file.
1122         * doc/glibc-functions/accept4.texi: Mention the new module.
1123
1124 2009-08-24  Jim Meyering  <meyering@redhat.com>
1125
1126         progname: also set global program_invocation_name, when possible
1127         Before this change, a libtool-enabled program that calls glibc's
1128         error function would report the program name as
1129         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
1130         * modules/progname (configure.ac): Check for a declaration of
1131         program_invocation_name.
1132         * lib/progname.c:  Include <errno.h>.
1133         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
1134         Set program_invocation_name.
1135
1136 2009-08-23  Bruno Haible  <bruno@clisp.org>
1137
1138         * lib/dup3.c: Include <string.h>.
1139
1140 2009-08-23  Bruno Haible  <bruno@clisp.org>
1141
1142         * lib/dup3.c (dup3): Test only once whether the system actually exists.
1143         * lib/pipe2.c (pipe2): Likewise.
1144         Suggested by Eric Blake.
1145
1146 2009-08-23  Bruno Haible  <bruno@clisp.org>
1147
1148         Tolerate declared but missing dup3 syscall.
1149         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
1150         * lib/unistd.in.h (dup3): If the function is already present,
1151         override it.
1152         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
1153         * modules/dup3 (Makefile.am): Compile dup3.c always.
1154         Reported by Paolo Bonzini.
1155
1156 2009-08-23  Bruno Haible  <bruno@clisp.org>
1157
1158         Tolerate declared but missing pipe2 syscall.
1159         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
1160         available.
1161         * lib/unistd.in.h (pipe2): If the function is already present,
1162         override it.
1163         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
1164         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
1165         Reported by Paolo Bonzini.
1166
1167 2009-08-23  Bruno Haible  <bruno@clisp.org>
1168
1169         * lib/pipe2.c (pipe2): Move #ifs inside function.
1170
1171 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
1172
1173         quotearg: document limitations of quote_these_too
1174         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
1175         those limitations are created.
1176         * lib/quotearg.h (set_char_quoting): Document that digits and
1177         letters that are special after backslash are not permitted.
1178         (quotearg_char): Cross-reference set_char_quoting documentation.
1179
1180 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
1181
1182         quotearg: implement custom_quoting_style
1183         * lib/quotearg.c: (struct quoting_options): Add left_quote and
1184         right_quote fields.
1185         (set_custom_quoting): New public function.
1186         (quotearg_buffer_restyled): Add left_quote and right_quote
1187         arguments, handle them very much like locale quoting, and update
1188         all uses.
1189         (quotearg_n_custom): New public function.
1190         (quotearg_n_custom_mem): New public function.
1191         (quotearg_custom): New public function.
1192         (quotearg_custom_mem): New public function.
1193         * lib/quotearg.h: Prototype and document new public functions.
1194         (enum quoting_style): For escape_quoting_style and
1195         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
1196         ignored even though they're otherwise like c_quoting_style.
1197         Add custom_quoting_style member and document with comparison to
1198         clocale_quoting_style.
1199         * tests/test-quotearg.c (custom_quotes): New array.
1200         (custom_results): New array.
1201         (main): Extend to test custom quoting.
1202
1203 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
1204
1205         quotearg: fix right quote escaping when it's in quote_these_too
1206         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
1207         quote, be sure to prepend only one backslash.
1208         * tests/test-quotearg.c (use_quote_double_quotes): New function.
1209         (main): Test it.
1210
1211 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
1212
1213         quotearg-tests: test escaping of embedded locale quotes
1214         * tests/test-quotearg.c (struct result_strings): Add member for
1215         new input.
1216         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
1217         (inputs): Add new input.
1218         (results_g): Add expected results.
1219         (flag_results): Likewise.
1220         (locale_results): Likewise.
1221         (compare_strings): Check those.
1222
1223 2009-08-23  Bruno Haible  <bruno@clisp.org>
1224
1225         Tests for module 'dup3'.
1226         * modules/dup3-tests: New file.
1227         * tests/test-dup3.c: New file.
1228
1229         New module 'dup3'.
1230         * lib/unistd.in.h (dup3): New declaration.
1231         * lib/dup3.c: New file.
1232         * m4/dup3.m4: New file.
1233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
1234         HAVE_DUP3.
1235         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
1236         * modules/dup3: New file.
1237         * doc/glibc-functions/dup3.texi: Mention the new module.
1238
1239 2009-08-23  Bruno Haible  <bruno@clisp.org>
1240
1241         Tweak the dup2 test.
1242         * tests/test-dup2.c (main): Create the test file empty. Verify that an
1243         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
1244         the test file is still empty. Fix argument order of lseek.
1245
1246 2009-08-23  Bruno Haible  <bruno@clisp.org>
1247
1248         Avoid test link errors when the modules getopt-gnu, gettext are used.
1249         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
1250         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1251
1252 2009-08-23  Bruno Haible  <bruno@clisp.org>
1253
1254         Fix getdtablesize() on mingw.
1255         * lib/getdtablesize.c (getdtablesize): Implement differently.
1256         * lib/unistd.in.h (getdtablesize): Improve comment.
1257
1258 2009-08-23  Bruno Haible  <bruno@clisp.org>
1259
1260         New module 'mkostemp'.
1261         Based on Ulrich Drepper's 2007-08-10 change in glibc.
1262         * lib/stdlib.in.h (mksotemp): New declaration.
1263         * lib/mkostemp.c: New file, from glibc with modifications.
1264         * lib/tempname.h (GT_FILE): Remove outdated comment.
1265         (gen_tempname): Add flags argument.
1266         * lib/tempname.c (__GT_BIGFILE): Remove macro.
1267         (__GT_FILE): Map to 1.
1268         (small_open, large_open): Remove macros.
1269         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
1270         * lib/mkstemp.c (mkstemp): Update.
1271         * lib/mkdtemp.c (mkdtemp): Likewise.
1272         * m4/mkostemp.m4: New file.
1273         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
1274         HAVE_MKOSTEMP.
1275         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
1276         HAVE_MKOSTEMP.
1277         * modules/mkostemp: New file, based on modules/mkstemp.
1278         * doc/glibc-functions/mkostemp.texi: Mention the new module.
1279         * NEWS: Mention the change.
1280
1281 2009-08-23  Bruno Haible  <bruno@clisp.org>
1282
1283         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
1284         Reported by Eric Blake.
1285
1286 2009-08-23  Bruno Haible  <bruno@clisp.org>
1287
1288         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
1289         Reported by Eric Blake.
1290
1291 2009-08-23  Bruno Haible  <bruno@clisp.org>
1292
1293         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
1294         * modules/pipe2 (Depends-on): Likewise.
1295
1296 2009-08-23  Eric Blake  <ebb9@byu.net>
1297
1298         fcntl-h: add O_TTY_INIT support
1299         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
1300         * tests/test-fcntl-h.c (o): Test it.
1301         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
1302
1303         fcntl-h: rename from fcntl, in preparation for fcntl(2)
1304         * modules/fcntl: Move <fcntl.h> header replacement...
1305         * modules/fcntl-h: ...to new name, so as not to collide with
1306         like-named function.
1307         * tests/test-fcntl.c: Rename...
1308         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
1309         * modules/fcntl-tests: Rename...
1310         * modules/fcntl-h-tests: ...to this.  Update test file name.
1311         * modules/chdir-long (Depends-on): Update clients.
1312         * modules/chdir-safer (Depends-on): Likewise.
1313         * modules/fcntl-safer (Depends-on): Likewise.
1314         * modules/fts (Depends-on): Likewise.
1315         * modules/mkancesdirs (Depends-on): Likewise.
1316         * modules/mkdir-p (Depends-on): Likewise.
1317         * modules/open (Depends-on): Likewise.
1318         * modules/savewd (Depends-on): Likewise.
1319         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
1320         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
1321
1322 2009-08-22  Bruno Haible  <bruno@clisp.org>
1323
1324         * modules/binary-io (License): Relicense under LGPL.
1325         * modules/pipe2 (License): Likewise.
1326
1327 2009-08-22  Bruno Haible  <bruno@clisp.org>
1328
1329         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
1330         return value.
1331         * lib/pipe-filter-gi.c (filter_init): Likewise.
1332         Reported by Eric Blake.
1333
1334 2009-08-22  Bruno Haible  <bruno@clisp.org>
1335
1336         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
1337         * modules/pipe (Depends-on): Add pipe2.
1338
1339 2009-08-22  Bruno Haible  <bruno@clisp.org>
1340
1341         Tests for module 'pipe2'.
1342         * modules/pipe2-tests: New file.
1343         * tests/test-pipe2.c: New file.
1344
1345         New module 'pipe2'.
1346         * lib/unistd.in.h (pipe2): New declaration.
1347         * lib/pipe2.c: New file.
1348         * m4/pipe2.m4: New file.
1349         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
1350         HAVE_PIPE2.
1351         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
1352         * modules/pipe2: New file.
1353         * doc/glibc-functions/pipe2.texi: Mention the new module.
1354
1355 2009-08-22  Bruno Haible  <bruno@clisp.org>
1356
1357         Reference some new glibc functions.
1358         * doc/glibc-functions/accept4.texi: New file.
1359         * doc/glibc-functions/dup3.texi: New file.
1360         * doc/glibc-functions/mkostemp.texi: New file.
1361         * doc/glibc-functions/pipe2.texi: New file.
1362         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
1363         (Glibc sys/socket.h): Refer to accept4.
1364         (Glibc unistd.h): Refer to dup3, pipe2.
1365         Reported by Eric Blake.
1366
1367 2009-08-22  Jim Meyering  <meyering@redhat.com>
1368             Bruno Haible  <bruno@clisp.org>
1369
1370         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
1371         This makes it so packages using automake-1.11's silent-rules option
1372         can print e.g., a single "GEN    configmake.h" line, rather than
1373         the 30+ statements that perform the job.  If you want to see the
1374         actual commands, you can still run "make V=1".
1375         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
1376         so that make output is abbreviated when those variables are defined
1377         appropriately.
1378         * modules/argz: Likewise.
1379         * modules/arpa_inet: Likewise.
1380         * modules/byteswap: Likewise.
1381         * modules/configmake: Likewise.
1382         * modules/dirent: Likewise.
1383         * modules/errno: Likewise.
1384         * modules/fcntl: Likewise.
1385         * modules/float: Likewise.
1386         * modules/fnmatch: Likewise.
1387         * modules/getopt-posix: Likewise.
1388         * modules/glob: Likewise.
1389         * modules/iconv_open: Likewise.
1390         * modules/inttypes: Likewise.
1391         * modules/localcharset: Likewise.
1392         * modules/locale: Likewise.
1393         * modules/math: Likewise.
1394         * modules/netdb: Likewise.
1395         * modules/netinet_in: Likewise.
1396         * modules/poll: Likewise.
1397         * modules/posix_spawnp-tests: Likewise.
1398         * modules/sched: Likewise.
1399         * modules/search: Likewise.
1400         * modules/selinux-h: Likewise.
1401         * modules/signal: Likewise.
1402         * modules/spawn: Likewise.
1403         * modules/stdarg: Likewise.
1404         * modules/stdbool: Likewise.
1405         * modules/stddef: Likewise.
1406         * modules/stdint: Likewise.
1407         * modules/stdio: Likewise.
1408         * modules/stdlib: Likewise.
1409         * modules/string: Likewise.
1410         * modules/strings: Likewise.
1411         * modules/sys_file: Likewise.
1412         * modules/sys_ioctl: Likewise.
1413         * modules/sys_select: Likewise.
1414         * modules/sys_socket: Likewise.
1415         * modules/sys_stat: Likewise.
1416         * modules/sys_time: Likewise.
1417         * modules/sys_times: Likewise.
1418         * modules/sys_utsname: Likewise.
1419         * modules/sys_wait: Likewise.
1420         * modules/sysexits: Likewise.
1421         * modules/time: Likewise.
1422         * modules/unistd: Likewise.
1423         * modules/wchar: Likewise.
1424         * modules/wctype: Likewise.
1425
1426 2009-08-22  Jim Meyering  <meyering@redhat.com>
1427
1428         announce-gen: detect write failure
1429         * build-aux/announce-gen: Add Coda at end.
1430         Remove equivalent-but-more-verbose block at top.
1431
1432 2009-08-19  Akim Demaille  <demaille@gostai.com>
1433
1434         bootstrap: --help to stdout.
1435         * bootstrap (usage): Don't send --help to stderr.
1436         Use a here doc instead of a long string.
1437
1438 2009-08-21  Eric Blake  <ebb9@byu.net>
1439
1440         test-popen-safer: split from test-popen
1441         * tests/test-popen.c (main): Move...
1442         * tests/test-popen.h: ...into new file.
1443         * tests/test-popen-safer2.c: New file.
1444         * modules/popen-tests (Files): Add test-popen.h.
1445         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
1446         Suggested by Bruno Haible.
1447
1448         test-fcntl-safer: split from test-open
1449         * tests/test-open.c (main): Move...
1450         * tests/test-open.h: ...into new file.
1451         * tests/test-fcntl-safer.c: New file.
1452         * modules/open-tests (Files): Add test-open.h.
1453         * modules/fcntl-safer-tests: New file.
1454         Suggested by Bruno Haible.
1455
1456         test-fopen-safer: split from test-fopen
1457         * tests/test-fopen.c (main): Move...
1458         * tests/test-fopen.h: ...into new file.
1459         * tests/test-fopen-safer.c: New file.
1460         * modules/fopen-tests (Files): Add test-fopen.h.
1461         * modules/fopen-safer-tests: New file.
1462         Suggested by Bruno Haible.
1463
1464 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
1465
1466         popen-safer: test O_CLOEXEC at run-time.
1467         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
1468
1469 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
1470
1471         fcntl: move more flags to the header
1472         * lib/cloexec.c: Do not define FD_CLOEXEC here.
1473         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
1474         * lib/fcntl.in.h: Do both things here.
1475
1476 2009-08-21  Jim Meyering  <meyering@redhat.com>
1477
1478         consistently remove $@-t before redirecting to it
1479         * modules/argz: Remove $@-t and $@ before redirecting to the former.
1480         * modules/alloca-opt: Likewise.
1481         * modules/byteswap: Likewise.
1482         * modules/fnmatch: Likewise.
1483         * modules/getopt-posix: Likewise.
1484         * modules/glob: Likewise.
1485         * modules/poll: Likewise.
1486         * modules/posix_spawnp-tests: Likewise.
1487         * modules/sys_socket: Likewise.
1488         * modules/sysexits: Likewise.
1489
1490 2009-08-21  Eric Blake  <ebb9@byu.net>
1491
1492         popen: simplify access to original popen
1493         * lib/popen.c (rpl_popen): No need to worry about popen being a
1494         macro.
1495         Reported by Bruno Haible.
1496
1497 2009-08-20  Eric Blake  <ebb9@byu.net>
1498
1499         build: avoid some compiler warnings
1500         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
1501         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
1502         type.
1503         (new_exclude_segment, excluded_file_pattern_p)
1504         (excluded_file_name_p): Reduce scope.
1505         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
1506         old-style declaration.
1507
1508 2009-08-20  Simon Josefsson  <simon@josefsson.org>
1509
1510         * tests/test-exclude1.sh: Handle Windows EOL.
1511         * tests/test-exclude2.sh: Likewise.
1512         * tests/test-exclude3.sh: Likewise.
1513         * tests/test-exclude4.sh: Likewise.
1514         * tests/test-exclude5.sh: Likewise.
1515         * tests/test-exclude6.sh: Likewise.
1516         * tests/test-exclude7.sh: Likewise.
1517
1518 2009-08-19  Akim Demaille  <demaille@gostai.com>
1519
1520         bootstrap: find sha1sum when named gsha1sum.
1521         * bootstrap (find_tool): New.
1522         ($SHA1SUM): New.
1523         Use it.
1524
1525 2009-08-20  Jim Meyering  <meyering@redhat.com>
1526
1527         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
1528         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
1529         expression that converts "." in a file name to "\." in the resulting
1530         regexp.  Start with a dummy statement, so that prior shell variable
1531         definitions are expanded portably.  Reported by Simon Josefsson.
1532
1533 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
1534
1535         Fix polling for writeability of a screen buffer.
1536         * lib/poll.c: Distinguish input and screen buffers for the
1537         Win32 implementation.
1538         * lib/select.c: Likewise.
1539
1540 2009-08-19  Eric Blake  <ebb9@byu.net>
1541
1542         popen-safer: prevent popen from clobbering std descriptors
1543         * modules/popen-safer: New file.
1544         * lib/popen-safer.c: Likewise.
1545         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
1546         * lib/stdio--.h (popen): Provide override.
1547         * lib/stdio-safer.h (popen_safer): Provide declaration.
1548         * tests/test-popen.c (includes): Partially test this.
1549         * modules/popen-safer-tests: New file, for more tests.
1550         * tests/test-popen-safer.c: Likewise.
1551         * MODULES.html.sh (file stream based Input/Output): Mention it.
1552
1553         tests: test some of the *-safer modules
1554         * modules/fopen-safer (Depends-on): Add fopen.
1555         * modules/fcntl-safer (Depends-on): Add fcntl.
1556         * modules/stdlib-safer (Depends-on): Add stdlib.
1557         (configure.ac): Set indicator.
1558         * modules/unistd-safer (configure.ac): Likewise.
1559         * modules/tmpfile-safer (configure.ac): Likewise.
1560         (Depends-on): Add tmpfile.
1561         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
1562         active.
1563         * tests/test-fopen.c (includes): Test safer versions when they are
1564         in use.
1565         * tests/test-open.c (includes): Likewise.
1566
1567         popen: fix cygwin 1.5 bug when stdin closed
1568         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
1569         * modules/popen: New file.
1570         * modules/popen-tests: Likewise.
1571         * tests/test-popen.c: Likewise.
1572         * m4/popen.m4: Likewise.
1573         * lib/popen.c: Likewise.
1574         * lib/stdio.in.h (popen): New declaration.
1575         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
1576         * modules/stdio (Makefile.am): Likewise.
1577         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
1578
1579 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
1580
1581         maint.mk: give full control over update-copyright exclusions
1582         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
1583         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
1584         (update-copyright): Don't force inclusion of top-level
1585         ChangeLog.  Don't force exclusion of all COPYING files, but make
1586         them the default exclusion instead.
1587
1588 2009-08-16  Bruno Haible  <bruno@clisp.org>
1589
1590         Fix test failures on Solaris 10.
1591         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
1592         tests when Solaris iconv() is used.
1593         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
1594         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
1595         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
1596         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
1597         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
1598
1599 2009-08-16  Bruno Haible  <bruno@clisp.org>
1600
1601         Fix test failures on Solaris 10.
1602         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
1603         'tr' program and pass it as first argument.
1604         * tests/test-pipe-filter-gi1.sh: Likewise.
1605         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
1606         program as first argument.
1607         * tests/test-pipe-filter-gi1.c (main): Likewise.
1608
1609 2009-08-16  Eric Blake  <ebb9@byu.net>
1610
1611         fpurge: fix previous commits
1612         * modules/fpurge (Makefile.am): Make replacement conditional,
1613         partially reverting 2007-04-29 change; missed in previous
1614         attempt.
1615         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
1616         is missing.
1617
1618 2009-08-16  Bruno Haible  <bruno@clisp.org>
1619
1620         Clarify fpurge's effect on the file position.
1621         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
1622         * tests/test-fpurge.c (main): Make a second pass for checking the file
1623         position.
1624
1625 2009-08-16  Bruno Haible  <bruno@clisp.org>
1626
1627         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
1628         declaration of fpurge is missing.
1629         * tests/test-fpurge.c (main): Check that the file has not more contents
1630         than expected. Close the file before removing it.
1631
1632 2009-08-15  Eric Blake  <ebb9@byu.net>
1633
1634         fpurge: don't wrap working cygwin implementation
1635         * lib/fpurge.c (fpurge): Fix comment typo.
1636         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
1637         1.7 to avoid replacement.
1638         * tests/test-fpurge.c (main): Enhance test.
1639
1640 2009-08-15  Eric Blake  <ebb9@byu.net>
1641         and Jim Meyering  <meyering@redhat.com>
1642
1643         test-update-copyright: skip if perl is insufficient
1644         * tests/test-update-copyright.sh: Failure to run maintainer tool
1645         should not cause testsuite failure on cygwin 1.5.
1646
1647 2009-08-14  Eric Blake  <ebb9@byu.net>
1648
1649         doc: mention more functions added in cygwin 1.7.0
1650         * doc/posix-headers/limits.texi (limits.h): Update for recent
1651         cygwin additions.
1652         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
1653         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
1654         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
1655         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
1656         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
1657
1658 2009-08-14  Eric Blake  <ebb9@byu.net>
1659
1660         maint.mk: simplify update-copyright rule
1661         * top/maint.mk (update-copyright-local): Delete, and document how
1662         to do it in cfg.mk instead.
1663         (update-copyright-exclude-regexp): Delete, and document how to do
1664         it in .x-update-copyright instead.
1665         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
1666         exclude ChangeLog.
1667
1668 2009-08-14  Bruno Haible  <bruno@clisp.org>
1669
1670         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
1671
1672 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
1673
1674         maint.mk: support update-copyright-env
1675         * top/maint.mk (update-copyright-env): Define place-holder.
1676         (update-copyright): Expand $(update-copyright-env) before
1677         invoking update-copyright.
1678
1679 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
1680
1681         update-copyright: implement forced reformatting
1682         * build-aux/update-copyright: Implement and document
1683         UPDATE_COPYRIGHT_FORCE.
1684         * tests/test-update-copyright.sh: Test it.
1685
1686 2009-08-14  Eric Blake  <ebb9@byu.net>
1687         and Bruno Haible  <bruno@clisp.org>
1688
1689         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
1690         * tests/test-locale.c: Revert previous patch related to NULL.
1691         * tests/test-stdio.c: Likewise.
1692         * tests/test-stdlib.c: Likewise.
1693         * tests/test-string.c: Likewise.
1694         * tests/test-unistd.c: Likewise.
1695         * modules/time-tests (Depends-on): Add verify.
1696         * modules/wchar-tests (Depends-on): Likewise.
1697         * tests/test-time.c: Test for NULL compliance.
1698         * tests/test-wchar.c: Likewise.
1699         * modules/locale (Depends-on): Add stddef.
1700         * modules/stdio (Depends-on): Likewise.
1701         * modules/stdlib (Depends-on): Likewise.
1702         * modules/string (Depends-on): Likewise.
1703         * modules/time (Depends-on): Likewise.
1704         * modules/unistd (Depends-on): Likewise.
1705         * modules/wchar (Depends-on): Likewise.
1706         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
1707         * lib/stdlib.in.h (includes): Likewise.
1708         * lib/string.in.h (includes): Likewise.
1709         * lib/time.in.h (includes): Likewise.
1710         * lib/unistd.in.h (includes): Likewise.
1711         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
1712         replaced.
1713         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
1714         * m4/stddef_h.m4: New file.
1715         * modules/stddef: Likewise.
1716         * lib/stddef.in.h: Likewise.
1717         * modules/stddef-tests: Likewise.
1718         * tests/test-stddef.c: Likewise.
1719         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
1720         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
1721         * doc/posix-headers/locale.texi (locale.h): Likewise.
1722         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
1723         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
1724         * doc/posix-headers/string.texi (string.h): Likewise.
1725         * doc/posix-headers/time.texi (time.h): Likewise.
1726         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
1727         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
1728
1729 2009-08-14  Eric Blake  <ebb9@byu.net>
1730
1731         doc: improve git diff of texinfo files
1732         * .gitattributes: Add rule for *.texi files, with hint on how to
1733         use it.
1734         Copied from m4, and based on a report by Bruno Haible.
1735
1736 2009-08-14  Bruno Haible  <bruno@clisp.org>
1737
1738         Disable multithread support by default on Cygwin 1.5.x for real.
1739         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
1740
1741 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
1742
1743         update-copyright: much ado about intervals
1744         * build-aux/update-copyright: Implement and document
1745         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
1746         of copyright year intervals.
1747         Also, document UPDATE_COPYRIGHT_YEAR.
1748         * tests/test-update-copyright.sh: Test it.
1749
1750         update-copyright: convert 2-digit to 4-digit years
1751         * build-aux/update-copyright: Implement and document.
1752         * tests/test-update-copyright.sh: Update.
1753
1754 2009-08-14  Jim Meyering  <meyering@redhat.com>
1755
1756         test-exclude: avoid coreutils "make check" failure
1757         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
1758         just as in test-argmatch.c.
1759
1760 2009-08-13  Eric Blake  <ebb9@byu.net>
1761
1762         test-dup2: fix bad assumption
1763         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
1764         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
1765
1766         test-version-etc: fix CRLF portability issue
1767         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
1768         recognize \r.
1769         * tests/test-argp-version-etc-1.sh: Likewise.
1770
1771         getopt: update client modules
1772         * modules/argp (Depends-on): Use getopt-gnu.
1773         * modules/git-merge-changelog (Depends-on): Likewise.
1774         * modules/long-options (Depends-on): Likewise.
1775         * modules/xstrtol (Depends-on): Likewise.
1776
1777 2009-08-13  Simon Josefsson  <simon@josefsson.org>
1778
1779         * tests/test-version-etc.sh: Don't fail on different
1780         project/version.  Don't fail on CRLF differences.  Rewrite to use
1781         multiple -e instead of multiple sed forks, suggested by Eric Blake
1782         <ebb9@byu.net>.
1783         * tests/test-argp-version-etc-1.sh: Likewise.
1784
1785 2009-08-13  Simon Josefsson  <simon@josefsson.org>
1786
1787         * tests/test-version-etc.sh: Don't fail on different
1788         project/version.
1789
1790 2009-08-12  Bruno Haible  <bruno@clisp.org>
1791
1792         Tests for modules 'getopt-posix', 'getopt-gnu'.
1793         * modules/getopt-posix-tests: New file.
1794         * tests/test-getopt.c: New file.
1795         * tests/test-getopt.h: New file.
1796         * tests/test-getopt_long.h: New file.
1797
1798         New modules 'getopt-posix', 'getopt-gnu'.
1799         * modules/getopt-gnu: New file, renamed from modules/getopt.
1800         * modules/getopt-posix: New file.
1801         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
1802         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
1803         (gl_GETOPT): Remove macro.
1804         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
1805         Disable the test against BSD systems that declare optreset. Test
1806         against mingw bug. Test against lack of support of optional arguments
1807         on many platforms.
1808         * doc/glibc-headers/getopt.texi: Update module name and list of
1809         relevant platforms.
1810         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
1811         'getopt-gnu' and more portability problems.
1812         * NEWS: Mention the changes.
1813
1814 2009-08-12  Bruno Haible  <bruno@clisp.org>
1815
1816         Ensure that optarg etc. get declared by <unistd.h>.
1817         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
1818         AC_USE_SYSTEM_EXTENSIONS.
1819         * modules/getopt (Depends-on): Add 'extensions'.
1820
1821 2009-08-12  Bruno Haible  <bruno@clisp.org>
1822
1823         Avoid test link errors.
1824         * modules/pipe-filter-ii-tests (Makefile.am): Define
1825         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
1826         * modules/pipe-filter-gi-tests (Makefile.am): Define
1827         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
1828         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1829
1830 2009-08-12  Bruno Haible  <bruno@clisp.org>
1831
1832         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
1833         gl_GETOPT_SUBSTITUTE before.
1834         (gl_GETOPT): Use it.
1835         * m4/argp.m4 (gl_ARGP): Update.
1836         Reported by Sergey Poznyakoff.
1837
1838         * m4/getopt.m4: Reorder macros.
1839         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
1840         (gl_GETOPT_SUBSTITUTE): Remove macro.
1841
1842 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
1843
1844         Minor improvement in gitlog-to-changelog
1845
1846         * build-aux/gitlog-to-changelog: New option `--format' makes
1847         output format string configurable.
1848
1849 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
1850
1851         Optimize exclude: use hash tables for non-wildcard patterns.
1852
1853         * lib/exclude.c: Include hash.h and mbuiter.h
1854         (struct exclude_pattern, exclude_segment): New data types.
1855         (struct exclude): Rewrite.
1856         (fnmatch_pattern_has_wildcards): New function.
1857         (new_exclude_segment, free_exclude_segment): New functions.
1858         (excluded_file_pattern_p, excluded_file_name_p): New functions.
1859         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
1860         * lib/exclude.h (is_fnmatch_pattern): New prototype.
1861         * modules/exclude: Depend on hash and mbuiter.
1862
1863         * modules/exclude-tests: New file.
1864         * tests/test-exclude.c: New file.
1865         * tests/test-exclude1.sh: New file.
1866         * tests/test-exclude2.sh: New file.
1867         * tests/test-exclude3.sh: New file.
1868         * tests/test-exclude4.sh: New file.
1869         * tests/test-exclude5.sh: New file.
1870         * tests/test-exclude6.sh: New file.
1871         * tests/test-exclude7.sh: New file.
1872
1873 2009-08-12  Bruno Haible  <bruno@clisp.org>
1874
1875         Ensure that getopt() gets declared by <unistd.h>.
1876         * lib/unistd.in.h: Conditionally include getopt.h.
1877         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
1878         Set GNULIB_UNISTD_H_GETOPT.
1879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1880         GNULIB_UNISTD_H_GETOPT.
1881         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
1882
1883 2009-08-12  Bruno Haible  <bruno@clisp.org>
1884
1885         Clarify logic.
1886         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
1887         gl_replace_getopt instead of GETOPT_H.
1888
1889 2009-08-12  Bruno Haible  <bruno@clisp.org>
1890
1891         * m4/getopt.m4: Add comments.
1892
1893 2009-08-12  Bruno Haible  <bruno@clisp.org>
1894
1895         Disable multithread support by default on Cygwin 1.5.x.
1896         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
1897         set gl_use_threads=no if not specified otherwise.
1898
1899 2009-08-11  Bruno Haible  <bruno@clisp.org>
1900
1901         Avoid compilation error on NetBSD 5.0.
1902         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
1903         * tests/test-stdio.c: Likewise.
1904         * tests/test-stdlib.c: Likewise.
1905         * tests/test-string.c: Likewise.
1906         * tests/test-unistd.c: Likewise.
1907         Reported by Greg Troxel <gdt@ir.bbn.com>
1908         at <https://savannah.gnu.org/support/?106973>.
1909
1910 2009-08-11  Bruno Haible  <bruno@clisp.org>
1911
1912         * modules/dup2-tests (Depends-on): Remove close.
1913
1914         Undo 2009-07-19 commit.
1915         * modules/acl-tests (Depends-on): Remove close.
1916         * modules/binary-io-tests (Depends-on): Likewise.
1917         * modules/closein-tests (Depends-on): Likewise.
1918         * modules/flock-tests (Depends-on): Likewise.
1919         * modules/fsync-tests (Depends-on): Likewise.
1920         * modules/lseek-tests (Depends-on): Likewise.
1921         * modules/pipe-tests (Depends-on): Likewise.
1922         * modules/posix_spawn-tests (Depends-on): Likewise.
1923         * modules/posix_spawnp-tests (Depends-on): Likewise.
1924         * modules/stat-time-tests (Depends-on): Likewise.
1925         * modules/yesno-tests (Depends-on): Likewise.
1926
1927 2009-08-10  Bruno Haible  <bruno@clisp.org>
1928
1929         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
1930
1931 2009-08-10  Bruno Haible  <bruno@clisp.org>
1932
1933         Fix a gcc warning.
1934         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
1935
1936 2009-08-10  Bruno Haible  <bruno@clisp.org>
1937
1938         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
1939         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
1940         not only the first time.
1941         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
1942         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
1943         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
1944         is 1, not only the the first time.
1945
1946 2009-08-10  Bruno Haible  <bruno@clisp.org>
1947
1948         Make it possible to use module 'gethostname' without module 'close'.
1949         * lib/unistd.in.h (close): Evoke a link error only if
1950         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
1951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1952         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
1953         * modules/unistd (Makefile.am): Substitute
1954         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
1955         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
1956         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
1957         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
1958         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
1959         * modules/sys_ioctl (Makefile.am): Substitute
1960         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
1961         * modules/socket (configure.ac): On native Windows, set
1962         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
1963         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
1964         Reported by Sam Steingold <sds@gnu.org>.
1965
1966 2009-08-10  Bruno Haible  <bruno@clisp.org>
1967
1968         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
1969         * modules/ioctl (configure.ac): Likewise.
1970
1971 2009-08-10  Bruno Haible  <bruno@clisp.org>
1972
1973         Avoid collision between gnulib wrapper and libintl wrapper.
1974         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
1975         already defined in intl/printf.c.
1976         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
1977         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
1978
1979 2009-08-09  Bruno Haible  <bruno@clisp.org>
1980
1981         Make <sys/select.h> really self-contained, also on Solaris 10.
1982         * lib/sys_select.in.h: Include <string.h>.
1983         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
1984         Solaris 10 problem.
1985         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
1986         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
1987         Reported by Jim Meyering.
1988
1989 2009-08-09  Bruno Haible  <bruno@clisp.org>
1990
1991         Avoid warnings from 'aclocal' that are due to a use of macro name
1992         AM_XGETTEXT_OPTION that is not defined in automake.
1993         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
1994         automake.
1995         * modules/error (configure.ac): Likewise.
1996         * modules/propername (configure.ac): Likewise.
1997         * modules/vasprintf (configure.ac): Likewise.
1998         * modules/verror (configure.ac): Likewise.
1999         * modules/xprintf (configure.ac): Likewise.
2000         * modules/xvasprintf (configure.ac): Likewise.
2001
2002 2009-08-08  Bruno Haible  <bruno@clisp.org>
2003
2004         Avoid compilation error in C++ mode.
2005         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
2006         Reported by Sam Steingold <sds@gnu.org>.
2007
2008 2009-08-08  Bruno Haible  <bruno@clisp.org>
2009
2010         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
2011         for the various Unix platforms.
2012         * doc/posix-headers/limits.texi: Update platforms list regarding
2013         HOST_NAME_MAX.
2014         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2015
2016 2009-08-07  Jim Meyering  <meyering@redhat.com>
2017
2018         selinux-at: fix typo in a comment
2019         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
2020         Spotted by Paolo Bonzini.
2021
2022         selinux-at: remove redundant m4 code, add documentation
2023         * modules/selinux-at (configure.ac): Remove redundant code.
2024         LIB_SELINUX is already set via the dependent module, selinux-h.
2025         (Include): Add quotes around selinux-at.h.
2026         * lib/selinux-at.h: Add documentation.
2027         Reported by Bruno Haible in
2028         http://marc.info/?l=gnulib-bug&m=124958988300749
2029
2030 2009-08-07  Bruno Haible  <bruno@clisp.org>
2031
2032         Avoid link error on MacOS X 10.3 and 10.4.
2033         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
2034         on non-ELF systems.
2035         * lib/argp-pv.c (argp_program_version): Likewise.
2036         Reported by Simon Josefsson.
2037
2038 2009-08-07  Simon Josefsson  <simon@josefsson.org>
2039
2040         * tests/test-version-etc.sh: Use $EXEEXT.
2041
2042 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
2043
2044         update-copyright: update documentation to point to maint.mk
2045         * build-aux/update-copyright: Here.
2046
2047 2009-08-06  Jim Meyering  <meyering@redhat.com>
2048
2049         maint.mk: support update-copyright-local
2050         * top/maint.mk (update-copyright-local): Define place-holder.
2051         (update-copyright): Depend on $(update-copyright-local).
2052
2053 2009-08-06  Jim Meyering  <meyering@redhat.com>
2054
2055         selinux-at: new module
2056         Initially written for coreutils, this module will soon be
2057         used by findutils, too.
2058         * MODULES.html.sh [Misc]: Add selinux-at.
2059         * lib/selinux-at.h: New file, from coreutils.
2060         * lib/selinux-at.c: Likewise.
2061         * modules/selinux-at: Likewise.
2062         (License): Change from LGPL to GPL, since it depends
2063         on the GPL'd openat module.
2064
2065         doc: update README
2066         * README: Remove references to cogito.
2067         Remove cvs-repo-updating instructions from 2007.
2068         Don't imply that CVS is better if you have limited disk space.
2069
2070 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
2071
2072         update-copyright: support C-style comments
2073         * build-aux/update-copyright: Implement and document.
2074         * tests/test-update-copyright.sh: Test.
2075
2076 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
2077
2078         update-copyright: support omitted "(C)"
2079         * build-aux/update-copyright: Implement and document.  Also,
2080         allow variable whitespace before "(C)".
2081         * tests/test-update-copyright.sh: Test.
2082
2083 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
2084
2085         update-copyright: don't trip on non-FSF copyright statements
2086         * build-aux/update-copyright: Fix so that the first correctly
2087         formatted FSF copyright statement is recognized no matter what
2088         appears before it.  Update documentation.
2089         * tests/test-update-copyright.sh: Test that.
2090
2091 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
2092
2093         update-copyright: clean up code a little
2094         * build-aux/update-copyright: Append "_re" to the name of any
2095         variable holding a regular expression.
2096         Replace "old" and "new" with "stmt" in variable names.
2097         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
2098         handled correctly.
2099         Format code more consistently.
2100
2101 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
2102
2103         update-copyright-tests: improve portability
2104         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
2105         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
2106
2107 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
2108
2109         update-copyright: support @copyright{} and &copy;
2110         * build-aux/update-copyright: Implement and document.
2111         * tests/test-update-copyright.sh: Test.
2112
2113 2009-08-04  Jim Meyering  <meyering@redhat.com>
2114
2115         update-copyright-tests: correctly test EOL=\r\n handling
2116         * tests/test-update-copyright.sh: Put \r at the end of some lines
2117         for the dos-eol tests.  Based on a patch by Joel E. Denny.
2118
2119         maint.mk: make update-copyright exclusion list more configurable
2120         * top/maint.mk (update-copyright): Default to excluding COPYING,
2121         but allow an override, in case someone does want to update that file.
2122
2123         maint.mk: don't update copyright date in COPYING
2124         * top/maint.mk (update-copyright): Exclude COPYING.
2125
2126         maint.mk: add a copyright-updating rule
2127         * top/maint.mk (update-copyright): New rule.
2128         Derived from coreutils/Makefile.am.
2129
2130         update-copyright: rename some variables
2131         * build-aux/update-copyright: Rename a few variables for clarity.
2132         Tweak syntax.  List Joel E. Denny as coauthor.
2133
2134 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
2135
2136         update-copyright: fix bug for 2-digit last year and add tests
2137         * build-aux/update-copyright: Fix bug.
2138         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
2139         specified.
2140         * modules/update-copyright-tests: New
2141         * tests/test-update-copyright.sh: New.
2142
2143 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
2144
2145         update-copyright: handle leading tabs in line prefix
2146         * build-aux/update-copyright: Count leading tabs as 8 spaces
2147         when computing margin.  This helps with the formatting of
2148         ChangeLogs, for example.
2149         Fix documentation a little.
2150
2151 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
2152
2153         update-copyright: support EOL=\r\n
2154         * build-aux/update-copyright: Implement that.
2155
2156 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
2157
2158         update-copyright: automatically format copyright statements
2159         * build-aux/update-copyright: Implement that.
2160         Also, be a little more predictable and safer by always failing
2161         when the full copyright format is not perfectly recognized as an
2162         unbroken whole.  Discussed at
2163         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
2164         Rewrite documentation.
2165
2166 2009-08-03  Bruno Haible  <bruno@clisp.org>
2167
2168         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
2169
2170 2009-08-02  Bruno Haible  <bruno@clisp.org>
2171
2172         Tests for module 'uname'.
2173         * modules/uname-tests: New file.
2174         * tests/test-uname.c: New file.
2175
2176         New module 'uname'.
2177         * lib/uname.c: New file.
2178         * m4/uname.m4: New file.
2179         * modules/uname: New file.
2180         * doc/posix-functions/uname.texi: Mention the new module.
2181
2182 2009-08-02  Bruno Haible  <bruno@clisp.org>
2183
2184         Tests for module 'sys_utsname'.
2185         * modules/sys_utsname-tests: New file.
2186         * tests/test-sys_utsname.c: New file.
2187
2188         New module 'sys_utsname'.
2189         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
2190         * m4/sys_utsname_h.m4: New file.
2191         * modules/sys_utsname: New file.
2192         * doc/posix-headers/sys_utsname.texi: Mention the new module.
2193
2194 2009-08-02  Bruno Haible  <bruno@clisp.org>
2195
2196         Implicitly initialize the sockets library.
2197         * lib/gethostname.c: Include sockets.h.
2198         (rpl_gethostname): Invoke gl_sockets_startup.
2199         * lib/socket.c: Include sockets.h.
2200         (rpl_socket): Invoke gl_sockets_startup.
2201         * modules/gethostname (Depends-on): Add sockets.
2202         * modules/socket (Depends-on): Likewise.
2203         * tests/test-poll.c: Don't include sockets.h.
2204         (main): Don't invoke gl_sockets_startup.
2205         * tests/test-select.c: Don't include sockets.h.
2206         (main): Don't invoke gl_sockets_startup.
2207
2208 2009-08-02  Bruno Haible  <bruno@clisp.org>
2209
2210         Allow multiple calls to gl_sockets_startup.
2211         * lib/sockets.c (initialized_sockets_version): New variable.
2212         (gl_sockets_startup): Do nothing if already called for this or a higher
2213         version.
2214         (gl_sockets_cleanup): Reset initialized_sockets_version.
2215
2216 2009-08-03  Simon Josefsson  <simon@josefsson.org>
2217
2218         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
2219         different project/version.
2220
2221 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
2222             Bruno Haible  <bruno@clisp.org>
2223
2224         Tests for module 'pipe-filter-gi'.
2225         * modules/pipe-filter-gi-tests: New file.
2226         * tests/test-pipe-filter-gi1.sh: New file.
2227         * tests/test-pipe-filter-gi1.c: New file.
2228         * tests/test-pipe-filter-gi2.sh: New file.
2229         * tests/test-pipe-filter-gi2-main.c: New file.
2230         * tests/test-pipe-filter-gi2-child.c: New file.
2231
2232         New module 'pipe-filter-gi'.
2233         * lib/pipe-filter-gi.c: New file.
2234         * modules/pipe-filter-gi: New file.
2235
2236 2009-08-02  Bruno Haible  <bruno@clisp.org>
2237             Paolo Bonzini  <bonzini@gnu.org>
2238
2239         Tests for module 'pipe-filter-ii'.
2240         * modules/pipe-filter-ii-tests: New file.
2241         * tests/test-pipe-filter-ii1.sh: New file.
2242         * tests/test-pipe-filter-ii1.c: New file.
2243         * tests/test-pipe-filter-ii2.sh: New file.
2244         * tests/test-pipe-filter-ii2-main.c: New file.
2245         * tests/test-pipe-filter-ii2-child.c: New file.
2246
2247         New module 'pipe-filter-ii'.
2248         * lib/pipe-filter.h: New file.
2249         * lib/pipe-filter-ii.c: New file.
2250         * lib/pipe-filter-aux.h: New file.
2251         * modules/pipe-filter-ii: New file.
2252
2253 2009-08-02  Simon Josefsson  <simon@josefsson.org>
2254
2255         * lib/gc-libgcrypt.c: Change copyright to FSF.
2256         * lib/gc-gnulib.c: Likewise.
2257
2258 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
2259
2260         * lib/gethostname.c: Include limits.h.
2261
2262 2009-08-02  Simon Josefsson  <simon@josefsson.org>
2263             Bruno Haible  <bruno@clisp.org>
2264
2265         Ensure HOST_NAME_MAX as part of the gethostname module.
2266         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
2267         define also HOST_NAME_MAX.
2268         * tests/test-gethostname.c: Include <limits.h>.
2269         (main): Check also HOST_NAME_MAX.
2270         * doc/posix-headers/limits.texi: Document the mingw problem.
2271
2272 2009-08-02  Bruno Haible  <bruno@clisp.org>
2273
2274         * lib/gethostname.c (gethostname): Fix handling of large len argument.
2275         Add comments.
2276
2277 2009-03-31  Simon Josefsson  <simon@josefsson.org>
2278
2279         * lib/gethostname.c: Add Windows wrapper.
2280         * m4/gethostname.m4: Look for gethostname in -lws2_32.
2281         * modules/gethostname: Depend on sys_socket & errno, for also
2282         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
2283         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
2284
2285 2009-07-31  Jim Meyering  <meyering@redhat.com>
2286
2287         getloadavg: fix symbol name in comment
2288         * lib/getloadavg.c: Correct a typo I introduced when adding
2289         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
2290         Matt Kraai spotted the problem.
2291
2292 2009-07-29  Matt Kraai  <mkraai@beckman.com>
2293
2294         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
2295         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
2296         code also if ! defined N_NAME_POINTER.
2297         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
2298         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
2299         but the n_name member is a 12-byte array.
2300
2301 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
2302
2303         update-copyright: generalize comment handling
2304         * build-aux/update-copyright: Handle copyright statements
2305         within more comment styles.
2306         Document usage.
2307         Report any file with an external copyright holder or parse failure.
2308
2309 2009-07-29  Jim Meyering  <meyering@redhat.com>
2310
2311         mktime: correct setting of REPLACE_MKTIME
2312         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
2313
2314         update-copyright: new module
2315         * modules/update-copyright: New file.
2316         * build-aux/update-copyright: New file.
2317         * MODULES.html.sh (maint+release support): Add update-copyright.
2318
2319 2009-07-27  Bruno Haible  <bruno@clisp.org>
2320
2321         Fix compilation error when <ctime> is used and mktime is replaced.
2322         * lib/time.in.h (mktime): New declaration.
2323         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
2324         REPLACE_MKTIME instead of defining mktime in config.h.
2325         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
2326         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
2327         Reported by Ross McFarland <rwmcfa1@neces.com>.
2328
2329 2009-07-27  Bruno Haible  <bruno@clisp.org>
2330
2331         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
2332         Reported by Matt Kraai <mkraai@beckman.com>.
2333
2334 2009-07-25  Jim Meyering  <meyering@redhat.com>
2335
2336         maint.mk: avoid warnings about missing files
2337         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
2338         diagnostic when .prev-version does not exist.
2339         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
2340         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
2341         nonexistent cfg.mk.
2342         Suggestions from Simon Josefsson.
2343
2344 2009-07-25  Bruno Haible  <bruno@clisp.org>
2345
2346         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
2347         defined as macros. Needed on QNX 6.4.1.
2348         Reported by Matt Kraai <mkraai@beckman.com>.
2349
2350 2009-07-23  Jim Meyering  <meyering@redhat.com>
2351
2352         maint.mk: invoke "make dist" with a working value of XZ_OPT
2353         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
2354
2355 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
2356
2357         Make fseeko.c compile on QNX.
2358         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
2359
2360 2009-07-22  Peter Simons  <simons@cryp.to>
2361
2362         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
2363         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
2364         * lib/md4.h: Likewise.
2365         * lib/md5.h: Likewise.
2366         * lib/sha1.h: Likewise.
2367         * lib/sha256.h: Likewise.
2368         * lib/sha512.h: Likewise.
2369
2370         tests-sha1: don't assign literal string to 'char *' variable
2371         * tests/test-sha1.c (main): Declare locals with "const" to match
2372         attributes of the right hand side.
2373
2374 2009-07-21  Eric Blake  <ebb9@byu.net>
2375
2376         dup2: fix more mingw problems
2377         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
2378         fd to itself.
2379         * doc/posix-functions/dup2.texi (dup2): Document the bug.
2380         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
2381         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
2382         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
2383         care of mingw bugs.
2384
2385 2009-07-21  Jim Meyering  <meyering@redhat.com>
2386
2387         vc-list-files: avoid failure when /bin/sh is dash
2388         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
2389         On some Debian based systems, /bin/sh is a symlink to dash, and running
2390         this command would omit the "/" following each 'tests' prefix:
2391           dash -x build-aux/vc-list-files -C . tests
2392         That is because bash and dash work differently:
2393           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
2394           bash ok
2395           dash odd
2396
2397 2009-07-21  Eric Blake  <ebb9@byu.net>
2398
2399         dup2-tests: test previous patch
2400         * modules/dup2-tests: New file.
2401         * tests/test-dup2.c: Likewise.
2402         * tests/test-open.c (main): Avoid unspecified behavior.
2403         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
2404         test.
2405
2406         dup2: work around mingw and cygwin 1.5 bug
2407         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
2408         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
2409         * modules/unistd (Makefile.am): Substitute it.
2410         * lib/unistd.in.h (dup2): Declare the replacement.
2411         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
2412         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
2413         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
2414         * modules/execute (Depends-on): Add dup2.
2415         * modules/fseterr (Depends-on): Likewise.
2416         * modules/pipe (Depends-on): Likewise.
2417         * modules/posix_spawn-internal (Depends-on): Likewise.
2418
2419 2009-07-21  Bruno Haible  <bruno@clisp.org>
2420
2421         * modules/.gitattributes: New file.
2422
2423 2009-07-20  Bruno Haible  <bruno@clisp.org>
2424
2425         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
2426         (main): Use it.
2427
2428 2009-07-20  Eric Blake  <ebb9@byu.net>
2429
2430         test-pipe: make a bit more robust.
2431         * tests/test-pipe.c (myerr): Allow error messages regardless of
2432         what we do to stderr.
2433         (test_pipe): Rearrange to avoid deadlock.
2434         (child_main): Try a larger read, to ensure we avoided deadlock.
2435         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
2436         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
2437         if misused.
2438
2439 2009-07-19  Jim Meyering  <meyering@redhat.com>
2440
2441         fts: avoid false-positive cycle-detection
2442         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
2443         for each new command line argument.
2444
2445 2009-07-19  Bruno Haible  <bruno@clisp.org>
2446
2447         Fix build error on mingw with the modules sys_select and unistd.
2448         * modules/acl-tests (Depends-on): Add close.
2449         * modules/binary-io-tests (Depends-on): Likewise.
2450         * modules/closein-tests (Depends-on): Likewise.
2451         * modules/flock-tests (Depends-on): Likewise.
2452         * modules/fsync-tests (Depends-on): Likewise.
2453         * modules/lseek-tests (Depends-on): Likewise.
2454         * modules/pipe-tests (Depends-on): Likewise.
2455         * modules/posix_spawn-tests (Depends-on): Likewise.
2456         * modules/posix_spawnp-tests (Depends-on): Likewise.
2457         * modules/stat-time-tests (Depends-on): Likewise.
2458         * modules/yesno-tests (Depends-on): Likewise.
2459
2460 2009-07-19  Bruno Haible  <bruno@clisp.org>
2461
2462         Unify conditionals.
2463         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
2464         macros, not at the compiler macros.
2465         * lib/pipe.c: Likewise.
2466         * lib/execute.c: Likewise.
2467         * lib/spawni.c: Likewise.
2468
2469 2009-07-19  Bruno Haible  <bruno@clisp.org>
2470
2471         Fix handling of closed stdin/stdout/stderr on mingw.
2472         * lib/w32spawn.h: Include unistd.h.
2473         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
2474         file descriptor with O_NOINHERIT flag.
2475         (fd_safer_noinherit): New function, based on fd-safer.c.
2476         (dup_safer_noinherit): New function, based on dup-safer.c.
2477         (undup_safer_noinherit): New function.
2478         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
2479         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
2480         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
2481         instead of fd_safer.
2482         * tests/test-pipe.c: Include <windows.h>.
2483         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
2484
2485         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
2486         from main.
2487         (test_pipe): Pass an extra argument for disambiguation.
2488         (main): Invoke parent_main or child_main.
2489
2490         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
2491         consistently.
2492
2493 2009-07-18  Eric Blake  <ebb9@byu.net>
2494
2495         test-pipe: fix mingw build
2496         * tests/test-pipe.c (main): Avoid fcntl on mingw.
2497
2498 2009-07-18  Bruno Haible  <bruno@clisp.org>
2499
2500         * modules/pipe-tests (Makefile.am): Fix typo.
2501
2502 2009-07-18  Eric Blake  <ebb9@byu.net>
2503
2504         error: fix mingw build
2505         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
2506         Reported by Bruno Haible.
2507
2508         error: avoid undefined use of stdout
2509         * lib/error.c (error, error_at_line): Check that fd 1 is open
2510         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
2511         is handling faults and the close_stdout module wants to report the
2512         detection of closed stdout as an error.
2513
2514 2009-07-17  Eric Blake  <ebb9@byu.net>
2515
2516         pipe: be robust in face of closed fds
2517         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
2518         should cause child to misbehave.
2519         * modules/pipe-tests: New module.
2520         * tests/test-pipe.c: New file.
2521         * tests/test-pipe.sh: New file.
2522         Reported by Akim Demaille.
2523
2524 2009-07-14  Bruno Haible  <bruno@clisp.org>
2525
2526         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
2527         Reported by anonymous kc.
2528
2529 2009-07-07  Jim Meyering  <meyering@redhat.com>
2530
2531         maint.mk: don't look for translatable strings in *.m4 or *.mk
2532         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
2533         when searching for translatable strings.
2534
2535 2009-07-05  Jim Meyering  <meyering@redhat.com>
2536
2537         remove superfluous parentheses in STREQ definition
2538         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
2539         * lib/getugroups.c (STREQ): Likewise.
2540         * lib/fnmatch.c (STREQ): Likewise.
2541         Spotted by Bruno Haible.
2542
2543 2009-07-04  Jim Meyering  <meyering@redhat.com>
2544
2545         argv-iter: new module
2546         * MODULES.html.sh: Add argv-iter.
2547         * lib/argv-iter.c, lib/argv-iter.h: New files.
2548         * modules/argv-iter: New file.
2549         * modules/argv-iter-tests: New file.
2550         * tests/test-argv-iter.c: Test it.
2551
2552 2009-07-04  Bruno Haible  <bruno@clisp.org>
2553
2554         Fix assertion.
2555         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
2556         contains more exact copies of a given entry than file2, leave the extra
2557         copies unpaired rather than aborting.
2558         Reported by Eric Blake.
2559
2560 2009-07-02  Bruno Haible  <bruno@clisp.org>
2561
2562         Speedup git-merge-changelog for git cherry-pick.
2563         * lib/git-merge-changelog.c (struct entries_mapping): New type.
2564         (entries_mapping_get): New function, extracted from compute_mapping.
2565         (entries_mapping_reverse_get): New function.
2566         (compute_mapping): Add a 'full' argument. Return the result in a
2567         'struct entries_mapping'.
2568         (main): Update. Access the mappings through entries_mapping_get.
2569         Reported by Eric Blake.
2570
2571 2009-07-02  Bruno Haible  <bruno@clisp.org>
2572
2573         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
2574         best_i.
2575
2576 2009-07-02  Bruno Haible  <bruno@clisp.org>
2577
2578         Speed up approximate search for matching ChangeLog entries.
2579         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
2580         argument. Call fstrcmp_bounded instead of fstrcmp.
2581         (compute_mapping, try_split_merged_entry, main): Update callers.
2582
2583 2009-07-02  Bruno Haible  <bruno@clisp.org>
2584
2585         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
2586
2587 2009-06-30  Bruno Haible  <bruno@clisp.org>
2588
2589         Reduce the number of uc_is_cased calls.
2590         * lib/unicase.h (casing_suffix_context_t): Add
2591         'first_char_except_ignorable' field.
2592         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
2593         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
2594         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
2595         Update initializer.
2596         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
2597         case-ignorable characters.
2598         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
2599         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
2600         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
2601         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
2602         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
2603
2604 2009-06-30  Bruno Haible  <bruno@clisp.org>
2605
2606         Tests for module 'unicase/ignorable'.
2607         * modules/unicase/ignorable-tests: New file.
2608         * tests/unicase/test-ignorable.c: New file, generated by
2609         gen-uni-tables.
2610
2611         Tests for module 'unicase/cased'.
2612         * modules/unicase/cased-tests: New file.
2613         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
2614         * tests/unicase/test-predicate-part1.h: New file, derived from
2615         tests/unictype/test-predicate-part1.h.
2616         * tests/unicase/test-predicate-part2.h: New file, same as
2617         tests/unictype/test-predicate-part2.h.
2618
2619         Fix evaluation of "Before C" condition of FINAL_SIGMA.
2620         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
2621         (output_casing_properties): New function.
2622         (main): Call it.
2623         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
2624         * lib/unicase/cased.c: Include unictype/bitmap.h.
2625         (uc_is_cased): Define through a bitmap lookup.
2626         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
2627         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
2628         (uc_is_case_ignorable): Define through a bitmap lookup.
2629         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
2630         lib/unictype/bitmap.h.
2631         (Depends-on): Add inline. Clean up.
2632         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
2633         lib/unictype/bitmap.h.
2634         (Depends-on): Add inline. Clean up.
2635         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
2636         recognition.
2637         * tests/unicase/test-u16-tolower.c (main): Likewise.
2638         * tests/unicase/test-u32-tolower.c (main): Likewise.
2639
2640 2009-06-30  Bruno Haible  <bruno@clisp.org>
2641
2642         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
2643         * lib/unicase/u16-casemap.c: Likewise.
2644         * lib/unicase/u32-casemap.c: Likewise.
2645
2646 2009-06-29  Bruno Haible  <bruno@clisp.org>
2647
2648         Define u32_casefold as a wrapper around u32_ct_casefold.
2649         * lib/unicase/u32-casefold.c: Update.
2650         * modules/unicase/u32-casefold (Depends-on): Add
2651         unicase/u32-ct-casefold, unicase/empty-prefix-context,
2652         unicase/empty-suffix-context. Clean up.
2653
2654         Define u16_casefold as a wrapper around u16_ct_casefold.
2655         * lib/unicase/u16-casefold.c: Update.
2656         * modules/unicase/u16-casefold (Depends-on): Add
2657         unicase/u16-ct-casefold, unicase/empty-prefix-context,
2658         unicase/empty-suffix-context. Clean up.
2659
2660         Define u8_casefold as a wrapper around u8_ct_casefold.
2661         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
2662         * lib/unicase/u8-casefold.c: Update.
2663         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
2664         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
2665
2666         Define u32_totitle as a wrapper around u32_ct_totitle.
2667         * lib/unicase/u32-totitle.c: Update.
2668         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
2669         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
2670
2671         Define u16_totitle as a wrapper around u16_ct_totitle.
2672         * lib/unicase/u16-totitle.c: Update.
2673         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
2674         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
2675
2676         Define u8_totitle as a wrapper around u8_ct_totitle.
2677         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
2678         functions.
2679         (FUNC): Delegate to U_CT_TOTITLE.
2680         * lib/unicase/u8-totitle.c: Update.
2681         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
2682         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
2683
2684         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
2685         invocation.
2686         * modules/unicase/u32-tolower (Depends-on): Add
2687         unicase/empty-prefix-context, unicase/empty-suffix-context.
2688
2689         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
2690         invocation.
2691         * modules/unicase/u16-tolower (Depends-on): Add
2692         unicase/empty-prefix-context, unicase/empty-suffix-context.
2693
2694         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
2695         * modules/unicase/u8-tolower (Depends-on): Add
2696         unicase/empty-prefix-context, unicase/empty-suffix-context.
2697
2698         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
2699         invocation.
2700         * modules/unicase/u32-toupper (Depends-on): Add
2701         unicase/empty-prefix-context, unicase/empty-suffix-context.
2702
2703         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
2704         invocation.
2705         * modules/unicase/u16-toupper (Depends-on): Add
2706         unicase/empty-prefix-context, unicase/empty-suffix-context.
2707
2708         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
2709         * modules/unicase/u8-toupper (Depends-on): Add
2710         unicase/empty-prefix-context, unicase/empty-suffix-context.
2711
2712         New module 'unicase/u32-ct-casefold'.
2713         * lib/unicase/u32-ct-casefold.c: New file.
2714         * modules/unicase/u32-ct-casefold: New file.
2715
2716         New module 'unicase/u16-ct-casefold'.
2717         * lib/unicase/u16-ct-casefold.c: New file.
2718         * modules/unicase/u16-ct-casefold: New file.
2719
2720         New module 'unicase/u8-ct-casefold'.
2721         * lib/unicase/u8-ct-casefold.c: New file.
2722         * lib/unicase/u-ct-casefold.h: New file, derived from
2723         lib/unicase/u-casefold.h.
2724         * modules/unicase/u8-ct-casefold: New file.
2725
2726         New module 'unicase/u32-ct-totitle'.
2727         * lib/unicase/u32-ct-totitle.c: New file.
2728         * modules/unicase/u32-ct-totitle: New file.
2729
2730         New module 'unicase/u16-ct-totitle'.
2731         * lib/unicase/u16-ct-totitle.c: New file.
2732         * modules/unicase/u16-ct-totitle: New file.
2733
2734         New module 'unicase/u8-ct-totitle'.
2735         * lib/unicase/u8-ct-totitle.c: New file.
2736         * lib/unicase/u-ct-totitle.h: New file, derived from
2737         lib/unicase/u-totitle.h.
2738         * modules/unicase/u8-ct-totitle: New file.
2739
2740         New module 'unicase/u32-ct-tolower'.
2741         * lib/unicase/u32-ct-tolower.c: New file.
2742         * modules/unicase/u32-ct-tolower: New file.
2743
2744         New module 'unicase/u16-ct-tolower'.
2745         * lib/unicase/u16-ct-tolower.c: New file.
2746         * modules/unicase/u16-ct-tolower: New file.
2747
2748         New module 'unicase/u8-ct-tolower'.
2749         * lib/unicase/u8-ct-tolower.c: New file.
2750         * modules/unicase/u8-ct-tolower: New file.
2751
2752         New module 'unicase/u32-ct-toupper'.
2753         * lib/unicase/u32-ct-toupper.c: New file.
2754         * modules/unicase/u32-ct-toupper: New file.
2755
2756         New module 'unicase/u16-ct-toupper'.
2757         * lib/unicase/u16-ct-toupper.c: New file.
2758         * modules/unicase/u16-ct-toupper: New file.
2759
2760         New module 'unicase/u8-ct-toupper'.
2761         * lib/unicase/u8-ct-toupper.c: New file.
2762         * modules/unicase/u8-ct-toupper: New file.
2763
2764         Add context arguments to u*_casemap functions.
2765         * lib/unicase/unicasemap.h: Include unicase.h.
2766         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
2767         suffix_context arguments.
2768         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
2769         functions.
2770         (FUNC): Add prefix_context and suffix_context arguments. Use
2771         uc_is_cased and uc_is_case_ignorable.
2772         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
2773         * lib/unicase/u16-casemap.c: Likewise.
2774         * lib/unicase/u32-casemap.c: Likewise.
2775         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
2776         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
2777         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
2778         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
2779         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
2780         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
2781
2782         New module 'unicase/u32-suffix-context'.
2783         * lib/unicase/u32-suffix-context.c: New file.
2784         * modules/unicase/u32-suffix-context: New file.
2785
2786         New module 'unicase/u16-suffix-context'.
2787         * lib/unicase/u16-suffix-context.c: New file.
2788         * modules/unicase/u16-suffix-context: New file.
2789
2790         New module 'unicase/u8-suffix-context'.
2791         * lib/unicase/u8-suffix-context.c: New file.
2792         * lib/unicase/u-suffix-context.h: New file.
2793         * modules/unicase/u8-suffix-context: New file.
2794
2795         New module 'unicase/empty-suffix-context'.
2796         * lib/unicase/empty-suffix-context.c: New file.
2797         * modules/unicase/empty-suffix-context: New file.
2798
2799         New module 'unicase/u32-prefix-context'.
2800         * lib/unicase/u32-prefix-context.c: New file.
2801         * modules/unicase/u32-prefix-context: New file.
2802
2803         New module 'unicase/u16-prefix-context'.
2804         * lib/unicase/u16-prefix-context.c: New file.
2805         * modules/unicase/u16-prefix-context: New file.
2806
2807         New module 'unicase/u8-prefix-context'.
2808         * lib/unicase/u8-prefix-context.c: New file.
2809         * lib/unicase/u-prefix-context.h: New file.
2810         * lib/unicase/context.h: New file.
2811         * modules/unicase/u8-prefix-context: New file.
2812
2813         New module 'unicase/empty-prefix-context'.
2814         * lib/unicase/empty-prefix-context.c: New file.
2815         * modules/unicase/empty-prefix-context: New file.
2816
2817         New module 'unicase/ignorable'.
2818         * lib/unicase/ignorable.c: New file.
2819         * modules/unicase/ignorable: New file.
2820
2821         New module 'unicase/cased'.
2822         * lib/unicase/caseprop.h: New file.
2823         * lib/unicase/cased.c: New file.
2824         * modules/unicase/cased: New file.
2825
2826         New functions for case mapping of substrings.
2827         * lib/unicase.h (casing_prefix_context_t): New type.
2828         (unicase_empty_prefix_context): New variable.
2829         (u8_casing_prefix_context, u16_casing_prefix_context,
2830         u32_casing_prefix_context, u8_casing_prefixes_context,
2831         u16_casing_prefixes_context, u32_casing_prefixes_context): New
2832         declarations.
2833         (casing_suffix_context_t): New type.
2834         (unicase_empty_suffix_context): New variable.
2835         (u8_casing_suffix_context, u16_casing_suffix_context,
2836         u32_casing_suffix_context, u8_casing_suffixes_context,
2837         u16_casing_suffixes_context, u32_casing_suffixes_context,
2838         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
2839         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
2840         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
2841         declarations.
2842
2843 2009-06-28  Jim Meyering  <meyering@redhat.com>
2844
2845         boostrap: indent only with spaces
2846         * build-aux/bootstrap: Indent only with spaces, never TABs.
2847
2848         bootstrap: split long lines
2849         * build-aux/bootstrap: Keep line length < 80.
2850
2851         bootstrap: sync from coreutils
2852         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
2853         just as autoreconf does.  Verify a list of prerequisite
2854         package-name,version-number pairs if defined in bootstrap.conf.
2855         Refer to README-prereq, if prerequisites are not satisfied.
2856
2857 2009-06-27  Eric Blake  <ebb9@byu.net>
2858
2859         tests: add test for bogus NULL definition
2860         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
2861         * tests/test-stdlib.c: Likewise.
2862         * tests/test-string.c: Likewise.
2863         * tests/test-locale.c: Likewise.
2864         * tests/test-unistd.c: Likewise.
2865         * modules/stdio-tests (Depends-on): Add verify.
2866         * modules/stdlib-tests (Depends-on): Likewise.
2867         * modules/string-tests (Depends-on): Likewise.
2868         * modules/locale-tests (Depends-on): Likewise.
2869         * modules/unistd-tests (Depends-on): Likewise.
2870
2871 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
2872
2873         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
2874         self-explaining comment.
2875         * m4/selinux-selinux-h: Update serial.
2876         (gl_LIBSELINUX): New macro, adding a warning for missing development
2877         packages to code extracted from...
2878         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
2879         Add warning for missing development packages here, too.
2880
2881 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
2882
2883         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
2884
2885 2009-06-25  Eric Blake  <ebb9@byu.net>
2886
2887         version-etc: fix regression
2888         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
2889         gcc.
2890         (version_etc): Use it, to catch bugs with trailing NULL.
2891         * lib/version-etc.c (version_etc_arn): Delete unused argument.
2892         (version_etc_va): Fix logic bug.
2893         * modules/version-etc-tests: Add test.
2894         * tests/test-version-etc.c: New file.
2895         * tests/test-version-etc.sh: Likewise.
2896
2897 2009-06-25  Sam Steingold  <sds@gnu.org>
2898
2899         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
2900         mbtowc declaration.
2901
2902 2009-06-25  Eric Blake  <ebb9@byu.net>
2903
2904         fpurge: migrate into <stdio.h>
2905         * lib/fpurge.h: Delete...
2906         * lib/stdio.in.h (fpurge): ...and declare here, instead.
2907         * lib/fpurge.c (fpurge): Change declaring header.
2908         * modules/fpurge (Files): Drop deleted file.
2909         (Depends-on): Add stdio.
2910         (configure.ac): Set witness.
2911         * modules/stdio (Makefile.am): Support fpurge macros.
2912         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
2913         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
2914         * lib/fflush.c: Update client.
2915         * tests/test-fpurge.c: Likewise.
2916         * NEWS: Mention the change.
2917
2918 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
2919
2920        * lib/argp-version-etc.c (program_authors): Add const
2921        qualifier.
2922        * lib/version-etc.c: Fix typos in the comments.
2923        * modules/argp-version-etc: Depends on version-etc.
2924
2925 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
2926
2927         argp-version-etc: new module.
2928
2929         * lib/argp-version-etc.c: New file.
2930         * lib/argp-version-etc.h: New file.
2931         * modules/argp-version-etc: New file.
2932         * modules/argp-version-etc-tests: New file.
2933         * tests/test-argp-version-etc.c: New test.
2934         * tests/test-argp-version-etc-1.sh: New test.
2935
2936 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
2937
2938         Provide additional interfaces and documentation for version-etc
2939         module.
2940
2941         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
2942         interfaces.
2943         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
2944         prototypes.
2945
2946 2009-06-24  Bruno Haible  <bruno@clisp.org>
2947
2948         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
2949         HAVE_LIB${NAME} macro.
2950         Reported by Sam Steingold <sds@gnu.org>.
2951
2952 2009-06-23  Simon Josefsson  <simon@josefsson.org>
2953
2954         * modules/hash-tests (test_hash_LDADD): Link to libintl when
2955         needed.
2956
2957 2009-06-21  Bruno Haible  <bruno@clisp.org>
2958
2959         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
2960         work.
2961         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
2962         together with LIB${NAME}, LTLIB${NAME}.
2963         Reported by Sam Steingold <sds@gnu.org>.
2964
2965 2009-06-20  Jim Meyering  <meyering@redhat.com>
2966
2967         tests: make sc_require_test_exit_idiom more generic
2968         * top/maint.mk (Exit_witness_file): New overridable variable.
2969         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
2970         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
2971
2972 2009-06-19  Jim Meyering  <meyering@redhat.com>
2973
2974         hash: reverse order of src/dst parameters in an internal interface
2975         * lib/hash.c (transfer_entries): Reverse order of parameters to
2976         put DST before SRC.  Adjust callers.
2977
2978         tests: test-hash: avoid wholesale duplication
2979         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
2980         Instead, use a loop and add a single conditional.
2981
2982         tests: test-hash: allow seed selection via a command line argument
2983         * tests/test-hash.c (get_seed): New function.
2984         (main): Use it.
2985
2986 2009-06-19  Eric Blake  <ebb9@byu.net>
2987
2988         hash: avoid memory leak on allocation failure
2989         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
2990         failure.  Factor repeated algorithm...
2991         (transfer_entries): ...into new helper routine.
2992         (hash_delete): React to hash_rehash return value.
2993
2994         hash: reduce memory pressure in hash_rehash no-op case
2995         * lib/hash.c (next_prime): Avoid overflow.
2996         (hash_initialize): Factor bucket size computation...
2997         (compute_bucket_size): ...into new helper function.
2998         (hash_rehash): Use new function and open coding to reduce memory
2999         pressure, and avoid a memory leak in USE_OBSTACK code.
3000         Reported by Jim Meyering.
3001
3002 2009-06-18  Eric Blake  <ebb9@byu.net>
3003
3004         hash: make rotation more obvious
3005         * modules/hash (Depends-on): Add bitrotate and stdint.
3006         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
3007         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
3008         (SIZE_MAX): Rely on headers for definition.
3009         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
3010         (raw_hasher): Use rotr_sz.
3011         Suggested by Jim Meyering.
3012
3013         hash: fix memory leak in last patch
3014         * lib/hash.c (hash_rehash): Avoid memory leak.
3015
3016         hash: avoid no-op rehashing
3017         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
3018
3019         hash: provide default callback functions
3020         * lib/hash.c (raw_hasher, raw_comparator): New functions.
3021         (hash_initialize): Use them as defaults.
3022         * tests/test-hash.c (main): Test this.
3023
3024         hash: minor optimization
3025         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
3026         when possible.
3027         (hash_initialize): Document this promise.
3028         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
3029         * tests/test-hash.c (hash_compare_strings): Test this.
3030
3031 2009-06-18  Bruno Haible  <bruno@clisp.org>
3032
3033         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
3034         going to be replaced anyway.
3035
3036 2009-06-18  Bruno Haible  <bruno@clisp.org>
3037
3038         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
3039         in one place.
3040         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
3041         be replaced anyway.
3042
3043 2009-06-18  Eric Blake  <ebb9@byu.net>
3044
3045         hash: check for resize before insertion
3046         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
3047         threshold before insertion, so that a pathological hash_rehash
3048         that fills every bucket can still trigger another rehash.
3049
3050 2009-06-18  Jim Meyering  <meyering@redhat.com>
3051
3052         hash-tests: add a loop around the small tests
3053         * tests/test-hash.c (main): Repeat small tests with selected
3054         small initial table sizes.
3055
3056 2009-06-17  Eric Blake  <ebb9@byu.net>
3057
3058         hash: minor cleanups
3059         * lib/hash.h (hash_entry): Make opaque, by moving...
3060         * lib/hash.c (hash_entry): ...here.
3061         (hash_insert): Clarify restrictions on what can be inserted.
3062         (hash_get_next): Clarify when it is safe to remove an element
3063         during traversal.
3064         (check_tuning): Skip verification when tuning is known safe.
3065         (hash_initialize): Clarify restrictions on tuning.
3066
3067 2009-06-17  Jim Meyering  <jim@meyering.net>
3068         and Eric Blake  <ebb9@byu.net>
3069
3070         hash-tests: new module
3071         * modules/hash-tests: New file.
3072         * tests/test-hash.c: New file.
3073
3074 2009-06-17  Eric Blake  <ebb9@byu.net>
3075
3076         strstr-simple: document new module
3077         * MODULES.html.sh: Document new module.
3078
3079         strstr, strcasestr: replace on platforms with broken memchr
3080         * modules/strstr: Split into...
3081         * modules/strstr-simple: ...new module that does not care about
3082         performance, but does care about glibc bug.
3083         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
3084         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
3085         if platform memchr is broken, per Debian bug 521737.
3086         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
3087         memchr.
3088         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
3089         * doc/posix-functions/strstr.texi (strstr): Document the fix.
3090         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
3091         * modules/mountlist (Depends-on): Add strstr-simple.
3092         * modules/gen-uni-tables (Depends-on): Likewise.
3093         * modules/argz (Depends-on): Add strstr.
3094
3095 2009-06-17  Bruno Haible  <bruno@clisp.org>
3096
3097         * modules/posix_spawn-internal (Depends-on): Add errno.
3098
3099 2009-06-17  Bruno Haible  <bruno@clisp.org>
3100
3101         Define missing ESTALE on Interix 3.5.
3102         * lib/errno.in.h (ESTALE): Assign a value if missing.
3103         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
3104         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
3105         missing.
3106         * doc/posix-headers/errno.texi: Mention the Interix bug.
3107         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
3108
3109 2009-06-15  Eric Blake  <ebb9@byu.net>
3110
3111         memchr, memchr2: add valgrind exception
3112         * lib/memchr.valgrind: New file.
3113         * lib/memchr2.valgrind: New file.
3114         * modules/memchr (Files): Distribute valgrind file.
3115         * modules/memchr2 (Files): Likewise.
3116
3117         docs: memchr is no longer obsolete
3118         * MODULES.html.sh: Move memchr from obsolete to string.h section.
3119         * lib/string.in.h (memchr): Simplify logic.
3120
3121 2009-06-14  Jim Meyering  <meyering@redhat.com>
3122
3123         link-follow: fix the "checking..." message to not mention trailing slash
3124         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
3125         never considered trailing slashes.
3126
3127 2009-06-14  Bruno Haible  <bruno@clisp.org>
3128
3129         * m4/memchr.m4: Mention also the bug on IA-64.
3130         * doc/posix-functions/memchr.texi: Likewise.
3131
3132 2009-06-12  Eric Blake  <ebb9@byu.net>
3133
3134         memchr: detect broken x86_64 and alpha implementations
3135         * modules/memchr-tests (Depends-on): Move mmap detection...
3136         * modules/memchr (Depends-on): ...here.
3137         (configure.ac): Set indicator.
3138         * lib/string.in.h (memchr): Declare replacement.
3139         * modules/string (Makefile.am): Trigger replacement.
3140         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
3141         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
3142         bugs.
3143         * doc/posix-functions/memchr.texi (memchr): Document the bug.
3144         * modules/getpagesize (License): Relax license.
3145
3146 2009-06-11  Bruno Haible  <bruno@clisp.org>
3147
3148         * lib/idpriv.h: Add more references.
3149
3150 2009-06-08  Bruno Haible  <bruno@clisp.org>
3151
3152         Tests for module 'idpriv-droptemp'.
3153         * modules/idpriv-droptemp-tests: New file.
3154         * tests/test-idpriv-droptemp.sh: New file.
3155         * tests/test-idpriv-droptemp.su.sh: New file.
3156         * tests/test-idpriv-droptemp.c: New file.
3157
3158         New module 'idpriv-droptemp'.
3159         * lib/idpriv-droptemp.c: New file.
3160         * modules/idpriv-droptemp: New file.
3161
3162 2009-06-08  Bruno Haible  <bruno@clisp.org>
3163
3164         Tests for module 'idpriv-drop'.
3165         * modules/idpriv-drop-tests: New file.
3166         * tests/test-idpriv-drop.sh: New file.
3167         * tests/test-idpriv-drop.su.sh: New file.
3168         * tests/test-idpriv-drop.c: New file.
3169
3170         New module 'idpriv-drop'.
3171         * lib/idpriv.h: New file.
3172         * lib-idpriv-drop.c: New file.
3173         * m4/idpriv.m4: New file.
3174         * modules/idpriv-drop: New file.
3175
3176 2009-06-08  Bruno Haible  <bruno@clisp.org>
3177
3178         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
3179         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3180         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3181         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3182         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3183         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3184         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3185
3186 2009-06-08  Eric Blake  <ebb9@byu.net>
3187
3188         test-strstr: use memory fence, when possible
3189         * tests/test-strstr.c (main): Use memory fence, in order to be
3190         more likely to trigger Debian bug 521737.
3191         * modules/strstr-tests (Files): Pull in additional files.
3192
3193         memchr: no longer obsolete, for wider field testing
3194         * modules/memchr (Status, Notice): Delete, this module is no
3195         longer obsolete.
3196         * modules/vasnprintf (Depends-on): Add memchr.
3197
3198 2009-06-07  Jim Meyering  <meyering@redhat.com>
3199
3200         hash: declare some functions with the warn_unused_result attribute
3201         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
3202
3203 2009-06-07  Bruno Haible  <bruno@clisp.org>
3204
3205         * tests/test-alignof.c: Don't test int64_t if it does not exist.
3206         Reported by Eric Blake.
3207
3208 2009-06-06  Eric Blake  <ebb9@byu.net>
3209
3210         test-alignof: fix typo with long double
3211         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
3212         compiler error.
3213
3214 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
3215
3216         Escape non-texinfo { and }s.
3217         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
3218         markup error.
3219
3220 2009-06-04  Jim Meyering  <meyering@redhat.com>
3221
3222         gitlog-to-changelog: don't infloop on an empty commit log
3223         * build-aux/gitlog-to-changelog: Warn about an empty log message.
3224         Reported by Boris Petersen <transacid@centerim.org>.
3225
3226 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
3227
3228         version-etc: extend for packagers
3229         Add three new configure options, intended for packagers:
3230           --with-packager="packager name"
3231           --with-packager-version="packager-specific version"
3232           --with-packager-bug-reports="packager bug reporting"
3233         An example with coreutils:
3234           $ ./configure \
3235             --with-packager=Gentoo \
3236             --with-packager-bug-report=http://bugs.gentoo.org/ \
3237             --with-packager-version="patchset 1.6"
3238           $ ./src/ls --version | head -n3
3239           ls (GNU coreutils) 7.1-dirty
3240           Packaged by Gentoo (patchset 1.6)
3241           Copyright (C) 2009 Free Software Foundation, Inc.
3242         Note that the bug reporting info via --help doesn't show up because
3243         coreutils uses its own custom emit_bug_reporting_address() implementation
3244         in src/system.h.  If it didn't, it'd look like:
3245           $ ./src/ls --help | tail -n4
3246           Report bugs to <bug-coreutils@gnu.org>.
3247           Report Gentoo bugs to <http://bugs.gentoo.org/>.
3248           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
3249           General help using GNU software: <http://www.gnu.org/gethelp/>.
3250         * lib/version-etc.c: Print new information, if provided.
3251         * m4/version-etc.m4: New file.
3252         * modules/version-etc (Files): Add m4/version-etc.m4.
3253         (configure.ac): Add gl_VERSION_ETC.
3254
3255 2009-05-31  Bruno Haible  <bruno@clisp.org>
3256
3257         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
3258         and 'int64_t'.
3259         * modules/alignof-tests (Dependencies): Add stdint.
3260         Reported by Eric Blake.
3261
3262 2009-05-31  Bruno Haible  <bruno@clisp.org>
3263
3264         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
3265         restriction due to compiler bugs.
3266         Reported by Eric Blake.
3267
3268 2009-05-31  Simon Josefsson  <simon@josefsson.org>
3269             Bruno Haible  <bruno@clisp.org>
3270
3271         Fix test-alignof failure.
3272         * lib/alignof.h (alignof_slot): New macro.
3273         (alignof_type): New macro, with the same semantics as the previous
3274         'alignof'.
3275         (alignof): Alias to alignof_slot.
3276         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
3277         check that the results are usable as constant expressions.
3278
3279 2009-05-31  Bruno Haible  <bruno@clisp.org>
3280
3281         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
3282         * tests/test-memchr.c (main): Check that memchr does not read past the
3283         first occurrence of the byte.
3284         * tests/test-strstr.c (main): Update comment.
3285         Suggested by Eric Blake.
3286
3287 2009-05-30  Bruno Haible  <bruno@clisp.org>
3288
3289         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
3290         detail how to use dumpbin.
3291         Reported by David Byron <dbyron@dbyron.com>.
3292
3293 2009-06-02  Simon Josefsson  <simon@josefsson.org>
3294
3295         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
3296
3297 2009-06-02  Simon Josefsson  <simon@josefsson.org>
3298
3299         * m4/manywarnings.m4: Add GCC 4.4 warnings.
3300
3301 2009-05-28  Bruno Haible  <bruno@clisp.org>
3302
3303         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
3304         build-aux/ files.
3305
3306 2009-05-28  Simon Josefsson  <simon@josefsson.org>
3307
3308         * gnulib-tool (func_import): Transform license on build-aux/ files too.
3309
3310 2009-05-27  Simon Josefsson  <simon@josefsson.org>
3311
3312         * gnulib-tool (sed_transform_main_lib_file)
3313         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
3314         regexps.
3315
3316 2009-05-26  Simon Josefsson  <simon@josefsson.org>
3317
3318         * tests/test-strstr.c: Add another self-test.
3319         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
3320         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
3321
3322 2009-05-23  Bruno Haible  <bruno@clisp.org>
3323
3324         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
3325         change.
3326
3327 2009-05-21  Bruno Haible  <bruno@clisp.org>
3328
3329         Simplify use of mode_t varargs.
3330         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
3331         uses 'mode_t' or 'int'.
3332         * lib/openat.c (openat): Likewise.
3333         * lib/open-safer.c (open_safer): Likewise.
3334         * m4/mode_t.m4: New file.
3335         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
3336         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
3337         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
3338         * modules/open (Files): Add m4/mode_t.m4.
3339         * modules/openat (Files): Likewise.
3340         * modules/fcntl-safer (Files): Likewise.
3341         Suggested by Eric Blake.
3342
3343 2009-05-21  Pádraig Brady  <P@draigbrady.com>
3344
3345         * doc/glibc-functions/fallocate.texi: New file.
3346         * doc/gnulib.texi: Include it.
3347
3348 2009-05-21  Eric Blake  <ebb9@byu.net>
3349             Bruno Haible  <bruno@clisp.org>
3350
3351         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
3352         invocations.
3353         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
3354
3355 2009-05-21  Eric Blake  <ebb9@byu.net>
3356             Bruno Haible  <bruno@clisp.org>
3357
3358         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
3359         include_next. Fix of 2008-11-20 commit.
3360         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
3361         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
3362         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
3363         NEXT_MATH_H.
3364         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
3365         instead of NEXT_MATH_H.
3366
3367 2009-05-21  Bruno Haible  <bruno@clisp.org>
3368
3369         Avoid redefinition warnings for SIZE_MAX.
3370         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
3371         Reported by Simon Josefsson.
3372
3373 2009-05-21  Bruno Haible  <bruno@clisp.org>
3374
3375         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
3376         AC_CACHE_VAL.
3377
3378 2009-05-20  Bruno Haible  <bruno@clisp.org>
3379
3380         Make zeroptr.h work on mingw.
3381         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
3382         mprotect.
3383         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
3384         * modules/memchr2-tests (configure.ac): Likewise.
3385         * modules/memcmp-tests (configure.ac): Likewise.
3386         * modules/memmem-tests (configure.ac): Likewise.
3387         * modules/memrchr-tests (configure.ac): Likewise.
3388         Reported by Simon Josefsson.
3389
3390 2009-05-20  Simon Josefsson  <simon@josefsson.org>
3391
3392         * tests/test-glob.c: Include string.h for strcmp prototype.
3393
3394 2009-05-20  Simon Josefsson  <simon@josefsson.org>
3395
3396         * modules/getdelim (Depends-on): Add explicit stdint, although it
3397         was implicitly already pulled in via realloc-posix.
3398         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
3399
3400 2009-05-20  Simon Josefsson  <simon@josefsson.org>
3401
3402         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
3403         G. Christensen" <tgc@jupiterrise.com>.
3404         * m4/sys_socket_h.m4: Check for sa_family_t.
3405         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
3406         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
3407         * tests/test-sys_socket.c: Check that sa_family_t works.
3408
3409 2009-05-18  Eric Blake  <ebb9@byu.net>
3410
3411         maint.mk: allow gnulib_dir in VPATH build
3412         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
3413
3414 2009-05-15  Jim Meyering  <meyering@redhat.com>
3415
3416         maint.mk: Give gnulib_dir a default definition.
3417         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
3418         Thus, most packages no longer need to specify this variable in cfg.mk
3419
3420 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
3421
3422         rename.m4: fix typos that would make non-mingw cross-configure fail
3423         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
3424
3425 2009-05-13  Eric Blake  <ebb9@byu.net>
3426
3427         mmap-anon: avoid out-of-order autoconf expansion
3428         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
3429         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
3430         * modules/memchr-tests (Depends-on): Add extensions.
3431         * modules/memchr2-tests (Depends-on): Add extensions.
3432         * modules/memcmp-tests (Depends-on): Add extensions.
3433         * modules/memmem-tests (Depends-on): Add extensions.
3434         * modules/memrchr-tests (Depends-on): Add extensions.
3435
3436 2009-05-13  Bruno Haible  <bruno@clisp.org>
3437
3438         Make some tests ISO C 99 compliant.
3439         * tests/zerosize-ptr.h: New file.
3440         * tests/test-memchr.c: Include zerosize-ptr.h.
3441         (main): Use a zero-size object pointer instead of NULL.
3442         * tests/test-memchr2.c: Include zerosize-ptr.h.
3443         (main): Use a zero-size object pointer instead of NULL.
3444         * tests/test-memcmp.c: Include zerosize-ptr.h.
3445         (main): Use a zero-size object pointer instead of NULL.
3446         * tests/test-memmem.c: Include zerosize-ptr.h.
3447         (main): Use a zero-size object pointer instead of NULL.
3448         * tests/test-memrchr.c: Include zerosize-ptr.h.
3449         (main): Use a zero-size object pointer instead of NULL.
3450         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
3451         m4/mmap-anon.m4.
3452         (Depends-on): Add getpagesize.
3453         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
3454         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
3455         m4/mmap-anon.m4.
3456         (Depends-on): Add getpagesize.
3457         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
3458         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
3459         m4/mmap-anon.m4.
3460         (Depends-on): Add getpagesize.
3461         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
3462         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
3463         m4/mmap-anon.m4.
3464         (Depends-on): Add getpagesize.
3465         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
3466         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
3467         m4/mmap-anon.m4.
3468         (Depends-on): Add getpagesize.
3469         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
3470
3471 2009-05-12  Bruno Haible  <bruno@clisp.org>
3472
3473         Tests for module 'alignof'.
3474         * modules/alignof-tests: New file.
3475         * tests/test-alignof.c: New file.
3476
3477 2009-05-12  Bruno Haible  <bruno@clisp.org>
3478
3479         Fix alignof macro.
3480         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
3481         vendor compilers that are always correct.
3482
3483 2009-05-12  Bruno Haible  <bruno@clisp.org>
3484
3485         Make the MAP_ANONYMOUS detection work on HP-UX 11.
3486         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
3487         not whether its fully works.
3488
3489 2009-05-12  Bruno Haible  <bruno@clisp.org>
3490
3491         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
3492
3493 2009-05-12  Jim Meyering  <meyering@redhat.com>
3494
3495         * top/maint.mk: Adjust backslash alignment.
3496
3497 2009-05-11  Simon Josefsson  <simon@josefsson.org>
3498
3499         * top/maint.mk: Make $(srcdir)/build-aux configurable.
3500
3501 2009-05-11  Eric Blake  <ebb9@byu.net>
3502
3503         argp: avoid undefined behavior
3504         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
3505         macros.
3506
3507 2009-05-08  Simon Josefsson  <simon@josefsson.org>
3508
3509         * tests/test-vc-list-files-git.sh: Do git config of user.email and
3510         user.name to prevent git commit from complaining.
3511
3512 2009-05-10  Bruno Haible  <bruno@clisp.org>
3513
3514         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
3515         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
3516         it rewrites every file name only once.
3517         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
3518
3519 2009-05-08  Bruno Haible  <bruno@clisp.org>
3520
3521         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
3522         instead of 'max'.
3523
3524 2009-05-08  Simon Josefsson  <simon@josefsson.org>
3525
3526         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
3527         sockaddr_storage test.
3528
3529 2009-05-07  Simon Josefsson  <simon@josefsson.org>
3530
3531         * modules/sys_socket (Makefile.am): Substitute
3532         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
3533         * m4/sys_socket_h.m4: Check for sockaddr_storage.
3534         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
3535         * tests/test-sys_socket.c: Check sockaddr_storage.
3536
3537 2009-05-08  Bruno Haible  <bruno@clisp.org>
3538
3539         New module 'alignof'.
3540         * lib/alignof.h: New file.
3541         * modules/alignof: New file.
3542
3543 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
3544             Bruno Haible  <bruno@clisp.org>
3545
3546         Fix test-file-has-acl on FreeBSD.
3547         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
3548         mask is implicitly added.
3549         * tests/test-file-has-acl.c: Include <signal.h>.
3550         (main): Terminate the test after 5 seconds.
3551         * modules/acl-tests (configure.ac): Check for alarm function.
3552
3553 2009-05-04  Bruno Haible  <bruno@clisp.org>
3554
3555         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
3556         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
3557         * modules/errno (configure.ac): Drop AC_REQUIRE.
3558         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
3559         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
3560
3561 2009-05-04  Simon Josefsson  <simon@josefsson.org>
3562
3563         * modules/glob-tests: New module.
3564         * tests/test-glob.c: Add.
3565
3566 2009-05-04  Simon Josefsson  <simon@josefsson.org>
3567
3568         * modules/fnmatch-tests: New module.
3569         * tests/test-fnmatch.c: Add.
3570
3571 2009-05-04  Eric Blake  <ebb9@byu.net>
3572
3573         maint: make the new no-submodule-changes rule VPATH-safe
3574         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
3575
3576 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
3577             Bruno Haible  <bruno@clisp.org>
3578
3579         acl: Fix infinite loop on FreeBSD.
3580         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
3581         of return value from acl_get_entry.
3582         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
3583         Likewise.
3584
3585 2009-05-03  Bruno Haible  <bruno@clisp.org>
3586
3587         * lib/acl-internal.h (acl_entries): Clarify return value.
3588         * lib/acl_entries.c (acl_entries): Likewise.
3589
3590 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
3591
3592         Bug fix in acl module.
3593         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
3594
3595 2009-05-03  Bruno Haible  <bruno@clisp.org>
3596
3597         Create gperf-generated file in the source dir, not in the build dir.
3598         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
3599         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
3600         * modules/unicase/locale-language (unicase/locale-languages.h):
3601         Likewise.
3602         * modules/unicase/special-casing (unicase/special-casing-table.h):
3603         Likewise.
3604         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
3605         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
3606         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
3607         Reported by Ralf Wildenhues.
3608
3609 2009-05-03  Bruno Haible  <bruno@clisp.org>
3610
3611         * modules/fnmatch (Description, configure.ac): Taken from
3612         fnmatch-posix.
3613         * modules/fnmatch-posix: Turn into a symbolic reference to the
3614         'fnmatch' module, and deprecate.
3615         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
3616
3617 2009-05-03  Bruno Haible  <bruno@clisp.org>
3618
3619         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
3620         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
3621         Reported by Ralf Wildenhues.
3622
3623 2009-05-04  Simon Josefsson  <simon@josefsson.org>
3624
3625         * m4/fnmatch.m4: Fix fnmatch re-define.
3626
3627 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
3628
3629         priv-set: new module and tests; adapt write-any-file
3630         * lib/priv-set.c: New file.
3631         * lib/priv-set.h: New file.
3632         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
3633         * lib/write-any-file.c: Simplify by using priv-set module.
3634         * m4/priv-set.m4: New file.
3635         * modules/priv-set: New file.
3636         * modules/unlinkdir: Add dependency on priv-set module.
3637         * modules/write-any-file: Likewise.
3638
3639         Tests for module 'priv-set'.
3640         * modules/priv-set-tests: New file.
3641         * tests/test-priv-set.c: New file.
3642
3643 2009-05-03  Jim Meyering  <meyering@redhat.com>
3644             Bruno Haible  <bruno@clisp.org>
3645
3646         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
3647         use the converted UTF-8 variant of the name instead.
3648
3649 2009-05-03  Jim Meyering  <meyering@redhat.com>
3650
3651         tests: tighten some getdate tests
3652         * tests/test-getdate.c (main): Tighten tests: require equality,
3653         not just greater than.  Set TZ envvar to UTC0.
3654
3655 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
3656
3657         getdate: correctly interpret "next monday" when run on a Monday
3658         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
3659         that e.g., "next tues" (when run on a tuesday) results in a date
3660         that is one week in the future, and not today's date.
3661         I.e., add a week when the wday is the same as the current one.
3662         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
3663         and earlier by Martin Bernreuther and Jan Minář.
3664         * tests/test-getdate.c (main): Check that "next DAY" is always in
3665         the future and that "last DAY" is always in the past.
3666
3667 2009-05-02  Jim Meyering  <meyering@redhat.com>
3668
3669         build: ensure that a release build fails when a submodule is unclean
3670         * top/maint.mk (no-submodule-changes): New rule.
3671         (alpha beta major): Depend on it.
3672
3673 2009-05-02  Bruno Haible  <bruno@clisp.org>
3674
3675         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
3676         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
3677         shell variable gl_fnmatch_required to detect which variant is
3678         requested.
3679         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
3680         gl_FUNC_FNMATCH_POSIX.
3681         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
3682         exclude fnmatch-posix.
3683
3684 2009-05-02  Bruno Haible  <bruno@clisp.org>
3685
3686         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
3687         * modules/mbsrtowcs (License): Change to LGPLv2+.
3688         * modules/strnlen1 (License): Likewise.
3689         Reported by Simon Josefsson.
3690
3691 2009-05-02  Bruno Haible  <bruno@clisp.org>
3692
3693         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
3694         "cross".
3695         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
3696         gnulib-tool was called with option --source-base=lib.
3697
3698 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3699
3700         Use automake *-local hooks without commands, for extensibility.
3701         * modules/localcharset (Makefile.am): Rename install-exec-local
3702         rule to install-exec-localcharset, and make it a prerequisite of
3703         install-exec-local.  Likewise, rename the uninstall-local rule to
3704         uninstall-localcharset, and make it a prerequisite of the former.
3705
3706 2009-05-01  Bruno Haible  <bruno@clisp.org>
3707
3708         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
3709         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
3710         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
3711         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
3712         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
3713         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
3714         m4/locale-zh.m4, m4/codeset.m4.
3715
3716         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
3717         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
3718         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
3719         m4/locale-zh.m4.
3720
3721         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
3722         REPLACE_WCRTOMB if mbstate_t must be replaced.
3723         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
3724         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
3725
3726 2009-05-01  Bruno Haible  <bruno@clisp.org>
3727
3728         Avoid compiler warnings when redefining macros defined by <libintl.h>.
3729         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
3730         dngettext, dcngettext, textdomain, bindtextdomain,
3731         bind_textdomain_codeset): Undefine before redefining.
3732
3733 2009-04-30  Bruno Haible  <bruno@clisp.org>
3734
3735         Fix bug introduced on 2009-04-25.
3736         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
3737         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
3738         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
3739         is defined.
3740         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
3741         is defined.
3742         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
3743         is defined.
3744         Reported by Elbert_Pol <elbert.pol@gmail.com>.
3745
3746 2009-04-28  Bruno Haible  <bruno@clisp.org>
3747
3748         Comment tweaks.
3749         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
3750         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
3751         * lib/unicase.h (u*_casexfrm): Likewise.
3752         Reported by Paolo Bonzini.
3753
3754 2009-04-28  Bruno Haible  <bruno@clisp.org>
3755
3756         Fix a compilation error.
3757         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
3758         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
3759         Reported by Jim Meyering.
3760
3761 2009-04-27  Bruno Haible  <bruno@clisp.org>
3762
3763         New module 'libunistring'.
3764         * modules/libunistring: New file.
3765         * m4/libunistring.m4: New file.
3766         * MODULES.html.sh (Unicode string functions): Add it.
3767
3768 2009-04-27  Eric Blake  <ebb9@byu.net>
3769
3770         maint.mk: allow package-specific header to provide <config.h>
3771         * top/maint.mk (sc_require_config_h): New variable.
3772         (sc_require_config_h, sc_require_config_h_first): Use it.
3773
3774 2009-04-27  Simon Josefsson  <simon@josefsson.org>
3775
3776         * top/maint.mk (sc_avoid_if_before_free): Except
3777         useless-if-before-free script.
3778
3779 2009-04-27  Eric Blake  <ebb9@byu.net>
3780
3781         maintainer-makefile: depend on all required helper scripts
3782         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
3783         useless-if-before-free.
3784         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
3785         version, rather than assuming gnulib checkout is available.
3786         Reported by Simen Josefsson.
3787
3788 2009-04-26  Bruno Haible  <bruno@clisp.org>
3789
3790         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
3791         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
3792         "../" or "..".
3793
3794 2009-04-26  Bruno Haible  <bruno@clisp.org>
3795
3796         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
3797         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
3798         AC_LIB_HAVE_LINKFLAGS.
3799
3800 2009-04-26  Bruno Haible  <bruno@clisp.org>
3801
3802         Simplify calling convention of u*_conv_from_encoding.
3803         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
3804         u32_conv_from_encoding): Expect a resultbuf argument and return the
3805         result directly as a pointer.
3806         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
3807         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
3808         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
3809         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
3810         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
3811         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
3812         Update.
3813         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
3814         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
3815         * lib/vasnprintf.c (VASNPRINTF): Update.
3816         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
3817         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
3818         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
3819         * NEWS: Mention the change.
3820
3821 2009-04-26  Bruno Haible  <bruno@clisp.org>
3822
3823         Simplify calling convention of u*_conv_to_encoding.
3824         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
3825         u32_conv_to_encoding): Expect a resultbuf argument and return the
3826         result directly as a pointer.
3827         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
3828         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
3829         freeing scaled_offsets if mem_iconveha failed.
3830         * lib/unicase/u-casexfrm.h (FUNC): Update.
3831         * lib/uninorm/u-normxfrm.h (FUNC): Update.
3832         * lib/vasnprintf.c (VASNPRINTF): Update.
3833         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
3834         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
3835         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
3836         * NEWS: Mention the change.
3837
3838 2009-04-26  Bruno Haible  <bruno@clisp.org>
3839
3840         Avoid test failures on AIX and OSF/1.
3841         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
3842         malloc(0).
3843         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
3844         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
3845         Likewise.
3846         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
3847         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
3848         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
3849         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
3850         * doc/posix-functions/malloc.texi: Document the portability problem
3851         related to malloc(0).
3852
3853 2009-04-26  Bruno Haible  <bruno@clisp.org>
3854
3855         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
3856         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
3857         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
3858
3859 2009-04-25  Bruno Haible  <bruno@clisp.org>
3860
3861         Avoid link error when creating a namespace clean library.
3862         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
3863         as macro with arguments if already defined as an alias.
3864         * lib/signbitf.c (gl_signbitf): Don't undefine.
3865         * lib/signbitd.c (gl_signbitd): Don't undefine.
3866         * lib/signbitl.c (gl_signbitl): Don't undefine.
3867
3868 2009-04-25  Jim Meyering  <meyering@redhat.com>
3869
3870         vc-list-files: fix another quoting bug
3871         * build-aux/vc-list-files: Avoid sed backslash expansion
3872         of pathological directory names.
3873
3874 2009-04-25  Eric Blake  <ebb9@byu.net>
3875
3876         vc-list-files: fix shell quoting error
3877         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
3878         timestamp.
3879
3880 2009-04-25  Jim Meyering  <meyering@redhat.com>
3881
3882         vc-list-files: restore lost functionality with subdir argument
3883         * build-aux/vc-list-files: When given a non-"." sub-directory
3884         argument, substitute the $dir/ prefix back onto each resulting name.
3885         Otherwise, coreutils' root_tests check would fail.
3886
3887 2009-04-24  Eric Blake  <ebb9@byu.net>
3888
3889         vc-list-files: ignore git symlinks
3890         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
3891         than ls-files, to ignore git symlinks.
3892
3893         maint.mk: import improvements from m4
3894         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
3895         (move_if_change): Delete unused macro.
3896         (news-date-check, vc-diff-check): Support VPATH builds.
3897         (announcement): Likewise.  Split --bootstrap-tools list...
3898         (boostrap-tools): ...into separate list, which can be overridden
3899         in cfg.mk.
3900         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
3901         requiring dependency on useless-if-before-free module.
3902         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
3903         Support VPATH builds.
3904
3905 2009-04-24  Jim Meyering  <meyering@redhat.com>
3906
3907         maint.mk: remove coreutils-specific rules and variables
3908         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
3909         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
3910         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
3911
3912         maint.mk: remove obsolete rule
3913         * top/maint.mk (rel-check): Remove rule.
3914         (WGET, WGETFLAGS): Remove now-unused variables.
3915
3916 2009-04-24  Simon Josefsson  <simon@josefsson.org>
3917
3918         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
3919         consistency.
3920
3921         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
3922         '$(PATH_SEPARATOR)' instead of ':'.
3923
3924 2009-04-24  Simon Josefsson  <simon@josefsson.org>
3925
3926         * lib/getopt1.c (main): Use 'const' for static array.
3927
3928 2009-04-24  Simon Josefsson  <simon@josefsson.org>
3929
3930         * top/maint.mk: Sync with coreutils.
3931         * NEWS: Explain incompatibilities.
3932
3933 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3934             Bruno Haible  <bruno@clisp.org>
3935
3936         Fix cross-compilation results.
3937         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
3938         statement, as third argument of AC_TRY_RUN.
3939         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
3940         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
3941         Likewise.
3942         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
3943         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
3944         Likewise.
3945         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3946         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
3947         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
3948
3949 2009-04-20  Bruno Haible  <bruno@clisp.org>
3950
3951         Avoid test failure on mingw.
3952         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
3953
3954 2009-04-20  Bruno Haible  <bruno@clisp.org>
3955
3956         Avoid compilation error on mingw.
3957         * modules/localename-tests (Depends-on): Add locale.
3958
3959 2009-04-19  Bruno Haible  <bruno@clisp.org>
3960
3961         Support for building a shared library on Windows platforms.
3962         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
3963         (main): Test the presence of UNINORM_NFC here.
3964         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
3965         (main): Test the presence of UNINORM_NFD here.
3966         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
3967         (main): Test the presence of UNINORM_NFKC here.
3968         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
3969         (main): Test the presence of UNINORM_NFKD here.
3970
3971 2009-04-19  Bruno Haible  <bruno@clisp.org>
3972
3973         Avoid a compiler warning.
3974         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
3975         Change type of variable 'sequence'.
3976
3977 2009-04-19  Bruno Haible  <bruno@clisp.org>
3978
3979         * modules/configmake (Makefile.am): When the contents of configmake.h
3980         does not change, arrange to preserve its modification time.
3981
3982 2009-04-17  Simon Josefsson  <simon@josefsson.org>
3983
3984         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
3985         gettext domain.
3986
3987 2009-04-16  Jim Meyering  <meyering@redhat.com>
3988
3989         useless-if-before-free: improve conversion code
3990         * build-aux/useless-if-before-free: Adjust code-in-comment to match
3991         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
3992
3993 2009-04-14  Bruno Haible  <bruno@clisp.org>
3994
3995         * modules/fcntl (Depends-on): Add extensions.
3996         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
3997
3998 2009-04-12  Ben Pfaff  <blp@gnu.org>
3999
4000         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
4001         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
4002
4003 2009-03-20  Ben Pfaff  <blp@gnu.org>
4004
4005         Make rename replace existing destinations on Windows.
4006         * m4/rename.m4: Add test for Mingw.
4007         * lib/rename.c: Add rename replacement that uses MoveFileEx with
4008         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
4009         * doc/posix-functions/rename.texi: Document.
4010
4011 2009-04-10  Bruno Haible  <bruno@clisp.org>
4012
4013         New include file "iconveh.h".
4014         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
4015         * lib/striconveh.h: Include it.
4016         (enum iconv_ilseq_handler): Remove definition.
4017         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
4018         striconveh.h.
4019         * lib/striconveha.c: Include striconveh.h.
4020         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
4021         * modules/striconveh (Files): Add lib/iconveh.h.
4022         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
4023         lib/striconveh.h.
4024
4025 2009-04-10  Bruno Haible  <bruno@clisp.org>
4026
4027         * lib/uniconv.h: Update comment.
4028
4029 2009-04-10  Bruno Haible  <bruno@clisp.org>
4030
4031         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
4032         always.
4033         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
4034         * lib/unistr/u16-mbtouc-aux.c: Likewise.
4035         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
4036         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
4037         "unistring-notinline.h", so that the function gets defined always.
4038         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
4039         * lib/unistr/u8-uctomb.c: Likewise.
4040         * lib/unistr/u16-mbtouc.c: Likewise.
4041         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
4042         * lib/unistr/u16-uctomb.c: Likewise.
4043         * lib/unistr/u32-mbtouc.c: Likewise.
4044         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
4045         * lib/unistr/u32-uctomb.c: Likewise.
4046
4047 2009-04-10  Bruno Haible  <bruno@clisp.org>
4048
4049         Mark 'utime' obsolete.
4050         * modules/utime (Status, Notice): New sections.
4051         Suggested by Jim Meyering.
4052
4053         Fix cross-compile guess for utime test.
4054         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
4055         autoconf.
4056         * doc/posix-functions/utime.texi: Give more precisions.
4057         Reported by Jan <ipif@ymail.com>.
4058
4059 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
4060
4061         filevercmp: correct today's change
4062         * lib/filevercmp.c: Also handle coreutils' test inputs.
4063         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
4064
4065         Fix regression in 'filevercmp' module. Thanks Sven Joachim
4066         for reporting it.
4067         * lib/filevercmp.c: Special handle for "", "." and "..".
4068         * tests/test-filevercmp.c: Enlarge the set suite.
4069
4070 2009-04-07  Jim Meyering  <meyering@redhat.com>
4071
4072         useless-if-before-free: show how to remove braced useless free, too
4073         * build-aux/useless-if-before-free: still only in a comment, though.
4074
4075 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
4076
4077         maint.mk: import changes to syntax-check macros from coreutils
4078         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
4079         Use them in the relevant macros.
4080
4081 2009-04-06  Bruno Haible  <bruno@clisp.org>
4082
4083         Fix unportable use of bit-fields.
4084         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
4085         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
4086         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
4087
4088 2009-04-06  Bruno Haible  <bruno@clisp.org>
4089
4090         Avoid test failures on AIX and OSF/1.
4091         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
4092         that malloc(0) = NULL.
4093         * tests/unicase/test-u8-tolower.c (check): Likewise.
4094         * tests/unicase/test-u8-totitle.c (check): Likewise.
4095         * tests/unicase/test-u8-toupper.c (check): Likewise.
4096         * tests/unicase/test-u16-casefold.c (check): Likewise.
4097         * tests/unicase/test-u16-tolower.c (check): Likewise.
4098         * tests/unicase/test-u16-totitle.c (check): Likewise.
4099         * tests/unicase/test-u16-toupper.c (check): Likewise.
4100         * tests/unicase/test-u32-casefold.c (check): Likewise.
4101         * tests/unicase/test-u32-tolower.c (check): Likewise.
4102         * tests/unicase/test-u32-totitle.c (check): Likewise.
4103         * tests/unicase/test-u32-toupper.c (check): Likewise.
4104         * tests/uninorm/test-u8-nfc.c (check): Likewise.
4105         * tests/uninorm/test-u8-nfd.c (check): Likewise.
4106         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
4107         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
4108         * tests/uninorm/test-u16-nfc.c (check): Likewise.
4109         * tests/uninorm/test-u16-nfd.c (check): Likewise.
4110         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
4111         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
4112         * tests/uninorm/test-u32-nfc.c (check): Likewise.
4113         * tests/uninorm/test-u32-nfd.c (check): Likewise.
4114         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
4115         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
4116
4117 2009-04-05  Bruno Haible  <bruno@clisp.org>
4118
4119         Work around an autoconf limitation.
4120         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
4121         comment line if it would be longer than 3 KB.
4122
4123 2009-04-05  Bruno Haible  <bruno@clisp.org>
4124
4125         Avoid test failure with libiconv-1.13.
4126         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
4127         of the expected test results.
4128
4129 2009-04-05  Bruno Haible  <bruno@clisp.org>
4130
4131         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
4132         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
4133         that it should be installed.
4134
4135 2009-04-05  Bruno Haible  <bruno@clisp.org>
4136
4137         * gnulib-tool: New option --copy-file.
4138         (func_usage): Document it.
4139         (func_dest_tmpfilename): Moved out of func_import.
4140         (func_add_file, func_update_file): New functions, extracted from
4141         func_import.
4142         (func_import): Update.
4143
4144 2009-04-05  Karl Berry  <karl@gnu.org>
4145
4146         * README: prominently mention gnulib-tool.
4147         Rearrange sections so getting the code is near the top.
4148
4149 2009-04-05  Bruno Haible  <bruno@clisp.org>
4150
4151         * lib/unicase.h: Mention u*_cmp2.
4152         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
4153         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
4154         * lib/unicase/ulc-casecmp.c: Likewise.
4155         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
4156         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
4157         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
4158         unistr/u8-cmp.
4159         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
4160         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
4161         unistr/u16-cmp.
4162         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
4163         unistr/u32-cmp.
4164
4165         * lib/uninorm.h: Mention u*_cmp2.
4166         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
4167         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
4168         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
4169         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
4170         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
4171         unistr/u8-cmp.
4172         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
4173         unistr/u16-cmp.
4174         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
4175         unistr/u32-cmp.
4176
4177         New module 'unistr/u32-cmp2'.
4178         * lib/unistr/u32-cmp2.c: New file.
4179         * modules/unistr/u32-cmp2: New file.
4180
4181         New module 'unistr/u16-cmp2'.
4182         * lib/unistr/u16-cmp2.c: New file.
4183         * modules/unistr/u16-cmp2: New file.
4184
4185         New module 'unistr/u8-cmp2'.
4186         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
4187         * lib/unistr/u8-cmp2.c: New file.
4188         * lib/unistr/u-cmp2.h: New file.
4189         * modules/unistr/u8-cmp2: New file.
4190
4191 2009-04-05  Bruno Haible  <bruno@clisp.org>
4192
4193         * lib/unictype.h (uc_property_is_valid): New macro.
4194         * tests/unictype/test-pr_byname.c (main): Use it.
4195
4196         * lib/unistr.h: Doc fixes.
4197         * lib/uniconv.h: Doc fixes.
4198         * lib/unictype.h: Doc fixes.
4199
4200 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
4201
4202         Port coreutils 7.2 to Solaris 8.
4203
4204         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
4205         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
4206         for Solaris 8.  This is a bit of a hack, as it means it's the
4207         caller's responsibility to add -lnsl if needed, but most likely it
4208         won't be needed since only getaddrinfo uses this and getaddrinfo
4209         isn't needed on Solaris 8.
4210
4211         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
4212         problem to Solaris 8 encountered with coreutils 7.2, which
4213         resulted in a message "fnmatch.c:292: warning: passing argument 4
4214         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
4215         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
4216
4217 2009-04-03  Simon Josefsson  <simon@josefsson.org>
4218
4219         * m4/ld-version-script.m4: Add FIXME comment.
4220
4221 2009-04-02  Simon Josefsson  <simon@josefsson.org>
4222
4223         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
4224         SOVERSION variable.
4225
4226 2009-04-02  Bruno Haible  <bruno@clisp.org>
4227
4228         * Makefile (info, html, dvi, pdf): Combine the rules.
4229         Suggested by Jim Meyering.
4230
4231 2009-04-01  Bruno Haible  <bruno@clisp.org>
4232
4233         * Makefile (info, html, dvi, pdf): New targets.
4234         Reported by Reuben Thomas <rrt@sc3d.org>.
4235
4236 2009-04-01  Bruno Haible  <bruno@clisp.org>
4237
4238         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
4239         can be put into PATH.
4240         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
4241
4242 2009-04-01  Bruno Haible  <bruno@clisp.org>
4243
4244         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
4245
4246 2009-04-01  Bruno Haible  <bruno@clisp.org>
4247
4248         Rename module 'visibility'.
4249         * modules/lib-symbol-visibility: Renamed from modules/visibility.
4250         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
4251         * doc/gnulib.texi: Update.
4252         * MODULES.html.sh (Misc): Update.
4253         * NEWS: Mention the change.
4254
4255 2009-04-01  Simon Josefsson  <simon@josefsson.org>
4256
4257         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
4258         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
4259         Eric Blake <ebb9@byu.net> for review.
4260         * MODULES.html.sh: Add lib-msvc-compat.
4261         * doc/gnulib.texi: Link to new section.
4262         * m4/ld-output-def.m4: New file.
4263         * doc/ld-output-def.texi: New file.
4264
4265 2009-04-01  Simon Josefsson  <simon@josefsson.org>
4266
4267         Rename ld-version-script to lib-symbol-versions.  Suggested by
4268         Bruno Haible <bruno@clisp.org>.
4269         * modules/ld-version-script: Renamed to lib-symbol-versions.
4270         * doc/ld-version-script.texi: Fix module name.
4271         * MODULES.html.sh: Add lib-symbol-versions.
4272
4273 2009-03-31  Simon Josefsson  <simon@josefsson.org>
4274
4275         * modules/u64-tests: New file.
4276         * tests/test-u64.c: New file.
4277
4278 2009-03-04  Simon Josefsson  <simon@josefsson.org>
4279
4280         * MODULES.html.sh: Mention u64.
4281         * modules/u64: New module.
4282         * modules/crypto/sha512: Depend on u64 module instead of providing
4283         u64.h.
4284
4285 2009-03-27  Eric Blake  <ebb9@byu.net>
4286
4287         test-strerror: make debugging EAI_SYSTEM easier
4288         * modules/getaddrinfo-tests (Depends-on): Add strerror.
4289         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
4290         failure was EAI_SYSTEM.
4291
4292 2009-03-25  Bruno Haible  <bruno@clisp.org>
4293
4294         Fix a problem with --enable-relocatable on Solaris 7.
4295         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
4296         since 2008-02-24.
4297
4298 2009-03-25  Eric Blake  <ebb9@byu.net>
4299
4300         test-sockets: avoid gcc warning
4301         * tests/test-sockets.c (main): Silence compiler warning.
4302
4303 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
4304
4305         New modules nproc, pthread, contributed by Glen Lenker.
4306
4307         * MODULES.html.sh: Add pthread, nproc.
4308         * lib/nproc.c: New file.
4309         * lib/nproc.h: New file.
4310         * lib/pthread.in.h: New file.
4311         * m4/pthread.m4: New file.
4312         * modules/nproc: New file.
4313         * modules/pthread: New file.
4314
4315 2009-03-24  Simon Josefsson  <simon@josefsson.org>
4316
4317         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
4318         New variable.
4319
4320 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
4321
4322         filevercmp: handle simple~ and numbered.~3~ backup suffixes
4323         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
4324         * tests/test-filevercmp.c: Add tests for backup suffixes.
4325
4326 2009-03-24  Simon Josefsson  <simon@josefsson.org>
4327
4328         * modules/stdlib (Depends-on): Add stdint, needed when defining
4329         struct random_data on, for example, HP-UX 10.20.  Reported by
4330         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4331
4332 2009-03-24  Simon Josefsson  <simon@josefsson.org>
4333
4334         * lib/readline.c (readline): Call fflush on stdout after printing
4335         prompt.
4336
4337 2009-03-20  Bruno Haible  <bruno@clisp.org>
4338
4339         Remove dependency from 'close' module to -lws2_32 on native Windows.
4340         * lib/close-hook.h: New file.
4341         * lib/close-hook.c: New file.
4342         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
4343         w32sock.h.
4344         (_gl_close_fd_maybe_socket): Remove function.
4345         (rpl_close): Invoke execute_all_close_hooks instead of
4346         _gl_close_fd_maybe_socket.
4347         * lib/sockets.c: Include close-hook.h, w32sock.h.
4348         (close_fd_maybe_socket): New function, essentially from lib/close.c.
4349         (close_sockets_hook): New variable.
4350         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
4351         (gl_sockets_cleanup): Unregister it.
4352         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
4353         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
4354         * modules/close-hook: New file.
4355         * modules/close (Files): Remove lib/w32sock.h.
4356         (Depends-on): Add close-hook.
4357         (Link): Remove section.
4358         * modules/sockets (Files): Add lib/w32sock.h.
4359         (Depends-on): Add close-hook.
4360         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
4361         invocation.
4362         * NEWS: Mention that LIB_CLOSE is gone.
4363
4364 2009-03-23  Eric Blake  <ebb9@byu.net>
4365
4366         signal-tests: test previous patch
4367         * tests/test-signal.c: New file.
4368         * modules/signal-tests: Likewise.
4369
4370         signal.h: always support 'volatile sig_atomic_t'
4371         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
4372         (gl_SIGNAL_H_DEFAULTS): Add a default.
4373         * modules/signal (Makefile.am): Substitute if needed.
4374         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
4375         users can blindly add volatile.
4376         * doc/posix-headers/signal.texi (signal.h): Document it.
4377         Reported by Matthew Woehlke.
4378
4379 2009-03-23  Jim Meyering  <meyering@redhat.com>
4380
4381         pathmax: PATH_MAX: use pathconf only when available
4382         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
4383         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
4384         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
4385         This avoids a link failure in a PSP cross-compilation environment
4386         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
4387
4388         * lib/vasnprintf.c (divide): Fix typo in comment.
4389
4390 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4391
4392         * gnulib-tool (func_filter_filelist): Fix comment.
4393
4394 2009-03-20  Bruno Haible  <bruno@clisp.org>
4395
4396         Make sockets.h self-contained.
4397         * lib/sockets.c: Include sockets.h first.
4398         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
4399
4400 2009-03-19  Eric Blake  <ebb9@byu.net>
4401
4402         doc: mention more functions added in cygwin 1.7.0
4403         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
4404         addition.
4405         * doc/posix-functions/log2f.texi: Likewise.
4406
4407 2009-03-19  Jim Meyering  <meyering@redhat.com>
4408
4409         fsusage: avoid syntax error due to statement-before-declaration
4410         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
4411         after all declarations.  Reported by Matthew Woehlke in
4412         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
4413
4414 2009-03-18  Eric Blake  <ebb9@byu.net>
4415
4416         build-aux/compile: sync from automake
4417         * build-aux/compile: New file, from automake.
4418         * config/srclist.txt: Mention build-aux/compile.
4419
4420 2009-03-17  Bruno Haible  <bruno@clisp.org>
4421
4422         * lib/git-merge-changelog.c: Fix typo in comment.
4423         Reported by Reuben Thomas <rrt@sc3d.org>.
4424
4425 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
4426
4427         * m4/regex.m4: update and improve help for
4428         --without-included-regex.
4429
4430 2009-03-17  Simon Josefsson  <simon@josefsson.org>
4431
4432         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
4433         failure on missing include files.
4434
4435 2009-03-17  Eric Blake  <ebb9@byu.net>
4436
4437         doc: mention more functions added in cygwin 1.7.0
4438         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
4439         addition.
4440         * doc/posix-functions/fwscanf.texi: Likewise.
4441         * doc/posix-functions/swprintf.texi: Likewise.
4442         * doc/posix-functions/swscanf.texi: Likewise.
4443         * doc/posix-functions/vfwprintf.texi: Likewise.
4444         * doc/posix-functions/vfwscanf.texi: Likewise.
4445         * doc/posix-functions/vswprintf.texi: Likewise.
4446         * doc/posix-functions/vswscanf.texi: Likewise.
4447         * doc/posix-functions/vwprintf.texi: Likewise.
4448         * doc/posix-functions/vwscanf.texi: Likewise.
4449         * doc/posix-functions/wcscasecmp.texi: Likewise.
4450         * doc/posix-functions/wcsdup.texi: Likewise.
4451         * doc/posix-functions/wcsftime.texi: Likewise.
4452         * doc/posix-functions/wcsncasecmp.texi: Likewise.
4453         * doc/posix-functions/wprintf.texi: Likewise.
4454         * doc/posix-functions/wscanf.texi: Likewise.
4455         * doc/glibc-functions/gethostbyname2.texi: Likewise.
4456
4457 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4458
4459         maint.mk: really add $(AM_MAKEFLAGS)
4460         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
4461         was inadvertently omitted in the last commit.
4462         Spotted by Bruno Haible.
4463
4464         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
4465         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
4466         $(AM_MAKEFLAGS)' rather than plain `make'.
4467
4468         gnulib-tool: execute $MAKE not make
4469         * gnulib-tool: Default $MAKE to 'make'.
4470         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
4471         than make.  Initialize $MAKE in the do-autobuild script.
4472
4473         gnulib-tool: use $MAKE not make in generated files
4474         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
4475         make, in generated files.  Initialize $MAKE in the do-autobuild
4476         script.
4477
4478         * top/GNUmakefile (_have-git-version-gen): Fix typo.
4479
4480         GNUmakefile: disable parallelism only for multiple, recursive targets
4481         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
4482         additions in the Makefile.
4483         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
4484         by Automake.
4485         (.NOTPARALLEL): Only disable parallel builds if multiple targets
4486         are listed on the command line and at least one of them is
4487         listed in $(ALL_RECURSIVE_TARGETS).
4488
4489 2009-03-14  Bruno Haible  <bruno@clisp.org>
4490
4491         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
4492         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
4493         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
4494         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
4495         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
4496         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
4497         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
4498         unistr/u8-uctomb.
4499         * modules/unistr/u8-strchr (Depends-on): Likewise.
4500         * modules/unistr/u8-strrchr (Depends-on): Likewise.
4501         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
4502         unistr/u16-uctomb.
4503         * modules/unistr/u16-strchr (Depends-on): Likewise.
4504         * modules/unistr/u16-strrchr (Depends-on): Likewise.
4505
4506 2009-03-12  Bruno Haible  <bruno@clisp.org>
4507
4508         Work around select() bug on Interix 3.5.
4509         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
4510         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
4511         * m4/select.m4: New file.
4512         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
4513         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
4514         * modules/select (Files): Add m4/select.m4.
4515         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
4516         * modules/nanosleep (Depends-on): Add select.
4517         * modules/poll (Depends-on): Likewise.
4518         * doc/posix-functions/select.texi: Mention the Interix bug.
4519         Reported by Markus Duft <mduft@gentoo.org>.
4520
4521         * lib/select.c: Renamed from lib/winsock-select.c.
4522         * modules/select (Files): Add lib/select.c, remove
4523         lib/winsock-select.c.
4524         (configure.ac): Update.
4525
4526 2009-03-12  Jim Meyering  <meyering@redhat.com>
4527
4528         avoid gcc warnings about unused macro definitions
4529         * lib/readtokens.c (STREQ): Remove unused definition.
4530         * lib/xmalloc.c (SIZE_MAX): Likewise.
4531         * lib/openat-die.c (N_): Likewise.
4532         * lib/mountlist.c (SIZE_MAX): Remove definition.
4533         Instead, include <stdint.h>.
4534         * lib/readutmp.c: Likewise.
4535         * modules/readutmp (Depends-on): Add stdint.
4536         * modules/mountlist (Depends-on): Add stdint.
4537         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
4538
4539 2009-03-10  Bruno Haible  <bruno@clisp.org>
4540
4541         Tests for module 'mbmemcasecoll'.
4542         * modules/mbmemcasecoll-tests: New file.
4543         * tests/test-mbmemcasecoll1.sh: New file.
4544         * tests/test-mbmemcasecoll2.sh: New file.
4545         * tests/test-mbmemcasecoll3.sh: New file.
4546         * tests/test-mbmemcasecoll.c: New file.
4547
4548         New module 'mbmemcasecoll'.
4549         * lib/mbmemcasecoll.h: New file.
4550         * lib/mbmemcasecoll.c: New file.
4551         * modules/mbmemcasecoll: New file.
4552
4553         * tests/test-mbmemcasecmp.h: New file, extracted from
4554         tests/test-mbmemcasecmp.c.
4555         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
4556         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
4557         (main): Update.
4558         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
4559
4560 2009-03-09  Bruno Haible  <bruno@clisp.org>
4561
4562         Tests for module 'mbmemcasecmp'.
4563         * modules/mbmemcasecmp-tests: New file.
4564         * tests/test-mbmemcasecmp1.sh: New file.
4565         * tests/test-mbmemcasecmp2.sh: New file.
4566         * tests/test-mbmemcasecmp3.sh: New file.
4567         * tests/test-mbmemcasecmp.c: New file.
4568
4569         New module 'mbmemcasecmp'.
4570         * lib/mbmemcasecmp.h: New file.
4571         * lib/mbmemcasecmp.c: New file.
4572         * modules/mbmemcasecmp: New file.
4573
4574 2009-03-09  Bruno Haible  <bruno@clisp.org>
4575
4576         Tests for module 'unicase/ulc-casecoll'.
4577         * modules/unicase/ulc-casecoll-tests: New file.
4578         * tests/unicase/test-ulc-casecoll1.sh: New file.
4579         * tests/unicase/test-ulc-casecoll2.sh: New file.
4580         * tests/unicase/test-ulc-casecoll.c: New file.
4581
4582         New module 'unicase/ulc-casecoll'.
4583         * lib/unicase.h (ulc_casecoll): New declaration.
4584         * lib/unicase/ulc-casecoll.c: New file.
4585         * modules/unicase/ulc-casecoll: New file.
4586
4587         New module 'unicase/ulc-casexfrm'.
4588         * lib/unicase.h (ulc_casexfrm): New declaration.
4589         * lib/unicase/ulc-casexfrm.c: New file.
4590         * modules/unicase/ulc-casexfrm: New file.
4591
4592 2009-03-09  Bruno Haible  <bruno@clisp.org>
4593
4594         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
4595         invocations.
4596
4597         * m4/mbscasecmp.m4: Remove file.
4598         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
4599         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
4600
4601         * m4/mbscasestr.m4: Remove file.
4602         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
4603         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
4604
4605         * m4/mbschr.m4: Remove file.
4606         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
4607         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
4608
4609         * m4/mbscspn.m4: Remove file.
4610         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
4611         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
4612
4613         * m4/mbslen.m4: Remove file.
4614         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
4615         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
4616
4617         * m4/mbsncasecmp.m4: Remove file.
4618         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
4619         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
4620
4621         * m4/mbsnlen.m4: Remove file.
4622         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
4623         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
4624
4625         * m4/mbspbrk.m4: Remove file.
4626         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
4627         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
4628
4629         * m4/mbspcasecmp.m4: Remove file.
4630         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
4631         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
4632
4633         * m4/mbsrchr.m4: Remove file.
4634         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
4635         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
4636
4637         * m4/mbssep.m4: Remove file.
4638         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
4639         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
4640
4641         * m4/mbsspn.m4: Remove file.
4642         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
4643         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
4644
4645         * m4/mbsstr.m4: Remove file.
4646         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
4647         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
4648
4649         * m4/mbstok_r.m4: Remove file.
4650         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
4651         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
4652
4653         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
4654
4655         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
4656         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
4657
4658         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
4659
4660 2009-03-08  Bruno Haible  <bruno@clisp.org>
4661
4662         Tests for module 'unicase/ulc-casecmp'.
4663         * modules/unicase/ulc-casecmp-tests: New file.
4664         * tests/unicase/test-ulc-casecmp1.sh: New file.
4665         * tests/unicase/test-ulc-casecmp2.sh: New file.
4666         * tests/unicase/test-ulc-casecmp.c: New file.
4667
4668         New module 'unicase/ulc-casecmp'.
4669         * lib/unicase.h (ulc_casecmp): New declaration.
4670         * lib/unicase/ulc-casecmp.c: New file.
4671         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
4672         'const SRC_UNIT *'.
4673         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
4674         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
4675         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
4676         * modules/unicase/ulc-casecmp: New file.
4677
4678         Tests for module 'unicase/u32-is-cased'.
4679         * modules/unicase/u32-is-cased-tests: New file.
4680         * tests/unicase/test-u32-is-cased.c: New file.
4681
4682         Tests for module 'unicase/u16-is-cased'.
4683         * modules/unicase/u16-is-cased-tests: New file.
4684         * tests/unicase/test-u16-is-cased.c: New file.
4685
4686         Tests for module 'unicase/u8-is-cased'.
4687         * modules/unicase/u8-is-cased-tests: New file.
4688         * tests/unicase/test-u8-is-cased.c: New file.
4689         * tests/unicase/test-is-cased.h: New file.
4690
4691         New module 'unicase/u32-is-cased'.
4692         * lib/unicase/u32-is-cased.c: New file.
4693         * modules/unicase/u32-is-cased: New file.
4694
4695         New module 'unicase/u16-is-cased'.
4696         * lib/unicase/u16-is-cased.c: New file.
4697         * modules/unicase/u16-is-cased: New file.
4698
4699         New module 'unicase/u8-is-cased'.
4700         * lib/unicase/u8-is-cased.c: New file.
4701         * lib/unicase/u-is-cased.h: New file.
4702         * modules/unicase/u8-is-cased: New file.
4703
4704         Tests for module 'unicase/u32-is-casefolded'.
4705         * modules/unicase/u32-is-casefolded-tests: New file.
4706         * tests/unicase/test-u32-is-casefolded.c: New file.
4707
4708         Tests for module 'unicase/u16-is-casefolded'.
4709         * modules/unicase/u16-is-casefolded-tests: New file.
4710         * tests/unicase/test-u16-is-casefolded.c: New file.
4711
4712         Tests for module 'unicase/u8-is-casefolded'.
4713         * modules/unicase/u8-is-casefolded-tests: New file.
4714         * tests/unicase/test-u8-is-casefolded.c: New file.
4715         * tests/unicase/test-is-casefolded.h: New file.
4716
4717         New module 'unicase/u32-is-casefolded'.
4718         * lib/unicase/u32-is-casefolded.c: New file.
4719         * modules/unicase/u32-is-casefolded: New file.
4720
4721         New module 'unicase/u16-is-casefolded'.
4722         * lib/unicase/u16-is-casefolded.c: New file.
4723         * modules/unicase/u16-is-casefolded: New file.
4724
4725         New module 'unicase/u8-is-casefolded'.
4726         * lib/unicase/u8-is-casefolded.c: New file.
4727         * modules/unicase/u8-is-casefolded: New file.
4728
4729         Tests for module 'unicase/u32-is-titlecase'.
4730         * modules/unicase/u32-is-titlecase-tests: New file.
4731         * tests/unicase/test-u32-is-titlecase.c: New file.
4732
4733         Tests for module 'unicase/u16-is-titlecase'.
4734         * modules/unicase/u16-is-titlecase-tests: New file.
4735         * tests/unicase/test-u16-is-titlecase.c: New file.
4736
4737         Tests for module 'unicase/u8-is-titlecase'.
4738         * modules/unicase/u8-is-titlecase-tests: New file.
4739         * tests/unicase/test-u8-is-titlecase.c: New file.
4740         * tests/unicase/test-is-titlecase.h: New file.
4741
4742         New module 'unicase/u32-is-titlecase'.
4743         * lib/unicase/u32-is-titlecase.c: New file.
4744         * modules/unicase/u32-is-titlecase: New file.
4745
4746         New module 'unicase/u16-is-titlecase'.
4747         * lib/unicase/u16-is-titlecase.c: New file.
4748         * modules/unicase/u16-is-titlecase: New file.
4749
4750         New module 'unicase/u8-is-titlecase'.
4751         * lib/unicase/u8-is-titlecase.c: New file.
4752         * modules/unicase/u8-is-titlecase: New file.
4753
4754         Tests for module 'unicase/u32-is-lowercase'.
4755         * modules/unicase/u32-is-lowercase-tests: New file.
4756         * tests/unicase/test-u32-is-lowercase.c: New file.
4757
4758         Tests for module 'unicase/u16-is-lowercase'.
4759         * modules/unicase/u16-is-lowercase-tests: New file.
4760         * tests/unicase/test-u16-is-lowercase.c: New file.
4761
4762         Tests for module 'unicase/u8-is-lowercase'.
4763         * modules/unicase/u8-is-lowercase-tests: New file.
4764         * tests/unicase/test-u8-is-lowercase.c: New file.
4765         * tests/unicase/test-is-lowercase.h: New file.
4766
4767         New module 'unicase/u32-is-lowercase'.
4768         * lib/unicase/u32-is-lowercase.c: New file.
4769         * modules/unicase/u32-is-lowercase: New file.
4770
4771         New module 'unicase/u16-is-lowercase'.
4772         * lib/unicase/u16-is-lowercase.c: New file.
4773         * modules/unicase/u16-is-lowercase: New file.
4774
4775         New module 'unicase/u8-is-lowercase'.
4776         * lib/unicase/u8-is-lowercase.c: New file.
4777         * modules/unicase/u8-is-lowercase: New file.
4778
4779         Tests for module 'unicase/u32-is-uppercase'.
4780         * modules/unicase/u32-is-uppercase-tests: New file.
4781         * tests/unicase/test-u32-is-uppercase.c: New file.
4782
4783         Tests for module 'unicase/u16-is-uppercase'.
4784         * modules/unicase/u16-is-uppercase-tests: New file.
4785         * tests/unicase/test-u16-is-uppercase.c: New file.
4786
4787         Tests for module 'unicase/u8-is-uppercase'.
4788         * modules/unicase/u8-is-uppercase-tests: New file.
4789         * tests/unicase/test-u8-is-uppercase.c: New file.
4790         * tests/unicase/test-is-uppercase.h: New file.
4791
4792         New module 'unicase/u32-is-uppercase'.
4793         * lib/unicase/u32-is-uppercase.c: New file.
4794         * modules/unicase/u32-is-uppercase: New file.
4795
4796         New module 'unicase/u16-is-uppercase'.
4797         * lib/unicase/u16-is-uppercase.c: New file.
4798         * modules/unicase/u16-is-uppercase: New file.
4799
4800         New module 'unicase/u8-is-uppercase'.
4801         * lib/unicase/u8-is-uppercase.c: New file.
4802         * modules/unicase/u8-is-uppercase: New file.
4803
4804         New module 'unicase/u32-is-invariant'.
4805         * lib/unicase/u32-is-invariant.c: New file.
4806         * modules/unicase/u32-is-invariant: New file.
4807
4808         New module 'unicase/u16-is-invariant'.
4809         * lib/unicase/u16-is-invariant.c: New file.
4810         * modules/unicase/u16-is-invariant: New file.
4811
4812         New module 'unicase/u8-is-invariant'.
4813         * lib/unicase/u8-is-invariant.c: New file.
4814         * lib/unicase/invariant.h: New file.
4815         * lib/unicase/u-is-invariant.h: New file.
4816         * modules/unicase/u8-is-invariant: New file.
4817
4818         Tests for module 'unicase/u32-casecoll'.
4819         * modules/unicase/u32-casecoll-tests: New file.
4820         * tests/unicase/test-u32-casecoll.c: New file.
4821
4822         Tests for module 'unicase/u16-casecoll'.
4823         * modules/unicase/u16-casecoll-tests: New file.
4824         * tests/unicase/test-u16-casecoll.c: New file.
4825
4826         Tests for module 'unicase/u8-casecoll'.
4827         * modules/unicase/u8-casecoll-tests: New file.
4828         * tests/unicase/test-u8-casecoll.c: New file.
4829
4830         New module 'unicase/u32-casecoll'.
4831         * lib/unicase/u32-casecoll.c: New file.
4832         * modules/unicase/u32-casecoll: New file.
4833
4834         New module 'unicase/u16-casecoll'.
4835         * lib/unicase/u16-casecoll.c: New file.
4836         * modules/unicase/u16-casecoll: New file.
4837
4838         New module 'unicase/u8-casecoll'.
4839         * lib/unicase/u8-casecoll.c: New file.
4840         * lib/unicase/u-casecoll.h: New file.
4841         * modules/unicase/u8-casecoll: New file.
4842
4843         New module 'unicase/u32-casexfrm'.
4844         * lib/unicase/u32-casexfrm.c: New file.
4845         * modules/unicase/u32-casexfrm: New file.
4846
4847         New module 'unicase/u16-casexfrm'.
4848         * lib/unicase/u16-casexfrm.c: New file.
4849         * modules/unicase/u16-casexfrm: New file.
4850
4851         New module 'unicase/u8-casexfrm'.
4852         * lib/unicase/u8-casexfrm.c: New file.
4853         * lib/unicase/u-casexfrm.h: New file.
4854         * modules/unicase/u8-casexfrm: New file.
4855
4856         Tests for module 'unicase/u32-casecmp'.
4857         * modules/unicase/u32-casecmp-tests: New file.
4858         * tests/unicase/test-u32-casecmp.c: New file.
4859
4860         Tests for module 'unicase/u16-casecmp'.
4861         * modules/unicase/u16-casecmp-tests: New file.
4862         * tests/unicase/test-u16-casecmp.c: New file.
4863
4864         Tests for module 'unicase/u8-casecmp'.
4865         * modules/unicase/u8-casecmp-tests: New file.
4866         * tests/unicase/test-u8-casecmp.c: New file.
4867         * tests/unicase/test-casecmp.h: New file.
4868
4869         New module 'unicase/u32-casecmp'.
4870         * lib/unicase/u32-casecmp.c: New file.
4871         * modules/unicase/u32-casecmp: New file.
4872
4873         New module 'unicase/u16-casecmp'.
4874         * lib/unicase/u16-casecmp.c: New file.
4875         * modules/unicase/u16-casecmp: New file.
4876
4877         New module 'unicase/u8-casecmp'.
4878         * lib/unicase/u8-casecmp.c: New file.
4879         * lib/unicase/u-casecmp.h: New file.
4880         * modules/unicase/u8-casecmp: New file.
4881
4882         Tests for module 'unicase/u32-casefold'.
4883         * modules/unicase/u32-casefold-tests: New file.
4884         * tests/unicase/test-u32-casefold.c: New file.
4885
4886         Tests for module 'unicase/u16-casefold'.
4887         * modules/unicase/u16-casefold-tests: New file.
4888         * tests/unicase/test-u16-casefold.c: New file.
4889
4890         Tests for module 'unicase/u8-casefold'.
4891         * modules/unicase/u8-casefold-tests: New file.
4892         * tests/unicase/test-u8-casefold.c: New file.
4893
4894         New module 'unicase/u32-casefold'.
4895         * lib/unicase/u32-casefold.c: New file.
4896         * modules/unicase/u32-casefold: New file.
4897
4898         New module 'unicase/u16-casefold'.
4899         * lib/unicase/u16-casefold.c: New file.
4900         * modules/unicase/u16-casefold: New file.
4901
4902         New module 'unicase/u8-casefold'.
4903         * lib/unicase/u8-casefold.c: New file.
4904         * lib/unicase/u-casefold.h: New file.
4905         * modules/unicase/u8-casefold: New file.
4906
4907         New module 'unicase/tocasefold'.
4908         * lib/unicase/casefold.h: New file.
4909         * lib/unicase/tocasefold.c: New file.
4910         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
4911         * modules/unicase/tocasefold: New file.
4912
4913         Tests for module 'unicase/u32-totitle'.
4914         * modules/unicase/u32-totitle-tests: New file.
4915         * tests/unicase/test-u32-totitle.c: New file.
4916
4917         Tests for module 'unicase/u16-totitle'.
4918         * modules/unicase/u16-totitle-tests: New file.
4919         * tests/unicase/test-u16-totitle.c: New file.
4920
4921         Tests for module 'unicase/u8-totitle'.
4922         * modules/unicase/u8-totitle-tests: New file.
4923         * tests/unicase/test-u8-totitle.c: New file.
4924
4925         New module 'unicase/u32-totitle'.
4926         * lib/unicase/u32-totitle.c: New file.
4927         * modules/unicase/u32-totitle: New file.
4928
4929         New module 'unicase/u16-totitle'.
4930         * lib/unicase/u16-totitle.c: New file.
4931         * modules/unicase/u16-totitle: New file.
4932
4933         New module 'unicase/u8-totitle'.
4934         * lib/unicase/u8-totitle.c: New file.
4935         * lib/unicase/u-totitle.h: New file.
4936         * modules/unicase/u8-totitle: New file.
4937
4938         Tests for module 'unicase/u32-tolower'.
4939         * modules/unicase/u32-tolower-tests: New file.
4940         * tests/unicase/test-u32-tolower.c: New file.
4941
4942         Tests for module 'unicase/u16-tolower'.
4943         * modules/unicase/u16-tolower-tests: New file.
4944         * tests/unicase/test-u16-tolower.c: New file.
4945
4946         Tests for module 'unicase/u8-tolower'.
4947         * modules/unicase/u8-tolower-tests: New file.
4948         * tests/unicase/test-u8-tolower.c: New file.
4949
4950         New module 'unicase/u32-tolower'.
4951         * lib/unicase/u32-tolower.c: New file.
4952         * modules/unicase/u32-tolower: New file.
4953
4954         New module 'unicase/u16-tolower'.
4955         * lib/unicase/u16-tolower.c: New file.
4956         * modules/unicase/u16-tolower: New file.
4957
4958         New module 'unicase/u8-tolower'.
4959         * lib/unicase/u8-tolower.c: New file.
4960         * modules/unicase/u8-tolower: New file.
4961
4962         Tests for module 'unicase/u32-toupper'.
4963         * modules/unicase/u32-toupper-tests: New file.
4964         * tests/unicase/test-u32-toupper.c: New file.
4965
4966         Tests for module 'unicase/u16-toupper'.
4967         * modules/unicase/u16-toupper-tests: New file.
4968         * tests/unicase/test-u16-toupper.c: New file.
4969
4970         Tests for module 'unicase/u8-toupper'.
4971         * modules/unicase/u8-toupper-tests: New file.
4972         * tests/unicase/test-u8-toupper.c: New file.
4973
4974         New module 'unicase/u32-toupper'.
4975         * lib/unicase/u32-toupper.c: New file.
4976         * modules/unicase/u32-toupper: New file.
4977
4978         New module 'unicase/u16-toupper'.
4979         * lib/unicase/u16-toupper.c: New file.
4980         * modules/unicase/u16-toupper: New file.
4981
4982         New module 'unicase/u8-toupper'.
4983         * lib/unicase/u8-toupper.c: New file.
4984         * modules/unicase/u8-toupper: New file.
4985
4986         New module 'unicase/u32-casemap'.
4987         * lib/unicase/u32-casemap.c: New file.
4988         * modules/unicase/u32-casemap: New file.
4989
4990         New module 'unicase/u16-casemap'.
4991         * lib/unicase/u16-casemap.c: New file.
4992         * modules/unicase/u16-casemap: New file.
4993
4994         New module 'unicase/u8-casemap'.
4995         * lib/unicase/unicasemap.h: New file.
4996         * lib/unicase/u8-casemap.c: New file.
4997         * lib/unicase/u-casemap.h: New file.
4998         * modules/unicase/u8-casemap: New file.
4999
5000         New module 'unicase/special-casing'.
5001         * lib/unicase/special-casing.h: New file.
5002         * lib/unicase/special-casing.c: New file.
5003         * lib/unicase/special-casing-table.gperf: New file, generated by
5004         gen-uni-tables.c.
5005         * modules/unicase/special-casing: New file.
5006
5007         Tests for module 'unicase/locale-language'.
5008         * modules/unicase/locale-language-tests: New file.
5009         * tests/unicase/test-locale-language.sh: New file.
5010         * tests/unicase/test-locale-language.c: New file.
5011
5012         New module 'unicase/locale-language'.
5013         * lib/unicase/locale-language.c: New file.
5014         * lib/unicase/locale-languages.gperf: New file.
5015         * modules/unicase/locale-language: New file.
5016
5017         Generate more tables for case conversion and case folding.
5018         * lib/gen-uni-tables.c (SCC_*): New enum items.
5019         (struct special_casing_rule): New type.
5020         (casing_rules, num_casing_rules, allocated_casing_rules): New
5021         variables.
5022         (add_casing_rule, fill_casing_rules): New functions.
5023         (struct casefold_rule): New type.
5024         (casefolding_rules, num_casefolding_rules,
5025         allocated_casefolding_rules): New variables.
5026         (fill_casefolding_rules): New function.
5027         (unicode_casefold): New variable.
5028         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
5029         sort_casing_rules, output_casing_rules): New functions.
5030         (main): Accept to more arguments: SpecialCasing.txt and
5031         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
5032         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
5033         Output mapping for casefolding.
5034
5035         * lib/unicase.h: Include stdbool.h, uninorm.h.
5036         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
5037         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
5038         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
5039         arguments.
5040         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
5041         resultp arguments.
5042         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
5043         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
5044         resultp arguments.
5045         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
5046         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
5047         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
5048         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
5049         declarations.
5050         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
5051
5052 2009-03-08  Bruno Haible  <bruno@clisp.org>
5053
5054         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
5055         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
5056         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
5057         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
5058
5059 2009-03-07  Bruno Haible  <bruno@clisp.org>
5060
5061         Adjust u*_normcmp, u*_normcoll API.
5062         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
5063         u16_normcoll, u32_normcoll): Change failure conventions.
5064         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
5065         errno and return -1.
5066         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
5067
5068 2009-03-07  Bruno Haible  <bruno@clisp.org>
5069
5070         Tests for module 'uninorm/u32-normcoll'.
5071         * modules/uninorm/u32-normcoll-tests: New file.
5072         * tests/uninorm/test-u32-normcoll.c: New file.
5073
5074         Tests for module 'uninorm/u16-normcoll'.
5075         * modules/uninorm/u16-normcoll-tests: New file.
5076         * tests/uninorm/test-u16-normcoll.c: New file.
5077
5078         Tests for module 'uninorm/u8-normcoll'.
5079         * modules/uninorm/u8-normcoll-tests: New file.
5080         * tests/uninorm/test-u8-normcoll.c: New file.
5081
5082 2009-03-07  Bruno Haible  <bruno@clisp.org>
5083
5084         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
5085         tests/uninorm/test-u32-normcmp.c.
5086         * tests/uninorm/test-u32-normcmp.c: Include it.
5087         (test_nonascii): New function, extracted from main. Add some more
5088         tests.
5089         (main): Invoke test_ascii and test_nonascii.
5090         * modules/uninorm/u32-normcmp-tests (Files): Add
5091         tests/uninorm/test-u32-normcmp.h.
5092         (Depends-on): Remove uninorm/u32-normcmp.
5093
5094         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
5095         tests/uninorm/test-u16-normcmp.c.
5096         * tests/uninorm/test-u16-normcmp.c: Include it.
5097         (test_nonascii): New function, extracted from main. Add some more
5098         tests.
5099         (main): Invoke test_ascii and test_nonascii.
5100         * modules/uninorm/u16-normcmp-tests (Files): Add
5101         tests/uninorm/test-u16-normcmp.h.
5102         (Depends-on): Remove uninorm/u16-normcmp.
5103
5104         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
5105         tests/uninorm/test-u8-normcmp.c.
5106         * tests/uninorm/test-u8-normcmp.c: Include it.
5107         (test_nonascii): New function, extracted from main. Add some more
5108         tests.
5109         (main): Invoke test_ascii and test_nonascii.
5110         * modules/uninorm/u8-normcmp-tests (Files): Add
5111         tests/uninorm/test-u8-normcmp.h.
5112         (Depends-on): Remove uninorm/u8-normcmp.
5113
5114 2009-03-07  Bruno Haible  <bruno@clisp.org>
5115
5116         New module 'uninorm/u32-normcoll'.
5117         * lib/uninorm/u32-normcoll.c: New file.
5118         * modules/uninorm/u32-normcoll: New file.
5119
5120         New module 'uninorm/u16-normcoll'.
5121         * lib/uninorm/u16-normcoll.c: New file.
5122         * modules/uninorm/u16-normcoll: New file.
5123
5124         New module 'uninorm/u8-normcoll'.
5125         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
5126         declarations.
5127         * lib/uninorm/u8-normcoll.c: New file.
5128         * lib/uninorm/u-normcoll.h: New file.
5129         * modules/uninorm/u8-normcoll: New file.
5130
5131         New module 'uninorm/u32-normxfrm'.
5132         * lib/uninorm/u32-normxfrm.c: New file.
5133         * modules/uninorm/u32-normxfrm: New file.
5134
5135         New module 'uninorm/u16-normxfrm'.
5136         * lib/uninorm/u16-normxfrm.c: New file.
5137         * modules/uninorm/u16-normxfrm: New file.
5138
5139         New module 'uninorm/u8-normxfrm'.
5140         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
5141         declarations.
5142         * lib/uninorm/u8-normxfrm.c: New file.
5143         * lib/uninorm/u-normxfrm.h: New file.
5144         * modules/uninorm/u8-normxfrm: New file.
5145
5146 2009-03-07  Bruno Haible  <bruno@clisp.org>
5147
5148         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
5149         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
5150         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
5151
5152 2009-03-07  Bruno Haible  <bruno@clisp.org>
5153
5154         New module 'memxfrm'.
5155         * lib/memxfrm.h: New file.
5156         * lib/memxfrm.c: New file.
5157         * modules/memxfrm: New file.
5158
5159 2009-03-07  Bruno Haible  <bruno@clisp.org>
5160
5161         New module 'memcmp2'.
5162         * lib/memcmp2.h: New file.
5163         * lib/memcmp2.c: New file.
5164         * modules/memcmp2: New file.
5165
5166 2009-03-07  Bruno Haible  <bruno@clisp.org>
5167
5168         Tests for module 'uninorm/decomposing-form'.
5169         * modules/uninorm/decomposing-form-tests: New file.
5170         * tests/uninorm/test-decomposing-form.c: New file.
5171
5172         New module 'uninorm/decomposing-form'.
5173         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
5174         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
5175         Add 'decomposing_variant' field.
5176         * lib/uninorm/decomposing-form.c: New file.
5177         * lib/uninorm/nfc.c (uninorm_nfc): Update.
5178         * lib/uninorm/nfd.c (uninorm_nfd): Update.
5179         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
5180         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
5181         * modules/uninorm/decomposing-form: New file.
5182         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
5183         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
5184
5185 2009-03-07  Bruno Haible  <bruno@clisp.org>
5186
5187         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
5188         strings.
5189
5190 2009-03-06  Bruno Haible  <bruno@clisp.org>
5191
5192         Tests for module 'uninorm/u32-normcmp'.
5193         * tests/uninorm/test-u32-normcmp.c: New file.
5194         * modules/uninorm/u32-normcmp-tests: New file.
5195
5196         Tests for module 'uninorm/u16-normcmp'.
5197         * tests/uninorm/test-u16-normcmp.c: New file.
5198         * modules/uninorm/u16-normcmp-tests: New file.
5199
5200         Tests for module 'uninorm/u8-normcmp'.
5201         * tests/uninorm/test-u8-normcmp.c: New file.
5202         * modules/uninorm/u8-normcmp-tests: New file.
5203
5204         New module 'uninorm/u32-normcmp'.
5205         * lib/uninorm/u32-normcmp.c: New file.
5206         * modules/uninorm/u32-normcmp: New file.
5207
5208         New module 'uninorm/u16-normcmp'.
5209         * lib/uninorm/u16-normcmp.c: New file.
5210         * modules/uninorm/u16-normcmp: New file.
5211
5212         New module 'uninorm/u8-normcmp'.
5213         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
5214         declarations.
5215         * lib/uninorm/u8-normcmp.c: New file.
5216         * lib/uninorm/u-normcmp.h: New file.
5217         * modules/uninorm/u8-normcmp: New file.
5218
5219 2009-03-06  Bruno Haible  <bruno@clisp.org>
5220
5221         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
5222         Reported by Eric Blake.
5223
5224 2009-03-06  Eric Blake  <ebb9@byu.net>
5225             Bruno Haible  <bruno@clisp.org>
5226
5227         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
5228         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
5229         condition.
5230         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
5231         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
5232         condition.
5233         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
5234
5235 2009-03-06  Eric Blake  <ebb9@byu.net>
5236
5237         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
5238         to avoid compiler warnings.
5239         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
5240
5241 2009-03-05  Bruno Haible  <bruno@clisp.org>
5242
5243         * tests/test-ftell.c (main): Disable test beyond end of file on
5244         FreeMiNT.
5245         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
5246
5247 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
5248
5249         * lib/filevercmp.c: Move hidden files up in ordering.
5250         * tests/test-filevercmp.c: Add tests for hidden files.
5251
5252 2009-03-04  Bruno Haible  <bruno@clisp.org>
5253
5254         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
5255         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
5256         AM_CFLAGS.
5257         Reported by Simon Josefsson.
5258
5259 2009-03-03  Bruno Haible  <bruno@clisp.org>
5260
5261         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
5262         Reported by Simon Josefsson.
5263
5264         * doc/ld-version-script.texi: Update node reference.
5265
5266 2009-03-03  Bruno Haible  <bruno@clisp.org>
5267
5268         * modules/visibility (License): Change to 'unlimited'.
5269         Suggested by Simon Josefsson.
5270
5271 2009-03-03  Jim Meyering  <meyering@redhat.com>
5272
5273         unlinkdir: cannot_unlink_dir may modify process state
5274         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
5275         it's neither thread-safe nor appropriate for use in a library.
5276
5277 2009-03-03  Eric Blake  <ebb9@byu.net>
5278
5279         test-closein: silence test under Darwin
5280         * tests/test-closein.sh: Ignore stderr from cat, since we don't
5281         care if it dies from EPIPE or EBADF.
5282
5283 2009-03-03  Bruno Haible  <bruno@clisp.org>
5284
5285         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
5286         earlier.
5287         * doc/visibility.texi: Fix @node and @section.
5288
5289 2009-03-03  Simon Josefsson  <simon@josefsson.org>
5290
5291         * doc/gnulib.texi: Link to sections for ld version script and
5292         visibility.
5293         * doc/visibility.texi: Add @node and @section.
5294         * modules/ld-version-script: New module.
5295         * m4/ld-version-script.m4: New file.
5296         * doc/ld-version-script.texi: New file.
5297
5298 2009-03-02  David Lutterkort  <lutter@redhat.com>
5299
5300         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
5301         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5302
5303 2009-03-02  Bruno Haible  <bruno@clisp.org>
5304
5305         * doc/visibility.texi: Mention libtool's -export-symbols option.
5306
5307 2009-03-02  Jim Meyering  <meyering@redhat.com>
5308
5309         announce-gen: new option: --no-print-checksums
5310         * build-aux/announce-gen (usage): Describe it.
5311         (print_checksums): Print a newline here, not in the [*] footnote.
5312         (main): Honor it.
5313
5314 2009-03-01  Bruno Haible  <bruno@clisp.org>
5315
5316         Use socklen_t in the native Windows replacements prototypes.
5317         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
5318         instead of 'int'.
5319         * lib/getsockopt.c (rpl_getsockopt): Likewise.
5320         * lib/setsockopt.c (rpl_setsockopt): Likewise.
5321         * modules/getsockopt (Depends-on): Add socklen.
5322         * modules/setsockopt (Depends-on): Add socklen.
5323
5324 2009-03-01  Bruno Haible  <bruno@clisp.org>
5325
5326         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
5327         least 4.2.
5328
5329 2009-03-01  Eric Blake  <ebb9@byu.net>
5330             Bruno Haible  <bruno@clisp.org>
5331
5332         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
5333         error messages.
5334         * lib/wait-process.c (wait_subprocess): Omit error message about
5335         deadly signal sent to the child of termsigp != NULL.
5336
5337 2009-03-01  Eric Blake  <ebb9@byu.net>
5338
5339         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
5340
5341 2009-03-01  Bruno Haible  <bruno@clisp.org>
5342
5343         Avoid a gcc warning.
5344         * tests/test-sched.c (b): Make global.
5345         Reported by Eric Blake.
5346
5347 2009-01-19  Martin Lambers  <marlam@marlam.de>
5348
5349         Provide POSIX semantics for socket timeout options on W32.
5350         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
5351         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
5352         * modules/setsockopt: Depend on sys_time module for struct timeval.
5353         * modules/getsockopt: Depend on sys_time module for struct timeval.
5354
5355 2009-03-01  Simon Josefsson  <simon@josefsson.org>
5356
5357         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
5358         __USE_GNU, for consistency with netdb.in.h.
5359         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
5360
5361 2009-03-01  Bruno Haible  <bruno@clisp.org>
5362
5363         More support for FreeMiNT.
5364         * lib/fseeko.c (rpl_fseeko): Complete last commit.
5365         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
5366
5367 2009-03-01  Bruno Haible  <bruno@clisp.org>
5368
5369         More support for FreeMiNT.
5370         * lib/fpurge.c (fpurge): Correct last commit.
5371         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
5372
5373 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5374
5375         Fix unportable awk script in vc-list-files.
5376         * build-aux/vc-list-files: In the replacement awk script, use
5377         substr with a second argument of 1, not zero.
5378         Report by Simon Josefsson.
5379
5380 2009-02-28  Bruno Haible  <bruno@clisp.org>
5381
5382         More support for FreeMiNT.
5383         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
5384         to FreeMiNT today.
5385         * lib/fwriting.c (fwriting): Likewise.
5386         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
5387
5388 2009-02-28  Bruno Haible  <bruno@clisp.org>
5389
5390         * tests/test-freadseek.c (main): Disable test beyond end of file on
5391         FreeMiNT.
5392         * tests/test-ftello.c (main): Likewise.
5393         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
5394
5395 2009-02-28  Bruno Haible  <bruno@clisp.org>
5396
5397         Add tentative support for FreeMiNT.
5398         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
5399         * lib/fpurge.c (fpurge): Likewise.
5400         * lib/freadable.c (freadable): Likewise.
5401         * lib/freading.c (freading): Likewise.
5402         * lib/freadptr.c (freadptr): Likewise.
5403         * lib/freadseek.c (freadptrinc): Likewise.
5404         * lib/fseeko.c (rpl_fseeko): Likewise.
5405         * lib/fseterr.c (fseterr): Likewise.
5406         * lib/fwritable.c (fwritable): Likewise.
5407         * lib/fwriting.c (fwriting): Likewise.
5408         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
5409         Hourihane.
5410         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
5411
5412 2009-02-28  Bruno Haible  <bruno@clisp.org>
5413
5414         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
5415         SIGCHLD.
5416         Reported by Jim Meyering.
5417
5418 2009-02-28  Bruno Haible  <bruno@clisp.org>
5419
5420         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
5421         Mention the results of these tests on various platforms.
5422         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
5423         order.
5424         * doc/posix-functions/printf.texi: Likewise.
5425         * doc/posix-functions/snprintf.texi: Likewise.
5426         * doc/posix-functions/sprintf.texi: Likewise.
5427         * doc/posix-functions/vfprintf.texi: Likewise.
5428         * doc/posix-functions/vprintf.texi: Likewise.
5429         * doc/posix-functions/vsnprintf.texi: Likewise.
5430         * doc/posix-functions/vsprintf.texi: Likewise.
5431         * doc/glibc-functions/obstack_printf.texi: Likewise.
5432         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
5433
5434 2009-02-28  Bruno Haible  <bruno@clisp.org>
5435
5436         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
5437         Reported by Loïc Minier <lool@dooz.org>.
5438
5439 2009-02-27  Bruno Haible  <bruno@clisp.org>
5440
5441         * gnulib-tool (func_import): Make the sed expression used to create the
5442         sed script for updating the .gitignore file POSIX compliant.
5443         Reported by Eric Blake.
5444
5445 2009-02-27  Bruno Haible  <bruno@clisp.org>
5446
5447         * gnulib-tool (sed): Don't alias as "sed --posix".
5448         Reported by Eric Blake.
5449
5450 2009-02-27  Bruno Haible  <bruno@clisp.org>
5451
5452         Avoid test link errors.
5453         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
5454         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
5455         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
5456         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
5457         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5458
5459 2009-02-27  Bruno Haible  <bruno@clisp.org>
5460
5461         Avoid spurious "(cached)" in configure output.
5462         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
5463         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
5464         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
5465         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
5466         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
5467         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
5468         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
5469         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
5470         Reported by Eric Blake.
5471
5472 2009-02-27  Eric Blake  <ebb9@byu.net>
5473
5474         printf: fix regression in previous patch
5475         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
5476
5477 2009-02-27  Bruno Haible  <bruno@clisp.org>
5478
5479         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
5480         value.
5481         * lib/stdint.in.h: Likewise.
5482         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
5483
5484 2009-02-27  Eric Blake  <ebb9@byu.net>
5485
5486         doc: mention more functions added in cygwin 1.7.0
5487         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
5488         addition.
5489         * doc/posix-functions/open_wmemstream.texi: Likewise.
5490         * doc/posix-functions/wcsnlen.texi: Likewise.
5491         * doc/posix-functions/wcsnrtombs.texi: Likewise.
5492         * doc/posix-functions/wcstod.texi: Likewise.
5493         * doc/posix-functions/wcstof.texi: Likewise.
5494         * doc/posix-functions/wcstoimax.texi: Likewise.
5495         * doc/posix-functions/wcstok.texi: Likewise.
5496         * doc/posix-functions/wcstoumax.texi: Likewise.
5497
5498         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
5499         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
5500         * doc/posix-functions/fprintf.texi: Update.
5501         * doc/posix-functions/printf.texi: Update.
5502         * doc/posix-functions/snprintf.texi: Update.
5503         * doc/posix-functions/sprintf.texi: Update.
5504         * doc/posix-functions/vfprintf.texi: Update.
5505         * doc/posix-functions/vprintf.texi: Update.
5506         * doc/posix-functions/vsnprintf.texi: Update.
5507         * doc/posix-functions/vsprintf.texi: Update.
5508         * doc/glibc-functions/obstack_printf.texi: Update.
5509         * doc/glibc-functions/obstack_vprintf.texi: Update.
5510
5511 2009-02-26  Eric Blake  <ebb9@byu.net>
5512
5513         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
5514         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
5515         compilation bug by using runtime conversion.
5516         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
5517         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
5518         * modules/ceill-tests (Files): Use nan.h.
5519         * modules/floorl-tests (Files): Likewise.
5520         * modules/frexpl-tests (Files): Likewise.
5521         * modules/isnanl-tests (Files): Likewise.
5522         * modules/ldexpl-tests (Files): Likewise.
5523         * modules/roundl-tests (Files): Likewise.
5524         * modules/truncl-tests (Files): Likewise.
5525         * tests/test-ceill.c (main): Use a working NaN.
5526         * tests/test-floorl.c (main): Likewise.
5527         * tests/test-frexpl.c (main): Likewise.
5528         * tests/test-isnan.c (test_long_double): Likewise.
5529         * tests/test-isnanl.h (main): Likewise.
5530         * tests/test-ldexpl.h (main): Likewise.
5531         * tests/test-roundl.h (main): Likewise.
5532         * tests/test-truncl.h (main): Likewise.
5533         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
5534
5535 2009-02-26  Eric Blake  <ebb9@byu.net>
5536             Bruno Haible  <bruno@clisp.org>
5537
5538         Work around a *printf bug with %ls on Solaris.
5539         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
5540         precision is specified, sprintf stops converting the wide string
5541         argument when the number of bytes that have been produced by this
5542         conversion equals or exceeds the precision.
5543         * doc/posix-functions/fprintf.texi: Update.
5544         * doc/posix-functions/printf.texi: Update.
5545         * doc/posix-functions/snprintf.texi: Update.
5546         * doc/posix-functions/sprintf.texi: Update.
5547         * doc/posix-functions/vfprintf.texi: Update.
5548         * doc/posix-functions/vprintf.texi: Update.
5549         * doc/posix-functions/vsnprintf.texi: Update.
5550         * doc/posix-functions/vsprintf.texi: Update.
5551         * doc/glibc-functions/obstack_printf.texi: Update.
5552         * doc/glibc-functions/obstack_vprintf.texi: Update.
5553
5554 2009-02-26  Eric Blake  <ebb9@byu.net>
5555
5556         stdlib: favor compiler check of random.h
5557         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
5558         to avoid an ObjC random.h installed by Swarm.
5559
5560 2009-02-26  Bruno Haible  <bruno@clisp.org>
5561
5562         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
5563         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
5564         Reported by Gary V. Vaughan <gary@gnu.org>.
5565
5566 2009-02-26  Bruno Haible  <bruno@clisp.org>
5567
5568         Fix *printf behaviour regarding the %ls directive.
5569         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
5570         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
5571         NEED_PRINTF_DIRECTIVE_LS.
5572         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
5573         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
5574         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5575         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
5576         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
5577         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
5578         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
5579         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5580         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5581         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5582         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5583         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
5584         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5585         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5586         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5587         * doc/posix-functions/fprintf.texi: Update.
5588         * doc/posix-functions/printf.texi: Update.
5589         * doc/posix-functions/snprintf.texi: Update.
5590         * doc/posix-functions/sprintf.texi: Update.
5591         * doc/posix-functions/vfprintf.texi: Update.
5592         * doc/posix-functions/vprintf.texi: Update.
5593         * doc/posix-functions/vsnprintf.texi: Update.
5594         * doc/posix-functions/vsprintf.texi: Update.
5595         * doc/glibc-functions/obstack_printf.texi: Update.
5596         * doc/glibc-functions/obstack_vprintf.texi: Update.
5597         Reported by Eric Blake.
5598
5599 2009-02-25  Bruno Haible  <bruno@clisp.org>
5600
5601         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
5602         with known value.
5603         Reported by Gary V. Vaughan <gary@gnu.org>.
5604
5605 2009-02-25  Bruno Haible  <bruno@clisp.org>
5606
5607         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
5608         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
5609         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
5610         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
5611         Reported by Gary V. Vaughan <gary@gnu.org>.
5612
5613 2009-02-25  Bruno Haible  <bruno@clisp.org>
5614
5615         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
5616         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
5617         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
5618         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
5619         Reported by Gary V. Vaughan <gary@gnu.org>.
5620
5621 2009-02-25  Eric Blake  <ebb9@byu.net>
5622
5623         tests: skip fseek/ftell tests if ungetc is broken
5624         * m4/ungetc.m4: New file.
5625         * modules/fseek-tests: Split test, so ungetc dependency is
5626         separate from rest of test.
5627         * modules/fseeko-tests: Likewise.
5628         * modules/ftell-tests: Likewise.
5629         * modules/ftello-tests: Likewise.
5630         * tests/test-fseek.c (main): Isolate ungetc dependency.
5631         * tests/test-fseeko.c (main): Likewise.
5632         * tests/test-ftell.c (main): Likewise.
5633         * tests/test-ftello.c (main): Likewise.
5634         * tests/test-fseek2.sh: New file.
5635         * tests/test-fseeko2.sh: Likewise.
5636         * tests/test-ftell2.sh: Likewise.
5637         * tests/test-ftello2.sh: Likewise.
5638
5639 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
5640
5641         test-getaddrinfo: fix usage of skip return code 77
5642         * tests/test-gettaddrinfo.c: Return skip code 77 only
5643         for first occurance of skip (4x77 is not 77)
5644
5645 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
5646
5647         strtod: avoid C99 decl-after-statement
5648         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
5649
5650 2009-02-24  Eric Blake  <ebb9@byu.net>
5651
5652         strtod: detect HP-UX 11.31 bug
5653         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
5654         Reported by Gary V. Vaughan.
5655
5656 2009-02-23  Bruno Haible  <bruno@clisp.org>
5657
5658         Fix invalid read past end of memory block.
5659         * lib/vasnprintf.c (DCHAR_SET): Define.
5660         (local_wcslen): Define only when needed.
5661         (local_strnlen, local_wcsnlen): New functions.
5662         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
5663         directives that involve a conversion ourselves.
5664         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
5665         wcsnlen, mbrtowc, wcrtomb.
5666         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
5667         * tests/test-vasprintf-posix.c (test_function): Likewise.
5668         * tests/test-snprintf-posix.h (test_function): Likewise.
5669         * tests/test-sprintf-posix.h (test_function): Likewise.
5670         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5671
5672 2009-02-22  Bruno Haible  <bruno@clisp.org>
5673
5674         Implement new clarified decomposition of Hangul syllables.
5675         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
5676         of type LTV, return only a pairwise decomposition.
5677         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
5678         Likewise.
5679         * tests/uninorm/test-decomposition.c (main): Updated expected result.
5680         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
5681         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
5682
5683 2009-02-22  Bruno Haible  <bruno@clisp.org>
5684
5685         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
5686         zero-length results and shrink excess allocated memory.
5687         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
5688         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
5689         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
5690         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
5691         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
5692         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
5693         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
5694         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
5695         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
5696         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
5697         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
5698         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
5699
5700 2009-02-21  Bruno Haible  <bruno@clisp.org>
5701
5702         * doc/gnulib.texi: Include safe-alloc.texi earlier.
5703         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
5704         spaces after a period. Put a space between a macro name and its
5705         argument list. Trivial rewordings.
5706         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
5707         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
5708         (main): Return 0 explicitly.
5709
5710 2009-02-21  Bruno Haible  <bruno@clisp.org>
5711
5712         Tests for module 'uninorm/filter'.
5713         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
5714         * modules/uninorm/filter-tests: New file.
5715
5716         New module 'uninorm/filter'.
5717         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
5718         uninorm_filter_flush, uninorm_filter_free): New declarations.
5719         * lib/uninorm/uninorm-filter.c: New file.
5720         * modules/uninorm/filter: New file.
5721
5722 2009-02-21  Bruno Haible  <bruno@clisp.org>
5723
5724         Tests for module 'uninorm/nfkc'.
5725         * tests/uninorm/test-nfkc.c: New file.
5726         * tests/uninorm/test-u8-nfkc.c: New file.
5727         * tests/uninorm/test-u16-nfkc.c: New file.
5728         * tests/uninorm/test-u32-nfkc.c: New file.
5729         * tests/uninorm/test-u32-nfkc-big.sh: New file.
5730         * tests/uninorm/test-u32-nfkc-big.c: New file.
5731         * modules/uninorm/nfkc-tests: New file.
5732
5733         New module 'uninorm/nfkc'.
5734         * lib/uninorm/nfkc.c: New file.
5735         * modules/uninorm/nfkc: New file.
5736
5737         Tests for module 'uninorm/nfkd'.
5738         * tests/uninorm/test-nfkd.c: New file.
5739         * tests/uninorm/test-u8-nfkd.c: New file.
5740         * tests/uninorm/test-u16-nfkd.c: New file.
5741         * tests/uninorm/test-u32-nfkd.c: New file.
5742         * tests/uninorm/test-u32-nfkd-big.sh: New file.
5743         * tests/uninorm/test-u32-nfkd-big.c: New file.
5744         * modules/uninorm/nfkd-tests: New file.
5745
5746         New module 'uninorm/nfkd'.
5747         * lib/uninorm/nfkd.c: New file.
5748         * modules/uninorm/nfkd: New file.
5749
5750         Tests for module 'uninorm/nfc'.
5751         * tests/uninorm/test-nfc.c: New file.
5752         * tests/uninorm/test-u8-nfc.c: New file.
5753         * tests/uninorm/test-u16-nfc.c: New file.
5754         * tests/uninorm/test-u32-nfc.c: New file.
5755         * tests/uninorm/test-u32-nfc-big.sh: New file.
5756         * tests/uninorm/test-u32-nfc-big.c: New file.
5757         * modules/uninorm/nfc-tests: New file.
5758
5759         New module 'uninorm/nfc'.
5760         * lib/uninorm/nfc.c: New file.
5761         * modules/uninorm/nfc: New file.
5762
5763         Tests for module 'uninorm/nfd'.
5764         * tests/uninorm/test-nfd.c: New file.
5765         * tests/uninorm/test-u8-nfd.c: New file.
5766         * tests/uninorm/test-u16-nfd.c: New file.
5767         * tests/uninorm/test-u32-nfd.c: New file.
5768         * tests/uninorm/test-u32-nfd-big.sh: New file.
5769         * tests/uninorm/test-u32-nfd-big.c: New file.
5770         * tests/uninorm/test-u32-normalize-big.h: New file.
5771         * tests/uninorm/test-u32-normalize-big.c: New file.
5772         * tests/uninorm/NormalizationTest.txt: New file, created from
5773         Unicode 5.1.0 NormalizationTest.txt.
5774         * modules/uninorm/nfd-tests: New file.
5775
5776         New module 'uninorm/nfd'.
5777         * lib/uninorm/nfd.c: New file.
5778         * modules/uninorm/nfd: New file.
5779
5780         New module 'uninorm/u32-normalize'.
5781         * lib/uninorm/u32-normalize.c: New file.
5782         * modules/uninorm/u32-normalize: New file.
5783
5784         New module 'uninorm/u16-normalize'.
5785         * lib/uninorm/u16-normalize.c: New file.
5786         * modules/uninorm/u16-normalize: New file.
5787
5788         New module 'uninorm/u8-normalize'.
5789         * lib/uninorm/u8-normalize.c: New file.
5790         * lib/uninorm/normalize-internal.h: New file.
5791         * lib/uninorm/u-normalize-internal.h: New file.
5792         * modules/uninorm/u8-normalize: New file.
5793
5794         New module 'uninorm/decompose-internal'.
5795         * lib/uninorm/decompose-internal.c: New file.
5796         * modules/uninorm/decompose-internal: New file.
5797
5798         Tests for module 'uninorm/composition'.
5799         * tests/uninorm/test-composition.c: New file.
5800         * modules/uninorm/composition-tests: New file.
5801
5802         New module 'uninorm/composition'.
5803         * lib/uninorm/composition.c: New file.
5804         * lib/uninorm/composition-table.gperf: New file, generated by
5805         gen-uni-tables.
5806         * modules/uninorm/composition: New file.
5807
5808         Tests for module 'uninorm/compat-decomposition'.
5809         * tests/uninorm/test-compat-decomposition.c: New file.
5810         * modules/uninorm/compat-decomposition-tests: New file.
5811
5812         New module 'uninorm/compat-decomposition'.
5813         * lib/uninorm/decompose-internal.h: New file.
5814         * lib/uninorm/compat-decomposition.c: New file.
5815         * modules/uninorm/compat-decomposition: New file.
5816
5817         Tests for module 'uninorm/canonical-decomposition'.
5818         * tests/uninorm/test-canonical-decomposition.c: New file.
5819         * modules/uninorm/canonical-decomposition-tests: New file.
5820
5821         New module 'uninorm/canonical-decomposition'.
5822         * lib/uninorm/canonical-decomposition.c: New file.
5823         * modules/uninorm/canonical-decomposition: New file.
5824
5825         Tests for module 'uninorm/decomposition'.
5826         * tests/uninorm/test-decomposition.c: New file.
5827         * modules/uninorm/decomposition-tests: New file.
5828
5829         New module 'uninorm/decomposition'.
5830         * lib/uninorm/decomposition.c: New file.
5831         * modules/uninorm/decomposition: New file.
5832
5833         New module 'uninorm/decomposition-table'.
5834         * lib/uninorm/decomposition-table.h: New file.
5835         * lib/uninorm/decomposition-table.c: New file.
5836         * lib/uninorm/decomposition-table1.h: New file, generated by
5837         gen-uni-tables.
5838         * lib/uninorm/decomposition-table2.h: New file, generated by
5839         gen-uni-tables.
5840         * modules/uninorm/decomposition-table: New file.
5841
5842         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
5843         (UC_DECOMP_*): New enumeration items.
5844         (get_decomposition): New function.
5845         (struct decomp_table): New type.
5846         (output_decomposition, output_decomposition_tables): New functions.
5847         (unicode_composition_exclusions): New variable.
5848         (fill_composition_exclusions, debug_output_composition_tables): New
5849         functions.
5850         (main): Accept one more argument. Invoke fill_composition_exclusions.
5851         Output decomposition and composition tables.
5852
5853         New module 'uninorm/base'.
5854         * lib/uninorm.h: New file.
5855         * lib/unictype.h: Update comment.
5856         * modules/uninorm/base: New file.
5857
5858 2009-02-21  David Lutterkort  <lutter@redhat.com>
5859
5860         Tests for module 'safe-alloc'.
5861         * tests/test-safe-alloc.c: New file.
5862         * modules/safe-alloc-tests: New file.
5863
5864         New module 'safe-alloc'.
5865         * lib/safe-alloc.h: New file.
5866         * lib/safe-alloc.c: New file.
5867         * m4/safe-alloc.m4: New file.
5868         * modules/safe-alloc: New file.
5869         * doc/safe-alloc.texi: New file.
5870         * doc/gnulib.texi: Include it.
5871         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
5872         safe-alloc.
5873
5874 2009-02-18  Bruno Haible  <bruno@clisp.org>
5875
5876         Fix link error on non-glibc systems.
5877         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
5878         variable.
5879         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5880
5881 2009-02-18  Jim Meyering  <meyering@redhat.com>
5882
5883         fts: avoid used-uninitialized error due to recent change
5884         * lib/fts.c (fts_read): Guard uses of the new member,
5885         parent->fts_n_dirs_remaining, since it's not relevant for
5886         the parent of a directory specified on the command-line.
5887
5888 2009-02-17  James Youngman  <jay@gnu.org>
5889             Bruno Haible  <bruno@clisp.org>
5890
5891         * m4/include_next.m4: Reformulate comment.
5892
5893 2009-02-16  Jim Meyering  <meyering@redhat.com>
5894
5895         fts: add #if guards so that the fts_lgpl module still builds
5896         * lib/fts.c: Guard just-added hash-table-using parts with
5897         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
5898         Reported by Simon Josefsson.
5899
5900 2009-02-15  Bruno Haible  <bruno@clisp.org>
5901
5902         * modules/array-mergesort-tests: New file.
5903         * tests/test-array-mergesort.c: New file.
5904
5905         New module 'array-mergesort'.
5906         * modules/array-mergesort: New file.
5907         * lib/array-mergesort.h: New file.
5908
5909 2009-02-15  Bruno Haible  <bruno@clisp.org>
5910
5911         Fix 2009-02-07 commit.
5912         * lib/gen-uni-tables.c (output_predicate, output_category,
5913         output_combclass, output_bidi_category, output_decimal_digit,
5914         output_digit, output_numeric, output_mirror, output_scripts,
5915         output_ident_category, output_simple_mapping): Fix format directives.
5916         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
5917
5918 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
5919
5920         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
5921         fixes are available from IBM.
5922
5923 2009-02-13  Jim Meyering  <meyering@redhat.com>
5924
5925         fts: arrange not to stat non-directories in more cases
5926         This makes GNU find (when it doesn't need to stat each file)
5927         *much* more efficient at traversing reiserfs file systems.
5928         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
5929         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
5930         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
5931         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
5932         (leaf_optimization_applies): New function.
5933         (LCO_hash, LCO_compare): New helper functions.
5934         (link_count_optimize_ok): New function.
5935         (fts_stat): Initialize new member (if dir).
5936         (fts_read): Decrement parent's fts_n_dirs_remaining count if
5937         we've just stat'ed a directory.  Skip the stat call when possible.
5938         ---
5939         Note this AFS-related exchange:
5940         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
5941         and note find's pioctl call in find/fstype.c.
5942         But that is necessary only if you want to enable the
5943         optimization for AFS, and for now, I don't.
5944
5945         fts: move a function definition "up" (no semantic change)
5946         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
5947         "up" to precede upcoming use of a related function.
5948
5949 2009-02-11  Jim Meyering  <meyering@redhat.com>
5950
5951         fts: correct internal computation of nlinks (optimization-related)
5952         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
5953         whether the current entry is a directory, so don't test it.
5954
5955 2009-02-10  Bruno Haible  <bruno@clisp.org>
5956
5957         Tests for module 'uniwbrk/ulc-wordbreaks'.
5958         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
5959         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
5960         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
5961
5962         Tests for module 'uniwbrk/u32-wordbreaks'.
5963         * modules/uniwbrk/u32-wordbreaks-tests: New file.
5964         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
5965
5966         Tests for module 'uniwbrk/u16-wordbreaks'.
5967         * modules/uniwbrk/u16-wordbreaks-tests: New file.
5968         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
5969
5970         Tests for module 'uniwbrk/u8-wordbreaks'.
5971         * modules/uniwbrk/u8-wordbreaks-tests: New file.
5972         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
5973
5974 2009-02-10  Bruno Haible  <bruno@clisp.org>
5975
5976         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
5977         property.
5978         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
5979         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
5980         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
5981
5982 2009-02-10  Simon Josefsson  <simon@josefsson.org>
5983
5984         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
5985         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
5986
5987 2009-02-10  Bruno Haible  <bruno@clisp.org>
5988
5989         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
5990         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
5991         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
5992         * lib/unilbrk/u8-possible-linebreaks.c: Update.
5993         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
5994         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
5995
5996 2009-02-09  Simon Josefsson  <simon@josefsson.org>
5997
5998         * lib/sockets.h (gl_fd_to_handle): New function.
5999
6000         * tests/test-sockets.c: Call gl_fd_to_handle.
6001
6002 2009-02-09  Bruno Haible  <bruno@clisp.org>
6003
6004         * doc/havelib.texi: Document the conventions on bi-arch systems.
6005
6006 2009-02-08  Bruno Haible  <bruno@clisp.org>
6007
6008         Document the AC_LIB_LINKFLAGS macro.
6009         * doc/havelib.texi: New file, mostly written on 2005-05-24.
6010         * doc/gnulib.texi: Include it.
6011
6012 2009-02-08  Bruno Haible  <bruno@clisp.org>
6013
6014         Fix wrong order of sections, compared to TOC.
6015         * doc/gnulib.texi: Include relocatable-maint.texi after the
6016         "Regular expressions" node, not before.
6017
6018 2009-02-08  Bruno Haible  <bruno@clisp.org>
6019
6020         Tests for module 'unicase/totitle'.
6021         * modules/unicase/totitle-tests: New file.
6022
6023         Tests for module 'unicase/tolower'.
6024         * modules/unicase/tolower-tests: New file.
6025
6026         Tests for module 'unicase/toupper'.
6027         * modules/unicase/toupper-tests: New file.
6028         * tests/unicase/test-mapping-part1.h: New file.
6029         * tests/unicase/test-mapping-part2.h: New file.
6030
6031         New module 'unicase/totitle'.
6032         * modules/unicase/totitle: New file.
6033         * lib/unicase/totitle.c: New file.
6034
6035         New module 'unicase/tolower'.
6036         * modules/unicase/tolower: New file.
6037         * lib/unicase/tolower.c: New file.
6038
6039         New module 'unicase/toupper'.
6040         * modules/unicase/toupper: New file.
6041         * lib/unicase/toupper.c: New file.
6042         * lib/unicase/simple-mapping.h: New file.
6043
6044         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
6045         (mapping_table): New structure.
6046         (output_simple_mapping): New function.
6047         (main): Invoke output_simple_mapping_test and output_simple_mapping.
6048         * modules/gen-uni-tables (Description): Update.
6049         * lib/unicase/toupper.h: New file, automatically generated by
6050         gen-uni-tables.
6051         * lib/unicase/tolower.h: New file, automatically generated by
6052         gen-uni-tables.
6053         * lib/unicase/totitle.h: New file, automatically generated by
6054         gen-uni-tables.
6055         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
6056         gen-uni-tables.
6057         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
6058         gen-uni-tables.
6059         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
6060         gen-uni-tables.
6061
6062         New module 'unicase/base'.
6063         * modules/unicase/base: New file.
6064         * lib/unicase.h: New file.
6065
6066 2009-02-08  Bruno Haible  <bruno@clisp.org>
6067
6068         New module 'uniwbrk/ulc-wordbreaks'.
6069         * modules/uniwbrk/ulc-wordbreaks: New file.
6070         * lib/uniwbrk/ulc-wordbreaks.c: New file.
6071
6072         New module 'uniwbrk/u32-wordbreaks'.
6073         * modules/uniwbrk/u32-wordbreaks: New file.
6074         * lib/uniwbrk/u32-wordbreaks.c: New file.
6075
6076         New module 'uniwbrk/u16-wordbreaks'.
6077         * modules/uniwbrk/u16-wordbreaks: New file.
6078         * lib/uniwbrk/u16-wordbreaks.c: New file.
6079
6080         New module 'uniwbrk/u8-wordbreaks'.
6081         * modules/uniwbrk/u8-wordbreaks: New file.
6082         * lib/uniwbrk/u8-wordbreaks.c: New file.
6083         * lib/uniwbrk/u-wordbreaks.h: New file.
6084
6085         New module 'uniwbrk/table'.
6086         * modules/uniwbrk/table: New file.
6087         * lib/uniwbrk/wbrktable.h: New file.
6088         * lib/uniwbrk/wbrktable.c: New file.
6089
6090         New module 'uniwbrk/wordbreak-property'.
6091         * modules/uniwbrk/wordbreak-property: New file.
6092         * lib/uniwbrk/wordbreak-property.c: New file.
6093
6094         * lib/gen-uni-tables.c (WBP_*): New enum items.
6095         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
6096         (unicode_org_wbp): New variable.
6097         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
6098         New functions.
6099         (wbp_table): New structure.
6100         (output_wbp, output_wbrk_tables): New functions.
6101         (main): Accept additional argument. Invoke fill_org_wbp,
6102         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
6103         output_wbrk_tables.
6104         * modules/gen-uni-tables (Description): Update.
6105         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
6106         gen-uni-tables.
6107
6108         New module 'uniwbrk/base'.
6109         * modules/uniwbrk/base: New file.
6110         * lib/uniwbrk.h: New file.
6111
6112 2009-02-08  Bruno Haible  <bruno@clisp.org>
6113
6114         Update to Unicode 5.1.0.
6115         * lib/gen-uni-tables.c (is_property_alphabetic): Include
6116         U+2185..U+2188.
6117         (is_property_default_ignorable_code_point): Don't include characters
6118         of category Cc or Cs and not-a-characters.
6119         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
6120         U+0D79, U+109E, U+109F, U+A60C.
6121         * lib/unictype/bidi_of.h: Regenerated.
6122         * lib/unictype/blocks.h: Regenerated.
6123         * lib/unictype/categ_C.h: Regenerated.
6124         * lib/unictype/categ_Cf.h: Regenerated.
6125         * lib/unictype/categ_Cn.h: Regenerated.
6126         * lib/unictype/categ_L.h: Regenerated.
6127         * lib/unictype/categ_Ll.h: Regenerated.
6128         * lib/unictype/categ_Lm.h: Regenerated.
6129         * lib/unictype/categ_Lo.h: Regenerated.
6130         * lib/unictype/categ_Lu.h: Regenerated.
6131         * lib/unictype/categ_M.h: Regenerated.
6132         * lib/unictype/categ_Mc.h: Regenerated.
6133         * lib/unictype/categ_Me.h: Regenerated.
6134         * lib/unictype/categ_Mn.h: Regenerated.
6135         * lib/unictype/categ_N.h: Regenerated.
6136         * lib/unictype/categ_Nd.h: Regenerated.
6137         * lib/unictype/categ_Nl.h: Regenerated.
6138         * lib/unictype/categ_No.h: Regenerated.
6139         * lib/unictype/categ_P.h: Regenerated.
6140         * lib/unictype/categ_Pd.h: Regenerated.
6141         * lib/unictype/categ_Pe.h: Regenerated.
6142         * lib/unictype/categ_Pf.h: Regenerated.
6143         * lib/unictype/categ_Pi.h: Regenerated.
6144         * lib/unictype/categ_Po.h: Regenerated.
6145         * lib/unictype/categ_Ps.h: Regenerated.
6146         * lib/unictype/categ_S.h: Regenerated.
6147         * lib/unictype/categ_Sk.h: Regenerated.
6148         * lib/unictype/categ_Sm.h: Regenerated.
6149         * lib/unictype/categ_So.h: Regenerated.
6150         * lib/unictype/categ_of.h: Regenerated.
6151         * lib/unictype/combining.h: Regenerated.
6152         * lib/unictype/ctype_alnum.h: Regenerated.
6153         * lib/unictype/ctype_alpha.h: Regenerated.
6154         * lib/unictype/ctype_graph.h: Regenerated.
6155         * lib/unictype/ctype_lower.h: Regenerated.
6156         * lib/unictype/ctype_print.h: Regenerated.
6157         * lib/unictype/ctype_punct.h: Regenerated.
6158         * lib/unictype/ctype_upper.h: Regenerated.
6159         * lib/unictype/decdigit.h: Regenerated.
6160         * lib/unictype/digit.h: Regenerated.
6161         * lib/unictype/mirror.h: Regenerated.
6162         * lib/unictype/numeric.h: Regenerated.
6163         * lib/unictype/pr_alphabetic.h: Regenerated.
6164         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
6165         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
6166         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
6167         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
6168         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
6169         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
6170         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
6171         * lib/unictype/pr_combining.h: Regenerated.
6172         * lib/unictype/pr_dash.h: Regenerated.
6173         * lib/unictype/pr_decimal_digit.h: Regenerated.
6174         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
6175         * lib/unictype/pr_deprecated.h: Regenerated.
6176         * lib/unictype/pr_diacritic.h: Regenerated.
6177         * lib/unictype/pr_extender.h: Regenerated.
6178         * lib/unictype/pr_format_control.h: Regenerated.
6179         * lib/unictype/pr_grapheme_base.h: Regenerated.
6180         * lib/unictype/pr_grapheme_extend.h: Regenerated.
6181         * lib/unictype/pr_grapheme_link.h: Regenerated.
6182         * lib/unictype/pr_id_continue.h: Regenerated.
6183         * lib/unictype/pr_id_start.h: Regenerated.
6184         * lib/unictype/pr_ideographic.h: Regenerated.
6185         * lib/unictype/pr_ignorable_control.h: Regenerated.
6186         * lib/unictype/pr_lowercase.h: Regenerated.
6187         * lib/unictype/pr_math.h: Regenerated.
6188         * lib/unictype/pr_numeric.h: Regenerated.
6189         * lib/unictype/pr_other_alphabetic.h: Regenerated.
6190         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
6191         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
6192         * lib/unictype/pr_other_id_continue.h: Regenerated.
6193         * lib/unictype/pr_other_lowercase.h: Regenerated.
6194         * lib/unictype/pr_other_math.h: Regenerated.
6195         * lib/unictype/pr_punctuation.h: Regenerated.
6196         * lib/unictype/pr_sentence_terminal.h: Regenerated.
6197         * lib/unictype/pr_soft_dotted.h: Regenerated.
6198         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
6199         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
6200         * lib/unictype/pr_unified_ideograph.h: Regenerated.
6201         * lib/unictype/pr_uppercase.h: Regenerated.
6202         * lib/unictype/pr_xid_continue.h: Regenerated.
6203         * lib/unictype/pr_xid_start.h: Regenerated.
6204         * lib/unictype/pr_zero_width.h: Regenerated.
6205         * lib/unictype/scripts.h: Regenerated.
6206         * lib/unictype/scripts_byname.gperf: Regenerated.
6207         * lib/unictype/sy_java_ident.h: Regenerated.
6208         * lib/unilbrk/lbrkprop1.h: Regenerated.
6209         * lib/unilbrk/lbrkprop2.h: Regenerated.
6210         * tests/unictype/test-categ_C.c: Regenerated.
6211         * tests/unictype/test-categ_Cf.c: Regenerated.
6212         * tests/unictype/test-categ_Cn.c: Regenerated.
6213         * tests/unictype/test-categ_L.c: Regenerated.
6214         * tests/unictype/test-categ_Ll.c: Regenerated.
6215         * tests/unictype/test-categ_Lm.c: Regenerated.
6216         * tests/unictype/test-categ_Lo.c: Regenerated.
6217         * tests/unictype/test-categ_Lu.c: Regenerated.
6218         * tests/unictype/test-categ_M.c: Regenerated.
6219         * tests/unictype/test-categ_Mc.c: Regenerated.
6220         * tests/unictype/test-categ_Me.c: Regenerated.
6221         * tests/unictype/test-categ_Mn.c: Regenerated.
6222         * tests/unictype/test-categ_N.c: Regenerated.
6223         * tests/unictype/test-categ_Nd.c: Regenerated.
6224         * tests/unictype/test-categ_Nl.c: Regenerated.
6225         * tests/unictype/test-categ_No.c: Regenerated.
6226         * tests/unictype/test-categ_P.c: Regenerated.
6227         * tests/unictype/test-categ_Pd.c: Regenerated.
6228         * tests/unictype/test-categ_Pe.c: Regenerated.
6229         * tests/unictype/test-categ_Pf.c: Regenerated.
6230         * tests/unictype/test-categ_Pi.c: Regenerated.
6231         * tests/unictype/test-categ_Po.c: Regenerated.
6232         * tests/unictype/test-categ_Ps.c: Regenerated.
6233         * tests/unictype/test-categ_S.c: Regenerated.
6234         * tests/unictype/test-categ_Sk.c: Regenerated.
6235         * tests/unictype/test-categ_Sm.c: Regenerated.
6236         * tests/unictype/test-categ_So.c: Regenerated.
6237         * tests/unictype/test-ctype_alnum.c: Regenerated.
6238         * tests/unictype/test-ctype_alpha.c: Regenerated.
6239         * tests/unictype/test-ctype_graph.c: Regenerated.
6240         * tests/unictype/test-ctype_lower.c: Regenerated.
6241         * tests/unictype/test-ctype_print.c: Regenerated.
6242         * tests/unictype/test-ctype_punct.c: Regenerated.
6243         * tests/unictype/test-ctype_upper.c: Regenerated.
6244         * tests/unictype/test-decdigit.h: Regenerated.
6245         * tests/unictype/test-digit.h: Regenerated.
6246         * tests/unictype/test-numeric.h: Regenerated.
6247         * tests/unictype/test-pr_alphabetic.c: Regenerated.
6248         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
6249         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
6250         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
6251         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
6252         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
6253         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
6254         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
6255         * tests/unictype/test-pr_combining.c: Regenerated.
6256         * tests/unictype/test-pr_dash.c: Regenerated.
6257         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
6258         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
6259         * tests/unictype/test-pr_deprecated.c: Regenerated.
6260         * tests/unictype/test-pr_diacritic.c: Regenerated.
6261         * tests/unictype/test-pr_extender.c: Regenerated.
6262         * tests/unictype/test-pr_format_control.c: Regenerated.
6263         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
6264         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
6265         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
6266         * tests/unictype/test-pr_id_continue.c: Regenerated.
6267         * tests/unictype/test-pr_id_start.c: Regenerated.
6268         * tests/unictype/test-pr_ideographic.c: Regenerated.
6269         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
6270         * tests/unictype/test-pr_lowercase.c: Regenerated.
6271         * tests/unictype/test-pr_math.c: Regenerated.
6272         * tests/unictype/test-pr_numeric.c: Regenerated.
6273         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
6274         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
6275         Regenerated.
6276         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
6277         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
6278         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
6279         * tests/unictype/test-pr_other_math.c: Regenerated.
6280         * tests/unictype/test-pr_punctuation.c: Regenerated.
6281         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
6282         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
6283         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
6284         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
6285         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
6286         * tests/unictype/test-pr_uppercase.c: Regenerated.
6287         * tests/unictype/test-pr_xid_continue.c: Regenerated.
6288         * tests/unictype/test-pr_xid_start.c: Regenerated.
6289         * tests/unictype/test-pr_zero_width.c: Regenerated.
6290
6291         Update to Unicode 5.1.0.
6292         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
6293         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
6294         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
6295         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
6296         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
6297         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
6298         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
6299         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
6300         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
6301         (nonspacing_table_ind): Update.
6302         * tests/uniwidth/test-uc_width2.sh: Update expected result.
6303
6304         Update to Unicode 5.1.0.
6305         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
6306         code transform.
6307         * lib/uniname/uniname.c (unicode_character_name,
6308         unicode_name_character): Add the range 0x1Fxxx to the code transform.
6309         * lib/uniname/uninames.h: Regenerated.
6310         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
6311
6312 2009-02-07  Bruno Haible  <bruno@clisp.org>
6313
6314         Merge gen-ctype and gen-lbrk into a single program.
6315         * lib/gen-uni-tables.c: New file, incorporating
6316         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
6317         Add directory prefixes to the names of the generated files.
6318         * lib/unictype/gen-ctype.c: Remove file.
6319         * lib/unilbrk/gen-lbrk.c: Remove file.
6320         * modules/gen-uni-tables: New file.
6321         * modules/unictype/gen-ctype: Remove file.
6322         * modules/unilbrk/gen-lbrk: Remove file.
6323
6324 2009-02-07  Bruno Haible  <bruno@clisp.org>
6325
6326         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
6327
6328         New module 'unistr/u32-strcoll'.
6329         * modules/unistr/u32-strcoll: New file.
6330         * lib/unistr/u32-strcoll.c: New file.
6331
6332         New module 'unistr/u16-strcoll'.
6333         * modules/unistr/u16-strcoll: New file.
6334         * lib/unistr/u16-strcoll.c: New file.
6335
6336         New module 'unistr/u8-strcoll'.
6337         * modules/unistr/u8-strcoll: New file.
6338         * lib/unistr/u8-strcoll.c: New file.
6339         * lib/unistr/u-strcoll.h: New file.
6340
6341 2009-02-07  Bruno Haible  <bruno@clisp.org>
6342
6343         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
6344         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
6345         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
6346         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
6347         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
6348         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
6349
6350 2009-02-07  Bruno Haible  <bruno@clisp.org>
6351
6352         Make 64-bit clean.
6353         * lib/unictype/gen-ctype.c (output_predicate, output_category,
6354         output_combclass, output_bidi_category, output_decimal_digit,
6355         output_digit, output_numeric, output_mirror, output_scripts,
6356         output_ident_category): Use proper width specifier in format strings.
6357
6358 2009-02-07  Bruno Haible  <bruno@clisp.org>
6359
6360         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
6361         failure behaviour.
6362
6363 2009-02-07  Jim Meyering  <meyering@redhat.com>
6364
6365         regex: avoid compilation failure with upcoming gcc-4.4
6366         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
6367         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
6368         "... error: integer overflow in preprocessor expression".
6369
6370 2009-02-05  Ben Pfaff  <blp@gnu.org>
6371
6372         Fix link errors on Windows when close module is used.
6373         * modules/close: Add $(LIB_CLOSE) to Link section.
6374         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
6375         $(LIB_CLOSE) on Windows.
6376
6377 2009-02-05  Jim Meyering  <meyering@redhat.com>
6378
6379         still avoid unused-parameter warnings, but do it cleanly
6380         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
6381         (get_fs_usage): Cast to void instead.
6382         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
6383         (dev_from_mount_options, read_file_system_list): Cast to void.
6384         Prompted by Bruno Haible.
6385
6386 2009-02-04  Jim Meyering  <meyering@redhat.com>
6387
6388         fsusage.c: correct copyright year
6389         * lib/fsusage.c: Reflect year in which the change is pushed into
6390
6391         avoid misc. warnings
6392         * lib/fsusage.c (UNUSED_PARAM): Define.
6393         (get_fs_usage): Mark parameter "disk" as unused.
6394         * lib/getugroups.c (getgrent): Use "void" in prototype.
6395         * lib/mountlist.c: Mark unused parameters.
6396         (read_file_system_list): Declare a local with "const".
6397         * lib/nanosleep.c (getnow): Declare static.
6398         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
6399
6400         dirfd: set errno upon failure
6401         * lib/dirfd.c: Include <errno.h>.
6402         Set errno to ENOTSUP when returning -1.
6403         * modules/dirfd (Depends-on): Add errno.
6404         Suggested by John Kodis <kodis@comcast.net>.
6405
6406 2009-02-01  Bruno Haible  <bruno@clisp.org>
6407
6408         Don't assume sizeof (long) >= sizeof (void *).
6409         * lib/memcmp.c: Include stdint.h.
6410         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
6411         srcp2 to 'const byte *'.
6412         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
6413         types to uintptr_t.
6414         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
6415         * modules/memcmp (Depends-on): Add stdint.
6416         Reported by Ozkan Sezer <sezeroz@gmail.com>.
6417
6418 2009-01-30  Eric Blake  <ebb9@byu.net>
6419
6420         fix more require-before-expand issues
6421         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
6422         expand, AC_PROG_AWK.
6423         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
6424
6425 2009-01-28  Eric Blake  <ebb9@byu.net>
6426
6427         version-etc: use consistent URL formatting
6428         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
6429         Improve formatting.  Use fputs for string without %.
6430
6431 2009-01-28  Jim Meyering  <meyering@redhat.com>
6432
6433         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
6434         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
6435         "underquoted definition of NAME" from autoconf-2.59.
6436
6437 2009-01-28  Bruno Haible  <bruno@clisp.org>
6438
6439         * doc/gnulib.texi: Add "Obsolete modules" to index.
6440
6441 2009-01-28  Jim Meyering  <meyering@redhat.com>
6442
6443         useless-if-before-free: recognize more variants
6444         * build-aux/useless-if-before-free: Also recognize e.g.,
6445         if (NULL != p) free (p);
6446
6447 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
6448
6449         test-getaddrinfo: skip (don't fail) this test when there's no network
6450         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
6451         on the presumption that it means you lack network access.
6452
6453 2009-01-26  Jim Meyering  <meyering@redhat.com>
6454
6455         fflush: avoid warnings on modern systems
6456         * lib/fflush.c (rpl_fflush): Move declarations of locals,
6457         pos and result, into scopes where they're used.
6458
6459 2009-01-26  Eric Blake  <ebb9@byu.net>
6460
6461         Silence warning reintroduced by recent extensions patch.
6462         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
6463         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
6464         autoconf.
6465
6466         Backport improved autoconf semantics of AC_DEFUN_ONCE.
6467         * m4/00gnulib.m4: New file.
6468         * gnulib-tool (func_get_filelist): Always use it.
6469         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
6470         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
6471
6472 2009-01-25  Bruno Haible  <bruno@clisp.org>
6473
6474         Make test-quotearg work on MacOS X and AIX.
6475         * tests/test-quotearg.sh: New file.
6476         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
6477         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
6478         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
6479         include <libintl.h>.
6480         (fake_locale): Remove variable.
6481         (gettext, dgettext, dcgettext): Remove functions.
6482         (main): Instead of setting a fake locale, set a real locale. Call
6483         textdomain and bindtextdomain.
6484         * modules/quotearg-tests (Files): Add the new files.
6485         (Depends-on): Add gettext, setenv, unsetenv.
6486         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
6487         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
6488         Augment TESTS_ENVIRONMENT.
6489
6490 2009-01-25  Bruno Haible  <bruno@clisp.org>
6491
6492         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
6493         fr_FR.ISO8859-1 locale on MacOS X.
6494         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
6495         ja_JP.eucJP locale on MacOS X.
6496         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
6497         zh_CN.GB18030 locale on MacOS X.
6498
6499 2009-01-25  Bruno Haible  <bruno@clisp.org>
6500
6501         Avoid link errors on MacOS X 10.3.
6502         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
6503         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
6504
6505 2009-01-25  Bruno Haible  <bruno@clisp.org>
6506
6507         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
6508         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
6509         * modules/pipe (Files): Remove m4/posix_spawn.m4.
6510         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
6511         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
6512         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
6513         posix_spawnattr_init, posix_spawnattr_setsigmask,
6514         posix_spawnattr_setflags, posix_spawnattr_destroy.
6515
6516         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
6517         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
6518         * modules/execute (Files): Remove m4/posix_spawn.m4.
6519         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
6520         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
6521         posix_spawnattr_init, posix_spawnattr_setsigmask,
6522         posix_spawnattr_setflags, posix_spawnattr_destroy.
6523
6524 2009-01-25  Bruno Haible  <bruno@clisp.org>
6525
6526         * lib/glthread/threadlib.c: Include <stdlib.h>.
6527
6528 2009-01-25  Bruno Haible  <bruno@clisp.org>
6529
6530         * lib/glthread/threadlib.c (dummy): New declaration.
6531
6532 2009-01-25  Bruno Haible  <bruno@clisp.org>
6533
6534         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
6535         multibyte characters also for the GB18030 encoding. Don't crash when
6536         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
6537
6538 2009-01-25  Bruno Haible  <bruno@clisp.org>
6539
6540         Avoid redefining 'struct random_data' on OSF/1 5.1.
6541         * lib/stdlib.in.h: Include <random.h> if it exists.
6542         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
6543         HAVE_RANDOM_H. Include <random.h> when testing whether
6544         'struct random_data' exists.
6545         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
6546
6547 2009-01-25  Bruno Haible  <bruno@clisp.org>
6548
6549         Don't install charset.alias on MacOS X >= 10.3.
6550         * lib/localcharset.c (DARWIN7): New macro.
6551         (get_charset_aliases): Hardcode the result for Darwin7.
6552         * modules/localcharset (install-exec-local): Don't install
6553         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
6554
6555 2009-01-25  Bruno Haible  <bruno@clisp.org>
6556
6557         Don't install charset.alias on mingw and Cygwin.
6558         * modules/localcharset (install-exec-local): Don't install
6559         charset.alias on mingw and Cygwin, if the file does not yet exist.
6560         The result for these platforms is hardcoded in localcharset.c.
6561
6562 2009-01-25  Bruno Haible  <bruno@clisp.org>
6563
6564         Make it possible again to use AC_GNU_SOURCE together with gnulib.
6565         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
6566         before requiring AC_USE_SYSTEM_EXTENSIONS.
6567
6568 2009-01-25  Jim Meyering  <meyering@redhat.com>
6569
6570         c-strtod: avoid warnings
6571         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
6572         "assignment discards qualifiers from pointer target type" warnings.
6573
6574 2009-01-24  Bruno Haible  <bruno@clisp.org>
6575
6576         Add support for non-UTF-8 locales on MacOS X.
6577         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
6578         canonical encodings. For Darwin 7 and newer, don't map traditional
6579         encodings to UTF-8.
6580         Reported by Vincent Lefevre <vincent@vinc17.org>
6581         at <http://savannah.gnu.org/bugs/?25235>.
6582
6583 2009-01-24  Bruno Haible  <bruno@clisp.org>
6584
6585         * doc/gnulib.texi (Obsolete modules): New section.
6586         Reported by Mike Frysinger <vapier@gentoo.org>.
6587
6588 2009-01-24  Bruno Haible  <bruno@clisp.org>
6589
6590         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
6591         (%.dvi): New rule.
6592
6593 2009-01-24  Bruno Haible  <bruno@clisp.org>
6594
6595         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
6596         Reported by Eric Blake.
6597
6598 2009-01-24  Bruno Haible  <bruno@clisp.org>
6599
6600         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
6601         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
6602         Reported by Gary V. Vaughan <gary@gnu.org>.
6603
6604 2009-01-24  Bruno Haible  <bruno@clisp.org>
6605
6606         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
6607
6608 2009-01-23  Bruno Haible  <bruno@clisp.org>
6609
6610         Make c-strtod, c-strtold usable in libraries.
6611         * lib/c-strtod.c: Include string.h instead of xalloc.h.
6612         (C_STRTOD): Call strdup instead of xstrdup.
6613         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
6614         * modules/c-strtold (Depends-on): Likewise.
6615         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
6616         * NEWS: Mention the change.
6617         Reported by Michael Gold <mgold@ncf.ca>.
6618
6619 2009-01-23  Jim Meyering  <meyering@redhat.com>
6620
6621         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
6622         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
6623         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
6624
6625 2009-01-23  Simon Josefsson  <simon@josefsson.org>
6626
6627         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
6628         GNU CoreUtils.
6629         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
6630         * modules/version-etc (Description): Update.
6631
6632 2009-01-22  Bruno Haible  <bruno@clisp.org>
6633
6634         Cache the C locale object.
6635         * lib/c-strtod.c (c_locale_cache): New variable.
6636         (c_locale): New function.
6637         (C_STRTOD): Use it, and don't call freelocale.
6638         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
6639         Suggested by Paolo Bonzini.
6640
6641 2009-01-21  Bruno Haible  <bruno@clisp.org>
6642
6643         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
6644         conditions other than overflow.
6645
6646 2009-01-21  Bruno Haible  <bruno@clisp.org>
6647
6648         * lib/c-strtod.c: Include errno.h.
6649         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
6650         value from STRTOD_L and STRTOD.
6651
6652 2009-01-21  Bruno Haible  <bruno@clisp.org>
6653         and Jim Meyering  <meyering@redhat.com>
6654
6655         nanosleep: skip configure test (fail it) for apple universal builds
6656         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
6657         universal builds, assume that nanosleep does not work.
6658         * modules/nanosleep (Depends-on): Add multiarch.
6659
6660         mktime: skip configure test (fail it) for apple universal builds
6661         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
6662         universal builds, assume that mktime does not work.
6663         * modules/mktime (Depends-on): Add multiarch.
6664
6665 2009-01-21  Eric Blake  <ebb9@byu.net>
6666
6667         multiarch: avoid expand-before-require warning
6668         * modules/multiarch (configure.ac): Require, rather than expand,
6669         gl_MULTIARCH.
6670         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
6671         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
6672         enforce that all clients require it.  Partial reversion of
6673         2008-12-29 patch.
6674
6675         error: avoid expand-before-require warning
6676         * modules/errno (configure.ac): Require, rather than expand,
6677         gl_HEADER_ERRNO_H.
6678         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
6679         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
6680         enforce that all clients require it.
6681
6682         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
6683         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
6684         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
6685         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
6686
6687 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
6688
6689         Revert:
6690         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
6691
6692         regex: do not depend on obsolete modules.
6693         * modules/regex: Remove memcmp and memmove.
6694
6695 2009-01-20  Bruno Haible  <bruno@clisp.org>
6696
6697         Make the 'link' module link on Windows NT 4.
6698         * lib/link.c (_WIN32_WINNT): Don't define.
6699         (CreateHardLinkFuncType): New type.
6700         (CreateHardLinkFunc, initialized): New variables.
6701         (initialize): New function.
6702         (link): Invoke CreateHardLink indirectly through the function pointer.
6703
6704 2009-01-20  Bruno Haible  <bruno@clisp.org>
6705
6706         Fix compilation failure on mingw.
6707         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
6708
6709 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
6710
6711         * doc/c-strtod.texi: Mention a couple of restrictions.
6712
6713 2009-01-20  Jim Meyering  <meyering@redhat.com>
6714
6715         gettimeofday: move more declarations out of functions
6716         * lib/gettimeofday.c: Move extern declarations of tzset and
6717         gmtime out of containing functions.  Prompted by Bruno Haible.
6718
6719 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
6720
6721         regex: do not depend on obsolete modules.
6722         * modules/regex: Remove memcmp and memmove.
6723
6724 2009-01-19  Bruno Haible  <bruno@clisp.org>
6725
6726         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
6727         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
6728         gl_BIGENDIAN, not AC_C_BIGENDIAN.
6729         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
6730         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
6731
6732 2009-01-19  Bruno Haible  <bruno@clisp.org>
6733
6734         * tests/test-link.c: Include <errno.h>.
6735         (main): Exit with code 77 when a hard link cannot be created due to
6736         the file system.
6737         * tests/test-link.sh: Skip test when a hard link cannot be created due
6738         to the file system.
6739         Suggested by Eric Blake.
6740
6741 2009-01-19  Martin Lambers  <marlam@marlam.de>
6742
6743         * modules/link-tests: New file.
6744         * tests/test-link.sh: New file.
6745         * tests/test-link.c: New file.
6746
6747 2009-01-19  Eric Blake  <ebb9@byu.net>
6748
6749         doc: mention another function added in cygwin 1.7.0
6750         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
6751         Another new function in cygwin 1.7.
6752
6753 2009-01-19  Bruno Haible  <bruno@clisp.org>
6754
6755         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
6756         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
6757         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
6758         gl_BIGENDIAN, not AC_C_BIGENDIAN.
6759         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
6760         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
6761         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6762         * m4/md4.m4 (gl_MD4): Likewise.
6763         * m4/md5.m4 (gl_MD5): Likewise.
6764         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
6765         * m4/sha1.m4 (gl_SHA1): Likewise.
6766         * m4/sha256.m4 (gl_SHA256): Likewise.
6767         * m4/sha512.m4 (gl_SHA512): Likewise.
6768
6769 2009-01-19  Bruno Haible  <bruno@clisp.org>
6770
6771         * modules/uniname/uniname-tests (Depends-on): Add progname.
6772         * tests/uniname/test-uninames.c: Include progname.h.
6773         (main): Call set_program_name.
6774
6775         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
6776         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
6777         (main): Call set_program_name.
6778
6779         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
6780         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
6781         (main): Call set_program_name.
6782
6783         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
6784         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
6785         (main): Call set_program_name.
6786
6787         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
6788         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
6789         (main): Call set_program_name.
6790
6791         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
6792         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
6793         (main): Call set_program_name.
6794
6795         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
6796         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
6797         (main): Call set_program_name.
6798
6799         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
6800         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
6801         (main): Call set_program_name.
6802
6803         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
6804         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
6805         (main): Call set_program_name.
6806
6807 2009-01-19  Eric Blake  <ebb9@byu.net>
6808
6809         test-unistd: test previous patch
6810         * tests/test-unistd.c: Test *_FILENO macros.
6811
6812         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
6813         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
6814         Guarantee a definition.
6815         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
6816         * modules/unistd-safer (Depends-on): Add dependency on unistd.
6817         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
6818         * lib/dup-safer.c (STDERR_FILENO): Likewise.
6819         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
6820         Likewise.
6821         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
6822         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
6823         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
6824         Likewise.
6825         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
6826         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
6827         (STDERR_FILENO): Likewise.
6828         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
6829         (STDERR_FILENO): Likewise.
6830         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
6831         (STDERR_FILENO): Likewise.
6832         Reported by Elbert Pol.
6833
6834 2009-01-19  Eric Blake  <ebb9@byu.net>
6835
6836         doc: mention more functions added in cygwin 1.7.0
6837         * doc/posix-functions/abort.texi (abort): Update wording related
6838         to cygwin.
6839         * doc/posix-functions/daylight.texi (daylight): Likewise.
6840         * doc/posix-functions/optarg.texi (optarg): Likewise.
6841         * doc/posix-functions/optarg.texi (opterr): Likewise.
6842         * doc/posix-functions/optarg.texi (optind): Likewise.
6843         * doc/posix-functions/optarg.texi (optopt): Likewise.
6844         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
6845         worked in 1.5.x, and was withdrawn in 1.7.
6846         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
6847         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
6848         cygwin versions.
6849         * doc/posix-functions/perror.texi (perror): Likewise.
6850         * doc/posix-functions/printf.texi (printf): Likewise.
6851         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
6852         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
6853         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6854         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6855         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6856         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
6857         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
6858         Likewise.
6859         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
6860         Likewise.
6861         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
6862         this function.
6863         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
6864         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
6865         Likewise.
6866         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
6867         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
6868         * doc/posix-functions/confstr.texi (confstr): Likewise.
6869         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
6870         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
6871         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
6872         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
6873         * doc/posix-functions/fputws.texi (fputws): Likewise.
6874         * doc/posix-functions/fwide.texi (fwide): Likewise.
6875         * doc/posix-functions/getwc.texi (getwc): Likewise.
6876         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
6877         * doc/posix-functions/putwc.texi (putwc): Likewise.
6878         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
6879         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
6880         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
6881         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
6882         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
6883         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
6884         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
6885         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
6886         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
6887         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
6888         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
6889
6890 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
6891
6892         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
6893         * lib/ioctl.c: Include <sys/ioctl.h>.
6894
6895 2009-01-19  Simon Josefsson  <simon@josefsson.org>
6896
6897         * modules/getdate-tests (Depends-on): Add progname.
6898         * tests/test-getdate.c: Use progname module, to avoid link errors
6899         on non-glibc systems.
6900
6901 2009-01-18  Simon Josefsson  <simon@josefsson.org>
6902
6903         * modules/filenamecat-tests (Depends-on): Add progname.
6904         * modules/fstrcmp-tests (Depends-on): Likewise.
6905
6906         * tests/test-filenamecat.c: Use progname module, to avoid link
6907         errors on non-glibc systems.
6908         * tests/test-fstrcmp.c: Likewise.
6909
6910 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
6911
6912         gettimeofday: avoid warning: nested extern declaration of 'localtime'
6913         * lib/gettimeofday.c: Move extern declaration out of function.
6914
6915 2009-01-18  Bruno Haible  <bruno@clisp.org>
6916
6917         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
6918         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
6919         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
6920
6921 2009-01-18  Bruno Haible  <bruno@clisp.org>
6922
6923         * lib/strftime.c (MEMPCPY): Remove unused macro.
6924         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
6925
6926 2009-01-18  Martin Lambers  <marlam@marlam.de>
6927
6928         New module 'link'.
6929         * lib/unistd.in.h (link): New declaration.
6930         * lib/link.c: New file.
6931         * m4/link.m4: New file.
6932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
6933         HAVE_LINK.
6934         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
6935         * modules/link: New file.
6936         * doc/posix-functions/link.texi: Mention the new module.
6937
6938 2009-01-18  Bruno Haible  <bruno@clisp.org>
6939
6940         * tests/test-avltree_list.c (main): Call set_program_name.
6941         * tests/test-avltree_oset.c (main): Likewise.
6942         * tests/test-obstack-printf.c: Include progname.h.
6943         (main): Call set_program_name.
6944         * tests/test-quotearg.c: Include progname.h.
6945         (main): Call set_program_name.
6946         * tests/test-xmemdup0.c: Include progname.h.
6947         (main): Call set_program_name.
6948
6949 2009-01-18  Bruno Haible  <bruno@clisp.org>
6950
6951         New module 'alphasort'.
6952         * lib/dirent.in.h (alphasort): New declaration.
6953         * lib/alphasort.c: New file, from glibc with modifications.
6954         * m4/alphasort.m4: New file.
6955         * modules/alphasort: New file.
6956         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
6957         HAVE_ALPHASORT.
6958         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
6959         HAVE_ALPHASORT.
6960         * doc/posix-functions/alphasort.texi: Mention the new module and the
6961         portability problems.
6962
6963 2009-01-18  Bruno Haible  <bruno@clisp.org>
6964
6965         New module 'scandir'.
6966         * lib/dirent.in.h (scandir): New declaration.
6967         * lib/scandir.c: New file, from glibc with modifications.
6968         * m4/scandir.m4: New file.
6969         * modules/scandir: New file.
6970         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
6971         HAVE_SCANDIR.
6972         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
6973         HAVE_SCANDIR.
6974         * doc/posix-functions/scandir.texi: Mention the new module and the
6975         portability problems.
6976
6977 2009-01-17  Bruno Haible  <bruno@clisp.org>
6978
6979         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
6980         Update documentation.
6981         (func_remove_suffix): Escape all dots in the suffix. Update
6982         documentation.
6983         (func_filter_filelist): Update documentation.
6984         Reported by Ralf Wildenhues.
6985
6986 2009-01-17  Bruno Haible  <bruno@clisp.org>
6987
6988         * modules/dprintf-posix-tests: New file.
6989         * tests/test-dprintf-posix.sh: New file.
6990         * tests/test-dprintf-posix.c: New file.
6991
6992         New modules 'dprintf', 'dprintf-posix'.
6993         * lib/stdio.in.h (dprintf): New declaration.
6994         * lib/dprintf.c: New file.
6995         * m4/dprintf.m4: New file.
6996         * m4/dprintf-posix.m4: New file.
6997         * modules/dprintf: New file.
6998         * modules/dprintf-posix: New file.
6999         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
7000         HAVE_DPRINTF, REPLACE_DPRINTF.
7001         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
7002         HAVE_DPRINTF, REPLACE_DPRINTF.
7003         * doc/posix-functions/dprintf.texi: Mention the new modules.
7004
7005 2009-01-17  Bruno Haible  <bruno@clisp.org>
7006
7007         * modules/vdprintf-posix-tests: New file.
7008         * tests/test-vdprintf-posix.sh: New file.
7009         * tests/test-vdprintf-posix.c: New file.
7010
7011         New modules 'vdprintf', 'vdprintf-posix'.
7012         * lib/stdio.in.h (vdprintf): New declaration.
7013         * lib/vdprintf.c: New file.
7014         * m4/vdprintf.m4: New file.
7015         * m4/vdprintf-posix.m4: New file.
7016         * modules/vdprintf: New file.
7017         * modules/vdprintf-posix: New file.
7018         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
7019         HAVE_VDPRINTF, REPLACE_VDPRINTF.
7020         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
7021         HAVE_VDPRINTF, REPLACE_VDPRINTF.
7022         * doc/posix-functions/vdprintf.texi: Mention the new modules.
7023
7024 2009-01-17  Bruno Haible  <bruno@clisp.org>
7025
7026         Fix replacement of fopen on mingw.
7027         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
7028         mingw.
7029
7030 2009-01-17  Bruno Haible  <bruno@clisp.org>
7031
7032         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
7033         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
7034
7035 2009-01-17  Bruno Haible  <bruno@clisp.org>
7036
7037         Avoid test-fflush2.sh failure on mingw.
7038         * tests/test-fflush2.c: Include binary-io.h.
7039         (main): Put standard input into binary mode.
7040         * modules/fflush-tests (Depends-on): Add binary-io.
7041
7042 2009-01-17  Bruno Haible  <bruno@clisp.org>
7043
7044         * lib/wchar.in.h: In another particular situation, include only the
7045         system's <wchar.h> file.
7046         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
7047         Reported by Albert Chin-A-Young <china@thewrittenword.com>
7048         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
7049
7050 2009-01-17  Bruno Haible  <bruno@clisp.org>
7051
7052         Support for stripping executables in --enable-relocatable.
7053         * build-aux/install-reloc: Expect one more argument, or an environment
7054         variable RELOC_STRIP_PROG. If set, strip the destination program and
7055         its wrapper.
7056         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
7057         RELOC_STRIP_PROG.
7058         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
7059         to set RELOCATABLE_STRIP.
7060         * NEWS: Mention the new Makefile requirement.
7061
7062 2009-01-17  Bruno Haible  <bruno@clisp.org>
7063
7064         * build-aux/install-reloc: Remove debugging information left over by
7065         C compiler on MacOS X.
7066
7067 2009-01-17  Bruno Haible  <bruno@clisp.org>
7068
7069         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
7070         * lib/progreloc.c (find_executable): Fix type of pointer passed to
7071         _NSGetExecutablePath.
7072
7073 2009-01-16  Jim Meyering  <meyering@redhat.com>
7074
7075         strerror: avoid warnings about discarding "const"
7076         * lib/strerror.c (rpl_strerror): Instead of returning a const
7077         string from each and every "case", use a variable, and add a single
7078         cast after the switch.
7079
7080 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
7081
7082         * lib/arpa_inet.in.h: Add extern "C" block for C++.
7083
7084 2009-01-16  Bruno Haible  <bruno@clisp.org>
7085
7086         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
7087         array initializer syntax that also works in C++ mode.
7088         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7089
7090 2009-01-16  Jim Meyering  <meyering@redhat.com>
7091
7092         poll: suppress a warning
7093         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
7094         to ignore "...unsigned expression < 0 is always false" warnings.
7095
7096 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
7097
7098         poll: remove declarations of unused variables
7099         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
7100         sockbuf and optlen.
7101
7102 2009-01-15  Bruno Haible  <bruno@clisp.org>
7103
7104         Make fflush-after-ungetc POSIX compliant on BSD systems.
7105         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
7106         (clear_ungetc_buffer): Implement also for other systems.
7107         (rpl_fflush): On glibc systems, invoke
7108         clear_ungetc_buffer_preserving_position. Otherwise, invoke
7109         clear_ungetc_buffer after fetching the stream's position, not before.
7110
7111 2009-01-15  Bruno Haible  <bruno@clisp.org>
7112
7113         Make fflush-after-ungetc POSIX compliant on glibc systems.
7114         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
7115         after ungetc.
7116         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
7117         (rpl_fflush): On glibc systems, simply call the system's fflush
7118         function after clearing the ungetc buffer.
7119         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
7120         Instead, lseek only to the end of file, then use the system's fseeko
7121         for the rest. On glibc systems, reset the EOF indicator bit.
7122
7123 2009-01-15  Jim Meyering  <meyering@redhat.com>
7124
7125         openmp.m4: revert quote-adding change, for portability to older autoconf
7126         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
7127         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
7128         Simon Josefsson noticed the problem when using autoconf-2.61.
7129
7130 2009-01-15  Bruno Haible  <bruno@clisp.org>
7131
7132         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
7133         * tests/test-fflush2.c (ASSERT): Always fail.
7134         (main): Add two tests for fflush() after ungetc(), taking into account
7135         the Austin Group's clarification.
7136         Suggested by Eric Blake.
7137
7138 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
7139
7140         mktime.m4: remove K&R-style function prototypes
7141         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
7142         for the Sun C++ compiler.
7143
7144 2009-01-14  Bruno Haible  <bruno@clisp.org>
7145
7146         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
7147         while including <wchar.h>.
7148         * lib/wchar.in.h: In two particular situations on HP-UX, include only
7149         the system's <wchar.h> file.
7150         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7151
7152 2009-01-14  Bruno Haible  <bruno@clisp.org>
7153
7154         * m4/csharp.m4: Don't mention gettext on the serial number line.
7155         * m4/csharpexec.m4: Likewise.
7156         * m4/eaccess.m4: Likewise.
7157         * m4/javaexec.m4: Likewise.
7158         * m4/sig_atomic_t.m4: Likewise.
7159         * m4/tmpdir.m4: Likewise.
7160         * m4/intldir.m4: Bump gettext version.
7161         * m4/lib-ld.m4: Likewise.
7162
7163 2009-01-14  Bruno Haible  <bruno@clisp.org>
7164
7165         * lib/progname.c (set_program_name): Add more comments.
7166         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
7167
7168 2009-01-14  Simon Josefsson  <simon@josefsson.org>
7169
7170         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
7171         were sys/stat.h does not define it.
7172
7173 2009-01-14  Jim Meyering  <meyering@redhat.com>
7174
7175         many *.m4 files: improve m4 quoting
7176         99% of this change was performed by running the following commands:
7177         git ls-files | grep '\.m4$' | xargs perl -pi \
7178           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
7179           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
7180           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
7181           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
7182         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
7183         The remainder were to add Copyright dates, increment serial numbers,
7184         undo some changes in comments, exclude m4/intl.m4, and add quotes
7185         around the "1" in ",1" where the unusual spacing prohibited the
7186         above regexps from doing the job.  For more details, see
7187         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
7188         * m4/acl.m4: Modified.
7189         * m4/afs.m4: Likewise.
7190         * m4/alloca.m4: Likewise.
7191         * m4/argp.m4: Likewise.
7192         * m4/argz.m4: Likewise.
7193         * m4/atexit.m4: Likewise.
7194         * m4/bison-i18n.m4: Likewise.
7195         * m4/bison.m4: Likewise.
7196         * m4/byteswap.m4: Likewise.
7197         * m4/c-stack.m4: Likewise.
7198         * m4/c-strtod.m4: Likewise.
7199         * m4/calloc.m4: Likewise.
7200         * m4/canonicalize-lgpl.m4: Likewise.
7201         * m4/chown.m4: Likewise.
7202         * m4/clock_time.m4: Likewise.
7203         * m4/codeset.m4: Likewise.
7204         * m4/copy-file.m4: Likewise.
7205         * m4/csharp.m4: Likewise.
7206         * m4/csharpcomp.m4: Likewise.
7207         * m4/csharpexec.m4: Likewise.
7208         * m4/d-ino.m4: Likewise.
7209         * m4/d-type.m4: Likewise.
7210         * m4/dirfd.m4: Likewise.
7211         * m4/double-slash-root.m4: Likewise.
7212         * m4/eaccess.m4: Likewise.
7213         * m4/eealloc.m4: Likewise.
7214         * m4/environ.m4: Likewise.
7215         * m4/errno_h.m4: Likewise.
7216         * m4/euidaccess.m4: Likewise.
7217         * m4/execute.m4: Likewise.
7218         * m4/fatal-signal.m4: Likewise.
7219         * m4/fchdir.m4: Likewise.
7220         * m4/fcntl_h.m4: Likewise.
7221         * m4/fileblocks.m4: Likewise.
7222         * m4/filenamecat.m4: Likewise.
7223         * m4/findprog.m4: Likewise.
7224         * m4/flexmember.m4: Likewise.
7225         * m4/fnmatch.m4: Likewise.
7226         * m4/fopen.m4: Likewise.
7227         * m4/fpending.m4: Likewise.
7228         * m4/fprintf-posix.m4: Likewise.
7229         * m4/free.m4: Likewise.
7230         * m4/frexp.m4: Likewise.
7231         * m4/frexpl.m4: Likewise.
7232         * m4/fsusage.m4: Likewise.
7233         * m4/ftruncate.m4: Likewise.
7234         * m4/gc-camellia.m4: Likewise.
7235         * m4/gc-random.m4: Likewise.
7236         * m4/gc.m4: Likewise.
7237         * m4/getaddrinfo.m4: Likewise.
7238         * m4/getcwd-abort-bug.m4: Likewise.
7239         * m4/getcwd-path-max.m4: Likewise.
7240         * m4/getdate.m4: Likewise.
7241         * m4/getdomainname.m4: Likewise.
7242         * m4/getgroups.m4: Likewise.
7243         * m4/gethostname.m4: Likewise.
7244         * m4/gethrxtime.m4: Likewise.
7245         * m4/getline.m4: Likewise.
7246         * m4/getloadavg.m4: Likewise.
7247         * m4/getndelim2.m4: Likewise.
7248         * m4/getpass.m4: Likewise.
7249         * m4/gettext.m4: Likewise.
7250         * m4/gettime.m4: Likewise.
7251         * m4/gettimeofday.m4: Likewise.
7252         * m4/gnulib-common.m4: Likewise.
7253         * m4/group-member.m4: Likewise.
7254         * m4/host-os.m4: Likewise.
7255         * m4/iconv.m4: Likewise.
7256         * m4/iconv_open.m4: Likewise.
7257         * m4/inet_ntop.m4: Likewise.
7258         * m4/inet_pton.m4: Likewise.
7259         * m4/inline.m4: Likewise.
7260         * m4/intldir.m4: Likewise.
7261         * m4/intlmacosx.m4: Likewise.
7262         * m4/intmax.m4: Likewise.
7263         * m4/intmax_t.m4: Likewise.
7264         * m4/inttypes.m4: Likewise.
7265         * m4/inttypes_h.m4: Likewise.
7266         * m4/inttypes-pri.m4: Likewise.
7267         * m4/isapipe.m4: Likewise.
7268         * m4/isnand.m4: Likewise.
7269         * m4/isnanf.m4: Likewise.
7270         * m4/isnanl.m4: Likewise.
7271         * m4/javacomp.m4: Likewise.
7272         * m4/javaexec.m4: Likewise.
7273         * m4/jm-winsz1.m4: Likewise.
7274         * m4/jm-winsz2.m4: Likewise.
7275         * m4/lchown.m4: Likewise.
7276         * m4/lcmessage.m4: Likewise.
7277         * m4/ldexpl.m4: Likewise.
7278         * m4/lib-ld.m4: Likewise.
7279         * m4/lib-link.m4: Likewise.
7280         * m4/libsigsegv.m4: Likewise.
7281         * m4/link-follow.m4: Likewise.
7282         * m4/localcharset.m4: Likewise.
7283         * m4/locale-fr.m4: Likewise.
7284         * m4/locale-ja.m4: Likewise.
7285         * m4/locale-tr.m4: Likewise.
7286         * m4/locale-zh.m4: Likewise.
7287         * m4/lock.m4: Likewise.
7288         * m4/longlong.m4: Likewise.
7289         * m4/ls-mntd-fs.m4: Likewise.
7290         * m4/lstat.m4: Likewise.
7291         * m4/malloc.m4: Likewise.
7292         * m4/mathl.m4: Likewise.
7293         * m4/mbrtowc.m4: Likewise.
7294         * m4/mbstate_t.m4: Likewise.
7295         * m4/mbswidth.m4: Likewise.
7296         * m4/memchr.m4: Likewise.
7297         * m4/memcmp.m4: Likewise.
7298         * m4/memcpy.m4: Likewise.
7299         * m4/memmem.m4: Likewise.
7300         * m4/memmove.m4: Likewise.
7301         * m4/mempcpy.m4: Likewise.
7302         * m4/memrchr.m4: Likewise.
7303         * m4/memset.m4: Likewise.
7304         * m4/minmax.m4: Likewise.
7305         * m4/mkdir-slash.m4: Likewise.
7306         * m4/mkdtemp.m4: Likewise.
7307         * m4/mktime.m4: Likewise.
7308         * m4/mmap-anon.m4: Likewise.
7309         * m4/mountlist.m4: Likewise.
7310         * m4/nanosleep.m4: Likewise.
7311         * m4/nls.m4: Likewise.
7312         * m4/nocrash.m4: Likewise.
7313         * m4/open.m4: Likewise.
7314         * m4/openat.m4: Likewise.
7315         * m4/openmp.m4: Likewise.
7316         * m4/pathmax.m4: Likewise.
7317         * m4/perl.m4: Likewise.
7318         * m4/physmem.m4: Likewise.
7319         * m4/pipe.m4: Likewise.
7320         * m4/po.m4: Likewise.
7321         * m4/poll.m4: Likewise.
7322         * m4/posixtm.m4: Likewise.
7323         * m4/posixver.m4: Likewise.
7324         * m4/printf-frexp.m4: Likewise.
7325         * m4/printf-frexpl.m4: Likewise.
7326         * m4/printf-posix.m4: Likewise.
7327         * m4/printf-posix-rpl.m4: Likewise.
7328         * m4/printf.m4: Likewise.
7329         * m4/progtest.m4: Likewise.
7330         * m4/putenv.m4: Likewise.
7331         * m4/readline.m4: Likewise.
7332         * m4/readlink.m4: Likewise.
7333         * m4/readutmp.m4: Likewise.
7334         * m4/realloc.m4: Likewise.
7335         * m4/regex.m4: Likewise.
7336         * m4/relocatable.m4: Likewise.
7337         * m4/relocatable-lib.m4: Likewise.
7338         * m4/rename-dest-slash.m4: Likewise.
7339         * m4/rename.m4: Likewise.
7340         * m4/rmdir-errno.m4: Likewise.
7341         * m4/rmdir.m4: Likewise.
7342         * m4/roundf.m4: Likewise.
7343         * m4/roundl.m4: Likewise.
7344         * m4/rpmatch.m4: Likewise.
7345         * m4/save-cwd.m4: Likewise.
7346         * m4/selinux-selinux-h.m4: Likewise.
7347         * m4/setenv.m4: Likewise.
7348         * m4/settime.m4: Likewise.
7349         * m4/sig2str.m4: Likewise.
7350         * m4/sig_atomic_t.m4: Likewise.
7351         * m4/signalblocking.m4: Likewise.
7352         * m4/signbit.m4: Likewise.
7353         * m4/sigpipe.m4: Likewise.
7354         * m4/sockets.m4: Likewise.
7355         * m4/sockpfaf.m4: Likewise.
7356         * m4/st_dm_mode.m4: Likewise.
7357         * m4/stat-time.m4: Likewise.
7358         * m4/stdbool.m4: Likewise.
7359         * m4/stdint.m4: Likewise.
7360         * m4/stdint_h.m4: Likewise.
7361         * m4/stpcpy.m4: Likewise.
7362         * m4/stpncpy.m4: Likewise.
7363         * m4/strcase.m4: Likewise.
7364         * m4/strchrnul.m4: Likewise.
7365         * m4/strcspn.m4: Likewise.
7366         * m4/strdup.m4: Likewise.
7367         * m4/strftime.m4: Likewise.
7368         * m4/strndup.m4: Likewise.
7369         * m4/strnlen.m4: Likewise.
7370         * m4/strpbrk.m4: Likewise.
7371         * m4/strptime.m4: Likewise.
7372         * m4/strsep.m4: Likewise.
7373         * m4/strtod.m4: Likewise.
7374         * m4/strtoimax.m4: Likewise.
7375         * m4/strtok_r.m4: Likewise.
7376         * m4/strtol.m4: Likewise.
7377         * m4/strtoll.m4: Likewise.
7378         * m4/strtoul.m4: Likewise.
7379         * m4/strtoull.m4: Likewise.
7380         * m4/strtoumax.m4: Likewise.
7381         * m4/strverscmp.m4: Likewise.
7382         * m4/threadlib.m4: Likewise.
7383         * m4/timegm.m4: Likewise.
7384         * m4/tm_gmtoff.m4: Likewise.
7385         * m4/tmpdir.m4: Likewise.
7386         * m4/tmpfile.m4: Likewise.
7387         * m4/tzset.m4: Likewise.
7388         * m4/uintmax_t.m4: Likewise.
7389         * m4/unlinkdir.m4: Likewise.
7390         * m4/unlocked-io.m4: Likewise.
7391         * m4/uptime.m4: Likewise.
7392         * m4/userspec.m4: Likewise.
7393         * m4/utimbuf.m4: Likewise.
7394         * m4/utime.m4: Likewise.
7395         * m4/utimes-null.m4: Likewise.
7396         * m4/utimes.m4: Likewise.
7397         * m4/vararrays.m4: Likewise.
7398         * m4/vasnprintf.m4: Likewise.
7399         * m4/vfprintf-posix.m4: Likewise.
7400         * m4/vprintf-posix.m4: Likewise.
7401         * m4/wait-process.m4: Likewise.
7402         * m4/wchar_t.m4: Likewise.
7403         * m4/wint_t.m4: Likewise.
7404         * m4/write-any-file.m4: Likewise.
7405         * m4/yield.m4: Likewise.
7406
7407 2009-01-13  Bruno Haible  <bruno@clisp.org>
7408
7409         Avoid test-copy-file.sh failures when ACL support insufficient.
7410         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
7411         TESTS_ENVIRONMENT.
7412         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
7413         Reported by Jim Meyering.
7414
7415 2009-01-13  Bruno Haible  <bruno@clisp.org>
7416
7417         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
7418         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
7419         * modules/unistdio/u8-printf-parse (Files): Likewise.
7420         * modules/unistdio/u32-printf-parse (Files): Likewise.
7421         * modules/unistdio/ulc-printf-parse (Files): Likewise.
7422
7423 2009-01-13  Simon Josefsson  <simon@josefsson.org>
7424
7425         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
7426         and m4/inttypes_h.m4 too.
7427
7428 2009-01-12  Eric Blake  <ebb9@byu.net>
7429
7430         tests: IRIX 6.2 cc can't compile -0.0 into .data
7431         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
7432         rather than at compile-time.
7433         * tests/test-floorl.c (minus_zero): Likewise.
7434         * tests/test-frexpl.c (minus_zero): Likewise.
7435         * tests/test-isnan.c (minus_zerol): Likewise.
7436         * tests/test-isnanl.h (minus_zero): Likewise.
7437         * tests/test-ldexpl.c (minus_zero): Likewise.
7438         * tests/test-roundl.c (minus_zero): Likewise.
7439         * tests/test-signbit.c (minus_zerol): Likewise.
7440         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
7441         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
7442         * tests/test-truncl.c (minus_zero): Likewise.
7443         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
7444         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
7445         Reported by Tom G. Christensen and Nelson H. F. Beebe.
7446
7447 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
7448
7449         regex: fix glibc bug 9697
7450         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
7451         handling.
7452
7453 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
7454
7455         regex: fix glibc bug 697
7456         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
7457         being NULL also if there are no backreferences.
7458
7459 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
7460
7461         regex: merge glibc changes
7462         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
7463         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
7464         re_string_skip_chars, re_string_reconstruct): Likewise.
7465         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
7466
7467 2009-01-07  Jim Meyering  <meyering@redhat.com>
7468
7469         poll: filter through cppi
7470         * lib/poll.c: Indent cpp directives to reflect nesting.
7471
7472 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
7473
7474         poll: don't return uninitialized
7475         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
7476
7477 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
7478
7479         avoid compile failure on AIX 6.1
7480         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
7481         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
7482
7483 2009-01-04  Jim Meyering  <meyering@redhat.com>
7484
7485         remove duplicate inclusion of <stdio.h>
7486         * tests/test-fprintf-posix.c: Likewise.
7487         * tests/test-printf-posix.c: Likewise.
7488         * tests/test-snprintf-posix.c: Likewise.
7489         * tests/test-sprintf-posix.c: Likewise.
7490         * tests/test-vasprintf-posix.c: Likewise.
7491         * tests/test-vfprintf-posix.c: Likewise.
7492         * tests/test-vprintf-posix.c: Likewise.
7493         * tests/test-vsnprintf-posix.c: Likewise.
7494         * tests/test-vsprintf-posix.c: Likewise.
7495
7496 2009-01-03  Jim Meyering  <meyering@redhat.com>
7497
7498         gnulib-tool: fix sed-based filtering
7499         * gnulib-tool (func_filter_filelist): Remove extra backslash
7500         in sed_fff_filter definition.
7501
7502 2009-01-02  Jim Meyering  <meyering@redhat.com>
7503
7504         strftime: avoid compilation failure on Solaris 2.6
7505         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
7506         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
7507         Don't #define mbrlen or mbsinit, since now they're guaranteed to
7508         be available.  Reported by Tom G. Christensen.  Details in
7509         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
7510
7511 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7512             Bruno Haible  <bruno@clisp.org>
7513
7514         Speed up gnulib-tool by doing more string processing through shell
7515         built-ins.
7516         * gnulib-tool (fast_func_append): New variable.
7517         (func_remove_prefix, func_remove_suffix): New functions.
7518         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
7519         (func_filter_filelist): New function.
7520         (func_get_dependencies): Use func_remove_suffix instead of sed.
7521         (func_get_automake_snippet): Use func_filter_filelist instead of a
7522         subshell and sed invocation.
7523
7524 2009-01-01  Bruno Haible  <bruno@clisp.org>
7525
7526         Fix a security bug.
7527         * gnulib-tool (func_import, import, update): Don't allow the characters
7528         '"', '$', '`', '\' in macro arguments that become part of commands that
7529         are evaluated.
7530
7531 2009-01-01  Bruno Haible  <bruno@clisp.org>
7532
7533         * gnulib-tool (func_reset_sigpipe): Add more comments.
7534
7535 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7536
7537         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
7538         func_emit_tests_Makefile_am, func_import): Abort loops early if we
7539         already know the answer.
7540
7541 2009-01-01  Jim Meyering  <meyering@redhat.com>
7542
7543         * lib/version-etc.c (version_etc_va): Update copyright year.
7544
7545 2008-12-30  Bruno Haible  <bruno@clisp.org>
7546
7547         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
7548         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
7549         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
7550
7551 2008-12-29  Eric Blake  <ebb9@byu.net>
7552
7553         multiarch: avoid autoconf AC_REQUIRE bug
7554         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
7555         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
7556         2.63 and older.
7557         Reported by Bruno Haible, and analyzed in
7558         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
7559
7560 2008-12-29  Bruno Haible  <bruno@clisp.org>
7561
7562         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
7563         files in subdirectories correctly.
7564         Reported by Ralf Wildenhues.
7565
7566 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7567
7568         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
7569         rather than 'join FILE -', for Solaris join.
7570
7571 2008-12-29  Bruno Haible  <bruno@clisp.org>
7572
7573         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
7574         quoting.
7575         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
7576         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
7577         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
7578         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
7579         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
7580         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
7581         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
7582         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
7583         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
7584         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
7585         * m4/nls.m4 (AM_NLS): Likewise.
7586         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
7587         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
7588         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
7589         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
7590         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
7591         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
7592         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
7593         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
7594         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
7595         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
7596         * m4/xsize.m4 (gl_XSIZE): Likewise.
7597         Suggested by Jim Meyering.
7598
7599 2008-11-17  Bruce Korb  <bkorb@gnu.org>
7600
7601         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
7602         * lib/parse-duration.c: use a switch instead of cascading if's.
7603
7604 2008-12-29  Eric Blake  <ebb9@byu.net>
7605
7606         wchar.h: supply WEOF on Irix 5.3
7607         * lib/wchar.in.h (wint_t): Also supply WEOF.
7608         * lib/wctype.in.h (wint_t): Likewise.
7609         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
7610         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
7611         Reported by Tom G. Christensen.
7612
7613 2008-12-26  Bruno Haible  <bruno@clisp.org>
7614
7615         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
7616         i486, i586, i686.
7617
7618 2008-12-26  Bruno Haible  <bruno@clisp.org>
7619
7620         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
7621
7622 2008-12-26  Bruno Haible  <bruno@clisp.org>
7623
7624         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
7625         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
7626         not __STDC_CONSTANT_MACROS.
7627         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
7628
7629 2008-12-25  Bruno Haible  <bruno@clisp.org>
7630
7631         Add support for universal builds to vasnprintf.
7632         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
7633         universal builds, guess no.
7634         * modules/vasnprintf-posix (Depends-on): Add multiarch.
7635         * modules/vasprintf-posix (Depends-on): Likewise.
7636         * modules/fprintf-posix (Depends-on): Likewise.
7637         * modules/vfprintf-posix (Depends-on): Likewise.
7638         * modules/snprintf-posix (Depends-on): Likewise.
7639         * modules/vsnprintf-posix (Depends-on): Likewise.
7640         * modules/sprintf-posix (Depends-on): Likewise.
7641         * modules/vsprintf-posix (Depends-on): Likewise.
7642         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7643         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7644         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7645         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7646         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7647         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7648         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7649
7650         Add support for universal builds to <inttypes.h>.
7651         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
7652         _SCNu64_PREFIX): In Apple
7653         universal builds, define directly, using _LP64.
7654         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
7655         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
7656         * modules/inttypes (Depends-on): Add multiarch.
7657         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
7658
7659         Add support for universal builds to <stdint.h>.
7660         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
7661         universal builds, define directly, using _LP64.
7662         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
7663         Apple universal builds, don't test for the size and suffix of ptrdiff_t
7664         and size_t.
7665         * modules/stdint (Depends-on): Add multiarch.
7666         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
7667
7668         New module 'multiarch'.
7669         * modules/multiarch: New file.
7670         * m4/multiarch.m4: New file.
7671
7672 2008-12-25  Bruno Haible  <bruno@clisp.org>
7673
7674         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
7675
7676 2008-12-25  Bruno Haible  <bruno@clisp.org>
7677
7678         * modules/btowc (License): Relicense under LGPLv2+.
7679         * modules/mbsinit (License): Likewise.
7680         * modules/mbrtowc (License): Likewise.
7681         * modules/wcrtomb (License): Likewise.
7682         * modules/streq (License): Likewise.
7683         Reported by David Lutterkort <lutter@redhat.com>.
7684
7685 2008-12-23  Bruno Haible  <bruno@clisp.org>
7686
7687         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
7688
7689 2008-12-23  Bruno Haible  <bruno@clisp.org>
7690
7691         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
7692         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
7693         GETADDRINFO_LIB, not in LIBS.
7694         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
7695         * modules/canon-host (Link): Likewise.
7696         * NEWS: Mention the change.
7697         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
7698         GETADDRINFO_LIB.
7699
7700 2008-12-22  Bruno Haible  <bruno@clisp.org>
7701
7702         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
7703         * doc/posix-functions/iswalpha_l.texi: Likewise.
7704         * doc/posix-functions/iswblank_l.texi: Likewise.
7705         * doc/posix-functions/iswcntrl_l.texi: Likewise.
7706         * doc/posix-functions/iswctype_l.texi: Likewise.
7707         * doc/posix-functions/iswdigit_l.texi: Likewise.
7708         * doc/posix-functions/iswgraph_l.texi: Likewise.
7709         * doc/posix-functions/iswlower_l.texi: Likewise.
7710         * doc/posix-functions/iswprint_l.texi: Likewise.
7711         * doc/posix-functions/iswpunct_l.texi: Likewise.
7712         * doc/posix-functions/iswspace_l.texi: Likewise.
7713         * doc/posix-functions/iswupper_l.texi: Likewise.
7714         * doc/posix-functions/iswxdigit_l.texi: Likewise.
7715         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
7716         * doc/posix-functions/open_wmemstream.texi: Likewise.
7717         * doc/posix-functions/swscanf.texi: Likewise.
7718         * doc/posix-functions/towctrans_l.texi: Likewise.
7719         * doc/posix-functions/towlower.texi: Likewise.
7720         * doc/posix-functions/towlower_l.texi: Likewise.
7721         * doc/posix-functions/towupper.texi: Likewise.
7722         * doc/posix-functions/towupper_l.texi: Likewise.
7723         * doc/posix-functions/vfwprintf.texi: Likewise.
7724         * doc/posix-functions/vfwscanf.texi: Likewise.
7725         * doc/posix-functions/vswscanf.texi: Likewise.
7726         * doc/posix-functions/vwprintf.texi: Likewise.
7727         * doc/posix-functions/vwscanf.texi: Likewise.
7728         * doc/posix-functions/wcpcpy.texi: Likewise.
7729         * doc/posix-functions/wcpncpy.texi: Likewise.
7730         * doc/posix-functions/wcscasecmp.texi: Likewise.
7731         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
7732         * doc/posix-functions/wcscoll_l.texi: Likewise.
7733         * doc/posix-functions/wcsdup.texi: Likewise.
7734         * doc/posix-functions/wcsncasecmp.texi: Likewise.
7735         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
7736         * doc/posix-functions/wcsnlen.texi: Likewise.
7737         * doc/posix-functions/wcsnrtombs.texi: Likewise.
7738         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
7739         * doc/posix-functions/wctrans_l.texi: Likewise.
7740         * doc/posix-functions/wctype_l.texi: Likewise.
7741         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
7742         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
7743         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
7744         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
7745         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
7746         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
7747         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
7748         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
7749         * doc/glibc-functions/wcschrnul.texi: Likewise.
7750         * doc/glibc-functions/wcsftime_l.texi: Likewise.
7751         * doc/glibc-functions/wcstod_l.texi: Likewise.
7752         * doc/glibc-functions/wcstof_l.texi: Likewise.
7753         * doc/glibc-functions/wcstol_l.texi: Likewise.
7754         * doc/glibc-functions/wcstold_l.texi: Likewise.
7755         * doc/glibc-functions/wcstoll_l.texi: Likewise.
7756         * doc/glibc-functions/wcstoq.texi: Likewise.
7757         * doc/glibc-functions/wcstoul_l.texi: Likewise.
7758         * doc/glibc-functions/wcstoull_l.texi: Likewise.
7759         * doc/glibc-functions/wcstouq.texi: Likewise.
7760         * doc/glibc-functions/wmempcpy.texi: Likewise.
7761
7762 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
7763             Eric Blake  <ebb9@byu.net>
7764             Paolo Bonzini  <bonzini@gnu.org>
7765             Bruno Haible  <bruno@clisp.org>
7766
7767         Make c-stack work on Haiku.
7768         * lib/c-stack.c (SA_ONSTACK): Define fallback.
7769         (c_stack_action): Use SA_ONSTACK flag.
7770
7771 2008-12-22  Bruno Haible  <bruno@clisp.org>
7772
7773         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
7774
7775 2008-12-22  Bruno Haible  <bruno@clisp.org>
7776
7777         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
7778         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
7779         being overridden.
7780         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
7781         New macros.
7782         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
7783         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
7784         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
7785         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
7786
7787 2008-12-22  Bruno Haible  <bruno@clisp.org>
7788
7789         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
7790         from test code.
7791
7792 2008-12-22  Eric Blake  <ebb9@byu.net>
7793
7794         Avoid gcc warnings on cygwin.
7795         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
7796         Avoid unused variable.
7797         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
7798         Likewise.
7799
7800 2008-12-22  Bruno Haible  <bruno@clisp.org>
7801
7802         Remove HAVE_MBRTOWC conditionals.
7803         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
7804         (mbscasecmp): Assume mbrtowc function.
7805         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
7806         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
7807         * lib/mbschr.c: Include mbuiter.h unconditionally.
7808         (mbschr): Assume mbrtowc function.
7809         * lib/mbscspn.c: Include mbuiter.h unconditionally.
7810         (mbscspn): Assume mbrtowc function.
7811         * lib/mbslen.c: Include mbuiter.h unconditionally.
7812         (mbslen): Assume mbrtowc function.
7813         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
7814         (mbsncasecmp): Assume mbrtowc function.
7815         * lib/mbsnlen.c: Include mbiter.h unconditionally.
7816         (mbsnlen): Assume mbrtowc function.
7817         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
7818         (mbspbrk): Assume mbrtowc function.
7819         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
7820         (mbspcasecmp): Assume mbrtowc function.
7821         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
7822         (mbsrchr): Assume mbrtowc function.
7823         * lib/mbssep.c: Include mbuiter.h unconditionally.
7824         (mbssep): Assume mbrtowc function.
7825         * lib/mbsspn.c: Include mbuiter.h unconditionally.
7826         (mbsspn): Assume mbrtowc function.
7827         * lib/mbsstr.c: Include mbuiter.h unconditionally.
7828         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
7829         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
7830         (mbstok_r): Assume mbrtowc function.
7831         * lib/propername.c: Include mbuiter.h unconditionally.
7832         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
7833         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
7834         (trim2): Assume mbrtowc function.
7835         * lib/mbswidth.c (mbsinit): Remove fallback definition.
7836         (mbsnwidth): Assume mbrtowc function.
7837         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
7838         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
7839         fallback definitions.
7840         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
7841
7842 2008-12-22  Bruno Haible  <bruno@clisp.org>
7843
7844         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
7845
7846 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
7847
7848         * modules/regex: Request emulations for the mb*/wc* functions we need.
7849         * m4/regex.m4: Don't look for those functions here.
7850         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
7851
7852 2008-12-22  Bruno Haible  <bruno@clisp.org>
7853
7854         * modules/fnmatch (Depends-on): Remove duplicated dependency.
7855
7856 2008-12-21  Bruno Haible  <bruno@clisp.org>
7857
7858         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
7859         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
7860         (Include): Remove conditionalization.
7861         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
7862         (Include): Remove conditionalization.
7863         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
7864         (Include): Remove conditionalization.
7865         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
7866         * m4/mbfile.m4 (gl_MBFILE): Likewise.
7867         * NEWS: Mention the change.
7868         Reported by Alan Hourihane <alanh@fairlite.co.uk>
7869         via Sergey Poznyakoff <gray@gnu.org.ua>.
7870
7871 2008-12-21  Bruno Haible  <bruno@clisp.org>
7872
7873         * MODULES.html.sh (Extended multibyte and wide character utilities
7874         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
7875         wcrtomb, wcsrtombs.
7876         (Support for systems lacking POSIX:2008): Add accept, bind, close,
7877         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
7878         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
7879         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
7880
7881 2008-12-21  Bruno Haible  <bruno@clisp.org>
7882
7883         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
7884
7885 2008-12-21  Bruno Haible  <bruno@clisp.org>
7886
7887         * modules/wcsnrtombs-tests: New file.
7888         * tests/test-wcsnrtombs1.sh: New file.
7889         * tests/test-wcsnrtombs2.sh: New file.
7890         * tests/test-wcsnrtombs3.sh: New file.
7891         * tests/test-wcsnrtombs4.sh: New file.
7892         * tests/test-wcsnrtombs.c: New file.
7893
7894         New module 'wcsnrtombs'.
7895         * lib/wchar.in.h (wcsnrtombs): New declaration.
7896         * lib/wcsnrtombs.c: New file.
7897         * lib/wcsrtombs-state.c: New file.
7898         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
7899         (internal_state): Remove variable.
7900         * m4/wcsnrtombs.m4: New file.
7901         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
7902         compilation units.
7903         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
7904         HAVE_WCSNRTOMBS.
7905         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
7906         HAVE_WCSNRTOMBS.
7907         * modules/wcsnrtombs: New file.
7908         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
7909         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
7910
7911 2008-12-21  Bruno Haible  <bruno@clisp.org>
7912
7913         * modules/wcsrtombs-tests: New file.
7914         * tests/test-wcsrtombs1.sh: New file.
7915         * tests/test-wcsrtombs2.sh: New file.
7916         * tests/test-wcsrtombs3.sh: New file.
7917         * tests/test-wcsrtombs4.sh: New file.
7918         * tests/test-wcsrtombs.c: New file.
7919
7920         New module 'wcsrtombs'.
7921         * lib/wchar.in.h (wcsrtombs): New declaration.
7922         * lib/wcsrtombs.c: New file.
7923         * m4/wcsrtombs.m4: New file.
7924         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
7925         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
7926         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
7927         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
7928         * modules/wcsrtombs: New file.
7929         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
7930         bugs.
7931
7932 2008-12-21  Bruno Haible  <bruno@clisp.org>
7933
7934         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
7935         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
7936         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
7937         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
7938         if not correct.
7939         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
7940         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
7941         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
7942         m4/locale-zh.m4, m4/codeset.m4.
7943         * doc/posix-functions/wcrtomb.texi: Document the bug.
7944
7945 2008-12-21  Bruno Haible  <bruno@clisp.org>
7946
7947         Work around a btowc() bug on IRIX 6.5.
7948         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
7949         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
7950         REPLACE_WTOBC if not.
7951         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
7952         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
7953         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
7954
7955 2008-12-21  Bruno Haible  <bruno@clisp.org>
7956
7957         * modules/wcrtomb-tests: New file.
7958         * tests/test-wcrtomb.sh: New file.
7959         * tests/test-wcrtomb.c: New file.
7960
7961         New module 'wcrtomb'.
7962         * lib/wchar.in.h (wcrtomb): New declaration.
7963         * lib/wcrtomb.c: New file.
7964         * m4/wcrtomb.m4: New file.
7965         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
7966         HAVE_WCRTOMB.
7967         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
7968         HAVE_WCRTOMB.
7969         * modules/wcrtomb: New file.
7970         * doc/posix-functions/wcrtomb.texi: Mention the new module.
7971
7972 2008-12-21  Bruno Haible  <bruno@clisp.org>
7973
7974         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
7975         * modules/mbsrtowcs (Files): Likewise.
7976         * modules/wctob (Files): Likewise.
7977         * modules/c-strcase-tests (Files): Likewise.
7978         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
7979         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
7980         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
7981         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
7982         * modules/vasnprintf-posix-tests (Files): Likewise.
7983
7984 2008-12-21  William Pursell  <bill.pursell@gmail.com>
7985
7986         gitlog-to-changelog: pass all command-line arguments to git-log
7987         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
7988         it is sometimes convenient to filter the commits in various ways.
7989         gitlog-to-changelog only allows --since to specify a start date,
7990         but git-log itself supports many other filtering mechanisms.
7991         At the moment, I want to filter by branch name.  Rather than
7992         adding a --branch option to gitlog-to-changelog, it seems more
7993         flexible to simply pass all options directly to git-log and let
7994         git do the work.  Notice that this effectively makes --since a
7995         redundant option for gitlog-to-changelog, but removing it would
7996         require current usage to change since calls would then require
7997         an additional '--'.
7998
7999 2008-12-21  Bruno Haible  <bruno@clisp.org>
8000
8001         * modules/mbsnrtowcs-tests: New file.
8002         * tests/test-mbsnrtowcs1.sh: New file.
8003         * tests/test-mbsnrtowcs2.sh: New file.
8004         * tests/test-mbsnrtowcs3.sh: New file.
8005         * tests/test-mbsnrtowcs4.sh: New file.
8006         * tests/test-mbsnrtowcs.c: New file.
8007
8008         New module 'mbsnrtowcs'.
8009         * lib/wchar.in.h (mbsnrtowcs): New declaration.
8010         * lib/mbsnrtowcs.c: New file.
8011         * lib/mbsrtowcs-state.c: New file.
8012         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
8013         (internal_state): Remove variable.
8014         * m4/mbsnrtowcs.m4: New file.
8015         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
8016         compilation units.
8017         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
8018         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
8019         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
8020         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
8021         * modules/mbsnrtowcs: New file.
8022         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
8023         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
8024         portability problem.
8025
8026 2008-12-21  Bruno Haible  <bruno@clisp.org>
8027
8028         Work around mbsrtowcs bug.
8029         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
8030         (gl_FUNC_MBSRTOWCS): Invoke it.
8031         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
8032         m4/locale-zh.m4.
8033         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
8034
8035 2008-12-21  Bruno Haible  <bruno@clisp.org>
8036
8037         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
8038
8039 2008-12-21  Bruno Haible  <bruno@clisp.org>
8040
8041         Update doc for AIX.
8042         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
8043         16-bit wchar_t type.
8044         * doc/posix-functions/btowc.texi: Likewise.
8045         * doc/posix-functions/fgetwc.texi: Likewise.
8046         * doc/posix-functions/fgetws.texi: Likewise.
8047         * doc/posix-functions/fputwc.texi: Likewise.
8048         * doc/posix-functions/fputws.texi: Likewise.
8049         * doc/posix-functions/fwide.texi: Likewise.
8050         * doc/posix-functions/fwprintf.texi: Likewise.
8051         * doc/posix-functions/fwscanf.texi: Likewise.
8052         * doc/posix-functions/getwchar.texi: Likewise.
8053         * doc/posix-functions/getwc.texi: Likewise.
8054         * doc/posix-functions/iswalnum.texi: Likewise.
8055         * doc/posix-functions/iswalpha.texi: Likewise.
8056         * doc/posix-functions/iswblank.texi: Likewise.
8057         * doc/posix-functions/iswcntrl.texi: Likewise.
8058         * doc/posix-functions/iswctype.texi: Likewise.
8059         * doc/posix-functions/iswdigit.texi: Likewise.
8060         * doc/posix-functions/iswgraph.texi: Likewise.
8061         * doc/posix-functions/iswlower.texi: Likewise.
8062         * doc/posix-functions/iswprint.texi: Likewise.
8063         * doc/posix-functions/iswpunct.texi: Likewise.
8064         * doc/posix-functions/iswspace.texi: Likewise.
8065         * doc/posix-functions/iswupper.texi: Likewise.
8066         * doc/posix-functions/iswxdigit.texi: Likewise.
8067         * doc/posix-functions/mbrtowc.texi: Likewise.
8068         * doc/posix-functions/mbsrtowcs.texi: Likewise.
8069         * doc/posix-functions/mbstowcs.texi: Likewise.
8070         * doc/posix-functions/mbtowc.texi: Likewise.
8071         * doc/posix-functions/putwchar.texi: Likewise.
8072         * doc/posix-functions/putwc.texi: Likewise.
8073         * doc/posix-functions/swprintf.texi: Likewise.
8074         * doc/posix-functions/tolower.texi: Likewise.
8075         * doc/posix-functions/toupper.texi: Likewise.
8076         * doc/posix-functions/towctrans.texi: Likewise.
8077         * doc/posix-functions/ungetwc.texi: Likewise.
8078         * doc/posix-functions/vswprintf.texi: Likewise.
8079         * doc/posix-functions/wcrtomb.texi: Likewise.
8080         * doc/posix-functions/wcscat.texi: Likewise.
8081         * doc/posix-functions/wcschr.texi: Likewise.
8082         * doc/posix-functions/wcscmp.texi: Likewise.
8083         * doc/posix-functions/wcscoll.texi: Likewise.
8084         * doc/posix-functions/wcscpy.texi: Likewise.
8085         * doc/posix-functions/wcscspn.texi: Likewise.
8086         * doc/posix-functions/wcsftime.texi: Likewise.
8087         * doc/posix-functions/wcslen.texi: Likewise.
8088         * doc/posix-functions/wcsncat.texi: Likewise.
8089         * doc/posix-functions/wcsncmp.texi: Likewise.
8090         * doc/posix-functions/wcsncpy.texi: Likewise.
8091         * doc/posix-functions/wcspbrk.texi: Likewise.
8092         * doc/posix-functions/wcsrchr.texi: Likewise.
8093         * doc/posix-functions/wcsrtombs.texi: Likewise.
8094         * doc/posix-functions/wcsspn.texi: Likewise.
8095         * doc/posix-functions/wcsstr.texi: Likewise.
8096         * doc/posix-functions/wcstod.texi: Likewise.
8097         * doc/posix-functions/wcstof.texi: Likewise.
8098         * doc/posix-functions/wcstoimax.texi: Likewise.
8099         * doc/posix-functions/wcstok.texi: Likewise.
8100         * doc/posix-functions/wcstold.texi: Likewise.
8101         * doc/posix-functions/wcstoll.texi: Likewise.
8102         * doc/posix-functions/wcstol.texi: Likewise.
8103         * doc/posix-functions/wcstombs.texi: Likewise.
8104         * doc/posix-functions/wcstoull.texi: Likewise.
8105         * doc/posix-functions/wcstoul.texi: Likewise.
8106         * doc/posix-functions/wcstoumax.texi: Likewise.
8107         * doc/posix-functions/wcswidth.texi: Likewise.
8108         * doc/posix-functions/wcsxfrm.texi: Likewise.
8109         * doc/posix-functions/wctob.texi: Likewise.
8110         * doc/posix-functions/wctomb.texi: Likewise.
8111         * doc/posix-functions/wctrans.texi: Likewise.
8112         * doc/posix-functions/wctype.texi: Likewise.
8113         * doc/posix-functions/wcwidth.texi: Likewise.
8114         * doc/posix-functions/wmemchr.texi: Likewise.
8115         * doc/posix-functions/wmemcmp.texi: Likewise.
8116         * doc/posix-functions/wmemcpy.texi: Likewise.
8117         * doc/posix-functions/wmemmove.texi: Likewise.
8118         * doc/posix-functions/wmemset.texi: Likewise.
8119         * doc/posix-functions/wprintf.texi: Likewise.
8120         * doc/posix-functions/wscanf.texi: Likewise.
8121
8122 2008-12-21  Bruno Haible  <bruno@clisp.org>
8123
8124         Update doc for HP-UX 11.11.
8125         * doc/posix-functions/btowc.texi: Clarify that the function is missing
8126         in HP-UX version 11.00, not in all versions of HP-UX 11.
8127         * doc/posix-functions/fwide.texi: Likewise.
8128         * doc/posix-functions/fwprintf.texi: Likewise.
8129         * doc/posix-functions/fwscanf.texi: Likewise.
8130         * doc/posix-functions/inet_ntop.texi: Likewise.
8131         * doc/posix-functions/inet_pton.texi: Likewise.
8132         * doc/posix-functions/mbrlen.texi: Likewise.
8133         * doc/posix-functions/mbrtowc.texi: Likewise.
8134         * doc/posix-functions/mbsinit.texi: Likewise.
8135         * doc/posix-functions/mbsrtowcs.texi: Likewise.
8136         * doc/posix-functions/swprintf.texi: Likewise.
8137         * doc/posix-functions/swscanf.texi: Likewise.
8138         * doc/posix-functions/towctrans.texi: Likewise.
8139         * doc/posix-functions/vfwprintf.texi: Likewise.
8140         * doc/posix-functions/vswprintf.texi: Likewise.
8141         * doc/posix-functions/vwprintf.texi: Likewise.
8142         * doc/posix-functions/wcrtomb.texi: Likewise.
8143         * doc/posix-functions/wcsrtombs.texi: Likewise.
8144         * doc/posix-functions/wcsstr.texi: Likewise.
8145         * doc/posix-functions/wctob.texi: Likewise.
8146         * doc/posix-functions/wctrans.texi: Likewise.
8147         * doc/posix-functions/wmemchr.texi: Likewise.
8148         * doc/posix-functions/wmemcmp.texi: Likewise.
8149         * doc/posix-functions/wmemcpy.texi: Likewise.
8150         * doc/posix-functions/wmemmove.texi: Likewise.
8151         * doc/posix-functions/wmemset.texi: Likewise.
8152         * doc/posix-functions/wprintf.texi: Likewise.
8153         * doc/posix-functions/wscanf.texi: Likewise.
8154
8155 2008-12-21  Bruno Haible  <bruno@clisp.org>
8156
8157         Work around a portability problem.
8158         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
8159         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
8160
8161 2008-12-20  Bruno Haible  <bruno@clisp.org>
8162
8163         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
8164         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
8165         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
8166         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
8167         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
8168
8169         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
8170         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
8171         set.
8172         (GNULIB_defined_mbstate_t): New macro.
8173         (mbsinit): Redefine if REPLACE_MBSINIT is set.
8174         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
8175         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
8176         reuses the system's mbrtowc function but works around the bugs.
8177         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
8178         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
8179         macros.
8180         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
8181         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
8182         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
8183         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
8184         REPLACE_MBSINIT if mbsinit needs to be overridden.
8185         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
8186         REPLACE_MBSINIT, REPLACE_MBRTOWC.
8187         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
8188         REPLACE_MBSINIT, REPLACE_MBRTOWC.
8189         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
8190         m4/locale-zh.m4.
8191         (Depends): Add mbsinit.
8192         * modules/mbsinit (Depends): Add mbrtowc.
8193         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
8194
8195 2008-12-20  Bruno Haible  <bruno@clisp.org>
8196
8197         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
8198         so that there are no conversion errors on AIX.
8199         * tests/test-mbsrtowcs.c (main): LIkewise.
8200
8201 2008-12-20  Bruno Haible  <bruno@clisp.org>
8202
8203         Work around wctob bug on Solaris <= 9.
8204         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
8205         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
8206         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
8207         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
8208         * modules/wctob (Files): Add m4/locale-fr.m4.
8209         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
8210
8211 2008-12-20  Bruno Haible  <bruno@clisp.org>
8212
8213         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
8214         /dev/null.
8215         * tests/test-select-in.sh: Likewise.
8216         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8217
8218 2008-12-20  Bruno Haible  <bruno@clisp.org>
8219
8220         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
8221         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
8222         Cygwin 1.5.x.
8223
8224 2008-12-20  Bruno Haible  <bruno@clisp.org>
8225
8226         Ensure mbstate_t is defined on HP-UX 11.11.
8227         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
8228         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
8229         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
8230         AC_USE_SYSTEM_EXTENSIONS.
8231         * modules/fnmatch (Depends-on): Add extensions.
8232         * modules/mbrlen (Depends-on): Likewise.
8233         * modules/mbrtowc (Depends-on): Likewise.
8234         * modules/mbsinit (Depends-on): Likewise.
8235         * modules/mbsrtowcs (Depends-on): Likewise.
8236         * modules/mbswidth (Depends-on): Likewise.
8237         * modules/quotearg (Depends-on): Likewise.
8238         * modules/strftime (Depends-on): Likewise.
8239
8240 2008-12-20  Bruno Haible  <bruno@clisp.org>
8241
8242         Ensure wctob is declared on IRIX 6.5.
8243         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
8244         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
8245         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
8246         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
8247         of HAVE_WCTOB.
8248         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
8249         HAVE_WCTOB.
8250         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
8251
8252 2008-12-19  Bruno Haible  <bruno@clisp.org>
8253
8254         * modules/mbsrtowcs-tests: New file.
8255         * tests/test-mbsrtowcs1.sh: New file.
8256         * tests/test-mbsrtowcs2.sh: New file.
8257         * tests/test-mbsrtowcs3.sh: New file.
8258         * tests/test-mbsrtowcs4.sh: New file.
8259         * tests/test-mbsrtowcs.c: New file.
8260
8261         New module 'mbsrtowcs'.
8262         * lib/wchar.in.h (mbsrtowcs): New declaration.
8263         * lib/mbsrtowcs.c: New file.
8264         * m4/mbsrtowcs.m4: New file.
8265         * modules/mbsrtowcs: New file.
8266         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
8267         HAVE_MBSRTOWCS.
8268         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
8269         HAVE_MBSRTOWCS.
8270         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
8271
8272 2008-12-19  Bruno Haible  <bruno@clisp.org>
8273
8274         New module 'mbrlen'.
8275         * lib/wchar.in.h (mbrlen): New declaration.
8276         * lib/mbrlen.c: New file.
8277         * m4/mbrlen.m4: New file.
8278         * modules/mbrlen: New file.
8279         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
8280         HAVE_MBRLEN.
8281         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
8282         HAVE_MBRLEN.
8283         * doc/posix-functions/mbrlen.texi: Document the new module.
8284
8285 2008-12-19  Bruno Haible  <bruno@clisp.org>
8286
8287         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
8288         * modules/mbrtowc (Depends-on): Add verify.
8289         Suggested by Paul Eggert.
8290
8291 2008-12-18  Bruno Haible  <bruno@clisp.org>
8292
8293         * modules/mbsinit-tests: New file.
8294         * tests/test-mbsinit.sh: New file.
8295         * tests/test-mbsinit.c: New file.
8296
8297 2008-12-18  Bruno Haible  <bruno@clisp.org>
8298
8299         * modules/mbrtowc-tests: New file.
8300         * tests/test-mbrtowc1.sh: New file.
8301         * tests/test-mbrtowc2.sh: New file.
8302         * tests/test-mbrtowc3.sh: New file.
8303         * tests/test-mbrtowc4.sh: New file.
8304         * tests/test-mbrtowc.c: New file.
8305
8306         New module 'mbrtowc'.
8307         * lib/wchar.in.h (mbstate_t): Override when the system does not have
8308         mbsinit and mbrtowc.
8309         (mbrtowc): New declaration.
8310         * lib/mbrtowc.c: New file.
8311         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
8312         * modules/mbrtowc: New file.
8313         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
8314         HAVE_MBRTOWC.
8315         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
8316         HAVE_MBRTOWC.
8317         * doc/posix-functions/mbrtowc.texi: Document the new module.
8318
8319 2008-12-18  Bruno Haible  <bruno@clisp.org>
8320
8321         New module 'wctob'.
8322         * lib/wchar.in.h (wctob): New declaration.
8323         * lib/wctob.c: New file.
8324         * m4/wctob.m4: New file.
8325         * modules/wctob: New file.
8326         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
8327         HAVE_WCTOB.
8328         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
8329         * doc/posix-functions/wctob.texi: Document the new module.
8330
8331 2008-12-18  Bruno Haible  <bruno@clisp.org>
8332
8333         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
8334         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
8335
8336 2008-12-18  Simon Josefsson  <simon@josefsson.org>
8337
8338         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
8339         G. Christensen" <tgc@jupiterrise.com>.
8340
8341         * lib/flock.c: Need to include errno.h.  Reported by "Tom
8342         G. Christensen" <tgc@jupiterrise.com>.
8343
8344         * lib/flock.c: Need to include string.h.  Reported by "Tom
8345         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
8346         <ebb9@byu.net>.
8347
8348 2008-12-18  Bruno Haible  <bruno@clisp.org>
8349
8350         * m4/locale-ja.m4: New file, from GNU gettext.
8351
8352 2008-12-17  Bruno Haible  <bruno@clisp.org>
8353
8354         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
8355         Suggested by Eric Blake.
8356
8357 2008-12-17  Bruno Haible  <bruno@clisp.org>
8358
8359         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
8360
8361 2008-12-17  Bruno Haible  <bruno@clisp.org>
8362
8363         * lib/mbsinit.c: Include verify.h. Verify an assumption.
8364         * modules/mbsinit (Depends-on): Add verify.
8365         Suggested by Paul Eggert.
8366
8367 2008-12-17  Bruno Haible  <bruno@clisp.org>
8368
8369         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
8370         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
8371         gl_FUNC_MBRTOWC.
8372         * m4/mbiter.m4 (gl_MBITER): LIkewise.
8373         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
8374         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
8375         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
8376         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
8377         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
8378         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
8379         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
8380         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
8381         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
8382         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
8383         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
8384         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
8385         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
8386         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
8387         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
8388         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
8389         * modules/trim (configure.ac): Likewise.
8390
8391 2008-12-17  Bruno Haible  <bruno@clisp.org>
8392
8393         * modules/btowc-tests: New file.
8394         * tests/test-btowc1.sh: New file.
8395         * tests/test-btowc2.sh: New file.
8396         * tests/test-btowc.c: New file.
8397
8398         New module 'btowc'.
8399         * lib/wchar.in.h (btowc): New declaration.
8400         * lib/btowc.c: New file.
8401         * m4/btowc.m4: New file.
8402         * modules/btowc: New file.
8403         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
8404         HAVE_BTOWC.
8405         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
8406         * doc/posix-functions/btowc.texi: Document the new module.
8407
8408 2008-12-17  Bruno Haible  <bruno@clisp.org>
8409
8410         New module 'mbsinit'.
8411         * lib/wchar.in.h (mbsinit): New declaration.
8412         * lib/mbsinit.c: New file.
8413         * m4/mbsinit.m4: New file.
8414         * modules/mbsinit: New file.
8415         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
8416         HAVE_MBSINIT.
8417         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
8418         HAVE_MBSINIT.
8419         * doc/posix-functions/mbsinit.texi: Document the new module.
8420
8421 2008-12-16  Bruno Haible  <bruno@clisp.org>
8422
8423         * lib/unistd.in.h: Add comment.
8424         * tests/test-environ.c: Don't include <stdlib.h>.
8425
8426 2008-12-16  Bruno Haible  <bruno@clisp.org>
8427
8428         * lib/parse-duration.h (parse_duration): Document return value
8429         convention.
8430         * lib/parse-duration.c: Include specification header first. Add
8431         comments.
8432         (_): Remove macro.
8433         (parse_year_month_day, parse_hour_minute_second): Move side effects
8434         outside of strchr call.
8435         (parse_non_iso8601): Move side effects outside of isspace call.
8436         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
8437         call.
8438
8439 2008-12-16  Bruno Haible  <bruno@clisp.org>
8440
8441         * tests/test-parse-duration.sh: Produce no output when the test
8442         succeeds.
8443
8444 2008-12-16  Bruno Haible  <bruno@clisp.org>
8445
8446         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
8447         expressions.
8448
8449 2008-12-15  Bruno Haible  <bruno@clisp.org>
8450
8451         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
8452         * doc/glibc-functions/flistxattr.texi: Likewise.
8453         * doc/glibc-functions/fopencookie.texi: Likewise.
8454         * doc/glibc-functions/fremovexattr.texi: Likewise.
8455         * doc/glibc-functions/fsetxattr.texi: Likewise.
8456         * doc/glibc-functions/getxattr.texi: Likewise.
8457         * doc/glibc-functions/lgetxattr.texi: Likewise.
8458         * doc/glibc-functions/listxattr.texi: Likewise.
8459         * doc/glibc-functions/llistxattr.texi: Likewise.
8460         * doc/glibc-functions/lremovexattr.texi: Likewise.
8461         * doc/glibc-functions/lsetxattr.texi: Likewise.
8462         * doc/glibc-functions/removexattr.texi: Likewise.
8463         * doc/glibc-functions/setxattr.texi: Likewise.
8464         * doc/posix-functions/open_memstream.texi: Likewise.
8465
8466 2008-12-15  Eric Blake  <ebb9@byu.net>
8467
8468         Update doc for cygwin 1.7.
8469         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
8470         functions.
8471         * doc/posix-functions/fchmodat.texi: Likewise.
8472         * doc/posix-functions/fchownat.texi: Likewise.
8473         * doc/posix-functions/fdopendir.texi: Likewise.
8474         * doc/posix-functions/fmemopen.texi: Likewise.
8475         * doc/posix-functions/freeaddrinfo.texi: Likewise.
8476         * doc/posix-functions/fstatat.texi: Likewise.
8477         * doc/posix-functions/futimens.texi: Likewise.
8478         * doc/posix-functions/gai_strerror.texi: Likewise.
8479         * doc/posix-functions/getaddrinfo.texi: Likewise.
8480         * doc/posix-functions/getnameinfo.texi: Likewise.
8481         * doc/posix-functions/if_freenameindex.texi: Likewise.
8482         * doc/posix-functions/if_indextoname.texi: Likewise.
8483         * doc/posix-functions/if_nameindex.texi: Likewise.
8484         * doc/posix-functions/if_nametoindex.texi: Likewise.
8485         * doc/posix-functions/insque.texi: Likewise.
8486         * doc/posix-functions/linkat.texi: Likewise.
8487         * doc/posix-functions/llrint.texi: Likewise.
8488         * doc/posix-functions/llrintf.texi: Likewise.
8489         * doc/posix-functions/llrintl.texi: Likewise.
8490         * doc/posix-functions/lockf.texi: Likewise.
8491         * doc/posix-functions/lrintl.texi: Likewise.
8492         * doc/posix-functions/mkdirat.texi: Likewise.
8493         * doc/posix-functions/mkfifoat.texi: Likewise.
8494         * doc/posix-functions/mknodat.texi: Likewise.
8495         * doc/posix-functions/mq_close.texi: Likewise.
8496         * doc/posix-functions/mq_getattr.texi: Likewise.
8497         * doc/posix-functions/mq_notify.texi: Likewise.
8498         * doc/posix-functions/mq_open.texi: Likewise.
8499         * doc/posix-functions/mq_receive.texi: Likewise.
8500         * doc/posix-functions/mq_send.texi: Likewise.
8501         * doc/posix-functions/mq_setattr.texi: Likewise.
8502         * doc/posix-functions/mq_timedreceive.texi: Likewise.
8503         * doc/posix-functions/mq_timedsend.texi: Likewise.
8504         * doc/posix-functions/mq_unlink.texi: Likewise.
8505         * doc/posix-functions/open_memstream.texi: Likewise.
8506         * doc/posix-functions/openat.texi: Likewise.
8507         * doc/posix-functions/posix_fadvise.texi: Likewise.
8508         * doc/posix-functions/posix_fallocate.texi: Likewise.
8509         * doc/posix-functions/posix_madvise.texi: Likewise.
8510         * doc/posix-functions/posix_memalign.texi: Likewise.
8511         * doc/posix-functions/posix_openpt.texi: Likewise.
8512         * doc/posix-functions/readlinkat.texi: Likewise.
8513         * doc/posix-functions/remque.texi: Likewise.
8514         * doc/posix-functions/renameat.texi: Likewise.
8515         * doc/posix-functions/rintl.texi: Likewise.
8516         * doc/posix-functions/sem_unlink.texi: Likewise.
8517         * doc/posix-functions/shm_open.texi: Likewise.
8518         * doc/posix-functions/shm_unlink.texi: Likewise.
8519         * doc/posix-functions/signgam.texi: Likewise.
8520         * doc/posix-functions/sigset.texi: Likewise.
8521         * doc/posix-functions/stpcpy.texi: Likewise.
8522         * doc/posix-functions/stpncpy.texi: Likewise.
8523         * doc/posix-functions/strerror.texi: Likewise.
8524         * doc/posix-functions/strtod.texi: Likewise.
8525         * doc/posix-functions/symlinkat.texi: Likewise.
8526         * doc/posix-functions/unlinkat.texi: Likewise.
8527         * doc/posix-functions/utimensat.texi: Likewise.
8528         * doc/glibc-functions/bindresvport.texi: Likewise.
8529         * doc/glibc-functions/dn_expand.texi: Likewise.
8530         * doc/glibc-functions/exp10.texi: Likewise.
8531         * doc/glibc-functions/exp10f.texi: Likewise.
8532         * doc/glibc-functions/fgetxattr.texi: Likewise.
8533         * doc/glibc-functions/flistxattr.texi: Likewise.
8534         * doc/glibc-functions/fopencookie.texi: Likewise.
8535         * doc/glibc-functions/freeifaddrs.texi: Likewise.
8536         * doc/glibc-functions/fremovexattr.texi: Likewise.
8537         * doc/glibc-functions/fsetxattr.texi: Likewise.
8538         * doc/glibc-functions/getifaddrs.texi: Likewise.
8539         * doc/glibc-functions/getxattr.texi: Likewise.
8540         * doc/glibc-functions/lgetxattr.texi: Likewise.
8541         * doc/glibc-functions/listxattr.texi: Likewise.
8542         * doc/glibc-functions/llistxattr.texi: Likewise.
8543         * doc/glibc-functions/lremovexattr.texi: Likewise.
8544         * doc/glibc-functions/lsetxattr.texi: Likewise.
8545         * doc/glibc-functions/pow10.texi: Likewise.
8546         * doc/glibc-functions/pow10f.texi: Likewise.
8547         * doc/glibc-functions/rcmd_af.texi: Likewise.
8548         * doc/glibc-functions/removexattr.texi: Likewise.
8549         * doc/glibc-functions/res_init.texi: Likewise.
8550         * doc/glibc-functions/res_mkquery.texi: Likewise.
8551         * doc/glibc-functions/res_query.texi: Likewise.
8552         * doc/glibc-functions/res_querydomain.texi: Likewise.
8553         * doc/glibc-functions/res_send.texi: Likewise.
8554         * doc/glibc-functions/rresvport_af.texi: Likewise.
8555         * doc/glibc-functions/setxattr.texi: Likewise.
8556         * doc/glibc-functions/strcasestr.texi: Likewise.
8557
8558 2008-12-15  Bruno Haible  <bruno@clisp.org>
8559
8560         Fix compilation error on OSF/1 4.0.
8561         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
8562         <sys/time.h>, simply delegate to the system header.
8563         Reported by Daniel Richard G. <oss@teragram.com>.
8564
8565 2008-12-15  Bruno Haible  <bruno@clisp.org>
8566
8567         * doc/posix-functions/openat.texi: Mention the 'openat' module.
8568         * doc/posix-functions/fchmodat.texi: Likewise.
8569         * doc/posix-functions/fchownat.texi: Likewise.
8570         * doc/posix-functions/fdopendir.texi: Likewise.
8571         * doc/posix-functions/fstatat.texi: Likewise.
8572         * doc/posix-functions/mkdirat.texi: Likewise.
8573         * doc/posix-functions/unlinkat.texi: Likewise.
8574
8575 2008-12-14  Bruno Haible  <bruno@clisp.org>
8576
8577         Update doc for POSIX:2008.
8578         * doc/posix-functions/faccessat.texi: New file.
8579         * doc/posix-functions/fchmodat.texi: New file.
8580         * doc/posix-functions/fchownat.texi: New file.
8581         * doc/posix-functions/fdopendir.texi: New file.
8582         * doc/posix-functions/fstatat.texi: New file.
8583         * doc/posix-functions/futimens.texi: New file.
8584         * doc/posix-functions/linkat.texi: New file.
8585         * doc/posix-functions/mkdirat.texi: New file.
8586         * doc/posix-functions/mkfifoat.texi: New file.
8587         * doc/posix-functions/mknodat.texi: New file.
8588         * doc/posix-functions/open_wmemstream.texi: New file.
8589         * doc/posix-functions/openat.texi: New file.
8590         * doc/posix-functions/psiginfo.texi: New file.
8591         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
8592         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
8593         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
8594         * doc/posix-functions/readlinkat.texi: New file.
8595         * doc/posix-functions/renameat.texi: New file.
8596         * doc/posix-functions/strerror_l.texi: New file.
8597         * doc/posix-functions/symlinkat.texi: New file.
8598         * doc/posix-functions/unlinkat.texi: New file.
8599         * doc/posix-functions/utimensat.texi: New file.
8600         * doc/gnulib.texi (Function Substitutes): Add these subsections.
8601
8602 2008-12-14  Bruno Haible  <bruno@clisp.org>
8603
8604         Update doc for POSIX:2008.
8605         * doc/posix-functions/alphasort.texi: Renamed from
8606         doc/glibc-functions/alphasort.texi.
8607         * doc/posix-functions/dirfd.texi: Renamed from
8608         doc/glibc-functions/dirfd.texi.
8609         * doc/posix-functions/dprintf.texi: Renamed from
8610         doc/glibc-functions/dprintf.texi.
8611         * doc/posix-functions/duplocale.texi: Renamed from
8612         doc/glibc-functions/duplocale.texi.
8613         * doc/posix-functions/fexecve.texi: Renamed from
8614         doc/glibc-functions/fexecve.texi.
8615         * doc/posix-functions/fmemopen.texi: Renamed from
8616         doc/glibc-functions/fmemopen.texi.
8617         * doc/posix-functions/freelocale.texi: Renamed from
8618         doc/glibc-functions/freelocale.texi.
8619         * doc/posix-functions/getdate_err.texi: Renamed from
8620         doc/glibc-functions/getdate_err.texi.
8621         * doc/posix-functions/isalnum_l.texi: Renamed from
8622         doc/glibc-functions/isalnum_l.texi.
8623         * doc/posix-functions/isalpha_l.texi: Renamed from
8624         doc/glibc-functions/isalpha_l.texi.
8625         * doc/posix-functions/isblank_l.texi: Renamed from
8626         doc/glibc-functions/isblank_l.texi.
8627         * doc/posix-functions/iscntrl_l.texi: Renamed from
8628         doc/glibc-functions/iscntrl_l.texi.
8629         * doc/posix-functions/isdigit_l.texi: Renamed from
8630         doc/glibc-functions/isdigit_l.texi.
8631         * doc/posix-functions/isgraph_l.texi: Renamed from
8632         doc/glibc-functions/isgraph_l.texi.
8633         * doc/posix-functions/islower_l.texi: Renamed from
8634         doc/glibc-functions/islower_l.texi.
8635         * doc/posix-functions/isprint_l.texi: Renamed from
8636         doc/glibc-functions/isprint_l.texi.
8637         * doc/posix-functions/ispunct_l.texi: Renamed from
8638         doc/glibc-functions/ispunct_l.texi.
8639         * doc/posix-functions/isspace_l.texi: Renamed from
8640         doc/glibc-functions/isspace_l.texi.
8641         * doc/posix-functions/isupper_l.texi: Renamed from
8642         doc/glibc-functions/isupper_l.texi.
8643         * doc/posix-functions/iswalnum_l.texi: Renamed from
8644         doc/glibc-functions/iswalnum_l.texi.
8645         * doc/posix-functions/iswalpha_l.texi: Renamed from
8646         doc/glibc-functions/iswalpha_l.texi.
8647         * doc/posix-functions/iswblank_l.texi: Renamed from
8648         doc/glibc-functions/iswblank_l.texi.
8649         * doc/posix-functions/iswcntrl_l.texi: Renamed from
8650         doc/glibc-functions/iswcntrl_l.texi.
8651         * doc/posix-functions/iswctype_l.texi: Renamed from
8652         doc/glibc-functions/iswctype_l.texi.
8653         * doc/posix-functions/iswdigit_l.texi: Renamed from
8654         doc/glibc-functions/iswdigit_l.texi.
8655         * doc/posix-functions/iswgraph_l.texi: Renamed from
8656         doc/glibc-functions/iswgraph_l.texi.
8657         * doc/posix-functions/iswlower_l.texi: Renamed from
8658         doc/glibc-functions/iswlower_l.texi.
8659         * doc/posix-functions/iswprint_l.texi: Renamed from
8660         doc/glibc-functions/iswprint_l.texi.
8661         * doc/posix-functions/iswpunct_l.texi: Renamed from
8662         doc/glibc-functions/iswpunct_l.texi.
8663         * doc/posix-functions/iswspace_l.texi: Renamed from
8664         doc/glibc-functions/iswspace_l.texi.
8665         * doc/posix-functions/iswupper_l.texi: Renamed from
8666         doc/glibc-functions/iswupper_l.texi.
8667         * doc/posix-functions/iswxdigit_l.texi: Renamed from
8668         doc/glibc-functions/iswxdigit_l.texi.
8669         * doc/posix-functions/isxdigit_l.texi: Renamed from
8670         doc/glibc-functions/isxdigit_l.texi.
8671         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
8672         doc/glibc-functions/mbsnrtowcs.texi.
8673         * doc/posix-functions/mkdtemp.texi: Renamed from
8674         doc/glibc-functions/mkdtemp.texi.
8675         * doc/posix-functions/newlocale.texi: Renamed from
8676         doc/glibc-functions/newlocale.texi.
8677         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
8678         doc/glibc-functions/nl_langinfo_l.texi.
8679         * doc/posix-functions/open_memstream.texi: Renamed from
8680         doc/glibc-functions/open_memstream.texi.
8681         * doc/posix-functions/opterr.texi: Renamed from
8682         doc/glibc-functions/opterr.texi.
8683         * doc/posix-functions/optind.texi: Renamed from
8684         doc/glibc-functions/optind.texi.
8685         * doc/posix-functions/optopt.texi: Renamed from
8686         doc/glibc-functions/optopt.texi.
8687         * doc/posix-functions/psignal.texi: Renamed from
8688         doc/glibc-functions/psignal.texi.
8689         * doc/posix-functions/scandir.texi: Renamed from
8690         doc/glibc-functions/scandir.texi.
8691         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
8692         doc/glibc-functions/sched_get_priority_min.texi.
8693         * doc/posix-functions/signgam.texi: Renamed from
8694         doc/glibc-functions/signgam.texi.
8695         * doc/posix-functions/stpcpy.texi: Renamed from
8696         doc/glibc-functions/stpcpy.texi.
8697         * doc/posix-functions/stpncpy.texi: Renamed from
8698         doc/glibc-functions/stpncpy.texi.
8699         * doc/posix-functions/strcasecmp_l.texi: Renamed from
8700         doc/glibc-functions/strcasecmp_l.texi.
8701         * doc/posix-functions/strcoll_l.texi: Renamed from
8702         doc/glibc-functions/strcoll_l.texi.
8703         * doc/posix-functions/strfmon_l.texi: Renamed from
8704         doc/glibc-functions/strfmon_l.texi.
8705         * doc/posix-functions/strftime_l.texi: Renamed from
8706         doc/glibc-functions/strftime_l.texi.
8707         * doc/posix-functions/strncasecmp_l.texi: Renamed from
8708         doc/glibc-functions/strncasecmp_l.texi.
8709         * doc/posix-functions/strndup.texi: Renamed from
8710         doc/glibc-functions/strndup.texi.
8711         * doc/posix-functions/strnlen.texi: Renamed from
8712         doc/glibc-functions/strnlen.texi.
8713         * doc/posix-functions/strsignal.texi: Renamed from
8714         doc/glibc-functions/strsignal.texi.
8715         * doc/posix-functions/strxfrm_l.texi: Renamed from
8716         doc/glibc-functions/strxfrm_l.texi.
8717         * doc/posix-functions/timer_gettime.texi: Renamed from
8718         doc/glibc-functions/timer_gettime.texi.
8719         * doc/posix-functions/tolower_l.texi: Renamed from
8720         doc/glibc-functions/tolower_l.texi.
8721         * doc/posix-functions/toupper_l.texi: Renamed from
8722         doc/glibc-functions/toupper_l.texi.
8723         * doc/posix-functions/towctrans_l.texi: Renamed from
8724         doc/glibc-functions/towctrans_l.texi.
8725         * doc/posix-functions/towlower_l.texi: Renamed from
8726         doc/glibc-functions/towlower_l.texi.
8727         * doc/posix-functions/towupper_l.texi: Renamed from
8728         doc/glibc-functions/towupper_l.texi.
8729         * doc/posix-functions/uselocale.texi: Renamed from
8730         doc/glibc-functions/uselocale.texi.
8731         * doc/posix-functions/vdprintf.texi: Renamed from
8732         doc/glibc-functions/vdprintf.texi.
8733         * doc/posix-functions/wcpcpy.texi:
8734         Renamed from doc/glibc-functions/wcpcpy.texi.
8735         * doc/posix-functions/wcpncpy.texi: Renamed from
8736         doc/glibc-functions/wcpncpy.texi.
8737         * doc/posix-functions/wcscasecmp.texi: Renamed from
8738         doc/glibc-functions/wcscasecmp.texi.
8739         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
8740         doc/glibc-functions/wcscasecmp_l.texi.
8741         * doc/posix-functions/wcscoll_l.texi: Renamed from
8742         doc/glibc-functions/wcscoll_l.texi.
8743         * doc/posix-functions/wcsdup.texi: Renamed from
8744         doc/glibc-functions/wcsdup.texi.
8745         * doc/posix-functions/wcsncasecmp.texi: Renamed from
8746         doc/glibc-functions/wcsncasecmp.texi.
8747         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
8748         doc/glibc-functions/wcsncasecmp_l.texi.
8749         * doc/posix-functions/wcsnlen.texi: Renamed from
8750         doc/glibc-functions/wcsnlen.texi.
8751         * doc/posix-functions/wcsnrtombs.texi: Renamed from
8752         doc/glibc-functions/wcsnrtombs.texi.
8753         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
8754         doc/glibc-functions/wcsxfrm_l.texi.
8755         * doc/posix-functions/wctrans_l.texi: Renamed from
8756         doc/glibc-functions/wctrans_l.texi.
8757         * doc/posix-functions/wctype_l.texi: Renamed from
8758         doc/glibc-functions/wctype_l.texi.
8759         * doc/gnulib.texi (Function Substitutes): Add these subsections.
8760         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
8761         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
8762         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
8763         these subsections.
8764         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
8765         Remove sections.
8766
8767 2008-12-14  Bruno Haible  <bruno@clisp.org>
8768
8769         Update doc for POSIX:2008.
8770         * doc/posix-functions/*.texi: Update URL of POSIX specification.
8771
8772 2008-12-14  Bruno Haible  <bruno@clisp.org>
8773
8774         Update doc for POSIX:2008.
8775         * doc/pastposix-functions/bcmp.texi: Renamed from
8776         doc/posix-functions/bcmp.texi.
8777         * doc/pastposix-functions/bcopy.texi: Renamed from
8778         doc/posix-functions/bcopy.texi.
8779         * doc/pastposix-functions/bsd_signal.texi: Renamed from
8780         doc/posix-functions/bsd_signal.texi.
8781         * doc/pastposix-functions/bzero.texi: Renamed from
8782         doc/posix-functions/bzero.texi.
8783         * doc/pastposix-functions/ecvt.texi: Renamed from
8784         doc/posix-functions/ecvt.texi.
8785         * doc/pastposix-functions/fcvt.texi: Renamed from
8786         doc/posix-functions/fcvt.texi.
8787         * doc/pastposix-functions/ftime.texi: Renamed from
8788         doc/posix-functions/ftime.texi.
8789         * doc/pastposix-functions/gcvt.texi: Renamed from
8790         doc/posix-functions/gcvt.texi.
8791         * doc/pastposix-functions/getcontext.texi: Renamed from
8792         doc/posix-functions/getcontext.texi.
8793         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
8794         doc/posix-functions/gethostbyaddr.texi.
8795         * doc/pastposix-functions/gethostbyname.texi: Renamed from
8796         doc/posix-functions/gethostbyname.texi.
8797         * doc/pastposix-functions/getwd.texi: Renamed from
8798         doc/posix-functions/getwd.texi.
8799         * doc/pastposix-functions/h_errno.texi: Renamed from
8800         doc/posix-functions/h_errno.texi.
8801         * doc/pastposix-functions/index.texi: Renamed from
8802         doc/posix-functions/index.texi.
8803         * doc/pastposix-functions/makecontext.texi: Renamed from
8804         doc/posix-functions/makecontext.texi.
8805         * doc/pastposix-functions/mktemp.texi: Renamed from
8806         doc/posix-functions/mktemp.texi.
8807         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
8808         doc/posix-functions/pthread_attr_getstackaddr.texi.
8809         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
8810         doc/posix-functions/pthread_attr_setstackaddr.texi.
8811         * doc/pastposix-functions/rindex.texi: Renamed from
8812         doc/posix-functions/rindex.texi.
8813         * doc/pastposix-functions/scalb.texi: Renamed from
8814         doc/posix-functions/scalb.texi.
8815         * doc/pastposix-functions/setcontext.texi: Renamed from
8816         doc/posix-functions/setcontext.texi.
8817         * doc/pastposix-functions/swapcontext.texi: Renamed from
8818         doc/posix-functions/swapcontext.texi.
8819         * doc/pastposix-functions/ualarm.texi: Renamed from
8820         doc/posix-functions/ualarm.texi.
8821         * doc/pastposix-functions/usleep.texi: Renamed from
8822         doc/posix-functions/usleep.texi.
8823         * doc/pastposix-functions/vfork.texi: Renamed from
8824         doc/posix-functions/vfork.texi.
8825         * doc/pastposix-functions/wcswcs.texi: Renamed from
8826         doc/posix-functions/wcswcs.texi.
8827         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
8828         (Function Substitutes): Update.
8829
8830 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8831
8832         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
8833         m4/strerror.m4.
8834
8835 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8836             Bruno Haible  <bruno@clisp.org>
8837
8838         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
8839
8840 2008-12-13  Bruno Haible  <bruno@clisp.org>
8841
8842         * modules/strtoull (Depends-on): Remove unistd.
8843
8844 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8845
8846         * modules/strtoull (Depends-on): Add stdlib.
8847
8848 2008-12-11  Simon Josefsson  <simon@josefsson.org>
8849
8850         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
8851
8852 2008-12-10  Jim Meyering  <meyering@redhat.com>
8853
8854         gl_ASSERT: don't say assertions are disabled when they're not
8855         * m4/assert.m4 (gl_ASSERT): Do not make configure report
8856         "checking whether to enable assertions... no", when they are in
8857         fact enabled.  This is solely a bug in the output of configure.
8858         In spite of saying "no", NDEBUG was not defined in that case.
8859         Also, as noted by Eric Blake, leave assertions enabled upon
8860         --enable-assert=INVALID.
8861
8862 2008-12-10  Bruno Haible  <bruno@clisp.org>
8863
8864         Change MODULES.html to refer to POSIX:2008 where possible.
8865         * MODULES.html.sh (POSIX2008_URL): New variable.
8866         (posix_headers): Remove sys/timeb, ucontext.
8867         (posix2001_headers): New variable.
8868         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
8869         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
8870         index, makecontext, mktemp, pthread_attr_getstackaddr,
8871         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
8872         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
8873         (posix2001_functions): New variable.
8874         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
8875         otherwise.
8876
8877 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8878
8879         add missing include to parse-duration.c
8880         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
8881         * modules/parse-duration (Depends-on): Add xalloc.
8882
8883         fix sed script reading maint.mk
8884         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
8885         (syntax-check-rules): Use it.
8886
8887 2008-12-09  Bruno Haible  <bruno@clisp.org>
8888
8889         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
8890         MacOS X 10.4/PowerPC.
8891         Reported by Simon Josefsson.
8892
8893 2008-12-08  Jim Meyering  <meyering@redhat.com>
8894
8895         work around mingw's lack of some S_IF definitions
8896         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
8897         Reported by Simon Josefsson.
8898
8899 2008-12-08  Bruno Haible  <bruno@clisp.org>
8900
8901         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
8902         applied to variables. Needed on MacOS X 10.4/PowerPC.
8903         Reported by Simon Josefsson.
8904
8905 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
8906         and Eric Blake  <ebb9@byu.net>
8907
8908         assert: honor --enable-assert
8909         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
8910         order to honor --enable-assert, rather than treating it as a
8911         synonym for --disable-assert.
8912
8913 2008-12-08  Jim Meyering  <meyering@redhat.com>
8914
8915         * lib/posixtm.c: Remove now-useless declaration of mktime.
8916
8917         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
8918
8919 2008-12-07  Bruno Haible  <bruno@clisp.org>
8920
8921         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
8922         test_once): Mark functions as static.
8923         * tests/test-tls.c (test_tls): Likewise.
8924
8925 2008-12-07  Bruno Haible  <bruno@clisp.org>
8926
8927         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
8928         iconv_register_autodetect.
8929
8930 2008-12-07  Jim Meyering  <meyering@redhat.com>
8931
8932         posixtm.c: avoid a warning
8933         * lib/posixtm.c (posixtime): Don't initialize tm0.
8934         It's no longer needed to placate gcc4's -Wuninitialized,
8935         and the attempt to placate would elicit a new warning.
8936
8937         unicodeio.c: mark unused parameters
8938         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
8939         (fallback_failure_callback): Likewise.
8940
8941 2008-12-07  Bruno Haible  <bruno@clisp.org>
8942
8943         * gnulib-tool (func_create_testdir): When building the tests
8944         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
8945         Reported by Simon Josefsson.
8946
8947 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8948
8949         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
8950
8951 2008-12-06  Bruno Haible  <bruno@clisp.org>
8952
8953         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
8954         Suggested by Eric Blake.
8955
8956 2008-12-06  Bruno Haible  <bruno@clisp.org>
8957
8958         Fix a c-stack test failure on MacOS X.
8959         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
8960         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
8961         handler for SIGBUS as well.
8962         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
8963         install a signal handler for SIGBUS as well.
8964         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
8965
8966 2008-12-06  Bruno Haible  <bruno@clisp.org>
8967
8968         Advocacy documentation.
8969         * doc/gnulib-intro.texi (Benefits): New section.
8970         * doc/gnulib.texi: Update.
8971
8972 2008-12-06  Bruno Haible  <bruno@clisp.org>
8973
8974         Document the 'manywarnings' module.
8975         * doc/manywarnings.texi: New file.
8976         * doc/gnulib.texi: Include it.
8977
8978 2008-12-05  Eric Blake  <ebb9@byu.net>
8979
8980         tests: silence some gcc warnings
8981         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
8982         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
8983         type mismatches.
8984
8985 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8986             Bruno Haible  <bruno@clisp.org>
8987
8988         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
8989
8990 2008-11-29  Jim Meyering  <meyering@redhat.com>
8991
8992         unicodeio.c: mark unused parameters
8993         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
8994         (fallback_failure_callback): Likewise.
8995
8996         fts: fix a thinko
8997         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
8998         (set_stat_type): Return S_IF*-valued "type" directly.
8999         Prompted by James Youngman's spotting a related bug.
9000         Confirmed by further testing through find.
9001
9002         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
9003         * lib/fts.c (D_TYPE): Define.
9004         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
9005         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
9006         (s_ifmt_shift_bits): New function.
9007         (set_stat_type): New function.
9008         (fts_build): When not calling fts_stat, call set_stat_type
9009         to propagate dirent.d_type info to fts_read caller.
9010         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
9011         fts_statp->st_mode type information may be valid.
9012
9013 2008-11-28  Simon Josefsson  <simon@josefsson.org>
9014
9015         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
9016         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
9017         <sds@gnu.org>.
9018
9019 2008-11-20  Bruno Haible  <bruno@clisp.org>
9020
9021         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
9022         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
9023         INCLUDE_NEXT.
9024         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
9025         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
9026         * modules/math (Makefile.am): Substitute
9027         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
9028         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9029
9030 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
9031             Bruno Haible  <bruno@clisp.org>
9032
9033         * lib/stdint.in.h: Define all type macros so that their expansion is
9034         a single typedef'ed token. Fixes a compilation failure in Boost which
9035         does "using ::int8_t;".
9036
9037 2008-11-18  Simon Josefsson  <simon@josefsson.org>
9038
9039         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
9040         gl_MANYWARN_ALL_GCC.
9041         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
9042         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
9043         * modules/manywarnings: New file.
9044         * MODULES.html.sh: Mention manywarnings module.
9045
9046 2008-11-18  Bruno Haible  <bruno@clisp.org>
9047
9048         * doc/gnulib-tool.texi (Unit tests): New section.
9049
9050 2008-11-18  Simon Josefsson  <simon@josefsson.org>
9051
9052         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
9053         paths like 'lib/po/foo.po'.
9054
9055 2008-11-17  Simon Josefsson  <simon@josefsson.org>
9056
9057         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
9058         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
9059
9060 2008-11-17  Simon Josefsson  <simon@josefsson.org>
9061
9062         * m4/warnings.m4: Use CPPFLAGS to really check whether the
9063         parameter works.
9064
9065 2008-11-17  Simon Josefsson  <simon@josefsson.org>
9066
9067         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
9068
9069 2008-11-17  Bruce Korb  <bkorb@gnu.org>
9070
9071         * modules/parse-duration-tests: New file.
9072         * tests/test-parse-duration.sh: New file.
9073         * tests/test-parse-duration.c: New file.
9074
9075         New module 'parse-duration'.
9076         * lib/parse-duration.h: New file.
9077         * lib/parse-duration.c: New file.
9078         * modules/parse-duration: New file.
9079
9080 2008-11-17  Bruno Haible  <bruno@clisp.org>
9081
9082         * tests/test-select-out.sh: Comment out the first pipe test.
9083         Reported by Simon Josefsson.
9084
9085 2008-11-17  Bruno Haible  <bruno@clisp.org>
9086
9087         * modules/getaddrinfo (Depends-on): Add servent, hostent.
9088         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
9089         gl_HOSTENT.
9090
9091 2008-11-17  Bruno Haible  <bruno@clisp.org>
9092
9093         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
9094         -lnetwork and -lnet. Needed for Haiku and BeOS.
9095
9096 2008-11-16  Bruno Haible  <bruno@clisp.org>
9097
9098         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
9099
9100 2008-11-16  Bruno Haible  <bruno@clisp.org>
9101
9102         Avoid test failure on Haiku.
9103         * tests/test-fsync.c: Include <errno.h>.
9104         (main): Don't require that fsync (0) fails.
9105
9106 2008-11-15  Bruno Haible  <bruno@clisp.org>
9107
9108         New module 'hostent'.
9109         * modules/hostent: New file.
9110         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
9111
9112 2008-11-15  Bruno Haible  <bruno@clisp.org>
9113
9114         New module 'servent'.
9115         * modules/servent: New file.
9116         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
9117
9118 2008-11-15  Bruno Haible  <bruno@clisp.org>
9119
9120         Avoid generating same test program with two different rules.
9121         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
9122         test-frexp to test-frexp-nolibm.
9123         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
9124         test-frexpl to test-frexpl-nolibm.
9125
9126 2008-11-15  Bruno Haible  <bruno@clisp.org>
9127
9128         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
9129         $(FREXPL_LIBM).
9130
9131 2008-11-15  Bruno Haible  <bruno@clisp.org>
9132
9133         * lib/netdb.in.h: Activate the definitions also when the system's
9134         <netdb.h> has 'struct addrinfo'.
9135         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
9136         EAI_OVERFLOW or AI_NUMERICSERV.
9137         * doc/posix-headers/netdb.texi: Document the problem.
9138
9139 2008-11-15  Bruno Haible  <bruno@clisp.org>
9140
9141         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
9142
9143         Make the 'sched' module work on platforms where <sched.h> exists but
9144         is incomplete (such as Haiku).
9145         * lib/sched.in.h; Include the system's <sched.h> if it exists.
9146         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
9147         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
9148         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
9149         HAVE_STRUCT_SCHED_PARAM.
9150         * modules/sched (Depends-on): Add include_next.
9151         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
9152         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
9153         * doc/posix-headers/sched.texi: Document the issue.
9154
9155 2008-11-13  Jim Meyering  <meyering@redhat.com>
9156
9157         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
9158         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
9159         test would fail due to the difference in the Report bugs to ...
9160         line.  The expected address is empty, "<>", while the actual
9161         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
9162
9163 2008-11-12  Bruno Haible  <bruno@clisp.org>
9164
9165         lstat: don't compile lstat.c on systems lacking lstat
9166         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
9167         which don't have lstat; this is handled by lib/sys_stat.in.h already.
9168         Reported by Daniel P. Berrange via Jim Meyering.
9169
9170 2008-11-12  Jim Meyering  <meyering@redhat.com>
9171
9172         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
9173
9174 2008-11-12  Simon Josefsson  <simon@josefsson.org>
9175
9176         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
9177         instead.
9178
9179 2008-11-12  Bruno Haible  <bruno@clisp.org>
9180
9181         * lib/unicodeio.c: Include unistr.h.
9182         (utf8_wctomb): Remove function.
9183         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
9184
9185 2008-11-12  Simon Josefsson  <simon@josefsson.org>
9186
9187         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
9188         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
9189         <bruno@clisp.org>.
9190         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
9191
9192 2008-11-12  Simon Josefsson  <simon@josefsson.org>
9193
9194         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
9195         * doc/gnulib.texi: Add section for warnings.
9196
9197 2008-11-11  Bruno Haible  <bruno@clisp.org>
9198
9199         * lib/sockets.h: Add a comment.
9200
9201 2008-11-11  Karl Berry  <karl@gnu.org>
9202
9203         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
9204
9205 2008-11-11  Eric Blake  <ebb9@byu.net>
9206
9207         fdl.texi: avoid git symlinks
9208         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
9209
9210 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
9211
9212         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
9213
9214 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
9215
9216         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
9217         (gl_WARN_ADD): Substitute $2 if literal.
9218
9219 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
9220
9221         * m4/warning.m4: Remove.
9222
9223 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
9224
9225         * m4/warnings.m4: Almost complete rewrite. :-)
9226
9227 2008-11-10  Simon Josefsson  <simon@josefsson.org>
9228
9229         * modules/warnings: New module.
9230         * m4/warnings.m4: New file.
9231         * MODULES.html.sh: Mention warnings module.
9232         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
9233         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9234
9235 2008-11-10  Eric Blake  <ebb9@byu.net>
9236
9237         fdl.texi: make a symlink to the latest version
9238         * doc/standards.texi: Revert today's earlier change.
9239         * doc/fdl-1.2.texi: Rename from old fdl.texi...
9240         * doc/fdl.texi: ...and replace this with a symlink to the newer
9241         fdl-1.3.texi.
9242
9243 2008-11-10  Bruno Haible  <bruno@clisp.org>
9244
9245         * tests/test-select-fd.c (main): Accept the result file name as fourth
9246         argument.
9247         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
9248         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
9249
9250 2008-11-10  Bruno Haible  <bruno@clisp.org>
9251
9252         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
9253         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
9254         as autoconf-substituted macros.
9255         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
9256         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
9257         gl_NETDB_H_DEFAULTS. Set these variables.
9258         * modules/netdb (Makefile.am): Substitute these variables.
9259
9260 2008-11-10  Eric Blake  <ebb9@byu.net>
9261
9262         standards.texi: include correct file for FDL 1.3
9263         * doc/standards.texi (GNU Free Documentation License): Change
9264         include file to pull in FDL 1.3, not 1.2.
9265
9266         fdl.texi: revert accidental change to license
9267         * doc/fdl.texi: This is FDL 1.2, not 1.3.
9268
9269 2008-11-10  Bruno Haible  <bruno@clisp.org>
9270
9271         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
9272         cross-compiling guesses also when the native compile gives no result.
9273
9274 2008-11-10  Bruno Haible  <bruno@clisp.org>
9275
9276         * lib/spawni.c (__spawni): Force variable into the stack.
9277
9278 2008-11-10  Bruno Haible  <bruno@clisp.org>
9279
9280         Add support for Haiku.
9281         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
9282         glibc and BeOS, but also on Haiku.
9283         * lib/fpurge.c (fpurge): Likewise.
9284         * lib/freadable.c (freadable): Likewise.
9285         * lib/freadahead.c (freadahead): Likewise.
9286         * lib/freading.c (freading): Likewise.
9287         * lib/freadptr.c (freadptr): Likewise.
9288         * lib/freadseek.c (freadptrinc): Likewise.
9289         * lib/fseeko.c (rpl_fseeko): Likewise.
9290         * lib/fseterr.c (fseterr): Likewise.
9291         * lib/fwritable.c (fwritable): Likewise.
9292         * lib/fwriting.c (fwriting): Likewise.
9293         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
9294
9295 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
9296
9297         * lib/config.charset: Treat Haiku like BeOS.
9298
9299 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
9300
9301         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
9302         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
9303
9304 2008-11-08  Bruno Haible  <bruno@clisp.org>
9305
9306         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
9307         AC_CACHE_CHECK.
9308
9309 2008-11-08  Bruno Haible  <bruno@clisp.org>
9310
9311         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
9312
9313 2008-11-08  Bruno Haible  <bruno@clisp.org>
9314
9315         * tests/test-select-fd.c: New file.
9316         * tests/test-select-in.sh: New file.
9317         * tests/test-select-out.sh: New file.
9318         * tests/test-select-stdin.c: New file.
9319         * modules/select-tests (Files): Add the new files.
9320         (Depends-on): Add gettimeofday.
9321         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
9322         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
9323         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
9324
9325 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
9326             Bruno Haible  <bruno@clisp.org>
9327
9328         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
9329
9330 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
9331
9332         * build-aux/pmccabe2html: Added support for C++ source files.
9333
9334 2008-11-05  Ben Pfaff  <blp@gnu.org>
9335
9336         Fix lib/close.c build on Windows.
9337         * modules/close (Files): Add lib/w32sock.h.
9338
9339 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
9340
9341         Accept Bison's NEWS format.
9342         * build-aux/announce-gen (print_news_deltas): Tweak
9343         $re_prefix.
9344
9345 2008-11-04  Bruno Haible  <bruno@clisp.org>
9346
9347         * modules/random_r (Maintainer): Add glibc.
9348
9349 2008-11-04  Simon Josefsson  <simon@josefsson.org>
9350
9351         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
9352         by karl@freefriends.org (Karl Berry).
9353         * doc/alloca.texi: Likewise.
9354         * doc/c-ctype.texi: Likewise.
9355         * doc/c-strcase.texi: Likewise.
9356         * doc/c-strcaseeq.texi: Likewise.
9357         * doc/c-strcasestr.texi: Likewise.
9358         * doc/c-strstr.texi: Likewise.
9359         * doc/c-strtod.texi: Likewise.
9360         * doc/c-strtold.texi: Likewise.
9361         * doc/ctime.texi: Likewise.
9362         * doc/error.texi: Likewise.
9363         * doc/fdl.texi: Likewise.
9364         * doc/gcd.texi: Likewise.
9365         * doc/getdate.texi: Likewise.
9366         * doc/gnulib-intro.texi: Likewise.
9367         * doc/gnulib-tool.texi: Likewise.
9368         * doc/gnulib.texi: Likewise.
9369         * doc/inet_ntoa.texi: Likewise.
9370         * doc/maintain.texi: Likewise.
9371         * doc/make-stds.texi: Likewise.
9372         * doc/quote.texi: Likewise.
9373         * doc/regexprops-generic.texi: Likewise.
9374         * doc/standards.texi: Likewise.
9375         * doc/verify.texi: Likewise.
9376         * doc/visibility.texi: Likewise.
9377         * doc/gnulib.texi (GNU Free Documentation License): Include
9378         fdl-1.3.texi instead of fdl.texi.
9379
9380 2008-11-04  Simon Josefsson  <simon@josefsson.org>
9381
9382         * doc/fdl-1.3.texi: New file, from
9383         <http://www.gnu.org/licenses/fdl-1.3.texi>.
9384         * modules/fdl-1.3: Add.
9385         * MODULES.html.sh: Add fdl-1.3.
9386
9387 2008-11-03  Bruno Haible  <bruno@clisp.org>
9388
9389         Make determination of absolute name of header file work with AIX xlc.
9390         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
9391         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
9392         preprocessing.
9393         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
9394         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
9395
9396 2008-11-03  Simon Josefsson  <simon@josefsson.org>
9397
9398         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
9399         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
9400         <ludo@gnu.org>.
9401
9402 2008-11-02  Bruno Haible  <bruno@clisp.org>
9403
9404         Mark 'strpbrk' obsolete.
9405         * modules/strpbrk (Status, Notice): New sections.
9406         * modules/strtok_r (Depends-on): Add strpbrk.
9407
9408 2008-11-02  Bruno Haible  <bruno@clisp.org>
9409
9410         Mark 'strdup' obsolete.
9411         * modules/strdup (Status, Notice): New sections.
9412         * modules/findprog (Depends-on): Add strdup.
9413         * modules/getaddrinfo (Depends-on): Likewise.
9414         * modules/localename (Depends-on): Likewise.
9415         * modules/relocatable-lib (Depends-on): Likewise.
9416         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
9417         * modules/relocatable-prog (Depends-on): Likewise.
9418         * modules/trim (Depends-on): Likewise.
9419         * modules/unictype/gen-ctype (Depends-on): Likewise.
9420         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
9421
9422 2008-11-02  Bruno Haible  <bruno@clisp.org>
9423
9424         Mark 'strcspn' obsolete.
9425         * modules/strcspn (Status, Notice): New sections.
9426
9427 2008-11-02  Bruno Haible  <bruno@clisp.org>
9428
9429         Mark 'rmdir' obsolete.
9430         * modules/rmdir (Status, Notice): New sections.
9431         * modules/clean-temp (Depends-on): Add rmdir.
9432         * modules/openat (Depends-on): Likewise.
9433
9434 2008-11-02  Bruno Haible  <bruno@clisp.org>
9435
9436         Mark 'raise' obsolete.
9437         * modules/raise (Status, Notice): New sections.
9438         (Include): Specify <signal.h>.
9439         * modules/stdio (Depends-on): Add raise.
9440         * modules/write (Depends-on): Likewise.
9441
9442 2008-11-02  Bruno Haible  <bruno@clisp.org>
9443
9444         Mark 'memset' obsolete.
9445         * modules/memset (Status, Notice): New sections.
9446
9447 2008-11-02  Bruno Haible  <bruno@clisp.org>
9448
9449         Mark 'memmove' obsolete.
9450         * modules/memmove (Status, Notice): New sections.
9451         * modules/argp (Depends-on): Add memmove.
9452         * modules/argz (Depends-on): Likewise.
9453         * modules/canonicalize (Depends-on): Likewise.
9454         * modules/canonicalize-lgpl (Depends-on): Likewise.
9455         * modules/fts (Depends-on): Likewise.
9456         * modules/getcwd (Depends-on): Likewise.
9457         * modules/human (Depends-on): Likewise.
9458         * modules/regex (Depends-on): Likewise.
9459         * modules/striconveh (Depends-on): Likewise.
9460         * modules/trim (Depends-on): Likewise.
9461         * modules/unistr/u8-move (Depends-on): Likewise.
9462         * modules/unistr/u16-move (Depends-on): Likewise.
9463         * modules/unistr/u32-move (Depends-on): Likewise.
9464
9465 2008-11-02  Bruno Haible  <bruno@clisp.org>
9466
9467         Mark 'memcpy' obsolete.
9468         * modules/memcpy (Status, Notice): New sections.
9469
9470 2008-11-02  Bruno Haible  <bruno@clisp.org>
9471
9472         Mark 'memcmp' obsolete.
9473         * modules/memcmp (Status, Notice): New sections.
9474         * modules/argmatch (Depends-on): Add memchr.
9475         * modules/backupfile (Depends-on): Likewise.
9476         * modules/c-strcasestr (Depends-on): Likewise.
9477         * modules/crypto/des (Depends-on): Likewise.
9478         * modules/csharpcomp (Depends-on): Likewise.
9479         * modules/fnmatch (Depends-on): Likewise.
9480         * modules/git-merge-changelog (Depends-on): Likewise.
9481         * modules/isnand (Depends-on): Likewise.
9482         * modules/isnand-nolibm (Depends-on): Likewise.
9483         * modules/isnanf (Depends-on): Likewise.
9484         * modules/isnanf-nolibm (Depends-on): Likewise.
9485         * modules/isnanl (Depends-on): Likewise.
9486         * modules/isnanl-nolibm (Depends-on): Likewise.
9487         * modules/mbchar (Depends-on): Likewise.
9488         * modules/memcoll (Depends-on): Likewise.
9489         * modules/quotearg (Depends-on): Likewise.
9490         * modules/regex (Depends-on): Likewise.
9491         * modules/relocatable-prog (Depends-on): Likewise.
9492         * modules/same (Depends-on): Likewise.
9493         * modules/signbit (Depends-on): Likewise.
9494         * modules/strcasestr-simple (Depends-on): Likewise.
9495         * modules/unictype/gen-ctype (Depends-on): Likewise.
9496         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
9497         * modules/uniname/uniname (Depends-on): Likewise.
9498         * modules/unistr/u8-cmp (Depends-on): Likewise.
9499
9500 2008-11-02  Bruno Haible  <bruno@clisp.org>
9501
9502         Mark 'memchr' obsolete.
9503         * modules/memchr (Status, Notice): New sections.
9504         * modules/argp (Depends-on): Add memchr.
9505         * modules/base64 (Depends-on): Likewise.
9506         * modules/c-strcasestr (Depends-on): Likewise.
9507         * modules/chdir-long (Depends-on): Likewise.
9508         * modules/fnmatch (Depends-on): Likewise.
9509         * modules/getsubopt (Depends-on): Likewise.
9510         * modules/git-merge-changelog (Depends-on): Likewise.
9511         * modules/glob (Depends-on): Likewise.
9512         * modules/strcasestr-simple (Depends-on): Likewise.
9513         * modules/strnlen (Depends-on): Likewise.
9514
9515 2008-11-02  Bruno Haible  <bruno@clisp.org>
9516
9517         Mark 'atexit' obsolete.
9518         * modules/atexit (Status, Notice): New sections.
9519         * modules/chdir-long (Depends-on): Add atexit.
9520         * modules/wait-process (Depends-on): Likewise.
9521
9522 2008-11-02  Bruno Haible  <bruno@clisp.org>
9523
9524         * gnulib-tool: New option --with-obsolete.
9525         (func_usage): Document it.
9526         (func_modules_transitive_closure): Drop obsolete dependencies if
9527         incobsolete is not true.
9528         (func_import): Read and save the incobsolete variable to the cache.
9529
9530 2008-11-02  Bruno Haible  <bruno@clisp.org>
9531
9532         * modules/TEMPLATE-EXTENDED: New field 'Status'.
9533         * gnulib-tool: New option --extract-status.
9534         (func_usage): Document it.
9535         (sed_extract_prog): Recognize it.
9536         (func_get_status): New function.
9537
9538 2008-10-30  Simon Josefsson  <simon@josefsson.org>
9539
9540         * modules/sockets (License): Change from LGPL to LGPLv2+.
9541
9542 2008-10-28  Simon Josefsson  <simon@josefsson.org>
9543
9544         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
9545
9546 2008-10-28  Simon Josefsson  <simon@josefsson.org>
9547
9548         * MODULES.html.sh (Support for systems lacking POSIX:2001):
9549         Mention times and sys_times.
9550         * modules/sys_times, modules/sys_times-tests: New modules.
9551         * modules/times, modules/times-tests: Likewise
9552         * m4/sys_times_h.m4: New file.
9553         * lib/sys_times.in.h: Likewise
9554         * lib/times.c: Likewise.
9555         * tests/test-sys_times.c: Likewise.
9556         * tests/test-times.c: Likewise.
9557         * doc/posix-headers/sys_times.texi: Update.
9558         * doc/posix-functions/times.texi: Update.
9559
9560 2008-10-28  Jim Meyering  <meyering@redhat.com>
9561
9562         * modules/tempname (Depends-on): Add lstat.
9563
9564         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
9565
9566 2008-10-28  Simon Josefsson  <simon@josefsson.org>
9567
9568         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
9569         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
9570         using idiom used elsewhere in gnulib.
9571
9572 2008-10-27  Jim Meyering  <meyering@redhat.com>
9573
9574         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
9575
9576 2008-10-27  Simon Josefsson  <simon@josefsson.org>
9577
9578         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
9579         TESTS_ENVIRONMENT, for shell scripts that needs to call built
9580         programs.
9581         * tests/test-argp-2.sh: Use $EXEEXT when needed.
9582
9583 2008-10-27  Simon Josefsson  <simon@josefsson.org>
9584
9585         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
9586
9587 2008-10-27  Bruno Haible  <bruno@clisp.org>
9588
9589         * tests/test-lstat.c: Include <stdio.h>.
9590
9591 2008-10-27  Simon Josefsson  <simon@josefsson.org>
9592
9593         * modules/lstat-tests: New module.
9594         * tests/test-lstat.c: New file.
9595
9596 2008-10-26  Jim Meyering  <meyering@redhat.com>
9597
9598         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
9599
9600 2008-10-26  Simon Josefsson  <simon@josefsson.org>
9601             Bruno Haible  <bruno@clisp.org>
9602
9603         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
9604         * modules/configmake (Include): Add a note that the include must come
9605         after all system headers.
9606         * lib/javaversion.c: Include configmake.h after all other includes.
9607
9608 2008-10-26  Bruno Haible  <bruno@clisp.org>
9609
9610         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
9611         HAVE_STRUCT_RANDOM_DATA to 1.
9612         (gl_STDLIB_H): Simplify.
9613
9614 2008-10-26  Simon Josefsson  <simon@josefsson.org>
9615
9616         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
9617         substitute HAVE_STRUCT_RANDOM_DATA.
9618         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
9619         random_data.
9620         * modules/stdlib (Makefile.am): Substitute
9621         HAVE_STRUCT_RANDOM_DATA.
9622
9623 2008-10-26  Simon Josefsson  <simon@josefsson.org>
9624
9625         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
9626         * doc/gnulib-intro.texi (Copyright): Likewise.
9627
9628 2008-10-26  Simon Josefsson  <simon@josefsson.org>
9629
9630         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
9631         findings.
9632
9633 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
9634             Bruno Haible  <bruno@clisp.org>
9635
9636         * lib/unistd.in.h: Include <winsock2.h>.
9637         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
9638         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
9639         Provide dummy declarations.
9640         (gethostname): Override.
9641         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
9642         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
9643         gl_PREREQ_SYS_H_WINSOCK2.
9644         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
9645         * doc/posix-functions/gethostname.texi: More details.
9646
9647 2008-10-25  Bruno Haible  <bruno@clisp.org>
9648
9649         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
9650         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
9651         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
9652
9653         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
9654         here ...
9655         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
9656         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
9657         gl_UNISTD_H_DEFAULTS.
9658
9659 2008-10-25  Eric Blake  <ebb9@byu.net>
9660
9661         signbit: avoid spurious compiler failure
9662         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
9663         declarations inside function.
9664
9665 2008-10-24  Simon Josefsson  <simon@josefsson.org>
9666             Bruno Haible  <bruno@clisp.org>
9667
9668         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
9669         * modules/random_r (Depends-on): Add stdint.
9670
9671 2008-10-24  Bruno Haible  <bruno@clisp.org>
9672
9673         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
9674         Eggert.
9675         * modules/strerror (License): Likewise.
9676
9677 2008-10-24  Jim Meyering  <meyering@redhat.com>
9678
9679         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
9680         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
9681
9682 2008-10-24  Eric Blake  <ebb9@byu.net>
9683
9684         getgroups: fix compilation when getgroups is available
9685         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
9686         but with <config.h> override of getgroups disabled.
9687
9688 2008-10-24  Simon Josefsson  <simon@josefsson.org>
9689
9690         * doc/gnulib.texi (Header files): Add note about C++ problems.
9691         Explained by Bruno Haible <bruno@clisp.org>.
9692
9693 2008-10-23  Bruno Haible  <bruno@clisp.org>
9694
9695         Define a dummy SA_NODEFER macro on Interix.
9696         * lib/signal.in.h (SA_NODEFER): Define fallback.
9697         Reported by Aleksey Cheusov <cheusov@tut.by> via
9698         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
9699
9700 2008-10-23  Bruno Haible  <bruno@clisp.org>
9701
9702         * modules/freadahead (License): Change to LGPLv2+.
9703         Suggested by Simon Josefsson.
9704
9705 2008-10-23  Jim Meyering  <meyering@redhat.com>
9706
9707         random_r: new module
9708         * modules/random_r: New file.
9709         * m4/random_r.m4: New file.
9710         * lib/random_r.c: New file, from glibc.
9711         * modules/random_r-tests: New file.
9712         * tests/test-random_r.c: New file.
9713         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
9714          Declare.
9715         (RAND_MAX): Define.
9716         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
9717         * modules/stdlib: Substitute them, too.
9718         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
9719         * doc/glibc-functions/initstate_r.texi: Mention the new module.
9720         * doc/glibc-functions/random_r.texi: Likewise.
9721         * doc/glibc-functions/setstate_r.texi: Likewise.
9722         * doc/glibc-functions/srandom_r.texi: Likewise.
9723         * config/srclist.txt: Mention it.
9724
9725 2008-10-23  David Lutterkort  <lutter@redhat.com>
9726
9727         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
9728         link requirement
9729
9730 2008-10-23  Jim Meyering  <meyering@redhat.com>
9731
9732         selinux-h: mark parameters of stub functions as intentionally unused
9733         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
9734         * lib/se-context.in.h: Likewise.
9735
9736 2008-10-22  Simon Josefsson  <simon@josefsson.org>
9737
9738         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
9739
9740 2008-10-22  Simon Josefsson  <simon@josefsson.org>
9741
9742         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
9743
9744 2008-10-22  Eric Blake  <ebb9@byu.net>
9745
9746         glthread/thread: avoid compiler warning
9747         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
9748         Add unreachable abort to silence compiler.
9749
9750 2008-10-22  Eric Blake  <ebb9@byu.net>
9751
9752         netdb: also supply struct addrinfo for cygwin 1.5.x
9753         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
9754         older cygwin.
9755         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
9756         cygwin.
9757         * doc/posix-headers/netdb.texi (netdb.h): Document this.
9758
9759 2008-10-22  Bruno Haible  <bruno@clisp.org>
9760
9761         * users.txt: Update entry about pspp.
9762
9763 2008-10-21  Bruno Haible  <bruno@clisp.org>
9764
9765         Simplification.
9766         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
9767         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
9768
9769         Simplification.
9770         * lib/ioctl.c (ioctl): Don't undefine.
9771         * lib/socket.c (socket): Don't undefine.
9772
9773         Remove unused module indicator macros.
9774         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
9775         GNULIB_$1 as a C macro.
9776
9777         * doc/posix-functions/close.texi: Undo last change.
9778         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
9779         Windows platforms.
9780
9781 2008-10-21  Bruno Haible  <bruno@clisp.org>
9782
9783         Add gethostname() declaration to <unistd.h>.
9784         * lib/unistd.in.h (gethostname): New declaration.
9785         * lib/gethostname.c: Include <unistd.h>.
9786         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
9787         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
9788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
9789         and HAVE_GETHOSTNAME.
9790         * modules/gethostname (Depends-on): Add unistd.
9791         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9792         (Include): Specify <unistd.h>.
9793         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
9794         HAVE_GETHOSTNAME.
9795         * tests/test-gethostname.c: Include <unistd.h> first.
9796
9797 2008-10-21  Bruno Haible  <bruno@clisp.org>
9798
9799         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
9800         * modules/select-tests (Depends-on): Likewise.
9801         Reported by Simon Josefsson.
9802
9803 2008-10-21  Simon Josefsson  <simon@josefsson.org>
9804
9805         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
9806         * lib/accept.c: New file, based on winsock.c.
9807         * lib/bind.c: New file, based on winsock.c.
9808         * lib/connect.c: New file, based on winsock.c.
9809         * lib/getpeername.c: New file, based on winsock.c.
9810         * lib/getsockname.c: New file, based on winsock.c.
9811         * lib/getsockopt.c: New file, based on winsock.c.
9812         * lib/ioctl.c: New file, based on winsock.c.
9813         * lib/listen.c: New file, based on winsock.c.
9814         * lib/recv.c: New file, based on winsock.c.
9815         * lib/recvfrom.c: New file, based on winsock.c.
9816         * lib/send.c: New file, based on winsock.c.
9817         * lib/sendto.c: New file, based on winsock.c.
9818         * lib/setsockopt.c: New file, based on winsock.c.
9819         * lib/shutdown.c: New file, based on winsock.c.
9820         * lib/socket.c: New file, based on winsock.c.
9821         * lib/w32sock.h: New file, based on winsock.c.
9822         * lib/winsock.c: Remove file.
9823         * modules/accept: Likewise.
9824         * modules/bind: Likewise.
9825         * modules/connect: Likewise.
9826         * modules/getpeername: Likewise.
9827         * modules/getsockname: Likewise.
9828         * modules/getsockopt: Likewise.
9829         * modules/ioctl: Likewise.
9830         * modules/listen: Likewise.
9831         * modules/recv: Likewise.
9832         * modules/recvfrom: Likewise.
9833         * modules/send: Likewise.
9834         * modules/sendto: Likewise.
9835         * modules/setsockopt: Likewise.
9836         * modules/shutdown: Likewise.
9837         * modules/socket: Use socket.c instead of winsock.c.
9838         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
9839         * doc/posix-functions/accept.texi: Doc fix.
9840         * doc/posix-functions/bind.texi: Doc fix.
9841         * doc/posix-functions/close.texi: Doc fix.
9842         * doc/posix-functions/connect.texi: Doc fix.
9843         * doc/posix-functions/getpeername.texi: Doc fix.
9844         * doc/posix-functions/getsockname.texi: Doc fix.
9845         * doc/posix-functions/getsockopt.texi: Doc fix.
9846         * doc/posix-functions/ioctl.texi: Doc fix.
9847         * doc/posix-functions/listen.texi: Doc fix.
9848         * doc/posix-functions/recv.texi: Doc fix.
9849         * doc/posix-functions/recvfrom.texi: Doc fix.
9850         * doc/posix-functions/send.texi: Doc fix.
9851         * doc/posix-functions/sendto.texi: Doc fix.
9852         * doc/posix-functions/setsockopt.texi: Doc fix.
9853         * doc/posix-functions/shutdown.texi: Doc fix.
9854         * doc/posix-functions/socket.texi: Doc fix.
9855
9856 2008-10-20  Bruno Haible  <bruno@clisp.org>
9857
9858         Take into account the role of SIGABRT_COMPAT on Windows 2008.
9859         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
9860         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
9861         as an alias for SIGABRT.
9862         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
9863         (sigaction): Map it to SIGABRT.
9864         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
9865
9866 2008-10-20  Bruno Haible  <bruno@clisp.org>
9867
9868         * lib/fts.c: Don't include lstat.h.
9869         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
9870
9871         Move the lstat() declaration to <sys/stat.h>.
9872         * lib/lstat.h: Remove file.
9873         * lib/sys_stat.in.h: Add special invocation convention.
9874         (lstat): New declaration.
9875         * lib/lstat.c (orig_lstat): New function.
9876         (rpl_lstat): Use orig_lstat instead of lstat.
9877         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
9878         AC_C_INLINE. Set REPLACE_LSTAT.
9879         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
9880         and REPLACE_LSTAT.
9881         * modules/lstat (Files): Remove lib/lstat.h.
9882         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
9883         (Include): Specify <sys/stat.h> instead of lstat.h.
9884         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
9885         REPLACE_LSTAT.
9886         * NEWS: Mention the change.
9887
9888 2008-10-20  Bruno Haible  <bruno@clisp.org>
9889
9890         * modules/posix_spawn-tests: New file.
9891         * tests/test-posix_spawn3.c: New file.
9892
9893 2008-10-20  Bruno Haible  <bruno@clisp.org>
9894
9895         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
9896         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
9897         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
9898         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
9899         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
9900
9901 2008-10-20  Bruno Haible  <bruno@clisp.org>
9902
9903         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
9904         of posix_spawn on AIX 5.3.
9905
9906 2008-10-20  Bruno Haible  <bruno@clisp.org>
9907
9908         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
9909
9910 2008-10-20  Bruno Haible  <bruno@clisp.org>
9911
9912         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
9913         of AC_LANG_PROGRAM.
9914
9915 2008-10-20  Simon Josefsson  <simon@josefsson.org>
9916
9917         * lib/netdb.in.h: Don't define GNU specific constants until they
9918         are supported or needed.  Reported by Bruno Haible
9919         <bruno@clisp.org>.
9920
9921 2008-10-20  Simon Josefsson  <simon@josefsson.org>
9922
9923         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
9924
9925 2008-10-20  Simon Josefsson  <simon@josefsson.org>
9926
9927         * lib/getaddrinfo.h: Remove file.
9928         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
9929         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
9930         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
9931         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
9932         * modules/netdb: Substitute GNULIB_GETADDRINFO.
9933         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
9934         * tests/test-getaddrinfo.c: Likewise.
9935         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
9936         * NEWS: Mention change.
9937
9938 2008-10-19  Bruno Haible  <bruno@clisp.org>
9939
9940         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
9941
9942 2008-10-19  Bruno Haible  <bruno@clisp.org>
9943
9944         * lib/wait-process.c: Include simply <sys/wait.h>.
9945         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
9946         WIFSTOPPED): Remove fallback definitions.
9947         * modules/wait-process (Depends-on): Add sys_wait.
9948
9949         New module 'sys_wait'.
9950         * modules/sys_wait: New file.
9951         * lib/sys_wait.in.h: New file, partially copied from
9952         lib/wait-process.c.
9953         * m4/sys_wait_h.m4: New file.
9954         * doc/posix-headers/sys_wait.texi: Mention the new module.
9955
9956 2008-10-19  Bruno Haible  <bruno@clisp.org>
9957
9958         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
9959
9960 2008-10-19  Bruno Haible  <bruno@clisp.org>
9961
9962         Assume that waitpid() fills an 'int' status, not a 'union wait'.
9963         * lib/wait-process.c (WAIT_T): Remove type.
9964         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
9965         (wait_subprocess): Update.
9966
9967 2008-10-19  Bruno Haible  <bruno@clisp.org>
9968
9969         New module 'atoll'.
9970         * modules/atoll: New file.
9971         * lib/stdlib.in.h (atoll): New declaration.
9972         * lib/atoll.c: New file, from glibc with modifications.
9973         * m4/atoll.m4: New file.
9974         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
9975         HAVE_ATOLL.
9976         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
9977         * doc/posix-functions/atoll.texi: Mention the new module.
9978
9979 2008-10-19  Bruno Haible  <bruno@clisp.org>
9980
9981         Add strtoull() declaration to <stdlib.h>.
9982         * lib/stdlib.in.h (strtoull): New declaration.
9983         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
9984         Set HAVE_STRTOULL.
9985         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
9986         HAVE_STRTOULL.
9987         * modules/strtoull (Depends-on): Add stdlib.
9988         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
9989         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
9990         HAVE_STRTOULL.
9991
9992 2008-10-19  Bruno Haible  <bruno@clisp.org>
9993
9994         Add strtoll() declaration to <stdlib.h>.
9995         * lib/stdlib.in.h (strtoll): New declaration.
9996         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
9997         Set HAVE_STRTOLL.
9998         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
9999         HAVE_STRTOLL.
10000         * modules/strtoll (Depends-on): Add stdlib.
10001         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10002         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
10003
10004 2008-10-19  Bruno Haible  <bruno@clisp.org>
10005
10006         * modules/bcopy (Depends-on): Add strings.
10007         (Include): Specify <strings.h>.
10008
10009 2008-10-19  Bruno Haible  <bruno@clisp.org>
10010
10011         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
10012
10013 2008-10-19  Bruno Haible  <bruno@clisp.org>
10014
10015         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
10016         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
10017         mingw.
10018
10019 2008-10-19  Bruno Haible  <bruno@clisp.org>
10020
10021         * lib/atanl.c: Don't include isnanl.h.
10022         * lib/cosl.c: Likewise.
10023         * lib/ldexpl.c: Likewise.
10024         * lib/logl.c: Likewise.
10025         * lib/sinl.c: Likewise.
10026         * lib/sqrtl.c: Likewise.
10027         * lib/tanl.c: Likewise.
10028
10029         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
10030         * lib/isnanf.h: Remove file.
10031         * lib/isnand.h: Remove file.
10032         * lib/isnanl.h: Remove file.
10033         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
10034         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
10035         macros.
10036         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
10037         HAVE_ISNANF, don't define it as a C macro.
10038         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
10039         HAVE_ISNAND, don't define it as a C macro.
10040         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
10041         HAVE_ISNANL, don't define it as a C macro.
10042         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
10043         HAVE_ISNAN[FDL].
10044         * modules/isnanf (Files): Remove lib/isnanf.h.
10045         (Depends-on): Add math.
10046         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10047         (Include): Specify <math.h> instead of isnanf.h.
10048         * modules/isnand (Files): Remove lib/isnand.h.
10049         (Depends-on): Add math.
10050         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10051         (Include): Specify <math.h> instead of isnand.h.
10052         * modules/isnanl (Files): Remove lib/isnanl.h.
10053         (Depends-on): Add math.
10054         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10055         (Include): Specify <math.h> instead of isnanl.h.
10056         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
10057         HAVE_ISNAN[FDL].
10058         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
10059         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
10060         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
10061         * NEWS: Mention the change.
10062
10063 2008-10-18  Bruno Haible  <bruno@clisp.org>
10064
10065         Add getusershell(), setusershell(), endusershell() declarations to
10066         <unistd.h>.
10067         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
10068         declarations.
10069         * lib/getusershell.c: Include unistd.h.
10070         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
10071         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
10072         HAVE_GETUSERSHELL.
10073         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
10074         and HAVE_GETUSERSHELL.
10075         * modules/getusershell (Depends-on): Add unistd, extensions.
10076         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10077         (Include): Specify <unistd.h>.
10078         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
10079         HAVE_GETUSERSHELL.
10080
10081 2008-10-18  Bruno Haible  <bruno@clisp.org>
10082
10083         Add a getloadavg() declaration to <stdlib.h>.
10084         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
10085         getloadavg declaration.
10086         (getloadavg): New declaration.
10087         * lib/getloadavg.c: Include <stdlib.h> first.
10088         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
10089         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
10090         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
10091         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
10092         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
10093         * modules/getloadavg (Depends-on): Add stdlib, extensions.
10094         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10095         (Include): Specify <stdlib.h>.
10096         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
10097         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
10098
10099 2008-10-18  Bruno Haible  <bruno@clisp.org>
10100
10101         * lib/dirchownmod.c: Don't include lchmod.h.
10102
10103         Move the lchmod() declaration to <sys/stat.h>.
10104         * lib/lchmod.h: Remove file.
10105         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
10106         (lchmod): New declaration, moved here from lib/lchown.h.
10107         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
10108         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
10109         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
10110         and HAVE_LCHMOD.
10111         * modules/lchmod (Files): Remove lib/lchmod.h.
10112         (Depends-on): Add sys_stat, extensions.
10113         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
10114         (Include): Specify <sys/stat.h> instead of lchmod.h.
10115         * modules/sys_stat (Depends-on): Add link-warning.
10116         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
10117         definition of GL_LINK_WARNING.
10118         * NEWS: Mention the change.
10119
10120 2008-10-18  Bruno Haible  <bruno@clisp.org>
10121
10122         * lib/fchdir.c: Don't include dirfd.h.
10123         * lib/fts.c: Likewise.
10124         * lib/getcwd.c: Likewise.
10125         * lib/glob.c: Likewise.
10126
10127         Move the dirfd() declaration to <dirent.h>.
10128         * lib/dirfd.h: Remove file.
10129         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
10130         (dirfd): New declaration.
10131         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
10132         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
10133         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
10134         HAVE_DECL_DIRFD.
10135         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
10136         HAVE_DECL_DIRFD.
10137         * modules/dirfd (Files): Remove lib/dirfd.h.
10138         (Depends-on): Add dirent, extensions.
10139         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
10140         (Include): Specify <dirent.h> instead of dirfd.h.
10141         * modules/dirent (Depends-on): Add link-warning.
10142         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
10143         definition of GL_LINK_WARNING.
10144         * NEWS: Mention the change.
10145
10146 2008-10-18  Bruno Haible  <bruno@clisp.org>
10147
10148         Move the euidaccess() declaration to <unistd.h>.
10149         * lib/euidaccess.h: Remove file.
10150         * lib/unistd.in.h (euidaccess): New declaration.
10151         * lib/euidaccess.c: Don't include euidaccess.h.
10152         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
10153         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
10154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
10155         and HAVE_EUIDACCESS.
10156         * modules/euidaccess (Files): Remove lib/euidaccess.h.
10157         (Depends-on): Add unistd.
10158         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10159         (Include): Specify <unistd.h> instead of euidaccess.h.
10160         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
10161         HAVE_EUIDACCESS.
10162         * NEWS: Mention the change.
10163
10164 2008-10-18  Bruno Haible  <bruno@clisp.org>
10165
10166         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
10167
10168         Move the getdomainname() declaration to <unistd.h>.
10169         * lib/getdomainname.h: Remove file.
10170         * lib/unistd.in.h (getdomainname): New declaration.
10171         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
10172         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
10173         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
10174         HAVE_GETDOMAINNAME.
10175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10176         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
10177         * modules/getdomainname (Files): Remove lib/getdomainname.h.
10178         (Depends-on): Add unistd, extensions.
10179         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10180         (Includes): Specify <unistd.h> instead of getdomainname.h.
10181         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
10182         HAVE_GETDOMAINNAME.
10183         * NEWS: Mention the change.
10184
10185 2008-10-18  Bruno Haible  <bruno@clisp.org>
10186
10187         * modules/dirent: New file.
10188         * m4/dirent_h.m4: New file.
10189         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
10190         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
10191         * modules/fchdir (Files): Remove lib/dirent.in.h.
10192         (Depends-on): Add dirent.
10193         (Makefile.am): Move rules to modules/dirent.
10194         * doc/posix-headers/dirent.texi: Mention the new module.
10195
10196 2008-10-18  Bruno Haible  <bruno@clisp.org>
10197
10198         Avoid -Wunused-parameter warnings in public gnulib header files.
10199         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
10200         macro.
10201         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
10202
10203 2008-10-18  Bruno Haible  <bruno@clisp.org>
10204
10205         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
10206         * doc/glibc-functions/error.texi: Mention the module 'error'.
10207         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
10208         * doc/glibc-functions/getdomainname.texi: Mention the module
10209         'getdomainname'.
10210         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
10211         * doc/glibc-functions/getpagesize.texi: Mention the module
10212         'getpagesize'.
10213         * doc/glibc-functions/getusershell.texi: Mention the module
10214         'getusershell'.
10215         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
10216         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
10217         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
10218         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
10219         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
10220         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
10221         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
10222         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
10223         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
10224         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
10225         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
10226         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
10227         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
10228         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
10229
10230 2008-10-17  Bruno Haible  <bruno@clisp.org>
10231
10232         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
10233         HP-UX and IRIX, use -0.0L.
10234         * tests/test-ceill.c (minus_zero): Likewise.
10235         * tests/test-floorl.c (minus_zero): Likewise.
10236         * tests/test-frexpl.c (minus_zero): Likewise.
10237         * tests/test-isnan.c (minus_zerol): Likewise.
10238         * tests/test-isnanl.h (minus_zero): Likewise.
10239         * tests/test-ldexpl.c (minus_zero): Likewise.
10240         * tests/test-roundl.c (minus_zero): Likewise.
10241         * tests/test-signbit.c (minus_zerol): Likewise.
10242         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
10243         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
10244         * tests/test-truncl.c (minus_zero): Likewise.
10245         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
10246         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
10247         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
10248         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
10249
10250 2008-10-17  Bruno Haible  <bruno@clisp.org>
10251
10252         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
10253         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
10254         that it gets activated only for gcc >= 3.0.
10255         * lib/dirent.in.h: Likewise.
10256         * lib/errno.in.h: Likewise.
10257         * lib/fcntl.in.h: Likewise.
10258         * lib/float.in.h: Likewise.
10259         * lib/iconv.in.h: Likewise.
10260         * lib/inttypes.in.h: Likewise.
10261         * lib/locale.in.h: Likewise.
10262         * lib/math.in.h: Likewise.
10263         * lib/netdb.in.h: Likewise.
10264         * lib/netinet_in.in.h: Likewise.
10265         * lib/search.in.h: Likewise.
10266         * lib/signal.in.h: Likewise.
10267         * lib/spawn.in.h: Likewise.
10268         * lib/stdarg.in.h: Likewise.
10269         * lib/stdint.in.h: Likewise.
10270         * lib/stdio.in.h: Likewise.
10271         * lib/stdlib.in.h: Likewise.
10272         * lib/string.in.h: Likewise.
10273         * lib/strings.in.h: Likewise.
10274         * lib/sys_file.in.h: Likewise.
10275         * lib/sys_ioctl.in.h: Likewise.
10276         * lib/sys_select.in.h: Likewise.
10277         * lib/sys_socket.in.h: Likewise.
10278         * lib/sys_stat.in.h: Likewise.
10279         * lib/sys_time.in.h: Likewise.
10280         * lib/sysexits.in.h: Likewise.
10281         * lib/time.in.h: Likewise.
10282         * lib/unistd.in.h: Likewise.
10283         * lib/wchar.in.h: Likewise.
10284         * lib/wctype.in.h: Likewise.
10285         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
10286
10287 2008-10-17  Jim Meyering  <meyering@redhat.com>
10288
10289         ignore-value: don't depend on inline module
10290         * modules/ignore-value (Depends-on): Remove 'inline'.
10291         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
10292         Suggestion from Bruno Haible.
10293
10294 2008-10-17  Bruno Haible  <bruno@clisp.org>
10295
10296         New implementation of condition variables for Win32.
10297         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
10298         (gl_linked_waitqueue_t): New type.
10299         (gl_cond_t): Use it.
10300         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
10301         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
10302         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
10303         (glthread_cond_init_func, glthread_cond_wait_func,
10304         glthread_cond_timedwait_func, glthread_cond_signal_func,
10305         glthread_cond_broadcast_func, glthread_cond_destroy_func):
10306         Reimplemented on the basis of gl_linked_waitqueue_t.
10307         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
10308         gl_waitqueue_t.
10309         (gl_rwlock_t): Update.
10310         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
10311
10312 2008-10-17  Simon Josefsson  <simon@josefsson.org>
10313
10314         * modules/recvfrom (Depends-on): Add dependency on getpeername.
10315         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
10316
10317 2008-10-17  Jim Meyering  <meyering@redhat.com>
10318
10319         ignore-value: new module
10320         * modules/ignore-value: New file.
10321         * lib/ignore-value.h: New file.
10322         * MODULES.html.sh (Compiler warning management): New section,
10323         just for this module.  More to come.
10324
10325 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
10326
10327         open-safer.c: avoid 'signed and unsigned in conditional...' warning
10328         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
10329         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
10330
10331 2008-10-16  Jim Meyering  <meyering@redhat.com>
10332
10333         openat-die.c: avoid 'no previous prototype' warning
10334         * lib/openat-die.c: Include "openat.h".
10335         Reported by Reuben Thomas <rrt@sc3d.org>.
10336
10337 2008-10-16  Simon Josefsson  <simon@josefsson.org>
10338
10339         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
10340         * lib/netdb.in.h: Fix typo.
10341         Reported by Bruno Haible  <bruno@clisp.org>
10342
10343         * lib/netdb.in.h: Include sys/socket.h for platforms without
10344         netdb.h, to get structures like hostent on MinGW.
10345         * modules/netdb (Depends-on): Add sys_socket.
10346
10347 2008-10-15  Simon Josefsson  <simon@josefsson.org>
10348
10349         * modules/netdb, modules/netdb-tests: New file.
10350         * m4/netdb_h.m4: New file.
10351         * lib/netdb.in.h: Add, currently just an empty file pending
10352         definitions.
10353         * tests/test-netdb.c: New file.
10354         * doc/posix-headers/netdb.texi: Mention that we replace it if
10355         needed.
10356         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
10357         netdb.
10358
10359 2008-10-15  Simon Josefsson  <simon@josefsson.org>
10360
10361         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
10362         with code.
10363
10364 2008-10-13  Bruno Haible  <bruno@clisp.org>
10365
10366         * lib/glthread/cond.c (glthread_cond_wait_func,
10367         glthread_cond_timedwait_func): Add a comment.
10368
10369 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
10370
10371         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
10372         * tests/test-select.c: Likewise,
10373
10374 2008-10-13  Bruno Haible  <bruno@clisp.org>
10375
10376         * lib/glthread/cond.c (glthread_cond_wait_func,
10377         glthread_cond_timedwait_func): Fix variable name.
10378         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
10379
10380 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
10381
10382         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
10383         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
10384         struct sockaddr.sa_len.
10385         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
10386
10387 2008-10-13  Simon Josefsson  <simon@josefsson.org>
10388
10389         * build-aux/pmccabe2html: Add css and css_url parameters.
10390
10391 2008-10-12  Bruno Haible  <bruno@clisp.org>
10392
10393         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
10394         calling aclx_get.
10395         Reported by Rainer Tammer <tammer@tammer.net>.
10396
10397 2008-10-12  Bruno Haible  <bruno@clisp.org>
10398
10399         Use msvcrt aware primitives for creation/termination of Win32 threads.
10400         * lib/glthread/thread.c: Include <process.h>.
10401         (glthread_create_func): Use _beginthreadex instead of CreateThread.
10402         (wrapper_func): Update signature.
10403         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
10404
10405 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
10406             Bruno Haible  <bruno@clisp.org>
10407
10408         Provide a Win32 implementation of the 'cond' module.
10409         * lib/glthread/cond.h [USE_WIN32]: New implementation.
10410         * lib/glthread/cond.c (glthread_cond_init_func,
10411         glthread_cond_wait_func, glthread_cond_timedwait_func,
10412         glthread_cond_signal_func, glthread_cond_broadcast_func,
10413         glthread_cond_destroy_func) [USE_WIN32]: New functions.
10414         * modules/cond (Dependencies): Add gettimeofday.
10415
10416 2008-10-11  Bruno Haible  <bruno@clisp.org>
10417
10418         Make sleep work on older versions of mingw.
10419         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
10420         only whether it exists.
10421         * doc/posix-functions/sleep.texi: Mention the problem with older
10422         versions of mingw.
10423
10424 2008-10-11  Bruno Haible  <bruno@clisp.org>
10425
10426         New module 'shutdown'.
10427         * modules/shutdown: New file.
10428         * lib/sys_socket.in.h (shutdown): New declaration.
10429         * lib/winsock.c (shutdown): New function.
10430         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10431         GNULIB_SHUTDOWN.
10432         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
10433         * doc/posix-functions/shutdown.texi: Document the new module.
10434
10435 2008-10-11  Jim Meyering  <meyering@redhat.com>
10436
10437         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
10438
10439 2008-10-11  Bruno Haible  <bruno@clisp.org>
10440
10441         New module 'fclose'.
10442         * modules/fclose: New file.
10443         * lib/stdio.in.h (fclose): New declaration.
10444         * lib/fclose.c: New file.
10445         * m4/fclose.m4: New file.
10446         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
10447         REPLACE_FCLOSE.
10448         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
10449         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
10450         REPLACE_FCLOSE.
10451         * modules/close (Depends-on): fclose.
10452         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
10453
10454 2008-10-11  Bruno Haible  <bruno@clisp.org>
10455
10456         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
10457         set errno and don't call _close.
10458
10459 2008-10-10  Bruno Haible  <bruno@clisp.org>
10460
10461         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
10462         ACL, not afterwards. Fixes test failure on Cygwin.
10463
10464 2008-10-09  Ben Pfaff  <blp@gnu.org>
10465
10466         * build-aux/announce-gen: Fix gnulib version related part of usage
10467         message.  Die with a useful error message if no tarballs are
10468         found.
10469
10470 2008-10-10  Jim Meyering  <meyering@redhat.com>
10471
10472         bootstrap: use git's --depth=N option only if it's supported
10473         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
10474         recognize the --depth option.  Reported by Pádraig Brady.
10475
10476 2008-10-09  Bruno Haible  <bruno@clisp.org>
10477
10478         New module 'ioctl'.
10479         * modules/ioctl: New file.
10480         * lib/sys_socket.in.h (ioctl): Remove declaration.
10481         * lib/winsock.c: Include <sys/ioctl.h>.
10482         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
10483         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
10484         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
10485         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
10486         * doc/posix-functions/ioctl.texi: Mention the new module.
10487
10488 2008-10-09  Bruno Haible  <bruno@clisp.org>
10489
10490         New module 'sys_ioctl'.
10491         * lib/sys_ioctl.in.h: New file.
10492         * m4/sys_ioctl_h.m4: New file.
10493         * modules/sys_ioctl: New file.
10494         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
10495
10496 2008-10-09  Bruno Haible  <bruno@clisp.org>
10497
10498         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
10499         * lib/winsock.c: Include <stdarg.h>.
10500         (rpl_ioctl): Change to second argument 'int' and then varargs.
10501
10502 2008-10-09  Bruno Haible  <bruno@clisp.org>
10503
10504         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
10505         when the sys_socket module is present and the system has <winsock2.h>.
10506
10507 2008-10-09  Bruno Haible  <bruno@clisp.org>
10508
10509         * doc/posix-functions/close.texi: Mention module 'close' instead of
10510         module 'sys_socket'.
10511
10512 2008-10-09  Bruno Haible  <bruno@clisp.org>
10513
10514         * doc/glibc-headers/sys_ioctl.texi: New file.
10515         * doc/gnulib.texi: Include it.
10516
10517 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
10518             Bruno Haible  <bruno@clisp.org>
10519
10520         Combine the two replacements of 'close'.
10521         * lib/sys_socket.in.h (close): Define to a reminder to include
10522         <unistd.h>.
10523         (_gl_close_fd_maybe_socket): New declaration.
10524         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
10525         * lib/winsock.c (close): Remove undefinition.
10526         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
10527         needed for the gnulib module 'close'.
10528         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
10529         define to an error symbol or to a warning, if suitable.
10530         * lib/close.c: Include <sys/socket.h>.
10531         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
10532         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
10533         UNISTD_H_HAVE_WINSOCK2_H.
10534         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
10535         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10536         UNISTD_H_HAVE_WINSOCK2_H.
10537         * modules/sys_socket (Files): Add m4/unistd_h.m4.
10538         (configure.ac): Set a module indicator.
10539         (Makefile.am): Substitute GNULIB_CLOSE.
10540         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
10541         * modules/poll-tests (Depends-on): Add close.
10542         * modules/select-tests (Depends-on): Likewise.
10543
10544 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
10545             Bruno Haible  <bruno@clisp.org>
10546
10547         New module 'close'.
10548         * modules/close: New file.
10549         * lib/unistd.in.h (close): Move declaration out of the
10550         FCHDIR_REPLACEMENT scope.
10551         (_gl_unregister_fd): New declaration.
10552         * lib/close.c: New file.
10553         * lib/fchdir.c (rpl_close): Remove function.
10554         * m4/close.m4: New file.
10555         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
10556         close.
10557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
10558         REPLACE_CLOSE.
10559         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
10560         REPLACE_CLOSE.
10561         * modules/fchdir (Depends-on): Add close.
10562
10563 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
10564             Bruno Haible  <bruno@clisp.org>
10565
10566         * lib/fcntl.in.h (open): Simplify conditionals.
10567         (_gl_register_fd): New declaration.
10568         * lib/fchdir.c (rpl_open): Remove function.
10569         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
10570         also.
10571         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
10572         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
10573         open.
10574
10575 2008-10-09  Jim Meyering  <meyering@redhat.com>
10576
10577         GNUmakefile: use the more name-space-friendly "_version"
10578         * top/GNUmakefile (_dummy): Update.
10579         (_version): Rename from "version".
10580
10581 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
10582             Bruno Haible  <bruno@clisp.org>
10583
10584         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
10585         rpl_close.
10586         (_gl_register_fd): New function, extracted from rpl_open.
10587         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
10588         (rpl_open, rpl_opendir): Use _gl_register_fd.
10589
10590 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
10591
10592         Fix organization of 'open' replacement.
10593         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
10594         (gl_FUNC_OPEN): Use it.
10595         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
10596
10597 2008-10-08  Bruno Haible  <bruno@clisp.org>
10598
10599         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
10600
10601 2008-10-08  Simon Josefsson  <simon@josefsson.org>
10602
10603         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
10604         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
10605         listen).
10606
10607 2008-10-08  Eric Blake  <ebb9@byu.net>
10608
10609         GNUmakefile: add 'make version' target
10610         * top/GNUmakefile (_curr-ver): Split version update rules...
10611         (version): ...into a target.
10612
10613 2008-10-07  Bruno Haible  <bruno@clisp.org>
10614
10615         Use a more portable replacement expression for -0.0L.
10616         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
10617         instead of -0.0L. Fix m4 quotation.
10618
10619         * tests/test-signbit.c: Include <float.h>.
10620         (minus_zero): New variable.
10621         (test_signbitl): Use minus_zero instead of -zero.
10622         * modules/signbit-tests (Depends-on): Add float.
10623
10624         * tests/test-ceill.c: Include <float.h>.
10625         (zero): Remove variable.
10626         (minus_zero): New variable.
10627         (main): Use minus_zero instead of -zero.
10628         * modules/ceill-tests (Depends-on): Add float.
10629
10630         * tests/test-floorl.c: Include <float.h>.
10631         (zero): Remove variable.
10632         (minus_zero): New variable.
10633         (main): Use minus_zero instead of -zero.
10634         * modules/floorl-tests (Depends-on): Add float.
10635
10636         * tests/test-roundl.c: Include <float.h>.
10637         (zero): Remove variable.
10638         (minus_zero): New variable.
10639         (main): Use minus_zero instead of -zero.
10640         * modules/roundl-tests (Depends-on): Add float.
10641
10642         * tests/test-truncl.c: Include <float.h>.
10643         (zero): Remove variable.
10644         (minus_zero): New variable.
10645         (main): Use minus_zero instead of -zero.
10646         * modules/truncl-tests (Depends-on): Add float.
10647
10648         * tests/test-frexpl.c (zero): Remove variable.
10649         (minus_zero): New variable.
10650         (main): Use minus_zero instead of -zero.
10651         * modules/frexpl-tests (Depends-on): Add float.
10652
10653         * tests/test-isnan.c (zerol): Remove variable.
10654         (minus_zerol): New variable.
10655         (test_long_double): Use minus_zerol instead of -zerol.
10656         * modules/isnan-tests (Depends-on): Add float.
10657
10658         * tests/test-isnanl.h (zero): Remove variable.
10659         (minus_zero): New variable.
10660         (main): Use minus_zero instead of -zero.
10661         * modules/isnanl-nolibm-tests (Depends-on): Add float.
10662         * modules/isnanl-tests (Depends-on): Add float.
10663
10664         * tests/test-ldexpl.c (zero): Remove variable.
10665         (minus_zero): New variable.
10666         (main): Use minus_zero instead of -zero.
10667         * modules/ldexpl-tests (Depends-on): Add float.
10668
10669         * tests/test-snprintf-posix.h (zerol): Remove variable.
10670         (minus_zerol): New variable.
10671         (test_function): Use minus_zerol instead of -zerol.
10672         * modules/snprintf-posix-tests (Depends-on): Add float.
10673         * modules/vsnprintf-posix-tests (Depends-on): Add float.
10674
10675         * tests/test-sprintf-posix.h (zerol): Remove variable.
10676         (minus_zerol): New variable.
10677         (test_function): Use minus_zerol instead of -zerol.
10678         * modules/sprintf-posix-tests (Depends-on): Add float.
10679         * modules/vsprintf-posix-tests (Depends-on): Add float.
10680
10681         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
10682         (minus_zerol): New variable.
10683         (test_function): Use minus_zerol instead of -zerol.
10684         * modules/vasnprintf-posix-tests (Depends-on): Add float.
10685
10686         * tests/test-vasprintf-posix.c (zerol): Remove variable.
10687         (minus_zerol): New variable.
10688         (test_function): Use minus_zerol instead of -zerol.
10689         * modules/vasprintf-posix-tests (Depends-on): Add float.
10690
10691 2008-10-07  Simon Josefsson  <simon@josefsson.org>
10692
10693         * MODULES.html.sh (Support for building documentation): Mention
10694         pmccabe2html.  Sort entries.
10695
10696         Add pmccabe2html module, from gnupdf.
10697         * build-aux/pmccabe.css: New file.
10698         * build-aux/pmccabe2html: New file.
10699         * m4/pmccabe2html.m4: New file.
10700         * modules/pmccabe2html: New file.
10701
10702 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
10703
10704         flock: new module
10705         * MODULES.html.sh: Add to list of modules.
10706         * lib/flock.c: flock implementation for Windows and Unix systems
10707         which have fcntl.
10708         * doc/glibc-functions/flock.texi: Update documentation.
10709         * lib/sys_file.in.h: <sys/file.h> header file.
10710         * m4/flock.m4: M4 macros.
10711         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
10712         * modules/flock: flock module.
10713         * modules/flock-tests: flock tests module.
10714         * modules/sys_file: sys/file.h module.
10715         * tests/test-flock.c: test suite for flock.
10716
10717 2008-10-06  Jim Meyering  <meyering@redhat.com>
10718
10719         bootstrap: check for LT_INIT more portably still ;-)
10720         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
10721         Spotted by Bruno Haible.
10722
10723 2008-10-06  Eric Blake  <ebb9@byu.net>
10724
10725         test-signbit: avoid tripping Irix cc bug on -0.0L
10726         * tests/test-signbit.c (minus_zerol): Delete, and replace with
10727         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
10728         entire testsuite consistent and avoids an Irix 6.2 bug.
10729
10730 2008-10-05  Bruno Haible  <bruno@clisp.org>
10731             Jim Meyering  <jim@meyering.net>
10732
10733         Add an option for ignoring EPIPE during close_stdout.
10734         * lib/closeout.h: Include <stdbool.h>.
10735         (close_stdout_set_ignore_EPIPE): New declaration.
10736         * lib/closeout.c: Include <stdbool.h>.
10737         (ignore_EPIPE): New variable.
10738         (close_stdout_set_ignore_EPIPE): New function.
10739         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
10740         * lib/close-stream.c (close_stream): Mention the possible EPIPE
10741         failure.
10742         * modules/closeout (Depends-on): Add stdbool.
10743
10744 2008-10-05  Bruno Haible  <bruno@clisp.org>
10745
10746         * modules/accept: New file.
10747         * modules/bind: New file.
10748         * modules/connect: New file.
10749         * modules/getpeername: New file.
10750         * modules/getsockname: New file.
10751         * modules/getsockopt: New file.
10752         * modules/listen: New file.
10753         * modules/recv: New file.
10754         * modules/recvfrom: New file.
10755         * modules/send: New file.
10756         * modules/sendto: New file.
10757         * modules/setsockopt: New file.
10758         * modules/socket: New file.
10759         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
10760         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
10761         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
10762         the particular module is requested. Add a link warning when the
10763         particular module is not requested.
10764         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
10765         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
10766         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
10767         the particular module is requested.
10768         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
10769         gl_SYS_SOCKET_H_DEFAULTS): New macros.
10770         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
10771         * modules/sys_socket (Depends-on): Add link-warning.
10772         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
10773         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
10774         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
10775         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
10776         GL_LINK_WARNING.
10777         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
10778         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
10779         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
10780         * doc/posix-functions/getpeername.texi: Mention the new module
10781         'getpeername'.
10782         * doc/posix-functions/getsockname.texi: Mention the new module
10783         'getsockname'.
10784         * doc/posix-functions/getsockopt.texi: Mention the new module
10785         'getsockopt'.
10786         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
10787         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
10788         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
10789         * doc/posix-functions/send.texi: Mention the new module 'send'.
10790         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
10791         * doc/posix-functions/setsockopt.texi: Mention the new module
10792         'setsockopt'.
10793         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
10794         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
10795         listen, connect, accept.
10796         * modules/select-tests (Depends-on): Likewise.
10797
10798 2008-10-05  Bruno Haible  <bruno@clisp.org>
10799
10800         * lib/winsock.c (strerror): Remove unused #undef.
10801         (rpl_close): Remove unused local variable.
10802
10803         * modules/sys_socket (Depends-on); Add errno.
10804
10805 2008-10-05  Bruno Haible  <bruno@clisp.org>
10806
10807         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
10808         (select): Add a link warning when the 'select' module is not used.
10809         * modules/sys_select (Depends-on): Add link-warning.
10810         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
10811         Suggested by Paolo Bonzini.
10812
10813 2008-10-05  Jim Meyering  <meyering@redhat.com>
10814
10815         bootstrap: check for LT_INIT more portably
10816         * build-aux/bootstrap: Avoid using grep -E, since it's not
10817         portable enough.  Suggestion from Bruno Haible.
10818
10819 2008-10-05  Bruno Haible  <bruno@clisp.org>
10820
10821         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
10822         as being fixed by gnulib.
10823
10824 2008-10-05  Bruno Haible  <bruno@clisp.org>
10825
10826         * modules/select-tests: New file, mostly copied from
10827         modules/sys_select-tests.
10828         * tests/test-select.c: New file, mostly copied from
10829         tests/test-sys_select.c.
10830         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
10831         * modules/sys_select-tests (Depends-on): Remove all dependencies.
10832         (Makefile.am): Remove test_sys_select_LDADD.
10833
10834         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
10835         to an undefined symbol, for an error message.
10836         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
10837         (gl_SYS_SELECT_H_DEFAULTS): New macro.
10838         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
10839         winsock-select.c here.
10840         * modules/sys_select (Files): Remove lib/winsock-select.c.
10841         (Depends-on): Remove alloca.
10842         (Makefile.am): Substitute GNULIB_SELECT.
10843         * modules/select: New file.
10844         * doc/posix-functions/select.texi: Update.
10845
10846 2008-10-05  Bruno Haible  <bruno@clisp.org>
10847
10848         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
10849         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
10850         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
10851         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
10852         getdtablesize.
10853         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
10854         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
10855
10856 2008-10-05  Bruno Haible  <bruno@clisp.org>
10857
10858         * modules/getdtablesize-tests: New file.
10859         * tests/test-getdtablesize.c: New file.
10860
10861         New module 'getdtablesize'.
10862         * lib/unistd.in.h (getdtablesize): New declaration.
10863         * lib/getdtablesize.c: New file.
10864         * m4/getdtablesize.m4: New file.
10865         * modules/getdtablesize: New file.
10866         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10867         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
10868         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
10869         HAVE_GETDTABLESIZE.
10870         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
10871
10872 2008-10-05  Bruno Haible  <bruno@clisp.org>
10873
10874         * modules/sched (Makefile.am): Fix typo.
10875         Reported by Simon Josefsson.
10876
10877 2008-10-05  Jim Meyering  <meyering@redhat.com>
10878
10879         bootstrap: check for LT_INIT, too
10880         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
10881         are deprecated.  Suggestion from Ralf Wildenhues.
10882
10883 2008-10-05  Bruno Haible  <bruno@clisp.org>
10884
10885         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
10886         overriding them by ours.
10887         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
10888
10889 2008-10-05  Jim Meyering  <meyering@redhat.com>
10890
10891         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
10892         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
10893         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
10894
10895 2008-10-04  Bruno Haible  <bruno@clisp.org>
10896
10897         * modules/dup2 (License): Change to LGPLv2+.
10898         * modules/sleep (License): Likewise.
10899         * modules/perror (License): Likewise.
10900         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
10901         Blake.
10902         * modules/signal (License): Likewise.
10903         * modules/sigprocmask (License): Likewise.
10904         * modules/raise (License): Change to LGPLv2+, with approval by Jim
10905         Meyering.
10906
10907 2008-10-04  Bruno Haible  <bruno@clisp.org>
10908
10909         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
10910         Reported by Rainer Tammer <tammer@tammer.net>.
10911
10912 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
10913             Bruno Haible  <bruno@clisp.org>
10914
10915         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
10916         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
10917         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
10918
10919 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
10920
10921         filevercmp: new module
10922         * lib/filevercmp.h: New function filevercmp comparing version strings.
10923         * lib/filevercmp.c: Implementation of filevercmp function.
10924         * modules/filevercmp: Module metadata.
10925         * tests/test-filevercmp.c: Unit test for new module.
10926         * modules/filevercmp-tests: Unit test metadata.
10927         * MODULES.html.sh: Add filevercmp module.
10928
10929 2008-10-03  Bruno Haible  <bruno@clisp.org>
10930
10931         * lib/c-ctype.h: Add comment.
10932         Reported by Jim Meyering.
10933
10934 2008-10-02  Bruno Haible  <bruno@clisp.org>
10935
10936         * modules/posix_spawn-internal (Depends-on): Add 'open'.
10937
10938 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
10939
10940         * build-aux/bootstrap: Allow renaming bootstrap, and change the
10941         name of bootstrap.conf accordingly.
10942
10943 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
10944
10945         * build-aux/bootstrap: Install git-merge-changelog configuration
10946         items into .gitconfig if needed.
10947
10948 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
10949
10950         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
10951         git repository, and initialize/update it accordingly.
10952
10953 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
10954
10955         * modules/fsync-tests: New file.
10956         * tests/test-fsync.c: New file.
10957
10958         New module 'fsync'.
10959         * lib/fsync.c: New file.
10960         * m4/fsync.m4: New file.
10961         * modules/fsync: New file.
10962         * lib/unistd.in.h (fsync): New declaration.
10963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
10964         GNULIB_FSYNC and HAVE_FSYNC.
10965         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
10966         * MODULES.html.sh (posix_functions): Add fsync.
10967         * doc/posix-functions/fsync.texi: Mention the new module.
10968
10969 2008-10-02  Jim Meyering  <meyering@redhat.com>
10970
10971         fts.c: sync with similar code from coreutils' remove.c
10972         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
10973         Guard also with "#if defined __linux__", since for now at least,
10974         this code is Linux-kernel-specific.
10975
10976 2008-10-02  Jim Meyering  <meyering@redhat.com>
10977
10978         fts: bug fixes
10979         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
10980         Include <sys/vfs.h>, not <sys/statfs.h>.
10981
10982         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
10983         Include <sys/vfs.h>, not <sys/statfs.h>.
10984
10985 2008-10-01  Bruno Haible  <bruno@clisp.org>
10986
10987         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
10988         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
10989         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
10990         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
10991         * doc/posix-functions/posix_spawnp.texi: Likewise.
10992         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
10993         whether posix_spawn actually works.
10994         * m4/pipe.m4 (gl_PIPE): Likewise.
10995         * modules/execute (Files): Add m4/posix_spawn.m4.
10996         * modules/pipe (Files): Add m4/posix_spawn.m4.
10997         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
10998
10999 2008-10-01  Jim Meyering  <meyering@redhat.com>
11000
11001         remove trailing spaces
11002         * NEWS: Likewise.
11003         * lib/poll.c (poll): Likewise.
11004         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
11005         * lib/winsock.c (rpl_close): Likewise.
11006         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
11007         * modules/yield: Likewise.
11008         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
11009         * tests/test-sys_select.c (connect_to_socket): Likewise.
11010
11011         fts.c: adjust a new interface to be more generally useful
11012         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
11013         (fts_build): Adjust caller.
11014
11015 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11016
11017         * modules/cond-tests: New file.
11018         * tests/test-cond.c: New file.
11019
11020 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11021             Bruno Haible  <bruno@clisp.org>
11022
11023         * modules/cond (Dependencies): Add errno, time.
11024         * lib/glthread/cond.h: Include <time.h>.
11025         (gl_cond_define, gl_cond_define_initialized): Use the same definition
11026         across platforms.
11027
11028 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11029             Bruno Haible  <bruno@clisp.org>
11030
11031         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
11032
11033 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11034             Bruno Haible  <bruno@clisp.org>
11035
11036         * modules/tls-tests (Depends-on): Add thread, yield.
11037         (configure.ac): Remove all checks.
11038         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
11039         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
11040         gl_thread_self): Remove definitions. Include glthread/thread.h and
11041         glthread/yield.h instead.
11042         (test_tls): Pass an additional NULL argument to gl_thread_join.
11043
11044 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11045             Bruno Haible  <bruno@clisp.org>
11046
11047         * modules/lock-tests (Depends-on): Add thread, yield.
11048         (configure.ac): Remove all checks.
11049         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
11050         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
11051         gl_thread_self): Remove definitions. Include glthread/thread.h and
11052         glthread/yield.h instead.
11053         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
11054         additional NULL argument to gl_thread_join.
11055
11056 2008-09-30  Bruno Haible  <bruno@clisp.org>
11057
11058         Fix the Win32 implementation of the 'thread' module.
11059         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
11060         pointer type.
11061         (gl_thread_self): Invoke gl_thread_self_func.
11062         (gl_thread_self_func): New declaration.
11063         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
11064         (do_init_self_key, init_self_key): New functions.
11065         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
11066         Remove some fields.
11067         (running_threads, running_lock): Remove variables.
11068         (get_current_thread_handle): New function.
11069         (gl_thread_self_func, wrapper_func, glthread_create_func,
11070         glthread_join_func, gl_thread_exit_func): Largely rewritten and
11071         simplified.
11072
11073 2008-09-30  Bruno Haible  <bruno@clisp.org>
11074
11075         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
11076         files.
11077
11078 2008-09-30  Jim Meyering  <meyering@redhat.com>
11079
11080         fts.m4: correct the test for statfs.f_type
11081         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
11082         when checking for statfs.f_type.
11083
11084 2008-09-15  Simon Josefsson  <simon@josefsson.org>
11085
11086         tests: avoid some compiler warnings
11087         * tests/test-memchr.c (main): Pass NULL indirectly.
11088         * tests/test-getdate.c (main): Remove unused variable 'ret'.
11089
11090 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
11091
11092         getdate.y: disallow countable dayshifts like "4 yesterday ago"
11093         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
11094         exactly specified dayshifts.
11095         (dayshift): New rule.
11096         (rel): Add dayshift.
11097         (relative_time_table) [tomorrow, yesterday, today, now]:
11098         Use tDAY_SHIFT in place of tDAY_UNIT.
11099         * tests/test-getdate.c: Add tests for now-disallowed countable
11100         dayshifts, e.g., "4 yesterday ago".
11101
11102 2008-09-29  Bruno Haible  <bruno@clisp.org>
11103
11104         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
11105         * tests/test-posix_spawn1.in.sh: Renamed from
11106         tests/test-posix_spawn.in.sh.
11107         * tests/test-posix_spawn2.c: New file.
11108         * tests/test-posix_spawn2.in.sh: New file.
11109         * modules/posix_spawnp-tests (Files): Update.
11110         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
11111
11112 2008-09-29  Bruno Haible  <bruno@clisp.org>
11113
11114         Propagate effects of putenv/setenv/unsetenv to child processes.
11115         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
11116         * lib/pipe.c (create_pipe): Likewise.
11117
11118 2008-09-29  Bruno Haible  <bruno@clisp.org>
11119
11120         Enable use of shell scripts as executables in mingw.
11121         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
11122         run the program as a shell script.
11123         * lib/pipe.c (create_pipe): Likewise.
11124         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
11125         resulting array.
11126
11127 2008-09-29  Eric Blake  <ebb9@byu.net>
11128
11129         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
11130
11131 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
11132
11133         * doc/posix-functions/accept.texi: Update mingw problems.
11134         * doc/posix-functions/bind.texi: Update mingw problems.
11135         * doc/posix-functions/close.texi: Update mingw problems.
11136         * doc/posix-functions/connect.texi: Update mingw problems.
11137         * doc/posix-functions/getpeername.texi: Update mingw problems.
11138         * doc/posix-functions/getsockname.texi: Update mingw problems.
11139         * doc/posix-functions/getsockopt.texi: Update mingw problems.
11140         * doc/posix-functions/ioctl.texi: Update mingw problems.
11141         * doc/posix-functions/listen.texi: Update mingw problems.
11142         * doc/posix-functions/recv.texi: Update mingw problems.
11143         * doc/posix-functions/recvfrom.texi: Update mingw problems.
11144         * doc/posix-functions/select.texi: Update mingw problems.
11145         * doc/posix-functions/send.texi: Update mingw problems.
11146         * doc/posix-functions/sendto.texi: Update mingw problems.
11147         * doc/posix-functions/setsockopt.texi: Update mingw problems.
11148         * doc/posix-functions/socket.texi: Update mingw problems.
11149
11150 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
11151             Bruno Haible  <bruno@clisp.org>
11152
11153         * lib/sys_select.in.h: Include sys/time.h.
11154         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
11155         * modules/sys_select: Depend on sys_time.
11156         * tests/test-sys_select.c: Test that sys/select.h defines struct
11157         timeval fully.
11158
11159 2008-09-29  Bruno Haible  <bruno@clisp.org>
11160
11161         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
11162         * lib/sys_select.in.h: Likewise.
11163
11164 2008-09-29  Bruno Haible  <bruno@clisp.org>
11165
11166         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
11167
11168 2008-09-29  Bruno Haible  <bruno@clisp.org>
11169
11170         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
11171         Set LIBSOCKET instead of augmenting LIBS.
11172         * modules/sockets (Link): New section.
11173         * modules/sockets-tests (test_sockets_LDADD): New variable.
11174         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
11175         * modules/poll-tests (test_poll_LDADD): New variable.
11176         * NEWS: Document the change.
11177
11178 2008-09-29  Bruno Haible  <bruno@clisp.org>
11179
11180         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
11181         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
11182         ARPA_INET_H directly.
11183         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
11184
11185 2008-09-28  Bruno Haible  <bruno@clisp.org>
11186
11187         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
11188         from gl_HEADER_SYS_SOCKET.
11189         (gl_HEADER_SYS_SOCKET): Invoke it.
11190         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11191
11192 2008-09-28  Bruno Haible  <bruno@clisp.org>
11193
11194         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
11195         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
11196         Needed on OSF/1 4.0.
11197
11198 2008-09-28  Bruno Haible  <bruno@clisp.org>
11199
11200         Override open more carefully.
11201         * lib/open.c (orig_open): New function.
11202         (rpl_open): Use orig_open instead of open.
11203         * lib/fcntl.in.h: Add special invocation convention.
11204         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
11205         (gl_FUNC_OPEN): Invoke it.
11206
11207         Override freopen more carefully.
11208         * lib/freopen.c (orig_freopen): New function.
11209         (rpl_freopen): Use orig_freopen instead of freopen.
11210         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
11211         (gl_FUNC_FREOPEN): Invoke it.
11212
11213         Override fopen more carefully.
11214         * lib/fopen.c (orig_fopen): New function.
11215         (rpl_fopen): Use orig_fopen instead of fopen.
11216         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
11217         (gl_FUNC_FOPEN): Invoke it.
11218         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
11219
11220 2008-09-28  Bruno Haible  <bruno@clisp.org>
11221
11222         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
11223         SIGPIPE.
11224
11225 2008-09-28  Bruno Haible  <bruno@clisp.org>
11226
11227         * tests/test-sigaction.c (handler, main): Disable the check whether
11228         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
11229         glibc systems with LinuxThreads.
11230
11231 2008-09-28  Bruno Haible  <bruno@clisp.org>
11232
11233         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
11234
11235         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
11236         with AIX xlc.
11237         * lib/fcntl.in.h (open): Likewise.
11238         Reported by Rainer Tammer <tammer@tammer.net>.
11239
11240 2008-09-28  Bruno Haible  <bruno@clisp.org>
11241
11242         * modules/posix_spawnp-tests: New file.
11243         * tests/test-posix_spawn.c: New file.
11244         * tests/test-posix_spawn.in.sh: New file.
11245
11246         New module 'posix_spawnp'.
11247         * modules/posix_spawnp: New file.
11248         * lib/spawnp.c: New file, from GNU libc with modifications.
11249         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
11250
11251         New module 'posix_spawn'.
11252         * modules/posix_spawn: New file.
11253         * lib/spawn.c: New file, from GNU libc with modifications.
11254         * doc/posix-functions/posix_spawn.texi: Mention the new module.
11255
11256         New module 'posix_spawnattr_destroy'.
11257         * modules/posix_spawnattr_destroy: New file.
11258         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
11259         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
11260         module.
11261
11262         New module 'posix_spawnattr_setsigmask'.
11263         * modules/posix_spawnattr_setsigmask: New file.
11264         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
11265         modifications.
11266         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
11267         new module.
11268
11269         New module 'posix_spawnattr_getsigmask'.
11270         * modules/posix_spawnattr_getsigmask: New file.
11271         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
11272         modifications.
11273         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
11274         new module.
11275
11276         New module 'posix_spawnattr_setsigdefault'.
11277         * modules/posix_spawnattr_setsigdefault: New file.
11278         * lib/spawnattr_setdefault.c: New file, from GNU libc with
11279         modifications.
11280         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
11281         new module.
11282
11283         New module 'posix_spawnattr_getsigdefault'.
11284         * modules/posix_spawnattr_getsigdefault: New file.
11285         * lib/spawnattr_getdefault.c: New file, from GNU libc with
11286         modifications.
11287         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
11288         new module.
11289
11290         New module 'posix_spawnattr_setschedpolicy'.
11291         * modules/posix_spawnattr_setschedpolicy: New file.
11292         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
11293         modifications.
11294         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
11295         new module.
11296
11297         New module 'posix_spawnattr_getschedpolicy'.
11298         * modules/posix_spawnattr_getschedpolicy: New file.
11299         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
11300         modifications.
11301         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
11302         new module.
11303
11304         New module 'posix_spawnattr_setschedparam'.
11305         * modules/posix_spawnattr_setschedparam: New file.
11306         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
11307         modifications.
11308         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
11309         new module.
11310
11311         New module 'posix_spawnattr_getschedparam'.
11312         * modules/posix_spawnattr_getschedparam: New file.
11313         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
11314         modifications.
11315         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
11316         new module.
11317
11318         New module 'posix_spawnattr_setpgroup'.
11319         * modules/posix_spawnattr_setpgroup: New file.
11320         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
11321         modifications.
11322         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
11323         module.
11324
11325         New module 'posix_spawnattr_getpgroup'.
11326         * modules/posix_spawnattr_getpgroup: New file.
11327         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
11328         modifications.
11329         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
11330         module.
11331
11332         New module 'posix_spawnattr_setflags'.
11333         * modules/posix_spawnattr_setflags: New file.
11334         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
11335         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
11336         module.
11337
11338         New module 'posix_spawnattr_getflags'.
11339         * modules/posix_spawnattr_getflags: New file.
11340         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
11341         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
11342         module.
11343
11344         New module 'posix_spawnattr_init'.
11345         * modules/posix_spawnattr_init: New file.
11346         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
11347         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
11348         module.
11349
11350         New module 'posix_spawn_file_actions_destroy'.
11351         * modules/posix_spawn_file_actions_destroy: New file.
11352         * lib/spawn_faction_destroy.c: New file, from GNU libc with
11353         modifications.
11354         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
11355         the new module.
11356
11357         New module 'posix_spawn_file_actions_addopen'.
11358         * modules/posix_spawn_file_actions_addopen: New file.
11359         * lib/spawn_faction_addopen.c: New file, from GNU libc with
11360         modifications.
11361         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
11362         the new module.
11363
11364         New module 'posix_spawn_file_actions_adddup2'.
11365         * modules/posix_spawn_file_actions_adddup2: New file.
11366         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
11367         modifications.
11368         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
11369         the new module.
11370
11371         New module 'posix_spawn_file_actions_addclose'.
11372         * modules/posix_spawn_file_actions_addclose: New file.
11373         * lib/spawn_faction_addclose.c: New file, from GNU libc with
11374         modifications.
11375         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
11376         the new module.
11377
11378         New module 'posix_spawn_file_actions_init'.
11379         * modules/posix_spawn_file_actions_init: New file.
11380         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
11381         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
11382         new module.
11383
11384         New module 'posix_spawn-internal'.
11385         * modules/posix_spawn-internal: New file.
11386         * lib/spawn_int.h: New file, from GNU libc with modifications.
11387         * lib/spawni.c: New file, from GNU libc with modifications.
11388         * m4/posix_spawn.m4: New file.
11389
11390         New module 'spawn'.
11391         * modules/spawn: New file.
11392         * lib/spawn.in.h: New file, from GNU libc with modifications.
11393         * m4/spawn_h.m4: New file.
11394         * doc/posix-headers/spawn.texi: Mention the new module.
11395
11396 2008-09-28  Bruno Haible  <bruno@clisp.org>
11397
11398         * modules/sched-tests: New file.
11399         * tests/test-sched.c: New file.
11400
11401         New module 'sched'.
11402         * modules/sched: New file.
11403         * lib/sched.in.h: New file.
11404         * m4/sched_h.m4: New file.
11405         * doc/posix-headers/sched.texi: Mention the new module.
11406
11407 2008-09-27  Eric Blake  <ebb9@byu.net>
11408
11409         Fix previous patch, and tweak references to $0.
11410         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
11411         (func_version, func_gnulib_dir): Don't call this program
11412         gnulib-tool.
11413         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
11414         with using $0 in function.
11415         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
11416         (func_fatal_error): Reuse the name the user invoked us with.
11417
11418 2008-09-27  Bruno Haible  <bruno@clisp.org>
11419
11420         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
11421         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
11422         (gl_ICONV_H): Not here.
11423         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
11424         instead of assigning ICONV_H directly.
11425
11426         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
11427         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
11428         WCHAR_H directly.
11429
11430 2008-09-27  Bruno Haible  <bruno@clisp.org>
11431
11432         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
11433         * modules/arpa_inet (Depends-on): Add link-warning.
11434         (Makefile.am): Insert the definition of GL_LINK-WARNING.
11435         * modules/unistd (Makefile.am): Likewise.
11436
11437 2008-09-26  Bruno Haible  <bruno@clisp.org>
11438
11439         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
11440         variables.
11441         (func_version): Essentially copied from gnulib-tool.
11442         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
11443         func_readlink): Copied from gnulib-tool.
11444
11445 2008-09-26  Bruno Haible  <bruno@clisp.org>
11446
11447         * gnulib-tool (func_version): Change directory to $gnulib_dir before
11448         invoking git-version-gen.
11449
11450 2008-09-26  Bruno Haible  <bruno@clisp.org>
11451
11452         * posix-modules: Update to directory names changed on 2008-01-19.
11453         Remove commas in output before splitting into words. No more need to
11454         avoid 'ftruncate' since 2007-02-19.
11455
11456 2008-09-26  Bruno Haible  <bruno@clisp.org>
11457
11458         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
11459
11460 2008-09-26  Bruno Haible  <bruno@clisp.org>
11461
11462         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
11463         * modules/fwriteerror (Depends-on): Add errno.
11464
11465 2008-09-26  Bruno Haible  <bruno@clisp.org>
11466
11467         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
11468         * tests/test-vc-list-files-cvs.sh: Likewise.
11469
11470 2008-09-26  Bruno Haible  <bruno@clisp.org>
11471
11472         * doc/posix-headers/sys_resource.texi: Reorder items.
11473
11474 2008-09-26  Jim Meyering  <meyering@redhat.com>
11475
11476         fts: tweak inode comparison function
11477         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
11478         inode numbers, as documented.
11479
11480         fts: sort dirent entries on inode number before traversing
11481         This avoids a quadratic, seek-related performance penalty when
11482         operating on a directory containing many entries (measurable at 10k;
11483         3.5 hours at 2 million entries with a cold cache) on certain types
11484         of file systems, including ext3 and ext4, but not tmpfs.
11485         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
11486         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
11487         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
11488         (fs_handles_readdir_ordered_dirents_efficiently): New function.
11489         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
11490         (fts_build): Set the stat.st_ino member from D_INO.
11491         If it is likely to be useful, sort dirent entries on inode number.
11492
11493         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
11494         and the struct statfs.f_type member.
11495         * modules/fts (Depends-on): Add d-ino.
11496
11497 2008-09-26  Bruno Haible  <bruno@clisp.org>
11498
11499         * modules/sigpipe-die (Depends-on): Add sigpipe.
11500
11501         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
11502         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
11503         and GNULIB_STDIO_H_SIGPIPE are set.
11504         * lib/stdio-write.c: New file.
11505         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
11506         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
11507         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
11508         REPLACE_STDIO_WRITE_FUNCS.
11509         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
11510         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
11511         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
11512         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
11513         * modules/stdio (Files): Add lib/stdio-write.c.
11514         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
11515         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
11516         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
11517         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
11518         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
11519         REPLACE_FPRINTF_POSIX.
11520         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
11521         REPLACE_PRINTF_POSIX.
11522         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
11523         REPLACE_VFPRINTF_POSIX.
11524         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
11525         REPLACE_VPRINTF_POSIX.
11526         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
11527         SIGPIPE issue.
11528         * doc/posix-functions/fputc.texi: Likewise.
11529         * doc/posix-functions/fputs.texi: Likewise.
11530         * doc/posix-functions/fwrite.texi: Likewise.
11531         * doc/posix-functions/printf.texi: Likewise.
11532         * doc/posix-functions/putc.texi: Likewise.
11533         * doc/posix-functions/putchar.texi: Likewise.
11534         * doc/posix-functions/puts.texi: Likewise.
11535         * doc/posix-functions/vfprintf.texi: Likewise.
11536         * doc/posix-functions/vprintf.texi: Likewise.
11537
11538         * modules/safe-write (Depends-on): Add write.
11539
11540         * modules/sigpipe-tests: New file.
11541         * tests/test-sigpipe.c: New file.
11542         * tests/test-sigpipe.sh: New file.
11543
11544         * modules/write: New file.
11545         * lib/unistd.in.h: Include <sys/types.h>.
11546         (write): New declaration.
11547         * lib/write.c: New file.
11548         * m4/write.m4: New file.
11549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11550         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
11551         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
11552         GNULIB_WRITE, REPLACE_WRITE.
11553         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
11554         and the SIGPIPE issue.
11555
11556         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
11557         (raise): New declaration.
11558         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
11559         (ext_signal): New function.
11560         (rpl_raise): New function.
11561         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11562         GNULIB_SIGNAL_H_SIGPIPE.
11563         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
11564         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
11565
11566         * modules/sigpipe: New file.
11567         * m4/sigpipe.m4: New file.
11568
11569 2008-09-25  Derek Price  <derek@ximbiot.com>
11570             Bruno Haible  <bruno@clisp.org>
11571
11572         * gnulib-tool (func_import): Report all license incompatibilities, not
11573         just the first one.
11574
11575 2008-09-25  Bruno Haible  <bruno@clisp.org>
11576
11577         * gnulib-tool (func_import): When computing the edits, consider not
11578         only the Makefile.ams that exist but also those that will be generated.
11579
11580 2008-09-25  Simon Josefsson  <simon@josefsson.org>
11581
11582         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
11583         fixes gnulib-tool --test warning about duplicate dependency.
11584
11585 2008-09-25  Bruno Haible  <bruno@clisp.org>
11586
11587         * gnulib-tool: Don't ask the user to perform edits in the generated
11588         Makefile.ams.
11589         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
11590         apply to the Makefile.am being generated.
11591         (func_emit_tests_Makefile_am): Execute edits that apply to the
11592         Makefile.am being generated.
11593         (func_import): Setup list of Makefile.am edits before emitting the
11594         Makefile.ams, not at the end.
11595         (func_create_testdir): Update.
11596         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
11597
11598 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11599
11600         * gnulib-tool (func_import): Store the --tests-base option in the
11601         comment in gnulib-cache.m4.
11602
11603 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
11604
11605         * NEWS: Document increased portability that sys_select now provides.
11606
11607         * lib/sys_select.in.h: Install select wrapper.
11608         * lib/sys_socket.in.h: Use more descriptive name when there is no
11609         select wrapper.
11610         * lib/winsock-select.c: New.
11611         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
11612         Require gl_HEADER_SYS_SOCKET.
11613         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
11614         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
11615         * tests/test-sys_select.c: Add functional tests.
11616
11617 2008-09-24  Eric Blake  <ebb9@byu.net>
11618
11619         open, fopen: close fd leak in last patch
11620         * lib/open.c (rpl_open): Close fd before returning error.
11621         * lib/fopen.c (rpl_fopen): Close fd before returning error.
11622         * doc/posix-functions/open.texi (open): Document that Irix also
11623         has the bug.
11624         * doc/posix-functions/fopen.texi (fopen): Likewise.
11625         Reported by Paolo Bonzini.
11626
11627 2008-09-24  Bruno Haible  <bruno@clisp.org>
11628
11629         Ensure that a filename ending in a slash cannot be used to access a
11630         non-directory.
11631         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
11632         to check whether it's really a directory.
11633         * lib/fopen.c: Include fcntl.h, unistd.h.
11634         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
11635         and fdopen().
11636         * modules/fopen (Depends-on): Add unistd.
11637         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
11638         * tests/test-fopen.c (main): Likewise.
11639         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
11640         * doc/posix-functions/fopen.texi: Likewise.
11641         Reported by Eric Blake.
11642
11643 2008-09-23  Eric Blake  <ebb9@byu.net>
11644
11645         c-stack: avoid compiler optimizations when provoking overflow
11646         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
11647         recursion harder to optimize, to ensure a stack overflow occurs.
11648         * tests/test-c-stack.c (recurse): Likewise.
11649         Borrowed from libsigsegv.
11650
11651         c-stack: work around Irix sigaltstack bug
11652         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
11653         whether sigaltstack uses wrong end of stack_t (copied in part from
11654         libsigsegv).
11655         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
11656         Irix bug, without requiring an over-allocation.
11657         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
11658         bug.
11659
11660         fopen: document mingw bug on directories
11661         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
11662         not allowing a stream visiting a directory, even though reading
11663         from such a stream is not portable.
11664
11665 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
11666
11667         * lib/poll.c: Rewrite.
11668         * modules/poll: Depend on alloca.
11669
11670 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
11671
11672         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
11673         instead define prototypes for a full set of wrappers.  Ensure
11674         that Cygwin does not use the compatibility code, which is only
11675         for MinGW.
11676         * lib/winsock.c: New.
11677         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
11678         * modules/sys_socket: Add lib/winsock.c.
11679
11680         * modules/poll-tests: Add errno and perror.
11681         * tests/test-poll.c: Use ioctl, not ioctlsocket.
11682
11683 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
11684
11685         * tests/test-poll.c: Downgrade minimum needed Winsock version.
11686
11687 2008-09-23  Bruno Haible  <bruno@clisp.org>
11688
11689         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
11690         * doc/glibc-functions/*: Likewise.
11691
11692 2008-09-23  Simon Josefsson  <simon@josefsson.org>
11693
11694         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
11695         success.
11696
11697 2008-09-22  Eric Blake  <ebb9@byu.net>
11698             Bruno Haible  <bruno@clisp.org>
11699
11700         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
11701         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
11702         supply %A but mishandle pseudo-NaN.
11703         Reported by Simon Josefsson.
11704
11705 2008-09-21  Bruno Haible  <bruno@clisp.org>
11706
11707         * tests/test-lock.c (main): Tweak skip message.
11708         * tests/test-tls.c (main): Likewise.
11709
11710 2008-09-21  Bruno Haible  <bruno@clisp.org>
11711
11712         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
11713         whether 'struct sigaction' has sa_sigaction here...
11714         (gl_PREREQ_SIG_HANDLER_H): ... not here.
11715         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
11716
11717 2008-09-21  Bruno Haible  <bruno@clisp.org>
11718
11719         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
11720         section.
11721         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
11722         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
11723         the new section.
11724         (Support for obsolete systems lacking POSIX:2001): New section.
11725         (String handling <string.h>): Move strdup to the new section.
11726         Suggested by Simon Josefsson and Paolo Bonzini.
11727
11728 2008-09-21  Bruno Haible  <bruno@clisp.org>
11729
11730         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
11731         exponents in %e and %g results on 'long double'. Needed for mingw's
11732         improved *printf functions.
11733         * tests/test-vasprintf-posix.c (test_function): Likewise.
11734         * tests/test-snprintf-posix.h (test_function): Likewise.
11735         * tests/test-sprintf-posix.h (test_function): Likewise.
11736         Reported by Eric Blake.
11737
11738 2008-09-21  Bruno Haible  <bruno@clisp.org>
11739
11740         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
11741         * tests/test-sprintf-posix.h (test_function): Likewise.
11742
11743 2008-09-21  Bruno Haible  <bruno@clisp.org>
11744
11745         * modules/getpass (Depends-on): Add strdup-posix.
11746
11747         New module 'strdup-posix'.
11748         * modules/strdup-posix: New file.
11749         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
11750         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
11751         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11752         REPLACE_STRDUP.
11753         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
11754         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
11755         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11756         strdup-posix.
11757
11758         * modules/strdup (Depends-on): Remove malloc-posix.
11759
11760 2008-09-20  Bruno Haible  <bruno@clisp.org>
11761
11762         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
11763         Wildenhues.
11764
11765 2008-09-20  Bruno Haible  <bruno@clisp.org>
11766
11767         Ensure that wint_t gets defined on IRIX 5.3.
11768         * lib/wchar.in.h (wint_t): Define if not defined by the system.
11769         * lib/wctype.in.h (wint_t): Likewise.
11770         (__wctype_wint_t): Remove type.
11771         (isw*): Use wint_t instead of __wctype_wint_t.
11772         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
11773         * modules/wchar (Files): Add m4/wint_t.m4.
11774         (Makefile.am): Substitute HAVE_WINT_T.
11775         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
11776         * tests/test-wctype.c: Check that wint_t is defined.
11777         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
11778         * doc/posix-headers/wctype.texi: Likewise.
11779         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11780
11781 2008-09-18  Bruno Haible  <bruno@clisp.org>
11782
11783         * gnulib-tool (func_exit): Update comment.
11784
11785 2008-09-18  Simon Josefsson  <simon@josefsson.org>
11786
11787         * modules/getaddrinfo (Depends-on): Remove strdup, this module
11788         assumes strdup exists and does not depend on strdup to return
11789         ENOMEM on out of memory conditions.
11790
11791 2008-09-18  Bruno Haible  <bruno@clisp.org>
11792
11793         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
11794         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
11795         digits for the exponent.
11796
11797 2008-09-18  Jim Meyering  <meyering@redhat.com>
11798             Bruno Haible  <bruno@clisp.org>
11799
11800         * lib/vasnprintf.c (decimal_point_char): Define also if
11801         NEED_PRINTF_INFINITE_LONG_DOUBLE.
11802
11803 2008-09-16  Bruno Haible  <bruno@clisp.org>
11804         and Eric Blake  <ebb9@byu.net>
11805
11806         vasnprintf: support Irix 5.3
11807         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
11808         that mishandle long double infinity.
11809         Reported by Tom G. Christensen.
11810
11811 2008-09-16  Bruno Haible  <bruno@clisp.org>
11812
11813         * doc/glibc-functions/scandir.texi: Mention the function is missing on
11814         Solaris 9.
11815         * doc/glibc-functions/alphasort.texi: Likewise.
11816         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
11817
11818 2008-09-16  Jim Meyering  <meyering@redhat.com>
11819
11820         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
11821         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
11822         a umask modification leak out of a subshell.  Otherwise, the
11823         opensolaris /bin/sh would be accepted and thus cause unwarranted
11824         failures in the coreutils test suite.
11825
11826 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
11827
11828         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
11829         to succeed.
11830
11831 2008-09-16  Jim Meyering  <meyering@redhat.com>
11832
11833         avoid spurious test failure when library is built without ACL support
11834         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
11835         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
11836         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
11837         * tests/test-copy-acl.sh: Likewise.
11838
11839 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11840
11841         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
11842         based on character occurrence counts.
11843
11844 2008-09-15  Eric Blake  <ebb9@byu.net>
11845
11846         tests: avoid some compiler warnings
11847         * tests/test-memchr.c (main): Pass NULL indirectly.
11848         * tests/test-closein.c (main): Avoid unused variable.
11849
11850 2008-09-15  Bruno Haible  <bruno@clisp.org>
11851
11852         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
11853         are missing on OpenBSD 4.0 individually.
11854         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
11855
11856 2008-09-15  Bruno Haible  <bruno@clisp.org>
11857
11858         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
11859         * doc/posix-functions/strerror.texi: Mention also Cygwin.
11860         * doc/posix-functions/perror.texi: Likewise.
11861         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
11862         is missing.
11863         Reported by Eric Blake.
11864
11865         * lib/errno.in.h: Use replacement values >= 2000.
11866         Reported by Eric Blake.
11867
11868 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11869
11870         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
11871         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
11872         limit.
11873         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
11874         compareseq was aborted.
11875
11876 2008-09-14  Bruno Haible  <bruno@clisp.org>
11877
11878         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
11879         yvec_edit_count.
11880         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
11881         (fstrcmp_bounded): Simplify result computation accordingly.
11882
11883 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11884
11885         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
11886         (fstrcmp): Define in terms of fstrcmp_bounded.
11887         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
11888         lower_bound argument.
11889         Return quickly if the result is certainly < lower_bound.
11890         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
11891
11892 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11893
11894         * lib/diffseq.h (EARLY_ABORT): New macro.
11895         (compareseq): Change return type to bool. Return true when EARLY_ABORT
11896         evaluates to true.
11897
11898 2008-09-14  Bruno Haible  <bruno@clisp.org>
11899
11900         * modules/perror-tests: New file.
11901         * tests/test-perror.sh: New file.
11902         * tests/test-perror.c: New file.
11903
11904         New module 'perror'.
11905         * lib/stdio.in.h (perror): New declaration.
11906         * lib/perror.c: New file.
11907         * m4/perror.m4: New file.
11908         * modules/perror: New file.
11909         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
11910         * doc/posix-functions/perror.texi: Mention the perror module.
11911         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
11912         REPLACE_PERROR.
11913         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
11914         REPLACE_PERROR.
11915
11916 2008-09-14  Bruno Haible  <bruno@clisp.org>
11917
11918         * modules/stdio (Makefile.am): Reorder to match the order in
11919         lib/stdio.in.h.
11920         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11921
11922 2008-09-13  Bruno Haible  <bruno@clisp.org>
11923
11924         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
11925
11926 2008-09-13  Bruno Haible  <bruno@clisp.org>
11927
11928         Extend strerror to cover the added errno values.
11929         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
11930         (rpl_strerror): Provide error messages for the added errno values and
11931         for the WSA* values.
11932         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
11933         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
11934         strerror.
11935         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
11936         * modules/strerror (Depends-on): Add errno.
11937         * doc/posix-functions/strerror.texi: Document the change.
11938         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
11939         and EOVERFLOW.
11940
11941 2008-09-13  Bruno Haible  <bruno@clisp.org>
11942
11943         * modules/EOVERFLOW: Remove file.
11944         * m4/eoverflow.m4: Remove file.
11945         * modules/EOVERFLOW-tests: Remove file.
11946         * tests/test-EOVERFLOW.c: Remove file.
11947         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
11948         * modules/ftell (Depends-on): Likewise.
11949         * modules/getdelim (Depends-on): Likewise.
11950         * modules/getugroups (Depends-on): Likewise.
11951         * modules/poll (Depends-on): Likewise.
11952         * modules/snprintf (Depends-on): Likewise.
11953         * modules/sprintf-posix (Depends-on): Likewise.
11954         * modules/vasnprintf (Depends-on): Likewise.
11955         * modules/vasprintf (Depends-on): Likewise.
11956         * modules/vfprintf-posix (Depends-on): Likewise.
11957         * modules/vsnprintf (Depends-on): Likewise.
11958         * modules/vsprintf-posix (Depends-on): Likewise.
11959         * modules/xvasprintf (Depends-on): Likewise.
11960         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
11961         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
11962         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
11963         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
11964         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11965         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
11966         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
11967         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
11968         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11969         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
11970         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
11971         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
11972         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11973         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
11974         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
11975         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
11976         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11977         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
11978         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
11979         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
11980         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11981         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
11982         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
11983         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
11984         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
11985         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11986         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
11987         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
11988         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
11989         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
11990         * MODULES.html.sh: Remove EOVERFLOW.
11991         * NEWS: Mention the change.
11992
11993 2008-09-13  Bruno Haible  <bruno@clisp.org>
11994
11995         * modules/errno-tests: New file.
11996         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
11997
11998         * lib/errno.in.h: New file.
11999         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
12000         * modules/errno: New file.
12001         * doc/posix-headers/errno.texi: Update documentation.
12002         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
12003
12004 2008-09-13  Bruno Haible  <bruno@clisp.org>
12005
12006         * tests/test-poll.c: Use #if for native Windows, rather than testing
12007         __MSVCRT__.
12008
12009 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12010             Bruno Haible  <bruno@clisp.org>
12011
12012         * lib/glob.c: Don't include <pwd.h> on native Windows.
12013         (WINDOWS32): New macro.
12014         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
12015
12016 2008-09-13  Bruno Haible  <bruno@clisp.org>
12017
12018         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
12019         (ETIMEDOUT): Remove macro.
12020         (glthread_cond_timedwait_multithreaded): New declaration.
12021         (glthread_cond_timedwait): Use it.
12022         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
12023         (glthread_cond_timedwait_multithreaded): New function.
12024
12025 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
12026
12027         * modules/poll-tests: Do not check for io.h.
12028         * tests/test-poll.c: Check for __MSVCRT__ instead.
12029
12030 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
12031
12032         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
12033         * modules/poll-tests: Add inet_pton, stdbool, sockets.
12034         * tests/test-poll.c: Use them.  Use _pipe on Windows.
12035
12036 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
12037
12038         * modules/poll-tests: New.
12039         * tests/test-poll.c: New.
12040
12041 2008-09-12  Eric Blake  <ebb9@byu.net>
12042
12043         frexp: test for NetBSD failure on -0.0
12044         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
12045         not all, bugs from NetBSD 3.0 have been fixed.
12046         * doc/posix-functions/frexp.texi (frexp): Document bug.
12047         Reported by Thomas Klausner.
12048
12049         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
12050         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
12051         literal -0.0.
12052         Reported by Jonathan C. Patschke <jp@centtech.com>.
12053
12054 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12055
12056         * lib/glthread/cond.h: Use dummy implementation also if
12057         USE_WIN32_THREADS.
12058
12059 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12060
12061         * modules/fnmatch-posix (License): Change to LGPLv2+.
12062         * modules/fnmatch-gnu (License): Likewise.
12063
12064 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12065
12066         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
12067
12068 2008-09-11  Jim Meyering  <meyering@redhat.com>
12069
12070         * users.txt: Add gtk-vnc.
12071
12072 2008-09-08  Simon Josefsson  <simon@josefsson.org>
12073
12074         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
12075         rotate amounts.
12076
12077         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
12078         required for 16-bit and 8-bit rotates.
12079         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
12080         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
12081         UINT8_MAX instead of hard-coded constants.
12082         Suggested by Paul Eggert.
12083
12084 2008-09-07  Bruno Haible  <bruno@clisp.org>
12085
12086         * tests/test-striconveh.c (main): Check behaviour when converting from
12087         UTF-7.
12088
12089         Make striconveh work better with stateful encodings.
12090         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
12091         that iconv does not increment the inptr when returning -1/EINVAL.
12092
12093 2008-09-07  Bruno Haible  <bruno@clisp.org>
12094
12095         * build-aux/config.rpath: Update according to libtool-2.2.6.
12096         * build-aux/config.libpath: Likewise.
12097
12098 2008-09-06  Bruno Haible  <bruno@clisp.org>
12099
12100         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
12101         * lib/freadptr.c (freadptr): Likewise.
12102         * lib/freadseek.c (freadptrinc): Likewise.
12103         Reported by Simon Josefsson.
12104
12105 2008-09-06  Bruno Haible  <bruno@clisp.org>
12106
12107         * modules/freadptr (License): Change to LGPLv2+.
12108         * modules/freadseek (License): Likewise.
12109         Suggested by Eric Blake.
12110
12111         * modules/memchr2 (License): Change to LGPLv2+.
12112         Approved by Eric Blake.
12113
12114 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12115             Bruno Haible  <bruno@clisp.org>
12116
12117         Make gnulib-tool work with native 'sed' on AIX.
12118         * gnulib-tool (sed_noop): New variable.
12119         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
12120         func_add_or_update, func_create_testdir): Use it to initialize sed
12121         script variables.
12122         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12123
12124 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
12125             Bruno Haible  <bruno@clisp.org>
12126
12127         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
12128         also works after #include directives.
12129
12130 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
12131
12132         getdate.y: reject an out-of-range timezone value
12133         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
12134         the range [-24...+24].  When specified with only one or two digits,
12135         * tests/test-getdate.c: Tests for the fix.
12136         * doc/getdate.texi: Document this change.
12137
12138 2008-09-03  Bruno Haible  <bruno@clisp.org>
12139
12140         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
12141
12142 2008-09-02  Simon Josefsson  <simon@josefsson.org>
12143
12144         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
12145         <bruce.korb@gmail.com> with ideas from Ben Pfaff
12146         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
12147         Blake <ebb9@byu.net>.
12148
12149         * tests/test-bitrotate.c: Add more test vectors.
12150
12151 2008-09-02  Eric Blake  <ebb9@byu.net>
12152
12153         vasnprintf-posix: handle large precision via %.*d
12154         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
12155         when handling it ourselves.
12156         * tests/test-vasnprintf-posix.c (test_function): Add test.
12157         * tests/test-snprintf-posix.h (test_function): Likewise.
12158         * tests/test-sprintf-posix.h (test_function): Likewise.
12159         * tests/test-vasprintf-posix.c (test_function): Likewise.
12160         Reported by Alain Guibert.
12161
12162 2008-09-01  Eric Blake  <ebb9@byu.net>
12163
12164         c-stack: make configure-time check more robust
12165         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
12166         successful sigaction call.
12167         Reported by Tom G. Christensen.
12168
12169 2008-09-01  Bruno Haible  <bruno@clisp.org>
12170
12171         New module 'findprog-lgpl'.
12172         * modules/findprog-lgpl: New file.
12173         * lib/findprog-lgpl.c: New file.
12174         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
12175         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
12176         to decide whether to use strdup or xstrdup, concatenated_filename or
12177         xconcatenated_filename.
12178
12179 2008-09-01  Bruno Haible  <bruno@clisp.org>
12180
12181         Split module 'concat-filename' into 'concat-filename' (LGPL) and
12182         'xconcat-filename' (GPL).
12183         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
12184         (License): Change to LGPLv2+.
12185         * modules/xconcat-filename: New file.
12186         * lib/concat-filename.h (concatenated_filename): Change specification.
12187         (xconcatenated_filename): New declaration.
12188         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
12189         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
12190         memory situations.
12191         * lib/xconcat-filename.c: New file.
12192         * NEWS: Mention the change.
12193         * lib/findprog.c: Include concat-filename.h, not filename.h.
12194         (find_in_path): Use xconcatenated_filename instead of
12195         concatenated_filename.
12196         * lib/javacomp.c: Include concat-filename.h, not filename.h.
12197         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
12198         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
12199         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
12200         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
12201         instead of concatenated_filename.
12202         * lib/javaexec.c: Include concat-filename.h, not filename.h.
12203         (execute_java_class): Use xconcatenated_filename instead of
12204         concatenated_filename.
12205         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
12206         * modules/javacomp (Depends-on): Likewise.
12207         * modules/javaexec (Depends-on): Likewise.
12208
12209 2008-09-01  Bruno Haible  <bruno@clisp.org>
12210
12211         Split module 'filename' into 'filename' and 'concat-filename'.
12212         * modules/filename: Keep only lib/filename.h.
12213         (License): Change to LGPLv2+.
12214         * modules/concat-filename: New file, extracted from modules/filename.
12215         * lib/filename.h (concatenated_filename): Remove declaration.
12216         * lib/concat-filename.h: New file, extracted from lib/filename.h.
12217         * lib/concat-filename.c: Include concat-filename.h.
12218         * NEWS: Mention the change.
12219
12220 2008-09-01  Simon Josefsson  <simon@josefsson.org>
12221
12222         * lib/bitrotate.h (rotl8, rotr8): Add.
12223
12224         * modules/bitrotate (configure.ac): Need
12225         AC_REQUIRE([AC_C_INLINE]).
12226         (Description): Mention stdint.h.  Reported by Bruno Haible
12227         <bruno@clisp.org>.
12228
12229         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
12230         Paolo Bonzini <bonzini@gnu.org>.
12231
12232 2008-08-31  Bruno Haible  <bruno@clisp.org>
12233
12234         Assume Solaris specific bi-arch conventions on Solaris systems.
12235         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
12236         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
12237         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
12238         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
12239         like acl_libdirstem.
12240         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
12241         acl_libdirstem.
12242         * NEWS: Mention the change.
12243         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
12244
12245 2008-08-31  Jim Meyering  <meyering@redhat.com>
12246
12247         * lib/strftime.h: Add comments describing the two added arguments.
12248
12249         remove duplicate #include directives
12250         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
12251         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
12252
12253 2008-08-31  Bruno Haible  <bruno@clisp.org>
12254
12255         New module 'sigpipe-die'.
12256         * modules/sigpipe-die: New file.
12257         * lib/sigpipe-die.h: New file.
12258         * lib/sigpipe-die.c: New file.
12259         * MODULES.html.sh (Signal handling): Add sigpipe-die.
12260
12261 2008-08-31  Bruno Haible  <bruno@clisp.org>
12262
12263         Don't override previously installed signal handlers.
12264         * lib/fatal-signal.c (saved_sigactions): New variable.
12265         (uninstall_handlers): Reset the signal to the saved handler, not
12266         to SIG_DFL (except when ignored).
12267         (install_handlers): Save the previous handlers.
12268
12269 2008-08-30  Bruno Haible  <bruno@clisp.org>
12270
12271         * gnulib-tool (func_reset_sigpipe): New function.
12272         (func_get_automake_snippet, func_modules_transitive_closure,
12273         func_import): Invoke it before a join command that reads from stdin,
12274         to avoid "echo: write error: Broken pipe" error messages on stderr.
12275         Reported by Sam Steingold <sds@gnu.org>.
12276
12277 2008-08-30  Bruno Haible  <bruno@clisp.org>
12278
12279         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
12280         Code copied from m4/open.m4.
12281         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
12282         access and the filename ends in a slash. Code copied from lib/open.c.
12283         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
12284         * tests/test-fopen.c (main): Check against bug with trailing slash.
12285
12286 2008-08-29  Bruno Haible  <bruno@clisp.org>
12287
12288         Avoid some "gcc -pedantic" warnings.
12289         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
12290         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
12291         * lib/dirent.in.h: Likewise.
12292         * lib/fcntl.in.h: Likewise.
12293         * lib/float.in.h: Likewise.
12294         * lib/iconv.in.h: Likewise.
12295         * lib/inttypes.in.h: Likewise.
12296         * lib/locale.in.h: Likewise.
12297         * lib/math.in.h: Likewise.
12298         * lib/netinet_in.in.h: Likewise.
12299         * lib/search.in.h: Likewise.
12300         * lib/signal.in.h: Likewise.
12301         * lib/stdarg.in.h: Likewise.
12302         * lib/stdint.in.h: Likewise.
12303         * lib/stdio.in.h: Likewise.
12304         * lib/stdlib.in.h: Likewise.
12305         * lib/string.in.h: Likewise.
12306         * lib/strings.in.h: Likewise.
12307         * lib/sys_select.in.h: Likewise.
12308         * lib/sys_socket.in.h: Likewise.
12309         * lib/sys_stat.in.h: Likewise.
12310         * lib/sys_time.in.h: Likewise.
12311         * lib/sysexits.in.h: Likewise.
12312         * lib/time.in.h: Likewise.
12313         * lib/unistd.in.h: Likewise.
12314         * lib/wchar.in.h: Likewise.
12315         * lib/wctype.in.h: Likewise.
12316         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
12317         * modules/fchdir (Makefile.am): Likewise.
12318         * modules/fcntl (Makefile.am): Likewise.
12319         * modules/float (Makefile.am): Likewise.
12320         * modules/iconv_open (Makefile.am): Likewise.
12321         * modules/inttypes (Makefile.am): Likewise.
12322         * modules/locale (Makefile.am): Likewise.
12323         * modules/math (Makefile.am): Likewise.
12324         * modules/netinet_in (Makefile.am): Likewise.
12325         * modules/search (Makefile.am): Likewise.
12326         * modules/signal (Makefile.am): Likewise.
12327         * modules/stdarg (Makefile.am): Likewise.
12328         * modules/stdint (Makefile.am): Likewise.
12329         * modules/stdio (Makefile.am): Likewise.
12330         * modules/stdlib (Makefile.am): Likewise.
12331         * modules/string (Makefile.am): Likewise.
12332         * modules/strings (Makefile.am): Likewise.
12333         * modules/sys_select (Makefile.am): Likewise.
12334         * modules/sys_socket (Makefile.am): Likewise.
12335         * modules/sys_stat (Makefile.am): Likewise.
12336         * modules/sys_time (Makefile.am): Likewise.
12337         * modules/sysexits (Makefile.am): Likewise.
12338         * modules/time (Makefile.am): Likewise.
12339         * modules/unistd (Makefile.am): Likewise.
12340         * modules/wchar (Makefile.am): Likewise.
12341         * modules/wctype (Makefile.am): Likewise.
12342         Reported by Reuben Thomas <rrt@sc3d.org>.
12343
12344 2008-08-29  Bruno Haible  <bruno@clisp.org>
12345
12346         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
12347         any more.
12348
12349 2008-08-29  Simon Josefsson  <simon@josefsson.org>
12350
12351         * MODULES.html.sh (Misc): Add bitrotate.
12352
12353         * modules/bitrotate: New file.
12354
12355         * lib/bitrotate.h: New file.
12356
12357         * modules/bitrotate-tests: New file.
12358
12359         * tests/test-bitrotate.c: New file.
12360
12361         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
12362         on the bitrotate module.
12363
12364         * lib/arctwo.c: Use new bitrotate module.
12365
12366 2008-08-29  Jim Meyering  <meyering@redhat.com>
12367
12368         bootstrap: merge changes from coreutils
12369         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
12370         of copied files.  Remove a kludge, now that this is fixed.
12371         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
12372         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
12373         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
12374
12375 2008-08-29  Bruno Haible  <bruno@clisp.org>
12376
12377         * MODULES.html.sh: Remove --cvs-urls option.
12378
12379 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
12380
12381         maint.mk: adjust to file name change
12382         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
12383
12384 2008-08-28  Jim Meyering  <meyering@redhat.com>
12385
12386         * modules/getndelim2 (License): Relicense to LGPLv2+.
12387         Approved by Richard Stallman for the version of 1995, and by
12388         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
12389
12390 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
12391
12392         * lib/getdelim.c (flockfile, funlockfile): Make all of them
12393         dummy if one is not available.  Do not touch them if
12394         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
12395         (getc_maybe_unlocked): New.
12396         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
12397
12398 2008-08-26  Eric Blake  <ebb9@byu.net>
12399
12400         doc/INSTALL: resync from autoconf
12401         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
12402         (INSTALL_PRELUDE): Delete; this is done more efficiently by
12403         moving...
12404         * install.texi [!autoconf]: ...here.  Resync from autoconf.
12405         * INSTALL: Regenerate.
12406         * INSTALL.ISO: New file.
12407         * INSTALL.UTF-8: Likewise.
12408
12409 2008-08-26  Jim Meyering  <meyering@redhat.com>
12410
12411         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
12412         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
12413         these definitions conditional, so that they may be overridden, too.
12414
12415 2008-08-26  Bruno Haible  <bruno@clisp.org>
12416
12417         Generate INSTALL file variants with prettier quotes.
12418         * doc/Makefile (INSTALL_PRELUDE): New macro.
12419         (INSTALL): Use it.
12420         (INSTALL.ISO, INSTALL.UTF-8): New rules.
12421
12422 2008-08-26  Bruno Haible  <bruno@clisp.org>
12423
12424         Run makeinfo in an English locale.
12425         * doc/Makefile (MAKEINFO): New variable.
12426
12427 2008-08-26  Bruno Haible  <bruno@clisp.org>
12428
12429         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
12430         Suggested by Eric Blake.
12431
12432 2008-08-25  Bruno Haible  <bruno@clisp.org>
12433
12434         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
12435
12436 2008-08-25  Eric Blake  <ebb9@byu.net>
12437
12438         c-stack: test that stack overflow can be caught
12439         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
12440         that platform allows handling stack overflow; at least OS/2 EMX
12441         has sigaltstack, but crashes before transferring control to
12442         handler on stack overflow.
12443         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
12444         check for HAVE_STACK_OVERFLOW_HANDLING.
12445         Reported by Elbert Pol.
12446
12447 2008-08-25  Bruno Haible  <bruno@clisp.org>
12448
12449         * doc/posix-functions/strftime.texi: Fix description of strftime
12450         module.
12451
12452 2008-08-24  Bruno Haible  <bruno@clisp.org>
12453
12454         * tests/uniwidth/test-uc_width2.c: New file.
12455         * tests/uniwidth/test-uc_width2.sh: New file.
12456         * modules/uniwidth/width-tests (Files): Add the new files.
12457         (TESTS): Add uniwidth/test-uc_width2.sh.
12458         (TESTS_ENVIRONMENT): New variable.
12459         (check_PROGRAMS): Add test-uc_width2.
12460         (test_uc_width2_SOURCES): New variable.
12461
12462         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
12463         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
12464         not 0x00AB.
12465         Reported by Alexander V. Lukyanov <lav@netis.ru>.
12466
12467 2008-08-22  Eric Blake  <ebb9@byu.net>
12468
12469         test-lock, test-tls: mention why a test is skipped
12470         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
12471         skipped.
12472         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
12473
12474         count-one-bits: relax license
12475         * modules/count-one-bits (License): Relicense to LGPLv2+.
12476         Suggested by Ludovic Courtès, approved by Ben Pfaff.
12477
12478 2008-08-22  Andreas Schwab  <schwab@suse.de>
12479
12480         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
12481         Remove spurious space in assignment.
12482
12483 2008-08-21  Simon Josefsson  <simon@josefsson.org>
12484
12485         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
12486         Paul Eggert <eggert@CS.UCLA.EDU>.
12487
12488 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
12489
12490         * modules/gettext: Add m4/threadlib.m4.
12491
12492 2008-08-19  Eric Blake  <ebb9@byu.net>
12493
12494         test-c-stack: fix compilation failure on FreeBSD 5.0
12495         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
12496         headers before <sys/resource.h>.
12497         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
12498         the bug.
12499         Reported by Nelson H. F. Beebe.
12500
12501         strverscmp: migrate from "strverscmp.h" to <string.h>
12502         * modules/string (Makefile.am): Add new hooks.
12503         * modules/strverscmp (Files): Remove strverscmp.h.
12504         (Depends-on): Add string.
12505         (configure.ac): Add indicator.
12506         (Include): Mention new header.
12507         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
12508         defaults.
12509         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
12510         results.
12511         * lib/strverscmp.h: Delete.
12512         * lib/string.in.h (strverscmp): Provide declaration, when needed.
12513         * tests/test-strverscmp.c (includes): Adjust client.
12514         * lib/check-version.c (includes): Likewise.
12515         * NEWS: Document the change.
12516
12517         strverscmp: add unit test
12518         * modules/strverscmp-tests: New file.
12519         * tests/test-strverscmp.c: Likewise.
12520
12521 2008-08-19  Simon Josefsson  <simon@josefsson.org>
12522
12523         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
12524         regarding Windows crypto stuff, from Mono.
12525
12526 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
12527
12528         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
12529         if present, for intel RND.  Return error on failures.
12530
12531 2008-08-18  Ben Pfaff  <blp@gnu.org>
12532
12533         gitlog-to-changelog: give better diagnostic for failed pipe-open
12534         * build-aux/gitlog-to-changelog: Improve error message: suggest
12535         that the version of Git may be too old.
12536
12537 2008-08-18  Simon Josefsson  <simon@josefsson.org>
12538
12539         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
12540         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
12541
12542 2008-08-18  Bruno Haible  <bruno@clisp.org>
12543
12544         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
12545         pthread_in_use().
12546
12547 2008-08-18  Bruno Haible  <bruno@clisp.org>
12548
12549         * lib/glthread/threadlib.c: Include <pthread.h>.
12550
12551 2008-08-18  Bruno Haible  <bruno@clisp.org>
12552
12553         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
12554         glthread_recursive_lock_* macros.
12555         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
12556         Fix syntax error.
12557
12558 2008-08-18  Bruno Haible  <bruno@clisp.org>
12559
12560         * lib/glthread/thread.c: Avoid forcing a context switch right after
12561         thread creation.
12562
12563 2008-08-17  Bruno Haible  <bruno@clisp.org>
12564
12565         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
12566         * lib/glthread/thread.h: Provide Win32 specific implementation.
12567         * modules/thread (Files): Add lib/glthread/thread.c.
12568         (Depends-on): Add lock.
12569         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
12570
12571 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12572
12573         New module 'yield'.
12574         * modules/yield: New file.
12575         * lib/glthread/yield.h: New file.
12576         * m4/yield.m4: New file.
12577         * MODULES.html.sh (Multithreading): Add yield.
12578
12579 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12580
12581         New module 'thread'.
12582         * modules/thread: New file.
12583         * lib/glthread/thread.h: New file.
12584         * m4/thread.m4: New file.
12585         * MODULES.html.sh (Multithreading): Add thread.
12586
12587 2008-08-17  Bruno Haible  <bruno@clisp.org>
12588
12589         * lib/glthread/lock.h: Include <stdlib.h> always.
12590         * lib/glthread/tls.h: Likewise.
12591         * lib/glthread/cond.h: Likewise.
12592
12593 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12594
12595         New module 'cond'.
12596         * modules/cond: New file.
12597         * lib/glthread/cond.h: New file.
12598         * lib/glthread/cond.c: New file.
12599         * m4/cond.m4: New file.
12600         * MODULES.html.sh (Multithreading): Add cond.
12601
12602 2008-08-16  Eric Blake  <ebb9@byu.net>
12603
12604         c-stack: fix regression on Irix 5.3 from 2008-06-21
12605         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
12606         sa_sigaction...
12607         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
12608         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
12609         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
12610         * modules/signal (Makefile.am): Use the value.
12611         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
12612         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
12613         * doc/posix-headers/signal.texi (signal.h): Document this
12614         portability issue.
12615         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
12616         Reported by Tom G. Christensen.
12617
12618 2008-08-17  Bruno Haible  <bruno@clisp.org>
12619
12620         New module 'threadlib'.
12621         * modules/threadlib: New file.
12622         * lib/glthread/threadlib.c: New file, extracted from
12623         lib/glthread/lock.c.
12624         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
12625         functions.
12626         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
12627         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
12628         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
12629         macros.
12630         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
12631         (gl_DISABLE_THREADS): Remove macro.
12632         * modules/lock (Files): Remove build-aux/config.rpath.
12633         (Depends-on): Remove havelib. Add threadlib.
12634         (configure.ac-early): Remove section.
12635         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
12636         * modules/tls (Depends-on): Remove lock. Add threadlib.
12637         (Link): New section, copied from threadlib.
12638         * MODULES.html.sh (Multithreading): Add threadlib.
12639
12640 2008-08-14  Bruno Haible  <bruno@clisp.org>
12641
12642         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
12643         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
12644         glthread_rwlock_unlock, glthread_rwlock_destroy,
12645         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
12646         glthread_recursive_lock_destroy): Define as macros always.
12647         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
12648         glthread_lock_lock.
12649         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
12650         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
12651         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
12652         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
12653         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
12654         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
12655         (glthread_recursive_lock_lock_func): Renamed from
12656         glthread_recursive_lock_lock.
12657         (glthread_recursive_lock_unlock_func): Renamed from
12658         glthread_recursive_lock_unlock.
12659         (glthread_recursive_lock_destroy_func): Renamed from
12660         glthread_recursive_lock_destroy.
12661
12662 2008-08-14  Bruno Haible  <bruno@clisp.org>
12663
12664         * lib/glthread/lock.h: Renamed from lib/lock.h.
12665         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
12666         * lib/glthread/tls.h: Renamed from lib/tls.h.
12667         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
12668         * lib/fstrcmp.c: Update includes.
12669         * lib/strsignal.c: Update includes.
12670         * modules/lock (Files, Makefile.am): Update.
12671         (Include): Change to "glthread/lock.h".
12672         * modules/tls (Files, Makefile.am): Update.
12673         (Include): Change to "glthread/tls.h".
12674         * tests/test-lock.c: Update includes.
12675         * tests/test-tls.c: Update includes.
12676         * NEWS: Mention the renamed header files.
12677
12678 2008-08-11  Jim Meyering  <meyering@redhat.com>
12679
12680         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
12681
12682 2008-08-11  Eric Blake  <ebb9@byu.net>
12683
12684         test-c-stack: avoid C99-ism
12685         * tests/test-c-stack.c (main): Fix whitespace, move declaration
12686         before statement.
12687         Reported by Alain Guibert.
12688
12689 2008-08-10  Jim Meyering  <meyering@redhat.com>
12690
12691         ensure that return value of uinttostr et al are not ignored
12692         * lib/inttostr.h (__GNUC_PREREQ): Define.
12693         (__attribute_warn_unused_result__): Define.
12694         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
12695
12696 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
12697
12698         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
12699         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
12700
12701 2008-08-07  Jim Meyering  <meyering@redhat.com>
12702
12703         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
12704
12705         * modules/mkstemp (License): Relicense under LGPLv2+.
12706         * modules/tempname (License): Likewise.
12707
12708 2008-08-06  Bruno Haible  <bruno@clisp.org>
12709
12710         * lib/poll.c (poll): Further micro-optimization.
12711
12712 2008-08-06  Jim Meyering  <meyering@redhat.com>
12713
12714         inet_pton.c: use locale-independent tolower
12715         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
12716         (inet_pton6): Use c_tolower rather than tolower.
12717         * modules/inet_pton (Depends-on): Add c-ctype.
12718
12719 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
12720
12721         * lib/poll.c (poll): Avoid division when timeout is 0, cache
12722         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
12723
12724 2008-08-06  Jim Meyering  <meyering@redhat.com>
12725
12726         * modules/inet_pton (License): Relicense under LGPLv2+.
12727
12728 2008-08-03  Bruno Haible  <bruno@clisp.org>
12729
12730         Additional non-aborting API for lock and tls.
12731         * lib/lock.h: Include <errno.h>.
12732         (glthread_lock_init): New macro/function.
12733         (gl_lock_init): Define as wrapper around glthread_lock_init.
12734         (glthread_lock_lock): New macro/function.
12735         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
12736         (glthread_lock_unlock): New macro/function.
12737         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
12738         (glthread_lock_destroy): New macro/function.
12739         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
12740         (glthread_rwlock_init): New macro/function.
12741         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
12742         (glthread_rwlock_rdlock): New macro/function.
12743         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
12744         (glthread_rwlock_wrlock): New macro/function.
12745         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
12746         (glthread_rwlock_unlock): New macro/function.
12747         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
12748         (glthread_rwlock_destroy): New macro/function.
12749         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
12750         (glthread_recursive_lock_init): New macro/function.
12751         (gl_recursive_lock_init): Define as wrapper around
12752         glthread_recursive_lock_init.
12753         (glthread_recursive_lock_lock): New macro/function.
12754         (gl_recursive_lock_lock): Define as wrapper around
12755         glthread_recursive_lock_lock.
12756         (glthread_recursive_lock_unlock): New macro/function.
12757         (gl_recursive_lock_unlock): Define as wrapper around
12758         glthread_recursive_lock_unlock.
12759         (glthread_recursive_lock_destroy): New macro/function.
12760         (gl_recursive_lock_destroy): Define as wrapper around
12761         glthread_recursive_lock_destroy.
12762         (glthread_once): New macro/function.
12763         (gl_once): Define as wrapper around glthread_once.
12764         Update function declarations.
12765         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
12766         glthread_rwlock_init. Return error code.
12767         (glthread_rwlock_rdlock_multithreaded): Renamed from
12768         glthread_rwlock_rdlock. Return error code.
12769         (glthread_rwlock_wrlock_multithreaded): Renamed from
12770         glthread_rwlock_wrlock. Return error code.
12771         (glthread_rwlock_unlock_multithreaded): Renamed from
12772         glthread_rwlock_unlock. Return error code.
12773         (glthread_rwlock_destroy_multithreaded): Renamed from
12774         glthread_rwlock_destroy. Return error code.
12775         (glthread_recursive_lock_init_multithreaded): Renamed from
12776         glthread_recursive_lock_init. Return error code.
12777         (glthread_recursive_lock_lock_multithreaded): Renamed from
12778         glthread_recursive_lock_lock. Return error code.
12779         (glthread_recursive_lock_unlock_multithreaded): Renamed from
12780         glthread_recursive_lock_unlock. Return error code.
12781         (glthread_recursive_lock_destroy_multithreaded): Renamed from
12782         glthread_recursive_lock_destroy. Return error code.
12783         (glthread_once_call): Make static.
12784         (glthread_once_multithreaded): Renamed from glthread_once.
12785         * lib/tls.h: Include <errno.h>.
12786         (glthread_tls_key_init): New macro/function.
12787         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
12788         (glthread_tls_set): New macro/function.
12789         (gl_tls_set): Define as wrapper around glthread_tls_set.
12790         (glthread_tls_key_destroy): New macro/function.
12791         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
12792         Update function declarations.
12793         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
12794         glthread_tls_get.
12795         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
12796
12797 2008-08-04  Eric Blake  <ebb9@byu.net>
12798
12799         gnumakefile: use space, not TAB, outside of targets
12800         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
12801
12802 2008-08-02  Jim Meyering  <meyering@redhat.com>
12803
12804         getdate.y: avoid locale-dependent date parsing failure
12805         In Turkish locales, getdate would fail to recognize keywords
12806         containing a lowercase "i".  The solution is not to rely on
12807         locale-sensitive case-conversion.
12808         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
12809         (lookup_word): Use c_toupper in place of toupper.
12810         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
12811         Reported by Vefa Bicakci <bicave@superonline.com> in
12812         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
12813         * modules/getdate (Depends-on): Add c-ctype.
12814
12815 2008-08-02  Bruno Haible  <bruno@clisp.org>
12816
12817         * gnulib-tool (func_import): When updating or creating a .gitignore
12818         file, prepend each added line with a slash, and ignore leading slashes
12819         from the existing lines.
12820         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
12821
12822 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12823
12824         Portability fix for GNU make 3.79.1.
12825         * top/GNUmakefile: Avoid 'else COND', which older GNU make
12826         versions do not understand.
12827
12828 2008-08-01  Bruno Haible  <bruno@clisp.org>
12829
12830         Work around bug of HP-UX 10.20 cc with -0.0 literal.
12831         * tests/test-isnanf.h (zero): New variable.
12832         (main): Avoid literal -0.0f.
12833         * tests/test-isnand.h (zero): New variable.
12834         (main): Avoid literal -0.0.
12835         * tests/test-isnanl.h (zero): New variable.
12836         (main): Avoid literal -0.0L.
12837         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
12838         (test_float, test_double, test_long_double): Avoid literals -0.0f,
12839         -0.0, -0.0L.
12840         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
12841         (test_signbitd): Avoid literal -0.0.
12842         (test_signbitl): Avoid literal -0.0L.
12843         * tests/test-ceilf1.c (zero): New variable.
12844         (main): Avoid literal -0.0f.
12845         * tests/test-ceill.c (zero): New variable.
12846         (main): Avoid literal -0.0L.
12847         * tests/test-floorf1.c (zero): New variable.
12848         (main): Avoid literal -0.0f.
12849         * tests/test-floorl.c (zero): New variable.
12850         (main): Avoid literal -0.0L.
12851         * tests/test-roundf1.c (zero): New variable.
12852         (main): Avoid literal -0.0f.
12853         * tests/test-round1.c (zero): New variable.
12854         (main): Avoid literal -0.0.
12855         * tests/test-roundl.c (zero): New variable.
12856         (main): Avoid literal -0.0L.
12857         * tests/test-truncf1.c (zero): New variable.
12858         (main): Avoid literal -0.0f.
12859         * tests/test-trunc1.c (zero): New variable.
12860         (main): Avoid literal -0.0.
12861         * tests/test-truncl.c (zero): New variable.
12862         (main): Avoid literal -0.0L.
12863         * tests/test-frexp.c (zero): New variable.
12864         (main): Avoid literal -0.0.
12865         * tests/test-frexpl.c (zero): New variable.
12866         (main): Avoid literal -0.0L.
12867         * tests/test-ldexpl.c (zero): New variable.
12868         (main): Avoid literal -0.0L.
12869         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
12870         (zerod, zerol): New variables.
12871         (test_function): Avoid literals -0.0, -0.0L.
12872         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
12873         (zerod, zerol): New variables.
12874         (test_function): Avoid literals -0.0, -0.0L.
12875         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
12876         (zerod, zerol): New variables.
12877         (test_function): Avoid literals -0.0, -0.0L.
12878         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
12879         (zerod, zerol): New variables.
12880         (test_function): Avoid literals -0.0, -0.0L.
12881         * tests/test-strtod.c (zero): New variable.
12882         (main): Avoid literal -0.0.
12883         Reported by Jonathan C. Patschke <jp@centtech.com>.
12884
12885 2008-07-31  Jim Meyering  <meyering@redhat.com>
12886
12887         sha256.h: correct definition of SHA224_DIGEST_SIZE
12888         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
12889         Reported by Paulie Pena IV <paulie4@gmail.com>.
12890         Define as 224 / 8, rather than as a literal.
12891         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
12892         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
12893         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
12894
12895 2008-07-31  Bruno Haible  <bruno@clisp.org>
12896
12897         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
12898         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
12899         Reported by Jonathan Patschke <jp@centtech.com>.
12900
12901 2008-07-31  Bruno Haible  <bruno@clisp.org>
12902
12903         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
12904         Reported by Paolo Bonzini <bonzini@gnu.org>.
12905
12906 2008-07-30  Eric Blake  <ebb9@byu.net>
12907
12908         test-strtod: allow compilation without -lm
12909         * tests/test-strtod.c (main): Avoid link dependence on fabs.
12910         Reported by Dennis Clarke <blastwave@gmail.com>.
12911
12912 2008-07-28  Jim Meyering  <meyering@redhat.com>
12913
12914         bootstrap: work also when there are no .po files in po/
12915         * build-aux/bootstrap (update_po_files): Complete the change
12916         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
12917
12918 2008-07-27  Jim Meyering  <meyering@redhat.com>
12919
12920         * users.txt: Add zile.
12921
12922 2008-07-26  Ben Pfaff  <blp@gnu.org>
12923
12924         Add missing dependencies on new m4/exponent[fdl].m4 files.
12925         * modules/isnanf-nolibm: Add m4/exponentf.m4.
12926         * modules/isnand-nolibm: Add m4/exponentd.m4.
12927         * modules/isnanl-nolibm: Add m4/exponentl.m4.
12928         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
12929         m4/isnan[fdl].m4, because the macros actually used moved.
12930         Reported by Jim Meyering.
12931
12932 2008-07-14  Ben Pfaff  <blp@gnu.org>
12933
12934         Add isinf module.
12935         * lib/isinf.c: New file.
12936         * lib/math.in.h: Define isinf macro if we have decided to replace
12937         it.
12938         * m4/isinf.m4: New file.
12939         * m4/math_h.m4: Initialize and substitute variables for isinf
12940         module.
12941         * modules/isinf: New file.
12942         * modules/isinf-tests: New file.
12943         * modules/math: Add substitutions for new module.
12944         * tests/test-isinf.c: New file.
12945         * doc/posix-functions/isinf.texi: Mention new module.
12946         * MODULES.html.sh: Mention new module.
12947
12948 2008-07-14  Ben Pfaff  <blp@gnu.org>
12949
12950         Factor out some macros for use by additional modules.
12951         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
12952         exponentf.m4.
12953         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
12954         exponentd.m4.
12955         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
12956         file exponentl.m4.
12957         * m4/exponentf.m4: New file.
12958         * m4/exponentd.m4: New file.
12959         * m4/exponentl.m4: New file.
12960         * modules/isnanf: Use new file m4/exponentf.m4.
12961         * modules/isnand: Use new file m4/exponentd.m4.
12962         * modules/isnanl: Use new file m4/exponentl.m4.
12963
12964 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
12965
12966         mktime.c: normalize tp->tm_isdst value to -1/0/1.
12967         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
12968         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
12969         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
12970
12971         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
12972         readlink on platforms without PATH_MAX.
12973
12974 2008-07-21  Eric Blake  <ebb9@byu.net>
12975
12976         Warn, not fail, on stale version.
12977         * top/GNUmakefile (_curr-ver): Tone down previous patch.
12978
12979         Don't allow installation with stale devel version number.
12980         * top/GNUmakefile (_is-install-target): New macro.
12981         (_curr-ver): Forbid installation with stale version number.
12982
12983 2008-07-20  Bruno Haible  <bruno@clisp.org>
12984
12985         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
12986         TESTS_ENVIRONMENT.
12987         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
12988
12989 2008-07-20  Bruno Haible  <bruno@clisp.org>
12990
12991         * lib/c-stack.h (c_stack_action): Add documentation.
12992         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
12993
12994 2008-07-20  Bruno Haible  <bruno@clisp.org>
12995
12996         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
12997         * modules/readlink (License): Likewise.
12998
12999 2008-07-17  Eric Blake  <ebb9@byu.net>
13000
13001         * modules/c-stack (Link): Fix typo.
13002
13003         Make c-stack use libsigsegv, when available.
13004         * modules/c-stack (Depends-on): Add libsigsegv.
13005         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
13006         needed.
13007         * lib/c-stack.c (SIGSTKSZ): Define fallback.
13008         (segv_handler, overflow_handler, c_stack_action)
13009         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
13010         implementation when libsigsegv is available, but only when using
13011         the library is necessary.
13012         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
13013         comment, explaining why XSI check fails on Linux.
13014         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
13015         * tests/test-c-stack2.sh: Tweak skip message.
13016         * NEWS: Document new link-time requirements.
13017
13018 2008-07-16  Eric Blake  <ebb9@byu.net>
13019
13020         c-stack: Expose false positives when not using libsigsegv.
13021         * modules/c-stack-tests (Files): Expand test.
13022         * tests/test-c-stack.c (main): Add means to conditionally trigger
13023         non-overflow SIGSEGV.
13024         * tests/test-c-stack2.sh: New file.
13025
13026 2008-07-14  Bruno Haible  <bruno@clisp.org>
13027
13028         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
13029         Reported by Eric Blake.
13030
13031 2008-07-14  Sam Steingold  <sds@gnu.org>
13032             Bruno Haible  <bruno@clisp.org>
13033
13034         New module libsigsegv.
13035         * modules/libsigsegv: New file.
13036         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
13037         modifications.
13038         * MODULES.html.sh (Signal handling): New section.
13039
13040 2008-07-14  Bruno Haible  <bruno@clisp.org>
13041
13042         * modules/unictype/ctype-* (Description): Add the word "function".
13043         Improves the resulting doc in MODULES.html.
13044
13045 2008-07-12  Ben Pfaff  <blp@gnu.org>
13046
13047         Add longlong module.
13048         * modules/longlong: New file.
13049
13050 2008-07-12  Bruno Haible  <bruno@clisp.org>
13051
13052         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
13053         to empty.
13054
13055 2008-07-10  Ben Pfaff  <blp@gnu.org>
13056
13057         Add isnan module.
13058         * doc/posix-functions/isnan.texi: Mention new module.
13059         * lib/math.in.h: Define isnan macro if we have decided to replace
13060         it.
13061         * m4/isnan.m4: New file.
13062         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
13063         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
13064         also.
13065         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
13066         redundancy.
13067         * m4/math_h.m4: Initialize and substitute variables for isnan
13068         module.
13069         * modules/isnan: New file.
13070         * modules/isnan-tests: New file.
13071         * modules/math: Add substitutions for new module.
13072         * tests/test-isnan.c: New file.
13073         * MODULES.html.sh: Mention new module.
13074
13075 2008-07-10  Ben Pfaff  <blp@gnu.org>
13076
13077         Add isnanf module.
13078         * lib/isnanf.m4: New file.
13079         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
13080         (gl_HAVE_ISNANF_IN_LIBM): New macro.
13081         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
13082         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
13083         * modules/isnanf: New file.
13084         * modules/isnanf-tests: New file.
13085         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
13086         files.
13087         * tests/test-isnanf-nolibm.c: factored most of its contents into
13088         new file tests/test-isnanf.h.
13089         * tests/test-isnanf.h: New file.
13090         * tests/test-isnanf.c: New file.
13091         * MODULES.html.sh: Mention new module.
13092         * doc/glibc-functions/isnanf.texi: Mention new module.
13093
13094 2008-07-10  Ben Pfaff  <blp@gnu.org>
13095
13096         Add isnand module.
13097         * lib/isnand.h: New file.
13098         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
13099         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
13100         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
13101         functionality also.
13102         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
13103         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
13104         (gl_HAVE_ISNAND_IN_LIBM): New macro.
13105         * modules/isnand: New file.
13106         * modules/isnand-tests: New file.
13107         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
13108         files.
13109         * tests/test-isnand-nolibm.c: factored most of its contents into
13110         new file tests/test-isnand.h.
13111         * tests/test-isnand.h: New file.
13112         * tests/test-isnand.c: New file.
13113         * MODULES.html.sh: Mention new module.
13114
13115 2008-07-10  Ben Pfaff  <blp@gnu.org>
13116
13117         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
13118         * lib/isnand.h: Rename lib/isnand-nolibm.h.
13119         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
13120         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
13121         * modules/isnanf-nolibm: Update references to renamed files.
13122         * modules/isnand-nolibm: Likewise.
13123         * modules/isnanf-nolibm-tests: Likewise.
13124         * modules/isnand-nolibm-tests: Likewise.
13125         * lib/frexp.c: Likewise.
13126         * lib/isfinite.c: Likewise.
13127         * lib/signbitd.c: Likewise.
13128         * lib/signbitf.c: Likewise.
13129         * lib/vasnprintf.c: Likewise.
13130         * tests/test-ceilf1.c: Likewise.
13131         * tests/test-ceilf2.c: Likewise.
13132         * tests/test-floorf1.c: Likewise.
13133         * tests/test-floorf2.c: Likewise.
13134         * tests/test-frexp.c: Likewise.
13135         * tests/test-round1.c: Likewise.
13136         * tests/test-round2.c: Likewise.
13137         * tests/test-roundf1.c: Likewise.
13138         * tests/test-strtod.c: Likewise.
13139         * tests/test-trunc1.c: Likewise.
13140         * tests/test-trunc2.c: Likewise.
13141         * tests/test-truncf1.c: Likewise.
13142         * tests/test-truncf2.c: Likewise.
13143         * NEWS: Mention the renamed header files.
13144
13145 2008-07-11  Jim Meyering  <meyering@redhat.com>
13146
13147         vc-list-files: make the last-resort awk code more portable
13148         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
13149         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
13150         does not support it.
13151
13152 2008-07-10  Eric Blake  <ebb9@byu.net>
13153
13154         Work with tar's bootstrap.
13155         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
13156         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
13157         an m4 comment.
13158
13159 2008-07-09  Jim Meyering  <meyering@redhat.com>
13160
13161         posix-shell.m4: fix typo that made this test malfunction
13162         * m4/posix-shell.m4: Remove capitalization in variable name.
13163
13164 2008-07-08  Bruno Haible  <bruno@clisp.org>
13165
13166         * m4/onceonly.m4: Update comments.
13167         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13168
13169 2008-07-04  Jim Meyering  <meyering@redhat.com>
13170
13171         * users.txt: Add vc-dwim.
13172         (bison, coreutils): Use the gitweb URL.
13173
13174 2008-07-03  Jim Meyering  <meyering@redhat.com>
13175
13176         * users.txt: Add libffcall.  From Sam Steingold.
13177
13178 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
13179
13180         getdate.y: do not ignore TZ with relative day, month or year offset
13181         * lib/getdate.y (get_date): Move the tz-handling block to follow the
13182         relative-date-handling, since otherwise, the latter would clobber the
13183         sole output (an updated Start value) of the tz-handling block.
13184         * tests/test-getdate.c: Tests for the fix
13185
13186 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13187
13188         Recognize 'foo_LIBRARIES += libgnu.a'.
13189         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
13190         makefile snippet has already specified an installation location,
13191         also using '+='.
13192
13193 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
13194
13195         getdate.y: factor out common actions
13196         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
13197         Use them in place of open-coded actions.
13198
13199 2008-07-01  Simon Josefsson  <simon@josefsson.org>
13200
13201         Add self-test for getdate module.
13202         * modules/getdate-tests: New file.
13203         * tests/test-getdate.c: New file.
13204
13205 2008-06-29  Bruno Haible  <bruno@clisp.org>
13206
13207         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
13208         .gitignore.
13209         Reported by Sylvain Beucler <beuc@beuc.net>.
13210
13211 2008-06-29  Bruno Haible  <bruno@clisp.org>
13212
13213         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
13214         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
13215
13216 2008-06-29  Bruno Haible  <bruno@clisp.org>
13217
13218         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
13219         EXTRA_DIST.
13220         Reported by Sylvain Beucler <beuc@beuc.net>.
13221
13222 2008-06-26  Jim Meyering  <meyering@redhat.com>
13223
13224         make several modules depend on the "open" module
13225         This provides slightly increased consistency when opening-for-write
13226         the name of a non-directory spelled with a trailing slash.
13227         * modules/chdir-safer: Likewise.
13228         * modules/chown: Likewise.
13229         * modules/clean-temp: Likewise.
13230         * modules/copy-file: Likewise.
13231         * modules/fchdir: Likewise.
13232         * modules/fcntl-safer: Likewise.
13233         * modules/pipe: Likewise.
13234         * modules/utime: Likewise.
13235         Prompted by Eric Blake and Bruno Haible.
13236
13237 2008-06-24  Andreas Schwab  <schwab@suse.de>
13238
13239         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
13240         literals can be used as initializers for global variables.
13241
13242 2008-06-23  Eric Blake  <ebb9@byu.net>
13243
13244         Make gnulib-cache.m4 easier to diff.
13245         * gnulib-tool (func_import): Allow newlines when reading cached
13246         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
13247
13248 2008-06-23  Bruno Haible  <bruno@clisp.org>
13249
13250         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
13251         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
13252         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
13253         m4/signalblocking.m4.
13254         (gl_PREREQ_SIGACTION): Don't invoke it.
13255         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
13256         gl_PREREQ_SIG_HANDLER_H.
13257         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
13258         Don't check for sigaction here.
13259
13260 2008-06-23  Bruno Haible  <bruno@clisp.org>
13261
13262         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
13263         (install_handlers): Don't set the SA_RESETHAND flag.
13264
13265 2008-06-23  Bruno Haible  <bruno@clisp.org>
13266
13267         * m4/sigaction.m4: Comment fixes.
13268         * lib/signal.in.h: Likewise.
13269
13270 2008-06-23  Eric Blake  <ebb9@byu.net>
13271
13272         Fix typo.
13273         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
13274
13275         Avoid SA_ namespace.
13276         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
13277         Reported by Ralf Wildenhues.
13278
13279         Avoid test failure due to SA_RESTORER.
13280         * tests/test-sigaction.c (SA_MASK): New macro.
13281         (main): Avoid failing due to extension flags being set.
13282         Reported by Jim Meyering.
13283
13284         Revert use of sig-handler.h in sigprocmask.c.
13285         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
13286         it requires the existence of struct sigaction.
13287         * lib/sigprocmask.c (handler_t): Restore typedef.
13288         (rpl_signal, old_handlers): Use local type.
13289
13290 2008-06-22  Bruno Haible  <bruno@clisp.org>
13291
13292         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
13293         conditionally.
13294         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13295
13296 2008-06-22  Bruno Haible  <bruno@clisp.org>
13297
13298         * doc/posix-functions/siginterrupt.texi: Move note.
13299
13300         * lib/signal.in.h (SA_RESTART): New macro.
13301         * lib/sigaction.c: Update comment.
13302
13303         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
13304
13305         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
13306         (gl_PREREQ_SIGPROCMASK): Invoke it.
13307         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
13308
13309         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
13310
13311         * lib/sigprocmask.c: Update a comment.
13312
13313 2008-06-21  Eric Blake  <ebb9@byu.net>
13314
13315         Use sigaction module rather than signal().
13316         * modules/c-stack (Depends-on): Add sigaction.
13317         * modules/fatal-signal (Depends-on): Likewise.
13318         * modules/nanosleep (Depends-on): Likewise.
13319         * modules/sigprocmask (Files): Add sig-handler.h.
13320         * modules/sigaction (Files): Likewise.
13321         * lib/sig-handler.h (get_handler): New file, suggested by Paul
13322         Eggert.
13323         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
13324         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
13325         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
13326         (init_fatal_signals): Likewise.
13327         * lib/nanosleep.c (rpl_nanosleep): Likewise.
13328         (siginterrupt): Delete fallback.
13329         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
13330         instead.
13331         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
13332         siginterrupt.
13333
13334         New module sigaction, for mingw.
13335         * modules/sigaction: New module...
13336         * modules/sigaction-tests: ...and its test.
13337         * m4/sigaction.m4: New file.
13338         * lib/sigaction.c: Likewise.
13339         * tests/test-sigaction.c: Likewise.
13340         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
13341         * modules/signal (Makefile.am): Likewise.
13342         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
13343         needed.
13344         * doc/posix-headers/signal.texi (signal.h): Mention provided
13345         types.
13346         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
13347         that sigaction is preferable.
13348         * doc/posix-functions/sigaction.texi (sigaction): Mention new
13349         module.
13350         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13351         sigaction.
13352
13353         Improve robustness of sigprocmask by overriding signal.
13354         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
13355         is in use.
13356         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
13357         (SIGKILL, SIGSTOP): Provide fallbacks.
13358         (rpl_signal): Implement.
13359         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
13360         signal can be called inside handlers.
13361
13362         Fix nanosleep module on mingw.
13363         * modules/nanosleep (Depends-on): Add sys_select.
13364         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
13365
13366         Fix licensing of sigprocmask.
13367         * modules/raise (License): Relicense as LGPL.
13368
13369 2008-06-21  Bruno Haible  <bruno@clisp.org>
13370
13371         * lib/propername.c (proper_name_utf8): Don't use the transliterated
13372         result if it contains question marks.
13373         Reported by Michael Geng <linux@michaelgeng.de>.
13374
13375 2008-06-19  Bruno Haible  <bruno@clisp.org>
13376
13377         Fix CVS-ism.
13378         * doc/gnulib.texi: Include updated-stamp.texi.
13379         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
13380         (updated-stamp.texi): New rule.
13381         (gnulib.info): Depend on it.
13382         * doc/.gitignore: Add updated-stamp.texi.
13383         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
13384
13385 2008-06-19  Bruno Haible  <bruno@clisp.org>
13386
13387         * doc/Makefile (gnulib.info): Update and simplify dependencies.
13388         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
13389
13390 2008-06-19  Eric Blake  <ebb9@byu.net>
13391
13392         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
13393         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
13394         Reported by Stepan Kasal.
13395
13396 2008-06-18  Bruno Haible  <bruno@clisp.org>
13397
13398         * lib/fatal-signal.c (init_fatal_signals): Add comment.
13399         Reported by Eric Blake.
13400
13401 2008-06-18  Eric Blake  <ebb9@byu.net>
13402
13403         Work around cygwin 1.5.25 strsignal bug.
13404         * tests/test-strsignal.c: Allow for const char *.
13405         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
13406
13407 2008-06-18  Simon Josefsson  <simon@josefsson.org>
13408
13409         * users.txt: Update URL to article and add author/date
13410         information.
13411
13412 2008-06-17  Bruno Haible  <bruno@clisp.org>
13413
13414         New macro gl_DISABLE_THREADS.
13415         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
13416         if the user did not pass --enable-threads or --disable-threads option.
13417         (gl_DISABLE_THREADS): New macro.
13418         Reported by Eric Blake <ebb9@byu.net>.
13419
13420 2008-06-17  Bruno Haible  <bruno@clisp.org>
13421
13422         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
13423         when the macro ignores it.
13424         Based on a patch by Eric Blake <ebb9@byu.net>.
13425
13426 2008-06-17  Bruno Haible  <bruno@clisp.org>
13427
13428         * modules/tls (License): Change to LGPLv2+.
13429         Reported by Eric Blake.
13430
13431 2008-06-17  Eric Blake  <ebb9@byu.net>
13432
13433         Simplify c-stack prerequisites.
13434         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
13435         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
13436         no longer requires <ucontext.h> to exist.  Optimize setrlimit
13437         check.
13438         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
13439         <sys/resource.h>.
13440
13441         Move c-stack test into testsuite.
13442         * modules/c-stack-tests: New file.
13443         * lib/c-stack.c [DEBUG]: Move test program...
13444         * tests/test-c-stack.c: ...into this new file.  Skip rather than
13445         fail test if sigaltstack is lacking.
13446         * tests/test-c-stack.sh: New driver file.
13447
13448 2008-06-16  Eric Blake  <ebb9@byu.net>
13449
13450         Use raise module consistently.
13451         * modules/fatal-signal (Depends-on): Add raise.
13452         * modules/sigprocmask (Depends-on): Likewise.
13453         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
13454         * lib/sigprocmask.c (sigprocmask): Likewise.
13455         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
13456         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
13457
13458         Fix compliance bug in sigpending.
13459         * lib/sigprocmask.c (sigpending): Return pending array via
13460         parameter, not return value.
13461
13462 2008-06-14  Eric Blake  <ebb9@byu.net>
13463
13464         Improve obstack-printf test code.
13465         * tests/test-obstack-printf.c (test_function): Fix comment, and
13466         simplify usage of obstack_* in macros.  Add a test for coverage.
13467         Reported by Bruno Haible.
13468
13469 2008-06-14  Bruno Haible  <bruno@clisp.org>
13470
13471         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
13472         array size as a constant, not as a const variable.
13473         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
13474         AC_USE_SYSTEM_EXTENSIONS.
13475         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
13476         Test whether the obstack_printf function actually exists.
13477         * modules/obstack-printf (Depends-on): Add extensions.
13478         (Include): Remove obstack.h.
13479         * modules/obstack-printf-posix (Depends-on): Add extensions.
13480         (Include): Remove obstack.h.
13481
13482 2008-06-13  Eric Blake  <ebb9@byu.net>
13483
13484         Add obstack-printf and obstack-printf-posix modules.
13485         * modules/obstack-printf: New file.
13486         * modules/obstack-printf-posix: Likewise.
13487         * MODULES.html.sh (Misc): Mention them.
13488         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
13489         Likewise.
13490         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
13491         Likewise.
13492         * modules/stdio (Makefile.am): Accomodate new modules.
13493         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13494         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
13495         Declare.
13496         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
13497         functions.
13498         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
13499         (gl_REPLACE_OBSTACK_PRINTF): New macros
13500         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
13501         * tests/test-obstack-printf.c: New file.
13502         * modules/obstack-printf-tests: Likewise.
13503         * modules/obstack-printf-posix-tests: Likewise.
13504
13505 2008-06-11  Bruno Haible  <bruno@clisp.org>
13506
13507         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
13508         * lib/open.c: Include errno.h.
13509         (open): Fail when attempting to write to a file that has a trailing
13510         slash.
13511         * tests/test-open.c (main): Test against trailing slash bug.
13512         * doc/posix-functions/open.texi: Mention the trailing slash bug.
13513
13514 2008-06-10  Bruno Haible  <bruno@clisp.org>
13515
13516         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
13517         for $? to work inside the trap command, with various /bin/sh-s.
13518         * tests/test-vc-list-files-cvs.sh: Likewise.
13519
13520 2008-06-10  Bruno Haible  <bruno@clisp.org>
13521
13522         * lib/acl-internal.h: Don't include gettext.h here.
13523         * lib/set-mode-acl.c: Include gettext.h here.
13524         * lib/copy-acl.c: Likewise.
13525
13526 2008-06-10  Bruno Haible  <bruno@clisp.org>
13527
13528         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
13529         * lib/wait-process.c (wait_subprocess): Likewise.
13530         * lib/execute.h (execute): Add termsigp argument.
13531         * lib/execute.c (execute): Likewise.
13532         * lib/csharpcomp.c (compile_csharp_using_pnet,
13533         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
13534         * lib/csharpexec.c (execute_csharp_using_pnet,
13535         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
13536         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
13537         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
13538         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
13539         is_jikes_present): Update.
13540         * lib/javaexec.c (execute_java_class): Update.
13541         * lib/javaversion.c (execute_and_read_line): Update.
13542         * NEWS: Document the changes.
13543         Reported by Eric Blake.
13544
13545 2008-06-10  Eric Blake  <ebb9@byu.net>
13546
13547         Add missing include.
13548         * tests/test-strstr.c (includes): Add <signal.h>.
13549         * tests/test-strcasestr.c (includes): Likewise.
13550         * tests/test-memmem.c (includes): Likewise.
13551
13552 2008-06-10  Bruno Haible  <bruno@clisp.org>
13553
13554         * lib/wait-process.c (wait_subprocess): Add an assertion.
13555
13556 2008-06-10  Bruno Haible  <bruno@clisp.org>
13557
13558         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
13559
13560 2008-06-10  Bruno Haible  <bruno@clisp.org>
13561
13562         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
13563         using alarm().
13564         * tests/test-strcasestr.c (main): Likewise.
13565         * tests/test-strstr.c (main): Likewise.
13566
13567 2008-06-09  Bruno Haible  <bruno@clisp.org>
13568
13569         Work around the Solaris 10 ACE ACLs ABI change.
13570         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
13571         declare if ACL_NO_TRIVIAL is present.
13572         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
13573         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
13574         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
13575         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
13576         define if ACL_NO_TRIVIAL is present.
13577         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
13578         and use the current ABI.
13579         (file_has_acl): Use same #if condition as elsewhere.
13580         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
13581         in use, and use the current ABI.
13582         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
13583         Reported by Jim Meyering.
13584
13585 2008-06-09  Eric Blake  <ebb9@byu.net>
13586
13587         Work around environments that (stupidly) ignore SIGALRM.
13588         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
13589         before using alarm().
13590         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13591         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13592         Reported by Ian Beckwith <ianb@erislabs.net>.
13593
13594         Produce autobuild blurb earlier in log.
13595         * modules/autobuild (configure.ac-early): Move AB_INIT here.
13596
13597 2008-06-09  Jim Meyering  <meyering@redhat.com>
13598         and OndÅ™ej Vašík  <ovasik@redhat.com>
13599
13600         utimens.c: correct kernel bug work-around
13601         OndÅ™ej Vašík found that the invalid return value of 280 indicates
13602         failure, not success, and the kernel bug we're trying to work
13603         around affects not just the utimensat call, but also the fallback
13604         futimens call.
13605         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
13606         not success.
13607         [HAVE_FUTIMENS]: Use the same work-around, here.
13608
13609 2008-06-09  Jim Meyering  <meyering@redhat.com>
13610
13611         add more guards around definition of ACE_-related code
13612         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
13613         ALLOW and ACE_OWNER are also defined.
13614
13615 2008-06-08  Bruno Haible  <bruno@clisp.org>
13616
13617         * lib/acl-internal.h: Add me as co-author.
13618         * lib/file-has-acl.c: Likewise.
13619         * lib/set-mode-acl.c: Likewise.
13620         * lib/copy-acl.c: Likewise.
13621
13622 2008-06-08  Bruno Haible  <bruno@clisp.org>
13623
13624         Add support for AIX ACLs.
13625         * lib/acl-internal.h (acl_nontrivial): New declaration.
13626         * lib/file-has-acl.c (acl_nontrivial): New function.
13627         (file_has_acl): Add implementation using AIX 4 ACL API.
13628         * lib/set-mode-acl.c (qset_acl): Likewise.
13629         * lib/copy-acl.c (qcopy_acl): Likewise.
13630
13631 2008-06-08  Bruno Haible  <bruno@clisp.org>
13632
13633         Add support for HP-UX ACLs.
13634         * lib/acl-internal.h (acl_nontrivial): New declaration.
13635         * lib/file-has-acl.c (acl_nontrivial): New function.
13636         (file_has_acl): Add implementation using HP-UX 11 ACL API.
13637         * lib/set-mode-acl.c (qset_acl): Likewise.
13638         * lib/copy-acl.c (qcopy_acl): Likewise.
13639
13640 2008-06-08  Bruno Haible  <bruno@clisp.org>
13641
13642         Add support for Cygwin ACLs.
13643         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
13644         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
13645         the chmod_or_fchmod call.
13646         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
13647
13648 2008-06-08  Bruno Haible  <bruno@clisp.org>
13649
13650         Fix bug with setuid modes in Solaris 10+ code.
13651         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
13652         succeeded, when the mode contains some special bits.
13653
13654 2008-06-08  Bruno Haible  <bruno@clisp.org>
13655
13656         Add support for Solaris 7..10 ACLs.
13657         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
13658         declarations.
13659         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
13660         functions.
13661         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
13662         * lib/set-mode-acl.c (qset_acl): Likewise.
13663         * lib/copy-acl.c (qcopy_acl): Likewise.
13664
13665 2008-06-08  Bruno Haible  <bruno@clisp.org>
13666
13667         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
13668         declaration.
13669         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
13670         (acl_access_nontrivial): Remove MacOS X case.
13671         (file_has_acl): Use acl_extended_nontrivial.
13672         * lib/copy-acl.c (qcopy_acl): Likewise.
13673
13674 2008-06-08  Bruno Haible  <bruno@clisp.org>
13675
13676         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
13677
13678 2008-06-08  Jim Meyering  <meyering@redhat.com>
13679
13680         * modules/acl (Maintainer): Add Bruno Haible.
13681
13682 2008-06-07  Bruno Haible  <bruno@clisp.org>
13683
13684         Improve support for Tru64 ACLs.
13685         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
13686         ACL on OSF/1.
13687
13688 2008-06-07  Bruno Haible  <bruno@clisp.org>
13689
13690         Add support for MacOS X ACLs.
13691         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
13692         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
13693         * lib/set-mode-acl.c (qset_acl): Likewise.
13694         * lib/copy-acl.c (qcopy_acl): Likewise.
13695
13696 2008-06-07  Bruno Haible  <bruno@clisp.org>
13697
13698         Fix memory leak introduced on 2008-05-22.
13699         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
13700         use.
13701
13702 2008-06-07  Bruno Haible  <bruno@clisp.org>
13703
13704         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
13705         to construct an empty ACL.
13706
13707 2008-06-07  Bruno Haible  <bruno@clisp.org>
13708
13709         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
13710         precisely.
13711         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
13712
13713 2008-06-07  Bruno Haible  <bruno@clisp.org>
13714
13715         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
13716         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
13717
13718 2008-06-07  Bruno Haible  <bruno@clisp.org>
13719
13720         * doc/posix-functions/_setjmp.texi: Explain the use of this function
13721         regardless of POSIX.
13722         * doc/posix-functions/_longjmp.texi: Likewise.
13723         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
13724         SystemV platform in this case.
13725
13726 2008-06-06  Eric Blake  <ebb9@byu.net>
13727
13728         Document abort() bugs.
13729         * doc/posix-functions/abort.texi (abort): Mention anomalies.
13730
13731         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
13732         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
13733         sigsetjmp.
13734         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
13735         siglongjmp, but only as a macro.
13736         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
13737         is obsolete.
13738         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
13739
13740         Tweak documentation to cover cygwin argz bugs.
13741         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
13742         argz bug fix; no code change needed since no cygwin releases
13743         occurred between the last fix and the bug being tested.
13744         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
13745         module and recently fixed cygwin bugs.
13746         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
13747         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
13748         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
13749         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
13750         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
13751         Likewise.
13752         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
13753         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
13754         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
13755         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
13756         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
13757         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
13758         Likewise.
13759
13760         Avoid gcc warning on cygwin.
13761         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
13762         !ACL_NO_TRIVIAL]: Avoid unused variable.
13763
13764 2008-06-05  Eric Blake  <ebb9@byu.net>
13765
13766         Be tolerant of UNKNOWN version in gnulib-tool test dir.
13767         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
13768         git-version-gen fails to come up with a version.
13769         Reported by Simon Josefsson.
13770
13771 2008-06-05  Jim Meyering  <meyering@redhat.com>
13772             Paul Eggert  <eggert@cs.ucla.edu>
13773
13774         utimens.c: work around a probable Linux kernel bug
13775         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
13776         appears to be a kernel bug that causes utimensat to return 280
13777         instead of 0, indicating success.
13778
13779 2008-06-04  Bruno Haible  <bruno@clisp.org>
13780
13781         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
13782         2008-06-01 commit.
13783
13784 2008-06-04  Bruno Haible  <bruno@clisp.org>
13785
13786         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
13787         * lib/file-has-acl.c (acl_access_nontrivial): New function.
13788         (file_has_acl): Use it. Save errno afterwards.
13789         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
13790
13791 2008-06-03  Bruno Haible  <bruno@clisp.org>
13792
13793         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
13794         draft code. Simplify #ifs.
13795         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
13796         Put Solaris code after POSIX-draft code. Fix comments regarding
13797         Solaris 10, HP-UX. Mention Cygwin.
13798         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
13799
13800 2008-06-03  Eric Blake  <ebb9@byu.net>
13801
13802         Provide fallback for older kernels.
13803         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
13804         Provide runtime fallback if kernel lacks support.
13805         Reported by Mike Frysinger.
13806
13807 2008-06-02  Bruno Haible  <bruno@clisp.org>
13808
13809         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
13810         it exists.
13811
13812 2008-06-02  Bruno Haible  <bruno@clisp.org>
13813
13814         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
13815         * lib/copy-acl.c (qcopy_acl): Update comment.
13816
13817 2008-06-02  Bruno Haible  <bruno@clisp.org>
13818
13819         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
13820         like ACL APIs.
13821
13822 2008-06-02  Bruno Haible  <bruno@clisp.org>
13823
13824         * tests/test-file-has-acl.sh: Use different code for Cygwin.
13825         * tests/test-set-mode-acl.sh: Likewise.
13826         * tests/test-copy-acl.sh: Likewise.
13827         * tests/test-copy-file.sh: Likewise.
13828
13829 2008-06-02  Bruno Haible  <bruno@clisp.org>
13830
13831         * tests/test-file-has-acl.sh: Remove unused code.
13832
13833 2008-06-01  Bruno Haible  <bruno@clisp.org>
13834
13835         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
13836         (copy_acl): Just a wrapper around qcopy_acl that emits the error
13837         messages.
13838         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
13839
13840 2008-06-01  Bruno Haible  <bruno@clisp.org>
13841
13842         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
13843         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
13844         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
13845         APIs.
13846         * modules/acl-tests (configure.ac): Remove tests now contained in
13847         m4/acl.m4.
13848
13849 2008-06-02  Jim Meyering  <meyering@redhat.com>
13850
13851         announce-gen: use a better key-server host name
13852         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
13853         it may be more consistently reliable.  Suggested by Werner Koch
13854         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
13855
13856 2008-06-01  Bruno Haible  <bruno@clisp.org>
13857
13858         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
13859         Reported by Voroskoi Andras <voroskoi@gmail.com>.
13860
13861 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
13862
13863         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
13864
13865 2008-06-01  Bruno Haible  <bruno@clisp.org>
13866
13867         New ACL tests.
13868         * tests/test-file-has-acl.sh: New file.
13869         * tests/test-file-has-acl.c: New file.
13870         * tests/test-set-mode-acl.sh: New file.
13871         * tests/test-set-mode-acl.c: New file.
13872         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
13873         * tests/test-copy-acl.c: New file.
13874         * modules/acl-tests: New file, based on modules/copy-file-tests.
13875         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
13876         (Depends-on): Add acl-tests.
13877         (configure.ac): Remove checks.
13878         (Makefile.am): Don't create test-sameacls program here any more.
13879
13880 2008-06-01  Bruno Haible  <bruno@clisp.org>
13881
13882         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
13883         * tests/test-sameacls.c: Include progname.h.
13884         (main): Invoke set_program_name. Portability fixes for MacOS X,
13885         Solaris, HP-UX.
13886
13887 2008-06-01  Bruno Haible  <bruno@clisp.org>
13888
13889         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
13890         function.
13891         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
13892
13893 2008-06-01  Bruno Haible  <bruno@clisp.org>
13894
13895         * modules/rpmatch (Depends-on): Add strdup.
13896
13897 2008-06-01  Bruno Haible  <bruno@clisp.org>
13898
13899         * lib/pipe.c: Include unistd-safer.h.
13900         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
13901         * modules/pipe (Depends-on): Add unistd-safer.
13902
13903 2008-05-30  Simon Josefsson  <simon@josefsson.org>
13904
13905         * modules/autobuild (configure.ac): Call AB_INIT.
13906
13907 2008-05-30  Simon Josefsson  <simon@josefsson.org>
13908
13909         * tests/test-getaddrinfo.c: Don't print debug messages by default.
13910         Suggested by Bruno Haible <bruno@clisp.org>.
13911
13912 2008-05-30  Simon Josefsson  <simon@josefsson.org>
13913
13914         * tests/test-base64.c: Cast size_t to unsigned long when invoking
13915         printf.  Use %lu instead of %d.  Reported by Bruno Haible
13916         <bruno@clisp.org>.
13917
13918 2008-05-29  Eric Blake  <ebb9@byu.net>
13919
13920         Prefer new POSIX 200x interfaces over futimesat.
13921         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
13922         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
13923         when available.
13924         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
13925
13926 2008-05-28  Bruno Haible  <bruno@clisp.org>
13927
13928         * modules/stpcpy (License): Change to LGPLv2+.
13929         Requested by David Lutterkort <dlutter@redhat.com>.
13930
13931 2008-05-27  Bruno Haible  <bruno@clisp.org>
13932
13933         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
13934         current mingw.
13935         Reported by Jose E. Marchesi <jemarch@gnu.org>.
13936
13937 2008-05-27  Bruno Haible  <bruno@clisp.org>
13938
13939         * modules/iconv_open (Link): New section, from module 'iconv'.
13940         * modules/striconv (Link): Likewise.
13941         * modules/striconveh (Link): Likewise.
13942         * modules/xstriconv (Link): Likewise.
13943         * modules/unicodeio (Link): Likewise.
13944         * modules/propername (Link): Likewise.
13945         Reported by Jim Meyering.
13946
13947 2008-05-26  Jim Meyering  <meyering@redhat.com>
13948
13949         sha256: do not artificially restrict buffer length to be < 2^32
13950         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
13951         uint32_t to size_t.
13952         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
13953         to match.
13954
13955         avoid unaligned access errors, e.g., on sparc
13956         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
13957         direct access through a possibly-unaligned uint64* pointer.
13958         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
13959         direct access through a possibly-unaligned uint32* pointer.
13960         Prompted by this patch from Tom "spot" Callaway:
13961         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
13962
13963         sha512.c: fix typo in comment
13964         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
13965
13966 2008-05-25  Bruno Haible  <bruno@clisp.org>
13967
13968         * lib/set-mode-acl.c: Renamed from lib/acl.c.
13969         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
13970         (Makefile.am): Update lib_SOURCES.
13971
13972 2008-05-25  Bruno Haible  <bruno@clisp.org>
13973
13974         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
13975
13976 2008-05-25  Jim Meyering  <meyering@redhat.com>
13977
13978         useless-if-before-free: freed expr may have white-space differences
13979         * build-aux/useless-if-before-free: Recognize cases in which the
13980         freed expression differs from the tested one in embedded white
13981         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
13982         $1 was used, so we can't make any regexp shy.  Improved tests now
13983         detect this.
13984
13985         useless-if-before-free: accept white space in the expression.
13986         * build-aux/useless-if-before-free: For now, any white space
13987         in the expression must be identical in the free argument.
13988
13989         useless-if-before-free: efficiency tweak
13990         * build-aux/useless-if-before-free: Make the expression-matching
13991         regexp "shy".
13992         Make the *outer* regexp shy, not the expr-matching one.
13993
13994         update code-in-comment to accept cast of free arg
13995         * build-aux/useless-if-before-free: Update regexp.
13996
13997 2008-05-25  Bruno Haible  <bruno@clisp.org>
13998
13999         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
14000         * modules/copy-file-tests (Files, Makefile.am): Update.
14001         * tests/test-copy-file.c (func_test_copy): Update.
14002
14003 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
14004
14005         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
14006
14007 2008-05-23  Bruno Haible  <bruno@clisp.org>
14008
14009         Improve support for ACLs on OSF/1.
14010         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
14011         Remove fallback for unknown flavors of ACLs.
14012
14013 2008-05-22  Bruno Haible  <bruno@clisp.org>
14014
14015         Add support for ACLs on OSF/1.
14016         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
14017         replacements.
14018         (acl_free_text): New macro fallback.
14019         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
14020         acl_free.
14021         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
14022         acl_free_text function. Require AC_C_INLINE.
14023
14024 2008-05-22  Bruno Haible  <bruno@clisp.org>
14025
14026         Make copy_acl work on MacOS X 10.5.
14027         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
14028         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
14029         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
14030         If MODE_INSIDE_ACL, don't assume that every system has the same text
14031         representation for ACLs as FreeBSD.
14032         * lib/copy-acl.c (copy_acl): Add support for platforms with
14033         !MODE_INSIDE_ACL.
14034         * lib/file-has-acl.c (file_has_acl): Likewise.
14035         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
14036         FreeBSD, MacOS X, or IRIX, respectively.
14037
14038 2008-05-22  Bruno Haible  <bruno@clisp.org>
14039
14040         * lib/acl.h: Don't include <sys/acl.h>.
14041         (GETACLCNT): Move fallback to lib/acl-internal.h.
14042         * lib/acl-internal.h: Include <sys/acl.h> here.
14043         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
14044
14045 2008-05-22  Bruno Haible  <bruno@clisp.org>
14046
14047         Split off copy_acl function to separate file.
14048         * lib/copy-acl.c: New file, extracted from lib/acl.c.
14049         * lib/acl.c (copy_acl): Moved function to separate file.
14050         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
14051         * modules/acl (Files): Add lib/copy-acl.c.
14052         (Makefiles.am): Augment lib_SOURCES.
14053
14054 2008-05-22  Bruno Haible  <bruno@clisp.org>
14055
14056         * modules/copy-file-tests: New file.
14057         * tests/test-copy-file.sh: New file.
14058         * tests/test-copy-file.c: New file.
14059         * tests/test-copy-file-sameacls.c: New file.
14060
14061 2008-05-22  Eric Blake  <ebb9@byu.net>
14062
14063         Avoid gcc warning.
14064         * tests/test-memcmp.c (main): Pass NULL indirectly.
14065
14066 2008-05-21  Bruno Haible  <bruno@clisp.org>
14067
14068         Add reference doc about ACLs.
14069         * doc/acl-resources.txt: New file.
14070         * doc/acl-cygwin.txt: New file.
14071
14072 2008-05-21  Bruno Haible  <bruno@clisp.org>
14073
14074         Avoid one more warning from gcc.
14075         * lib/vasnprintf.c (IF_LINT): Update comments.
14076         (VASNPRINTF): Use it also for the 'prefix' array initializer.
14077
14078 2008-05-21  Jim Meyering  <meyering@redhat.com>
14079
14080         avoid a warning from gcc
14081         * lib/vasnprintf.c (IF_LINT): Define.
14082         (scale10_round_decimal_long_double):
14083         Use it to avoid a "may be used uninitialized" warning.
14084         (scale10_round_decimal_double): Likewise.
14085
14086 2008-05-21  Simon Josefsson  <simon@josefsson.org>
14087
14088         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
14089         declared.
14090
14091 2008-05-20  Bruno Haible  <bruno@clisp.org>
14092
14093         * tests/test-memcmp.c (main): Test also the sign of the result. Test
14094         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
14095
14096 2008-05-20  Simon Josefsson  <simon@josefsson.org>
14097
14098         * modules/memcmp-tests: New file.
14099         * tests/test-memcmp.c: New file.
14100
14101 2008-05-19  Bruno Haible  <bruno@clisp.org>
14102
14103         * modules/propername (Notice, configure.ac): Put quoted "..." into
14104         --keyword option.
14105         * lib/propername.h: Update comments accordingly.
14106         Reported by Eric Blake.
14107
14108 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
14109
14110         * modules/getpass-gnu (Depends-on): Add fseeko.
14111
14112 2008-05-19  Simon Josefsson  <simon@josefsson.org>
14113
14114         * modules/base64-tests: New file.
14115
14116 2008-05-19  Bo Borgerson <gigabo@gmail.com>
14117
14118         * lib/base64.c (base64_decode_ctx): If a decode context structure
14119         was passed in use it to ignore newlines.  If a context structure
14120         was _not_ passed in, continue to treat newlines as garbage (this
14121         is the historical behavior).  Formerly base64_decode.
14122         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
14123         takes a decode context structure.
14124         * lib/base64.h (base64_decode): Macro for four-argument calls.
14125         (base64_decode_alloc): Likewise.
14126         * lib/base64.c (base64_decode_ctx): If a decode context structure
14127         was passed in use it to ignore newlines.  If a context structure
14128         was _not_ passed in, continue to treat newlines as garbage (this
14129         is the historical behavior).  Formerly base64_decode.
14130         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
14131         takes a decode context structure.
14132         * lib/base64.h (base64_decode): Macro for four-argument calls.
14133         (base64_decode_alloc): Likewise.
14134
14135 2008-05-19  Jim Meyering  <meyering@redhat.com>
14136
14137         avoid a warning from gcc
14138         * lib/trim.c (IF_LINT): Define.
14139         (trim2): Use it to avoid a "may be used uninitialized" warning.
14140
14141         Fix doc typo.
14142         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
14143
14144 2008-05-19  Bruno Haible  <bruno@clisp.org>
14145
14146         * doc/glibc-functions/getpass.texi: Document limits of other
14147         implementations.
14148
14149 2008-05-19  Simon Josefsson  <simon@josefsson.org>
14150             Bruno Haible <bruno@clisp.org>
14151
14152         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
14153
14154 2008-05-18  Bruno Haible  <bruno@clisp.org>
14155
14156         * modules/propername: New file, from GNU gettext.
14157         * lib/propername.h: New file, from GNU gettext.
14158         * lib/propername.c: New file, from GNU gettext.
14159         * MODULES.html.sh (Internationalization functions): Add propername.
14160
14161 2008-05-16  Jim Meyering  <meyering@redhat.com>
14162             Bruno Haible  <bruno@clisp.org>
14163
14164         Avoid some warnings from "gcc -Wshadow".
14165         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
14166
14167 2008-05-15  Eric Blake  <ebb9@byu.net>
14168
14169         Extend previous patch to cygwin 1.7.0.
14170         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
14171         fast implementation in cygwin >= 1.7.0.
14172         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14173         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14174
14175 2008-05-15  Bruno Haible  <bruno@clisp.org>
14176
14177         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
14178         implementation in glibc >= 2.9.
14179         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14180         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14181
14182 2008-05-15  Bruno Haible  <bruno@clisp.org>
14183
14184         * MODULES.html.sh (Internationalization functions): Remove linebreak.
14185         (Unicode string functions): Add unilbrk/*.
14186         Reported by Karl Berry.
14187
14188 2008-05-15  Eric Blake  <ebb9@byu.net>
14189
14190         Fix violation of <stdbool.h> replacement in regex.
14191         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
14192         * lib/regexec.c (re_search_internal): Likewise.
14193         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
14194
14195 2008-05-15  Jim Meyering  <meyering@redhat.com>
14196
14197         avoid distracting test output when git or cvs is not found
14198         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
14199         * tests/test-vc-list-files-git.sh: Likewise.
14200
14201 2008-05-15  Eric Blake  <ebb9@byu.net>
14202
14203         Glibc finally accepted the memmem speedup code, bugzilla #5514.
14204         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
14205         glibc version.
14206         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
14207         * doc/posix-functions/strstr.texi (strstr): Likewise.
14208         * lib/str-two-way.h (MAX): Sychronize with glibc.
14209
14210 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
14211
14212         * lib/regcomp.c (optimize_utf8): Add a note on why we test
14213         opr.ctx_type.
14214         (calc_first): Initialize constraint field.
14215         (duplicate_node_closure): Use it instead of special casing ANCHORS.
14216         Fix grammar.
14217         (duplicate_node): Merge constraint field for all node types.
14218         (calc_eclosure_iter): Look at constraint field for all node types.
14219         * lib/regex_internal.c (create_cd_newstate): Don't look at
14220         opr.ctx_type.
14221
14222 2008-05-14  Bruno Haible  <bruno@clisp.org>
14223
14224         Help GCC to do better code generation.
14225         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
14226         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
14227         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
14228         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
14229         Declare with attribute 'malloc' if supported.
14230
14231 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
14232
14233         use "echo STR|wc -c" rather than unportable "expr length STR"
14234         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
14235         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
14236
14237 2008-05-14  Jim Meyering  <meyering@redhat.com>
14238
14239         use dd ibs=$n count=1 ... rather than less-portable head -c$n
14240         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
14241         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
14242         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
14243         via Collin Lasse.
14244
14245 2008-05-14  Eric Blake  <ebb9@byu.net>
14246
14247         Avoid quadratic growth in gl_LIBSOURCES.
14248         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
14249         Suggested by Bruno Haible.
14250
14251         Test xmemdup0.
14252         * modules/xmemdup0-tests: New file.
14253         * tests/test-xmemdup0.c: Likewise.
14254
14255 2008-05-13  Eric Blake  <ebb9@byu.net>
14256
14257         Split xmemdup0 into its own module.
14258         * modules/xmemdup0: New file.
14259         * lib/xmemdup0.h: Likewise.
14260         * lib/xmemdup0.c: Likewise.
14261         * MODULES.html.sh (Memory management functions): Add xmemdup0.
14262         * lib/xalloc.h (xmemdup0): Remove.
14263         * lib/xmalloc.c (xmemdup0): Likewise.
14264
14265 2008-05-13  Eric Blake  <ebb9@byu.net>
14266             Bruno Haible  <bruno@clisp.org>
14267
14268         Reduce number of forks required during autoconf.
14269         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
14270         and gl_LIBSOURCES_DIR.
14271         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
14272         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
14273         m4_syscmd per file.
14274         <m4_foreach_w>: Move...
14275         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
14276
14277 2008-05-13  Eric Blake  <ebb9@byu.net>
14278
14279         * gnulib-tool: Fix various comment typos.
14280
14281 2008-05-12  Bruno Haible  <bruno@clisp.org>
14282
14283         Tailor the linebreaking algorithm.
14284         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
14285
14286 2008-05-12  Bruno Haible  <bruno@clisp.org>
14287
14288         Update to Unicode 5.0.0.
14289         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
14290         LBP_JV, LBP_JT. Redistribute values.
14291         (unilbrk_table): Change size.
14292         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
14293         Unicode TR#14 rev. 22.
14294         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
14295         LBP_JV, LBP_JT. Redistribute values.
14296         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
14297         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
14298         Update.
14299         * lib/unilbrk/lbrkprop1.h: Regenerated.
14300         * lib/unilbrk/lbrkprop2.h: Regenerated.
14301         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
14302         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
14303         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
14304         Likewise.
14305         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
14306         Likewise.
14307         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
14308         result.
14309         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
14310         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
14311         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
14312         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
14313         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
14314         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
14315
14316 2008-05-11  Bruno Haible  <bruno@clisp.org>
14317
14318         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
14319
14320 2008-05-11  Bruno Haible  <bruno@clisp.org>
14321
14322         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
14323         * modules/unilbrk/gen-lbrk: New file.
14324
14325 2008-05-11  Bruno Haible  <bruno@clisp.org>
14326
14327         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
14328         * m4/sha512.m4 (gl_SHA512): Likewise.
14329
14330 2008-05-11  Jim Meyering  <meyering@redhat.com>
14331
14332         New modules: crypto/sha256, crypto/sha512 (from coreutils)
14333         * modules/crypto/sha256: New file.
14334         * modules/crypto/sha512: Likewise.
14335         * lib/sha256.c: Likewise.
14336         * lib/sha256.h: Likewise.
14337         * lib/sha512.c: Likewise.
14338         * lib/sha512.h: Likewise.
14339         * lib/u64.h: Likewise.
14340         * m4/sha256.m4: Likewise.
14341         * m4/sha512.m4: Likewise.
14342         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
14343
14344 2008-05-10  Bruno Haible  <bruno@clisp.org>
14345
14346         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
14347         (Input/Output <stdio.h>): Add xprintf.
14348         (Signal handling <signal.h>): Add strsignal.
14349         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
14350         (Core language properties): Add func.
14351         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
14352         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
14353         strings.
14354         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
14355         (Input/output): New section.
14356         (File system functions): Add openat-die, stat-macros.
14357         (Networking functions): Add sockets.
14358         (Unicode string functions): Add unictype/*.
14359         (Support for building libraries and executables): Add gperf.
14360         (Support for building documentation): Add agpl-3.0.
14361         (Misc): Add nocrash.
14362
14363 2008-05-10  Bruno Haible  <bruno@clisp.org>
14364
14365         * modules/unictype/gen-ctype: New file.
14366
14367 2008-05-10  Jim Meyering  <meyering@redhat.com>
14368
14369         Make chdir-safer.c more efficient on a system with no symlinks.
14370         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
14371         also if ELOOP is zero.  Suggested by Bruno Haible.
14372
14373         Make chdir-safer.c slightly safer.
14374         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
14375         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
14376
14377         Avoid compile failure on systems without ELOOP (like mingw).
14378         * lib/chdir-safer.c (ELOOP): Define if not already defined.
14379         Reported by Bruno Haible.
14380
14381 2008-05-10  Bruno Haible  <bruno@clisp.org>
14382
14383         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
14384         (is_utf8_encoding): Use a case-insensitive comparison.
14385         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
14386         streq.
14387
14388 2008-05-10  Bruno Haible  <bruno@clisp.org>
14389
14390         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
14391         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
14392         * lib/unilbrk/ulc-common.h (iconv_string_length,
14393         iconv_string_keeping_offsets): Remove declarations.
14394         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
14395         Don't include <iconv.h>, streq.h, xsize.h.
14396         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
14397         conversion.
14398         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
14399         <iconv.h>, streq.h, xsize.h.
14400         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
14401         conversion.
14402         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
14403         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
14404         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
14405         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
14406
14407 2008-05-10  Bruno Haible  <bruno@clisp.org>
14408
14409         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
14410         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
14411
14412         * modules/unilbrk/u32-width-linebreaks-tests: New file.
14413         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
14414
14415         * modules/unilbrk/u16-width-linebreaks-tests: New file.
14416         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
14417
14418         * modules/unilbrk/u8-width-linebreaks-tests: New file.
14419         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
14420
14421         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
14422         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
14423
14424         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
14425         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
14426
14427         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
14428         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
14429
14430         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
14431         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
14432
14433 2008-05-10  Bruno Haible  <bruno@clisp.org>
14434
14435         Split up 'linebreak' module.
14436         * lib/unilbrk.h: New file, based on lib/linebreak.h.
14437         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
14438         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
14439         modifications.
14440         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
14441         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
14442         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
14443         lib/linebreak.c.
14444         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
14445         lib/linebreak.c.
14446         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
14447         lib/linebreak.c.
14448         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
14449         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
14450         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
14451         lib/linebreak.c.
14452         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
14453         lib/linebreak.c.
14454         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
14455         lib/linebreak.c.
14456         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
14457         lib/linebreak.c.
14458         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
14459         lib/linebreak.c.
14460         * modules/unilbrk/base: New file.
14461         * modules/unilbrk/tables: New file.
14462         * modules/unilbrk/u8-possible-linebreaks: New file.
14463         * modules/unilbrk/u16-possible-linebreaks: New file.
14464         * modules/unilbrk/u32-possible-linebreaks: New file.
14465         * modules/unilbrk/ulc-common: New file.
14466         * modules/unilbrk/ulc-possible-linebreaks: New file.
14467         * modules/unilbrk/u8-width-linebreaks: New file.
14468         * modules/unilbrk/u16-width-linebreaks: New file.
14469         * modules/unilbrk/u32-width-linebreaks: New file.
14470         * modules/unilbrk/ulc-width-linebreaks: New file.
14471         * lib/linebreak.h: Remove file.
14472         * lib/linebreak.c: Remove file.
14473         * m4/linebreak.m4: Remove file.
14474         * modules/linebreak: Remove file.
14475         * NEWS: Mention the changes.
14476
14477 2008-05-09  Eric Blake  <ebb9@byu.net>
14478
14479         Add xmemdup0.
14480         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
14481         implementation.
14482         * lib/xmalloc.c (xmemdup0): New C implementation.
14483
14484 2008-05-08  Bruno Haible  <bruno@clisp.org>
14485
14486         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
14487
14488 2008-05-07  Eric Blake  <ebb9@byu.net>
14489
14490         Support cross-compilation of <wctype.h>.
14491         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
14492         AC_CACHE_CHECK.
14493
14494 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
14495
14496         * build-aux/vc-list-files: Add support for bzr.
14497
14498 2008-05-03  Jim Meyering  <meyering@redhat.com>
14499
14500         avoid failed assertion with tight malloc
14501         * tests/test-getndelim2.c: Correct an off-by-one assertion.
14502
14503 2008-05-03  Simon Josefsson  <simon@josefsson.org>
14504
14505         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
14506         are needed from arpa/inet.h.
14507         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
14508         Reported by Bruno Haible.
14509
14510 2008-05-02  Jim Meyering  <meyering@redhat.com>
14511
14512         avoid compilation error on FreeBSD 6
14513         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
14514
14515 2008-05-01  Jim Meyering  <meyering@redhat.com>
14516
14517         useless-if-before-free: correct --help's exit status description
14518         * build-aux/useless-if-before-free (usage): Like grep, exit 0
14519         for one or more matches, etc.  Reported by Bruno Haible.
14520
14521         vc-list-files: make the stand-alone gnulib test work
14522         * modules/vc-list-files-tests (configure.ac):
14523         Define and AC_SUBST abs_aux_dir.
14524         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
14525         $(abs_top_srcdir) to each script and having each of them
14526         duplicate the work of setting PATH, set PATH here, using
14527         the new variable, abs_aux_dir instead.
14528         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
14529         * tests/test-vc-list-files-git.sh: Likewise.
14530         Reported by Bruno Haible.
14531
14532 2008-05-01  Bruno Haible  <bruno@clisp.org>
14533
14534         * lib/getndelim2.c (getndelim2): Fix newsize computation during
14535         reallocation. Rename 'done' to 'found_delimiter'.
14536
14537 2008-05-01  Jim Meyering  <meyering@redhat.com>
14538
14539         vc-list-files: accommodate /bin/sh like the one from Solaris 10
14540         * build-aux/vc-list-files: Use `...`, not $(...).
14541
14542 2008-04-30  Jim Meyering  <meyering@redhat.com>
14543
14544         add tests for vc-list-files
14545         * modules/vc-list-files-tests: New module.
14546         * tests/test-vc-list-files-cvs.sh: New file.
14547         * tests/test-vc-list-files-git.sh: New file.
14548
14549         avoid a warning from gcc
14550         * lib/getndelim2.c (IF_LINT): Define.
14551         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
14552
14553         vc-list-files: work properly with build-aux/cvsu, too
14554         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
14555         to all cvs-based clauses.
14556
14557         vc-list-files: work properly in the CVS+awk case, too
14558         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
14559
14560         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
14561         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
14562         take more than one file argument, so .  Add quotes, just in case $dir
14563         ever contains a shell meta-character.  Prompted by Soren Hansen in
14564         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
14565
14566 2008-04-29  Eric Blake  <ebb9@byu.net>
14567
14568         Optimize getndelim2 to use block operations when possible.
14569         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
14570         freadseek, and memchr2.
14571         * lib/getndelim2.c (getndelim2): Use them for block reads.
14572
14573 2008-04-29  Bruno Haible  <bruno@clisp.org>
14574
14575         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
14576         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
14577         * modules/inet_ntop (Depends-on): Add extensions.
14578         * modules/inet_pton (Depends-on): Likewise.
14579         Reported by Simon Josefsson.
14580
14581 2008-04-29  Jim Meyering  <meyering@redhat.com>
14582
14583         When the is more than one match in a block, match all of them.
14584         * build-aux/useless-if-before-free: Iterate through each block
14585         until there are no more matches.
14586
14587         Fix broken useless-if-before-free script.
14588         * build-aux/useless-if-before-free: Fix typo: missing "?" after
14589         the expression to match cast of argument to free-like function.
14590
14591 2008-04-29  Eric Blake  <ebb9@byu.net>
14592
14593         Use new header.
14594         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
14595
14596 2008-04-29  Jim Meyering  <meyering@redhat.com>
14597
14598         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
14599         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
14600         by gnulib to exist and to declare e.g., inet_ntop.
14601         Don't include "inet_ntop.h", now removed.
14602
14603         * m4/arpa_inet_h.m4: Remove trailing blanks.
14604
14605 2008-04-29  Eric Blake  <ebb9@byu.net>
14606
14607         Silence valgrind on safe reads beyond potential array bounds.
14608         * lib/rawmemchr.valgrind: New file.
14609         * lib/strchrnul.valgrind: Likewise.
14610         * modules/rawmemchr (Files): Distribute new file.
14611         * modules/strchrnul (Files): Likewise.
14612         Suggested by Bruno Haible.
14613
14614 2008-04-29  Bruno Haible  <bruno@clisp.org>
14615
14616         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
14617         (inet_ntop, inet_pton): Change portability warning's wording.
14618         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
14619         Invoke gl_CHECK_NEXT_HEADERS.
14620         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
14621         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
14622         set ARPA_INET_H.
14623         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
14624         * modules/arpa_inet (Description): No longer only for systems that
14625         lack it.
14626         (Depends-on): Add include_next.
14627         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
14628         HAVE_ARPA_INET_H.
14629
14630 2008-04-29  Jim Meyering  <meyering@redhat.com>
14631
14632         * modules/mkdir (License): Re-license as LGPLv2+.
14633
14634 2008-04-29  Bruno Haible  <bruno@clisp.org>
14635
14636         * modules/rawmemchr (Maintainer): Set to Eric.
14637         * modules/strchrnul (Maintainer): Likewise.
14638
14639 2008-04-29  Simon Josefsson  <simon@josefsson.org>
14640
14641         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
14642         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
14643
14644         * modules/arpa_inet (arpa/inet.h): Use them.
14645
14646 2008-04-28  Eric Blake  <ebb9@byu.net>
14647
14648         Test getndelim2.
14649         * modules/getndelim2-tests: New file.
14650         * tests/test-getndelim2.c: Likewise.
14651         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
14652         stream.
14653         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
14654
14655         * MODULES.html.sh: Document new module.
14656
14657 2008-04-20  Bruno Haible  <bruno@clisp.org>
14658
14659         * lib/c-stack.c (die): Use raise.
14660         * modules/c-stack (Depends-on): Add raise.
14661
14662 2008-04-28  Bruno Haible  <bruno@clisp.org>
14663
14664         Expect rpmatch to be declared.
14665         * lib/yesno.c (rpmatch): Remove declaration.
14666
14667         Declare rpmatch.
14668         * lib/stdlib.in.h (rpmatch): New declaration.
14669         * lib/rpmatch.c: Include <stdlib.h> first.
14670         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
14671         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
14672         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
14673         HAVE_RPMATCH.
14674         * modules/rpmatch (Depends-on): Add stdlib, extensions.
14675         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14676         (Include): Set to <stdlib.h>.
14677         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
14678         HAVE_RPMATCH.
14679         * NEWS: Document the change.
14680
14681 2008-04-28  Bruno Haible  <bruno@clisp.org>
14682
14683         Change rpmatch to use nl_langinfo when appropriate.
14684         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
14685         (N_): New macro.
14686         (localized_pattern): New function/macro.
14687         (try): Remove match, nomatch arguments. Copy the pattern into safe
14688         memory before caching it.
14689         (rpmatch): Use localized_pattern. Add translator comments.
14690         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
14691         Suggested by Eric Blake.
14692         * modules/rpmatch (Depends-on): Add stdbool.
14693
14694 2008-04-28  Eric Blake  <ebb9@byu.net>
14695
14696         Add rawmemchr module, matching glibc.
14697         * modules/string (Makefile.am): New indicator.
14698         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
14699         * lib/string.in.h (rawmemchr): Declare when appropriate.
14700         * modules/rawmemchr: New file.
14701         * m4/rawmemchr.m4: Likewise.
14702         * lib/rawmemchr.c: Likewise.
14703         * modules/rawmemchr-tests: Likewise.
14704         * tests/test-rawmemchr.c: Likewise.
14705         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
14706         module.
14707         * modules/strchrnul (Depends-on): Add rawmemchr.
14708         * lib/strchrnul.c (strchrnul): Optimize a corner case.
14709
14710         Whitespace cleanup.
14711         * tests/test-strchrnul.c: Reindent.
14712         * lib/strchrnul.c: Likewise.
14713
14714         Optimize and test strchrnul.
14715         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
14716         * modules/strchrnul-tests: New file.
14717         * tests/test-strchrnul.c: Likewise.
14718
14719         Remove intprops dependency.
14720         * modules/memchr (Depends-on): Remove intprops.
14721         * modules/memrchr (Depends-on): Likewise.
14722         * modules/memchr2 (Depends-on): Likewise.
14723         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
14724         * lib/memrchr.c (__memrchr): Likewise.
14725         * lib/memrchr2.c (memchr2): Likewise.
14726         Reported by Simon Josefsson.
14727
14728 2008-04-28  Simon Josefsson  <simon@josefsson.org>
14729
14730         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
14731         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14732
14733 2008-04-28  Simon Josefsson  <simon@josefsson.org>
14734
14735         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
14736
14737         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
14738
14739         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
14740
14741         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
14742         declarations.
14743         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
14744
14745         * m4/inet_pton.m4: Don't check for header files.
14746
14747         * m4/inet_ntop.m4: Don't check for header files.
14748
14749 2008-04-28  Simon Josefsson  <simon@josefsson.org>
14750
14751         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
14752         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
14753         trigger for cygwin).
14754         Reported by Bruno Haible  <bruno@clisp.org>.
14755
14756 2008-04-28  Bruno Haible  <bruno@clisp.org>
14757
14758         * doc/posix-functions/strdup.texi: Mention mingw problem.
14759
14760 2008-04-27  Bruno Haible  <bruno@clisp.org>
14761
14762         * modules/stat-time-tests (Depends-on): Add sleep.
14763         * tests/test-stat-time.c (force_unlink): New function.
14764         (cleanup): Use it.
14765         (test_mtime): Remove the ctime related tests.
14766         (test_ctime): New function, containing the ctime related tests.
14767         (main): Call test_ctime, except on native Windows platforms.
14768
14769 2008-04-27  Bruno Haible  <bruno@clisp.org>
14770
14771         * lib/rpmatch.c (rpmatch): Add some comments.
14772         Reported by James Youngman <jay@gnu.org>.
14773
14774 2008-04-27  Bruno Haible  <bruno@clisp.org>
14775
14776         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
14777         quiet NaNs.
14778
14779 2008-04-27  Bruno Haible  <bruno@clisp.org>
14780
14781         Make test-yesno.sh work on mingw.
14782         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
14783         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
14784         (main): Set stdin to binary mode.
14785         * modules/yesno-tests (Depends-on): Add binary-io.
14786
14787 2008-04-27  Bruno Haible  <bruno@clisp.org>
14788
14789         Fix 'isfinite' on x86, x86_64, ia64 platforms.
14790         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
14791         argument that lie outside the IEEE 854 domain.
14792         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
14793         (gl_ISFINITE): Use it.
14794         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
14795
14796 2008-04-27  Bruno Haible  <bruno@clisp.org>
14797
14798         Allow local renaming in config.h.
14799         * lib/memrchr.c (memrchr): Don't undefine outside libc.
14800
14801 2008-04-27  Bruno Haible  <bruno@clisp.org>
14802
14803         * lib/memchr.c (__memchr): Change type of 'i'.
14804         * lib/memchr2.c (memchr2): Likewise.
14805
14806 2008-04-26  Eric Blake  <ebb9@byu.net>
14807         and Bruno Haible  <bruno@clisp.org>
14808
14809         Optimize and test memrchr.
14810         * modules/memrchr (Depends-on): Add intprops.
14811         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
14812         * modules/memrchr-tests: New file.
14813         * tests/test-memrchr.c: New file.
14814
14815 2008-04-26  Bruno Haible  <bruno@clisp.org>
14816
14817         Add tentative support for DragonFly BSD.
14818         * lib/stdio-impl.h: Add macros for DragonFly BSD.
14819         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
14820         fp.
14821         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
14822         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
14823         * lib/fpurge.c (fpurge): Likewise.
14824         * lib/freadable.c (freaadable): Likewise.
14825         * lib/freadahead.c (freadahead): Likewise.
14826         * lib/freading.c (freading): Likewise.
14827         * lib/freadptr.c (freadptr): Likewise.
14828         * lib/freadseek.c (freadptrinc): Likewise.
14829         * lib/fseeko.c (fseeko): Likewise.
14830         * lib/fseterr.c (fseterr): Likewise.
14831         * lib/fwritable.c (fwritable): Likewise.
14832         * lib/fwriting.c (fwriting): Likewise.
14833
14834 2008-04-26  Bruno Haible  <bruno@clisp.org>
14835
14836         * lib/stdio-impl.h: New file.
14837         * lib/fbufmode.c: Include stdio-impl.h.
14838         (fbufmode): Use fp_, remove redundant #defines.
14839         * lib/fflush.c: Include stdio-impl.h.
14840         (clear_ungetc_buffer): Remove redundant #defines.
14841         * lib/fpurge.c: Include stdio-impl.h.
14842         (fpurge): Remove redundant #defines.
14843         * lib/freadable.c: Include stdio-impl.h.
14844         (freadable): Remove redundant #defines.
14845         * lib/freadahead.c: Include stdio-impl.h.
14846         (freadahead): Remove redundant #defines.
14847         * lib/freading.c: Include stdio-impl.h.
14848         (freading): Remove redundant #defines.
14849         * lib/freadptr.c: Include stdio-impl.h.
14850         (freadptr): Remove redundant #defines.
14851         * lib/freadseek.c: Include stdio-impl.h.
14852         (freadptrinc): Remove redundant #defines.
14853         * lib/fseeko.c: Include stdio-impl.h.
14854         (rpl_fseeko): Remove redundant #defines.
14855         * lib/fseterr.c: Include stdio-impl.h.
14856         (fseterr): Remove redundant #defines.
14857         * lib/fwritable.c: Include stdio-impl.h.
14858         (fwritable: Remove redundant #defines.
14859         * lib/fwriting.c: Include stdio-impl.h.
14860         (fwriting): Remove redundant #defines.
14861         * modules/fbufmode (Files): Add lib/stdio-impl.h.
14862         * modules/fflush (Files): Likewise.
14863         * modules/fpurge (Files): Likewise.
14864         * modules/freadable (Files): Likewise.
14865         * modules/freadahead (Files): Likewise.
14866         * modules/freading (Files): Likewise.
14867         * modules/freadptr (Files): Likewise.
14868         * modules/freadseek (Files): Likewise.
14869         * modules/fseeko (Files): Likewise.
14870         * modules/fseterr (Files): Likewise.
14871         * modules/fwritable (Files): Likewise.
14872         * modules/fwriting (Files): Likewise.
14873
14874 2008-04-26  Bruno Haible  <bruno@clisp.org>
14875
14876         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
14877         restore_seek_optimization, update_fpos_cache): New functions, extracted
14878         from rpl_fflush.
14879         (rpl_fflush): Use them.
14880         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
14881         (gl_REPLACE_FFLUSH): Use it.
14882
14883 2008-04-26  Bruno Haible  <bruno@clisp.org>
14884
14885         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
14886         on Solaris.
14887         * tests/test-xstrtoimax.sh: Likewise.
14888         * tests/test-xstrtoumax.sh: Likewise.
14889         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14890
14891 2008-04-26  Bruno Haible  <bruno@clisp.org>
14892
14893         * modules/memchr-tests: New file.
14894         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
14895
14896 2008-04-26  Eric Blake  <ebb9@byu.net>
14897             Bruno Haible  <bruno@clisp.org>
14898
14899         * lib/memchr.c: Include intprops.h.
14900         (__memchr): Optimize parallel detection of matching bytes. Rename local
14901         variables. Add explanatory comments.
14902
14903 2008-04-26  Bruno Haible  <bruno@clisp.org>
14904
14905         Fix module 'memchr', broken since 2000-10-28.
14906         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
14907
14908 2008-04-26  Bruno Haible  <bruno@clisp.org>
14909
14910         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
14911         comments.
14912
14913 2008-04-25  Eric Blake  <ebb9@byu.net>
14914
14915         Use native fstatat on cygwin 1.7.0.
14916         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
14917         first.
14918
14919 2008-04-23  Eric Blake  <ebb9@byu.net>
14920
14921         Improve memchr2 performance.
14922         * lib/memchr2.c (memchr2): Further optimize parallel detection of
14923         NUL bytes.
14924         * modules/memchr2 (Depends-on): Use intprops.h.
14925
14926 2008-04-23  Simon Josefsson  <simon@josefsson.org>
14927
14928         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
14929         an inline function instead of a CPP macro.  Patch by Ben Pfaff
14930         <blp@cs.stanford.edu>.
14931
14932 2008-04-23  Simon Josefsson  <simon@josefsson.org>
14933
14934         * lib/arpa_inet.in.h: New file.
14935
14936         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
14937         (Makefile.am): Sed in substitute header file.
14938
14939         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
14940         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
14941
14942         * modules/inet_ntop (configure.ac): Use
14943         gl_ARPA_INET_MODULE_INDICATOR.
14944
14945         * modules/inet_pton (configure.ac): Use
14946         gl_ARPA_INET_MODULE_INDICATOR.
14947
14948 2008-04-22  Jim Meyering  <meyering@redhat.com>
14949
14950         * modules/verify (License): Re-license as LGPLv2+.
14951
14952 2008-04-22  Simon Josefsson  <simon@josefsson.org>
14953
14954         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
14955         parameter to void* as per POSIX standard (MinGW uses char*).
14956
14957 2008-04-21  Bruno Haible  <bruno@clisp.org>
14958
14959         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
14960         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
14961         Define to replacements if REPLACE_ISWCNTRL is 1.
14962         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
14963         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
14964         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
14965         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
14966         what it fixes.
14967         * doc/posix-functions/iswalpha.texi: Likewise.
14968         * doc/posix-functions/iswblank.texi: Likewise.
14969         * doc/posix-functions/iswcntrl.texi: Likewise.
14970         * doc/posix-functions/iswdigit.texi: Likewise.
14971         * doc/posix-functions/iswgraph.texi: Likewise.
14972         * doc/posix-functions/iswlower.texi: Likewise.
14973         * doc/posix-functions/iswprint.texi: Likewise.
14974         * doc/posix-functions/iswpunct.texi: Likewise.
14975         * doc/posix-functions/iswspace.texi: Likewise.
14976         * doc/posix-functions/iswupper.texi: Likewise.
14977         * doc/posix-functions/iswxdigit.texi: Likewise.
14978         Reported by Alain Guibert.
14979
14980 2008-04-21  Bruno Haible  <bruno@clisp.org>
14981
14982         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
14983         Patch by Alain Guibert.
14984
14985 2008-04-21  Bruno Haible  <bruno@clisp.org>
14986
14987         Fix test failures on mingw.
14988         * tests/test-xstrtol.c (print_no_progname): New function.
14989         (main): Install it in error_print_progname hook.
14990         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
14991         * tests/test-xstrtoimax.sh: Likewise.
14992         * tests/test-xstrtoumax.sh: Likewise.
14993
14994 2008-04-21  Bruno Haible  <bruno@clisp.org>
14995
14996         Fix test failure on mingw.
14997         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
14998
14999 2008-04-21  Bruno Haible  <bruno@clisp.org>
15000
15001         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
15002         Actually assign a value.
15003
15004 2008-04-20  Bruno Haible  <bruno@clisp.org>
15005
15006         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
15007         take 2.
15008         * lib/canonicalize.c (canonicalize_file_name): Elide if the
15009         'canonicalize-lgpl' module is also used.
15010         * lib/canonicalize-lgpl.c: Undo last change.
15011         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
15012
15013 2008-04-20  Bruno Haible  <bruno@clisp.org>
15014
15015         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
15016         config.h. Provide _mkdir based fallback for mingw.
15017         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
15018         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
15019         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
15020         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
15021         rather than defining mkdir in config.h.
15022         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
15023         (gl_SYS_STAT_H_DEFAULTS): New macro.
15024         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
15025         HAVE_IO_H any more.
15026         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
15027         HAVE_DECL_MKDIR and HAVE_IO_H.
15028
15029 2008-04-20  Bruno Haible  <bruno@clisp.org>
15030
15031         * lib/isapipe.c: Port to native Windows platforms.
15032
15033 2008-04-20  Bruno Haible  <bruno@clisp.org>
15034
15035         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
15036
15037 2008-04-21  Eric Blake  <ebb9@byu.net>
15038
15039         Work around preprocessors that don't handle UINTMAX_MAX.
15040         * lib/memchr2.c (memchr2): Avoid embedded #if.
15041         Reported by Alain Guibert, fix suggested by Bruno Haible.
15042
15043 2008-04-21  Simon Josefsson  <simon@josefsson.org>
15044
15045         * doc/posix-functions/strftime.texi (strftime): Explain better
15046         Windows incompatibility.  Suggested by Micah Cowan
15047         <micah@cowan.name>.
15048
15049 2008-04-20  Bruno Haible  <bruno@clisp.org>
15050
15051         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
15052         unistr/u8-mblen.
15053
15054 2008-04-20  Bruno Haible  <bruno@clisp.org>
15055
15056         Fix test failure on platforms with non-GNU iconv.
15057         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
15058         (U_TO_U8): Use it, rather than u16_to_u8.
15059         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
15060         units at the end of the input string.
15061         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
15062
15063 2008-04-20  Bruno Haible  <bruno@clisp.org>
15064
15065         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
15066         when the resulting length is 0.
15067         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
15068
15069 2008-04-20  Bruno Haible  <bruno@clisp.org>
15070
15071         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
15072         works.
15073         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
15074
15075 2008-04-20  Bruno Haible  <bruno@clisp.org>
15076
15077         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
15078         * modules/tsearch-tests (configure.ac): Test for initstate function.
15079
15080 2008-04-20  Bruno Haible  <bruno@clisp.org>
15081
15082         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
15083         for nlink_t if missing.
15084         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
15085
15086 2008-04-19  Bruno Haible  <bruno@clisp.org>
15087
15088         Work around snprintf bug on Linux libc5.
15089         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
15090         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15091         gl_SNPRINTF_SIZE1.
15092         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15093         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
15094         that test failed.
15095         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
15096         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
15097         * modules/snprintf (Files): Add m4/printf.m4.
15098         * modules/vsnprintf (Files): Likewise.
15099         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
15100         * doc/posix-functions/vsnprintf.texi: Likewise.
15101
15102 2008-04-19  Bruno Haible  <bruno@clisp.org>
15103
15104         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
15105         from 0.0058 to less than 10^-7.
15106
15107 2008-04-19  Bruno Haible  <bruno@clisp.org>
15108
15109         Fix rounding when a precision is given.
15110         * lib/vasnprintf.c (is_borderline): New function.
15111         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
15112         9...9x.
15113         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
15114         %e, %g.
15115         * tests/test-vasprintf-posix.c (test_function): Likewise.
15116         * tests/test-snprintf-posix.h (test_function): Likewise.
15117         * tests/test-sprintf-posix.h (test_function): Likewise.
15118         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
15119         * tests/test-printf-posix.h (test_function): Likewise.
15120         * tests/test-printf-posix.output: Update.
15121         Reported by John Darrington <john@darrington.wattle.id.au> via
15122         Ben Pfaff <blp@cs.stanford.edu>.
15123
15124 2008-04-18  Simon Josefsson  <simon@josefsson.org>
15125
15126         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
15127         Suggested by Bruno Haible <bruno@clisp.org>.
15128
15129 2008-04-17  Bruno Haible  <bruno@clisp.org>
15130
15131         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
15132         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
15133         implementation.
15134         Patch by Bruce Merry <bmerry@gmail.com>.
15135
15136 2008-04-17  Simon Josefsson  <simon@josefsson.org>
15137
15138         * doc/posix-functions/strftime.texi (strftime): Mention that %e
15139         doesn't work under Windows.
15140
15141 2008-04-16  Bruno Haible  <bruno@clisp.org>
15142
15143         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
15144         New macros.
15145         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
15146         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
15147         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
15148         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
15149         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
15150         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
15151         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
15152         macros.
15153         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
15154         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
15155         Northern Sotho, Uighur.
15156
15157 2008-04-16  Bruno Haible  <bruno@clisp.org>
15158
15159         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
15160         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
15161         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
15162         Reported by Daniel Bergström <daniel@octocode.com>.
15163
15164 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
15165             Bruno Haible  <bruno@clisp.org>
15166
15167         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
15168         function.
15169         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
15170         New functions, mostly extracted from gl_locale_name_default.
15171         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
15172
15173 2008-04-16  Eric Blake  <ebb9@byu.net>
15174
15175         Adjust strtod detection to catch glibc 2.7 bug.
15176         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
15177         Reported by John Gatewood Ham.
15178
15179 2008-04-16  Bruno Haible  <bruno@clisp.org>
15180
15181         Add tentative support for Linux libc5.
15182         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
15183         * lib/fpurge.c (fpurge): Likewise.
15184         * lib/freadable.c (freadable): Likewise.
15185         * lib/freadahead.c (freadahead): Likewise.
15186         * lib/freading.c (freading): Likewise.
15187         * lib/freadptr.c (freadptr): Likewise.
15188         * lib/freadseek.c (freadptrinc): Likewise.
15189         * lib/fseeko.c (rpl_fseeko): Likewise.
15190         * lib/fseterr.c (fseterr): Likewise.
15191         * lib/fwritable.c (fwritable): Likewise.
15192         * lib/fwriting.c (fwriting): Likewise.
15193         Reported by Alain Guibert <alguibert+bts@free.fr>.
15194
15195 2008-04-15  Bruno Haible  <bruno@clisp.org>
15196
15197         * modules/mathl (configure.ac): Define module indicator.
15198
15199 2008-04-15  Bruno Haible  <bruno@clisp.org>
15200
15201         * lib/logl.c (logl): Remove unused variables.
15202
15203 2008-04-15  Bruno Haible  <bruno@clisp.org>
15204
15205         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
15206         fails.
15207
15208 2008-04-15  Bruno Haible  <bruno@clisp.org>
15209
15210         * lib/trim.c (trim2): Fix argument of isspace() macro.
15211
15212 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
15213
15214         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
15215         to 0.
15216         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
15217
15218 2008-04-14  Bruno Haible  <bruno@clisp.org>
15219
15220         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
15221         AC_LANG_PROGRAM argument.
15222         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
15223         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
15224         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
15225         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
15226         * m4/math_h.m4 (gl_MATH_H): Likewise.
15227         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
15228         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
15229         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
15230         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
15231         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
15232         * m4/regex.m4 (gl_REGEX): Likewise.
15233         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
15234         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
15235         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15236         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
15237         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
15238         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
15239         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15240         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
15241
15242 2008-04-14  Jim Meyering  <meyering@redhat.com>
15243
15244         test-strtod: fix typos: s/abs/fabs/
15245         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
15246
15247 2008-04-13  Bruno Haible  <bruno@clisp.org>
15248
15249         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
15250         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
15251         module is also used and while not building the reloc-wrapper.
15252
15253 2008-04-13  Bruno Haible  <bruno@clisp.org>
15254
15255         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
15256
15257 2008-04-13  Bruno Haible  <bruno@clisp.org>
15258
15259         Fix AIX compilation failure introduced on 2008-04-02.
15260         * tests/test-frexp.c (exp): Undefine before redefining.
15261         * tests/test-frexpl.c (exp): Likewise.
15262
15263 2008-04-13  Bruno Haible  <bruno@clisp.org>
15264
15265         Work around a HP-UX stdio bug.
15266         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
15267         * tests/test-ftello.c (main): Likewise.
15268         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
15269         * doc/posix-functions/ftello.texi: Likewise.
15270
15271 2008-04-13  Bruno Haible  <bruno@clisp.org>
15272
15273         Make test-signbit pass on HP-UX/hppa.
15274         * tests/test-signbit.c (minus_zerol): New variable.
15275         (test_signbitl): Use it.
15276
15277 2008-04-13  Bruno Haible  <bruno@clisp.org>
15278
15279         Make truncl work on OSF/1 4.0.
15280         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
15281         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
15282         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
15283         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
15284         HAVE_DECL_TRUNCL.
15285         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
15286         HAVE_DECL_TRUNCL.
15287         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
15288
15289 2008-04-13  Bruno Haible  <bruno@clisp.org>
15290
15291         * lib/unictype.h: Remove trailing comma from enumeration definitions.
15292
15293 2008-04-13  Bruno Haible  <bruno@clisp.org>
15294
15295         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
15296         expression, so as to avoid HP-UX 11 cc compiler bug.
15297
15298 2008-04-13  Bruno Haible  <bruno@clisp.org>
15299
15300         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
15301
15302 2008-04-13  Bruno Haible  <bruno@clisp.org>
15303
15304         * lib/git-merge-changelog.c: Remove empty declaration outside of
15305         functions.
15306
15307 2008-04-13  Bruno Haible  <bruno@clisp.org>
15308
15309         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
15310
15311 2008-04-13  Bruno Haible  <bruno@clisp.org>
15312
15313         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
15314         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
15315         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
15316         also if it exists but lacks definitions of the SHUT_* macros.
15317         * modules/sys_socket (Description): Update.
15318         Reported by Elbert Pol <e.pol@chello.nl>.
15319
15320 2008-04-13  Bruno Haible  <bruno@clisp.org>
15321
15322         * lib/localcharset.c (OS2): Don't redefine if already defined.
15323         Reported by Elbert Pol <e.pol@chello.nl>.
15324
15325 2008-04-13  Bruno Haible  <bruno@clisp.org>
15326
15327         * lib/binary-io.h [__EMX__]: Include <io.h>.
15328         Reported by Elbert Pol <e.pol@chello.nl>.
15329
15330 2008-04-12  Bruno Haible  <bruno@clisp.org>
15331
15332         * lib/fpucw.h: Enable the definitions also for x86_64.
15333         Needed for NetBSD/x86_64.
15334         Reported by Thomas Klausner <tk@giga.or.at>.
15335
15336 2008-04-12  Bruno Haible  <bruno@clisp.org>
15337
15338         * tests/test-strtod.c: Include isnand.h.
15339         (main): Use isnand instead of isnan.
15340         Reported by Jim Meyering.
15341
15342 2008-04-12  Bruno Haible  <bruno@clisp.org>
15343
15344         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
15345         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
15346
15347 2008-04-12  Jim Meyering  <meyering@redhat.com>
15348
15349         * m4/math_h.m4 (gl_MATH_H): Fix typos.
15350
15351 2008-04-12  Bruno Haible  <bruno@clisp.org>
15352
15353         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
15354         Reported by Elbert Pol <e.pol@chello.nl>.
15355
15356 2008-04-12  Eric Blake  <ebb9@byu.net>
15357
15358         Work around Solaris 10 math.h bug.
15359         * m4/math_h.m4 (gl_MATH_H): Check for bug.
15360         (gl_MATH_H_DEFAULTS): Set up default.
15361         * modules/math (Makefile.am): Replace new indicators.
15362         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
15363         * tests/test-math.c (main): Test this.
15364         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
15365         * doc/posix-headers/math.texi (math.h): Mention bug.
15366         Reported by Nelson H. F. Beebe and Jim Meyering.
15367
15368 2008-04-11  Bruno Haible  <bruno@clisp.org>
15369
15370         Adapt to future versions of Apple GCC.
15371         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
15372         Reported by Peter O'Gorman <peter@pogma.com>.
15373
15374 2008-04-11  Bruno Haible  <bruno@clisp.org>
15375
15376         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
15377
15378 2008-04-11  Bruno Haible  <bruno@clisp.org>
15379
15380         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
15381
15382         * modules/getaddrinfo-tests (Makefile.am): Define
15383         test_getaddrinfo_LDADD.
15384
15385 2008-04-11  Bruno Haible  <bruno@clisp.org>
15386
15387         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
15388         (init): Fix syntax error.
15389         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
15390         is declared.
15391
15392 2008-04-11  Bruno Haible  <bruno@clisp.org>
15393
15394         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
15395         * modules/glob (Depends-on): Add stdbool.
15396
15397 2008-04-11  Bruno Haible  <bruno@clisp.org>
15398
15399         * lib/trim.c: Include <string.h>.
15400
15401 2008-04-11  Eric Blake  <ebb9@byu.net>
15402
15403         Avoid compile failure on OS/2.
15404         * lib/regex_internal.h (internal_function): Disable optimization
15405         on OS/2 (__EMX__), where it caused compiler error.
15406         Reported by Elbert Pol.
15407
15408 2008-04-11  Bruno Haible  <bruno@clisp.org>
15409
15410         Flush the standard error stream before aborting. Needed on mingw.
15411         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
15412         * tests/test-array_list.c (ASSERT): Likewise.
15413         * tests/test-array_oset.c (ASSERT): Likewise.
15414         * tests/test-avltree_list.c (ASSERT): Likewise.
15415         * tests/test-avltree_oset.c (ASSERT): Likewise.
15416         * tests/test-avltreehash_list.c (ASSERT): Likewise.
15417         * tests/test-binary-io.c (ASSERT): Likewise.
15418         * tests/test-byteswap.c (ASSERT): Likewise.
15419         * tests/test-c-ctype.c (ASSERT): Likewise.
15420         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
15421         * tests/test-c-strcasestr.c (ASSERT): Likewise.
15422         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
15423         * tests/test-c-strstr.c (ASSERT): Likewise.
15424         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
15425         * tests/test-canonicalize.c (ASSERT): Likewise.
15426         * tests/test-carray_list.c (ASSERT): Likewise.
15427         * tests/test-ceilf1.c (ASSERT): Likewise.
15428         * tests/test-ceilf2.c (ASSERT): Likewise.
15429         * tests/test-ceill.c (ASSERT): Likewise.
15430         * tests/test-count-one-bits.c (ASSERT): Likewise.
15431         * tests/test-fbufmode.c (ASSERT): Likewise.
15432         * tests/test-fflush2.c (ASSERT): Likewise.
15433         * tests/test-floorf1.c (ASSERT): Likewise.
15434         * tests/test-floorf2.c (ASSERT): Likewise.
15435         * tests/test-floorl.c (ASSERT): Likewise.
15436         * tests/test-fopen.c (ASSERT): Likewise.
15437         * tests/test-fpending.c (ASSERT): Likewise.
15438         * tests/test-fprintf-posix.c (ASSERT): Likewise.
15439         * tests/test-fpurge.c (ASSERT): Likewise.
15440         * tests/test-freadable.c (ASSERT): Likewise.
15441         * tests/test-freadahead.c (ASSERT): Likewise.
15442         * tests/test-freading.c (ASSERT): Likewise.
15443         * tests/test-freadptr.c (ASSERT): Likewise.
15444         * tests/test-freadptr2.c (ASSERT): Likewise.
15445         * tests/test-freadseek.c (ASSERT): Likewise.
15446         * tests/test-freopen.c (ASSERT): Likewise.
15447         * tests/test-frexp.c (ASSERT): Likewise.
15448         * tests/test-frexpl.c (ASSERT): Likewise.
15449         * tests/test-fseek.c (ASSERT): Likewise.
15450         * tests/test-fseeko.c (ASSERT): Likewise.
15451         * tests/test-fstrcmp.c (ASSERT): Likewise.
15452         * tests/test-ftell.c (ASSERT): Likewise.
15453         * tests/test-ftello.c (ASSERT): Likewise.
15454         * tests/test-func.c (ASSERT): Likewise.
15455         * tests/test-fwritable.c (ASSERT): Likewise.
15456         * tests/test-fwriting.c (ASSERT): Likewise.
15457         * tests/test-getdelim.c (ASSERT): Likewise.
15458         * tests/test-getline.c (ASSERT): Likewise.
15459         * tests/test-i-ring.c (ASSERT): Likewise.
15460         * tests/test-iconv-utf.c (ASSERT): Likewise.
15461         * tests/test-iconv.c (ASSERT): Likewise.
15462         * tests/test-isfinite.c (ASSERT): Likewise.
15463         * tests/test-isnand.c (ASSERT): Likewise.
15464         * tests/test-isnanf.c (ASSERT): Likewise.
15465         * tests/test-isnanl.h (ASSERT): Likewise.
15466         * tests/test-ldexpl.c (ASSERT): Likewise.
15467         * tests/test-linked_list.c (ASSERT): Likewise.
15468         * tests/test-linkedhash_list.c (ASSERT): Likewise.
15469         * tests/test-localename.c (ASSERT): Likewise.
15470         * tests/test-lseek.c (ASSERT): Likewise.
15471         * tests/test-mbscasecmp.c (ASSERT): Likewise.
15472         * tests/test-mbscasestr1.c (ASSERT): Likewise.
15473         * tests/test-mbscasestr2.c (ASSERT): Likewise.
15474         * tests/test-mbscasestr3.c (ASSERT): Likewise.
15475         * tests/test-mbscasestr4.c (ASSERT): Likewise.
15476         * tests/test-mbschr.c (ASSERT): Likewise.
15477         * tests/test-mbscspn.c (ASSERT): Likewise.
15478         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
15479         * tests/test-mbspbrk.c (ASSERT): Likewise.
15480         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
15481         * tests/test-mbsrchr.c (ASSERT): Likewise.
15482         * tests/test-mbsspn.c (ASSERT): Likewise.
15483         * tests/test-mbsstr1.c (ASSERT): Likewise.
15484         * tests/test-mbsstr2.c (ASSERT): Likewise.
15485         * tests/test-mbsstr3.c (ASSERT): Likewise.
15486         * tests/test-memchr2.c (ASSERT): Likewise.
15487         * tests/test-memmem.c (ASSERT): Likewise.
15488         * tests/test-open.c (ASSERT): Likewise.
15489         * tests/test-printf-frexp.c (ASSERT): Likewise.
15490         * tests/test-printf-frexpl.c (ASSERT): Likewise.
15491         * tests/test-printf-posix.c (ASSERT): Likewise.
15492         * tests/test-quotearg.c (ASSERT): Likewise.
15493         * tests/test-rbtree_list.c (ASSERT): Likewise.
15494         * tests/test-rbtree_oset.c (ASSERT): Likewise.
15495         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
15496         * tests/test-round1.c (ASSERT): Likewise.
15497         * tests/test-roundf1.c (ASSERT): Likewise.
15498         * tests/test-roundl.c (ASSERT): Likewise.
15499         * tests/test-signbit.c (ASSERT): Likewise.
15500         * tests/test-sleep.c (ASSERT): Likewise.
15501         * tests/test-snprintf-posix.c (ASSERT): Likewise.
15502         * tests/test-snprintf.c (ASSERT): Likewise.
15503         * tests/test-sprintf-posix.c (ASSERT): Likewise.
15504         * tests/test-stat-time.c (ASSERT): Likewise.
15505         * tests/test-strcasestr.c (ASSERT): Likewise.
15506         * tests/test-strerror.c (ASSERT): Likewise.
15507         * tests/test-striconv.c (ASSERT): Likewise.
15508         * tests/test-striconveh.c (ASSERT): Likewise.
15509         * tests/test-striconveha.c (ASSERT): Likewise.
15510         * tests/test-strsignal.c (ASSERT): Likewise.
15511         * tests/test-strstr.c (ASSERT): Likewise.
15512         * tests/test-strtod.c (ASSERT): Likewise.
15513         * tests/test-trunc1.c (ASSERT): Likewise.
15514         * tests/test-trunc2.c (ASSERT): Likewise.
15515         * tests/test-truncf1.c (ASSERT): Likewise.
15516         * tests/test-truncf2.c (ASSERT): Likewise.
15517         * tests/test-truncl.c (ASSERT): Likewise.
15518         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
15519         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
15520         * tests/test-vasnprintf.c (ASSERT): Likewise.
15521         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
15522         * tests/test-vasprintf.c (ASSERT): Likewise.
15523         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
15524         * tests/test-vprintf-posix.c (ASSERT): Likewise.
15525         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
15526         * tests/test-vsnprintf.c (ASSERT): Likewise.
15527         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
15528         * tests/test-wcwidth.c (ASSERT): Likewise.
15529         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
15530         * tests/test-xprintf-posix.c (ASSERT): Likewise.
15531         * tests/test-xvasprintf.c (ASSERT): Likewise.
15532         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
15533         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
15534         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
15535         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
15536         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
15537         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
15538         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
15539         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
15540         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
15541         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
15542         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
15543         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
15544         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
15545         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
15546         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
15547         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
15548         * tests/unictype/test-block_list.c (ASSERT): Likewise.
15549         * tests/unictype/test-block_of.c (ASSERT): Likewise.
15550         * tests/unictype/test-block_test.c (ASSERT): Likewise.
15551         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
15552         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
15553         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
15554         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
15555         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
15556         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
15557         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
15558         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
15559         * tests/unictype/test-combining.c (ASSERT): Likewise.
15560         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
15561         * tests/unictype/test-digit.c (ASSERT): Likewise.
15562         * tests/unictype/test-mirror.c (ASSERT): Likewise.
15563         * tests/unictype/test-numeric.c (ASSERT): Likewise.
15564         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
15565         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
15566         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
15567         * tests/unictype/test-scripts.c (ASSERT): Likewise.
15568         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
15569         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
15570         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
15571         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
15572         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
15573         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
15574         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
15575         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
15576         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
15577         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
15578         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
15579         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
15580         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
15581         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
15582         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
15583         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
15584         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
15585         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
15586         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
15587         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
15588         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
15589         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
15590         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
15591         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
15592         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
15593         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
15594         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
15595         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
15596         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
15597         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
15598         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
15599         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
15600         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
15601         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
15602         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
15603         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
15604         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
15605         Reported by Eric Blake.
15606
15607 2008-04-11  Bruno Haible  <bruno@clisp.org>
15608
15609         * lib/wchar.in.h: Tweak comment.
15610
15611 2008-04-11  Bruno Haible  <bruno@clisp.org>
15612
15613         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
15614         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
15615         gl_COMMON.
15616         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
15617
15618 2008-04-11  Bruno Haible  <bruno@clisp.org>
15619
15620         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
15621
15622 2008-04-11  Simon Josefsson  <simon@josefsson.org>
15623
15624         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
15625         of attempting to use non-existing /dev/*random.  Based on patch
15626         from Adam Strzelecki <ono@java.pl> in
15627         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
15628
15629 2008-04-08  Bruno Haible  <bruno@clisp.org>
15630
15631         Add tentative support for emx+gcc.
15632         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
15633         * lib/fpurge.c (fpurge): Likewise.
15634         * lib/freadable.c (freadable): Likewise.
15635         * lib/freadahead.c (freadahead): Likewise.
15636         * lib/freading.c (freading): Likewise.
15637         * lib/freadptr.c (freadptr): Likewise.
15638         * lib/freadseek.c (freadptrinc): Likewise.
15639         * lib/fseeko.c (rpl_fseeko): Likewise.
15640         * lib/fseterr.c (fseterr): Likewise.
15641         * lib/fwritable.c (fwritable): Likewise.
15642         * lib/fwriting.c (fwriting): Likewise.
15643         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
15644
15645 2008-04-09  Eric Blake  <ebb9@byu.net>
15646
15647         Avoid some autoconf warnings.
15648         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
15649         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
15650         * m4/afs.m4 (gl_AFS): Likewise.
15651         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
15652         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
15653         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
15654         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
15655         (gl_INTEGER_TYPE_SUFFIX): Likewise.
15656         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
15657         (AC_CHECK_DECLS_ONCE): Likewise.
15658         Rename file...
15659         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
15660         gnulib-tool requires autoconf 2.59 or better.
15661         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
15662
15663 2008-04-08  Eric Blake  <ebb9@byu.net>
15664
15665         Use 'git describe --match' if present (added in git 1.5.5).
15666         * build-aux/git-version-gen: Limit result to tags that match 'v*'
15667         if possible.
15668
15669 2008-04-08  Bruno Haible  <bruno@clisp.org>
15670
15671         Add tentative support for OpenServer.
15672         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
15673         _ptr, _cnt.
15674         * lib/fpurge.c (fpurge): Likewise.
15675         * lib/freadable.c (freadable): Likewise.
15676         * lib/freadahead.c (freadahead): Likewise.
15677         * lib/freading.c (freading): Likewise.
15678         * lib/freadptr.c (freadptr): Likewise.
15679         * lib/freadseek.c (freadptrinc): Likewise.
15680         * lib/fseeko.c (rpl_fseeko): Likewise.
15681         * lib/fseterr.c (fseterr): Likewise.
15682         * lib/fwritable.c (fwritable): Likewise.
15683         * lib/fwriting.c (fwriting): Likewise.
15684         Reported by Roger Cornelius <rac@tenzing.org> and
15685         Brian K. White <brian@aljex.com>.
15686
15687 2008-04-06  Jim Meyering  <meyering@redhat.com>
15688
15689         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
15690
15691 2008-04-06  Bruno Haible  <bruno@clisp.org>
15692
15693         Avoid possible error with non-ASCII bytes in UTF-8 locales.
15694         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
15695         * tests/test-printf-posix.sh: Likewise.
15696         * tests/test-vfprintf-posix.sh: Likewise.
15697         * tests/test-vprintf-posix.sh: Likewise.
15698         * tests/test-xprintf-posix.sh: Likewise.
15699
15700 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15701
15702         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
15703         hide error from 'ls', needed on OS/2.
15704         Report by Elbert Pol <elbert.pol@gmail.com>.
15705
15706 2008-04-04  Eric Blake  <ebb9@byu.net>
15707
15708         Make test-fseeko.c failures meaningful.
15709         * tests/test-fseeko.c: Print line number on failure.
15710         * tests/test-fseek.c: Likewise.
15711         Reported by Nelson H. F. Beebe.
15712
15713         Improve strtod bug detection check.
15714         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
15715         required for Solaris 10.
15716         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
15717
15718 2008-04-04  Bruno Haible  <bruno@clisp.org>
15719
15720         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
15721         by m4/setenv.m4.
15722
15723 2008-04-03  Eric Blake  <ebb9@byu.net>
15724
15725         Ensure sane .version contents.
15726         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
15727         version string.
15728         * build-aux/git-version-gen: Improve documentation.
15729
15730         Make GNU make output nicer.
15731         * top/GNUmakefile [!_have-Makefile]: Add dependency on
15732         MAKECMDGOALS to enforce message for all command line targets.  Set
15733         srcdir for use in maint.mk.
15734
15735         Another maintainer tweak.
15736         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
15737         a target that regenerates version.
15738
15739 2008-04-03  Jim Meyering  <meyering@redhat.com>
15740
15741         vc-list-files: don't cause coreutils "make po-check" failure
15742         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
15743
15744 2008-04-03  Eric Blake  <ebb9@byu.net>
15745
15746         Allow VPATH usage of vc-list-files.
15747         * build-aux/vc-list-files (scriptversion): Add timestamp.
15748         (options): Add --help, --version, -C.
15749         (CVS): Support installed cvsu.
15750
15751 2008-04-02  Bruno Haible  <bruno@clisp.org>
15752
15753         Avoid some "statement with no effect" warnings from gcc.
15754         * tests/test-wctype.c (main): Explicitly ignore unused values.
15755         Reported by Jim Meyering.
15756
15757 2008-04-02  Jim Meyering  <meyering@redhat.com>
15758
15759         Avoid some warnings from "gcc -Wshadow".
15760         * tests/test-frexp.c (exp): Define to a different identifier.
15761         * tests/test-frexpl.c (exp): Likewise.
15762
15763 2008-04-03  Jim Meyering  <meyering@redhat.com>
15764
15765         bootstrap: remove dangling *.[ch] symlinks from lib
15766         * build-aux/bootstrap [dangling symlink removal]: Move find's
15767         -depth option to precede all others, to avoid a warning.
15768         Remove *.[ch] files too, and from "$source_base" (usually lib/).
15769
15770 2008-04-02  Bruno Haible  <bruno@clisp.org>
15771
15772         Avoid some warnings from "gcc -Wshadow".
15773         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
15774         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
15775         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
15776         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
15777         Reported by Jim Meyering.
15778
15779 2008-04-01  Bruno Haible  <bruno@clisp.org>
15780
15781         Fix test to work on IRIX 6.5 with cc.
15782         * tests/test-math.c (numeric_equal): New function.
15783         (main): Use it.
15784
15785 2008-04-01  Bruno Haible  <bruno@clisp.org>
15786
15787         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
15788
15789 2008-04-01  Bruno Haible  <bruno@clisp.org>
15790
15791         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
15792         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
15793         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
15794         (Depends-on): Remove math.
15795
15796         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
15797         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
15798         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
15799         (Depends-on): Remove math.
15800
15801         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
15802         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
15803         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
15804         (Depends-on): Remove math.
15805         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
15806         (Depends-on): Remove math.
15807
15808         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
15809         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
15810         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
15811         (Depends-on): Remove math.
15812         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
15813         (Depends-on): Remove math.
15814
15815         * tests/test-round1.c: Include nan.h.
15816         (main): Use NaNd instead of NAN.
15817         * modules/round-tests (Files): Add tests/nan.h.
15818
15819         * tests/test-trunc1.c: Include nan.h.
15820         (main): Use NaNd instead of NAN.
15821         * modules/trunc-tests (Files): Add tests/nan.h.
15822
15823         * tests/test-roundf1.c: Include nan.h.
15824         (main): Use NaNf instead of NAN.
15825         * modules/roundf-tests (Files): Add tests/nan.h.
15826
15827         * tests/test-truncf1.c: Include nan.h.
15828         (main): Use NaNf instead of NAN.
15829         * modules/truncf-tests (Files): Add tests/nan.h.
15830
15831         * tests/test-ceilf1.c: Include nan.h.
15832         (main): Use NaNf instead of NAN.
15833         * modules/ceilf-tests (Files): Add tests/nan.h.
15834
15835         * tests/test-floorf1.c: Include nan.h.
15836         (main): Use NaNf instead of NAN.
15837         * modules/floorf-tests (Files): Add tests/nan.h.
15838
15839         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
15840         (main): Use NaNf instead of NAN.
15841         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
15842
15843         * tests/test-isnand.c: Include nan.h instead of <math.h>.
15844         (main): Use NaNd instead of NAN.
15845         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
15846
15847         * tests/test-frexp.c: Include nan.h.
15848         (main): Use NaNd instead of NAN.
15849         * modules/frexp-tests (Files): Add tests/nan.h.
15850
15851         * lib/isnan.c: Don't include <math.h>.
15852         (FUNC): Don't use NAN macro.
15853         * modules/isnand-nolibm (Depends-on): Remove math.
15854         * modules/isnanf-nolibm (Depends-on): Remove math.
15855         * modules/isnanl (Depends-on): Remove math.
15856         * modules/isnanl-nolibm (Depends-on): Remove math.
15857
15858         * tests/nan.h: New file.
15859
15860 2008-04-01  Eric Blake  <ebb9@byu.net>
15861
15862         Fix typos.
15863         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
15864         values to be the right type.
15865
15866         For now, cater to gnulib strtod inaccuracies.
15867         * tests/test-strtod.c (main): Allow 1-ulp error on expected
15868         fractional results.  While not as nice from a QoI perspective, it
15869         is a quicker patch than correctly implementing decimal to binary
15870         rounding.
15871
15872 2008-03-31  Eric Blake  <ebb9@byu.net>
15873
15874         Guarantee a definition of NAN.
15875         * lib/math.in.h (NAN): Define if missing.
15876         * tests/test-math.c (main): Test it.
15877         * doc/posix-headers/math.texi (math.h): Document this.
15878         * lib/isnan.c (rpl_isnand): Use it.
15879         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
15880         * tests/test-floorf1.c (NaN): Likewise.
15881         * tests/test-frexp.c (NaN): Likewise.
15882         * tests/test-isnand.c (NaN): Likewise.
15883         * tests/test-isnanf.c (NaN): Likewise.
15884         * tests/test-round1.c (NaN): Likewise.
15885         * tests/test-roundf1.c (NaN): Likewise.
15886         * tests/test-snprintf-posix.h (NaN): Likewise.
15887         * tests/test-sprintf-posix.h (NaN): Likewise.
15888         * tests/test-trunc1.c (NaN): Likewise.
15889         * tests/test-truncf1.c (NaN): Likewise.
15890         * tests/test-vasnprintf-posix.c (NaN): Likewise.
15891         * tests/test-vasprintf-posix.c (NaN): Likewise.
15892         * modules/isnand-nolibm (Depends-on): Add math.
15893         * modules/isnanf-nolibm (Depends-on): Likewise.
15894         * modules/isnanl (Depends-on): Likewise.
15895         * modules/isnanl-nolibm (Depends-on): Likewise.
15896         * modules/snprintf-posix-tests (Depends-on): Likewise.
15897         * modules/sprintf-posix-tests (Depends-on): Likewise.
15898         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
15899         * modules/vsprintf-posix-tests (Depends-on): Likewise.
15900         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
15901         * modules/vasprintf-posix-tests (Depends-on): Likewise.
15902
15903 2008-03-31  Bruno Haible  <bruno@clisp.org>
15904
15905         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
15906         * doc/posix-functions/strtod.texi: Likewise.
15907
15908 2008-03-31  Bruno Haible  <bruno@clisp.org>
15909
15910         * tests/test-strtod.c (main): Don't use C99 syntax.
15911
15912 2008-03-31  Bruno Haible  <bruno@clisp.org>
15913
15914         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
15915         Reported by Eric Blake.
15916
15917 2008-03-31  Jim Meyering  <meyering@redhat.com>
15918
15919         Don't compare actual signbit return values.
15920         * tests/test-strtod.c (main): Rather, compare only their
15921         zero/non-zero nature.
15922
15923 2008-03-31  Eric Blake  <ebb9@byu.net>
15924
15925         More strtod documentation.
15926         * doc/posix-functions/strtod.texi (strtod): Interpret more test
15927         failures as distinct bugs.
15928
15929 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
15930
15931         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
15932         Problem reported by Erik Benada in
15933         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
15934
15935 2008-03-30  Bruno Haible  <bruno@clisp.org>
15936
15937         * tests/test-strtod.c: Add comments about which assertion fails on which
15938         platform.
15939         * doc/posix-functions/strtod.texi: Add info about many more platforms.
15940
15941 2008-03-30  Eric Blake  <ebb9@byu.net>
15942
15943         Test signbit behavior on zeros.
15944         * tests/test-signbit.c (test_signbitf): Add tests for zero.
15945         (test_signbitd, test_signbitl): Likewise.
15946
15947         More strtod touchups.
15948         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
15949         sign of negative underflow, for now.  Use .5, not .1.
15950         * doc/posix-functions/strtod.texi (strtod): Mention these
15951         limitations.
15952         Reported by Jim Meyering.
15953
15954 2008-03-30  Bruno Haible  <bruno@clisp.org>
15955
15956         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
15957         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
15958
15959 2008-03-30  Bruno Haible  <bruno@clisp.org>
15960
15961         Avoid failure when attempting to return empty iconv results on some
15962         platforms.
15963         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
15964         allocation, don't report ENOMEM when the resulting string is empty.
15965
15966 2008-03-30  Bruno Haible  <bruno@clisp.org>
15967
15968         Fix buffer overrun.
15969         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
15970         Don't consider the width for tmp_length. Check count against tmp_length
15971         before doing the padding. Ensure enough allocation during padding.
15972
15973 2008-03-30  Eric Blake  <ebb9@byu.net>
15974
15975         strtod touchups.
15976         * lib/strtod.c (strtod): Avoid compiler warnings.
15977         Reported by Jim Meyering.
15978
15979 2008-03-30  Bruno Haible  <bruno@clisp.org>
15980
15981         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
15982         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
15983         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
15984         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
15985         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
15986         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
15987         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
15988         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
15989
15990         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
15991         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
15992         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
15993         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
15994         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
15995         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
15996         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
15997         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
15998
15999         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
16000         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
16001         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
16002         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
16003         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
16004         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
16005         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
16006         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
16007
16008         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
16009         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
16010
16011         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
16012         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
16013
16014         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
16015         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
16016
16017         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
16018         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
16019         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
16020
16021         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
16022         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
16023         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
16024
16025         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
16026         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
16027         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
16028
16029         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
16030         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
16031         * modules/vasprintf (Depends-on): Add EOVERFLOW.
16032
16033         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
16034         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
16035         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
16036         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
16037         (Depends-on): Add EOVERFLOW.
16038         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
16039         (Depends-on): Add EOVERFLOW.
16040         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
16041         (Depends-on): Add EOVERFLOW.
16042         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
16043         (Depends-on): Add EOVERFLOW.
16044         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
16045         (Depends-on): Add EOVERFLOW.
16046         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
16047         (Depends-on): Add EOVERFLOW.
16048         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
16049         (Depends-on): Add EOVERFLOW.
16050         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
16051         (Depends-on): Add EOVERFLOW.
16052
16053         * lib/sprintf.c (EOVERFLOW): Remove fallback.
16054         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
16055         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
16056
16057         * lib/snprintf.c (EOVERFLOW): Remove fallback.
16058         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
16059         * modules/snprintf (Depends-on): Add EOVERFLOW.
16060
16061         * lib/poll.c (EOVERFLOW): Remove fallback.
16062         * modules/poll (Depends-on): Add EOVERFLOW.
16063
16064         * lib/getugroups.c (EOVERFLOW): Remove fallback.
16065         * modules/getugroups (Depends-on): Add EOVERFLOW.
16066
16067         * lib/getdelim.c (EOVERFLOW): Remove fallback.
16068         * modules/getdelim (Depends-on): Add EOVERFLOW.
16069
16070         * lib/ftell.c (EOVERFLOW): Remove fallback.
16071         * modules/ftell (Depends-on): Add EOVERFLOW.
16072
16073         * lib/fprintf.c (EOVERFLOW): Remove fallback.
16074         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
16075         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
16076
16077         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
16078
16079         * modules/EOVERFLOW-tests: New file.
16080         * tests/test-EOVERFLOW.c: New file.
16081
16082         * modules/EOVERFLOW: New file.
16083         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
16084
16085 2008-03-30  Bruno Haible  <bruno@clisp.org>
16086
16087         Fix bug introduced on 2007-06-10.
16088         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
16089         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
16090
16091 2008-03-30  Bruno Haible  <bruno@clisp.org>
16092
16093         Improve freadseek's efficiency after ungetc.
16094         * lib/freadseek.c: Include freadahead.h.
16095         (freadptrinc): New function, extracted from freadseek.
16096         (freadseek): Use it in a loop. Use freadahead to determine the number
16097         of loop iterations.
16098         * modules/freadseek (Depends-on): Add freadahead.
16099         (configure.ac): Require AC_C_INLINE.
16100
16101 2008-03-30  Bruno Haible  <bruno@clisp.org>
16102
16103         * lib/freadseek.c (freadseek): Don't ignore the return value of
16104         freadptr.
16105
16106 2008-03-29  Eric Blake  <ebb9@byu.net>
16107
16108         Add hex float support.
16109         * modules/strtod (Depends-on): Add c-ctype.
16110         (Link): Mention POW_LIB.
16111         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
16112         whitespace between 'e' and exponent.
16113         * tests/test-strtod.c (main): Enable hex float tests.
16114         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
16115         now provides.
16116
16117         Document various strtod bugs, with some fixes.
16118         * doc/posix-functions/strtod.texi (strtod): Document bugs with
16119         "-0x", "inf", "nan", and hex constants.
16120         * doc/posix-functions/atof.texi (atof): Likewise.
16121         * modules/stdlib (Makefile.am): Support strtod.
16122         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
16123         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
16124         detect additional strtod bugs.
16125         * lib/stdlib.in.h (rpl_strtod): Add declarations.
16126         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
16127         bool where appropriate.  Parse 'inf' and 'nan'.
16128         * tests/test-strtod.c: New file.
16129         * modules/strtod (Depends-on): Add stdbool, stdlib.
16130         (configure.ac): Turn on module indicator.
16131         * modules/strtod-tests: New module.
16132
16133 2008-03-29  Eric Blake  <ebb9@byu.net>
16134
16135         Fix ftell on mingw.
16136         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
16137         * modules/ftell-tests (Depends-on): Add binary-io.
16138         * modules/ftello-tests (Depends-on): Likewise.
16139         * tests/test-ftell.c (main): Enhance test to cover behavior after
16140         ungetc.  Enforce binary mode.
16141         * tests/test-ftello.c (main): Likewise.
16142
16143         Pass test-freadseek on cygwin.
16144         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
16145         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
16146         ungetc buffer.
16147
16148         * tests/test-fflush2.c (main): Fix typo.
16149
16150 2008-03-29  Bruno Haible  <bruno@clisp.org>
16151
16152         * tests/test-fflush2.c (main): Temporarily disable the contents of
16153         this test.
16154         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
16155         Reported by Eric Blake.
16156
16157 2008-03-28  Simon Josefsson  <simon@josefsson.org>
16158
16159         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
16160         (GC_SHA224_DIGEST_SIZE): Add.
16161
16162         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
16163         (gc_hash_digest_length): Likewise.
16164         (gc_hash_buffer): Likewise.
16165
16166 2008-03-25  Bruno Haible  <bruno@clisp.org>
16167
16168         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
16169         detail which gettext release to use.
16170         Reported by Simon Josefsson.
16171
16172 2008-03-26  Jim Meyering  <meyering@redhat.com>
16173
16174         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
16175         * modules/gnumakefile (clean-GNUmakefile): Also, use
16176         test ... && ... || : syntax rather than if-then ... fi.
16177
16178         gnumakefile: Don't double-quote-expand $(VPATH) value.
16179         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
16180
16181 2008-03-24  Eric Blake  <ebb9@byu.net>
16182
16183         Alter GNUmakefile to install into top directory.
16184         * modules/maintainer-makefile: Split, and add dependency...
16185         * modules/gnumakefile: to this new module.
16186         * build-aux/GNUmakefile: Move...
16187         * top/GNUmakefile: ...here.
16188         * build-aux/maint.mk: Move...
16189         * top/maint.mk: ...here.
16190         * MODULES.html.sh (Support for maintaining...): Document new
16191         module.
16192
16193 2008-03-23  Bruno Haible  <bruno@clisp.org>
16194
16195         * gnulib-tool: New options --vc-files, --no-vc-files.
16196         (func_usage): Document them.
16197         (vc_files): New variable.
16198         (func_import): Consider vc_files.
16199         (func_create_testdir): Set vc_files to empty.
16200         Suggested by Jim Meyering and Karl Berry.
16201
16202 2008-03-23  Bruno Haible  <bruno@clisp.org>
16203
16204         Fix regex compilation error on HP-UX 11.
16205         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
16206         * modules/regex (Files): Add m4/mbstate_t.m4.
16207         Reported by Ton Voon <ton.voon@altinity.com>.
16208
16209 2008-03-23  Bruno Haible  <bruno@clisp.org>
16210
16211         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
16212
16213 2008-03-23  Eric Blake  <ebb9@byu.net>
16214             Bruno Haible  <bruno@clisp.org>
16215
16216         Install files from top/ in the destination directory.
16217         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
16218         augmentation also for the files from top/.
16219         (func_import, func_create_testdir): Rewrite file names:
16220         top/filename -> filename.
16221
16222 2008-03-23  Bruno Haible  <bruno@clisp.org>
16223
16224         Tweak "gnulib --version" output.
16225         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
16226
16227 2008-03-23  Bruno Haible  <bruno@clisp.org>
16228
16229         Tweak "gnulib --version" output.
16230         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
16231         rather than contents of ChangeLog, when possible.
16232
16233 2008-03-21  Eric Blake  <ebb9@byu.net>
16234
16235         More --version tweaks.
16236         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
16237         date of last ChangeLog entry.
16238
16239 2008-03-21  Jim Meyering  <meyering@redhat.com>
16240
16241         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
16242
16243 2008-03-20  Eric Blake  <ebb9@byu.net>
16244
16245         VPATH fix.
16246         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
16247
16248 2008-03-20  Simon Josefsson  <simon@josefsson.org>
16249
16250         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
16251         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
16252
16253 2008-03-20  Eric Blake  <ebb9@byu.net>
16254
16255         Sync GNUmakefile with coreutils.
16256         * build-aux/GNUmakefile (have-Makefile): Rename...
16257         (_have-Makefile): ...to this, for namespace consideration.
16258         (GNUmakefile.cfg): Include, if present.
16259         (_autoreconf): Define a default.
16260         (_is-dist-target): New rule for rebuilds to pick up intra-release
16261         version.
16262         (maint-cfg.mk): Rename...
16263         (cfg.mk): ...to this.
16264
16265 2008-03-18  Jim Meyering  <meyering@redhat.com>
16266
16267         New script and module: mktempd
16268         * MODULES.html.sh (maint+release support): Add mktempd.
16269         * build-aux/mktempd: New file.
16270         * modules/mktempd: New file.
16271
16272 2008-03-15  Jim Meyering  <meyering@redhat.com>
16273
16274         Undo last change.
16275         * lib/sha1.c, lib/md5.c: 63 != ~63.
16276         Reported by Andreas Schwab.
16277
16278         sha1.c, md5.c: Hoist a redundant expression.
16279         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
16280         "ctx->buflen" only once, before calling *_process_block.
16281         * lib/md5.c (md5_process_bytes): Likewise.
16282
16283 2008-03-14  Eric Blake  <ebb9@byu.net>
16284
16285         Bump copyright year in files generated by gnulib-tool.
16286         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
16287         gnulib-tool, rather than hard-coding it.
16288
16289         Fix 'gnulib-tool --version' output to work with git.
16290         * gnulib-tool (func_gnulib_dir): New function, extracted from...
16291         (startup): ...here.
16292         (func_version): Use it to invoke git-version-gen, rather than
16293         relying on CVS keyword expansion.  Modernize wording.
16294         (cvsdatestamp, last_checkin_date, version): Kill unused
16295         variables.
16296
16297 2008-03-12  Jim Meyering  <meyering@redhat.com>
16298
16299         Recognize optional cast of the argument to free.
16300         * build-aux/useless-if-before-free: Update regexps.
16301
16302         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
16303
16304 2008-03-11  Bruno Haible  <bruno@clisp.org>
16305
16306         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
16307         by a single package.
16308         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
16309         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
16310         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
16311         Reported by Sam Steingold <sds@gnu.org>.
16312
16313 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
16314
16315         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
16316         repositories.
16317
16318 2008-03-11  Bruno Haible  <bruno@clisp.org>
16319
16320         Avoid conflicts between local macro definitions.
16321         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
16322         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
16323
16324 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
16325             Bruno Haible  <bruno@clisp.org>
16326
16327         Make va_copy work with some version of xlc on AIX 5.1.
16328         * lib/stdarg.in.h: New file.
16329         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
16330         On AIX, use a <stdarg.h> file substitute.
16331         * modules/stdarg (Files): Add lib/stdarg.in.h.
16332         (Depends-on): Add include_next.
16333         (Makefile.am): Build a stdarg.h substitute if requested.
16334         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
16335
16336 2008-03-10  Bruno Haible  <bruno@clisp.org>
16337
16338         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
16339         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
16340         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
16341
16342 2008-03-10  Bruno Haible  <bruno@clisp.org>
16343
16344         * modules/stdlib (Depends-on): Add include_next, remove
16345         absolute-header.
16346
16347 2008-03-09  Bruno Haible  <bruno@clisp.org>
16348
16349         * lib/freadahead.h (freadahead): Document more precisely.
16350         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
16351         the sum of both buffer sizes.
16352         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
16353         * NEWS: Document the change.
16354
16355 2008-03-09  Bruno Haible  <bruno@clisp.org>
16356
16357         Extend freadptr to return also the buffer size.
16358         * lib/freadptr.h (freadptr): Add sizep argument.
16359         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
16360         (freadptr): Add sizep argument. Determine buffer size like freadahead
16361         does.
16362         * tests/test-freadptr.c: Don't include freadahead.h.
16363         (main): Adapt for new calling convention of freadptr.
16364         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
16365         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
16366         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
16367         tests/test-freadptr2.sh.
16368         (Depends): Remove freadahead.
16369         (TESTS): Add test-freadptr2.sh.
16370         (check_PROGRAMS): Add test-freadptr2.
16371
16372 2008-03-09  Bruno Haible  <bruno@clisp.org>
16373
16374         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
16375         Report and solution by Simon Josefsson.
16376
16377 2008-03-06  Bruno Haible  <bruno@clisp.org>
16378
16379         Make fflush after ungetc work on BSD platforms.
16380         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
16381         * tests/test-fflush2.c: New file.
16382         * tests/test-fflush2.sh: New file.
16383         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
16384         tests/test-fflush2.c.
16385         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
16386         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
16387
16388 2008-03-06  Eric Blake  <ebb9@byu.net>
16389
16390         Likewise for ftello.
16391         * modules/ftello (Dependencies): Add extensions.
16392         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
16393
16394 2008-03-06  Bruno Haible  <bruno@clisp.org>
16395
16396         * modules/fseeko (Dependencies): Add extensions.
16397         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
16398         Needed on glibc systems.
16399
16400 2008-03-06  Bruno Haible  <bruno@clisp.org>
16401
16402         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
16403         email address.
16404         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
16405
16406 2008-03-06  Bruno Haible  <bruno@clisp.org>
16407
16408         * users.txt: Add libgnupdf.
16409
16410 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
16411
16412         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
16413         (Header File Substitutes, Function Substitutes,
16414         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
16415         (Build robot for gnulib): Fix typo.
16416
16417 2008-03-06  Bruno Haible  <bruno@clisp.org>
16418
16419         * doc/gnulib-tool.texi (VCS Issues): Small updates.
16420         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
16421
16422 2008-03-06  Bruno Haible  <bruno@clisp.org>
16423
16424         * doc/func.texi: New file, extracted from doc/gnulib.texi.
16425         * doc/gnulib.texi: Include it.
16426
16427 2008-03-06  Simon Josefsson  <simon@josefsson.org>
16428
16429         * modules/func (License): Change license to unlimited; there was
16430         no LGPL parts in the module anyway.
16431
16432 2008-03-06  Simon Josefsson  <simon@josefsson.org>
16433
16434         * modules/__func__: Renamed to modules/func.
16435         * modules/__func__-tests: Renamed to modules/func-tests.
16436         * tests/test-__func__.c: Renamed to tests/test-func.c.
16437         * m4/__func__.m4: Renamed to m4/func.m4.
16438         * doc/gnulib.texi (__func__): Section renamed to func.
16439         Suggested by Eric Blake <ebb9@byu.net>.
16440
16441 2008-03-06  Simon Josefsson  <simon@josefsson.org>
16442
16443         * doc/gnulib.texi (__func__): Use C99 terminology when talking
16444         about __func__.  Make example self-contained.  Suggested by Eric
16445         Blake <ebb9@byu.net>.
16446
16447         * tests/test-__func__.c (main): Avoid extraneous () around __func.
16448         Suggested by Eric Blake <ebb9@byu.net>.
16449
16450 2008-03-06  Simon Josefsson  <simon@josefsson.org>
16451
16452         * modules/__func__: New file.
16453         * modules/__func__-tests: New file.
16454         * tests/test-__func__.c: New file.
16455         * m4/__func__.m4: New file.
16456         * doc/gnulib.texi (__func__): Document __func__ module.
16457
16458 2008-03-05  Simon Josefsson  <simon@josefsson.org>
16459
16460         * modules/byteswap (License): Re-license as LGPLv2+.
16461
16462 2008-03-05  Simon Josefsson  <simon@josefsson.org>
16463
16464         * doc/Makefile: Add pdf target.
16465
16466 2008-03-05  Simon Josefsson  <simon@josefsson.org>
16467
16468         * modules/inline (License): Use 'unlimited', since there are only
16469         *.m4 files in this module.
16470
16471 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
16472             Bruno Haible  <bruno@clisp.org>
16473
16474         Add support for HP C 7.1 on OpenVMS 8.3.
16475         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
16476
16477 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
16478
16479         Update VMS specifics.
16480         * lib/getopt.c [VMS]: Remove include of unixlib.h.
16481
16482 2008-03-02  Jim Meyering  <meyering@redhat.com>
16483
16484         Remove the last dependency on the "free" module.
16485         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
16486         Reported by Bob Proulx.
16487
16488         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
16489
16490         Remove useless "if" tests before free.  Deprecate "free" module.
16491         * doc/posix-functions/free.texi: Mention that this
16492         module is no longer useful.
16493         * modules/free (Notice): Say this module is obsolete.
16494         * modules/readutmp (Depends-on): Remove free.
16495         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
16496         * lib/putenv.c (putenv): Likewise.
16497         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
16498         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
16499         * tests/test-c-strcasestr.c (main): Likewise.
16500         * tests/test-c-strstr.c (main): Likewise.
16501         * tests/test-mbscasestr1.c (main): Likewise.
16502         * tests/test-mbscasestr2.c (main): Likewise.
16503         * tests/test-mbsstr1.c (main): Likewise.
16504         * tests/test-mbsstr2.c (main): Likewise.
16505         * tests/test-memmem.c (main): Likewise.
16506         * tests/test-strcasestr.c (main): Likewise.
16507         * tests/test-striconv.c (main): Likewise.
16508         * tests/test-striconveh.c (main): Likewise.
16509         * tests/test-striconveha.c (main): Likewise.
16510         * tests/test-strstr.c (main): Likewise.
16511
16512         * build-aux/git-version-gen: Adjust a comment and the Usage string.
16513
16514         bootstrap: sync from coreutils again
16515         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
16516
16517 2008-03-01  Jim Meyering  <meyering@redhat.com>
16518
16519         bootstrap: sync from coreutils
16520         * build-aux/bootstrap (update_po_files): Copy a .po file into place
16521         also when the target doesn't exist.
16522
16523 2008-03-01  Eric Blake  <ebb9@byu.net>
16524
16525         Fix bugs in last patch.
16526         * lib/memchr2.c (memchr2): Fix typo.
16527         * tests/test-memchr2.c: Test previous bug, and don't use GNU
16528         extension.
16529         Reported by Bruce Korb.
16530
16531         New module 'memchr2'.
16532         * modules/memchr2: New file.
16533         * modules/memchr2-tests: Likewise.
16534         * lib/memchr2.h: Likewise.
16535         * lib/memchr2.c: Likewise, based on memchr.c.
16536         * tests/test-memchr2.c: New test.
16537         * MODULES.html.sh (String handling): Add memchr2.
16538
16539 2008-02-29  Bruno Haible  <bruno@clisp.org>
16540
16541         * modules/freadseek-tests: New file.
16542         * tests/test-freadseek.sh: New file.
16543         * tests/test-freadseek.c: New file.
16544
16545         New module 'freadseek'.
16546         * modules/freadseek: New file.
16547         * lib/freadseek.h: New file.
16548         * lib/freadseek.c: New file.
16549         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
16550
16551 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
16552
16553         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
16554         wydawca.
16555
16556         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
16557         program_invocation_name and program_invocation_short_name are
16558         present.
16559
16560 2008-02-28  Bruno Haible  <bruno@clisp.org>
16561
16562         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
16563         * tests/test-freadptr.sh: Also test non-seekable stdin.
16564
16565 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
16566
16567         * build-aux/bootstrap (source_base, m4_base)
16568         (doc_base, tests_base): New variables.
16569         (gnulib_tool_options): Do not hardcode base directories, use
16570         the above variables instead.
16571
16572 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
16573
16574         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
16575
16576 2008-02-28  Bruno Haible  <bruno@clisp.org>
16577
16578         * modules/freadptr-tests: New file.
16579         * tests/test-freadptr.sh: New file.
16580         * tests/test-freadptr.c: New file.
16581
16582         New module 'freadptr'.
16583         * modules/freadptr: New file.
16584         * lib/freadptr.h: New file.
16585         * lib/freadptr.c: New file.
16586         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
16587
16588 2008-02-26  Karl Berry  <karl@freefriends.org>
16589
16590         Sync from Libtool:
16591         * libltdl/argz.c (argz_add, argz_count): New functions.
16592         * libltdl/argz.in.h: Declare them.
16593         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
16594
16595 2008-02-22  Bruno Haible  <bruno@clisp.org>
16596
16597         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
16598         is a pointer type.  Needed for HP-UX 10.
16599         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
16600         * doc/posix-functions/gmtime_r.texi: Likewise.
16601         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
16602
16603 2008-02-24  Bruno Haible  <bruno@clisp.org>
16604
16605         * modules/environ-tests: New file.
16606         * tests/test-environ.c: New file.
16607
16608         New module 'environ'.
16609         * modules/environ: New file.
16610         * lib/unistd.in.h (environ): New declaration.
16611         * m4/environ.m4: New file.
16612         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
16613         after use.
16614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
16615         HAVE_DECL_ENVIRON.
16616         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
16617         HAVE_DECL_ENVIRON.
16618         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
16619         wrong claim that 'environ' is missing on some systems.
16620         * modules/execute (Depends-on): Add environ.
16621         * lib/execute.c (environ): Remove fallback declaration.
16622         * modules/pipe (Depends-on): Add environ.
16623         * lib/pipe.c (environ): Remove fallback declaration.
16624         * modules/setenv (Depends-on): Add environ.
16625         * lib/setenv.c (environ): Remove fallback declaration.
16626         * modules/unsetenv (Depends-on): Add environ.
16627         * lib/unsetenv.c (environ): Remove fallback declaration.
16628         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
16629         m4/environ.m4.
16630         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
16631         (gl_PREREQ_UNSETENV): Likewise.
16632
16633 2008-02-24  Bruno Haible  <bruno@clisp.org>
16634
16635         * doc/posix-functions/environ.texi: Document the MacOS X problem.
16636
16637 2008-02-20  Bob Proulx  <bob@proulx.com>
16638
16639         Enable use of older two part flavor 'git describe'.
16640         * build-aux/git-version-gen: If using the older two part flavor of
16641         git version then recreate the third part now present in the
16642         newer three part flavor of git describe.
16643
16644 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
16645
16646         * lib/fts.c (fts_build): Typo correction to comment.
16647
16648 2008-02-17  Bruno Haible  <bruno@clisp.org>
16649
16650         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
16651         generating no-op conflicts.
16652
16653 2008-02-17  Bruno Haible  <bruno@clisp.org>
16654
16655         Speed up by 10%.
16656         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
16657         result_entries, rather than an index-based loop.
16658
16659 2008-02-17  Bruno Haible  <bruno@clisp.org>
16660
16661         Speed up by 25%.
16662         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
16663         'hashcode_cached'.
16664         (entry_create): New function.
16665         (entry_hashcode): Use the cached hashcode if possible.
16666         (read_changelog_file, try_split_merged_entry): Use entry_create.
16667
16668 2008-02-17  Bruno Haible  <bruno@clisp.org>
16669
16670         Speed up from O(n^2) to O(n) for long ChangeLog files.
16671         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
16672         (read_changelog_file): Change implementation of entries_reversed list
16673         to rbtreehash.
16674         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
16675
16676 2008-02-17  Bruno Haible  <bruno@clisp.org>
16677
16678         New option --split-merged-entry.
16679         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
16680         (find_paragraph_end, try_split_merged_entry): New functions.
16681         (long_options): Add option --split-merged-entry.
16682         (usage): Document option --split-merged-entry.
16683         (main): Implement option --split-merged-entry.
16684         Reported by Eric Blake.
16685
16686 2008-02-17  Bruno Haible  <bruno@clisp.org>
16687
16688         * lib/git-merge-changelog.c: Include c-strstr.h.
16689         (main): Support the "git pull --rebase" situation.
16690         * modules/git-merge-changelog (Depends-on): Add c-strstr.
16691         Reported by Eric Blake.
16692
16693 2008-02-16  Eric Blake  <ebb9@byu.net>
16694
16695         Avoid doubling \ in common case of "c-maybe" quoting style.
16696         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
16697         eliding outer quotes.
16698         * lib/quotearg.h: Document this.
16699         * tests/test-quotearg.c (result_strings, inputs, results_g)
16700         (flag_results, locale_results): Test it by adding a new string to
16701         each test group.
16702         (compare_strings): Test new string.
16703
16704 2008-02-13  Eric Blake  <ebb9@byu.net>
16705
16706         Avoid trigraph quoting in default output.
16707         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
16708         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
16709         unless explicitly requested.
16710         * tests/test-quotearg.c (flag_results, main): Add additional tests.
16711
16712 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
16713
16714         Don't rely on signed integer overflowing to negative value.
16715         * lib/getugroups.c (getugroups): Include <limits.h>.
16716         Instead, compare against INT_MAX, and increment only if the test passes.
16717
16718 2008-02-13  Jim Meyering  <meyering@redhat.com>
16719         and Eric Blake  <ebb9@byu.net>
16720
16721         Avoid shadowing warning and compile errors on Linux.
16722         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
16723         forwarding macros on Linux.
16724         (dcgettext): Define a stub, for Linux.
16725         (results_g, main): Avoid warnings.
16726
16727 2008-02-12  Eric Blake  <ebb9@byu.net>
16728
16729         Silence warning in last patch.
16730         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
16731
16732         Quotearg part 4: add tests, fix c-maybe colon quoting.
16733         * lib/quotearg.h: Improve documentation.
16734         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
16735         escapes when adding outer quotes.  When quoting trigraphs, use
16736         valid C notation.  When quoting NUL, omit extra characters if next
16737         character is not digit.  Alter prototype.
16738         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
16739         callers.
16740         * modules/quotearg-tests: New module.
16741         * tests/test-quotearg.c: New test.
16742
16743 2008-02-07  Eric Blake  <ebb9@byu.net>
16744
16745         Quotearg part 3: add flag to control outer quote elision.
16746         * lib/quotearg.h (c_maybe_quoting_style): New style.
16747         (enum quoting_flags): Better documentation of flags.
16748         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
16749         c-maybe style.
16750         (quotearg_buffer_restyled): Handle new flag to elide outer
16751         quotes.
16752
16753         Quotearg part 2: add flag that can control NUL elision.
16754         * lib/quotearg.h (set_quoting_flags): New prototype.
16755         * lib/quotearg.c (struct quoting_options): Add flag field.
16756         (set_quoting_flags): New function.
16757         (quotearg_buffer_restyled): Add flags parameter.
16758         (quotearg_alloc_mem): Set the flag if length cannot be returned.
16759         (quotearg_n_options): Set the flag, since length cannot be
16760         returned.
16761         (quoting_options_from_style): Default flags correctly.
16762
16763         Quotearg part 1: more wrappers, restore quotearg_char state.
16764         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
16765         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
16766         (quotearg_colon_mem): New wrappers.
16767         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
16768         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
16769         functions.
16770         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
16771         (quotearg_colon_mem): New functions.
16772
16773 2008-02-11  Bruno Haible  <bruno@clisp.org>
16774
16775         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
16776         library in the current directory: it does not work with parallel make.
16777         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16778
16779 2008-02-11  Bruno Haible  <bruno@clisp.org>
16780
16781         * .gitattributes: New file.
16782
16783 2008-02-11  Jim Meyering  <meyering@redhat.com>
16784
16785         useless-if-before-free: Fix reversed exit values.
16786         * build-aux/useless-if-before-free: Use correct values
16787         for EXIT_MATCH and EXIT_NO_MATCH.
16788
16789         * build-aux/useless-if-before-free: Close stdout carefully.
16790
16791 2008-02-10  Bruno Haible  <bruno@clisp.org>
16792
16793         New module 'git-merge-changelog'.
16794         * modules/git-merge-changelog: New file.
16795         * lib/git-merge-changelog.c: New file.
16796
16797 2008-02-10  Jim Meyering  <meyering@redhat.com>
16798
16799         useless-if-before-free: New option: --list (-l).
16800
16801         useless-if-before-free: Don't exit immediately upon open failure.
16802         * build-aux/useless-if-before-free: Exit 2 for errors.
16803         Upon failure to open a file, don't exit immediately.
16804         Rather, just warn and continue with any remaining files.
16805
16806 2008-02-10  Bruno Haible  <bruno@clisp.org>
16807
16808         New abstract list operation 'node_set_value'.
16809         * lib/gl_list.h (gl_list_node_set_value): New function.
16810         (struct gl_list_implementation): New field node_set_value.
16811         * lib/gl_list.c (gl_list_node_set_value): New function.
16812         * lib/gl_array_list.c (gl_array_node_set_value): New function.
16813         (gl_array_list_implementation): Update.
16814         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
16815         (gl_carray_list_implementation): Update.
16816         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
16817         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
16818         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
16819         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
16820         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
16821         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
16822         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
16823         Update.
16824         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
16825         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
16826         (gl_sublist_list_implementation): Update.
16827
16828 2008-02-10  Bruno Haible  <bruno@clisp.org>
16829
16830         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
16831         Needed when ELEMENT is #defined to 'some_type *'.
16832
16833 2008-02-10  Jim Meyering  <meyering@redhat.com>
16834
16835         New script and module: useless-if-before-free
16836         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
16837         * build-aux/useless-if-before-free: New file.
16838         * modules/useless-if-before-free: New file.
16839
16840         * build-aux/gitlog-to-changelog: Use committer date, not author date.
16841
16842         xstrtol_error: Fix typo.
16843         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
16844         s/exit_failure/exit_status/.
16845
16846 2008-02-09  Jim Meyering  <meyering@redhat.com>
16847
16848         New script and module: gitlog-to-changelog
16849         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
16850         * modules/gitlog-to-changelog: New file.
16851         * build-aux/gitlog-to-changelog: New file.
16852
16853 2008-02-08  Jim Meyering  <meyering@redhat.com>
16854
16855         Avoid two "parameter unused" warnings.
16856         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
16857         Mark "st" as used.
16858
16859         Use "git COMMAND", not "git-COMMAND".
16860         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
16861         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
16862         * build-aux/git-version-gen: Use "git status", not "git-status".
16863
16864 2008-02-07  Bruno Haible  <bruno@clisp.org>
16865
16866         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
16867         Avoids a crash on Windows Vista.
16868         Reported by Adam Strzelecki <ono@java.pl> via
16869         Simon Josefsson <simon@josefsson.org>.
16870
16871 2008-02-06  Bruno Haible  <bruno@clisp.org>
16872
16873         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
16874         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
16875         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
16876         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
16877         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
16878         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
16879         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
16880         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
16881         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16882         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16883         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16884         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16885         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16886         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16887         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16888         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
16889         left-adjust flag.
16890         * tests/test-snprintf-posix.h (test_function): Likewise.
16891         * tests/test-sprintf-posix.h (test_function): Likewise.
16892         * tests/test-vasprintf-posix.c (test_function): Likewise.
16893         * doc/posix-functions/fprintf.texi: Update.
16894         * doc/posix-functions/printf.texi: Update.
16895         * doc/posix-functions/snprintf.texi: Update.
16896         * doc/posix-functions/sprintf.texi: Update.
16897         * doc/posix-functions/vfprintf.texi: Update.
16898         * doc/posix-functions/vprintf.texi: Update.
16899         * doc/posix-functions/vsnprintf.texi: Update.
16900         * doc/posix-functions/vsprintf.texi: Update.
16901         Reported by Peter Fales <psfales@alcatel-lucent.com>.
16902
16903 2008-02-06  Bruno Haible  <bruno@clisp.org>
16904
16905         Fix bug introduced on 2008-01-26.
16906         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
16907
16908 2008-02-06  Bruno Haible  <bruno@clisp.org>
16909
16910         Fix bug introduced on 2007-06-10.
16911         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
16912         !NEED_PRINTF_FLAG_ZERO.
16913
16914 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
16915
16916         getloadavg: use libperfstat on AIX5
16917         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
16918
16919 2008-02-03  Bruno Haible  <bruno@clisp.org>
16920
16921         * lib/diffseq.h: Add comments about required #includes.
16922         Reported by Michael Biggs <gnulib@doubleplum.net>.
16923
16924 2008-02-01  Bruno Haible  <bruno@clisp.org>
16925
16926         * users.txt: Add gnuit.
16927
16928 2008-01-31  Bruno Haible  <bruno@clisp.org>
16929
16930         * lib/md4.c (set_uint32): Mark as inline.
16931         * lib/md5.c (set_uint32): Likewise.
16932         * lib/sha1.c (set_uint32): Likewise.
16933         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
16934         * m4/md5.m4 (gl_MD5): Likewise.
16935         * m4/sha1.m4 (gl_SHA1): Likewise.
16936
16937 2008-01-31  Jim Meyering  <meyering@redhat.com>
16938
16939         Use "sizeof VAR", rather than a literal "4".
16940         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
16941         * lib/md4.c (md4_read_ctx): Likewise.
16942         * lib/sha1.c (sha1_read_ctx): Likewise.
16943
16944 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16945
16946         * tests/test-sha1.c: New file, based on test-md5.c.
16947
16948         * modules/crypto/sha1-tests: New file.
16949
16950 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16951
16952         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
16953
16954 2008-01-31  Jim Meyering  <meyering@redhat.com>
16955
16956         Prefer "sizeof v" over the equivalent "4".
16957         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
16958         * lib/md5.c (set_uint32): Likewise.
16959         * lib/sha1.c (set_uint32): Likewise.
16960
16961 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16962
16963         * lib/sha1.c (set_uint32): Mark function as static.
16964
16965 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16966
16967         md2: clarify comments to say that alignment is not required.
16968         * lib/md2.h: Remove warning about alignment in comment.
16969         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
16970         never been required.
16971
16972 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16973
16974         md4: adapt alignment constraint fix from sha1.
16975         * lib/md4.c (set_uint32): New function, from sha1.c
16976         (md4_read_ctx): Use it.
16977         (md4_finish_ctx): Doc fix.
16978         * lib/md4.h: Doc fix.
16979
16980 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16981
16982         md5: adapt alignment constraint fix from sha1.
16983         * lib/md5.c (set_uint32): New function, from sha1.c
16984         (md5_read_ctx): Use it.
16985         (md5_finish_ctx): Doc fix.
16986         * lib/md5.h: Doc fix.
16987
16988 2008-01-30  Peter Palfrader  <weasel@debian.org>
16989
16990         sha1: remove the result buffer alignment constraint
16991         * lib/sha1.c (set_uint32): New function.
16992         (sha1_read_ctx): Rewrite to remove the result buffer alignment
16993         constraint.
16994         (sha1_finish_ctx): Remove comment warning about alignment constraint.
16995         * lib/sha1.h: Likewise.
16996
16997 2008-01-30  Andreas Schwab  <schwab@suse.de>
16998             Bruno Haible  <bruno@clisp.org>
16999
17000         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
17001         correct definition of LDBL_MIN_EXP.
17002
17003 2008-01-30  Karl Berry  <karl@gnu.org>
17004
17005         * config/srclist-update: try to preserve x bit on updates.
17006         * config/srclistvars.sh: update for karl.
17007
17008 2008-01-29  Jim Meyering  <meyering@redhat.com>
17009
17010         vasnprintf.c: Avoid warning about unused label
17011         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
17012         "overflow" label definition and associated code with the
17013         same cpp condition that guards the sole use of that label.
17014
17015 2008-01-26  Bruno Haible  <bruno@clisp.org>
17016
17017         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
17018         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
17019         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
17020         * lib/isnanl-nolibm.h (isnanl): Likewise.
17021         Reported by Paul Eggert <eggert@cs.ucla.edu>.
17022
17023 2008-01-26  Bruno Haible  <bruno@clisp.org>
17024
17025         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
17026         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
17027
17028 2008-01-26  Bruno Haible  <bruno@clisp.org>
17029
17030         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
17031         GCC >= 4.0 built-in.
17032         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
17033
17034 2008-01-26  Bruno Haible  <bruno@clisp.org>
17035
17036         Rename isnan, applicable to 'double' only, to isnand.
17037         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
17038         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
17039         (configure.ac): Update.
17040         (Include): Replace "isnan.h" with "isnand.h".
17041         * m4/isnand.m4: Renamed from m4/isnan.m4.
17042         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
17043         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
17044         instead of isnan.c.
17045         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
17046         instead of HAVE_ISNAN_IN_LIBC.
17047         (isnand): Renamed from isnan.
17048         * lib/isnand.c: New file.
17049         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
17050         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
17051         (Makefile.am): Update.
17052         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
17053         Include isnand.h instead of isnan.h.
17054         (main): Test isnand instead of isnan.
17055         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
17056         isnan-nolibm.
17057         * modules/frexp (Depends-on): Likewise.
17058         * modules/frexp-tests (Depends-on): Likewise.
17059         * modules/frexp-nolibm (Depends-on): Likewise.
17060         * modules/frexp-nolibm-tests (Depends-on): Likewise.
17061         * modules/isfinite (Depends-on): Likewise.
17062         * modules/round-tests (Depends-on): Likewise.
17063         * modules/signbit (Depends-on): Likewise.
17064         * modules/signbit-tests (Depends-on): Likewise.
17065         * modules/snprintf-posix (Depends-on): Likewise.
17066         * modules/sprintf-posix (Depends-on): Likewise.
17067         * modules/trunc-tests (Depends-on): Likewise.
17068         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17069         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17070         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17071         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17072         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17073         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17074         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17075         * modules/vasnprintf-posix (Depends-on): Likewise.
17076         * modules/vasprintf-posix (Depends-on): Likewise.
17077         * modules/vfprintf-posix (Depends-on): Likewise.
17078         * modules/vsnprintf-posix (Depends-on): Likewise.
17079         * modules/vsprintf-posix (Depends-on): Likewise.
17080         * lib/frexp.c: Include isnand.h instead of isnan.h.
17081         (ISNAN): Set to isnand instead of isnan.
17082         * lib/isfinite.c: Include isnand.h instead of isnan.h.
17083         (gl_isfinited): Use isnand instead of isnan.
17084         * lib/signbitd.c: Include isnand.h instead of isnan.h.
17085         (gl_signbitd): Use isnand instead of isnan.
17086         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
17087         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
17088         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
17089         (main): Use isnand instead of isnan.
17090         * tests/test-round1.c: Include isnand.h.
17091         (main): Use isnand instead of isnan.
17092         * tests/test-round2.c: Include isnand.h instead of isnan.h.
17093         (ISNAN): Set to isnand instead of isnan.
17094         * tests/test-trunc1.c: Include isnand.h.
17095         (main): Use isnand instead of isnan.
17096         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
17097         (equal): Use isnand instead of isnan.
17098         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
17099         isnand-nolibm.
17100         * NEWS: Mention the change.
17101
17102 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
17103             Bruno Haible  <bruno@clisp.org>
17104
17105         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
17106         the GCC builtins for signbits are present and set
17107         REPLACE_SIGNBIT_USING_GCC if so.
17108         * lib/math.in.h (signbit): Define using GCC builtins if
17109         REPLACE_SIGNBIT_USING_GCC is set.
17110         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
17111         REPLACE_SIGNBIT_USING_GCC.
17112         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
17113
17114 2008-01-25  Jim Meyering  <meyering@redhat.com>
17115
17116         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
17117         * lib/poll.c: Include <config.h>, not "config.h".
17118         * tests/test-getaddrinfo.c: Likewise.
17119
17120 2008-01-25  Simon Josefsson  <simon@josefsson.org>
17121
17122         * modules/sockets-tests: New file.
17123
17124 2008-01-24  Simon Josefsson  <simon@josefsson.org>
17125
17126         * modules/sockets: New module, can be used to call WSA_Startup and
17127         WSA_Cleanup when needed.
17128
17129         * lib/sockets.h, lib/sockets.c: New files.
17130
17131         * m4/sockets.m4: New file.
17132
17133         * tests/test-sockets.c: New file.
17134
17135 2008-01-19  Bruno Haible  <bruno@clisp.org>
17136
17137         * doc/posix-headers: Renamed from doc/headers.
17138         * doc/posix-functions: Renamed from doc/functions.
17139         * doc/gnulib.texi: Update.
17140
17141 2008-01-19  Bruno Haible  <bruno@clisp.org>
17142
17143         * doc/glibc-functions/strcasestr.texi: Include contents of
17144         doc/functions/strcasestr.texi, fixing the list of platforms.
17145         * doc/functions/strcasestr.texi: Remove file.
17146
17147 2008-01-19  Bruno Haible  <bruno@clisp.org>
17148
17149         * doc/glibc-functions/memmem.texi: Include contents of
17150         doc/functions/memmem.texi.
17151         * doc/functions/memmem.texi: Remove file.
17152
17153 2008-01-18  Bruno Haible  <bruno@clisp.org>
17154
17155         * doc/glibc-functions/*.texi: New files.
17156         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
17157         to use the new files.
17158
17159 2008-01-17  Bruno Haible  <bruno@clisp.org>
17160
17161         * tests/test-gethostname.c (main): Fix printf statement.
17162
17163 2008-01-17  Simon Josefsson  <simon@josefsson.org>
17164
17165         * modules/gethostname-tests: New file.
17166
17167         * tests/test-gethostname.c: New file.
17168
17169 2008-01-17  Simon Josefsson  <simon@josefsson.org>
17170
17171         * lib/gethostname.c: Include string.h unconditionally, strncpy is
17172         used by the UNAME case.  Reported by Bruno Haible
17173         <bruno@clisp.org>.
17174
17175 2008-01-17  Eric Blake  <ebb9@byu.net>
17176
17177         Convert c-strcasestr to be more efficient.
17178         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
17179         (Depends-on): Add c-strcase, remove malloca, strnlen.
17180         * tests/test-c-strcasestr.c (main): Enhance test.
17181         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
17182
17183 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
17184
17185         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
17186         Use it in creating po/Makevars.
17187
17188 2008-01-15  Simon Josefsson  <simon@josefsson.org>
17189
17190         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
17191         Applications that requires it should initialize libgcrypt
17192         manually.
17193
17194 2008-01-16  Simon Josefsson  <simon@josefsson.org>
17195
17196         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
17197
17198 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
17199
17200         Fix problem with getdate on mingw32 reported by Simon Josefsson
17201         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
17202         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
17203         tzname", when deciding whether to declare tzname.
17204         * lib/strftime.c (tzname): Likewise.
17205
17206 2008-01-15  Bruno Haible  <bruno@clisp.org>
17207
17208         Work around a MacOS X 10.5 bug in frexpl().
17209         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
17210         * doc/functions/frexpl.texi: Document the bug.
17211         Reported by Elias Pipping <pipping@gentoo.org>.
17212
17213 2008-01-14  Eric Blake  <ebb9@byu.net>
17214
17215         Touch up previous patch.
17216         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
17217         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
17218
17219         Convert strcasestr module to use Two-Way algorithm.
17220         * modules/strcasestr-simple: New module, based on the old
17221         strcasestr, but with Two-Way rather than KMP.
17222         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
17223         * lib/string.in.h (rpl_strcasestr): Declare.
17224         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
17225         performance.
17226         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
17227         * modules/string (Makefile.am): Support strcasestr.
17228         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
17229         * modules/strcasestr-tests (Depends-on): Check for alarm.
17230         * tests/test-strcasestr.c: Augment test.
17231         * lib/str-two-way.h: Clean up stray macro.
17232         * NEWS: Document new module.
17233         * MODULES.html.sh (string handling): Likewise.
17234         * doc/functions/strcasestr.texi: New file.
17235         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
17236         here, since it is not a POSIX function.
17237
17238 2008-01-14  Colin Watson  <cjwatson@debian.org>
17239             Bruno Haible  <bruno@clisp.org>
17240
17241         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
17242         works fine; if not, set REPLACE_STRSIGNAL.
17243         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
17244         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17245         REPLACE_STRSIGNAL.
17246         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
17247         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
17248         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
17249
17250 2008-01-14  Bruno Haible  <bruno@clisp.org>
17251
17252         * modules/strsignal (Include): Change to <string.h>.
17253
17254 2008-01-14  Colin Watson  <cjwatson@debian.org>
17255
17256         * modules/argp (Notice): Add a notice recommending to change
17257         XGETTEXT_OPTIONS.
17258         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
17259
17260 2008-01-13  Colin Watson  <cjwatson@debian.org>
17261
17262         * modules/strsignal-tests: New file.
17263         * tests/test-strsignal.c: New file.
17264
17265         * lib/strsignal.c: New file, from glibc with modifications.
17266         * lib/siglist.h: New file, from glibc with modifications.
17267         * lib/string.in.h (strsignal): New declaration.
17268         * m4/strsignal.m4: New file.
17269         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17270         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
17271         * modules/strsignal: New file.
17272         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
17273         HAVE_DECL_STRSIGNAL.
17274
17275 2008-01-13  Bruno Haible  <bruno@clisp.org>
17276
17277         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
17278         locale encoding is not ASCII. Needed for OpenBSD 4.0.
17279         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
17280         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17281
17282 2008-01-13  Bruno Haible  <bruno@clisp.org>
17283
17284         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
17285         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
17286         * lib/argp.h (__attribute__): Likewise.
17287         * lib/c-stack.c (__attribute__): Likewise.
17288         * lib/error.h (__attribute__): Likewise.
17289         * lib/fts.c (__attribute__): Likewise.
17290         * lib/openat.h (__attribute__): Likewise.
17291         * lib/stdio.in.h (__attribute__): Likewise.
17292         * lib/string.in.h (__attribute__): Likewise.
17293         * lib/utimens.c (__attribute__): Likewise.
17294         * lib/vasnprintf.h (__attribute__): Likewise.
17295         * lib/xalloc.h (__attribute__): Likewise.
17296         * lib/xprintf.h (__attribute__): Likewise.
17297         * lib/xstrtol.h (__attribute__): Likewise.
17298         * lib/xvasprintf.h (__attribute__): Likewise.
17299
17300 2008-01-12  Bruno Haible  <bruno@clisp.org>
17301
17302         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
17303         * doc/glibc-headers/a.out.texi: New file.
17304         * doc/glibc-headers/aliases.texi: New file.
17305         * doc/glibc-headers/alloca.texi: New file.
17306         * doc/glibc-headers/ar.texi: New file.
17307         * doc/glibc-headers/argp.texi: New file.
17308         * doc/glibc-headers/argz.texi: New file.
17309         * doc/glibc-headers/byteswap.texi: New file.
17310         * doc/glibc-headers/crypt.texi: New file.
17311         * doc/glibc-headers/endian.texi: New file.
17312         * doc/glibc-headers/envz.texi: New file.
17313         * doc/glibc-headers/err.texi: New file.
17314         * doc/glibc-headers/error.texi: New file.
17315         * doc/glibc-headers/execinfo.texi: New file.
17316         * doc/glibc-headers/fpu_control.texi: New file.
17317         * doc/glibc-headers/fstab.texi: New file.
17318         * doc/glibc-headers/fts.texi: New file.
17319         * doc/glibc-headers/getopt.texi: New file.
17320         * doc/glibc-headers/ieee754.texi: New file.
17321         * doc/glibc-headers/ifaddrs.texi: New file.
17322         * doc/glibc-headers/libintl.texi: New file.
17323         * doc/glibc-headers/mcheck.texi: New file.
17324         * doc/glibc-headers/mntent.texi: New file.
17325         * doc/glibc-headers/obstack.texi: New file.
17326         * doc/glibc-headers/paths.texi: New file.
17327         * doc/glibc-headers/printf.texi: New file.
17328         * doc/glibc-headers/pty.texi: New file.
17329         * doc/glibc-headers/resolv.texi: New file.
17330         * doc/glibc-headers/shadow.texi: New file.
17331         * doc/glibc-headers/sysexits.texi: New file.
17332         * doc/glibc-headers/ttyent.texi: New file.
17333
17334 2008-01-12  Jim Meyering  <meyering@redhat.com>
17335
17336         announce-gen: emit Gnulib's git-based version string.
17337         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
17338         New option --gnulib-version=V, where V is expected to be
17339         the output of running git describe in the gnulib directory.
17340         (get_tool_versions): Request feedback on xdelta.  I suspect it's
17341         not useful, and plan to stop publishing an xdelta file with each
17342         coreutils release.
17343
17344         * build-aux/announce-gen: Also check for lzma-compressed files.
17345
17346 2008-01-11  Bruno Haible  <bruno@clisp.org>
17347
17348         * tests/test-memmem.c (main): Increase maximum allowed time.
17349         * tests/test-strstr.c (main): Likewise.
17350
17351 2008-01-11  Bruno Haible  <bruno@clisp.org>
17352
17353         * doc/functions/memmem.texi: Add more precisions about platforms.
17354         * doc/functions/strstr.texi: Likewise.
17355
17356 2008-01-10  Eric Blake  <ebb9@byu.net>
17357
17358         * m4/strstr.m4: Delete cruft from copy-n-paste.
17359         Reported by Bruno Haible.
17360
17361 2008-01-10  Bruno Haible  <bruno@clisp.org>
17362
17363         Make c-strstr rely on strstr.
17364         * lib/c-strstr.c: Don't include str-kmp.h.
17365         (c_strstr): Define in terms of strstr.
17366         * modules/c-strstr (Files): Remove lib/str-kmp.h.
17367         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
17368
17369 2008-01-10  Bruno Haible  <bruno@clisp.org>
17370
17371         * doc/gnulib.texi (String Functions in C Locale): New section.
17372         * doc/c-ctype.texi: New file.
17373         * doc/c-strcase.texi: New file.
17374         * doc/c-strcaseeq.texi: New file.
17375         * doc/c-strcasestr.texi: New file.
17376         * doc/c-strstr.texi: New file.
17377         * doc/c-strtod.texi: New file.
17378         * doc/c-strtold.texi: New file.
17379
17380 2008-01-10  Eric Blake  <ebb9@byu.net>
17381
17382         * lib/relocatable.h: Fix a comment.
17383
17384 2008-01-10  Eric Blake  <ebb9@byu.net>
17385
17386         Share two-way algorithm.
17387         * lib/str-two-way.h: New file, merged from...
17388         * lib/memmem.c: ...here...
17389         * lib/strstr.c: ...and here.
17390         * modules/memmem (Files): Use it.
17391         * modules/strstr (Files): Likewise.
17392
17393         Avoid quadratic strstr implementations.
17394         * lib/strstr.c: New file.
17395         * m4/strstr.m4: Likewise.
17396         * modules/strstr: Likewise.
17397         * modules/strstr-tests: Likewise.
17398         * tests/test-strstr.c: Likewise.
17399         * lib/string.in.h (rpl_strstr): Declare.
17400         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
17401         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
17402         * modules/string (Makefile.am): Likewise.
17403         * MODULES.html.sh (string handling): Mention new module.
17404         * doc/functions/strstr.texi (strstr): Document the bug.
17405
17406 2008-01-10  Bruno Haible  <bruno@clisp.org>
17407
17408         * lib/relocatable.h (relocate): State whether result is freshly
17409         allocated or not.
17410         * lib/relocatable.c (relocate): Return a freshly allocated string
17411         instead of a pointer to a privately held string.
17412         Reported by Sylvain Beucler <beuc@gnu.org>.
17413
17414 2008-01-10  Colin Watson  <cjwatson@debian.org>
17415
17416         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
17417         s/S_ISNLK/S_ISLNK/.
17418
17419 2008-01-09  Bruno Haible  <bruno@clisp.org>
17420
17421         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
17422         and other files.
17423         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
17424         if it's only a guess.
17425         * modules/memmem: Simplify by depending on memmem-simple.
17426
17427 2008-01-09  Bruno Haible  <bruno@clisp.org>
17428
17429         Work around OpenBSD 4.0 tdelete() bug.
17430         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
17431         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
17432         macros and don't redefine the enum values.
17433         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
17434         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
17435         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
17436
17437 2008-01-09  Bruno Haible  <bruno@clisp.org>
17438
17439         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
17440         (main): Don't perform the tests if setlocale did not install a UTF-8
17441         locale. Needed on OpenBSD 4.0.
17442         * modules/wcwidth-tests (Depends-on): Add localcharset.
17443
17444 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
17445
17446         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
17447         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
17448         * NEWS: announce this.
17449         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
17450
17451 2008-01-09  Simon Josefsson  <simon@josefsson.org>
17452         and Eric Blake  <ebb9@byu.net>
17453
17454         Add memmem-simple module.
17455         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
17456         (gl_FUNC_MEMMEM): Separate performance from presence checks.
17457         * modules/memmem-simple: New file.
17458         * modules/memmem (Description): Tweak.
17459         * MODULES.html.sh (string handling): Mention new module.
17460         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
17461         addressed by memmem-simple.
17462         * NEWS: Document the difference.
17463
17464 2008-01-09  Eric Blake  <ebb9@byu.net>
17465
17466         Give gcc some memmem optimization hints.
17467         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
17468         (strcasestr): Declare as pure.
17469         * modules/memmem (Maintainer): Claim my implementation.
17470
17471 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17472
17473         Support AIX 6.1 and higher.
17474         * build-aux/config.libpath: Likewise.
17475         * build-aux/config.rpath: Likewise.
17476
17477 2008-01-08  Jim Meyering  <meyering@redhat.com>
17478             Bruno Haible  <bruno@clisp.org>
17479
17480         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
17481         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
17482         Reported by Peter Fales in
17483         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
17484
17485 2008-01-08  Bruno Haible  <bruno@clisp.org>
17486
17487         * modules/unictype/category-of (Depends-on): Add
17488         unictype/category-none.
17489         * modules/unictype/category-and-tests (Depends-on): Add
17490         unictype/category-{L,N,Lu,Nd}.
17491         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
17492         * modules/unictype/category-or-tests (Depends-on): Add
17493         unictype/category-{L,N}.
17494         * modules/unictype/category-name-tests (Depends-on): Add
17495         unictype/category-{Z,Nl}.
17496         Reported by Simon Josefsson.
17497
17498 2008-01-08  Bruno Haible  <bruno@clisp.org>
17499
17500         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
17501         convention better.
17502         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
17503         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
17504         Reported by Peter Miller <millerp@canb.auug.org.au>.
17505
17506 2008-01-08  Eric Blake  <ebb9@byu.net>
17507
17508         Rewrite memmem to guarantee linear complexity without malloc.
17509         * lib/memmem.c (memmem): Use Two-Way rather than
17510         Knuth-Morris-Pratt, to allow O(1) space usage.
17511         (critical_factorization, two_way_short_needle)
17512         (two_way_long_needle): New functions.
17513         (knuth_morris_pratt): Delete.
17514         * modules/memmem (Depends-on): No longer need malloca or stdbool.
17515         Add stdint.
17516         * tests/test-memmem.c (main): Add tests for periodic needle and
17517         sublinear performance.
17518         * doc/functions/memmem.texi (memmem): Document other deficiencies
17519         in cygwin and older glibc.
17520
17521 2008-01-08  Bruno Haible  <bruno@clisp.org>
17522
17523         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
17524         augmentation.
17525
17526 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
17527
17528         Add a configure time option: --disable-acl.
17529         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
17530         AC_ARG_ENABLE(acl).
17531
17532 2008-01-06  Simon Josefsson  <simon@josefsson.org>
17533
17534         * tests/test-localename.c: Don't include obsolete "setenv.h".
17535
17536         * modules/localename-tests (Depends-on): Need unsetenv.
17537
17538 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17539
17540         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
17541
17542 2008-01-06  Colin Watson  <cjwatson@debian.org>
17543
17544         * users.txt: Add man-db.
17545
17546 2008-01-07  Bruno Haible  <bruno@clisp.org>
17547
17548         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
17549         previous section name.
17550
17551 2008-01-07  Bruno Haible  <bruno@clisp.org>
17552
17553         * lib/progname.c (set_program_name): Don't strip off a leading
17554         "lt-" prefix outside a .libs directory.
17555         Suggested by Paul Eggert.
17556
17557 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
17558             Bruno Haible  <bruno@clisp.org>
17559
17560         Improve memory cleanup in 'relocatable' module.
17561         * lib/relocatable.h (compute_curr_prefix): Change return type to
17562         'char *'.
17563         * lib/relocatable.c (compute_curr_prefix): Change return type to
17564         'char *'. Free curr_installdir after use.
17565         (relocate): Free curr_prefix_better after use.
17566         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
17567
17568 2008-01-01  Bruno Haible  <bruno@clisp.org>
17569
17570         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
17571         failure on older glibc systems.
17572         Reported by Peter Fales <psfales@alcatel-lucent.com>.
17573
17574 2008-01-05  Eric Blake  <ebb9@byu.net>
17575
17576         Avoid quadratic system memmem.
17577         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
17578         Reported by Ralf Wildenhues.
17579
17580         Fix memmem test for mingw.
17581         * modules/memmem-tests (configure.ac): Check for alarm.
17582         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
17583         it.
17584         * doc/functions/memmem.texi: New file.
17585         * doc/gnulib.texi (Function Substitutes): Add memmem.
17586         Reported by Bruno Haible.
17587
17588 2008-01-04  Bruno Haible  <bruno@clisp.org>
17589
17590         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
17591         Require gl_HEADER_STRINGS_H_DEFAULTS, not
17592         gl_HEADER_STRING_H_DEFAULTS.
17593
17594 2008-01-04  Eric Blake  <ebb9@byu.net>
17595
17596         Shorten duration of memmem test.
17597         * tests/test-memmem.c (main): Use alarm to declare failure if test
17598         is taking too long.
17599         Reported by Ralf Wildenhues.
17600
17601 2007-12-21  Simon Josefsson  <simon@josefsson.org>
17602
17603         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
17604         string, needed by strerror.
17605
17606 2008-01-03  Colin Watson  <cjwatson@debian.org>
17607             Bruno Haible  <bruno@clisp.org>
17608
17609         * doc/gnulib-tool.texi (Localization): New section.
17610
17611 2008-01-02  Bruno Haible  <bruno@clisp.org>
17612
17613         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
17614         variables to 'unsigned char *' type.
17615         Reported by Paul Eggert.
17616
17617 2008-01-02  Jim Meyering  <jim@meyering.net>
17618
17619         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
17620
17621 2007-12-31  Jim Meyering  <jim@meyering.net>
17622
17623         Avoid use of private FTS type name.
17624         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
17625
17626 2007-12-30  Karl Berry  <karl@gnu.org>
17627
17628         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
17629         work around defect in Texinfo and/or the standalone Info browser.
17630
17631 2007-12-30  Bruno Haible  <bruno@clisp.org>
17632
17633         Unify 5 copies of the KMP code.
17634         * lib/str-kmp.h: New file.
17635         * lib/c-strcasestr.c: Include str-kmp.h.
17636         (knuth_morris_pratt): Remove function.
17637         (c_strcasestr): Update.
17638         * lib/c-strstr.c: Include str-kmp.h.
17639         (knuth_morris_pratt): Remove function.
17640         (c_strcasestr): Update.
17641         * lib/mbscasestr.c: Include str-kmp.h.
17642         (knuth_morris_pratt_unibyte): Remove function.
17643         * lib/mbsstr.c: Include str-kmp.h.
17644         (knuth_morris_pratt_unibyte): Remove function.
17645         * lib/strcasestr.c: Include str-kmp.h.
17646         (knuth_morris_pratt): Remove function.
17647         (strcasestr): Update.
17648         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
17649         * modules/c-strstr (Files): Likewise.
17650         * modules/mbscasestr (Files): Likewise.
17651         * modules/mbsstr (Files): Likewise.
17652         * modules/strcasestr (Files): Likewise.
17653         Suggested by Paul Eggert.
17654
17655 2007-12-30  Bruno Haible  <bruno@clisp.org>
17656
17657         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
17658         defined.
17659
17660 2007-12-30  Bruno Haible  <bruno@clisp.org>
17661
17662         * lib/xmalloca.h: Include xalloc.h.
17663         (xnmalloca): New macro.
17664
17665 2007-12-30  Bruno Haible  <bruno@clisp.org>
17666
17667         * lib/malloca.h (nmalloca): New macro.
17668         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
17669         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
17670         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
17671         knuth_morris_pratt_multibyte): Likewise.
17672         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
17673         knuth_morris_pratt_multibyte): Likewise.
17674         * lib/memmem.c (knuth_morris_pratt): Likewise.
17675         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
17676
17677 2007-12-25  Bruno Haible  <bruno@clisp.org>
17678
17679         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
17680         * lib/glob.c: Don't include openat.h.
17681         (link_exists2_p): Add back the code that deals with the
17682         !GLOB_ALTDIRFUNC case.
17683         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
17684         let it do the filename concatenation.
17685         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
17686         * modules/glob (Depends-on): Remove openat.
17687
17688 2007-12-31  Bruno Haible  <bruno@clisp.org>
17689
17690         * modules/dirfd (License): Change to LGPLv2+.
17691         Approved by Jim Meyering.
17692
17693 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17694
17695         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
17696         when multiplying M by sizeof (size_t).
17697
17698 2007-12-10  Martin Lambers  <marlam@marlam.de>
17699
17700         Override getpagesize on mingw.
17701         * lib/getpagesize.c: New file.
17702         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
17703         * modules/getpagesize (Files): Add lib/getpagesize.c.
17704         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
17705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17706         REPLACE_GETPAGESIZE.
17707         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
17708
17709 2007-12-25  Bruno Haible  <bruno@clisp.org>
17710
17711         * modules/localcharset (Notice): New field.
17712         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
17713         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17714
17715 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
17716             Bruno Haible  <bruno@clisp.org>
17717
17718         Avoid using the syntax symbol() in formatted documentation.
17719         * MODULES.html.sh (func_module): When replacing symbol() with a
17720         hyperlink, remove the parentheses. Show an error if some remain.
17721         Recognize and render the '...' syntax.
17722         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
17723         Rework. Add paragraph about GCC's inlining.
17724         * doc/alloca.texi: Likewise.
17725         * doc/error.texi: Remove parentheses from symbol reference.
17726         * doc/gnulib-intro.texi: Likewise.
17727         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
17728         * modules/fnmatch (Description): Reword to say "the ... function".
17729         * modules/full-read (Description): Likewise.
17730         * modules/full-write (Description): Likewise.
17731         * modules/safe-read (Description): Likewise.
17732         * modules/safe-write (Description): Likewise.
17733         * modules/strchrnul (Description): Likewise.
17734         * modules/trim (Description): Likewise.
17735         * modules/error (Description): Remove parentheses from symbol
17736         references.
17737         * modules/verror (Description): Likewise.
17738         Reported by Karl Berry.
17739
17740 2007-12-25  Bruno Haible  <bruno@clisp.org>
17741
17742         Fixup after 2007-10-16 commit.
17743         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
17744
17745 2007-12-24  Bruno Haible  <bruno@clisp.org>
17746
17747         Make --enable-relocatable work with DESTDIR.
17748         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
17749         to compute installdir from destprog.
17750         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
17751         also set the RELOC_DESTDIR variable.
17752         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
17753
17754 2007-12-24  Bruno Haible  <bruno@clisp.org>
17755
17756         Fix link error due to xalloc_die().
17757         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
17758         of xreadlink.
17759         * lib/relocwrapper.c: Update comments.
17760         * build-aux/install-reloc: Remove xreadlink.c from file list.
17761         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
17762         xreadlink.c.
17763         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
17764
17765 2007-12-24  Bruno Haible  <bruno@clisp.org>
17766
17767         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
17768         * lib/setenv.h: Remove file.
17769         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
17770         lib/setenv.h.
17771         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
17772         (Depends-on): Add stdlib.
17773         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
17774         gl_FUNC_UNSETENV.
17775         (Include): Replace setenv.h with <stdlib.h>.
17776         * modules/unsetenv: New file.
17777         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
17778         * lib/unsetenv.c: Include <stdlib.h> first.
17779         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
17780         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
17781         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
17782         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
17783         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
17784         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
17785         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
17786         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
17787         * doc/functions/unsetenv.texi: Update.
17788         * modules/xsetenv (Depends-on): Add unsetenv.
17789         * modules/getdate (Depends-on): Likewise.
17790         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
17791         * lib/xsetenv.c: Don't include setenv.h.
17792         * lib/getdate.y: Likewise.
17793         * lib/relocwrapper.c: Likewise.
17794         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
17795         (Depends-on): Add stdlib.
17796         * NEWS: Mention the changes.
17797         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
17798
17799 2007-12-23  Bruno Haible  <bruno@clisp.org>
17800
17801         * lib/memmem.c (memmem): Use lowercase variable names. Tab
17802         indentation.
17803
17804 2007-12-23  Bruno Haible  <bruno@clisp.org>
17805
17806         * lib/c-strcasestr.c: Add more comments.
17807         * lib/c-strstr.c: Likewise.
17808         * lib/mbscasestr.c: Likewise.
17809         * lib/mbsstr.c: Likewise.
17810         * lib/strcasestr.c: Likewise.
17811         * lib/memmem.c: Likewise.
17812
17813 2007-12-23  Bruno Haible  <bruno@clisp.org>
17814
17815         * tests/test-memmem.c: Include <string.h> first.
17816
17817 2007-12-22  Bruno Haible  <bruno@clisp.org>
17818
17819         * gnulib-tool (func_create_testdir): Change $auxdir while generating
17820         the contents of $testsbase.
17821         Reported by Ralf Wildenhues.
17822
17823 2007-12-22  Bruno Haible  <bruno@clisp.org>
17824
17825         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
17826         two variables local_ldadd_before, local_ldadd_last.
17827
17828 2007-12-20  Eric Blake  <ebb9@byu.net>
17829
17830         Work around circular library issue when cross-compiling.
17831         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
17832         that progname.o does not need to pull in rpl_memcmp.
17833
17834 2007-12-19  Eric Blake  <ebb9@byu.net>
17835
17836         Fix memmem to avoid O(n^2) worst-case complexity.
17837         * lib/memmem.c (knuth_morris_pratt): New function.
17838         (memmem): Use it if first few naive iterations fail.
17839         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
17840         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
17841         * modules/memchr (License): Likewise.
17842         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
17843         malloca.
17844         * tests/test-memmem.c: Rewrite, borrowing ideas from
17845         test-mbsstr1.c; the old version wouldn't even compile!
17846         * modules/memmem-tests: New file.
17847         * lib/string.in.h (rpl_memmem): Add declaration.
17848         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
17849         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
17850         REPLACE_MEMMEM.
17851
17852 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17853
17854         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
17855         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
17856         before any system include files, and undef after them all.  This
17857         should fix a problem on VMS reported by John E. Malmberg in
17858         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
17859
17860 2007-12-17  Eric Blake  <ebb9@byu.net>
17861
17862         Revert addition of verify, for BSD/OS.
17863         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
17864         can't handle large files, for the sake of obsolete platforms.
17865         * modules/fseeko (Depends-on): Remove verify.
17866         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
17867         * doc/functions/ftello.texi (ftello): Likewise.
17868         * doc/functions/fgetpos.texi (fgetpos): Likewise.
17869         Reported by Larry Jones.
17870
17871 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
17872
17873         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
17874         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
17875
17876 2007-12-17  Jim Meyering  <meyering@redhat.com>
17877
17878         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
17879         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
17880         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
17881         * modules/getcwd (Depends-on): Add openat.
17882         Reported by Petr Salinger.
17883
17884 2007-12-17  Bruno Haible  <bruno@clisp.org>
17885
17886         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
17887         avoid a segmentation fault of the configure test on x86_64 systems.
17888
17889 2007-12-15  Jim Meyering  <meyering@redhat.com>
17890
17891         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
17892
17893 2007-12-13  Eric Blake  <ebb9@byu.net>
17894
17895         Another fseek test.
17896         * tests/test-fseek.c (main): Also test ungetc handling.
17897         * tests/test-fseeko.c (main): Likewise.
17898         * modules/fseeko (Depends-on): Add verify.
17899         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
17900         large.
17901         Reported by Larry Jones.
17902
17903         Fix fseeko on mingw.
17904         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
17905         seek.
17906
17907         Beef up fseek tests.
17908         * tests/test-fseek.c (main): Also test eof handling.
17909         * tests/test-fseeko.c (main): Likewise.
17910         Reported by Larry Jones.
17911
17912 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
17913
17914         Fix fseeko on BSD-based platforms.
17915         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
17916         successful seek.
17917
17918 2007-12-12  Eric Blake  <ebb9@byu.net>
17919
17920         Allow circular dependency of separate libtests.a
17921         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
17922         when use_libtests.
17923
17924 2007-12-11  Eric Blake  <ebb9@byu.net>
17925
17926         Fix bug with -0.0L in previous patch.
17927         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
17928         * tests/test-isnan.c (main): Also test on zeroes.
17929         * tests/test-isnanf.c (main): Likewise.
17930         * tests/test-isnanl.h (main): Likewise.
17931
17932         Detect pseudo-denormals on x86 even when cross-compiling.
17933         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
17934         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
17935         invalid bit patterns that happen to satisfy ==.
17936
17937         Avoid link failures with separate libtests.a.
17938         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
17939         last, to satisfy circular dependencies.
17940
17941 2007-12-11  Eric Blake  <ebb9@byu.net>
17942         and Bruno Haible  <bruno@clisp.org>
17943
17944         Fix OpenBSD 4.0 <float.h> handling of long double.
17945         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
17946         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
17947         * doc/headers/float.texi (float.h): Document OpenBSD bug.
17948
17949 2007-12-11  Jim Meyering  <meyering@redhat.com>
17950
17951         * users.txt: Add libvirt.
17952
17953         Support versions of autoconf prior to 2.59c.
17954         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
17955         if it is not already defined.
17956
17957 2007-12-09  Bruno Haible  <bruno@clisp.org>
17958
17959         Let 'gnulib-tool --import' collect sources needed for the tests in
17960         tests/ rather than in lib/.
17961         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
17962         argument. If true, add rules to generate libtests.a, and put libtests.a
17963         into $(LDADD). Consider source files in subdirectories and set
17964         uses_subdirs.
17965         (func_emit_initmacro_start, func_emit_initmacro_end,
17966         func_emit_initmacro_done): Pass all arguments explicitly.
17967         (func_import): Determine two module lists main_modules,
17968         testsrelated_modules. Determine use_libtests. Determine two variables
17969         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
17970         instead of just sed_transform_lib_file. Determine two variables
17971         main_files and testsrelated_files. Compute 'files' as the union of
17972         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
17973         func_add_or_update. In the generated gnulib-comp.m4, collect the
17974         object files for tests/ in different variables than those for lib/.
17975         Substitute LIBTESTS_LIBDEPS.
17976         (func_create_testdir): Combine the uses_subdirs results from
17977         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
17978
17979 2007-12-09  Bruno Haible  <bruno@clisp.org>
17980
17981         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
17982         the build-aux directory.
17983
17984 2007-12-09  Bruno Haible  <bruno@clisp.org>
17985
17986         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
17987         introduced on 2006-09-09.
17988
17989 2007-12-07  Jim Meyering  <meyering@redhat.com>
17990
17991         Let these macros work also with autoconf-2.59.
17992         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
17993         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
17994         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17995
17996 2007-12-06  Jim Meyering  <meyering@redhat.com>
17997
17998         Avoid a configure-time syntax error in gl_FUNC_ACL.
17999         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
18000         function in each branch, before testing the cache variable.
18001
18002 2007-12-04  Eric Blake  <ebb9@byu.net>
18003
18004         Make scripts executable.
18005         * build-aux/config.guess: Add execute permissions.
18006         * build-aux/config.sub: Likewise.
18007         * build-aux/gendocs.sh: Likewise.
18008
18009         Fix frexp on mingw.
18010         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
18011         cross-compiling.
18012         * doc/functions/frexp.texi (frexp): Document the bug.
18013
18014         Make cygwin fseeko check more reliable.
18015         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
18016         version numbers, rather than unrelated feature check.
18017         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
18018         * doc/functions/ftello.texi (ftello): Likewise.
18019         Reported by Bruno Haible.
18020
18021         * m4/strerror.m4: Bump version number.
18022
18023 2007-12-03  Bruno Haible  <bruno@clisp.org>
18024
18025         * doc/functions/mprotect.texi: Mention the mingw problem.
18026
18027 2007-12-03  Eric Blake  <ebb9@byu.net>
18028
18029         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
18030         REPLACE_STRERROR is initialized before this macro.
18031
18032 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
18033
18034         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
18035         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
18036         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
18037         put -lsec in even for programs other than 'ls'.  This fixes a problem
18038         for gettext reported by Bruno Haible in
18039         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
18040         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
18041         Add support for Solaris 10.  This isn't efficient, but should get the
18042         job done for now.
18043
18044 2007-12-03  James Youngman  <jay@gnu.org>
18045
18046         * doc/regexprops-generic.texi: change "an close-group" to "a
18047         close-group" and "illegal" to "not allowed".
18048
18049 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18050
18051         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
18052         pr_byname.h. Needed for the rare case when the maintainer has done
18053         "make maintainer-clean" in the source directory and then attempts a
18054         build outside the source directory.
18055         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
18056         scripts_byname.h.
18057
18058 2007-12-02  Martin Lambers <marlam@marlam.de>
18059             Bruno Haible  <bruno@clisp.org>
18060
18061         * lib/getpagesize.h: Remove file.
18062         * lib/unistd.in.h: Include declaration of getpagesize here.
18063         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
18064         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
18065         HAVE_SYS_PARAM_H.
18066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
18067         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
18068         * modules/getpagesize (Files): Remove lib/getpagesize.h.
18069         (Depends-on): Add unistd.
18070         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18071         (Include): Use <unistd.h> instead of getpagesize.h.
18072         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
18073         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
18074         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
18075         gl_GETPAGESIZE invocation, already handled by module dependency.
18076         * lib/pagealign_alloc.c: Don't include getpagesize.h.
18077
18078 2007-12-02  Bruno Haible  <bruno@clisp.org>
18079
18080         * modules/strings-tests: New file.
18081         * tests/test-strings.c: New file.
18082
18083         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
18084         * lib/strings.in.h: New file.
18085         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
18086         * m4/strings_h.m4: New file.
18087         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
18088         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
18089         * modules/strings: New file.
18090         * modules/string (Makefile.am): Update.
18091         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
18092         Reported by Karl Berry.
18093
18094 2007-12-01  Eric Blake  <ebb9@byu.net>
18095
18096         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
18097         accomodate fix in cygwin 1.5.25.
18098
18099 2007-12-01  Jim Meyering  <meyering@redhat.com>
18100
18101         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
18102         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
18103         that would inhibit utf8-optimization of a regexp containing line-
18104         or buffer-anchors, e.g., `^', `$'.
18105
18106 2007-11-30  Bruno Haible  <bruno@clisp.org>
18107
18108         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
18109         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
18110         glthread_recursive_lock_init.
18111         * lib/lock.c (glthread_recursive_lock_init)
18112         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
18113         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18114
18115 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
18116
18117         New function qset_acl, like set_acl but with syscall semantics.
18118         * lib/acl.h (qset_acl): New decl.
18119         * lib/acl.c (qset_acl): New function.
18120         (set_acl): Use new function.  Use more-consistent diagnostics.
18121
18122 2007-11-28  Jim Meyering  <meyering@redhat.com>
18123
18124         * modules/physmem (License): Change from GPL to LGPLv2+.
18125
18126 2007-11-26  Bruno Haible  <bruno@clisp.org>
18127
18128         * lib/vasnprintf.c (decode_long_double): Don't abort if the
18129         'long double' type has excess precision.
18130         Reported by Jim Meyering in
18131         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
18132
18133 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18134
18135         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
18136         Sync from <http://gnu.org/licenses>.
18137         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
18138         with license text from same location.
18139         * doc/maintain.texi, doc/standards.texi:  Sync from
18140         <http://savannah.gnu.org/projects/gnustandards>.
18141
18142 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
18143         and Jim Meyering  <meyering@redhat.com>
18144
18145         Adjust getdate' grammar to accept a slightly more regular language.
18146         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
18147         Before, the former was rejected.
18148         * lib/getdate.y (digits_to_date_time): New function, factored
18149         out of ...
18150         (number): ...here.  Just call digits_to_date_time.
18151         (hybrid): New non-terminal to handle an <unsigned number,
18152         signed relative offset> sequence consistently.
18153
18154 2007-11-18  Jim Meyering  <meyering@redhat.com>
18155
18156         Pull my changes from coreutils:
18157         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
18158         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
18159         use of $gnulib_tool_option_extras, so that it's separated from the
18160         preceding argument.
18161
18162         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
18163         * build-aux/bootstrap (cp_mark_as_generated): Create any required
18164         parent destination directories before copying a file into place.
18165
18166 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
18167
18168         bootstrap: work also with 4-argument variant of AC_INIT
18169         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
18170
18171 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
18172
18173         Port test-getaddrinfo to Solaris.
18174         Problem reported by Bruno Haible in
18175         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
18176         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
18177         explanation of setting 'hints'.
18178         Don't reject an implementation merely because it returns EAI_SERVICE.
18179         (EAI_SERVICE): Define to 0 if not defined.
18180
18181 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18182
18183         The license of gnu-make and posix-shell is now "GPLed build tool".
18184         * modules/gnu-make (License): Likewise.
18185         * modules/posix-shell (License): Likewise.
18186
18187         New module posix-shell, for determining a POSIX shell
18188         or perhaps something that is close enough to a POSIX shell.
18189         * m4/posix-shell.m4: New file.
18190         * modules/posix-shell: New file.
18191
18192         * MODULES.html.sh: Mention new module.
18193
18194         New module gnu-make, for determining whether we're using GNU Make.
18195         * m4/gnu-make.m4: New file.
18196         * modules/gnu-make: New file.
18197         * MODULES.html.sh: Mention new module.
18198
18199 2007-11-14  Jim Meyering  <meyering@redhat.com>
18200
18201         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
18202         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
18203         use this macro to create a function _definition_.
18204         Remove useless "#undef ARGMATCH_DIE".
18205
18206 2007-11-14  Bruno Haible  <bruno@clisp.org>
18207
18208         * lib/config.charset: Update for OpenBSD 4.1.
18209         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
18210
18211 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
18212
18213         Document 64-bit #if problems in stdint.texi.
18214         * doc/headers/stdint.texi (stdint.h): Mention problems with
18215         64-bit-#if, and how to work around them.
18216
18217         Don't insist on 'long long int' support in the preprocessor.  It
18218         breaks too many things.  For example, PRIdMAX still uses a 'long
18219         long int' format with the latest Sun compiler, even though
18220         HAVE_LONG_LONG_INT isn't defined due to that compiler's
18221         preprocessor problem.  This causes the latest coreutils to dump
18222         core on Solaris 10 sparc with the Sun C compiler.
18223         Instead, fix the 2007-10-16 problem in a different way, by evaluating
18224         the troublesome expressions at configure-time, not at #if-time.
18225         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
18226         preprocessor.
18227         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
18228         compile-time C checks, done at 'configure'-time.
18229         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
18230         * modules/inttypes (Makefile): Substitute the new symbols that
18231         gl_INTTYPES_H now generates.
18232         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
18233
18234 2007-11-12  Bruno Haible  <bruno@clisp.org>
18235
18236         Tests for Unicode character classification functions.
18237
18238         * modules/unictype/bidicategory-byname-tests: New file.
18239         * modules/unictype/bidicategory-name-tests: New file.
18240         * modules/unictype/bidicategory-of-tests: New file.
18241         * modules/unictype/bidicategory-test-tests: New file.
18242         * modules/unictype/block-list-tests: New file.
18243         * modules/unictype/block-of-tests: New file.
18244         * modules/unictype/block-test-tests: New file.
18245         * modules/unictype/category-C-tests: New file.
18246         * modules/unictype/category-Cc-tests: New file.
18247         * modules/unictype/category-Cf-tests: New file.
18248         * modules/unictype/category-Cn-tests: New file.
18249         * modules/unictype/category-Co-tests: New file.
18250         * modules/unictype/category-Cs-tests: New file.
18251         * modules/unictype/category-L-tests: New file.
18252         * modules/unictype/category-Ll-tests: New file.
18253         * modules/unictype/category-Lm-tests: New file.
18254         * modules/unictype/category-Lo-tests: New file.
18255         * modules/unictype/category-Lt-tests: New file.
18256         * modules/unictype/category-Lu-tests: New file.
18257         * modules/unictype/category-M-tests: New file.
18258         * modules/unictype/category-Mc-tests: New file.
18259         * modules/unictype/category-Me-tests: New file.
18260         * modules/unictype/category-Mn-tests: New file.
18261         * modules/unictype/category-N-tests: New file.
18262         * modules/unictype/category-Nd-tests: New file.
18263         * modules/unictype/category-Nl-tests: New file.
18264         * modules/unictype/category-No-tests: New file.
18265         * modules/unictype/category-P-tests: New file.
18266         * modules/unictype/category-Pc-tests: New file.
18267         * modules/unictype/category-Pd-tests: New file.
18268         * modules/unictype/category-Pe-tests: New file.
18269         * modules/unictype/category-Pf-tests: New file.
18270         * modules/unictype/category-Pi-tests: New file.
18271         * modules/unictype/category-Po-tests: New file.
18272         * modules/unictype/category-Ps-tests: New file.
18273         * modules/unictype/category-S-tests: New file.
18274         * modules/unictype/category-Sc-tests: New file.
18275         * modules/unictype/category-Sk-tests: New file.
18276         * modules/unictype/category-Sm-tests: New file.
18277         * modules/unictype/category-So-tests: New file.
18278         * modules/unictype/category-Z-tests: New file.
18279         * modules/unictype/category-Zl-tests: New file.
18280         * modules/unictype/category-Zp-tests: New file.
18281         * modules/unictype/category-Zs-tests: New file.
18282         * modules/unictype/category-and-not-tests: New file.
18283         * modules/unictype/category-and-tests: New file.
18284         * modules/unictype/category-byname-tests: New file.
18285         * modules/unictype/category-name-tests: New file.
18286         * modules/unictype/category-none-tests: New file.
18287         * modules/unictype/category-of-tests: New file.
18288         * modules/unictype/category-or-tests: New file.
18289         * modules/unictype/category-test-withtable-tests: New file.
18290         * modules/unictype/combining-class-tests: New file.
18291         * modules/unictype/ctype-alnum-tests: New file.
18292         * modules/unictype/ctype-alpha-tests: New file.
18293         * modules/unictype/ctype-blank-tests: New file.
18294         * modules/unictype/ctype-cntrl-tests: New file.
18295         * modules/unictype/ctype-digit-tests: New file.
18296         * modules/unictype/ctype-graph-tests: New file.
18297         * modules/unictype/ctype-lower-tests: New file.
18298         * modules/unictype/ctype-print-tests: New file.
18299         * modules/unictype/ctype-punct-tests: New file.
18300         * modules/unictype/ctype-space-tests: New file.
18301         * modules/unictype/ctype-upper-tests: New file.
18302         * modules/unictype/ctype-xdigit-tests: New file.
18303         * modules/unictype/decimal-digit-tests: New file.
18304         * modules/unictype/digit-tests: New file.
18305         * modules/unictype/mirror-tests: New file.
18306         * modules/unictype/numeric-tests: New file.
18307         * modules/unictype/property-alphabetic-tests: New file.
18308         * modules/unictype/property-ascii-hex-digit-tests: New file.
18309         * modules/unictype/property-bidi-arabic-digit-tests: New file.
18310         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
18311         * modules/unictype/property-bidi-block-separator-tests: New file.
18312         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
18313         * modules/unictype/property-bidi-common-separator-tests: New file.
18314         * modules/unictype/property-bidi-control-tests: New file.
18315         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
18316         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
18317         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
18318         * modules/unictype/property-bidi-european-digit-tests: New file.
18319         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
18320         * modules/unictype/property-bidi-left-to-right-tests: New file.
18321         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
18322         * modules/unictype/property-bidi-other-neutral-tests: New file.
18323         * modules/unictype/property-bidi-pdf-tests: New file.
18324         * modules/unictype/property-bidi-segment-separator-tests: New file.
18325         * modules/unictype/property-bidi-whitespace-tests: New file.
18326         * modules/unictype/property-byname-tests: New file.
18327         * modules/unictype/property-combining-tests: New file.
18328         * modules/unictype/property-composite-tests: New file.
18329         * modules/unictype/property-currency-symbol-tests: New file.
18330         * modules/unictype/property-dash-tests: New file.
18331         * modules/unictype/property-decimal-digit-tests: New file.
18332         * modules/unictype/property-default-ignorable-code-point-tests: New file.
18333         * modules/unictype/property-deprecated-tests: New file.
18334         * modules/unictype/property-diacritic-tests: New file.
18335         * modules/unictype/property-extender-tests: New file.
18336         * modules/unictype/property-format-control-tests: New file.
18337         * modules/unictype/property-grapheme-base-tests: New file.
18338         * modules/unictype/property-grapheme-extend-tests: New file.
18339         * modules/unictype/property-grapheme-link-tests: New file.
18340         * modules/unictype/property-hex-digit-tests: New file.
18341         * modules/unictype/property-hyphen-tests: New file.
18342         * modules/unictype/property-id-continue-tests: New file.
18343         * modules/unictype/property-id-start-tests: New file.
18344         * modules/unictype/property-ideographic-tests: New file.
18345         * modules/unictype/property-ids-binary-operator-tests: New file.
18346         * modules/unictype/property-ids-trinary-operator-tests: New file.
18347         * modules/unictype/property-ignorable-control-tests: New file.
18348         * modules/unictype/property-iso-control-tests: New file.
18349         * modules/unictype/property-join-control-tests: New file.
18350         * modules/unictype/property-left-of-pair-tests: New file.
18351         * modules/unictype/property-line-separator-tests: New file.
18352         * modules/unictype/property-logical-order-exception-tests: New file.
18353         * modules/unictype/property-lowercase-tests: New file.
18354         * modules/unictype/property-math-tests: New file.
18355         * modules/unictype/property-non-break-tests: New file.
18356         * modules/unictype/property-not-a-character-tests: New file.
18357         * modules/unictype/property-numeric-tests: New file.
18358         * modules/unictype/property-other-alphabetic-tests: New file.
18359         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
18360         * modules/unictype/property-other-grapheme-extend-tests: New file.
18361         * modules/unictype/property-other-id-continue-tests: New file.
18362         * modules/unictype/property-other-id-start-tests: New file.
18363         * modules/unictype/property-other-lowercase-tests: New file.
18364         * modules/unictype/property-other-math-tests: New file.
18365         * modules/unictype/property-other-uppercase-tests: New file.
18366         * modules/unictype/property-paired-punctuation-tests: New file.
18367         * modules/unictype/property-paragraph-separator-tests: New file.
18368         * modules/unictype/property-pattern-syntax-tests: New file.
18369         * modules/unictype/property-pattern-white-space-tests: New file.
18370         * modules/unictype/property-private-use-tests: New file.
18371         * modules/unictype/property-punctuation-tests: New file.
18372         * modules/unictype/property-quotation-mark-tests: New file.
18373         * modules/unictype/property-radical-tests: New file.
18374         * modules/unictype/property-sentence-terminal-tests: New file.
18375         * modules/unictype/property-soft-dotted-tests: New file.
18376         * modules/unictype/property-space-tests: New file.
18377         * modules/unictype/property-terminal-punctuation-tests: New file.
18378         * modules/unictype/property-test-tests: New file.
18379         * modules/unictype/property-titlecase-tests: New file.
18380         * modules/unictype/property-unassigned-code-value-tests: New file.
18381         * modules/unictype/property-unified-ideograph-tests: New file.
18382         * modules/unictype/property-uppercase-tests: New file.
18383         * modules/unictype/property-variation-selector-tests: New file.
18384         * modules/unictype/property-white-space-tests: New file.
18385         * modules/unictype/property-xid-continue-tests: New file.
18386         * modules/unictype/property-xid-start-tests: New file.
18387         * modules/unictype/property-zero-width-tests: New file.
18388         * modules/unictype/scripts-tests: New file.
18389         * modules/unictype/syntax-c-ident-tests: New file.
18390         * modules/unictype/syntax-c-whitespace-tests: New file.
18391         * modules/unictype/syntax-java-ident-tests: New file.
18392         * modules/unictype/syntax-java-whitespace-tests: New file.
18393         * tests/unictype/test-bidi_byname.c: New file.
18394         * tests/unictype/test-bidi_name.c: New file.
18395         * tests/unictype/test-bidi_of.c: New file.
18396         * tests/unictype/test-bidi_test.c: New file.
18397         * tests/unictype/test-block_list.c: New file.
18398         * tests/unictype/test-block_of.c: New file.
18399         * tests/unictype/test-block_test.c: New file.
18400         * tests/unictype/test-categ_and.c: New file.
18401         * tests/unictype/test-categ_and_not.c: New file.
18402         * tests/unictype/test-categ_byname.c: New file.
18403         * tests/unictype/test-categ_name.c: New file.
18404         * tests/unictype/test-categ_none.c: New file.
18405         * tests/unictype/test-categ_of.c: New file.
18406         * tests/unictype/test-categ_or.c: New file.
18407         * tests/unictype/test-categ_test_withtable.c: New file.
18408         * tests/unictype/test-combining.c: New file.
18409         * tests/unictype/test-decdigit.c: New file.
18410         * tests/unictype/test-digit.c: New file.
18411         * tests/unictype/test-mirror.c: New file.
18412         * tests/unictype/test-numeric.c: New file.
18413         * tests/unictype/test-pr_byname.c: New file.
18414         * tests/unictype/test-pr_test.c: New file.
18415         * tests/unictype/test-predicate-part1.h: New file.
18416         * tests/unictype/test-predicate-part2.h: New file.
18417         * tests/unictype/test-scripts.c: New file.
18418         * tests/unictype/test-sy_c_ident.c: New file.
18419         * tests/unictype/test-sy_java_ident.c: New file.
18420
18421         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
18422         for Unicode 5.0.0.
18423         * tests/unictype/test-categ_Cc.c: Likewise.
18424         * tests/unictype/test-categ_Cf.c: Likewise.
18425         * tests/unictype/test-categ_Cn.c: Likewise.
18426         * tests/unictype/test-categ_Co.c: Likewise.
18427         * tests/unictype/test-categ_Cs.c: Likewise.
18428         * tests/unictype/test-categ_L.c: Likewise.
18429         * tests/unictype/test-categ_Ll.c: Likewise.
18430         * tests/unictype/test-categ_Lm.c: Likewise.
18431         * tests/unictype/test-categ_Lo.c: Likewise.
18432         * tests/unictype/test-categ_Lt.c: Likewise.
18433         * tests/unictype/test-categ_Lu.c: Likewise.
18434         * tests/unictype/test-categ_M.c: Likewise.
18435         * tests/unictype/test-categ_Mc.c: Likewise.
18436         * tests/unictype/test-categ_Me.c: Likewise.
18437         * tests/unictype/test-categ_Mn.c: Likewise.
18438         * tests/unictype/test-categ_N.c: Likewise.
18439         * tests/unictype/test-categ_Nd.c: Likewise.
18440         * tests/unictype/test-categ_Nl.c: Likewise.
18441         * tests/unictype/test-categ_No.c: Likewise.
18442         * tests/unictype/test-categ_P.c: Likewise.
18443         * tests/unictype/test-categ_Pc.c: Likewise.
18444         * tests/unictype/test-categ_Pd.c: Likewise.
18445         * tests/unictype/test-categ_Pe.c: Likewise.
18446         * tests/unictype/test-categ_Pf.c: Likewise.
18447         * tests/unictype/test-categ_Pi.c: Likewise.
18448         * tests/unictype/test-categ_Po.c: Likewise.
18449         * tests/unictype/test-categ_Ps.c: Likewise.
18450         * tests/unictype/test-categ_S.c: Likewise.
18451         * tests/unictype/test-categ_Sc.c: Likewise.
18452         * tests/unictype/test-categ_Sk.c: Likewise.
18453         * tests/unictype/test-categ_Sm.c: Likewise.
18454         * tests/unictype/test-categ_So.c: Likewise.
18455         * tests/unictype/test-categ_Z.c: Likewise.
18456         * tests/unictype/test-categ_Zl.c: Likewise.
18457         * tests/unictype/test-categ_Zp.c: Likewise.
18458         * tests/unictype/test-categ_Zs.c: Likewise.
18459         * tests/unictype/test-ctype_alnum.c: Likewise.
18460         * tests/unictype/test-ctype_alpha.c: Likewise.
18461         * tests/unictype/test-ctype_blank.c: Likewise.
18462         * tests/unictype/test-ctype_cntrl.c: Likewise.
18463         * tests/unictype/test-ctype_digit.c: Likewise.
18464         * tests/unictype/test-ctype_graph.c: Likewise.
18465         * tests/unictype/test-ctype_lower.c: Likewise.
18466         * tests/unictype/test-ctype_print.c: Likewise.
18467         * tests/unictype/test-ctype_punct.c: Likewise.
18468         * tests/unictype/test-ctype_space.c: Likewise.
18469         * tests/unictype/test-ctype_upper.c: Likewise.
18470         * tests/unictype/test-ctype_xdigit.c: Likewise.
18471         * tests/unictype/test-decdigit.h: Likewise.
18472         * tests/unictype/test-digit.h: Likewise.
18473         * tests/unictype/test-numeric.h: Likewise.
18474         * tests/unictype/test-pr_alphabetic.c: Likewise.
18475         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
18476         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
18477         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
18478         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
18479         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
18480         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
18481         * tests/unictype/test-pr_bidi_control.c: Likewise.
18482         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
18483         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
18484         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
18485         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
18486         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
18487         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
18488         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
18489         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
18490         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
18491         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
18492         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
18493         * tests/unictype/test-pr_combining.c: Likewise.
18494         * tests/unictype/test-pr_composite.c: Likewise.
18495         * tests/unictype/test-pr_currency_symbol.c: Likewise.
18496         * tests/unictype/test-pr_dash.c: Likewise.
18497         * tests/unictype/test-pr_decimal_digit.c: Likewise.
18498         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
18499         * tests/unictype/test-pr_deprecated.c: Likewise.
18500         * tests/unictype/test-pr_diacritic.c: Likewise.
18501         * tests/unictype/test-pr_extender.c: Likewise.
18502         * tests/unictype/test-pr_format_control.c: Likewise.
18503         * tests/unictype/test-pr_grapheme_base.c: Likewise.
18504         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
18505         * tests/unictype/test-pr_grapheme_link.c: Likewise.
18506         * tests/unictype/test-pr_hex_digit.c: Likewise.
18507         * tests/unictype/test-pr_hyphen.c: Likewise.
18508         * tests/unictype/test-pr_id_continue.c: Likewise.
18509         * tests/unictype/test-pr_id_start.c: Likewise.
18510         * tests/unictype/test-pr_ideographic.c: Likewise.
18511         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
18512         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
18513         * tests/unictype/test-pr_ignorable_control.c: Likewise.
18514         * tests/unictype/test-pr_iso_control.c: Likewise.
18515         * tests/unictype/test-pr_join_control.c: Likewise.
18516         * tests/unictype/test-pr_left_of_pair.c: Likewise.
18517         * tests/unictype/test-pr_line_separator.c: Likewise.
18518         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
18519         * tests/unictype/test-pr_lowercase.c: Likewise.
18520         * tests/unictype/test-pr_math.c: Likewise.
18521         * tests/unictype/test-pr_non_break.c: Likewise.
18522         * tests/unictype/test-pr_not_a_character.c: Likewise.
18523         * tests/unictype/test-pr_numeric.c: Likewise.
18524         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
18525         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
18526         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
18527         * tests/unictype/test-pr_other_id_continue.c: Likewise.
18528         * tests/unictype/test-pr_other_id_start.c: Likewise.
18529         * tests/unictype/test-pr_other_lowercase.c: Likewise.
18530         * tests/unictype/test-pr_other_math.c: Likewise.
18531         * tests/unictype/test-pr_other_uppercase.c: Likewise.
18532         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
18533         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
18534         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
18535         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
18536         * tests/unictype/test-pr_private_use.c: Likewise.
18537         * tests/unictype/test-pr_punctuation.c: Likewise.
18538         * tests/unictype/test-pr_quotation_mark.c: Likewise.
18539         * tests/unictype/test-pr_radical.c: Likewise.
18540         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
18541         * tests/unictype/test-pr_soft_dotted.c: Likewise.
18542         * tests/unictype/test-pr_space.c: Likewise.
18543         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
18544         * tests/unictype/test-pr_titlecase.c: Likewise.
18545         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
18546         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
18547         * tests/unictype/test-pr_uppercase.c: Likewise.
18548         * tests/unictype/test-pr_variation_selector.c: Likewise.
18549         * tests/unictype/test-pr_white_space.c: Likewise.
18550         * tests/unictype/test-pr_xid_continue.c: Likewise.
18551         * tests/unictype/test-pr_xid_start.c: Likewise.
18552         * tests/unictype/test-pr_zero_width.c: Likewise.
18553         * tests/unictype/test-sy_c_whitespace.c: Likewise.
18554         * tests/unictype/test-sy_java_whitespace.c: Likewise.
18555
18556 2007-11-12  Bruno Haible  <bruno@clisp.org>
18557
18558         Unicode character classification functions.
18559         * lib/unictype.h: New file.
18560         * modules/unictype/base: New file.
18561         * modules/unictype/category-L: New file.
18562         * modules/unictype/category-Lu: New file.
18563         * modules/unictype/category-Ll: New file.
18564         * modules/unictype/category-Lt: New file.
18565         * modules/unictype/category-Lm: New file.
18566         * modules/unictype/category-Lo: New file.
18567         * modules/unictype/category-M: New file.
18568         * modules/unictype/category-Mn: New file.
18569         * modules/unictype/category-Mc: New file.
18570         * modules/unictype/category-Me: New file.
18571         * modules/unictype/category-N: New file.
18572         * modules/unictype/category-Nd: New file.
18573         * modules/unictype/category-Nl: New file.
18574         * modules/unictype/category-No: New file.
18575         * modules/unictype/category-P: New file.
18576         * modules/unictype/category-Pc: New file.
18577         * modules/unictype/category-Pd: New file.
18578         * modules/unictype/category-Ps: New file.
18579         * modules/unictype/category-Pe: New file.
18580         * modules/unictype/category-Pi: New file.
18581         * modules/unictype/category-Pf: New file.
18582         * modules/unictype/category-Po: New file.
18583         * modules/unictype/category-S: New file.
18584         * modules/unictype/category-Sm: New file.
18585         * modules/unictype/category-Sc: New file.
18586         * modules/unictype/category-Sk: New file.
18587         * modules/unictype/category-So: New file.
18588         * modules/unictype/category-Z: New file.
18589         * modules/unictype/category-Zs: New file.
18590         * modules/unictype/category-Zl: New file.
18591         * modules/unictype/category-Zp: New file.
18592         * modules/unictype/category-C: New file.
18593         * modules/unictype/category-Cc: New file.
18594         * modules/unictype/category-Cf: New file.
18595         * modules/unictype/category-Cs: New file.
18596         * modules/unictype/category-Co: New file.
18597         * modules/unictype/category-Cn: New file.
18598         * modules/unictype/category-or: New file.
18599         * modules/unictype/category-of: New file.
18600         * modules/unictype/category-test: New file.
18601         * modules/unictype/category-test-withtable: New file.
18602         * modules/unictype/category-byname: New file.
18603         * modules/unictype/category-none: New file.
18604         * modules/unictype/category-and: New file.
18605         * modules/unictype/category-and-not: New file.
18606         * modules/unictype/category-name: New file.
18607         * modules/unictype/combining-class: New file.
18608         * modules/unictype/category-all: New file.
18609         * modules/unictype/bidicategory-all: New file.
18610         * modules/unictype/bidicategory-byname: New file.
18611         * modules/unictype/bidicategory-name: New file.
18612         * modules/unictype/bidicategory-of: New file.
18613         * modules/unictype/bidicategory-test: New file.
18614         * modules/unictype/decimal-digit: New file.
18615         * modules/unictype/digit: New file.
18616         * modules/unictype/numeric: New file.
18617         * modules/unictype/mirror: New file.
18618         * modules/unictype/property-white-space: New file.
18619         * modules/unictype/property-alphabetic: New file.
18620         * modules/unictype/property-other-alphabetic: New file.
18621         * modules/unictype/property-not-a-character: New file.
18622         * modules/unictype/property-default-ignorable-code-point: New file.
18623         * modules/unictype/property-other-default-ignorable-code-point: New
18624         file.
18625         * modules/unictype/property-deprecated: New file.
18626         * modules/unictype/property-logical-order-exception: New file.
18627         * modules/unictype/property-variation-selector: New file.
18628         * modules/unictype/property-private-use: New file.
18629         * modules/unictype/property-unassigned-code-value: New file.
18630         * modules/unictype/property-uppercase: New file.
18631         * modules/unictype/property-other-uppercase: New file.
18632         * modules/unictype/property-lowercase: New file.
18633         * modules/unictype/property-other-lowercase: New file.
18634         * modules/unictype/property-titlecase: New file.
18635         * modules/unictype/property-soft-dotted: New file.
18636         * modules/unictype/property-id-start: New file.
18637         * modules/unictype/property-other-id-start: New file.
18638         * modules/unictype/property-id-continue: New file.
18639         * modules/unictype/property-other-id-continue: New file.
18640         * modules/unictype/property-xid-start: New file.
18641         * modules/unictype/property-xid-continue: New file.
18642         * modules/unictype/property-pattern-white-space: New file.
18643         * modules/unictype/property-pattern-syntax: New file.
18644         * modules/unictype/property-join-control: New file.
18645         * modules/unictype/property-grapheme-base: New file.
18646         * modules/unictype/property-grapheme-extend: New file.
18647         * modules/unictype/property-other-grapheme-extend: New file.
18648         * modules/unictype/property-grapheme-link: New file.
18649         * modules/unictype/property-bidi-control: New file.
18650         * modules/unictype/property-bidi-left-to-right: New file.
18651         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
18652         * modules/unictype/property-bidi-arabic-right-to-left: New file.
18653         * modules/unictype/property-bidi-european-digit: New file.
18654         * modules/unictype/property-bidi-eur-num-separator: New file.
18655         * modules/unictype/property-bidi-eur-num-terminator: New file.
18656         * modules/unictype/property-bidi-arabic-digit: New file.
18657         * modules/unictype/property-bidi-common-separator: New file.
18658         * modules/unictype/property-bidi-block-separator: New file.
18659         * modules/unictype/property-bidi-segment-separator: New file.
18660         * modules/unictype/property-bidi-whitespace: New file.
18661         * modules/unictype/property-bidi-non-spacing-mark: New file.
18662         * modules/unictype/property-bidi-boundary-neutral: New file.
18663         * modules/unictype/property-bidi-pdf: New file.
18664         * modules/unictype/property-bidi-embedding-or-override: New file.
18665         * modules/unictype/property-bidi-other-neutral: New file.
18666         * modules/unictype/property-hex-digit: New file.
18667         * modules/unictype/property-ascii-hex-digit: New file.
18668         * modules/unictype/property-ideographic: New file.
18669         * modules/unictype/property-unified-ideograph: New file.
18670         * modules/unictype/property-radical: New file.
18671         * modules/unictype/property-ids-binary-operator: New file.
18672         * modules/unictype/property-ids-trinary-operator: New file.
18673         * modules/unictype/property-zero-width: New file.
18674         * modules/unictype/property-space: New file.
18675         * modules/unictype/property-non-break: New file.
18676         * modules/unictype/property-iso-control: New file.
18677         * modules/unictype/property-format-control: New file.
18678         * modules/unictype/property-dash: New file.
18679         * modules/unictype/property-hyphen: New file.
18680         * modules/unictype/property-punctuation: New file.
18681         * modules/unictype/property-line-separator: New file.
18682         * modules/unictype/property-paragraph-separator: New file.
18683         * modules/unictype/property-quotation-mark: New file.
18684         * modules/unictype/property-sentence-terminal: New file.
18685         * modules/unictype/property-terminal-punctuation: New file.
18686         * modules/unictype/property-currency-symbol: New file.
18687         * modules/unictype/property-math: New file.
18688         * modules/unictype/property-other-math: New file.
18689         * modules/unictype/property-paired-punctuation: New file.
18690         * modules/unictype/property-left-of-pair: New file.
18691         * modules/unictype/property-combining: New file.
18692         * modules/unictype/property-composite: New file.
18693         * modules/unictype/property-decimal-digit: New file.
18694         * modules/unictype/property-numeric: New file.
18695         * modules/unictype/property-diacritic: New file.
18696         * modules/unictype/property-extender: New file.
18697         * modules/unictype/property-ignorable-control: New file.
18698         * modules/unictype/property-test: New file.
18699         * modules/unictype/property-byname: New file.
18700         * modules/unictype/property-all: New file.
18701         * modules/unictype/scripts: New file.
18702         * modules/unictype/scripts-all: New file.
18703         * modules/unictype/block-of: New file.
18704         * modules/unictype/block-test: New file.
18705         * modules/unictype/block-list: New file.
18706         * modules/unictype/block-all: New file.
18707         * modules/unictype/syntax-c-whitespace: New file.
18708         * modules/unictype/syntax-java-whitespace: New file.
18709         * modules/unictype/syntax-c-ident: New file.
18710         * modules/unictype/syntax-java-ident: New file.
18711         * modules/unictype/ctype-alnum: New file.
18712         * modules/unictype/ctype-alpha: New file.
18713         * modules/unictype/ctype-cntrl: New file.
18714         * modules/unictype/ctype-digit: New file.
18715         * modules/unictype/ctype-graph: New file.
18716         * modules/unictype/ctype-lower: New file.
18717         * modules/unictype/ctype-print: New file.
18718         * modules/unictype/ctype-punct: New file.
18719         * modules/unictype/ctype-space: New file.
18720         * modules/unictype/ctype-upper: New file.
18721         * modules/unictype/ctype-xdigit: New file.
18722         * modules/unictype/ctype-blank: New file.
18723         * lib/unictype/bidi_byname.c: New file.
18724         * lib/unictype/bidi_name.c: New file.
18725         * lib/unictype/bidi_of.c: New file.
18726         * lib/unictype/bidi_test.c: New file.
18727         * lib/unictype/bitmap.h: New file.
18728         * lib/unictype/block_test.c: New file.
18729         * lib/unictype/blocks.c: New file.
18730         * lib/unictype/categ_C.c: New file.
18731         * lib/unictype/categ_Cc.c: New file.
18732         * lib/unictype/categ_Cf.c: New file.
18733         * lib/unictype/categ_Cn.c: New file.
18734         * lib/unictype/categ_Co.c: New file.
18735         * lib/unictype/categ_Cs.c: New file.
18736         * lib/unictype/categ_L.c: New file.
18737         * lib/unictype/categ_Ll.c: New file.
18738         * lib/unictype/categ_Lm.c: New file.
18739         * lib/unictype/categ_Lo.c: New file.
18740         * lib/unictype/categ_Lt.c: New file.
18741         * lib/unictype/categ_Lu.c: New file.
18742         * lib/unictype/categ_M.c: New file.
18743         * lib/unictype/categ_Mc.c: New file.
18744         * lib/unictype/categ_Me.c: New file.
18745         * lib/unictype/categ_Mn.c: New file.
18746         * lib/unictype/categ_N.c: New file.
18747         * lib/unictype/categ_Nd.c: New file.
18748         * lib/unictype/categ_Nl.c: New file.
18749         * lib/unictype/categ_No.c: New file.
18750         * lib/unictype/categ_P.c: New file.
18751         * lib/unictype/categ_Pc.c: New file.
18752         * lib/unictype/categ_Pd.c: New file.
18753         * lib/unictype/categ_Pe.c: New file.
18754         * lib/unictype/categ_Pf.c: New file.
18755         * lib/unictype/categ_Pi.c: New file.
18756         * lib/unictype/categ_Po.c: New file.
18757         * lib/unictype/categ_Ps.c: New file.
18758         * lib/unictype/categ_S.c: New file.
18759         * lib/unictype/categ_Sc.c: New file.
18760         * lib/unictype/categ_Sk.c: New file.
18761         * lib/unictype/categ_Sm.c: New file.
18762         * lib/unictype/categ_So.c: New file.
18763         * lib/unictype/categ_Z.c: New file.
18764         * lib/unictype/categ_Zl.c: New file.
18765         * lib/unictype/categ_Zp.c: New file.
18766         * lib/unictype/categ_Zs.c: New file.
18767         * lib/unictype/categ_and.c: New file.
18768         * lib/unictype/categ_and_not.c: New file.
18769         * lib/unictype/categ_byname.c: New file.
18770         * lib/unictype/categ_name.c: New file.
18771         * lib/unictype/categ_none.c: New file.
18772         * lib/unictype/categ_of.c: New file.
18773         * lib/unictype/categ_or.c: New file.
18774         * lib/unictype/categ_test.c: New file.
18775         * lib/unictype/combining.c: New file.
18776         * lib/unictype/ctype_alnum.c: New file.
18777         * lib/unictype/ctype_alpha.c: New file.
18778         * lib/unictype/ctype_blank.c: New file.
18779         * lib/unictype/ctype_cntrl.c: New file.
18780         * lib/unictype/ctype_digit.c: New file.
18781         * lib/unictype/ctype_graph.c: New file.
18782         * lib/unictype/ctype_lower.c: New file.
18783         * lib/unictype/ctype_print.c: New file.
18784         * lib/unictype/ctype_punct.c: New file.
18785         * lib/unictype/ctype_space.c: New file.
18786         * lib/unictype/ctype_upper.c: New file.
18787         * lib/unictype/ctype_xdigit.c: New file.
18788         * lib/unictype/decdigit.c: New file.
18789         * lib/unictype/digit.c: New file.
18790         * lib/unictype/identsyntaxmap.h: New file.
18791         * lib/unictype/mirror.c: New file.
18792         * lib/unictype/numeric.c: New file.
18793         * lib/unictype/pr_alphabetic.c: New file.
18794         * lib/unictype/pr_ascii_hex_digit.c: New file.
18795         * lib/unictype/pr_bidi_arabic_digit.c: New file.
18796         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
18797         * lib/unictype/pr_bidi_block_separator.c: New file.
18798         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
18799         * lib/unictype/pr_bidi_common_separator.c: New file.
18800         * lib/unictype/pr_bidi_control.c: New file.
18801         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
18802         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
18803         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
18804         * lib/unictype/pr_bidi_european_digit.c: New file.
18805         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
18806         * lib/unictype/pr_bidi_left_to_right.c: New file.
18807         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
18808         * lib/unictype/pr_bidi_other_neutral.c: New file.
18809         * lib/unictype/pr_bidi_pdf.c: New file.
18810         * lib/unictype/pr_bidi_segment_separator.c: New file.
18811         * lib/unictype/pr_bidi_whitespace.c: New file.
18812         * lib/unictype/pr_byname.c: New file.
18813         * lib/unictype/pr_byname.gperf: New file.
18814         * lib/unictype/pr_combining.c: New file.
18815         * lib/unictype/pr_composite.c: New file.
18816         * lib/unictype/pr_currency_symbol.c: New file.
18817         * lib/unictype/pr_dash.c: New file.
18818         * lib/unictype/pr_decimal_digit.c: New file.
18819         * lib/unictype/pr_default_ignorable_code_point.c: New file.
18820         * lib/unictype/pr_deprecated.c: New file.
18821         * lib/unictype/pr_diacritic.c: New file.
18822         * lib/unictype/pr_extender.c: New file.
18823         * lib/unictype/pr_format_control.c: New file.
18824         * lib/unictype/pr_grapheme_base.c: New file.
18825         * lib/unictype/pr_grapheme_extend.c: New file.
18826         * lib/unictype/pr_grapheme_link.c: New file.
18827         * lib/unictype/pr_hex_digit.c: New file.
18828         * lib/unictype/pr_hyphen.c: New file.
18829         * lib/unictype/pr_id_continue.c: New file.
18830         * lib/unictype/pr_id_start.c: New file.
18831         * lib/unictype/pr_ideographic.c: New file.
18832         * lib/unictype/pr_ids_binary_operator.c: New file.
18833         * lib/unictype/pr_ids_trinary_operator.c: New file.
18834         * lib/unictype/pr_ignorable_control.c: New file.
18835         * lib/unictype/pr_iso_control.c: New file.
18836         * lib/unictype/pr_join_control.c: New file.
18837         * lib/unictype/pr_left_of_pair.c: New file.
18838         * lib/unictype/pr_line_separator.c: New file.
18839         * lib/unictype/pr_logical_order_exception.c: New file.
18840         * lib/unictype/pr_lowercase.c: New file.
18841         * lib/unictype/pr_math.c: New file.
18842         * lib/unictype/pr_non_break.c: New file.
18843         * lib/unictype/pr_not_a_character.c: New file.
18844         * lib/unictype/pr_numeric.c: New file.
18845         * lib/unictype/pr_other_alphabetic.c: New file.
18846         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
18847         * lib/unictype/pr_other_grapheme_extend.c: New file.
18848         * lib/unictype/pr_other_id_continue.c: New file.
18849         * lib/unictype/pr_other_id_start.c: New file.
18850         * lib/unictype/pr_other_lowercase.c: New file.
18851         * lib/unictype/pr_other_math.c: New file.
18852         * lib/unictype/pr_other_uppercase.c: New file.
18853         * lib/unictype/pr_paired_punctuation.c: New file.
18854         * lib/unictype/pr_paragraph_separator.c: New file.
18855         * lib/unictype/pr_pattern_syntax.c: New file.
18856         * lib/unictype/pr_pattern_white_space.c: New file.
18857         * lib/unictype/pr_private_use.c: New file.
18858         * lib/unictype/pr_punctuation.c: New file.
18859         * lib/unictype/pr_quotation_mark.c: New file.
18860         * lib/unictype/pr_radical.c: New file.
18861         * lib/unictype/pr_sentence_terminal.c: New file.
18862         * lib/unictype/pr_soft_dotted.c: New file.
18863         * lib/unictype/pr_space.c: New file.
18864         * lib/unictype/pr_terminal_punctuation.c: New file.
18865         * lib/unictype/pr_test.c: New file.
18866         * lib/unictype/pr_titlecase.c: New file.
18867         * lib/unictype/pr_unassigned_code_value.c: New file.
18868         * lib/unictype/pr_unified_ideograph.c: New file.
18869         * lib/unictype/pr_uppercase.c: New file.
18870         * lib/unictype/pr_variation_selector.c: New file.
18871         * lib/unictype/pr_white_space.c: New file.
18872         * lib/unictype/pr_xid_continue.c: New file.
18873         * lib/unictype/pr_xid_start.c: New file.
18874         * lib/unictype/pr_zero_width.c: New file.
18875         * lib/unictype/scripts.c: New file.
18876         * lib/unictype/sy_c_ident.c: New file.
18877         * lib/unictype/sy_c_whitespace.c: New file.
18878         * lib/unictype/sy_java_ident.c: New file.
18879         * lib/unictype/sy_java_whitespace.c: New file.
18880
18881         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
18882         Unicode 5.0.0.
18883         * lib/unictype/blocks.h: Likewise.
18884         * lib/unictype/categ_C.h: Likewise.
18885         * lib/unictype/categ_Cc.h: Likewise.
18886         * lib/unictype/categ_Cf.h: Likewise.
18887         * lib/unictype/categ_Cn.h: Likewise.
18888         * lib/unictype/categ_Co.h: Likewise.
18889         * lib/unictype/categ_Cs.h: Likewise.
18890         * lib/unictype/categ_L.h: Likewise.
18891         * lib/unictype/categ_Ll.h: Likewise.
18892         * lib/unictype/categ_Lm.h: Likewise.
18893         * lib/unictype/categ_Lo.h: Likewise.
18894         * lib/unictype/categ_Lt.h: Likewise.
18895         * lib/unictype/categ_Lu.h: Likewise.
18896         * lib/unictype/categ_M.h: Likewise.
18897         * lib/unictype/categ_Mc.h: Likewise.
18898         * lib/unictype/categ_Me.h: Likewise.
18899         * lib/unictype/categ_Mn.h: Likewise.
18900         * lib/unictype/categ_N.h: Likewise.
18901         * lib/unictype/categ_Nd.h: Likewise.
18902         * lib/unictype/categ_Nl.h: Likewise.
18903         * lib/unictype/categ_No.h: Likewise.
18904         * lib/unictype/categ_P.h: Likewise.
18905         * lib/unictype/categ_Pc.h: Likewise.
18906         * lib/unictype/categ_Pd.h: Likewise.
18907         * lib/unictype/categ_Pe.h: Likewise.
18908         * lib/unictype/categ_Pf.h: Likewise.
18909         * lib/unictype/categ_Pi.h: Likewise.
18910         * lib/unictype/categ_Po.h: Likewise.
18911         * lib/unictype/categ_Ps.h: Likewise.
18912         * lib/unictype/categ_S.h: Likewise.
18913         * lib/unictype/categ_Sc.h: Likewise.
18914         * lib/unictype/categ_Sk.h: Likewise.
18915         * lib/unictype/categ_Sm.h: Likewise.
18916         * lib/unictype/categ_So.h: Likewise.
18917         * lib/unictype/categ_Z.h: Likewise.
18918         * lib/unictype/categ_Zl.h: Likewise.
18919         * lib/unictype/categ_Zp.h: Likewise.
18920         * lib/unictype/categ_Zs.h: Likewise.
18921         * lib/unictype/categ_of.h: Likewise.
18922         * lib/unictype/combining.h: Likewise.
18923         * lib/unictype/ctype_alnum.h: Likewise.
18924         * lib/unictype/ctype_alpha.h: Likewise.
18925         * lib/unictype/ctype_blank.h: Likewise.
18926         * lib/unictype/ctype_cntrl.h: Likewise.
18927         * lib/unictype/ctype_digit.h: Likewise.
18928         * lib/unictype/ctype_graph.h: Likewise.
18929         * lib/unictype/ctype_lower.h: Likewise.
18930         * lib/unictype/ctype_print.h: Likewise.
18931         * lib/unictype/ctype_punct.h: Likewise.
18932         * lib/unictype/ctype_space.h: Likewise.
18933         * lib/unictype/ctype_upper.h: Likewise.
18934         * lib/unictype/ctype_xdigit.h: Likewise.
18935         * lib/unictype/decdigit.h: Likewise.
18936         * lib/unictype/digit.h: Likewise.
18937         * lib/unictype/mirror.h: Likewise.
18938         * lib/unictype/numeric.h: Likewise.
18939         * lib/unictype/pr_alphabetic.h: Likewise.
18940         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18941         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18942         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
18943         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18944         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
18945         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18946         * lib/unictype/pr_bidi_control.h: Likewise.
18947         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18948         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18949         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
18950         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18951         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
18952         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
18953         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
18954         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
18955         * lib/unictype/pr_bidi_pdf.h: Likewise.
18956         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18957         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18958         * lib/unictype/pr_combining.h: Likewise.
18959         * lib/unictype/pr_composite.h: Likewise.
18960         * lib/unictype/pr_currency_symbol.h: Likewise.
18961         * lib/unictype/pr_dash.h: Likewise.
18962         * lib/unictype/pr_decimal_digit.h: Likewise.
18963         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18964         * lib/unictype/pr_deprecated.h: Likewise.
18965         * lib/unictype/pr_diacritic.h: Likewise.
18966         * lib/unictype/pr_extender.h: Likewise.
18967         * lib/unictype/pr_format_control.h: Likewise.
18968         * lib/unictype/pr_grapheme_base.h: Likewise.
18969         * lib/unictype/pr_grapheme_extend.h: Likewise.
18970         * lib/unictype/pr_grapheme_link.h: Likewise.
18971         * lib/unictype/pr_hex_digit.h: Likewise.
18972         * lib/unictype/pr_hyphen.h: Likewise.
18973         * lib/unictype/pr_id_continue.h: Likewise.
18974         * lib/unictype/pr_id_start.h: Likewise.
18975         * lib/unictype/pr_ideographic.h: Likewise.
18976         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18977         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18978         * lib/unictype/pr_ignorable_control.h: Likewise.
18979         * lib/unictype/pr_iso_control.h: Likewise.
18980         * lib/unictype/pr_join_control.h: Likewise.
18981         * lib/unictype/pr_left_of_pair.h: Likewise.
18982         * lib/unictype/pr_line_separator.h: Likewise.
18983         * lib/unictype/pr_logical_order_exception.h: Likewise.
18984         * lib/unictype/pr_lowercase.h: Likewise.
18985         * lib/unictype/pr_math.h: Likewise.
18986         * lib/unictype/pr_non_break.h: Likewise.
18987         * lib/unictype/pr_not_a_character.h: Likewise.
18988         * lib/unictype/pr_numeric.h: Likewise.
18989         * lib/unictype/pr_other_alphabetic.h: Likewise.
18990         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18991         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18992         * lib/unictype/pr_other_id_continue.h: Likewise.
18993         * lib/unictype/pr_other_id_start.h: Likewise.
18994         * lib/unictype/pr_other_lowercase.h: Likewise.
18995         * lib/unictype/pr_other_math.h: Likewise.
18996         * lib/unictype/pr_other_uppercase.h: Likewise.
18997         * lib/unictype/pr_paired_punctuation.h: Likewise.
18998         * lib/unictype/pr_paragraph_separator.h: Likewise.
18999         * lib/unictype/pr_pattern_syntax.h: Likewise.
19000         * lib/unictype/pr_pattern_white_space.h: Likewise.
19001         * lib/unictype/pr_private_use.h: Likewise.
19002         * lib/unictype/pr_punctuation.h: Likewise.
19003         * lib/unictype/pr_quotation_mark.h: Likewise.
19004         * lib/unictype/pr_radical.h: Likewise.
19005         * lib/unictype/pr_sentence_terminal.h: Likewise.
19006         * lib/unictype/pr_soft_dotted.h: Likewise.
19007         * lib/unictype/pr_space.h: Likewise.
19008         * lib/unictype/pr_terminal_punctuation.h: Likewise.
19009         * lib/unictype/pr_titlecase.h: Likewise.
19010         * lib/unictype/pr_unassigned_code_value.h: Likewise.
19011         * lib/unictype/pr_unified_ideograph.h: Likewise.
19012         * lib/unictype/pr_uppercase.h: Likewise.
19013         * lib/unictype/pr_variation_selector.h: Likewise.
19014         * lib/unictype/pr_white_space.h: Likewise.
19015         * lib/unictype/pr_xid_continue.h: Likewise.
19016         * lib/unictype/pr_xid_start.h: Likewise.
19017         * lib/unictype/pr_zero_width.h: Likewise.
19018         * lib/unictype/scripts.h: Likewise.
19019         * lib/unictype/scripts_byname.gperf: Likewise.
19020         * lib/unictype/sy_c_ident.h: Likewise.
19021         * lib/unictype/sy_c_whitespace.h: Likewise.
19022         * lib/unictype/sy_java_ident.h: Likewise.
19023         * lib/unictype/sy_java_whitespace.h: Likewise.
19024
19025         * lib/unictype/Makefile: New file.
19026         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
19027         glibc.
19028         * lib/unictype/3level.h: New file, copied from glibc.
19029         * lib/unictype/3levelbit.h: New file.
19030
19031 2007-11-11  Bruno Haible  <bruno@clisp.org>
19032
19033         * modules/gperf: New file.
19034         * modules/iconv_open (Depends-on): Add it.
19035         (Makefile.am): Remove the GPERF definition.
19036
19037 2007-11-11  Bruno Haible  <bruno@clisp.org>
19038
19039         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
19040         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
19041
19042 2007-11-11  Bruno Haible  <bruno@clisp.org>
19043
19044         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
19045         (usage): Remove function.
19046
19047 2007-11-11  Bruno Haible  <bruno@clisp.org>
19048
19049         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
19050         gl_FUNC_CEILF_LIBS.
19051         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
19052         gl_FUNC_CEIL_LIBS.
19053         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
19054         gl_FUNC_CEILL_LIBS.
19055         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
19056         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
19057         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
19058
19059 2007-11-11  Bruno Haible  <bruno@clisp.org>
19060
19061         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
19062         roundf were declared but do not exist on functions.
19063         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
19064         roundl were declared but do not exist on functions.
19065         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
19066         HAVE_FLOORL_AND_CEILL, respectively.
19067         Needed for Sun C on Solaris 10.
19068
19069 2007-11-11  Bruno Haible  <bruno@clisp.org>
19070
19071         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
19072         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
19073         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
19074         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
19075         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
19076         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
19077         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
19078         HAVE_DECL_ROUNDF.
19079         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
19080         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
19081         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
19082         of HAVE_DECL_ROUND*.
19083         * modules/math (Makefile.am): Update.
19084
19085 2007-11-10  Bruno Haible  <bruno@clisp.org>
19086
19087         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
19088         ptrdiff_t as m4/intl.m4.
19089
19090 2007-11-10  Jim Meyering  <meyering@redhat.com>
19091
19092         Avoid link failure for the argmatch test.
19093         * tests/test-argmatch.c (usage): Define function to avoid a link
19094         failure: argmatch_die requires a usage function.
19095
19096 2007-11-09  Bruno Haible  <bruno@clisp.org>
19097
19098         * doc/functions/snprintf.texi: Mention BeOS deficiency.
19099         * doc/functions/vsnprintf.texi: Likewise.
19100         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
19101         with a size argument < 2.
19102
19103 2007-11-09  Bruno Haible  <bruno@clisp.org>
19104
19105         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
19106         buffer. Fixes an inefficiency introduced on 2007-11-03.
19107
19108 2007-11-09  Bruno Haible  <bruno@clisp.org>
19109
19110         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
19111         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
19112
19113 2007-11-08  Jim Meyering  <meyering@redhat.com>
19114
19115         Change cache variable name prefix "jm_" to "gl_" everywhere.
19116         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
19117         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
19118         * m4/uptime.m4: s/gl_/jm_/
19119
19120 2007-11-07  Bruno Haible  <bruno@clisp.org>
19121
19122         Update to GNU gettext 0.17.
19123         * m4/intl.m4: Update to GNU gettext 0.17.
19124         * m4/po.m4: Likewise.
19125         * modules/gettext (Files): Remove m4/ulonglong.m4.
19126         (configure.ac): Require gettext infrastructure from version 0.17.
19127
19128 2007-11-06  Bruno Haible  <bruno@clisp.org>
19129
19130         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
19131         symbolic values are not defined in a public header.
19132         * lib/freadable.c (freadable) [QNX]: Likewise.
19133         * lib/freadahead.c (freadahead) [QNX]: Likewise.
19134         * lib/freading.c (freading) [QNX]: Likewise.
19135         * lib/fseterr.c (fseterr) [QNX]: Likewise.
19136         * lib/fwritable.c (fwritable) [QNX]: Likewise.
19137         * lib/fwriting.c (fwriting) [QNX]: Likewise.
19138         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
19139         Reported by Alain Magloire.
19140
19141         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
19142
19143 2007-11-05  Bruno Haible  <bruno@clisp.org>
19144
19145         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
19146         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
19147         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
19148         Reported by Eric Blake.
19149
19150 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19151             Bruno Haible  <bruno@clisp.org>
19152
19153         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
19154         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
19155         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
19156         (malloc): Undefine also before including <stdlib.h>.
19157         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
19158         Needed on OSF/1 4.0.
19159
19160 2007-11-05  Jim Meyering  <meyering@redhat.com>
19161
19162         git-version-gen: sync from coreutils.
19163         * build-aux/git-version-gen: Add comments.
19164         Change the first '-' to '.' in the snapshot version string,
19165         e.g., 6.9-377-08144 -> 6.9.377-08144
19166         Remove first parameter.
19167         Don't declare a version "-dirty" merely because a time
19168         stamp has changed.
19169
19170 2007-11-04  Bruno Haible  <bruno@clisp.org>
19171
19172         * lib/lock.h: Protect all macro definitions containing an 'if'
19173         statement through a "do { ... } while (0)".
19174         * lib/tls.h: Likewise.
19175
19176 2007-11-04  Bruno Haible  <bruno@clisp.org>
19177
19178         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
19179
19180 2007-11-04  Bruno Haible  <bruno@clisp.org>
19181
19182         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
19183         * modules/fprintf-posix (Depends-on): Add nocrash.
19184         * modules/snprintf-posix (Depends-on): Likewise.
19185         * modules/sprintf-posix (Depends-on): Likewise.
19186         * modules/vasnprintf-posix (Depends-on): Likewise.
19187         * modules/vasprintf-posix (Depends-on): Likewise.
19188         * modules/vfprintf-posix (Depends-on): Likewise.
19189         * modules/vsnprintf-posix (Depends-on): Likewise.
19190         * modules/vsprintf-posix (Depends-on): Likewise.
19191         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19192         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19193         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19194         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19195         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19196         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19197         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19198
19199 2007-11-04  Bruno Haible  <bruno@clisp.org>
19200
19201         * modules/nocrash: New file.
19202         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
19203         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
19204
19205 2007-11-04  Bruno Haible  <bruno@clisp.org>
19206
19207         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
19208         precision handling.
19209         * tests/test-vasprintf-posix.c (test_function): Likewise.
19210         * tests/test-snprintf-posix.h (test_function): Likewise.
19211         * tests/test-sprintf-posix.h (test_function): Likewise.
19212
19213         Fix *printf behaviour for large precisions on mingw and BeOS.
19214         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
19215         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
19216         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
19217         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
19218         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19219         gl_PRINTF_PRECISION and test its result. Invoke
19220         gl_PREREQ_VASNPRINTF_PRECISION.
19221         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19222         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19223         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19224         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19225         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19226         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19227         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19228         * doc/functions/fprintf.texi: Update.
19229         * doc/functions/printf.texi: Update.
19230         * doc/functions/snprintf.texi: Update.
19231         * doc/functions/sprintf.texi: Update.
19232         * doc/functions/vfprintf.texi: Update.
19233         * doc/functions/vprintf.texi: Update.
19234         * doc/functions/vsnprintf.texi: Update.
19235         * doc/functions/vsprintf.texi: Update.
19236
19237 2007-11-04  Bruno Haible  <bruno@clisp.org>
19238
19239         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
19240
19241 2007-11-04  Bruno Haible  <bruno@clisp.org>
19242
19243         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
19244         Reported by Sylvain Beucler <beuc@gnu.org>.
19245
19246 2007-11-03  Bruno Haible  <bruno@clisp.org>
19247
19248         * tests/test-fprintf-posix2.sh: New file.
19249         * tests/test-fprintf-posix2.c: New file.
19250         * modules/fprintf-posix-tests (Files): Add them.
19251         (TESTS): Add test-fprintf-posix2.sh.
19252         (configure.ac): Check for getrlimit and setrlimit.
19253         (check_PROGRAMS): Add test-fprintf-posix2.
19254
19255         * tests/test-printf-posix2.sh: New file.
19256         * tests/test-printf-posix2.c: New file.
19257         * modules/printf-posix-tests (Files): Add them.
19258         (TESTS): Add test-printf-posix2.sh.
19259         (configure.ac): Check for getrlimit and setrlimit.
19260         (check_PROGRAMS): Add test-printf-posix2.
19261
19262         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
19263         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
19264         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
19265         (decode_double): New function, copied from decode_long_double.
19266         (scale10_round_decimal_decoded): New function, extracted from
19267         scale10_round_decimal_long_double.
19268         (scale10_round_decimal_long_double): Use it.
19269         (scale10_round_decimal_double): New function.
19270         (floorlog10): New function.
19271         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
19272         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
19273         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
19274         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19275         gl_PRINTF_ENOMEM and test its result. Invoke
19276         gl_PREREQ_VASNPRINTF_ENOMEM.
19277         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19278         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19279         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19280         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19281         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19282         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19283         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19284         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
19285         * modules/snprintf-posix (Depends-on): Likewise.
19286         * modules/sprintf-posix (Depends-on): Likewise.
19287         * modules/vasnprintf-posix (Depends-on): Likewise.
19288         * modules/vasprintf-posix (Depends-on): Likewise.
19289         * modules/vfprintf-posix (Depends-on): Likewise.
19290         * modules/vsnprintf-posix (Depends-on): Likewise.
19291         * modules/vsprintf-posix (Depends-on): Likewise.
19292         * doc/functions/fprintf.texi: Update.
19293         * doc/functions/printf.texi: Update.
19294         * doc/functions/snprintf.texi: Update.
19295         * doc/functions/sprintf.texi: Update.
19296         * doc/functions/vfprintf.texi: Update.
19297         * doc/functions/vprintf.texi: Update.
19298         * doc/functions/vsnprintf.texi: Update.
19299         * doc/functions/vsprintf.texi: Update.
19300
19301 2007-11-03  Bruno Haible  <bruno@clisp.org>
19302
19303         * modules/frexp-nolibm-tests: New file.
19304
19305         * modules/frexp-nolibm: New file.
19306         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
19307
19308 2007-11-03  Bruno Haible  <bruno@clisp.org>
19309
19310         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
19311         value is C99 compliant.
19312         Needed for OSF/1 5.1.
19313
19314 2007-11-03  Bruno Haible  <bruno@clisp.org>
19315
19316         Fix out-of-memory handling of vasnprintf.
19317         * lib/printf-parse.c: Include <errno.h>.
19318         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
19319         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
19320         is already set.
19321
19322 2007-11-02  Eric Blake  <ebb9@byu.net>
19323
19324         Fix tests on cygwin.
19325         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
19326
19327 2007-11-01  Bruno Haible  <bruno@clisp.org>
19328
19329         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
19330         warning.
19331         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
19332         needed for POSIX compatibility.
19333
19334 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
19335
19336         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
19337         for compatibility with GNU.
19338
19339 2007-11-01  Bruno Haible  <bruno@clisp.org>
19340
19341         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
19342         (putenv): Renamed from rpl_putenv. Change argument type from
19343         'const char *' to 'char *'.
19344         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
19345         of defining putenv in config.h, just set REPLACE_PUTENV.
19346         * modules/putenv (Depends-on): Add stdlib.
19347         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19348         (Include): Use <stdlib.h>.
19349         * lib/stdlib.in.h (putenv): New declaration.
19350         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
19351         REPLACE_PUTENV.
19352         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
19353         REPLACE_PUTENV.
19354         Needed for MacOS X 10.5.0.
19355         Reported by Peter O'Gorman <peter@pogma.com>.
19356
19357 2007-11-01  Jim Meyering  <meyering@redhat.com>
19358
19359         Treat an empty date string exactly like "0".
19360         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
19361         if the remaining date string (to be parsed) is empty, use "0".
19362         Reported by Mischa Molhoek and discussed in this thread:
19363         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
19364
19365 2007-10-31  Bruno Haible  <bruno@clisp.org>
19366
19367         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
19368         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
19369         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
19370         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
19371         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
19372         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
19373
19374 2007-10-31  Bruno Haible  <bruno@clisp.org>
19375
19376         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
19377         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
19378         (AC_TYPE_LONG_LONG_INT): Use it.
19379         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
19380         it as well.
19381         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
19382         to m4/longlong.m4.
19383         * modules/stdint (Files): Remove m4/ulonglong.m4.
19384         * modules/strtoull (Files): Use m4/longlong.m4 instead of
19385         m4/ulonglong.m4.
19386         * modules/strtoumax (Files): Likewise.
19387
19388 2007-10-30  Bruno Haible  <bruno@clisp.org>
19389
19390         * modules/xvasprintf-posix: New file.
19391         Suggested by Eric Blake.
19392
19393 2007-10-30  Bruno Haible  <bruno@clisp.org>
19394
19395         * modules/xprintf-posix-tests: New file.
19396         * tests/test-xprintf-posix.sh: New file.
19397         * tests/test-xprintf-posix.c: New file.
19398         * tests/test-xfprintf-posix.c: New file.
19399
19400         * modules/xprintf-posix: New file.
19401
19402 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19403
19404         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
19405         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
19406         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
19407
19408 2007-10-29  Bruno Haible  <bruno@clisp.org>
19409
19410         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
19411         contain the special marker '_cv_'.
19412         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
19413         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
19414         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
19415         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
19416         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
19417         Reported by Ralf Wildenhues.
19418
19419 2007-10-29  Bruno Haible  <bruno@clisp.org>
19420
19421         * gnulib-tool (func_import): When --lgpl is not specified, set
19422         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
19423         GPLv3.
19424         Reported by Simon Josefsson.
19425
19426 2007-10-28  Bruno Haible  <bruno@clisp.org>
19427
19428         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
19429         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
19430         HAVE_DECL_ISFINITE.
19431         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
19432         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
19433         HAVE_DECL_ISFINITE.
19434
19435 2007-10-28  Bruno Haible  <bruno@clisp.org>
19436
19437         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
19438         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
19439
19440 2007-10-28  Bruno Haible  <bruno@clisp.org>
19441
19442         Fix link errors with Sun C 5.0 on Solaris 10.
19443         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
19444         function is declared but not present in the compiler's libm.
19445         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
19446         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
19447         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
19448         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
19449         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
19450         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
19451         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
19452         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
19453         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
19454         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
19455         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
19456         HAVE_DECL_FLOORL.
19457
19458 2007-10-28  Bruno Haible  <bruno@clisp.org>
19459
19460         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
19461         gl_FUNC_FLOORL. Cache the result.
19462         (gl_FUNC_FLOORL): Use it.
19463         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
19464         gl_FUNC_CEILL. Cache the result.
19465         (gl_FUNC_CEILL): Use it.
19466
19467         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
19468         gl_FUNC_FLOOR. Cache the result.
19469         (gl_FUNC_FLOOR): Use it.
19470         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
19471         gl_FUNC_CEIL. Cache the result.
19472         (gl_FUNC_CEIL): Use it.
19473
19474         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
19475         gl_FUNC_FLOORF. Cache the result.
19476         (gl_FUNC_FLOORF): Use it.
19477         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
19478         gl_FUNC_CEILF. Cache the result.
19479         (gl_FUNC_CEILF): Use it.
19480
19481 2007-10-28  Bruno Haible  <bruno@clisp.org>
19482
19483         * gnulib-tool: Allow specifying the LGPL version number through
19484         --lgpl=2 or --lgpl=3.
19485         (func_usage): Document --lgpl with argument.
19486         Handle --lgpl=... arguments.
19487         (func_import): Recognize also gl_LGPL calls with an argument. When
19488         --lgpl=2 is used and the module's license is just LGPL, report an
19489         error. Set sed_transform_lib_file according to the lgpl variable. In
19490         the generated files, use --lgpl or gl_LGPL invocations with argument,
19491         if necessary.
19492         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
19493         an LGPv2+ license.
19494         * doc/gnulib-tool.texi (Modified imports): Update explanation of
19495         gl_LGPL macro.
19496
19497 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19498             Bruno Haible  <bruno@clisp.org>
19499
19500         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
19501         (u16_uctomb_aux): Likewise.
19502         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
19503         !HAVE_INLINE.
19504         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
19505
19506 2007-10-28  Bruno Haible  <bruno@clisp.org>
19507
19508         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
19509         Invoke AM_GETTEXT_OPTION if it exists.
19510         * modules/vasprintf: Likewise.
19511         * modules/verror: Likewise.
19512         * modules/xprintf: Likewise.
19513         * modules/xvasprintf: Likewise.
19514
19515 2007-10-27  Ben Pfaff  <blp@gnu.org>
19516
19517         * lib/math.in.h: Define isfinite macro and prototypes for
19518         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
19519         implementations.
19520         * m4/math_h.m4: New substitutions for isfinite module.
19521         * lib/isfinite.c: New file.
19522         * m4/isfinite.m4: New file.
19523         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
19524         * modules/isfinite: New file.
19525         * modules/isfinite-tests: New file.
19526         * tests/tests-isfinite.c: New file.
19527         * doc/functions/isfinite.texi: Mention isfinite module.
19528         * MODULES.html.sh: Mention new module.
19529
19530 2007-10-27  Ben Pfaff  <blp@gnu.org>
19531
19532         Ralf Wildenhues reported that Tru64 4.0D declares the round
19533         functions but does not have definitions.
19534         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
19535         cannot be found in any library, set the output variable to
19536         "missing" instead of "".
19537         * m4/round.m4: Also use our substitute if we cannot find round in
19538         any library, even if it is declared.
19539         * m4/roundf.m4: Likewise for roundf.
19540         * m4/roundl.m4: Likewise for roundl.
19541         * lib/math.in.h: Undefine roundf, round, roundl before defining
19542         their replacements, to allow for hypothetical systems where these
19543         may be defined as macros but not available in libraries.
19544
19545 2007-10-27  Bruno Haible  <bruno@clisp.org>
19546
19547         * doc/gnulib.texi: Invoke @firstparagraphindent.
19548         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
19549         changes in gnulib.
19550         (Source changes): New section.
19551
19552 2007-10-26  Bruno Haible  <bruno@clisp.org>
19553
19554         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
19555         borrowed from autoconf.
19556
19557 2007-10-26  Bruno Haible  <bruno@clisp.org>
19558
19559         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
19560         strerror returned the empty string. Needed on HP-UX 11.00.
19561
19562 2007-10-24  Micah Cowan  <micah@cowan.name>
19563
19564         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
19565         * build-aux/bootstrap: Remove support for now-unnecessary option,
19566         --cvs-user, and envvars CVS_USER, CVS_RSH.
19567
19568 2007-10-24  Jim Meyering  <meyering@redhat.com>
19569
19570         Avoid diagnostics from sha1sum when there is no cached checksum.
19571         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
19572         if the po.s1 file hasn't been created yet.
19573
19574         * build-aux/bootstrap: Sync from coreutils:
19575         2007-10-24  Jim Meyering  <meyering@redhat.com>
19576         Get gnulib from the git repository, not from an obsolete cvs one.
19577         * build-aux/bootstrap: Suggestion from Micah Cowan.
19578         2007-10-04  Jim Meyering  <jim@meyering.net>
19579         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
19580         (update_po_files): Work also when there are no .po files in po/.
19581
19582 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19583
19584         * README: Append ".git" to git and cg examples.
19585         Problem reported by Benoit Sigoure.
19586
19587 2007-10-23  Micah Cowan  <micah@cowan.name>
19588
19589         * users.txt: Add wget.
19590
19591 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19592
19593         Fix linking of some unistdio tests on FreeBSD.
19594         * modules/unistdio/u16-vsnprintf-tests
19595         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
19596         * modules/unistdio/u16-vsprintf-tests
19597         (test_u16_vsnprintf1_LDADD): Likewise.
19598         * modules/unistdio/u32-vsnprintf-tests
19599         (test_u32_vsnprintf1_LDADD): Likewise.
19600         * modules/unistdio/u32-vsprintf-tests
19601         (test_u32_vsprintf1_LDADD): Likewise.
19602         * modules/unistdio/u8-vsnprintf-tests
19603         (test_u8_vsnprintf1_LDADD): Likewise.
19604         * modules/unistdio/u8-vsprintf-tests
19605         (test_u8_vsprintf1_LDADD): Likewise.
19606         * modules/unistdio/ulc-vsnprintf-tests
19607         (test_ulc_vsnprintf1_LDADD): Likewise.
19608         * modules/unistdio/ulc-vsprintf-tests
19609         (test_ulc_vsprintf1_LDADD): Likewise.
19610
19611         Fix linking of some uniconv tests on FreeBSD.
19612         * modules/uniconv/u16-conv-from-enc-tests
19613         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
19614         * modules/uniconv/u16-conv-to-enc-tests
19615         (test_u16_conv_to_enc_LDADD): Likewise.
19616         * modules/uniconv/u16-strconv-from-enc-tests
19617         (test_u16_strconv_from_enc_LDADD): Likewise.
19618         * modules/uniconv/u16-strconv-to-enc-tests
19619         (test_u16_strconv_to_enc_LDADD): Likewise.
19620         * modules/uniconv/u32-conv-from-enc-tests
19621         (test_u32_conv_from_enc_LDADD): Likewise.
19622         * modules/uniconv/u32-conv-to-enc-tests
19623         (test_u32_conv_to_enc_LDADD): Likewise.
19624         * modules/uniconv/u32-strconv-from-enc-tests
19625         (test_u32_strconv_from_enc_LDADD): Likewise.
19626         * modules/uniconv/u32-strconv-to-enc-tests
19627         (test_u32_strconv_to_enc_LDADD): Likewise.
19628         * modules/uniconv/u8-conv-from-enc-tests
19629         (test_u8_conv_from_enc_LDADD): Likewise.
19630         * modules/uniconv/u8-conv-to-enc-tests
19631         (test_u8_conv_to_enc_LDADD): Likewise.
19632         * modules/uniconv/u8-strconv-from-enc-tests
19633         (test_u8_strconv_from_enc_LDADD): Likewise.
19634         * modules/uniconv/u8-strconv-to-enc-tests
19635         (test_u8_strconv_to_enc_LDADD): Likewise.
19636
19637 2007-10-22  Bruno Haible  <bruno@clisp.org>
19638
19639         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
19640         size.
19641
19642 2007-10-22  Eric Blake  <ebb9@byu.net>
19643
19644         Tweak x*printf documentation.
19645         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
19646         variable name and comments.
19647         Suggested by Bruno Haible.
19648
19649 2007-10-22  Bruno Haible  <bruno@clisp.org>
19650
19651         * lib/acl.c (copy_acl): Fix file name in comment.
19652
19653 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
19654
19655         Fix Tru64 problem with stdbool.h.
19656         * lib/stdbool.in.h (false, true):
19657         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
19658         Don't declare as an enum in this situation; it runs afoul of Tru64.
19659         Problem reported by Steven M. Schweda in
19660         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
19661
19662 2007-10-22  Eric Blake  <ebb9@byu.net>
19663
19664         Also wrap vf?printf.
19665         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
19666         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
19667         (xvprintf, xvfprintf): New functions.
19668
19669 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19670
19671         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
19672         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
19673
19674         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
19675         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
19676
19677 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
19678
19679         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
19680         by Bruno Haible.
19681
19682 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19683
19684         * lib/getloadavg.c
19685         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
19686         Undef `sys' after including sys/table.h, for Tru64 4.0D.
19687
19688         * tests/test-i-ring.c: Work for C89.
19689
19690 2007-10-22  Bruno Haible  <bruno@clisp.org>
19691
19692         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
19693         -1u, in preprocessor expression, so that we don't test for the bug
19694         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
19695         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
19696
19697 2007-10-22  Eric Blake  <ebb9@byu.net>
19698
19699         * tests/test-yesno.sh: Silence stderr during test.
19700
19701 2007-10-22  Simon Josefsson  <simon@josefsson.org>
19702
19703         * modules/crypto/gc-camellia: New file.
19704
19705         * m4/gc-camellia.m4: New file.
19706
19707         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
19708
19709         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
19710
19711 2007-10-22  Simon Josefsson  <simon@josefsson.org>
19712
19713         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
19714         --help to stdout.  Reported by sms@antinode.org (Steven
19715         M. Schweda).
19716
19717 2007-10-22  Simon Josefsson  <simon@josefsson.org>
19718
19719         * users.txt: Fix link to libksba.
19720
19721 2007-10-21  Ben Pfaff  <blp@gnu.org>
19722
19723         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
19724         round.c roundf implementation that depends on floorf and ceilf to
19725         be tested unconditionally.
19726
19727 2007-10-21  Ben Pfaff  <blp@gnu.org>
19728
19729         * m4/check-libm-func.m4: Removed.
19730         * m4/check-math-lib.m4: New file.
19731         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
19732         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
19733         definition and lack of AC_LIBOBJ([roundf]).
19734         * m4/roundl.m4: Ditto, and similarly for roundl.
19735         * modules/round: Reference new m4 file.
19736         * modules/roundf: Ditto.
19737         * modules/roundl: Ditto.
19738         * tests/test-round2.c (main): Use ROUND instead of round.
19739         Bug report from Bruno Haible.
19740
19741 2007-10-21  Bruno Haible  <bruno@clisp.org>
19742
19743         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
19744         context.
19745
19746 2007-10-21  Bruno Haible  <bruno@clisp.org>
19747
19748         * tests/test-wcwidth.c (main): Allow negative result for some control
19749         characters.
19750
19751         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
19752         Needed on OSF/1 5.1.
19753
19754 2007-10-21  Bruno Haible  <bruno@clisp.org>
19755
19756         * tests/test-floorf1.c: Include isnanf.h.
19757         (main): Use isnanf() instead of isnan().
19758         * tests/test-ceilf1.c: Include isnanf.h.
19759         (main): Use isnanf() instead of isnan().
19760         * tests/test-truncf1.c: Include isnanf.h.
19761         (main): Use isnanf() instead of isnan().
19762         * tests/test-roundf1.c: Include isnanf.h.
19763         (main): Use isnanf() instead of isnan().
19764
19765 2007-10-21  Eric Blake  <ebb9@byu.net>
19766
19767         * users.txt: Update URL for m4.
19768
19769 2007-10-21  Bruno Haible  <bruno@clisp.org>
19770
19771         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
19772
19773 2007-10-21  Bruno Haible  <bruno@clisp.org>
19774
19775         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
19776         Git's management files if the CVS files are not present.
19777
19778 2007-10-20  Bruno Haible  <bruno@clisp.org>
19779
19780         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
19781         gcc-3.4.x.
19782
19783 2007-10-20  Ben Pfaff  <blp@gnu.org>
19784
19785         * lib/math.in.h: Declare round, roundf, roundl if we are providing
19786         implementations.
19787         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
19788         * lib/round.c: New file.
19789         * lib/roundf.c: New file.
19790         * lib/roundl.c: New file.
19791         * m4/round.m4: New file.
19792         * m4/roundf.m4: New file.
19793         * m4/roundl.m4: New file.
19794         * m4/check-libm-func-m4: New file.
19795         * modules/math: Replace round, roundf, roundl related @VARS@ in
19796         math.in.h.
19797         * modules/round: New file.
19798         * modules/round-tests: New file.
19799         * modules/roundf: New file.
19800         * modules/roundf-tests: New file.
19801         * modules/roundl: New file.
19802         * modules/roundl-tests: New file.
19803         * tests/test-round1.c: New file.
19804         * tests/test-round2.c: New file.
19805         * tests/test-roundf1.c: New file.
19806         * tests/test-roundf2.c: New file.
19807         * tests/test-roundl.c: New file.
19808         * doc/functions/round.texi: Mention round module.
19809         * doc/functions/roundf.texi: Mention roundf module.
19810         * doc/functions/roundl.texi: Mention roundl module.
19811         * MODULES.html.sh: Mention new modules.
19812         Thanks to Bruno Haible for suggestions.
19813
19814 2007-10-20  Jim Meyering  <meyering@redhat.com>
19815
19816         * lib/xprintf.c: Include <config.h> unconditionally.
19817
19818         Change xprintf's license to GPL.
19819         * modules/xprintf (License): s/LGPL/GPL/, since this module
19820         depends on modules (exit and exitfail) which are GPL.
19821         Suggestion from Bruno Haible.
19822
19823         xprintf fixes.
19824         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
19825         Use a clearer diagnostic.
19826         Patch from Bruno Haible.
19827
19828 2007-10-20  Bruno Haible  <bruno@clisp.org>
19829
19830         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
19831         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
19832         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19833
19834 2007-10-20  Bruno Haible  <bruno@clisp.org>
19835
19836         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
19837         precision in the comparison result > x - 1 or similar.
19838         * tests/test-ceilf2.c (correct_result_p): Likewise.
19839         * tests/test-truncf2.c (correct_result_p): Likewise.
19840         * tests/test-trunc2.c (correct_result_p): Likewise.
19841         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19842
19843 2007-10-20  Bruno Haible  <bruno@clisp.org>
19844
19845         * modules/ceil: New file.
19846         * m4/ceil.m4: New file.
19847         * doc/functions/ceil.texi: Mention the 'ceil' module.
19848
19849 2007-10-20  Bruno Haible  <bruno@clisp.org>
19850
19851         * modules/floor: New file.
19852         * m4/floor.m4: New file.
19853         * doc/functions/floor.texi: Mention the 'floor' module.
19854
19855 2007-10-20  Bruno Haible  <bruno@clisp.org>
19856
19857         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
19858         of %a.
19859         * modules/floorf-tests (Depends-on): Likewise.
19860         * modules/truncf-tests (Depends-on): Likewise.
19861         * modules/trunc-tests (Depends-on): Likewise.
19862         Reported by Ben Pfaff.
19863
19864 2007-10-19  Jim Meyering  <meyering@redhat.com>
19865
19866         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
19867         Don't bother testing specific errno values.  Just test ferror.
19868
19869         New module: xprintf
19870         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
19871
19872 2007-10-19  Bruno Haible  <bruno@clisp.org>
19873
19874         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
19875         syntax.
19876         * modules/javaexec (Makefile.am): Likewise.
19877         * modules/relocatable-prog (Makefile.am): Likewise.
19878         Suggested by Jim Meyering.
19879
19880 2007-10-18  Bruno Haible  <bruno@clisp.org>
19881
19882         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
19883         Reported by Jim Meyering.
19884
19885 2007-10-18  Eric Blake  <ebb9@byu.net>
19886
19887         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
19888
19889 2007-10-18  Bruno Haible  <bruno@clisp.org>
19890
19891         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
19892         the format string into writable memory. Needed in Fortify conditions.
19893
19894 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
19895             Bruno Haible  <bruno@clisp.org>
19896
19897         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
19898         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
19899         * modules/trim (Depends-on): Add mbchar.
19900         (configure.ac): Add gl_FUNC_MBRTOWC.
19901         (Makefile.am): Augment lib_SOURCES.
19902
19903 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
19904
19905         Modify glob.c to use fstatat and dirfd, to simplify it.
19906         Suggested by Eric Blake.
19907         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
19908         Don't include <stdbool.h>; not used.
19909         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
19910         (link_exists_p): Simplify implementation, since we can now assume
19911         dirfd and fstatat.
19912         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
19913
19914 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19915
19916         * gnulib-tool (func_get_dependencies): Fix sed script to
19917         match only tests.
19918
19919 2007-10-17  Bruno Haible  <bruno@clisp.org>
19920
19921         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
19922         allow locale names without encoding suffix.
19923         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19924         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19925
19926 2007-10-16  Bruno Haible  <bruno@clisp.org>
19927
19928         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
19929         * lib/getgroups.c (getgroups): Likewise.
19930         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
19931
19932 2007-10-16  Bruno Haible  <bruno@clisp.org>
19933
19934         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
19935         * modules/malloc-posix (License): Likewise.
19936         * modules/realloc-posix (License): Likewise.
19937         * modules/calloc-posix (License): Likewise.
19938         * modules/intprops (License): Change from GPL to LGPL, with
19939         Paul Eggert's approval.
19940
19941 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
19942
19943         Merge glibc changes into lib/glob.c.
19944
19945         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
19946         2007-10-15 04:59:03 UTC.  Here are the changes:
19947
19948         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
19949
19950         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
19951
19952         * lib/glob.c: Add some branch prediction throughout.
19953
19954         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
19955
19956         [BZ #5103]
19957         * lib/glob.c (glob): Recognize patterns starting \/.
19958
19959         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
19960
19961         [BZ #3996]
19962         * lib/glob.c (attribute_hidden): Define if not defined.
19963         (glob): Unescape dirname, filename or username when needed and not
19964         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
19965         is NULL.  Handle unescaped [ in pattern without closing ].
19966         Don't pass GLOB_CHECK down to recursive glob for directories.
19967         (__glob_pattern_type): New function.
19968         (__glob_pattern_p): Implement using __glob_pattern_type.
19969         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
19970         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
19971         Remove unreachable code.
19972
19973         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
19974
19975         * lib/glob.c (glob_in_dir): Add some comments and asserts to
19976         explain why there are no leaks.
19977
19978         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
19979
19980         [BZ #3253]
19981         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
19982         time, rather allocate increasingly bigger arrays of pointers, if
19983         possible with alloca, if too large with malloc.
19984
19985 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
19986
19987         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
19988         Problem reported by H.Merijn Brand in
19989         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
19990         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
19991         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
19992
19993 2007-10-15  Bruno Haible  <bruno@clisp.org>
19994
19995         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
19996         with explicit rpl_ prefix.
19997         * lib/fopen.c (fopen): Likewise.
19998         * lib/freopen.c (freopen): Likewise.
19999         * lib/iconv.c (iconv): Likewise.
20000         * lib/iconv_close.c (iconv_close): Likewise.
20001
20002 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20003
20004         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
20005
20006 2007-10-15  Bruno Haible  <bruno@clisp.org>
20007
20008         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
20009         <stddef.h> instead of <stdlib.h> since we only need NULL.
20010         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20011
20012 2007-10-15  Bruno Haible  <bruno@clisp.org>
20013
20014         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
20015         Replace paragraph talking about LIBOBJS.
20016         Reported by Colin Watson <cjwatson@debian.org>.
20017
20018 2007-10-15  Bruno Haible  <bruno@clisp.org>
20019
20020         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
20021         <stdlib.h> before using NULL.
20022
20023 2007-10-15  Simon Josefsson  <simon@josefsson.org>
20024
20025         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
20026         Reported by Albert Chin <china@thewrittenword.com>.
20027
20028 2007-10-14  Bruno Haible  <bruno@clisp.org>
20029
20030         * modules/iconv_open-utf-tests: New file.
20031         * tests/test-iconv-utf.c: New file.
20032
20033         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
20034         * modules/iconv_open-utf: New file.
20035         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
20036         (iconv, iconv_close): New declarations.
20037         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
20038         be defined.
20039         (iconv_open): Add special handling of conversion between UTF-8 and
20040         UTF-{16,32}{BE,LE}.
20041         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
20042         * lib/iconv_close.c: New file.
20043         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
20044         gl_FUNC_ICONV_OPEN.
20045         (gl_FUNC_ICONV_OPEN): Use it.
20046         (gl_FUNC_ICONV_OPEN_UTF): New macro.
20047         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
20048         and REPLACE_ICONV_UTF.
20049         * modules/iconv_open (Depends-on): Add c-strcase.
20050         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
20051         ICONV_CONST.
20052         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
20053
20054 2007-10-13  Albert Chin  <china@thewrittenword.com>
20055             Bruno Haible  <bruno@clisp.org>
20056
20057         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
20058         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
20059
20060 2007-10-13  Bruno Haible  <bruno@clisp.org>
20061
20062         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
20063         defined, use the ISO C99 inline semantics.
20064         * lib/argp.h (ARGP_EI): Likewise.
20065
20066 2007-10-13  Bruno Haible  <bruno@clisp.org>
20067
20068         Handle 'inline' change in gcc 4.3.0.
20069         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
20070         argp_fmtstream_write, argp_fmtstream_set_lmargin,
20071         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
20072         argp_fmtstream_point): Disable 'extern' declaration if the function
20073         definition is going to be provided inline.
20074         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
20075         semantics, not the ISO C99 inline semantics.
20076         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
20077         'extern' declaration if the function definition is going to be provided
20078         inline.
20079         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
20080         the GNU C inline semantics, not the ISO C99 inline semantics. With
20081         GCC 4.2, avoid a warning.
20082
20083 2007-10-13  Bruno Haible  <bruno@clisp.org>
20084
20085         * lib/freading.h (freading): Enable the use of __freading for
20086         glibc >= 2.7.
20087         * lib/freading.c (freading): Likewise.
20088
20089 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
20090
20091         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
20092         "warning: C99 inline functions are not supported; using GNU89".
20093
20094 2007-10-12  Bruno Haible  <bruno@clisp.org>
20095
20096         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
20097         of 2.
20098         * tests/test-ceilf2.c: New file.
20099         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
20100
20101         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
20102         * modules/ceilf-tests: Update.
20103
20104 2007-10-12  Bruno Haible  <bruno@clisp.org>
20105
20106         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
20107         of 2.
20108         * tests/test-floorf2.c: New file.
20109         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
20110
20111         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
20112         * modules/floorf-tests: Update.
20113
20114 2007-10-12  Bruno Haible  <bruno@clisp.org>
20115
20116         * tests/test-trunc2.c: New file.
20117         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
20118
20119         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
20120         * modules/trunc-tests: Update.
20121
20122 2007-10-12  Bruno Haible  <bruno@clisp.org>
20123
20124         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
20125         of 2.
20126         * tests/test-truncf2.c: New file.
20127         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
20128
20129         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
20130         * modules/truncf-tests: Update.
20131
20132 2007-10-11  Eric Blake  <ebb9@byu.net>
20133
20134         Don't claim strerror is broken on Interix.
20135         * doc/functions/strerror.texi (strerror): Known broken systems are
20136         now Solaris 8, and not Interix.
20137         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
20138         Interix on cross-compile.
20139         Reported by Martin Koeppe in
20140         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
20141
20142 2007-10-11  Bruno Haible  <bruno@clisp.org>
20143
20144         * modules/i-ring-tests: New file.
20145         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
20146         instead of assert.
20147
20148 2007-10-11  Bruno Haible  <bruno@clisp.org>
20149
20150         * modules/filenamecat-tests: New file.
20151         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
20152         * lib/filenamecat.c: Remove test code.
20153
20154 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20155
20156         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
20157
20158         * lib/strerror.c: Include <string.h> always, to test interface,
20159         and to remove the need for the dummy.
20160         Include intprops.h to compute width instead of doing it ourselves
20161         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
20162         (strerror): Define it to return NULL if there's no system strerror.
20163         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
20164         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
20165         ancient pre-strerror Unix systems well any more.  Saying "unknown
20166         system error" is enough.
20167         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
20168         simpler strerror.c implementation.
20169         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
20170         Simplify the tests to reflect the simpler strerror implementation.
20171         * modules/strerror (Depends-on): Add intprops.
20172
20173 2007-10-09  Eric Blake  <ebb9@byu.net>
20174
20175         Silence test-fpending.
20176         * modules/fpending-tests (Files): Add wrapper script.
20177         * tests/test-fpending.sh: New file.
20178
20179 2007-10-09  Bruno Haible  <bruno@clisp.org>
20180
20181         * MODULES.html.sh (func_module): Don't create a hyperlink for
20182         function names like 'printf_frexp'.
20183         (Misc): Add crc, memxor.
20184         (Characteristics of floating types): New section.
20185         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
20186         isnanf-nolibm, signbit, trunc, truncf, truncl.
20187         (Enhancements for ISO C 99 functions): New subsection Input/output.
20188         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
20189         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
20190         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
20191         (Compatibility checks for POSIX:2001 functions): Add clock-time.
20192         (Enhancements for POSIX:2001 functions): Add chdir-long.
20193         (File system functions): Add areadlink, chdir-safer, read-file.
20194         Remove cycle-check.
20195         (File system as inode set): New section.
20196         (Date and time): Add gethrxtime.
20197         (Multithreading): Add openmp.
20198         (Internationalization functions): Add localename.
20199         (Unicode string functions): Add unistr/u*-mbsnlen.
20200         (Support for maintaining and releasing projects): Add git-version-gen.
20201         (Lone files): Remove directories.
20202
20203 2007-10-08  Ben Pfaff  <blp@gnu.org>
20204
20205         * lib/xmalloca.h: Fix typo in comment.
20206
20207 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20208
20209         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
20210         when avoiding problems with integer overflow.  Use a portable test
20211         instead.
20212
20213 2007-10-08  Simon Josefsson  <simon@josefsson.org>
20214
20215         * modules/dummy (License): Change to LGPLv2+.
20216         * modules/float (License): Likewise
20217         * modules/realloc (License): Likewise
20218         * modules/stdlib (License): Likewise
20219
20220 2007-10-07  Bruno Haible  <bruno@clisp.org>
20221
20222         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
20223         * floor.c (TWO_MANT_DIG): Likewise.
20224         * ceil.c (TWO_MANT_DIG): Likewise.
20225         Reported by Ben Pfaff.
20226
20227 2007-10-07  Bruno Haible  <bruno@clisp.org>
20228
20229         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
20230         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
20231         * lib/frexp.c (FUNC): Likewise.
20232         * lib/printf-frexp.h (printf_frexp): Likewise.
20233         * lib/printf-frexpl.h (printf_frexpl): Likewise.
20234         * lib/printf-frexp.c (FUNC): Likewise.
20235         Suggested by Jim Meyering.
20236
20237 2007-10-07  Jim Meyering  <meyering@redhat.com>
20238
20239         Make xnanosleep's integer overflow test more robust.
20240         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
20241         so that gcc-4.3.0 doesn't optimize away this test for overflow.
20242
20243 2007-10-07  Bruno Haible  <bruno@clisp.org>
20244
20245         * NEWS: Mention the license change.
20246
20247         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
20248         abbreviations in the modules files.
20249
20250         Change copyright notice from GPLv2+ to GPLv3+.
20251         * README: Change copyright notice.
20252         * MODULES.html.sh: Likewise.
20253         * build-aux/bootstrap.conf: Likewise.
20254         * build-aux/config.libpath: Likewise.
20255         * build-aux/csharpcomp.sh.in: Likewise.
20256         * build-aux/csharpexec.sh.in: Likewise.
20257         * build-aux/install-reloc: Likewise.
20258         * build-aux/javacomp.sh.in: Likewise.
20259         * build-aux/javaexec.sh.in: Likewise.
20260         * build-aux/ldd.sh.in: Likewise.
20261         * build-aux/reloc-ldflags: Likewise.
20262         * build-aux/relocatable.sh.in: Likewise.
20263         * build-aux/x-to-1.in: Likewise.
20264         * check-module: Likewise.
20265         * config/srclistvars.sh: Likewise.
20266         * gnulib-tool: Likewise.
20267         * lib/acl-internal.h: Likewise.
20268         * lib/acl.c: Likewise.
20269         * lib/acl.h: Likewise.
20270         * lib/acl_entries.c: Likewise.
20271         * lib/areadlink-with-size.c: Likewise.
20272         * lib/areadlink.c: Likewise.
20273         * lib/areadlink.h: Likewise.
20274         * lib/argmatch.c: Likewise.
20275         * lib/argmatch.h: Likewise.
20276         * lib/argp-ba.c: Likewise.
20277         * lib/argp-eexst.c: Likewise.
20278         * lib/argp-fmtstream.c: Likewise.
20279         * lib/argp-fmtstream.h: Likewise.
20280         * lib/argp-fs-xinl.c: Likewise.
20281         * lib/argp-help.c: Likewise.
20282         * lib/argp-namefrob.h: Likewise.
20283         * lib/argp-parse.c: Likewise.
20284         * lib/argp-pin.c: Likewise.
20285         * lib/argp-pv.c: Likewise.
20286         * lib/argp-pvh.c: Likewise.
20287         * lib/argp-xinl.c: Likewise.
20288         * lib/argp.h: Likewise.
20289         * lib/at-func.c: Likewise.
20290         * lib/atanl.c: Likewise.
20291         * lib/backupfile.c: Likewise.
20292         * lib/backupfile.h: Likewise.
20293         * lib/basename.c: Likewise.
20294         * lib/binary-io.h: Likewise.
20295         * lib/byteswap.in.h: Likewise.
20296         * lib/c-stack.c: Likewise.
20297         * lib/c-stack.h: Likewise.
20298         * lib/c-strcasestr.c: Likewise.
20299         * lib/c-strcasestr.h: Likewise.
20300         * lib/c-strstr.c: Likewise.
20301         * lib/c-strstr.h: Likewise.
20302         * lib/c-strtod.c: Likewise.
20303         * lib/calloc.c: Likewise.
20304         * lib/canon-host.c: Likewise.
20305         * lib/canon-host.h: Likewise.
20306         * lib/canonicalize-lgpl.c: Likewise.
20307         * lib/canonicalize.c: Likewise.
20308         * lib/canonicalize.h: Likewise.
20309         * lib/ceil.c: Likewise.
20310         * lib/ceilf.c: Likewise.
20311         * lib/ceill.c: Likewise.
20312         * lib/chdir-long.c: Likewise.
20313         * lib/chdir-long.h: Likewise.
20314         * lib/chdir-safer.c: Likewise.
20315         * lib/chdir-safer.h: Likewise.
20316         * lib/chown.c: Likewise.
20317         * lib/classpath.c: Likewise.
20318         * lib/classpath.h: Likewise.
20319         * lib/clean-temp.c: Likewise.
20320         * lib/clean-temp.h: Likewise.
20321         * lib/cloexec.c: Likewise.
20322         * lib/close-stream.c: Likewise.
20323         * lib/closein.c: Likewise.
20324         * lib/closein.h: Likewise.
20325         * lib/closeout.c: Likewise.
20326         * lib/closeout.h: Likewise.
20327         * lib/concat-filename.c: Likewise.
20328         * lib/copy-file.c: Likewise.
20329         * lib/copy-file.h: Likewise.
20330         * lib/count-one-bits.h: Likewise.
20331         * lib/crc.c: Likewise.
20332         * lib/crc.h: Likewise.
20333         * lib/creat-safer.c: Likewise.
20334         * lib/csharpcomp.c: Likewise.
20335         * lib/csharpcomp.h: Likewise.
20336         * lib/csharpexec.c: Likewise.
20337         * lib/csharpexec.h: Likewise.
20338         * lib/cycle-check.c: Likewise.
20339         * lib/cycle-check.h: Likewise.
20340         * lib/diacrit.c: Likewise.
20341         * lib/diacrit.h: Likewise.
20342         * lib/diffseq.h: Likewise.
20343         * lib/dirchownmod.c: Likewise.
20344         * lib/dirent.in.h: Likewise.
20345         * lib/dirfd.c: Likewise.
20346         * lib/dirfd.h: Likewise.
20347         * lib/dirname.c: Likewise.
20348         * lib/dirname.h: Likewise.
20349         * lib/dummy.c: Likewise.
20350         * lib/dup-safer.c: Likewise.
20351         * lib/dup2.c: Likewise.
20352         * lib/eealloc.h: Likewise.
20353         * lib/error.c: Likewise.
20354         * lib/error.h: Likewise.
20355         * lib/euidaccess.c: Likewise.
20356         * lib/exclude.c: Likewise.
20357         * lib/exclude.h: Likewise.
20358         * lib/execute.c: Likewise.
20359         * lib/execute.h: Likewise.
20360         * lib/exitfail.c: Likewise.
20361         * lib/exitfail.h: Likewise.
20362         * lib/expl.c: Likewise.
20363         * lib/fatal-signal.c: Likewise.
20364         * lib/fatal-signal.h: Likewise.
20365         * lib/fbufmode.c: Likewise.
20366         * lib/fbufmode.h: Likewise.
20367         * lib/fchdir.c: Likewise.
20368         * lib/fchmodat.c: Likewise.
20369         * lib/fchownat.c: Likewise.
20370         * lib/fcntl--.h: Likewise.
20371         * lib/fcntl-safer.h: Likewise.
20372         * lib/fcntl.in.h: Likewise.
20373         * lib/fd-safer.c: Likewise.
20374         * lib/fflush.c: Likewise.
20375         * lib/file-has-acl.c: Likewise.
20376         * lib/file-set.c: Likewise.
20377         * lib/file-type.c: Likewise.
20378         * lib/file-type.h: Likewise.
20379         * lib/fileblocks.c: Likewise.
20380         * lib/filemode.c: Likewise.
20381         * lib/filemode.h: Likewise.
20382         * lib/filename.h: Likewise.
20383         * lib/filenamecat.c: Likewise.
20384         * lib/filenamecat.h: Likewise.
20385         * lib/findprog.c: Likewise.
20386         * lib/findprog.h: Likewise.
20387         * lib/float.in.h: Likewise.
20388         * lib/floor.c: Likewise.
20389         * lib/floorf.c: Likewise.
20390         * lib/floorl.c: Likewise.
20391         * lib/fopen-safer.c: Likewise.
20392         * lib/fopen.c: Likewise.
20393         * lib/fpending.c: Likewise.
20394         * lib/fpending.h: Likewise.
20395         * lib/fprintf.c: Likewise.
20396         * lib/fprintftime.h: Likewise.
20397         * lib/fpucw.h: Likewise.
20398         * lib/fpurge.c: Likewise.
20399         * lib/fpurge.h: Likewise.
20400         * lib/freadable.c: Likewise.
20401         * lib/freadable.h: Likewise.
20402         * lib/freadahead.c: Likewise.
20403         * lib/freadahead.h: Likewise.
20404         * lib/freading.c: Likewise.
20405         * lib/freading.h: Likewise.
20406         * lib/free.c: Likewise.
20407         * lib/freopen.c: Likewise.
20408         * lib/frexp.c: Likewise.
20409         * lib/frexpl.c: Likewise.
20410         * lib/fseek.c: Likewise.
20411         * lib/fseterr.c: Likewise.
20412         * lib/fseterr.h: Likewise.
20413         * lib/fstatat.c: Likewise.
20414         * lib/fstrcmp.c: Likewise.
20415         * lib/fstrcmp.h: Likewise.
20416         * lib/fsusage.c: Likewise.
20417         * lib/fsusage.h: Likewise.
20418         * lib/ftell.c: Likewise.
20419         * lib/ftello.c: Likewise.
20420         * lib/fts-cycle.c: Likewise.
20421         * lib/fts.c: Likewise.
20422         * lib/fts_.h: Likewise.
20423         * lib/full-read.c: Likewise.
20424         * lib/full-read.h: Likewise.
20425         * lib/full-write.c: Likewise.
20426         * lib/full-write.h: Likewise.
20427         * lib/fwritable.c: Likewise.
20428         * lib/fwritable.h: Likewise.
20429         * lib/fwriteerror.c: Likewise.
20430         * lib/fwriteerror.h: Likewise.
20431         * lib/fwriting.c: Likewise.
20432         * lib/fwriting.h: Likewise.
20433         * lib/gcd.c: Likewise.
20434         * lib/gcd.h: Likewise.
20435         * lib/getcwd.c: Likewise.
20436         * lib/getdate.h: Likewise.
20437         * lib/getdate.y: Likewise.
20438         * lib/getdomainname.c: Likewise.
20439         * lib/getdomainname.h: Likewise.
20440         * lib/getgroups.c: Likewise.
20441         * lib/gethostname.c: Likewise.
20442         * lib/gethrxtime.c: Likewise.
20443         * lib/gethrxtime.h: Likewise.
20444         * lib/getloadavg.c: Likewise.
20445         * lib/getndelim2.c: Likewise.
20446         * lib/getndelim2.h: Likewise.
20447         * lib/getnline.c: Likewise.
20448         * lib/getnline.h: Likewise.
20449         * lib/getopt.c: Likewise.
20450         * lib/getopt.in.h: Likewise.
20451         * lib/getopt1.c: Likewise.
20452         * lib/getopt_int.h: Likewise.
20453         * lib/getpagesize.h: Likewise.
20454         * lib/getsubopt.c: Likewise.
20455         * lib/gettime.c: Likewise.
20456         * lib/getugroups.c: Likewise.
20457         * lib/getugroups.h: Likewise.
20458         * lib/getusershell.c: Likewise.
20459         * lib/gl_anyavltree_list1.h: Likewise.
20460         * lib/gl_anyavltree_list2.h: Likewise.
20461         * lib/gl_anyhash_list1.h: Likewise.
20462         * lib/gl_anyhash_list2.h: Likewise.
20463         * lib/gl_anylinked_list1.h: Likewise.
20464         * lib/gl_anylinked_list2.h: Likewise.
20465         * lib/gl_anyrbtree_list1.h: Likewise.
20466         * lib/gl_anyrbtree_list2.h: Likewise.
20467         * lib/gl_anytree_list1.h: Likewise.
20468         * lib/gl_anytree_list2.h: Likewise.
20469         * lib/gl_anytree_oset.h: Likewise.
20470         * lib/gl_anytreehash_list1.h: Likewise.
20471         * lib/gl_anytreehash_list2.h: Likewise.
20472         * lib/gl_array_list.c: Likewise.
20473         * lib/gl_array_list.h: Likewise.
20474         * lib/gl_array_oset.c: Likewise.
20475         * lib/gl_array_oset.h: Likewise.
20476         * lib/gl_avltree_list.c: Likewise.
20477         * lib/gl_avltree_list.h: Likewise.
20478         * lib/gl_avltree_oset.c: Likewise.
20479         * lib/gl_avltree_oset.h: Likewise.
20480         * lib/gl_avltreehash_list.c: Likewise.
20481         * lib/gl_avltreehash_list.h: Likewise.
20482         * lib/gl_carray_list.c: Likewise.
20483         * lib/gl_carray_list.h: Likewise.
20484         * lib/gl_linked_list.c: Likewise.
20485         * lib/gl_linked_list.h: Likewise.
20486         * lib/gl_linkedhash_list.c: Likewise.
20487         * lib/gl_linkedhash_list.h: Likewise.
20488         * lib/gl_list.c: Likewise.
20489         * lib/gl_list.h: Likewise.
20490         * lib/gl_oset.c: Likewise.
20491         * lib/gl_oset.h: Likewise.
20492         * lib/gl_rbtree_list.c: Likewise.
20493         * lib/gl_rbtree_list.h: Likewise.
20494         * lib/gl_rbtree_oset.c: Likewise.
20495         * lib/gl_rbtree_oset.h: Likewise.
20496         * lib/gl_rbtreehash_list.c: Likewise.
20497         * lib/gl_rbtreehash_list.h: Likewise.
20498         * lib/gl_sublist.c: Likewise.
20499         * lib/gl_sublist.h: Likewise.
20500         * lib/group-member.c: Likewise.
20501         * lib/group-member.h: Likewise.
20502         * lib/hard-locale.c: Likewise.
20503         * lib/hard-locale.h: Likewise.
20504         * lib/hash-pjw.c: Likewise.
20505         * lib/hash-pjw.h: Likewise.
20506         * lib/hash-triple.c: Likewise.
20507         * lib/hash.c: Likewise.
20508         * lib/hash.h: Likewise.
20509         * lib/human.c: Likewise.
20510         * lib/human.h: Likewise.
20511         * lib/i-ring.c: Likewise.
20512         * lib/i-ring.h: Likewise.
20513         * lib/idcache.c: Likewise.
20514         * lib/imaxabs.c: Likewise.
20515         * lib/imaxdiv.c: Likewise.
20516         * lib/inet_pton.c: Likewise.
20517         * lib/inet_pton.h: Likewise.
20518         * lib/intprops.h: Likewise.
20519         * lib/inttostr.c: Likewise.
20520         * lib/inttostr.h: Likewise.
20521         * lib/inttypes.in.h: Likewise.
20522         * lib/isapipe.c: Likewise.
20523         * lib/isdir.c: Likewise.
20524         * lib/isnan.c: Likewise.
20525         * lib/isnan.h: Likewise.
20526         * lib/isnanf.c: Likewise.
20527         * lib/isnanf.h: Likewise.
20528         * lib/isnanl-nolibm.h: Likewise.
20529         * lib/isnanl.c: Likewise.
20530         * lib/isnanl.h: Likewise.
20531         * lib/javacomp.c: Likewise.
20532         * lib/javacomp.h: Likewise.
20533         * lib/javaexec.c: Likewise.
20534         * lib/javaexec.h: Likewise.
20535         * lib/javaversion.c: Likewise.
20536         * lib/javaversion.h: Likewise.
20537         * lib/javaversion.java: Likewise.
20538         * lib/lbrkprop.h: Likewise.
20539         * lib/lchmod.h: Likewise.
20540         * lib/lchown.c: Likewise.
20541         * lib/ldexpl.c: Likewise.
20542         * lib/linebreak.c: Likewise.
20543         * lib/linebreak.h: Likewise.
20544         * lib/linebuffer.c: Likewise.
20545         * lib/linebuffer.h: Likewise.
20546         * lib/locale.in.h: Likewise.
20547         * lib/logl.c: Likewise.
20548         * lib/long-options.c: Likewise.
20549         * lib/long-options.h: Likewise.
20550         * lib/lstat.c: Likewise.
20551         * lib/lstat.h: Likewise.
20552         * lib/math.in.h: Likewise.
20553         * lib/mbchar.c: Likewise.
20554         * lib/mbchar.h: Likewise.
20555         * lib/mbfile.h: Likewise.
20556         * lib/mbiter.h: Likewise.
20557         * lib/mbscasecmp.c: Likewise.
20558         * lib/mbscasestr.c: Likewise.
20559         * lib/mbschr.c: Likewise.
20560         * lib/mbscspn.c: Likewise.
20561         * lib/mbslen.c: Likewise.
20562         * lib/mbsncasecmp.c: Likewise.
20563         * lib/mbsnlen.c: Likewise.
20564         * lib/mbspbrk.c: Likewise.
20565         * lib/mbspcasecmp.c: Likewise.
20566         * lib/mbsrchr.c: Likewise.
20567         * lib/mbssep.c: Likewise.
20568         * lib/mbsspn.c: Likewise.
20569         * lib/mbsstr.c: Likewise.
20570         * lib/mbstok_r.c: Likewise.
20571         * lib/mbswidth.c: Likewise.
20572         * lib/mbswidth.h: Likewise.
20573         * lib/mbuiter.h: Likewise.
20574         * lib/memcasecmp.c: Likewise.
20575         * lib/memcasecmp.h: Likewise.
20576         * lib/memchr.c: Likewise.
20577         * lib/memcmp.c: Likewise.
20578         * lib/memcoll.c: Likewise.
20579         * lib/memcoll.h: Likewise.
20580         * lib/memcpy.c: Likewise.
20581         * lib/memrchr.c: Likewise.
20582         * lib/mkancesdirs.c: Likewise.
20583         * lib/mkdir-p.c: Likewise.
20584         * lib/mkdir-p.h: Likewise.
20585         * lib/mkdir.c: Likewise.
20586         * lib/mkdirat.c: Likewise.
20587         * lib/mkdtemp.c: Likewise.
20588         * lib/mkstemp-safer.c: Likewise.
20589         * lib/mkstemp.c: Likewise.
20590         * lib/modechange.c: Likewise.
20591         * lib/modechange.h: Likewise.
20592         * lib/mountlist.c: Likewise.
20593         * lib/mountlist.h: Likewise.
20594         * lib/mpsort.c: Likewise.
20595         * lib/nanosleep.c: Likewise.
20596         * lib/obstack.c: Likewise.
20597         * lib/obstack.h: Likewise.
20598         * lib/open-safer.c: Likewise.
20599         * lib/open.c: Likewise.
20600         * lib/openat-die.c: Likewise.
20601         * lib/openat-priv.h: Likewise.
20602         * lib/openat-proc.c: Likewise.
20603         * lib/openat.c: Likewise.
20604         * lib/openat.h: Likewise.
20605         * lib/pagealign_alloc.c: Likewise.
20606         * lib/pagealign_alloc.h: Likewise.
20607         * lib/physmem.c: Likewise.
20608         * lib/physmem.h: Likewise.
20609         * lib/pipe-safer.c: Likewise.
20610         * lib/pipe.c: Likewise.
20611         * lib/pipe.h: Likewise.
20612         * lib/posixtm.c: Likewise.
20613         * lib/posixtm.h: Likewise.
20614         * lib/posixver.c: Likewise.
20615         * lib/printf-frexp.c: Likewise.
20616         * lib/printf-frexp.h: Likewise.
20617         * lib/printf-frexpl.c: Likewise.
20618         * lib/printf-frexpl.h: Likewise.
20619         * lib/printf.c: Likewise.
20620         * lib/progname.c: Likewise.
20621         * lib/progname.h: Likewise.
20622         * lib/progreloc.c: Likewise.
20623         * lib/putenv.c: Likewise.
20624         * lib/quote.c: Likewise.
20625         * lib/quote.h: Likewise.
20626         * lib/quotearg.c: Likewise.
20627         * lib/quotearg.h: Likewise.
20628         * lib/raise.c: Likewise.
20629         * lib/readline.c: Likewise.
20630         * lib/readline.h: Likewise.
20631         * lib/readlink.c: Likewise.
20632         * lib/readtokens.c: Likewise.
20633         * lib/readtokens.h: Likewise.
20634         * lib/readtokens0.c: Likewise.
20635         * lib/readtokens0.h: Likewise.
20636         * lib/readutmp.c: Likewise.
20637         * lib/readutmp.h: Likewise.
20638         * lib/realloc.c: Likewise.
20639         * lib/relocwrapper.c: Likewise.
20640         * lib/rename-dest-slash.c: Likewise.
20641         * lib/rename.c: Likewise.
20642         * lib/rmdir.c: Likewise.
20643         * lib/rpmatch.c: Likewise.
20644         * lib/safe-read.c: Likewise.
20645         * lib/safe-read.h: Likewise.
20646         * lib/safe-write.c: Likewise.
20647         * lib/safe-write.h: Likewise.
20648         * lib/same-inode.h: Likewise.
20649         * lib/same.c: Likewise.
20650         * lib/same.h: Likewise.
20651         * lib/save-cwd.c: Likewise.
20652         * lib/save-cwd.h: Likewise.
20653         * lib/savedir.c: Likewise.
20654         * lib/savedir.h: Likewise.
20655         * lib/savewd.c: Likewise.
20656         * lib/savewd.h: Likewise.
20657         * lib/search.in.h: Likewise.
20658         * lib/setenv.c: Likewise.
20659         * lib/setenv.h: Likewise.
20660         * lib/settime.c: Likewise.
20661         * lib/sh-quote.c: Likewise.
20662         * lib/sh-quote.h: Likewise.
20663         * lib/sig2str.c: Likewise.
20664         * lib/sig2str.h: Likewise.
20665         * lib/signal.in.h: Likewise.
20666         * lib/signbitd.c: Likewise.
20667         * lib/signbitf.c: Likewise.
20668         * lib/signbitl.c: Likewise.
20669         * lib/sigprocmask.c: Likewise.
20670         * lib/sincosl.c: Likewise.
20671         * lib/sleep.c: Likewise.
20672         * lib/sprintf.c: Likewise.
20673         * lib/sqrtl.c: Likewise.
20674         * lib/stat-time.h: Likewise.
20675         * lib/stdio--.h: Likewise.
20676         * lib/stdio-safer.h: Likewise.
20677         * lib/stdlib--.h: Likewise.
20678         * lib/stdlib-safer.h: Likewise.
20679         * lib/stdlib.in.h: Likewise.
20680         * lib/stpcpy.c: Likewise.
20681         * lib/stpncpy.c: Likewise.
20682         * lib/strchrnul.c: Likewise.
20683         * lib/strcspn.c: Likewise.
20684         * lib/strerror.c: Likewise.
20685         * lib/strftime.c: Likewise.
20686         * lib/strftime.h: Likewise.
20687         * lib/striconveh.c: Likewise.
20688         * lib/striconveh.h: Likewise.
20689         * lib/striconveha.c: Likewise.
20690         * lib/striconveha.h: Likewise.
20691         * lib/stripslash.c: Likewise.
20692         * lib/strnlen1.c: Likewise.
20693         * lib/strnlen1.h: Likewise.
20694         * lib/strtod.c: Likewise.
20695         * lib/strtoimax.c: Likewise.
20696         * lib/strtok_r.c: Likewise.
20697         * lib/strtol.c: Likewise.
20698         * lib/strtoll.c: Likewise.
20699         * lib/strtoul.c: Likewise.
20700         * lib/strtoull.c: Likewise.
20701         * lib/sysexits.in.h: Likewise.
20702         * lib/tempname.c: Likewise.
20703         * lib/tempname.h: Likewise.
20704         * lib/timespec.h: Likewise.
20705         * lib/tls.c: Likewise.
20706         * lib/tls.h: Likewise.
20707         * lib/tmpdir.c: Likewise.
20708         * lib/tmpdir.h: Likewise.
20709         * lib/tmpfile-safer.c: Likewise.
20710         * lib/tmpfile.c: Likewise.
20711         * lib/trigl.c: Likewise.
20712         * lib/trigl.h: Likewise.
20713         * lib/trim.c: Likewise.
20714         * lib/trim.h: Likewise.
20715         * lib/trunc.c: Likewise.
20716         * lib/truncf.c: Likewise.
20717         * lib/truncl.c: Likewise.
20718         * lib/tsearch.c: Likewise.
20719         * lib/unicodeio.c: Likewise.
20720         * lib/unicodeio.h: Likewise.
20721         * lib/unistd--.h: Likewise.
20722         * lib/unistd-safer.h: Likewise.
20723         * lib/unistdio/ulc-fprintf.c: Likewise.
20724         * lib/unistdio/ulc-vfprintf.c: Likewise.
20725         * lib/unlinkdir.c: Likewise.
20726         * lib/unlinkdir.h: Likewise.
20727         * lib/unlocked-io.h: Likewise.
20728         * lib/unsetenv.c: Likewise.
20729         * lib/userspec.c: Likewise.
20730         * lib/utime.c: Likewise.
20731         * lib/utimecmp.c: Likewise.
20732         * lib/utimecmp.h: Likewise.
20733         * lib/utimens.c: Likewise.
20734         * lib/verify.h: Likewise.
20735         * lib/verror.c: Likewise.
20736         * lib/verror.h: Likewise.
20737         * lib/version-etc-fsf.c: Likewise.
20738         * lib/version-etc.c: Likewise.
20739         * lib/version-etc.h: Likewise.
20740         * lib/vfprintf.c: Likewise.
20741         * lib/vprintf.c: Likewise.
20742         * lib/vsprintf.c: Likewise.
20743         * lib/w32spawn.h: Likewise.
20744         * lib/wait-process.c: Likewise.
20745         * lib/wait-process.h: Likewise.
20746         * lib/wcwidth.c: Likewise.
20747         * lib/write-any-file.c: Likewise.
20748         * lib/xalloc-die.c: Likewise.
20749         * lib/xalloc.h: Likewise.
20750         * lib/xasprintf.c: Likewise.
20751         * lib/xgetcwd.c: Likewise.
20752         * lib/xgetcwd.h: Likewise.
20753         * lib/xgetdomainname.c: Likewise.
20754         * lib/xgetdomainname.h: Likewise.
20755         * lib/xgethostname.c: Likewise.
20756         * lib/xmalloc.c: Likewise.
20757         * lib/xmalloca.c: Likewise.
20758         * lib/xmalloca.h: Likewise.
20759         * lib/xmemcoll.c: Likewise.
20760         * lib/xnanosleep.c: Likewise.
20761         * lib/xreadlink.c: Likewise.
20762         * lib/xreadlink.h: Likewise.
20763         * lib/xsetenv.c: Likewise.
20764         * lib/xsetenv.h: Likewise.
20765         * lib/xstriconv.c: Likewise.
20766         * lib/xstriconv.h: Likewise.
20767         * lib/xstrndup.c: Likewise.
20768         * lib/xstrndup.h: Likewise.
20769         * lib/xstrtod.c: Likewise.
20770         * lib/xstrtod.h: Likewise.
20771         * lib/xstrtol-error.c: Likewise.
20772         * lib/xstrtol.c: Likewise.
20773         * lib/xstrtol.h: Likewise.
20774         * lib/xtime.h: Likewise.
20775         * lib/xvasprintf.c: Likewise.
20776         * lib/xvasprintf.h: Likewise.
20777         * lib/yesno.c: Likewise.
20778         * lib/yesno.h: Likewise.
20779         * posix-modules: Likewise.
20780         * tests/test-alloca-opt.c: Likewise.
20781         * tests/test-arcfour.c: Likewise.
20782         * tests/test-arctwo.c: Likewise.
20783         * tests/test-argmatch.c: Likewise.
20784         * tests/test-argp-2.sh: Likewise.
20785         * tests/test-argp.c: Likewise.
20786         * tests/test-arpa_inet.c: Likewise.
20787         * tests/test-array_list.c: Likewise.
20788         * tests/test-array_oset.c: Likewise.
20789         * tests/test-atexit.c: Likewise.
20790         * tests/test-avltree_list.c: Likewise.
20791         * tests/test-avltree_oset.c: Likewise.
20792         * tests/test-avltreehash_list.c: Likewise.
20793         * tests/test-base64.c: Likewise.
20794         * tests/test-binary-io.c: Likewise.
20795         * tests/test-byteswap.c: Likewise.
20796         * tests/test-c-ctype.c: Likewise.
20797         * tests/test-c-strcasecmp.c: Likewise.
20798         * tests/test-c-strcasestr.c: Likewise.
20799         * tests/test-c-strncasecmp.c: Likewise.
20800         * tests/test-c-strstr.c: Likewise.
20801         * tests/test-canonicalize-lgpl.c: Likewise.
20802         * tests/test-canonicalize.c: Likewise.
20803         * tests/test-carray_list.c: Likewise.
20804         * tests/test-ceilf.c: Likewise.
20805         * tests/test-ceill.c: Likewise.
20806         * tests/test-count-one-bits.c: Likewise.
20807         * tests/test-crc.c: Likewise.
20808         * tests/test-dirname.c: Likewise.
20809         * tests/test-fbufmode.c: Likewise.
20810         * tests/test-fcntl.c: Likewise.
20811         * tests/test-fflush.c: Likewise.
20812         * tests/test-floorf.c: Likewise.
20813         * tests/test-floorl.c: Likewise.
20814         * tests/test-fopen.c: Likewise.
20815         * tests/test-fprintf-posix.c: Likewise.
20816         * tests/test-fprintf-posix.h: Likewise.
20817         * tests/test-fpurge.c: Likewise.
20818         * tests/test-freadable.c: Likewise.
20819         * tests/test-freadahead.c: Likewise.
20820         * tests/test-freading.c: Likewise.
20821         * tests/test-freopen.c: Likewise.
20822         * tests/test-frexp.c: Likewise.
20823         * tests/test-frexpl.c: Likewise.
20824         * tests/test-fseek.c: Likewise.
20825         * tests/test-fseeko.c: Likewise.
20826         * tests/test-fseterr.c: Likewise.
20827         * tests/test-fstrcmp.c: Likewise.
20828         * tests/test-ftell.c: Likewise.
20829         * tests/test-ftello.c: Likewise.
20830         * tests/test-fwritable.c: Likewise.
20831         * tests/test-fwriting.c: Likewise.
20832         * tests/test-getaddrinfo.c: Likewise.
20833         * tests/test-getpass.c: Likewise.
20834         * tests/test-gettimeofday.c: Likewise.
20835         * tests/test-hmac-md5.c: Likewise.
20836         * tests/test-hmac-sha1.c: Likewise.
20837         * tests/test-iconv.c: Likewise.
20838         * tests/test-iconvme.c: Likewise.
20839         * tests/test-inttypes.c: Likewise.
20840         * tests/test-isnan.c: Likewise.
20841         * tests/test-isnanf.c: Likewise.
20842         * tests/test-isnanl-nolibm.c: Likewise.
20843         * tests/test-isnanl.c: Likewise.
20844         * tests/test-isnanl.h: Likewise.
20845         * tests/test-ldexpl.c: Likewise.
20846         * tests/test-linked_list.c: Likewise.
20847         * tests/test-linkedhash_list.c: Likewise.
20848         * tests/test-locale.c: Likewise.
20849         * tests/test-localename.c: Likewise.
20850         * tests/test-lock.c: Likewise.
20851         * tests/test-lseek.c: Likewise.
20852         * tests/test-malloca.c: Likewise.
20853         * tests/test-math.c: Likewise.
20854         * tests/test-mbscasecmp.c: Likewise.
20855         * tests/test-mbscasestr1.c: Likewise.
20856         * tests/test-mbscasestr2.c: Likewise.
20857         * tests/test-mbscasestr3.c: Likewise.
20858         * tests/test-mbscasestr4.c: Likewise.
20859         * tests/test-mbschr.c: Likewise.
20860         * tests/test-mbscspn.c: Likewise.
20861         * tests/test-mbsncasecmp.c: Likewise.
20862         * tests/test-mbspbrk.c: Likewise.
20863         * tests/test-mbspcasecmp.c: Likewise.
20864         * tests/test-mbsrchr.c: Likewise.
20865         * tests/test-mbsspn.c: Likewise.
20866         * tests/test-mbsstr1.c: Likewise.
20867         * tests/test-mbsstr2.c: Likewise.
20868         * tests/test-mbsstr3.c: Likewise.
20869         * tests/test-md5.c: Likewise.
20870         * tests/test-memmem.c: Likewise.
20871         * tests/test-netinet_in.c: Likewise.
20872         * tests/test-open.c: Likewise.
20873         * tests/test-printf-frexp.c: Likewise.
20874         * tests/test-printf-frexpl.c: Likewise.
20875         * tests/test-printf-posix.c: Likewise.
20876         * tests/test-printf-posix.h: Likewise.
20877         * tests/test-rbtree_list.c: Likewise.
20878         * tests/test-rbtree_oset.c: Likewise.
20879         * tests/test-rbtreehash_list.c: Likewise.
20880         * tests/test-read-file.c: Likewise.
20881         * tests/test-rijndael.c: Likewise.
20882         * tests/test-search.c: Likewise.
20883         * tests/test-signbit.c: Likewise.
20884         * tests/test-sleep.c: Likewise.
20885         * tests/test-snprintf-posix.c: Likewise.
20886         * tests/test-snprintf-posix.h: Likewise.
20887         * tests/test-snprintf.c: Likewise.
20888         * tests/test-sprintf-posix.c: Likewise.
20889         * tests/test-sprintf-posix.h: Likewise.
20890         * tests/test-stat-time.c: Likewise.
20891         * tests/test-stdbool.c: Likewise.
20892         * tests/test-stdint.c: Likewise.
20893         * tests/test-stdio.c: Likewise.
20894         * tests/test-stdlib.c: Likewise.
20895         * tests/test-stpncpy.c: Likewise.
20896         * tests/test-strcasestr.c: Likewise.
20897         * tests/test-striconv.c: Likewise.
20898         * tests/test-striconveh.c: Likewise.
20899         * tests/test-striconveha.c: Likewise.
20900         * tests/test-string.c: Likewise.
20901         * tests/test-sys_select.c: Likewise.
20902         * tests/test-sys_socket.c: Likewise.
20903         * tests/test-sys_stat.c: Likewise.
20904         * tests/test-sys_time.c: Likewise.
20905         * tests/test-sysexits.c: Likewise.
20906         * tests/test-time.c: Likewise.
20907         * tests/test-tls.c: Likewise.
20908         * tests/test-trunc.c: Likewise.
20909         * tests/test-truncf.c: Likewise.
20910         * tests/test-truncl.c: Likewise.
20911         * tests/test-unistd.c: Likewise.
20912         * tests/test-vasnprintf-posix.c: Likewise.
20913         * tests/test-vasnprintf-posix2.c: Likewise.
20914         * tests/test-vasnprintf.c: Likewise.
20915         * tests/test-vasprintf-posix.c: Likewise.
20916         * tests/test-vasprintf.c: Likewise.
20917         * tests/test-verify.c: Likewise.
20918         * tests/test-vfprintf-posix.c: Likewise.
20919         * tests/test-vprintf-posix.c: Likewise.
20920         * tests/test-vsnprintf-posix.c: Likewise.
20921         * tests/test-vsnprintf.c: Likewise.
20922         * tests/test-vsprintf-posix.c: Likewise.
20923         * tests/test-wchar.c: Likewise.
20924         * tests/test-wctype.c: Likewise.
20925         * tests/test-wcwidth.c: Likewise.
20926         * tests/test-xstrtol.c: Likewise.
20927         * tests/test-xvasprintf.c: Likewise.
20928         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
20929         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
20930         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
20931         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
20932         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
20933         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
20934         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
20935         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
20936         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
20937         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
20938         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
20939         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
20940         * tests/uniname/test-uninames.c: Likewise.
20941         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
20942         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
20943         * tests/unistdio/test-u16-printf1.h: Likewise.
20944         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
20945         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
20946         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
20947         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
20948         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
20949         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
20950         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
20951         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
20952         * tests/unistdio/test-u32-printf1.h: Likewise.
20953         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
20954         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
20955         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
20956         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
20957         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
20958         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
20959         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
20960         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
20961         * tests/unistdio/test-u8-printf1.h: Likewise.
20962         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
20963         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
20964         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
20965         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
20966         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
20967         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
20968         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
20969         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
20970         * tests/unistdio/test-ulc-printf1.h: Likewise.
20971         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
20972         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
20973         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
20974         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
20975         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
20976         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
20977         * tests/uniwidth/test-u16-strwidth.c: Likewise.
20978         * tests/uniwidth/test-u16-width.c: Likewise.
20979         * tests/uniwidth/test-u32-strwidth.c: Likewise.
20980         * tests/uniwidth/test-u32-width.c: Likewise.
20981         * tests/uniwidth/test-u8-strwidth.c: Likewise.
20982         * tests/uniwidth/test-u8-width.c: Likewise.
20983         * tests/uniwidth/test-uc_width.c: Likewise.
20984         * config/srclist-update: Likewise.
20985         (fixlicense): Update to GPLv3+.
20986
20987         Change copyright notice from LGPLv2.1+ to LGPLv3+.
20988         * tests/test-tsearch.c: Change copyright notice.
20989
20990         Change copyright notice from LGPLv2.0+ to LGPLv3+.
20991         * lib/c-strcaseeq.h: Change copyright notice.
20992         * lib/streq.h: Likewise.
20993         * lib/uniconv.h: Likewise.
20994         * lib/uniconv/u-conv-from-enc.h: Likewise.
20995         * lib/uniconv/u-conv-to-enc.h: Likewise.
20996         * lib/uniconv/u-strconv-from-enc.h: Likewise.
20997         * lib/uniconv/u-strconv-to-enc.h: Likewise.
20998         * lib/uniconv/u16-conv-from-enc.c: Likewise.
20999         * lib/uniconv/u16-conv-to-enc.c: Likewise.
21000         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
21001         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
21002         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
21003         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
21004         * lib/uniconv/u32-conv-from-enc.c: Likewise.
21005         * lib/uniconv/u32-conv-to-enc.c: Likewise.
21006         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
21007         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
21008         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
21009         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
21010         * lib/uniconv/u8-conv-from-enc.c: Likewise.
21011         * lib/uniconv/u8-conv-to-enc.c: Likewise.
21012         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
21013         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
21014         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
21015         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
21016         * lib/uniname.h: Likewise.
21017         * lib/uniname/uniname.c: Likewise.
21018         * lib/unistdio.h: Likewise.
21019         * lib/unistdio/u-asnprintf.h: Likewise.
21020         * lib/unistdio/u-asprintf.h: Likewise.
21021         * lib/unistdio/u-printf-args.c: Likewise.
21022         * lib/unistdio/u-printf-args.h: Likewise.
21023         * lib/unistdio/u-printf-parse.h: Likewise.
21024         * lib/unistdio/u-snprintf.h: Likewise.
21025         * lib/unistdio/u-sprintf.h: Likewise.
21026         * lib/unistdio/u-vasprintf.h: Likewise.
21027         * lib/unistdio/u-vsnprintf.h: Likewise.
21028         * lib/unistdio/u-vsprintf.h: Likewise.
21029         * lib/unistdio/u16-asnprintf.c: Likewise.
21030         * lib/unistdio/u16-asprintf.c: Likewise.
21031         * lib/unistdio/u16-printf-parse.c: Likewise.
21032         * lib/unistdio/u16-snprintf.c: Likewise.
21033         * lib/unistdio/u16-sprintf.c: Likewise.
21034         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
21035         * lib/unistdio/u16-u16-asprintf.c: Likewise.
21036         * lib/unistdio/u16-u16-snprintf.c: Likewise.
21037         * lib/unistdio/u16-u16-sprintf.c: Likewise.
21038         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
21039         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
21040         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
21041         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
21042         * lib/unistdio/u16-vasnprintf.c: Likewise.
21043         * lib/unistdio/u16-vasprintf.c: Likewise.
21044         * lib/unistdio/u16-vsnprintf.c: Likewise.
21045         * lib/unistdio/u16-vsprintf.c: Likewise.
21046         * lib/unistdio/u32-asnprintf.c: Likewise.
21047         * lib/unistdio/u32-asprintf.c: Likewise.
21048         * lib/unistdio/u32-printf-parse.c: Likewise.
21049         * lib/unistdio/u32-snprintf.c: Likewise.
21050         * lib/unistdio/u32-sprintf.c: Likewise.
21051         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
21052         * lib/unistdio/u32-u32-asprintf.c: Likewise.
21053         * lib/unistdio/u32-u32-snprintf.c: Likewise.
21054         * lib/unistdio/u32-u32-sprintf.c: Likewise.
21055         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
21056         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
21057         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
21058         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
21059         * lib/unistdio/u32-vasnprintf.c: Likewise.
21060         * lib/unistdio/u32-vasprintf.c: Likewise.
21061         * lib/unistdio/u32-vsnprintf.c: Likewise.
21062         * lib/unistdio/u32-vsprintf.c: Likewise.
21063         * lib/unistdio/u8-asnprintf.c: Likewise.
21064         * lib/unistdio/u8-asprintf.c: Likewise.
21065         * lib/unistdio/u8-printf-parse.c: Likewise.
21066         * lib/unistdio/u8-snprintf.c: Likewise.
21067         * lib/unistdio/u8-sprintf.c: Likewise.
21068         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
21069         * lib/unistdio/u8-u8-asprintf.c: Likewise.
21070         * lib/unistdio/u8-u8-snprintf.c: Likewise.
21071         * lib/unistdio/u8-u8-sprintf.c: Likewise.
21072         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
21073         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
21074         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
21075         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
21076         * lib/unistdio/u8-vasnprintf.c: Likewise.
21077         * lib/unistdio/u8-vasprintf.c: Likewise.
21078         * lib/unistdio/u8-vsnprintf.c: Likewise.
21079         * lib/unistdio/u8-vsprintf.c: Likewise.
21080         * lib/unistdio/ulc-asnprintf.c: Likewise.
21081         * lib/unistdio/ulc-asprintf.c: Likewise.
21082         * lib/unistdio/ulc-printf-parse.c: Likewise.
21083         * lib/unistdio/ulc-snprintf.c: Likewise.
21084         * lib/unistdio/ulc-sprintf.c: Likewise.
21085         * lib/unistdio/ulc-vasnprintf.c: Likewise.
21086         * lib/unistdio/ulc-vasprintf.c: Likewise.
21087         * lib/unistdio/ulc-vsnprintf.c: Likewise.
21088         * lib/unistdio/ulc-vsprintf.c: Likewise.
21089         * lib/unistr.h: Likewise.
21090         * lib/unistr/u-cpy-alloc.h: Likewise.
21091         * lib/unistr/u-cpy.h: Likewise.
21092         * lib/unistr/u-endswith.h: Likewise.
21093         * lib/unistr/u-move.h: Likewise.
21094         * lib/unistr/u-set.h: Likewise.
21095         * lib/unistr/u-startswith.h: Likewise.
21096         * lib/unistr/u-stpcpy.h: Likewise.
21097         * lib/unistr/u-stpncpy.h: Likewise.
21098         * lib/unistr/u-strcat.h: Likewise.
21099         * lib/unistr/u-strcpy.h: Likewise.
21100         * lib/unistr/u-strcspn.h: Likewise.
21101         * lib/unistr/u-strdup.h: Likewise.
21102         * lib/unistr/u-strlen.h: Likewise.
21103         * lib/unistr/u-strncat.h: Likewise.
21104         * lib/unistr/u-strncpy.h: Likewise.
21105         * lib/unistr/u-strnlen.h: Likewise.
21106         * lib/unistr/u-strpbrk.h: Likewise.
21107         * lib/unistr/u-strspn.h: Likewise.
21108         * lib/unistr/u-strstr.h: Likewise.
21109         * lib/unistr/u-strtok.h: Likewise.
21110         * lib/unistr/u16-check.c: Likewise.
21111         * lib/unistr/u16-chr.c: Likewise.
21112         * lib/unistr/u16-cmp.c: Likewise.
21113         * lib/unistr/u16-cpy-alloc.c: Likewise.
21114         * lib/unistr/u16-cpy.c: Likewise.
21115         * lib/unistr/u16-endswith.c: Likewise.
21116         * lib/unistr/u16-mblen.c: Likewise.
21117         * lib/unistr/u16-mbsnlen.c: Likewise.
21118         * lib/unistr/u16-mbtouc-aux.c: Likewise.
21119         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
21120         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
21121         * lib/unistr/u16-mbtouc.c: Likewise.
21122         * lib/unistr/u16-mbtoucr.c: Likewise.
21123         * lib/unistr/u16-move.c: Likewise.
21124         * lib/unistr/u16-next.c: Likewise.
21125         * lib/unistr/u16-prev.c: Likewise.
21126         * lib/unistr/u16-set.c: Likewise.
21127         * lib/unistr/u16-startswith.c: Likewise.
21128         * lib/unistr/u16-stpcpy.c: Likewise.
21129         * lib/unistr/u16-stpncpy.c: Likewise.
21130         * lib/unistr/u16-strcat.c: Likewise.
21131         * lib/unistr/u16-strchr.c: Likewise.
21132         * lib/unistr/u16-strcmp.c: Likewise.
21133         * lib/unistr/u16-strcpy.c: Likewise.
21134         * lib/unistr/u16-strcspn.c: Likewise.
21135         * lib/unistr/u16-strdup.c: Likewise.
21136         * lib/unistr/u16-strlen.c: Likewise.
21137         * lib/unistr/u16-strmblen.c: Likewise.
21138         * lib/unistr/u16-strmbtouc.c: Likewise.
21139         * lib/unistr/u16-strncat.c: Likewise.
21140         * lib/unistr/u16-strncmp.c: Likewise.
21141         * lib/unistr/u16-strncpy.c: Likewise.
21142         * lib/unistr/u16-strnlen.c: Likewise.
21143         * lib/unistr/u16-strpbrk.c: Likewise.
21144         * lib/unistr/u16-strrchr.c: Likewise.
21145         * lib/unistr/u16-strspn.c: Likewise.
21146         * lib/unistr/u16-strstr.c: Likewise.
21147         * lib/unistr/u16-strtok.c: Likewise.
21148         * lib/unistr/u16-to-u32.c: Likewise.
21149         * lib/unistr/u16-to-u8.c: Likewise.
21150         * lib/unistr/u16-uctomb-aux.c: Likewise.
21151         * lib/unistr/u16-uctomb.c: Likewise.
21152         * lib/unistr/u32-check.c: Likewise.
21153         * lib/unistr/u32-chr.c: Likewise.
21154         * lib/unistr/u32-cmp.c: Likewise.
21155         * lib/unistr/u32-cpy-alloc.c: Likewise.
21156         * lib/unistr/u32-cpy.c: Likewise.
21157         * lib/unistr/u32-endswith.c: Likewise.
21158         * lib/unistr/u32-mblen.c: Likewise.
21159         * lib/unistr/u32-mbsnlen.c: Likewise.
21160         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
21161         * lib/unistr/u32-mbtouc.c: Likewise.
21162         * lib/unistr/u32-mbtoucr.c: Likewise.
21163         * lib/unistr/u32-move.c: Likewise.
21164         * lib/unistr/u32-next.c: Likewise.
21165         * lib/unistr/u32-prev.c: Likewise.
21166         * lib/unistr/u32-set.c: Likewise.
21167         * lib/unistr/u32-startswith.c: Likewise.
21168         * lib/unistr/u32-stpcpy.c: Likewise.
21169         * lib/unistr/u32-stpncpy.c: Likewise.
21170         * lib/unistr/u32-strcat.c: Likewise.
21171         * lib/unistr/u32-strchr.c: Likewise.
21172         * lib/unistr/u32-strcmp.c: Likewise.
21173         * lib/unistr/u32-strcpy.c: Likewise.
21174         * lib/unistr/u32-strcspn.c: Likewise.
21175         * lib/unistr/u32-strdup.c: Likewise.
21176         * lib/unistr/u32-strlen.c: Likewise.
21177         * lib/unistr/u32-strmblen.c: Likewise.
21178         * lib/unistr/u32-strmbtouc.c: Likewise.
21179         * lib/unistr/u32-strncat.c: Likewise.
21180         * lib/unistr/u32-strncmp.c: Likewise.
21181         * lib/unistr/u32-strncpy.c: Likewise.
21182         * lib/unistr/u32-strnlen.c: Likewise.
21183         * lib/unistr/u32-strpbrk.c: Likewise.
21184         * lib/unistr/u32-strrchr.c: Likewise.
21185         * lib/unistr/u32-strspn.c: Likewise.
21186         * lib/unistr/u32-strstr.c: Likewise.
21187         * lib/unistr/u32-strtok.c: Likewise.
21188         * lib/unistr/u32-to-u16.c: Likewise.
21189         * lib/unistr/u32-to-u8.c: Likewise.
21190         * lib/unistr/u32-uctomb.c: Likewise.
21191         * lib/unistr/u8-check.c: Likewise.
21192         * lib/unistr/u8-chr.c: Likewise.
21193         * lib/unistr/u8-cmp.c: Likewise.
21194         * lib/unistr/u8-cpy-alloc.c: Likewise.
21195         * lib/unistr/u8-cpy.c: Likewise.
21196         * lib/unistr/u8-endswith.c: Likewise.
21197         * lib/unistr/u8-mblen.c: Likewise.
21198         * lib/unistr/u8-mbsnlen.c: Likewise.
21199         * lib/unistr/u8-mbtouc-aux.c: Likewise.
21200         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
21201         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
21202         * lib/unistr/u8-mbtouc.c: Likewise.
21203         * lib/unistr/u8-mbtoucr.c: Likewise.
21204         * lib/unistr/u8-move.c: Likewise.
21205         * lib/unistr/u8-next.c: Likewise.
21206         * lib/unistr/u8-prev.c: Likewise.
21207         * lib/unistr/u8-set.c: Likewise.
21208         * lib/unistr/u8-startswith.c: Likewise.
21209         * lib/unistr/u8-stpcpy.c: Likewise.
21210         * lib/unistr/u8-stpncpy.c: Likewise.
21211         * lib/unistr/u8-strcat.c: Likewise.
21212         * lib/unistr/u8-strchr.c: Likewise.
21213         * lib/unistr/u8-strcmp.c: Likewise.
21214         * lib/unistr/u8-strcpy.c: Likewise.
21215         * lib/unistr/u8-strcspn.c: Likewise.
21216         * lib/unistr/u8-strdup.c: Likewise.
21217         * lib/unistr/u8-strlen.c: Likewise.
21218         * lib/unistr/u8-strmblen.c: Likewise.
21219         * lib/unistr/u8-strmbtouc.c: Likewise.
21220         * lib/unistr/u8-strncat.c: Likewise.
21221         * lib/unistr/u8-strncmp.c: Likewise.
21222         * lib/unistr/u8-strncpy.c: Likewise.
21223         * lib/unistr/u8-strnlen.c: Likewise.
21224         * lib/unistr/u8-strpbrk.c: Likewise.
21225         * lib/unistr/u8-strrchr.c: Likewise.
21226         * lib/unistr/u8-strspn.c: Likewise.
21227         * lib/unistr/u8-strstr.c: Likewise.
21228         * lib/unistr/u8-strtok.c: Likewise.
21229         * lib/unistr/u8-to-u16.c: Likewise.
21230         * lib/unistr/u8-to-u32.c: Likewise.
21231         * lib/unistr/u8-uctomb-aux.c: Likewise.
21232         * lib/unistr/u8-uctomb.c: Likewise.
21233         * lib/unitypes.h: Likewise.
21234         * lib/uniwidth.h: Likewise.
21235         * lib/uniwidth/cjk.h: Likewise.
21236         * lib/uniwidth/u16-strwidth.c: Likewise.
21237         * lib/uniwidth/u16-width.c: Likewise.
21238         * lib/uniwidth/u32-strwidth.c: Likewise.
21239         * lib/uniwidth/u32-width.c: Likewise.
21240         * lib/uniwidth/u8-strwidth.c: Likewise.
21241         * lib/uniwidth/u8-width.c: Likewise.
21242         * lib/uniwidth/width.c: Likewise.
21243
21244 2007-10-07  Bruno Haible  <bruno@clisp.org>
21245
21246         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
21247         The file is still under LGPL (see modules/inttypes).
21248
21249 2007-10-06  Bruno Haible  <bruno@clisp.org>
21250
21251         * modules/trunc (Dependencies): Add 'extensions'.
21252         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
21253         Reported by Ben Pfaff <blp@gnu.org>.
21254
21255 2007-10-06  Bruno Haible  <bruno@clisp.org>
21256
21257         * modules/freopen-tests: New file.
21258         * tests/test-freopen.c: New file.
21259
21260         * modules/fopen-tests: New file.
21261         * tests/test-fopen.c: New file.
21262
21263         * modules/fopen: New file.
21264         * lib/fopen.c: New file.
21265         * m4/fopen.m4: New file.
21266         * modules/freopen: New file.
21267         * lib/freopen.c: New file.
21268         * m4/freopen.m4: New file.
21269         * lib/stdio.in.h (fopen, freopen): New declarations.
21270         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
21271         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
21272         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
21273         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
21274         * doc/functions/fopen.texi: Mention the 'fopen' module.
21275         * doc/functions/freopen.texi: Mention the 'freopen' module.
21276
21277 2007-10-06  Bruno Haible  <bruno@clisp.org>
21278
21279         * modules/open-tests: New file.
21280         * tests/test-open.c: New file.
21281
21282         * modules/open: New file.
21283         * lib/open.c: New file.
21284         * m4/open.m4: New file.
21285         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
21286         lib/open.c does.
21287         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
21288         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
21289         macros.
21290         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
21291         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
21292         REPLACE_OPEN.
21293         * doc/functions/open.texi: Mention the 'open' module.
21294
21295 2007-10-04  Bruno Haible  <bruno@clisp.org>
21296
21297         * modules/ceill-tests: New file.
21298         * tests/test-ceill.c: New file.
21299
21300         * modules/ceill: New file.
21301         * lib/ceill.c: Replace entire file.
21302         * m4/ceill.m4: New file.
21303         * lib/math.in.h (ceill): Replace declaration.
21304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
21305         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
21306         * doc/functions/ceill.texi: Mention the 'ceill' module.
21307         * modules/mathl (Files): Remove lib/ceill.c.
21308         (Depends-on): Add ceill.
21309
21310 2007-10-04  Bruno Haible  <bruno@clisp.org>
21311
21312         * modules/ceilf-tests: New file.
21313         * tests/test-ceilf.c: New file.
21314
21315         * modules/ceilf: New file.
21316         * lib/ceil.c: New file.
21317         * lib/ceilf.c: New file.
21318         * m4/ceilf.m4: New file.
21319         * lib/math.in.h (ceilf): New declaration.
21320         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
21321         HAVE_DECL_CEILF.
21322         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
21323         HAVE_DECL_CEILF.
21324         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
21325
21326 2007-10-04  Bruno Haible  <bruno@clisp.org>
21327
21328         * modules/floorl-tests: New file.
21329         * tests/test-floorl.c: New file.
21330
21331         * modules/floorl: New file.
21332         * lib/floorl.c: Replace entire file.
21333         * m4/floorl.m4: New file.
21334         * lib/math.in.h (floorl): Replace declaration.
21335         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
21336         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
21337         * doc/functions/floorl.texi: Mention the 'floorl' module.
21338         * modules/mathl (Files): Remove lib/floorl.c.
21339         (Depends-on): Add floorl.
21340
21341 2007-10-04  Bruno Haible  <bruno@clisp.org>
21342
21343         * modules/floorf-tests: New file.
21344         * tests/test-floorf.c: New file.
21345
21346         * modules/floorf: New file.
21347         * lib/floor.c: New file.
21348         * lib/floorf.c: New file.
21349         * m4/floorf.m4: New file.
21350         * lib/math.in.h (floorf): New declaration.
21351         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
21352         HAVE_DECL_FLOORF.
21353         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
21354         HAVE_DECL_FLOORF.
21355         * doc/functions/floorf.texi: Mention the 'floorf' module.
21356
21357 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
21358             Bruno Haible  <bruno@clisp.org>
21359
21360         Advertise for the Git server instead of the CVS server.
21361         * doc/gnulib-intro.texi (Steady Development): Mention the Git
21362         repository instead of the CVS one.
21363         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
21364         about all VCS systems generically.
21365         * doc/gnulib.texi (Introduction): Capitalize `Git'.
21366
21367 2007-10-04  Bruno Haible  <bruno@clisp.org>
21368
21369         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
21370         means.
21371         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
21372
21373 2007-10-04  Bruno Haible  <bruno@clisp.org>
21374
21375         * modules/truncl-tests: New file.
21376         * tests/test-truncl.c: New file.
21377
21378         * modules/truncl: New file.
21379         * lib/truncl.c: New file.
21380         * m4/truncl.m4: New file.
21381         * lib/math.in.h (truncl): New declaration.
21382         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
21383         HAVE_DECL_TRUNCL.
21384         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
21385         HAVE_DECL_TRUNCL.
21386         * doc/functions/truncl.texi: Mention the 'truncl' module.
21387
21388 2007-10-04  Bruno Haible  <bruno@clisp.org>
21389
21390         * modules/truncf-tests: New file.
21391         * tests/test-truncf.c: New file.
21392
21393         * modules/truncf: New file.
21394         * lib/trunc.c: Make paramerizable through USE_* macros.
21395         * lib/truncf.c: New file.
21396         * m4/truncf.m4: New file.
21397         * lib/math.in.h (truncf): New declaration.
21398         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
21399         HAVE_DECL_TRUNCF.
21400         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
21401         HAVE_DECL_TRUNCF.
21402         * doc/functions/truncf.texi: Mention the 'truncf' module.
21403
21404 2007-10-03  Bruno Haible  <bruno@clisp.org>
21405
21406         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
21407         augmentation also for tests modules.
21408         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
21409         * modules/atexit-tests (Makefile.am): Likewise.
21410         * modules/binary-io-tests (Makefile.am): Likewise.
21411         * modules/c-strcase-tests (Makefile.am): Likewise.
21412         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
21413         * modules/canonicalize-tests (Makefile.am): Likewise.
21414         * modules/closein-tests (Makefile.am): Likewise.
21415         * modules/fprintf-posix-tests (Makefile.am): Likewise.
21416         * modules/freadahead-tests (Makefile.am): Likewise.
21417         * modules/fseek-tests (Makefile.am): Likewise.
21418         * modules/fseeko-tests (Makefile.am): Likewise.
21419         * modules/ftell-tests (Makefile.am): Likewise.
21420         * modules/ftello-tests (Makefile.am): Likewise.
21421         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
21422         * modules/isnanl-tests (Makefile.am): Likewise.
21423         * modules/lseek-tests (Makefile.am): Likewise.
21424         * modules/mbscasecmp-tests (Makefile.am): Likewise.
21425         * modules/mbscasestr-tests (Makefile.am): Likewise.
21426         * modules/mbschr-tests (Makefile.am): Likewise.
21427         * modules/mbscspn-tests (Makefile.am): Likewise.
21428         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
21429         * modules/mbspbrk-tests (Makefile.am): Likewise.
21430         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
21431         * modules/mbsrchr-tests (Makefile.am): Likewise.
21432         * modules/mbsspn-tests (Makefile.am): Likewise.
21433         * modules/mbsstr-tests (Makefile.am): Likewise.
21434         * modules/printf-posix-tests (Makefile.am): Likewise.
21435         * modules/snprintf-posix-tests (Makefile.am): Likewise.
21436         * modules/sprintf-posix-tests (Makefile.am): Likewise.
21437         * modules/tsearch-tests (Makefile.am): Likewise.
21438         * modules/uniname/uniname-tests (Makefile.am): Likewise.
21439         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
21440         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
21441         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
21442         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
21443         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
21444         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
21445         * modules/vprintf-posix-tests (Makefile.am): Likewise.
21446         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
21447         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
21448         * modules/xstrtoimax-tests (Makefile.am): Likewise.
21449         * modules/xstrtol-tests (Makefile.am): Likewise.
21450         * modules/xstrtoumax-tests (Makefile.am): Likewise.
21451         * modules/yesno-tests (Makefile.am): Likewise.
21452
21453 2007-10-03  Bruno Haible  <bruno@clisp.org>
21454
21455         * modules/trunc-tests: New file.
21456         * tests/test-trunc.c: New file.
21457
21458         * modules/trunc: New file.
21459         * lib/trunc.c: New file.
21460         * m4/trunc.m4: New file.
21461         * lib/math.in.h (trunc): New declaration.
21462         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
21463         HAVE_DECL_TRUNC.
21464         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
21465         HAVE_DECL_TRUNC.
21466         * doc/functions/trunc.texi: Mention the 'trunc' module.
21467
21468 2007-10-03  Bruno Haible  <bruno@clisp.org>
21469
21470         * tests/test-fpending.c: New file, mostly copied
21471         from coreutils/lib/t-fpending.c.
21472         * modules/fpending-tests: New file.
21473
21474 2007-10-03  Bruno Haible  <bruno@clisp.org>
21475
21476         Port the stdio extensions to QNX (untested).
21477         * lib/fseterr.c (fseterr): Add support for QNX.
21478         * lib/fbufmode.c (fbufmode): Likewise.
21479         * lib/freadable.c (freadable): Likewise.
21480         * lib/fwritable.c (fwritable): Likewise.
21481         * lib/freading.c (freading): Likewise.
21482         * lib/fwriting.c (fwriting): Likewise.
21483         * lib/freadahead.c (freadahed): Likewise.
21484         * lib/fpurge.c (fpurge): Likewise.
21485         * lib/fseeko.c (rpl_fseeko): Likewise.
21486
21487 2007-10-03  Bruno Haible  <bruno@clisp.org>
21488             Jim Meyering  <jim@meyering.net>
21489             Eric Blake  <ebb9@byu.net>
21490
21491         * doc/relocatable.texi: Use @command instead of @program.
21492
21493 2007-10-02  Jim Meyering  <jim@meyering.net>
21494
21495         Perform one more "_.h" -> ".in.h" substitution.
21496         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
21497         instead of unistd_.h here, too.
21498
21499 2007-10-01  Bruno Haible  <bruno@clisp.org>
21500
21501         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
21502         Needed for the alloca-opt module.
21503
21504 2007-09-30  Bruno Haible  <bruno@clisp.org>
21505
21506         * lib/alloca.in.h: Renamed from lib/alloca_.h.
21507         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
21508         alloca_.h.
21509         * lib/argz.in.h: Renamed from lib/argz_.h.
21510         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
21511         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
21512         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
21513         byteswap_.h.
21514         * lib/dirent.in.h: Renamed from lib/dirent_.h.
21515         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
21516         dirent_.h.
21517         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
21518         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
21519         fcntl_.h.
21520         * lib/float.in.h: Renamed from lib/float_.h.
21521         * modules/float (Files, Makefile.am): Use float.in.h instead of
21522         float_.h.
21523         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
21524         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
21525         fnmatch_.h.
21526         * lib/getopt.in.h: Renamed from lib/getopt_.h.
21527         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
21528         getopt_.h.
21529         * lib/glob.in.h: Renamed from lib/glob_.h.
21530         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
21531         * lib/iconv.in.h: Renamed from lib/iconv_.h.
21532         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
21533         iconv_.h.
21534         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
21535         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
21536         inttypes_.h.
21537         * lib/locale.in.h: Renamed from lib/locale_.h.
21538         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
21539         locale_.h.
21540         * lib/math.in.h: Renamed from lib/math_.h.
21541         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
21542         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
21543         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
21544         of netinet_in_.h. Add dependency.
21545         * lib/poll.in.h: Renamed from lib/poll_.h.
21546         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
21547         * lib/search.in.h: Renamed from lib/search_.h.
21548         * modules/search (Files, Makefile.am): Use search.in.h instead of
21549         search_.h.
21550         * lib/signal.in.h: Renamed from lib/signal_.h.
21551         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
21552         _signal.h.
21553         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
21554         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
21555         stdbool_.h.
21556         * lib/stdint.in.h: Renamed from lib/stdint_.h.
21557         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
21558         stdint_.h.
21559         * lib/stdio.in.h: Renamed from lib/stdio_.h.
21560         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
21561         stdio_.h.
21562         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
21563         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
21564         stdlib_.h.
21565         * lib/string.in.h: Renamed from lib/string_.h.
21566         * modules/string (Files, Makefile.am): Use string.in.h instead of
21567         string_.h.
21568         * doc/gnulib-tool.texi (Initial import): Update.
21569         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
21570         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
21571         of sys_select_.h. Add dependency.
21572         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
21573         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
21574         of sys_socket_.h.
21575         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
21576         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
21577         sys_stat_.h.
21578         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
21579         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
21580         sys_time_.h.
21581         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
21582         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
21583         sysexits_.h.
21584         * lib/time.in.h: Renamed from lib/time_.h.
21585         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
21586         * lib/unistd.in.h: Renamed from lib/unistd_.h.
21587         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
21588         unistd_.h.
21589         * lib/wchar.in.h: Renamed from lib/wchar_.h.
21590         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
21591         wchar_.h.
21592         * lib/wctype.in.h: Renamed from lib/wctype_.h.
21593         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
21594         wctype_.h.
21595         * build-aux/bootstrap (slurp): Update.
21596         * lib/.cppi-disable: Update.
21597
21598 2007-09-30  Bruno Haible  <bruno@clisp.org>
21599
21600         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
21601         Needed on BeOS.
21602
21603 2007-09-30  Bruno Haible  <bruno@clisp.org>
21604
21605         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
21606
21607 2007-09-29  Bruno Haible  <bruno@clisp.org>
21608
21609         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
21610
21611 2007-09-29  Bruno Haible  <bruno@clisp.org>
21612
21613         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
21614         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
21615         * build-aux/install-reloc: Compile also areadlink.c.
21616         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
21617
21618 2007-09-29  Bruno Haible  <bruno@clisp.org>
21619
21620         * gnulib-tool (func_emit_initmacro_done): Indentation.
21621
21622 2007-09-29  Bruno Haible  <bruno@clisp.org>
21623
21624         * README: Add CVS checkout update instructions.
21625         Info from Bob Proulx <bob@proulx.com>.
21626
21627 2007-09-28  Eric Blake  <ebb9@byu.net>
21628
21629         Provide move-if-change.
21630         * build-aux/move-if-change: New file, based on best practice
21631         rather than any canonical upstream location.
21632
21633 2007-09-28  Jim Meyering  <jim@meyering.net>
21634
21635         Fix canonicalize loop-detection corner case.
21636         Do not attempt to stat the symlink values stored via seen_triple.
21637         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
21638         on linux-2.6.18, (but not 2.6.22).
21639         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
21640         triple_compare.  The former compares dev,ino,filename, while the latter
21641         would actually stat dirname(filename) when dev and ino were equal.
21642         * lib/hash-triple.c: Install <string.h>.
21643         (STREQ): Define.
21644         (triple_compare_ino_str): New function.
21645         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
21646
21647 2007-09-28  Eric Blake  <ebb9@byu.net>
21648
21649         Enforce that AC_REPLACE_FUNCS files exist.
21650         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
21651         override check for typos.
21652
21653         Fix test-closein on Solaris 10.
21654         * tests/test-closein.c (main): Don't assume stdin can be inherited
21655         closed on all systems.
21656         * tests/test-closein.sh: Likewise.
21657         Reported by Piotr Tarnowski.
21658
21659 2007-09-28  Jim Meyering  <jim@meyering.net>
21660
21661         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
21662
21663 2007-09-27  Jim Meyering  <jim@meyering.net>
21664
21665         canonicalize: Avoid a false-positive cycle failure.
21666         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
21667         Sort.  Remove cycle-check.
21668         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
21669         not cycle-check.h.
21670         (seen_triple): New function.
21671         (canonicalize_filename_mode): Use it instead of cycle-check.
21672         * tests/test-canonicalize.c: Add a test for this bug.
21673         * tests/test-canonicalize.sh: Set up and run the test.
21674
21675         New module, file-set, from coreutils.
21676         * modules/file-set: Define it.
21677         * lib/file-set.c, lib/file-set.h: Implement.
21678
21679         New module, hash-triple, from coreutils.
21680         * modules/hash-triple: Define it.
21681         * lib/hash-triple.c, lib/hash-triple.h: Implement.
21682
21683 2007-09-25  Eric Blake  <ebb9@byu.net>
21684
21685         Fix strerror on Interix.
21686         * lib/string_.h (strerror): Declare replacement.
21687         * doc/functions/strerror.texi (strerror): Document the Interix
21688         shortcoming.
21689         * modules/string (Makefile.am): Support new hooks.
21690         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
21691         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
21692         gl_FUNC_STRERROR_SEPARATE.
21693         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
21694         * lib/strerror.c (rpl_strerror): Provide replacement.
21695         * modules/strerror (Depends-on): Add string.
21696         (configure.ac): Detect use of module.
21697         * tests/test-strerror.c: New file.
21698         * modules/strerror-tests: New test module.
21699         * modules/argp (Depends-on): Add strerror.
21700         * modules/error (Depends-on): Likewise.
21701         Reported by Martin Koeppe.
21702
21703 2007-09-24  Bruno Haible  <bruno@clisp.org>
21704
21705         * README: Update git instructions.
21706
21707 2007-09-24  Eric Blake  <ebb9@byu.net>
21708
21709         Revert fpending breakage from 2007-09-08.
21710         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
21711         __fpending.c.
21712
21713 2007-09-24  Jim Meyering  <jim@meyering.net>
21714
21715         filenamecat.c: Add a test.
21716         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
21717         showing how the function works when DIR is the empty string.
21718
21719 2007-09-21  Simon Josefsson  <simon@josefsson.org>
21720
21721         * tests/test-canonicalize.sh: Turn on executable bit.
21722
21723 2007-09-19  Eric Blake  <ebb9@byu.net>
21724
21725         * README: Update CVS instructions.
21726
21727 2007-09-18  Bruno Haible  <bruno@clisp.org>
21728
21729         * modules/areadlink: New file.
21730         * lib/areadlink.h (areadlink): New declaration.
21731         * lib/areadlink.c: New file, based on lib/xreadlink.c.
21732
21733 2007-09-17  Jim Meyering  <jim@meyering.net>
21734
21735         * lib/savewd.c (ESTALE) [!defined]: Define.
21736         Reported to be required on Interix by Martin Koeppe.
21737
21738 2007-09-17  Bruno Haible  <bruno@clisp.org>
21739
21740         * gnulib-tool (func_version): Use $version.
21741
21742 2007-09-16  Bruno Haible  <bruno@clisp.org>
21743
21744         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
21745         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
21746         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
21747         Reported by Greg Schafer <gschafer@zip.com.au>.
21748
21749 2007-09-15  Bruno Haible  <bruno@clisp.org>
21750
21751         * gnulib-tool (sed): Try a little harder to make bash understand the
21752         alias.
21753         Reported by Bruce Korb <bruce.korb@gmail.com>.
21754
21755 2007-09-13  Eric Blake  <ebb9@byu.net>
21756
21757         * ChangeLog: Remove conflict markers.
21758
21759 2007-09-13  Simon Josefsson  <simon@josefsson.org>
21760
21761         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
21762         Reported by Bruno Haible <bruno@clisp.org>.
21763
21764 2007-09-12  Bruno Haible  <bruno@clisp.org>
21765
21766         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
21767         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
21768         is not defined.
21769
21770 2007-09-12  Eric Blake  <ebb9@byu.net>
21771
21772         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
21773         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
21774         Autoconf definition.
21775         * modules/euidaccess (Depends-on): Add extensions, for
21776         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
21777         * modules/fnmatch (Depends-on): Likewise.
21778         * modules/getaddrinfo (Depends-on): Likewise.
21779         * modules/getdelim (Depends-on): Likewise.
21780         * modules/getline (Depends-on): Likewise.
21781         * modules/getsubopt (Depends-on): Likewise.
21782         * modules/gettext (Depends-on): Likewise.
21783         * modules/group-member (Depends-on): Likewise.
21784         * modules/mbchar (Depends-on): Likewise.
21785         * modules/memmem (Depends-on): Likewise.
21786         * modules/mempcpy (Depends-on): Likewise.
21787         * modules/memrchr (Depends-on): Likewise.
21788         * modules/pagealign_alloc (Depends-on): Likewise.
21789         * modules/readutmp (Depends-on): Likewise.
21790         * modules/stpcpy (Depends-on): Likewise.
21791         * modules/stpncpy (Depends-on): Likewise.
21792         * modules/strchrnul (Depends-on): Likewise.
21793         * modules/strndup (Depends-on): Likewise.
21794         * modules/strsep (Depends-on): Likewise.
21795         * modules/strverscmp (Depends-on): Likewise.
21796         * modules/vasprintf (Depends-on): Likewise.
21797         * modules/wcwidth (Depends-on): Likewise.
21798         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
21799         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
21800         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
21801         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
21802         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
21803         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21804         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
21805         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
21806         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
21807         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
21808         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21809         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
21810         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
21811         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
21812         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
21813         * m4/readutmp.m4 (gl_READUTMP): Likewise.
21814         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
21815         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
21816         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21817         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
21818         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
21819         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
21820         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
21821         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
21822         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
21823         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21824         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
21825         so that lock.m4 can be used in gettext without extensions module.
21826
21827 2007-09-11  Bruno Haible  <bruno@clisp.org>
21828
21829         * m4/isc-posix.m4: Remove file.
21830         Suggested by Eric Blake.
21831
21832 2007-09-11  Eric Blake  <ebb9@byu.net>
21833
21834         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
21835
21836 2007-09-10  Bruno Haible  <bruno@clisp.org>
21837
21838         * posix-modules: Fix typo in error message.
21839         Reported by Matt <mkraai@beckman.com>.
21840
21841 2007-09-09  Bruno Haible  <bruno@clisp.org>
21842
21843         * doc/functions/getdelim.texi: Update list of platforms lacking the
21844         function.
21845         * doc/functions/getline.texi: Likewise.
21846
21847 2007-09-09  Jim Meyering  <jim@meyering.net>
21848
21849         * lib/hash.c (hash_initialize): Detect calloc failure.
21850         Reported by Bruno Haible.
21851
21852 2007-09-09  Bruno Haible  <bruno@clisp.org>
21853
21854         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
21855         malloc or realloc fails.
21856
21857 2007-09-09  Bruno Haible  <bruno@clisp.org>
21858
21859         * modules/getcwd (Depends-on): Add malloc-posix.
21860         * modules/glob (Depends-on): Likewise.
21861         * modules/putenv (Depends-on): Likewise.
21862         * modules/strdup (Depends-on): Likewise.
21863         * modules/getdelim (Depends-on): Add realloc-posix.
21864         * modules/read-file (Depends-on): Likewise.
21865
21866 2007-09-09  Bruno Haible  <bruno@clisp.org>
21867
21868         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
21869         (gl_FUNC_MALLOC_POSIX): Require it.
21870         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
21871         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
21872         * modules/realloc (Files): Add m4/malloc.m4.
21873         * modules/calloc (Files): Likewise.
21874
21875 2007-09-09  Bruno Haible  <bruno@clisp.org>
21876
21877         * modules/malloc-posix: New file.
21878         * modules/malloc (Depends-on): Add malloc-posix.
21879         * lib/malloc.c: Include errno.h.
21880         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
21881         and a POSIX-compatible malloc into a single function. Set ENOMEM
21882         when returning NULL.
21883         * m4/malloc.m4: New file.
21884         * doc/functions/malloc.texi: Mention the malloc-posix module.
21885         * lib/stdlib_.h (malloc): New declaration.
21886         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
21887         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
21888         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
21889         and HAVE_MALLOC_POSIX.
21890
21891 2007-09-09  Bruno Haible  <bruno@clisp.org>
21892
21893         * modules/realloc-posix: New file.
21894         * modules/realloc (Depends-on): Add realloc-posix.
21895         * lib/realloc.c: Include errno.h.
21896         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
21897         and a POSIX-compatible realloc into a single function. Set ENOMEM
21898         when returning NULL.
21899         * m4/realloc.m4: New file.
21900         * doc/functions/realloc.texi: Mention the realloc-posix module.
21901         * lib/stdlib_.h (realloc): New declaration.
21902         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
21903         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
21904         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
21905         and HAVE_REALLOC_POSIX.
21906
21907 2007-09-09  Bruno Haible  <bruno@clisp.org>
21908
21909         * modules/calloc-posix: New file.
21910         * modules/calloc (Depends-on): Add calloc-posix.
21911         * lib/calloc.c: Include errno.h.
21912         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
21913         and a POSIX-compatible calloc into a single function. Set ENOMEM
21914         when returning NULL.
21915         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
21916         * doc/functions/calloc.texi: Mention the calloc-posix module.
21917         * lib/stdlib_.h (calloc): New declaration.
21918         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
21919         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
21920         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
21921         and HAVE_CALLOC_POSIX.
21922
21923 2007-09-09  Bruno Haible  <bruno@clisp.org>
21924
21925         Allow for modules to show an arbitrary notice.
21926         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
21927         * gnulib-tool: New option --extract-notice.
21928         (func_usage): Document it.
21929         (sed_extract_prog): Update.
21930         (func_get_notice): New function.
21931         (func_modules_notice): New function.
21932         (func_import, func_create_testdir): Invoke it.
21933         Suggested by Jim Meyering.
21934
21935 2007-09-09  Bruno Haible  <bruno@clisp.org>
21936
21937         * gnulib-tool: New options --verbose, --quiet.
21938         (func_usage): Document them.
21939         (verbose): New variable.
21940         (func_execute_command): New function.
21941         (func_import): Don't show the module list and the file list if
21942         $verbose < 0.
21943         (func_create_testdir): Likewise. Use func_execute_command.
21944         (func_create_megatestdir): Use func_execute_command.
21945
21946 2007-09-08  Bruno Haible  <bruno@clisp.org>
21947
21948         * gnulib-tool (func_import): Prefer rsync over wget when available,
21949         for fetching the PO files.
21950
21951 2007-09-08  Bruno Haible  <bruno@clisp.org>
21952
21953         * posix-modules: New file. Portions copied from gnulib-tool.
21954         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
21955
21956 2007-09-08  Jim Meyering  <jim@meyering.net>
21957
21958         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
21959         * lib/fpending.h: Rename from __fpending.h.
21960         * lib/fpending.c: Rename from __fpending.c.
21961         Include "fpending.h", not "__fpending.h".
21962         * lib/__fpending.h, lib/__fpending.c: Remove files.
21963         * modules/fpending (Files): Reflect new file names.
21964         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
21965
21966 2007-09-08  Bruno Haible  <bruno@clisp.org>
21967
21968         * m4/inttypes-h.m4: Remove stub file.
21969
21970 2007-09-07  Simon Josefsson  <simon@josefsson.org>
21971
21972         * doc/headers/stdint.texi: Discuss #include_next issue.
21973
21974 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
21975
21976         * build-aux/bootstrap: Remove obsolete comment about wget --help.
21977
21978 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21979
21980         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
21981         in variable name.
21982
21983 2007-09-03  Jim Meyering  <jim@meyering.net>
21984
21985         New module: git-version-gen.
21986         * modules/git-version-gen: New file.
21987
21988         Import changes from coreutils for bootstrap script.
21989
21990         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
21991
21992         bootstrap: uses rsync to download the .po files
21993         * build-aux/bootstrap (po_download_command_format): New global.
21994         (download_po_files): Use rsync.
21995         (update_po_files): Don't remove .po files after download,
21996         so future rsync runs can take advantage of the copies.
21997
21998         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
21999
22000         Solve the unnecessary-.po-file-regeneration problem once and for all.
22001         * build-aux/bootstrap (download_po_files): New function, renamed from
22002         get_translations.  Now, downloads, but doesn't update LINGUAS.
22003         (update_po_files): New function.
22004
22005         bootstrap: Ignore more.
22006         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
22007         uniwidth to e.g., lib/.gitignore.
22008         (slurp): Handle the sys_stat_.h -> sys mapping, too.
22009
22010         * build-aux/bootstrap: New setting: vc_ignore.
22011         (insert_sorted_if_absent): Create $file if absent.
22012         Adapt to new, possibly empty, list: $vc_ignore.
22013
22014         bootstrap: generate more ignorable names
22015         * build-aux/bootstrap (slurp): When generating ignorable names,
22016         also map .sin to .sed, .gperf to .c, and .y to .c.
22017
22018 2007-09-03  Jim Meyering  <jim@meyering.net>
22019
22020         * build-aux/git-version-gen: New file, from coreutils.  For details, see
22021         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
22022
22023 2007-09-02  Bruno Haible  <bruno@clisp.org>
22024
22025         Fix mis-recognition of 'mcs' on QNX 6.
22026         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
22027         output contains the string "Mono".
22028         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
22029         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
22030
22031 2007-09-01  Bruno Haible  <bruno@clisp.org>
22032
22033         Fix collision between uniwidth/* and linebreak modules.
22034         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
22035         u32_width): Remove declarations.
22036         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
22037         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
22038         streq3, streq2, streq1, streq0): Remove functions.
22039         (STREQ): Remove macro.
22040         (is_cjk_encoding): Remove function.
22041         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
22042         (uc_width, u8_width, u16_width, u32_width): Remove functions.
22043         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
22044         * NEWS: Document the change.
22045
22046 2007-09-01  Bruno Haible  <bruno@clisp.org>
22047
22048         * lib/streq.h: Add double-inclusion guard.
22049
22050 2007-09-01  Karl Berry  <karl@gnu.org>
22051
22052         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
22053
22054 2007-08-28  Jim Meyering  <jim@meyering.net>
22055
22056         Rename mreadlink_with_size to areadlink_with_size.
22057         * NEWS: Document the change.
22058         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
22059         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
22060         * lib/mreadlink.h: Rename this to...
22061         * lib/areadlink.h: ...this.
22062         * modules/mreadlink-with-size: Rename this to...
22063         * modules/areadlink-with-size: ...this.
22064         * lib/canonicalize.c: Reflect the renaming.
22065         * modules/canonicalize: Likewise.
22066
22067 2007-08-26  Bruno Haible  <bruno@clisp.org>
22068
22069         * gnulib-tool (func_import): When deciding which files to remove,
22070         consider also dangling symbolic links.
22071         Reported by Eric Blake.
22072
22073 2007-08-26  Bruno Haible  <bruno@clisp.org>
22074
22075         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
22076
22077 2007-08-23  Simon Josefsson  <simon@josefsson.org>
22078
22079         * lib/readline.c: Don't include getline.h, the prototype is now
22080         found in stdio.h.
22081
22082 2007-08-23  Jim Meyering  <jim@meyering.net>
22083
22084         Getdelim touchup.
22085         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
22086         around the funlockfile call, since funlockfile never sets errno.
22087         Don't set errno upon failed realloc.
22088
22089 2007-08-22  Eric Blake  <ebb9@byu.net>
22090
22091         Getline touchups.
22092         * lib/getdelim.c (getdelim): Revert regression that required *n to
22093         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
22094         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
22095         getdelim, rather than whether implementation is missing.
22096         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
22097         * lib/stdio_.h (getline): Also declare if replacement is
22098         required.
22099         * doc/functions/getdelim.texi: New file.
22100         * doc/functions/getline.texi: Likewise.
22101         * doc/gnulib.texi (Function Substitutes): Add new files.
22102         Reported by Bruno Haible.
22103
22104 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
22105
22106         * users.txt: Add Guile.
22107
22108 2007-08-22  Eric Blake  <ebb9@byu.net>
22109
22110         * tests/test-getdelim.c (main): Use remove, not unlink.
22111         * tests/test-getline.c (main): Likewise.
22112
22113         Move getline and getdelim into stdio.h, per POSIX 200x.
22114         * modules/getline (Files): Remove getline.h.
22115         (Depends-on): Add stdio.
22116         (configure.ac): Add module indicator.
22117         * modules/getdelim (Files): Remove getdelim.h.
22118         (Depends-on): Add stdio.
22119         (configure.ac): Add module indicator.
22120         * modules/stdio (Makefile.am): Work with new indicators.
22121         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
22122         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
22123         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22124         * lib/getdelim.h: Delete.
22125         * lib/getline.h: Delete.
22126         * lib/stdio_.h (getdelim, getline): Declare.
22127         * modules/getdelim-tests: New module.
22128         * modules/getline-tests: Likewise.
22129         * tests/test-getdelim.c: New file.
22130         * tests/test-getline.c: Likewise.
22131         * NEWS: Document the change.
22132         * lib/getline.c: Update choice of header.
22133         * lib/csharpcomp.c: Likewise.
22134         * lib/getpass.c: Likewise.
22135         * lib/javacomp.c: Likewise.
22136         * lib/javaversion.c: Likewise.
22137         * lib/yesno.c: Likewise.
22138         * lib/getdelim.c: Likewise.
22139         (getdelim): Set errno on failure, and avoid memory leak.
22140
22141 2007-08-19  Bruno Haible  <bruno@clisp.org>
22142
22143         * modules/closein (Depends-on): Add freadahead.
22144         * lib/closein.c: Include freadahead.h.
22145         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
22146         is zero.
22147
22148 2007-08-19  Bruno Haible  <bruno@clisp.org>
22149
22150         * modules/freadahead-tests: New file.
22151         * tests/test-freadahead.sh: New file.
22152         * tests/test-freadahead.c: New file.
22153
22154         * modules/freadahead: New file.
22155         * lib/freadahead.h: New file.
22156         * lib/freadahead.c: New file.
22157         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
22158         fbufmode, fpurge, freadable, fwritable.
22159
22160 2007-08-19  Eric Blake  <ebb9@byu.net>
22161
22162         Test yesno in combination with closein.
22163         * lib/yesno.c (yesno): Document use of stdin.
22164         * modules/yesno-tests (Files): New module.
22165         * tests/test-yesno.c (main): New file.
22166         * tests/test-yesno.sh: Likewise.
22167
22168 2007-08-19  Bruno Haible  <bruno@clisp.org>
22169
22170         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
22171         * lib/fseeko.c (rpl_fseeko): Likewise.
22172         * lib/fseterr.c (fseterr): Likewise.
22173
22174 2007-08-19  Bruno Haible  <bruno@clisp.org>
22175
22176         * tests/test-lseek.c (main): Disable a test for BeOS.
22177         * doc/functions/lseek.texi: Document the BeOS bug.
22178
22179 2007-08-19  Bruno Haible  <bruno@clisp.org>
22180             Eric Blake  <ebb9@byu.net>
22181
22182         * lib/lseek.c: Include <sys/stat.h>.
22183         (rpl_lseek): Add workaround code also for Unix platforms.
22184         Needed for BeOS.
22185         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
22186         * doc/functions/lseek.texi: Document BeOS definiency.
22187
22188 2007-08-18  Bruno Haible  <bruno@clisp.org>
22189
22190         * modules/fstrcmp-tests: New file.
22191         * tests/test-fstrcmp.c: New file.
22192
22193 2007-08-18  Bruno Haible  <bruno@clisp.org>
22194
22195         * modules/fstrcmp: New file, from GNU gettext with modifications.
22196         * lib/fstrcmp.h: New file, from GNU gettext.
22197         * lib/fstrcmp.c: New file, from GNU gettext.
22198         * MODULES.html.sh (String handling): Add fstrcmp.
22199
22200 2007-08-18  Bruno Haible  <bruno@clisp.org>
22201
22202         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
22203         'bool'.
22204         (diag, compareseq): Remove const from the ctxt argument.
22205         (USE_HEURISTIC): Undefine at the end.
22206
22207 2007-08-18  Jim Meyering  <jim@meyering.net>
22208
22209         New file: lib/idcache.h
22210         * NEWS: Mention the addition.
22211         * modules/idcache (Files): Add lib/idcache.h
22212         * lib/idcache.c: Include "idcache.h".
22213         Don't include <sys/types.h>.
22214         Add a FIXME comment.
22215         Move file-scoped "static" declarations to the top.
22216         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
22217
22218 2007-08-17  Bruno Haible  <bruno@clisp.org>
22219         and Paul Eggert  <eggert@cs.ucla.edu>
22220
22221         * MODULES.html.sh: Add diffseq.
22222         * modules/diffseq: New file.
22223         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
22224         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
22225
22226 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22227
22228         Import changes from coreutils for bootstrap script.
22229
22230         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
22231
22232         * build-aux/bootstrap (slurp): Work even in environments where
22233         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
22234         current code does not slurp files whose names start with ".", and
22235         this looks like it might be a troublesome area.
22236
22237         2007-07-11  Jim Meyering  <jim@meyering.net>
22238
22239         If there's a GPL vN copyright comment, require that N == 3.
22240
22241         2007-07-08  Jim Meyering  <jim@meyering.net>
22242
22243         Run the coreutils-specific code only if tests/Makefile.am.in exists.
22244         * build-aux/bootstrap (mam_template): Move definition out of loop.
22245
22246         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
22247
22248         * build-aux/bootstrap (symlink_to_dir): Rename function from
22249         symlink_to_gnulib.  Add a directory parameter.  Update all
22250         callers.
22251         (cp_mark_as_generated): Also check for -- and link to -- files in
22252         gl/.
22253
22254         2007-07-08  Jim Meyering  <jim@meyering.net>
22255
22256         Adapt to deeper hierarchy in gnulib.
22257         * build-aux/bootstrap (symlink_to_dir): If the destination
22258         directory doesn't exist, create it. This is required at least for
22259         "lib/uniwidth/cjk.h".
22260
22261         2007-05-15  Jim Meyering  <jim@meyering.net>
22262
22263         * build-aux/bootstrap: Now that generated Makefile.am files
22264         are no longer under version control, they must be created at
22265         bootstrap time.
22266
22267 2007-08-14  Ben Pfaff  <blp@gnu.org>
22268
22269         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
22270
22271 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22272
22273         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
22274         given the changes below.
22275         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
22276         even on hosts that have padding bits beyond the supported 64.
22277
22278 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22279
22280         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
22281         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
22282         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
22283         depends on it.
22284         (xstrtol_error): Remove.
22285         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
22286         but with a different signature.
22287         (ATTRIBUTE_NORETURN, __attribute__): New macros.
22288         * lib/xstrtol-error.c: Include exitfail.h.
22289         (xstrtol_fatal): New function, with a different signature from the
22290         old xstrtol_error, so that the caller need not worry about passing
22291         in an exit status, or about storage management of the option argument.
22292         (xstrtol_error): Now a static function.  Redo signature to
22293         implement xstrtol_fatal.  Output the correct number of hyphens in
22294         front of the option so that the caller need not worry about
22295         storage management.
22296         (N_): New macro.
22297         (_): Remove; not used now.
22298         * modules/xstrtol: Depend on getopt.
22299         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
22300         of old STRTOL_FATAL_ERROR macro.
22301         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
22302         of test program.
22303         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
22304         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
22305
22306 2007-08-08  Eric Blake  <ebb9@byu.net>
22307
22308         * lib/xstrtol-error.c: Add missing include.
22309
22310         Move xstrtol messages into gnulib domain, when --pobase is used.
22311         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
22312         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
22313         * modules/xstrtol (Files): Distribute new file.
22314         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
22315         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
22316         * tests/test-xstrtol.c: ...into new file.
22317         * tests/test-xstrtoul.c: Also test xstrtoul.
22318         * tests/test-xstrtoimax.c: Also test xstrtoimax.
22319         * tests/test-xstrtoumax.c: Also test xstrtoumax.
22320         * tests/test-xstrtol.sh: Drive the tests.
22321         * tests/test-xstrtoimax.sh: Likewise.
22322         * tests/test-xstrtoumax.sh: Likewise.
22323         * modules/xstrtol-tests: New module.
22324         * modules/xstrtoimax-tests: Likewise.
22325         * modules/xstrtoumax-tests: Likewise.
22326
22327 2007-08-08  Jim Meyering  <jim@meyering.net>
22328
22329         New function: mfile_name_concat.
22330         * lib/filenamecat.c (mfile_name_concat): New function, just like
22331         file_name_concat, but return NULL upon failure rather than exiting
22332         with a diagnostic.
22333         * lib/filenamecat.h: Declare it.
22334
22335 2007-08-07  Bruno Haible  <bruno@clisp.org>
22336
22337         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
22338         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
22339         warning from gcc.
22340         Reported by Eric Blake.
22341
22342 2007-08-07  Simon Josefsson  <simon@josefsson.org>
22343
22344         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
22345         * modules/crypto/arcfour (License): Likewise.
22346         * modules/crypto/des-tests (License): Likewise.
22347         * modules/crypto/gc-arctwo-tests (License): Likewise.
22348         * modules/crypto/gc-des-tests (License): Likewise.
22349         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
22350         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
22351         * modules/crypto/gc-md2-tests (License): Likewise.
22352         * modules/crypto/gc-md4-tests (License): Likewise.
22353         * modules/crypto/gc-md5-tests (License): Likewise.
22354         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
22355         * modules/crypto/gc-rijndael-tests (License): Likewise.
22356         * modules/crypto/gc-sha1-tests (License): Likewise.
22357         * modules/crypto/gc-tests (License): Likewise.
22358         * modules/crypto/hmac-md5 (License): Likewise.
22359         * modules/crypto/hmac-sha1 (License): Likewise.
22360         * modules/crypto/md2-tests (License): Likewise.
22361         * modules/crypto/md4-tests (License): Likewise.
22362         * modules/crypto/md5 (License): Likewise.
22363         * modules/crypto/rijndael (License): Likewise.
22364         * modules/crypto/sha1 (License): Likewise.
22365         * modules/memxor (License): Likewise.
22366
22367 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
22368         and Bruno Haible  <bruno@clisp.org>
22369
22370         * NEWS: Describe interface changes to human, xstrtol.
22371         * lib/human.h: Include <xstrtol.h>.
22372         (human_options): Return enum strtol_error, not int.  Remove
22373         bool arg; take int * instead.
22374         * lib/human.c: Don't include "gettext.h".
22375         (_): Remove; no longer used.
22376         Don't include <xstrtol.h>, since human.h does it.
22377         (human_options): Adjust to abovementioned interface changes.
22378         Do not report error to stderr; that's now the caller's
22379         responsibility.
22380         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
22381         interface change.
22382         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
22383         Str, Argument_type_string.  All uses changed.  Put " argument"
22384         in diagnostics to make them clearer.  Change wording of suffix
22385         message for clarity.
22386         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
22387         Argument_type_string.
22388         (STRTOL_FATAL_WARN): Remove; no longer used.
22389         * modules/human (Depends-on): Remove gettext-h.
22390
22391 2007-08-06  Simon Josefsson  <simon@josefsson.org>
22392
22393         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
22394
22395 2007-07-31  Bruno Haible  <bruno@clisp.org>
22396
22397         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
22398         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
22399         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
22400
22401 2007-07-31  Bruno Haible  <bruno@clisp.org>
22402
22403         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
22404         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
22405
22406 2007-07-30  Bruno Haible  <bruno@clisp.org>
22407
22408         * modules/base64 (License): Use the synonymous term "LGPLv2+".
22409         * modules/c-ctype (License): Likewise.
22410         * modules/c-strcase (License): Likewise.
22411         * modules/check-version (License): Likewise.
22412         * modules/iconv (License): Likewise.
22413         * modules/iconv_open (License): Likewise.
22414         * modules/read-file (License): Likewise.
22415         * modules/striconv (License): Likewise.
22416         * modules/strverscmp (License): Likewise.
22417         * modules/vasprintf (License): Likewise.
22418         * modules/crypto/des (License): Likewise.
22419         * modules/crypto/gc (License): Likewise.
22420         * modules/crypto/gc-arcfour (License): Likewise.
22421         * modules/crypto/gc-arctwo (License): Likewise.
22422         * modules/crypto/gc-des (License): Likewise.
22423         * modules/crypto/gc-hmac-md5 (License): Likewise.
22424         * modules/crypto/gc-hmac-sha1 (License): Likewise.
22425         * modules/crypto/gc-md2 (License): Likewise.
22426         * modules/crypto/gc-md4 (License): Likewise.
22427         * modules/crypto/gc-md5 (License): Likewise.
22428         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
22429         * modules/crypto/gc-random (License): Likewise.
22430         * modules/crypto/gc-rijndael (License): Likewise.
22431         * modules/crypto/gc-sha1 (License): Likewise.
22432         * modules/crypto/md2 (License): Likewise.
22433         * modules/crypto/md4 (License): Likewise.
22434
22435 2007-07-30  Jim Meyering  <jim@meyering.net>
22436
22437         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
22438         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
22439         it has valid stat data.  This bug would cause du not to count the
22440         sizes of inaccessible directories.
22441         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
22442         in <http://bugzilla.redhat.com/250077>.
22443
22444 2007-07-25  Peter O'Gorman  <peter@pogma.com>
22445             Bruno Haible  <bruno@clisp.org>
22446
22447         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
22448         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
22449         #include_next, gives a diagnostic about it, but reports no error in
22450         the exit code.
22451         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
22452
22453 2007-07-24  Ben Pfaff  <blp@gnu.org>
22454
22455         Improve name: "count-one-bits" is better than "popcount".
22456         * MODULES.html.sh: Update name.
22457         * lib/popcount.h: Renamed lib/count-one-bits.h.
22458         (popcount): Renamed count_one_bits.
22459         (popcountl): Renamed count_one_bits_l.
22460         (popcountll): Renamed count_one_bits_ll.
22461         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
22462         * modules/popcount: Renamed module/count-one-bits.
22463         * modules/popcount-tests: Renamed module/count-one-bits-tests.
22464         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
22465
22466 2007-07-23  Ben Pfaff  <blp@gnu.org>
22467
22468         * lib/popcount.h (popcount32): Reduce size of constants, to allow
22469         better code generation, and add U to large constants to avoid
22470         warnings, in non-GCC case.
22471         Suggested by Bruno Haible.
22472
22473 2007-07-23  Ben Pfaff  <blp@gnu.org>
22474
22475         * lib/popcount.h: Use verify_true instead of if...abort.
22476         * modules/popcount: Depend on verify module.
22477         Suggested by Jim Meyering.
22478
22479 2007-07-23  Bruno Haible  <bruno@clisp.org>
22480
22481         * gnulib-tool (func_import): Create a .cvsignore file also when the
22482         directory is not yet in CVS but the toplevel directory is. When
22483         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
22484         Reported by Karl Berry.
22485
22486 2007-07-22  Ben Pfaff  <blp@gnu.org>
22487
22488         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
22489         case.
22490         Suggested by Eric Blake.
22491
22492 2007-07-22  Ben Pfaff  <blp@gnu.org>
22493
22494         New module: popcount.
22495         * MODULES.html.sh: Add popcount.
22496         * modules/popcount: New file.
22497         * modules/popcount-tests: New file.
22498         * tests/test-popcount.c: New file.
22499         * lib/popcount.h: New file.
22500         * m4/popcount.m4: New file.
22501
22502 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
22503
22504         * build-aux/announce-gen: Update to GPLv3.
22505
22506         * build-aux/config.guess: Update from config.
22507
22508 2007-07-21  Bruno Haible  <bruno@clisp.org>
22509
22510         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
22511         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
22512
22513 2007-07-20  Jim Meyering  <jim@meyering.net>
22514
22515         * check-module: Diagnose a self-dependency.
22516
22517 2007-07-19  Bruno Haible  <bruno@clisp.org>
22518
22519         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
22520         empty.
22521         Reported by Eric Blake.
22522
22523 2007-07-18  Bruno Haible  <bruno@clisp.org>
22524
22525         * gnulib-tool: New options --po-base, --po-domain.
22526         (func_usage): Document them.
22527         (pobase, po_domain): New variables.
22528         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
22529         DEFAULT_TEXT_DOMAIN.
22530         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
22531         (func_import): Consider pobase and po_domain. Create a po/ directory.
22532         (func_create_testdir): Set pobase and po_domain to empty.
22533         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
22534         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
22535
22536 2007-07-18  Bruno Haible  <bruno@clisp.org>
22537
22538         * gnulib-tool (func_get_automake_snippet): Synthesize also an
22539         EXTRA_DIST augmentation for files in build-aux/.
22540
22541 2007-07-16  Bruno Haible  <bruno@clisp.org>
22542
22543         * modules/lseek (License): Use the synonymous term "LGPLv2+".
22544         * modules/getdelim (License): Likewise.
22545
22546 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22547
22548         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
22549         * modules/d-type (License): Likewise.
22550         * modules/extensions (License): Likewise.
22551         * modules/fnmatch (License): Likewise.
22552         * modules/fseeko (License): Likewise.
22553         * modules/getaddrinfo (License): Likewise.
22554         * modules/getline (License): Likewise.
22555         * modules/getlogin_r (License): Likewise.
22556         * modules/getpass (License): Likewise.
22557         * modules/gettimeofday (License): Likewise.
22558         * modules/glob (License): Likewise.
22559         * modules/inet_ntop (License): Likewise.
22560         * modules/malloc (License): Likewise.
22561         * modules/malloca (License): Likewise.
22562         * modules/memmem (License): Likewise.
22563         * modules/mempcpy (License): Likewise.
22564         * modules/memset (License): Likewise.
22565         * modules/minmax (License): Likewise.
22566         * modules/mktime (License): Likewise.
22567         * modules/netinet_in (License): Likewise.
22568         * modules/pathmax (License): Likewise.
22569         * modules/poll (License): Likewise.
22570         * modules/regex (License): Likewise.
22571         * modules/snprintf (License): Likewise.
22572         * modules/stdbool (License): Likewise.
22573         * modules/stdint (License): Likewise.
22574         * modules/stdio (License): Likewise.
22575         * modules/strcase (License): Likewise.
22576         * modules/strcasestr (License): Likewise.
22577         * modules/strdup (License): Likewise.
22578         * modules/string (License): Likewise.
22579         * modules/strndup (License): Likewise.
22580         * modules/strnlen (License): Likewise.
22581         * modules/strpbrk (License): Likewise.
22582         * modules/strptime (License): Likewise.
22583         * modules/strsep (License): Likewise.
22584         * modules/sys_select (License): Likewise.
22585         * modules/sys_socket (License): Likewise.
22586         * modules/sys_stat (License): Likewise.
22587         * modules/sys_time (License): Likewise.
22588         * modules/time (License): Likewise.
22589         * modules/time_r (License): Likewise.
22590         * modules/timegm (License): Likewise.
22591         * modules/unistd (License): Likewise.
22592         * modules/vsnprintf (License): Likewise.
22593         * modules/wctype (License): Likewise.
22594
22595 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22596
22597         * modules/argz (License): LGPLv2+.
22598
22599 2007-07-15  Karl Berry  <karl@gnu.org>
22600
22601         * doc/gnulib.texi: revise node structure per new fdl.texi.
22602
22603 2007-07-14  Bruno Haible  <bruno@clisp.org>
22604
22605         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
22606         the output file.
22607         * lib/uniname/uninames.h: Regenerated.
22608
22609 2007-07-14  Karl Berry  <karl@gnu.org>
22610
22611         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
22612         omitting sectioning and index commands.
22613
22614 2007-07-13  Bruno Haible  <bruno@clisp.org>
22615
22616         New gnulib-tool option --more-symlinks.
22617         * gnulib-tool (func_usage): Document --more-symlinks.
22618         (do_copyrights): New variable.
22619         Recognize option --more-symlinks.
22620         (func_import): Don't add a copyright notice transform to
22621         sed_transform_lib_file if do_copyrights is empty.
22622
22623 2007-07-13  Bruno Haible  <bruno@clisp.org>
22624
22625         * lib/vasnprintf.c (decimal_point_char): Define also if
22626         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
22627         && !NEED_PRINTF_DIRECTIVE_A.
22628         Reported by Clemens Koller <clemens.koller@anagramm.de> via
22629         Gary V. Vaughan <gary@gnu.org>.
22630
22631 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
22632
22633         * lib/inttypes_.h: Undo previous change, since it was fixed
22634         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
22635
22636 2007-07-13  Bruno Haible  <bruno@clisp.org>
22637
22638         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
22639         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
22640
22641 2007-07-13  Jim Meyering  <jim@meyering.net>
22642
22643         df: Don't fail for Tru64's "file-on-file mount".
22644         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
22645         so we fall through and use statfs instead.  Details here:
22646         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
22647         Reported by Albert Chin.
22648
22649 2007-07-13  Bruno Haible  <bruno@clisp.org>
22650
22651         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
22652         * modules/configmake (License): Likewise.
22653         * modules/gettext (License): Likewise.
22654         * modules/gettext-h (License): Likewise.
22655         * modules/include_next (License): Likewise.
22656         * modules/link-warning (License): Likewise.
22657         * modules/localcharset (License): Likewise.
22658         * modules/localename (License): Likewise.
22659         * modules/lock (License): Likewise.
22660         * modules/relocatable-lib-lgpl (License): Likewise.
22661         * modules/size_max (License): Likewise.
22662         * modules/vasnprintf (License): Likewise.
22663         * modules/wchar (License): Likewise.
22664         * modules/xsize (License): Likewise.
22665
22666 2007-07-13  Bruno Haible  <bruno@clisp.org>
22667
22668         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
22669         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
22670
22671 2007-07-12  Bruno Haible  <bruno@clisp.org>
22672
22673         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
22674         in the modules files.
22675
22676 2007-07-11  Karl Berry  <karl@gnu.org>
22677
22678         * MODULES.html.sh (func_module): use
22679          sed -e '\|^'"${includefile}"'$|d'
22680          instead of /.../d, to avoid errors on $includefile's containing /.
22681
22682 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
22683
22684         * gnulib-tool (func_import): Avoid duplication of --avoid
22685         statements
22686         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
22687         names to `_' in variable names.
22688
22689 2007-07-10  Eric Blake  <ebb9@byu.net>
22690
22691         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
22692         * NEWS: Document this change.
22693
22694 2007-07-08  Bruno Haible  <bruno@clisp.org>
22695
22696         Update to Unicode 5.0.
22697         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
22698         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
22699         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
22700         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
22701         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
22702         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
22703         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
22704         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
22705         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
22706         U+10A3F, U+1D242..U+1D244.
22707         (nonspacing_table_ind): Update.
22708         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
22709         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
22710
22711 2007-07-08  Bruno Haible  <bruno@clisp.org>
22712
22713         Update to Unicode 5.0.
22714         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
22715         code transform. Extend the name index field of unicode_name_to_code and
22716         unicode_code_to_name from 16 to 24 bits.
22717         * lib/uniname/uniname.c (unicode_character_name,
22718         unicode_name_character): Add the range 0x12xxx to the code transform.
22719         * lib/uniname/uninames.h: Regenerated.
22720         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
22721
22722 2007-07-07  Bruno Haible  <bruno@clisp.org>
22723
22724         * modules/wcwidth-tests: New file.
22725         * tests/test-wcwidth.c: New file.
22726
22727         Work around MacOS X wcwidth() bug.
22728         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
22729         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
22730         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
22731         original wcwidth in non-UTF-8 locales.
22732         * modules/wcwidth (Depends-on): Add localcharset, streq,
22733         uniwidth/width.
22734         * doc/functions/wcwidth.texi: Update.
22735
22736 2007-07-07  Bruno Haible  <bruno@clisp.org>
22737
22738         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
22739         (wcwidth): New declaration.
22740         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
22741         macros.
22742         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
22743         here. Prepare for creating <wchar.h> unconditionally.
22744         * modules/wchar (Depends-on): Add link-warning.
22745         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
22746         REPLACE_WCWIDTH, and GL_LINK_WARNING.
22747         * lib/wcwidth.h: Remove file.
22748         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
22749         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
22750         * modules/wcwidth (Files): Remove lib/wcwidth.h.
22751         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
22752         (Include): Replace wcwidth.h with <wchar.h>.
22753         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
22754         * lib/mbchar.h: Don't include wcwidth.h.
22755         * lib/mbswidth.c: Likewise.
22756         * NEWS: Mention the change.
22757
22758 2007-07-07  Bruno Haible  <bruno@clisp.org>
22759
22760         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
22761         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
22762         definition with an external declaration.
22763         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
22764         defined as a function. Remove AC_C_INLINE requirement.
22765         * modules/wcwidth (Files): Add lib/wcwidth.c.
22766         (Makefile.am): Remove redundant statement.
22767
22768 2007-07-07  Bruno Haible  <bruno@clisp.org>
22769
22770         * MODULES.html.sh (Unicode string functions): Add the new modules.
22771
22772         * tests/uniwidth/test-u32-strwidth.c: New file.
22773         * modules/uniwidth/u32-strwidth-tests: New file.
22774
22775         * lib/uniwidth/u32-strwidth.c: New file.
22776         * modules/uniwidth/u32-strwidth: New file.
22777
22778         * tests/uniwidth/test-u16-strwidth.c: New file.
22779         * modules/uniwidth/u16-strwidth-tests: New file.
22780
22781         * lib/uniwidth/u16-strwidth.c: New file.
22782         * modules/uniwidth/u16-strwidth: New file.
22783
22784         * tests/uniwidth/test-u8-strwidth.c: New file.
22785         * modules/uniwidth/u8-strwidth-tests: New file.
22786
22787         * lib/uniwidth/u8-strwidth.c: New file.
22788         * modules/uniwidth/u8-strwidth: New file.
22789
22790         * tests/uniwidth/test-u32-width.c: New file.
22791         * modules/uniwidth/u32-width-tests: New file.
22792
22793         * lib/uniwidth/u32-width.c: New file.
22794         * modules/uniwidth/u32-width: New file.
22795
22796         * tests/uniwidth/test-u16-width.c: New file.
22797         * modules/uniwidth/u16-width-tests: New file.
22798
22799         * lib/uniwidth/u16-width.c: New file.
22800         * modules/uniwidth/u16-width: New file.
22801
22802         * tests/uniwidth/test-u8-width.c: New file.
22803         * modules/uniwidth/u8-width-tests: New file.
22804
22805         * lib/uniwidth/u8-width.c: New file.
22806         * modules/uniwidth/u8-width: New file.
22807
22808         * tests/uniwidth/test-uc_width.c: New file.
22809         * modules/uniwidth/width-tests: New file.
22810
22811         * lib/uniwidth/width.c: New file, from GNU libiconv.
22812         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
22813         * modules/uniwidth/width: New file.
22814
22815         * lib/uniwidth.h: New file, from GNU libiconv.
22816         * modules/uniwidth/base: New file.
22817
22818 2007-07-07  Bruno Haible  <bruno@clisp.org>
22819
22820         * lib/uniname.h: New file, from GNU gettext.
22821         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
22822         * lib/uniname/uninames.h: New file, from GNU gettext.
22823         * lib/uniname/uniname.c: New file, from GNU gettext.
22824         * tests/uniname/test-uninames.sh: New file.
22825         * tests/uniname/test-uninames.c: New file, from GNU gettext.
22826         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
22827         * modules/uniname/base: New file.
22828         * modules/uniname/uniname: New file.
22829         * modules/uniname/uniname-tests: New file.
22830         * MODULES.html.sh (Unicode string functions): Add the new modules.
22831
22832 2007-07-06  Bruno Haible  <bruno@clisp.org>
22833
22834         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
22835
22836 2007-07-06  Bruno Haible  <bruno@clisp.org>
22837
22838         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
22839         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
22840         includes <cygwin/sys_time.h> which includes <sys/select.h> which
22841         include <sys/time.h>.
22842         Reported by Eric Blake.
22843
22844 2007-07-06  Eric Blake  <ebb9@byu.net>
22845
22846         Fix testing canonicalize on cygwin.
22847         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
22848         Revert patch from 2007-06-19.
22849         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
22850         canonicalize module is also in use.
22851         * tests/test-canonicalize.c: New file.
22852         * tests/test-canonicalize.sh: Likewise.
22853         * modules/canonicalize-tests: Likewise.
22854
22855 2007-07-06  Jim Meyering  <jim@meyering.net>
22856
22857         * lib/getugroups.c (getugroups): Detect getgrent failure.
22858         Adjust comment to reflect reality: this function may return -1.
22859
22860 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
22861
22862         * build-aux/bootstrap (TP_URL,get_translations): Update to use
22863         the new TP address.
22864         (usage): Fix typo
22865         (gnulib_mk): New variable.
22866
22867 2007-07-05  Jim Meyering  <jim@meyering.net>
22868
22869         Don't let endgrent clobber errno, no matter how improbable.
22870         * lib/getugroups.c (getugroups): Save and restore errno around
22871         endgrent call.
22872
22873         Close the group DB even when failing with 2^31 or more members.
22874         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
22875
22876 2007-07-04  Jim Meyering  <jim@meyering.net>
22877
22878         * lib/getugroups.h: New file.
22879         * lib/getugroups.c: Include "getugroups.h".
22880         Remove uses of "register" keyword.
22881         Move local variable, "cp", down into scope where used.
22882         Give "username" parameter the "const" attribute.
22883         * modules/getugroups (Files): Add lib/getugroups.h
22884
22885 2007-07-04  Karl Berry  <karl@gnu.org>
22886
22887         * MODULES.html.sh (func_all_modules): Complete rename of
22888         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
22889
22890 2007-07-02  Bruno Haible  <bruno@clisp.org>
22891
22892         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
22893         mode, when inttypes.h comes from gnulib.
22894         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
22895
22896 2007-07-02  Simon Josefsson  <simon@josefsson.org>
22897
22898         * NEWS: Mention lgpl module name change.
22899
22900         * modules/lgpl-2.1: Renamed from lgpl.
22901
22902         * NEWS: Mention gpl module name change.
22903
22904         * modules/gpl-3.0: New file, based on gpl-2.0.
22905
22906         * modules/gpl-2.0: Renamed from gpl.
22907
22908         * modules/gpl: Fix filename, doc/gpl.texi is now found at
22909         doc/gpl-2.0.texi.
22910
22911 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
22912
22913         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
22914         #define __STDC_LIMIT_MACROS temporarily while including
22915         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
22916         Problem reported by Joel E. Denny in
22917         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
22918
22919 2007-07-01  Bruno Haible  <bruno@clisp.org>
22920
22921         * lib/unistdio.h: New file.
22922         * lib/unistdio/u-asnprintf.h: New file.
22923         * lib/unistdio/u-asprintf.h: New file.
22924         * lib/unistdio/u-printf-args.c: New file.
22925         * lib/unistdio/u-printf-args.h: New file.
22926         * lib/unistdio/u-printf-parse.h: New file.
22927         * lib/unistdio/u-snprintf.h: New file.
22928         * lib/unistdio/u-sprintf.h: New file.
22929         * lib/unistdio/u-vasprintf.h: New file.
22930         * lib/unistdio/u-vsnprintf.h: New file.
22931         * lib/unistdio/u-vsprintf.h: New file.
22932         * lib/unistdio/ulc-asnprintf.c: New file.
22933         * lib/unistdio/ulc-asprintf.c: New file.
22934         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
22935         * lib/unistdio/ulc-printf-parse.c: New file.
22936         * lib/unistdio/ulc-snprintf.c: New file.
22937         * lib/unistdio/ulc-sprintf.c: New file.
22938         * lib/unistdio/ulc-vasnprintf.c: New file.
22939         * lib/unistdio/ulc-vasprintf.c: New file.
22940         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
22941         * lib/unistdio/ulc-vsnprintf.c: New file.
22942         * lib/unistdio/ulc-vsprintf.c: New file.
22943         * lib/unistdio/u8-asnprintf.c: New file.
22944         * lib/unistdio/u8-asprintf.c: New file.
22945         * lib/unistdio/u8-printf-parse.c: New file.
22946         * lib/unistdio/u8-snprintf.c: New file.
22947         * lib/unistdio/u8-sprintf.c: New file.
22948         * lib/unistdio/u8-vasnprintf.c: New file.
22949         * lib/unistdio/u8-vasprintf.c: New file.
22950         * lib/unistdio/u8-vsnprintf.c: New file.
22951         * lib/unistdio/u8-vsprintf.c: New file.
22952         * lib/unistdio/u8-u8-asnprintf.c: New file.
22953         * lib/unistdio/u8-u8-asprintf.c: New file.
22954         * lib/unistdio/u8-u8-snprintf.c: New file.
22955         * lib/unistdio/u8-u8-sprintf.c: New file.
22956         * lib/unistdio/u8-u8-vasnprintf.c: New file.
22957         * lib/unistdio/u8-u8-vasprintf.c: New file.
22958         * lib/unistdio/u8-u8-vsnprintf.c: New file.
22959         * lib/unistdio/u8-u8-vsprintf.c: New file.
22960         * lib/unistdio/u16-asnprintf.c: New file.
22961         * lib/unistdio/u16-asprintf.c: New file.
22962         * lib/unistdio/u16-printf-parse.c: New file.
22963         * lib/unistdio/u16-snprintf.c: New file.
22964         * lib/unistdio/u16-sprintf.c: New file.
22965         * lib/unistdio/u16-vasnprintf.c: New file.
22966         * lib/unistdio/u16-vasprintf.c: New file.
22967         * lib/unistdio/u16-vsnprintf.c: New file.
22968         * lib/unistdio/u16-vsprintf.c: New file.
22969         * lib/unistdio/u16-u16-asnprintf.c: New file.
22970         * lib/unistdio/u16-u16-asprintf.c: New file.
22971         * lib/unistdio/u16-u16-snprintf.c: New file.
22972         * lib/unistdio/u16-u16-sprintf.c: New file.
22973         * lib/unistdio/u16-u16-vasnprintf.c: New file.
22974         * lib/unistdio/u16-u16-vasprintf.c: New file.
22975         * lib/unistdio/u16-u16-vsnprintf.c: New file.
22976         * lib/unistdio/u16-u16-vsprintf.c: New file.
22977         * lib/unistdio/u32-asnprintf.c: New file.
22978         * lib/unistdio/u32-asprintf.c: New file.
22979         * lib/unistdio/u32-printf-parse.c: New file.
22980         * lib/unistdio/u32-snprintf.c: New file.
22981         * lib/unistdio/u32-sprintf.c: New file.
22982         * lib/unistdio/u32-vasnprintf.c: New file.
22983         * lib/unistdio/u32-vasprintf.c: New file.
22984         * lib/unistdio/u32-vsnprintf.c: New file.
22985         * lib/unistdio/u32-vsprintf.c: New file.
22986         * lib/unistdio/u32-u32-asnprintf.c: New file.
22987         * lib/unistdio/u32-u32-asprintf.c: New file.
22988         * lib/unistdio/u32-u32-snprintf.c: New file.
22989         * lib/unistdio/u32-u32-sprintf.c: New file.
22990         * lib/unistdio/u32-u32-vasnprintf.c: New file.
22991         * lib/unistdio/u32-u32-vasprintf.c: New file.
22992         * lib/unistdio/u32-u32-vsnprintf.c: New file.
22993         * lib/unistdio/u32-u32-vsprintf.c: New file.
22994         * tests/unistdio/test-ulc-asnprintf1.c: New file.
22995         * tests/unistdio/test-ulc-asnprintf1.h: New file.
22996         * tests/unistdio/test-ulc-printf1.h: New file.
22997         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
22998         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
22999         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
23000         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
23001         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
23002         * tests/unistdio/test-ulc-vasprintf1.c: New file.
23003         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
23004         * tests/unistdio/test-ulc-vsprintf1.c: New file.
23005         * tests/unistdio/test-u8-asnprintf1.c: New file.
23006         * tests/unistdio/test-u8-asnprintf1.h: New file.
23007         * tests/unistdio/test-u8-printf1.h: New file.
23008         * tests/unistdio/test-u8-vasnprintf1.c: New file.
23009         * tests/unistdio/test-u8-vasnprintf2.c: New file.
23010         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
23011         * tests/unistdio/test-u8-vasnprintf3.c: New file.
23012         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
23013         * tests/unistdio/test-u8-vasprintf1.c: New file.
23014         * tests/unistdio/test-u8-vsnprintf1.c: New file.
23015         * tests/unistdio/test-u8-vsprintf1.c: New file.
23016         * tests/unistdio/test-u16-asnprintf1.c: New file.
23017         * tests/unistdio/test-u16-asnprintf1.h: New file.
23018         * tests/unistdio/test-u16-printf1.h: New file.
23019         * tests/unistdio/test-u16-vasnprintf1.c: New file.
23020         * tests/unistdio/test-u16-vasnprintf2.c: New file.
23021         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
23022         * tests/unistdio/test-u16-vasnprintf3.c: New file.
23023         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
23024         * tests/unistdio/test-u16-vasprintf1.c: New file.
23025         * tests/unistdio/test-u16-vsnprintf1.c: New file.
23026         * tests/unistdio/test-u16-vsprintf1.c: New file.
23027         * tests/unistdio/test-u32-asnprintf1.c: New file.
23028         * tests/unistdio/test-u32-asnprintf1.h: New file.
23029         * tests/unistdio/test-u32-printf1.h: New file.
23030         * tests/unistdio/test-u32-vasnprintf1.c: New file.
23031         * tests/unistdio/test-u32-vasnprintf2.c: New file.
23032         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
23033         * tests/unistdio/test-u32-vasnprintf3.c: New file.
23034         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
23035         * tests/unistdio/test-u32-vasprintf1.c: New file.
23036         * tests/unistdio/test-u32-vsnprintf1.c: New file.
23037         * tests/unistdio/test-u32-vsprintf1.c: New file.
23038         * modules/unistdio/base: New file.
23039         * modules/unistdio/u-printf-args: New file.
23040         * modules/unistdio/ulc-asnprintf: New file.
23041         * modules/unistdio/ulc-asprintf: New file.
23042         * modules/unistdio/ulc-fprintf: New file.
23043         * modules/unistdio/ulc-printf-parse: New file.
23044         * modules/unistdio/ulc-snprintf: New file.
23045         * modules/unistdio/ulc-sprintf: New file.
23046         * modules/unistdio/ulc-vasnprintf: New file.
23047         * modules/unistdio/ulc-vasprintf: New file.
23048         * modules/unistdio/ulc-vfprintf: New file.
23049         * modules/unistdio/ulc-vsnprintf: New file.
23050         * modules/unistdio/ulc-vsprintf: New file.
23051         * modules/unistdio/u8-asnprintf: New file.
23052         * modules/unistdio/u8-asprintf: New file.
23053         * modules/unistdio/u8-printf-parse: New file.
23054         * modules/unistdio/u8-snprintf: New file.
23055         * modules/unistdio/u8-sprintf: New file.
23056         * modules/unistdio/u8-vasnprintf: New file.
23057         * modules/unistdio/u8-vasprintf: New file.
23058         * modules/unistdio/u8-vsnprintf: New file.
23059         * modules/unistdio/u8-vsprintf: New file.
23060         * modules/unistdio/u8-u8-asnprintf: New file.
23061         * modules/unistdio/u8-u8-asprintf: New file.
23062         * modules/unistdio/u8-u8-snprintf: New file.
23063         * modules/unistdio/u8-u8-sprintf: New file.
23064         * modules/unistdio/u8-u8-vasnprintf: New file.
23065         * modules/unistdio/u8-u8-vasprintf: New file.
23066         * modules/unistdio/u8-u8-vsnprintf: New file.
23067         * modules/unistdio/u8-u8-vsprintf: New file.
23068         * modules/unistdio/u16-asnprintf: New file.
23069         * modules/unistdio/u16-asprintf: New file.
23070         * modules/unistdio/u16-printf-parse: New file.
23071         * modules/unistdio/u16-snprintf: New file.
23072         * modules/unistdio/u16-sprintf: New file.
23073         * modules/unistdio/u16-vasnprintf: New file.
23074         * modules/unistdio/u16-vasprintf: New file.
23075         * modules/unistdio/u16-vsnprintf: New file.
23076         * modules/unistdio/u16-vsprintf: New file.
23077         * modules/unistdio/u16-u16-asnprintf: New file.
23078         * modules/unistdio/u16-u16-asprintf: New file.
23079         * modules/unistdio/u16-u16-snprintf: New file.
23080         * modules/unistdio/u16-u16-sprintf: New file.
23081         * modules/unistdio/u16-u16-vasnprintf: New file.
23082         * modules/unistdio/u16-u16-vasprintf: New file.
23083         * modules/unistdio/u16-u16-vsnprintf: New file.
23084         * modules/unistdio/u16-u16-vsprintf: New file.
23085         * modules/unistdio/u32-asnprintf: New file.
23086         * modules/unistdio/u32-asprintf: New file.
23087         * modules/unistdio/u32-printf-parse: New file.
23088         * modules/unistdio/u32-snprintf: New file.
23089         * modules/unistdio/u32-sprintf: New file.
23090         * modules/unistdio/u32-vasnprintf: New file.
23091         * modules/unistdio/u32-vasprintf: New file.
23092         * modules/unistdio/u32-vsnprintf: New file.
23093         * modules/unistdio/u32-vsprintf: New file.
23094         * modules/unistdio/u32-u32-asnprintf: New file.
23095         * modules/unistdio/u32-u32-asprintf: New file.
23096         * modules/unistdio/u32-u32-snprintf: New file.
23097         * modules/unistdio/u32-u32-sprintf: New file.
23098         * modules/unistdio/u32-u32-vasnprintf: New file.
23099         * modules/unistdio/u32-u32-vasprintf: New file.
23100         * modules/unistdio/u32-u32-vsnprintf: New file.
23101         * modules/unistdio/u32-u32-vsprintf: New file.
23102         * modules/unistdio/ulc-asnprintf-tests: New file.
23103         * modules/unistdio/ulc-vasnprintf-tests: New file.
23104         * modules/unistdio/ulc-vasprintf-tests: New file.
23105         * modules/unistdio/ulc-vsnprintf-tests: New file.
23106         * modules/unistdio/ulc-vsprintf-tests: New file.
23107         * modules/unistdio/u8-asnprintf-tests: New file.
23108         * modules/unistdio/u8-vasnprintf-tests: New file.
23109         * modules/unistdio/u8-vasprintf-tests: New file.
23110         * modules/unistdio/u8-vsnprintf-tests: New file.
23111         * modules/unistdio/u8-vsprintf-tests: New file.
23112         * modules/unistdio/u16-asnprintf-tests: New file.
23113         * modules/unistdio/u16-vasnprintf-tests: New file.
23114         * modules/unistdio/u16-vasprintf-tests: New file.
23115         * modules/unistdio/u16-vsnprintf-tests: New file.
23116         * modules/unistdio/u16-vsprintf-tests: New file.
23117         * modules/unistdio/u32-asnprintf-tests: New file.
23118         * modules/unistdio/u32-vasnprintf-tests: New file.
23119         * modules/unistdio/u32-vasprintf-tests: New file.
23120         * modules/unistdio/u32-vsnprintf-tests: New file.
23121         * modules/unistdio/u32-vsprintf-tests: New file.
23122         * MODULES.html.sh (Unicode string functions): Add the new modules.
23123
23124 2007-07-01  Bruno Haible  <bruno@clisp.org>
23125
23126         * lib/sprintf.c (sprintf): Limit the available length estimation,
23127         to avoid address wraparound.
23128         * lib/vsprintf.c (vsprintf): Likewise.
23129         * modules/sprintf-posix (Dependencies): Add stdint.
23130         * modules/vsprintf-posix (Dependencies): Likewise.
23131
23132 2007-07-01  Bruno Haible  <bruno@clisp.org>
23133
23134         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
23135         Windows PATH as well. Conservative double-quoting. Comments.
23136
23137 2007-07-01  Bruno Haible  <bruno@clisp.org>
23138             Eric Blake  <ebb9@byu.net>
23139             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23140
23141         * gnulib-tool (self_abspathname): Fix algorithm to cope with
23142         empty components in $PATH, denoting '.'.
23143
23144 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23145
23146         * gnulib-tool: Fix indentation.
23147         (func_create_megatestdir): Likewise.
23148         Report by Bruno Haible.
23149
23150 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23151
23152         Sync from Automake.
23153         * build-aux/gnupload: Fix shell portability issues with for loops.
23154         Report by Karl Berry.
23155
23156 2007-06-29  Simon Josefsson  <simon@josefsson.org>
23157
23158         * build-aux/maint.mk (POURL): Use translationproject.org.
23159
23160 2007-06-27  Simon Josefsson  <simon@josefsson.org>
23161             Bruno Haible  <bruno@clisp.org>
23162
23163         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
23164         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
23165         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
23166         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
23167         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
23168
23169 2007-06-27  Bruno Haible  <bruno@clisp.org>
23170
23171         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
23172         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
23173
23174 2007-06-26  Karl Berry  <karl@gnu.org>
23175
23176         * MODULES.html.sh: remove xreadlink-with-size.
23177
23178 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
23179
23180         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
23181         method that I hope also handles the double-include problem noted
23182         by Bruno Haible in
23183         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
23184
23185 2007-06-23  Bruno Haible  <bruno@clisp.org>
23186
23187         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23188         Don't let the 'mostlyclean' target fail if the last subdirectory could
23189         not be removed.
23190         Reported by Karl Berry.
23191
23192 2007-06-23  Bruno Haible  <bruno@clisp.org>
23193
23194         * gnulib-tool (echo): Add a speedier workaround for ksh.
23195         * tests/test-echo.sh: Likewise.
23196
23197 2007-06-23  Bruno Haible  <bruno@clisp.org>
23198
23199         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
23200         * tests/test-echo.sh: Likewise.
23201
23202 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23203
23204         * gnulib-tool (IFS): Initialize early, so we don't set it to
23205         empty later.
23206         (self_abspathname): Rewrite algorithm to set it, reindent.
23207         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
23208         (func_create_megatestdir): Merge some sed scripts.
23209
23210 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
23211
23212         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
23213         exposed by Sun Studio 11 cc on Solaris 8.
23214
23215 2007-06-22  Bruno Haible  <bruno@clisp.org>
23216
23217         * gnulib-tool (echo): Ensure the echo primitive does not interpret
23218         backslashes.
23219         * tests/test-echo.sh: New file.
23220
23221 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23222
23223         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
23224         simplify `sed_replace_build_aux' scripts, they are portable but
23225         echoing them with `echo' is not.
23226         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
23227
23228 2007-06-21  Karl Berry  <karl@gnu.org>
23229
23230         * config/srclist.txt: guess we can't handle the licenses via
23231         srclist at the moment.
23232
23233 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
23234
23235         * MODULES.html.sh: Add include_next.
23236         * modules/include_next: New file.
23237
23238 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
23239
23240         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
23241         INCLUDE_NEXT.
23242         (gl_CHECK_NEXT_HEADERS): New macro.
23243         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
23244         the obsolescent gl_ABSOLUTE_HEADER.
23245         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
23246         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
23247         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
23248         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23249         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
23250         * m4/math_h.m4 (gl_MATH_H): Likewise.
23251         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
23252         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23253         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
23254         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23255         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
23256         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
23257         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
23258         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23259         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23260         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
23261         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
23262         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
23263         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
23264         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23265         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23266         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
23267         * m4/inttypes.m4 (gl_INTTYPES_H): Define
23268         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
23269         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
23270         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
23271         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
23272         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
23273         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
23274         * lib/float_.h: Likewise.
23275         * lib/inttypes_.h: Likewise.
23276         * lib/math_.h: Likewise.
23277         * lib/search_.h: Likewise.
23278         * lib/signal_.h: Likewise.
23279         * lib/stdint_.h: Likewise.
23280         * lib/stdio_.h: Likewise.
23281         * lib/stdlib_.h: Likewise.
23282         * lib/string_.h: Likewise.
23283         * lib/sys_stat_.h: Likewise.
23284         * lib/sys_time_.h: Likewise.
23285         * lib/time_.h: Likewise.
23286         * lib/unistd_.h: Likewise.
23287         * lib/wchar_.h: Likewise.
23288         * lib/wctype_.h: Likewise.
23289         * lib/dirent_.h: Likewise.
23290         * lib/iconv_.h: Likewise.
23291         * lib/locale_.h: Likewise.
23292         * lib/netinet_in_.h: Likewise.
23293         * lib/sys_select_.h: Likewise.
23294         * lib/sys_socket_.h: Likewise.
23295         * lib/sysexits_.h: Likewise.
23296         * modules/fcntl (Depends-on): Depend on include_next, not
23297         absolute_header.
23298         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
23299         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
23300         * modules/fchdir: Likewise.
23301         * modules/float: Likewise.
23302         * modules/iconv_open: Likewise.
23303         * modules/inttypes: Likewise.
23304         * modules/locale: Likewise.
23305         * modules/math: Likewise.
23306         * modules/netinet_in: Likewise.
23307         * modules/search: Likewise.
23308         * modules/signal: Likewise.
23309         * modules/stdint: Likewise.
23310         * modules/stdio: Likewise.
23311         * modules/stdlib: Likewise.
23312         * modules/string: Likewise.
23313         * modules/sys_select: Likewise.
23314         * modules/sys_socket: Likewise.
23315         * modules/sys_stat: Likewise.
23316         * modules/sys_time: Likewise.
23317         * modules/sysexits: Likewise.
23318         * modules/time: Likewise.
23319         * modules/unistd: Likewise.
23320         * modules/wchar: Likewise.
23321         * modules/wctype: Likewise.
23322         * modules/sys_stat: Change maintainer to "all".
23323         * modules/unistd: Likewise.
23324
23325 2007-06-20  Karl Berry  <karl@gnu.org>
23326
23327         * config/srclist.txt: track www changes in license files.
23328
23329 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
23330
23331         * build-aux/bootstrap: Remove stray dot.
23332         Make sure build_aux settings are honored when linking
23333         gnulib_extra_files.
23334
23335 2007-06-19  Eric Blake  <ebb9@byu.net>
23336
23337         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
23338         Allow compilation on cygwin.
23339
23340 2007-06-19  Jim Meyering  <jim@meyering.net>
23341
23342         xreadlink-with-size: Remove module.  No longer used.
23343         Ex-callers now use xreadlink or mreadlink-with-size.
23344         * modules/xreadlink-with-size: Remove module.
23345         * lib/xreadlink-with-size.c: Remove file.
23346         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
23347         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
23348         just before the function definition *is* accurate.
23349
23350         Eliminate one way canonicalize_filename_mode could exit.
23351         * lib/canonicalize.c (canonicalize_filename_mode):
23352         Use mreadlink_with_size, not xreadlink_with_size.
23353
23354 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
23355
23356         Detect porting problems to FreeBSD/arm, which has time_t wider than
23357         long int.  Original problem reported for GNU diff by Xin Li in
23358         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
23359         * modules/getdate (Depends-on): Add intprops, verify.
23360         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
23361         is an integer type no wider than long int.
23362
23363 2007-06-18  Jim Meyering  <jim@meyering.net>
23364
23365         New module: mreadlink-with-size.
23366         * MODULES.html.sh: Add mreadlink-with-size.
23367         * modules/mreadlink-with-size: New module
23368         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
23369         not xreadlink-with-size.
23370         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
23371
23372 2007-06-16  Bruno Haible  <bruno@clisp.org>
23373
23374         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
23375         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
23376         Reported by Gary V. Vaughan <gary@gnu.org>.
23377
23378 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
23379
23380         Revamp lchown so that it lives in unistd.h where it belongs.
23381         * lib/lchown.h: Remove.
23382         * lib/dirchownmod.c: Don't include lib/lchown.h.
23383         * lib/fchownat.c: Likewise.
23384         * lib/openat.c: Likewise.
23385         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
23386         does not follow symlinks.
23387         (EOPNOTSUPP): Define if not defined.
23388         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
23389         is defined to 0.
23390         (lchown): New decl.
23391         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
23392         Do not check for lchown decl.
23393         Set REPLACE_LCHOWN.
23394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
23395         REPLACE_LCHOWN.
23396         * modules/chown: Make it clear it follows symlinks.
23397         * modules/lchown: Make it clear it doesn't follow symlinks.
23398         (Files): Remove lib/lchown.h
23399         (Depends-on): Add unistd.
23400         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
23401         (Include): Include <unistd.h>, not "lchown.h".
23402         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
23403         REPLACE_LCHOWN.
23404
23405 2007-06-15  Jim Meyering  <jim@meyering.net>
23406
23407         Change license (GPL to LGPL) of fsusage and dependents.
23408         * modules/fsusage (License): Change to LGPL.
23409         * modules/full-read (License): Likewise.
23410         * modules/full-write (License): Likewise.
23411         * modules/safe-read (License): Likewise.
23412         * modules/safe-write (License): Likewise.
23413
23414 2007-06-14  Ben Pfaff  <blp@gnu.org>
23415
23416         Missing part of allocsa -> malloca transition.
23417         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
23418         gl_MALLOCA.
23419
23420 2007-06-12  Bruno Haible  <bruno@clisp.org>
23421
23422         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
23423         to ia64, x86_64, i386.
23424         Reported by Eric Blake.
23425
23426 2007-06-12  Bruno Haible  <bruno@clisp.org>
23427
23428         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
23429         cross-compiling to x86_64.
23430
23431 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
23432
23433         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
23434         glitch reported by Ralf Wildenhues in
23435         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
23436
23437         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
23438         Vin Shelton.
23439
23440 2007-06-11  Bruno Haible  <bruno@clisp.org>
23441
23442         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
23443         replacement string.
23444         Reported by Eric Blake.
23445
23446 2007-06-10  Bruno Haible  <bruno@clisp.org>
23447
23448         Prepare vasnprintf code for use with Unicode strings.
23449         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
23450         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
23451         TYPE_U32_STRING.
23452         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
23453         a_u32_string variants.
23454         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
23455         * lib/printf-args.c: Don't include config.h and the specification
23456         header if PRINTF_FETCHARGS is already defined.
23457         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
23458         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
23459         TYPE_U16_STRING, TYPE_U32_STRING.
23460         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
23461         u16_directive, u16_directives, u32_directive, u32_directives): New
23462         types.
23463         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
23464         New declarations.
23465         * lib/printf-parse.c: Don't include config.h and the specification
23466         header if PRINTF_PARSE is already defined. Eliminate the set of
23467         parameters for WIDE_CHAR_VERSION; the user of this file must provide
23468         them now. Include c-ctype.h.
23469         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
23470         directive and CHAR_T_ONLY_ASCII.
23471         * lib/vasnprintf.c: Don't include config.h and the specification header
23472         if VASNPRINTF is already defined.
23473         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
23474         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
23475         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
23476         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
23477         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
23478         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
23479         code accordingly.
23480         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
23481         pad_ourselves also in this case, with the 'c' and 's' directives, and
23482         with a different notion of "width".
23483         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
23484
23485 2007-06-10  Bruno Haible  <bruno@clisp.org>
23486
23487         * modules/unistr/u32-mbsnlen: New file.
23488         * lib/unistr/u32-mbsnlen.c: New file.
23489
23490         * modules/unistr/u16-mbsnlen: New file.
23491         * lib/unistr/u16-mbsnlen.c: New file.
23492
23493         * modules/unistr/u8-mbsnlen: New file.
23494         * lib/unistr/u8-mbsnlen.c: New file.
23495
23496         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
23497         declarations.
23498
23499 2007-06-10  Bruno Haible  <bruno@clisp.org>
23500
23501         * lib/string_.h (mbsnlen): New declaration.
23502         * lib/mbsnlen.c: New file.
23503         * m4/mbsnlen.m4: New file.
23504         * modules/mbsnlen: New file.
23505         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
23506         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
23507         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
23508
23509 2007-06-10  Bruno Haible  <bruno@clisp.org>
23510
23511         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
23512
23513 2007-06-10  Bruno Haible  <bruno@clisp.org>
23514
23515         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
23516         * lib/mbuiter.h: Likewise.
23517
23518 2007-06-10  Bruno Haible  <bruno@clisp.org>
23519
23520         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
23521         declaration.
23522
23523 2007-06-10  Karl Berry  <karl@gnu.org>
23524
23525         * config/srclist.txt: remove gettext entries, Bruno prefers
23526         to update individually.
23527
23528 2007-06-10  Bruno Haible  <bruno@clisp.org>
23529
23530         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
23531         'maxlen'. Ensure only length + width bytes are allocated, not
23532         length + 1 + width.
23533
23534 2007-06-09  Bruno Haible  <bruno@clisp.org>
23535
23536         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
23537         (CHAR_T): Remove macro.
23538         (VASNPRINTF): Update.
23539
23540 2007-06-09  Bruno Haible  <bruno@clisp.org>
23541
23542         * MODULES.html.sh (Unicode string functions): Add the new modules.
23543
23544         * modules/uniconv/u32-conv-to-enc: New file.
23545         * lib/uniconv/u32-conv-to-enc.c: New file.
23546         * modules/uniconv/u32-conv-to-enc-tests: New file.
23547         * tests/uniconv/test-u32-conv-to-enc.c: New file.
23548
23549         * modules/uniconv/u16-conv-to-enc: New file.
23550         * lib/uniconv/u16-conv-to-enc.c: New file.
23551         * lib/uniconv/u-conv-to-enc.h: New file.
23552         * modules/uniconv/u16-conv-to-enc-tests: New file.
23553         * tests/uniconv/test-u16-conv-to-enc.c: New file.
23554
23555         * modules/uniconv/u8-conv-to-enc: New file.
23556         * lib/uniconv/u8-conv-to-enc.c: New file.
23557         * modules/uniconv/u8-conv-to-enc-tests: New file.
23558         * tests/uniconv/test-u8-conv-to-enc.c: New file.
23559
23560         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
23561         u32_conv_to_encoding): New declarations.
23562
23563 2007-06-09  Bruno Haible  <bruno@clisp.org>
23564
23565         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
23566
23567 2007-06-09  Bruno Haible  <bruno@clisp.org>
23568
23569         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
23570         * modules/malloca: Renamed from modules/allocsa, updated.
23571         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
23572         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
23573         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
23574         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
23575         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
23576         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
23577         * modules/xmalloca: Renamed from modules/xallocsa, updated.
23578         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
23579         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
23580         * modules/c-strcasestr (Depends-on): Update.
23581         * lib/c-strcasestr.c: Update.
23582         * modules/c-strstr (Depends-on): Update.
23583         * lib/c-strstr.c: Update.
23584         * modules/canonicalize-lgpl (Depends-on): Update.
23585         * lib/canonicalize-lgpl.c: Update.
23586         * modules/clean-temp (Depends-on): Update.
23587         * lib/clean-temp.c: Update.
23588         * modules/csharpcomp (Depends-on): Update.
23589         * lib/csharpcomp.c: Update.
23590         * modules/csharpexec (Depends-on): Update.
23591         * lib/csharpexec.c: Update.
23592         * modules/javacomp (Depends-on): Update.
23593         * lib/javacomp.c: Update.
23594         * modules/javaexec (Depends-on): Update.
23595         * lib/javaexec.c: Update.
23596         * modules/mbscasestr (Depends-on): Update.
23597         * lib/mbscasestr.c: Update.
23598         * modules/mbsstr (Depends-on): Update.
23599         * lib/mbsstr.c: Update.
23600         * modules/setenv (Depends-on): Update.
23601         * lib/setenv.c: Update.
23602         * modules/strcasestr (Depends-on): Update.
23603         * lib/strcasestr.c: Update.
23604         * modules/striconveha (Depends-on): Update.
23605         * lib/striconveha.c: Update.
23606         * modules/relocatable-prog-wrapper (Files): Update.
23607         * lib/relocwrapper.c: Update.
23608         * build-aux/install-reloc: Update.
23609         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
23610
23611 2007-06-08  Bruno Haible  <bruno@clisp.org>
23612
23613         Port to uClibc.
23614         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
23615         * lib/fpurge.c (fpurge): Likewise.
23616         * lib/freading.c (freading): Likewise.
23617         * lib/fseeko.c (rpl_fseeko): Likewise.
23618         * lib/fseterr.c (fseterr): Likewise.
23619         * lib/fwriting.c (fwriting): Likewise.
23620         * tests/test-fflush.c (main): Avoid a failure on uClibc.
23621
23622 2007-06-08  Bruno Haible  <bruno@clisp.org>
23623
23624         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
23625         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
23626         * modules/gettext (Files): Add m4/intlmacosx.m4.
23627
23628 2007-06-07  Bruno Haible  <bruno@clisp.org>
23629
23630         * modules/localename-tests: New file.
23631         * tests/test-localename.c: New file.
23632
23633         New module 'localename'.
23634         * lib/localename.h: New file.
23635         * lib/localename.c: New file, from GNU gettext.
23636         * m4/localename.m4: New file.
23637         * modules/localename: New file.
23638
23639 2007-06-07  Bruno Haible  <bruno@clisp.org>
23640
23641         Work around the lack of <wchar.h> on some builds of uClibc.
23642         * doc/headers/wchar.texi: Update.
23643         * lib/wchar_.h: Include <wchar.h> only if it exists.
23644         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
23645         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
23646         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
23647         doesn't exist.
23648         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
23649         * modules/mbfile (Depends-on): Add wchar.
23650         * modules/mbiter (Depends-on): Likewise.
23651         * modules/mbuiter (Depends-on): Likewise.
23652         Reported by Simon Josefsson.
23653
23654 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
23655
23656         Work around problem reported by Steven M. Schweda in
23657         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
23658         Tru64 5.1B with the Compaq compiler environment installed declares
23659         an 'isblank' function but does not define it in the C library.
23660         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
23661         * lib/regex_internal.h (isblank): Likewise.
23662         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
23663         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
23664
23665 2007-06-05  Bruno Haible  <bruno@clisp.org>
23666
23667         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
23668         ia64.
23669         * modules/printf-safe: New file.
23670         * modules/fprintf-posix (Depends-on): Add printf-safe.
23671         * modules/printf-posix (Depends-on): Likewise.
23672         * modules/snprintf-posix (Depends-on): Likewise.
23673         * modules/sprintf-posix (Depends-on): Likewise.
23674         * modules/vasnprintf-posix (Depends-on): Likewise.
23675         * modules/vasprintf-posix (Depends-on): Likewise.
23676         * modules/vfprintf-posix (Depends-on): Likewise.
23677         * modules/vprintf-posix (Depends-on): Likewise.
23678         * modules/vsnprintf-posix (Depends-on): Likewise.
23679         * modules/vsprintf-posix (Depends-on): Likewise.
23680         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
23681         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
23682         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
23683         "no" on i386, x86_64, ia64.
23684         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
23685         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
23686         on i386, x86_64, ia64.
23687         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
23688         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
23689         on i386, x86_64, ia64.
23690         * tests/test-vasnprintf-posix.c: Include float.h.
23691         (LDBL80_WORDS): New macro.
23692         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
23693         on i386, x86_64, ia64.
23694         * tests/test-vasprintf-posix.c: Include float.h.
23695         (LDBL80_WORDS): New macro.
23696         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
23697         on i386, x86_64, ia64.
23698         * tests/test-snprintf-posix.c: Include float.h.
23699         * tests/test-sprintf-posix.c: Likewise.
23700         * tests/test-vsnprintf-posix.c: Likewise.
23701         * tests/test-vsprintf-posix.c: Likewise.
23702
23703 2007-06-05  Bruno Haible  <bruno@clisp.org>
23704
23705         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
23706         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
23707         non-IEEE numbers on i386, x86_64, ia64.
23708         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
23709         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
23710         * tests/test-isnanl.h: Include float.h.
23711         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
23712
23713 2007-06-05  Bruno Haible  <bruno@clisp.org>
23714
23715         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
23716         also the %a / %A. Handle the %a / %A code before this extra handling.
23717
23718 2007-06-05  Bruno Haible  <bruno@clisp.org>
23719
23720         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
23721         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
23722
23723 2007-06-05  Bruno Haible  <bruno@clisp.org>
23724
23725         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
23726         typo in variable name.
23727
23728 2007-06-05  Eric Blake  <ebb9@byu.net>
23729
23730         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
23731         Reported by Simon Josefsson.
23732
23733 2007-06-04  Bruno Haible  <bruno@clisp.org>
23734
23735         Avoid test failures on some PowerPC platforms.
23736         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
23737         Define differently for PowerPC.
23738         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
23739         Reported by Gary V. Vaughan <gary@gnu.org>.
23740
23741 2007-06-02  Bruno Haible  <bruno@clisp.org>
23742
23743         Fix test-stdint failure on FreeBSD/ia64.
23744         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
23745         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
23746         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
23747         * doc/headers/stdint.texi: Update.
23748
23749 2007-06-01  Bruno Haible  <bruno@clisp.org>
23750
23751         * tests/test-binary-io.c (main): Pass a third argument to open().
23752         Reported by Gary V. Vaughan <gary@gnu.org>.
23753
23754 2007-06-01  Bruno Haible  <bruno@clisp.org>
23755
23756         * doc/functions/frexpl.texi: Update for mingw.
23757
23758 2007-06-01  Bruno Haible  <bruno@clisp.org>
23759
23760         * tests/test-lseek.c (main): Disable test of errno for invalid third
23761         argument.
23762         * doc/functions/lseek.texi: Update.
23763         Reported by Gary V. Vaughan <gary@gnu.org>.
23764
23765 2007-05-28  Bruno Haible  <bruno@clisp.org>
23766
23767         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
23768
23769 2007-05-31  Eric Blake  <ebb9@byu.net>
23770
23771         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
23772         cross compiling.
23773
23774 2007-05-30  Eric Blake  <ebb9@byu.net>
23775         and Bruno Haible  <bruno@clisp.org>
23776
23777         Work around mingw test failures exposed by m4-1.4.9b.
23778         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
23779         * tests/test-unistd.c: Disable uid_t and git_t tests for the
23780         moment.
23781
23782 2007-05-30  Bruno Haible  <bruno@clisp.org>
23783
23784         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
23785         assuming that they are closed. Needed on HP-UX 11.
23786
23787 2007-05-29  Bruno Haible  <bruno@clisp.org>
23788
23789         Fix a problem with #include_next.
23790         * lib/dirent_.h: Split the double-inclusion guard.
23791         * lib/fcntl_.h: Likewise.
23792         * lib/float_.h: Likewise.
23793         * lib/iconv_.h: Likewise.
23794         * lib/inttypes_.h: Likewise.
23795         * lib/locale_.h: Likewise.
23796         * lib/math_.h: Likewise.
23797         * lib/netinet_in_.h: Likewise.
23798         * lib/search_.h: Likewise.
23799         * lib/signal_.h: Likewise.
23800         * lib/stdint_.h: Likewise.
23801         * lib/stdio_.h: Likewise.
23802         * lib/stdlib_.h: Likewise.
23803         * lib/string_.h: Likewise.
23804         * lib/sys_select_.h: Likewise.
23805         * lib/sys_socket_.h: Likewise.
23806         * lib/sys_stat_.h: Likewise.
23807         * lib/sys_time_.h: Likewise.
23808         * lib/sysexits_.h: Likewise.
23809         * lib/time_.h: Likewise.
23810         * lib/unistd_.h: Likewise.
23811         * lib/wchar_.h: Likewise.
23812         * lib/wctype_.h: Likewise.
23813
23814 2007-05-29  Bruno Haible  <bruno@clisp.org>
23815
23816         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
23817         for the moment.
23818
23819 2007-05-29  Bruno Haible  <bruno@clisp.org>
23820
23821         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
23822         invocation.
23823         Reported by Eric Blake.
23824
23825 2007-05-29  Bruno Haible  <bruno@clisp.org>
23826
23827         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
23828         compiling case.
23829
23830 2007-05-29  Eric Blake  <ebb9@byu.net>
23831             Bruno Haible  <bruno@clisp.org>
23832
23833         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
23834         cross compiles.
23835
23836 2007-05-28  Eric Blake  <ebb9@byu.net>
23837
23838         * modules/closein-tests (test_closein_LDADD): Support test on
23839         cygwin with libtool.
23840
23841 2007-05-28  Bruno Haible  <bruno@clisp.org>
23842
23843         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
23844         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
23845         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
23846         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
23847         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
23848         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
23849         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
23850         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
23851         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
23852
23853 2007-05-28  Eric Blake  <ebb9@byu.net>
23854
23855         Unconditionally include <config.h> in unit tests.
23856         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
23857         * tests/test-allocsa.c, tests/test-arcfour.c,
23858         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
23859         tests/test-array_list.c, tests/test-array_oset.c,
23860         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
23861         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
23862         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
23863         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
23864         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
23865         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
23866         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
23867         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
23868         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
23869         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
23870         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
23871         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
23872         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
23873         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
23874         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
23875         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
23876         test-md5.c, test-memmem.c, test-printf-posix.c,
23877         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
23878         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
23879         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
23880         test-strcasestr.c, test-striconv.c, test-striconveh.c,
23881         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
23882         test-vasnprintf-posix2.c, test-vasnprintf.c,
23883         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
23884         test-vfprintf-posix.c, test-vprintf-posix.c,
23885         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
23886         test-xvasprintf.c: Likewise.
23887
23888 2007-05-28  Bruno Haible  <bruno@clisp.org>
23889
23890         * gnulib-tool (func_import): Remember the --with-tests command-line
23891         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
23892         Reported by Eric Blake.
23893
23894 2007-05-28  Bruno Haible  <bruno@clisp.org>
23895
23896         * modules/ftell-tests: New file.
23897         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
23898         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
23899
23900         * lib/ftell.c: New file.
23901         * modules/ftell: New file.
23902         * m4/ftell.m4: New file.
23903         * doc/functions/ftell.texi: Update.
23904         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
23905         REPLACE_FTELL.
23906         * lib/stdio_.h (rpl_ftell): New declaration.
23907         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
23908         REPLACE_FTELL.
23909
23910 2007-05-28  Eric Blake  <ebb9@byu.net>
23911
23912         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
23913
23914 2007-05-28  Bruno Haible  <bruno@clisp.org>
23915
23916         * modules/fseek-tests: New file.
23917         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
23918         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
23919
23920         * lib/fseek.c: New file.
23921         * modules/fseek: New file.
23922         * m4/fseek.m4: New file.
23923         * doc/functions/fseek.texi: Update.
23924         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
23925         REPLACE_FSEEK.
23926         * lib/stdio_.h (rpl_fseek): New declaration.
23927         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
23928         REPLACE_FSEEK.
23929
23930 2007-05-28  Bruno Haible  <bruno@clisp.org>
23931
23932         * lib/stdio_.h (fflush): More comments.
23933
23934 2007-05-28  Bruno Haible  <bruno@clisp.org>
23935
23936         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
23937         runtime test.
23938
23939 2007-05-28  Eric Blake  <ebb9@byu.net>
23940
23941         Improve lseek module.
23942         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
23943         * lib/unistd_.h (lseek): Scale back link warning message.
23944         * tests/test-lseek.c: Beef up test.
23945         * tests/test-lseek.sh: Exercise more facets of lseek.
23946         Reported by Bruno Haible.
23947
23948 2007-05-28  Bruno Haible  <bruno@clisp.org>
23949
23950         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
23951         to define.
23952
23953 2007-05-27  Bruno Haible  <bruno@clisp.org>
23954
23955         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
23956
23957 2007-05-27  Bruno Haible  <bruno@clisp.org>
23958
23959         * modules/openmp: New file.
23960         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
23961         Noah Misch.
23962
23963 2007-05-26  Bruno Haible  <bruno@clisp.org>
23964
23965         * modules/chdir-long (Depends-on): Add fchdir.
23966         * modules/chdir-safer (Depends-on): Likewise.
23967         * modules/fts (Depends-on): Likewise.
23968         * modules/fts-lgpl (Depends-on): Likewise.
23969         * modules/openat (Depends-on): Likewise.
23970         * modules/savewd (Depends-on): Likewise.
23971
23972 2007-05-24  Eric Blake  <ebb9@byu.net>
23973
23974         Fix lseek on mingw.
23975         * modules/lseek: New module.
23976         * m4/lseek.m4: New file.
23977         * lib/lseek.c: New file.
23978         * modules/lseek-tests: New file.
23979         * tests/test-lseek.c: New file.
23980         * tests/test-lseek.sh: New file.
23981         * MODULES.html.sh: Document lseek module.
23982         * modules/fflush (Depends-on): Add lseek, fseeko.
23983         * modules/fseeko (Depends-on): Likewise.
23984         * modules/ftello (Depends-on): Likewise.
23985         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
23986         broken.
23987         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
23988         broken.
23989         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
23990         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
23991         * lib/ftello.c (rpl_ftello): Likewise.
23992         * tests/test-fseeko.c (main): Test this.
23993         * tests/test-fseeko.sh: Likewise.
23994         * tests/test-ftello.c (main): Likewise.
23995         * tests/test-ftello.sh: Likewise.
23996         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
23997         implies replacing fseek.
23998         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
23999         HAVE_FTELLO.
24000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
24001         * modules/unistd (Makefile.am): Likewise.
24002         * lib/unistd_.h (lseek): Declare a replacement.
24003         * doc/functions/lseek.texi (lseek): Document this fix.
24004         * doc/functions/fseek.texi (fseek): Likewise.
24005         * doc/functions/ftell.texi (ftell): Likewise.
24006
24007 2007-05-24  Bruno Haible  <bruno@clisp.org>
24008
24009         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
24010         in the printed representation of a NaN.
24011         * tests/test-vasprintf-posix.c (test_function): Likewise.
24012         * tests/test-snprintf-posix.h (test_function): Likewise.
24013         * tests/test-sprintf-posix.h (test_function): Likewise.
24014         Reported by Eric Blake.
24015
24016 2007-05-23  Eric Blake  <ebb9@byu.net>
24017
24018         Fix fseeko/ftello on cygwin 1.5.24.
24019         * doc/functions/fseeko.texi (fseeko): Document the fix.
24020         * doc/functions/ftello.texi (ftello): Document the fix.
24021         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
24022         * doc/functions/stdout.text (stdout): New file.
24023         * doc/functions/stderr.text (stderr): New file.
24024         * doc/gnulib.texi (Function Substitutes): Use new files.
24025         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
24026         prior to 1.7.0.
24027         * tests/test-ftello.c (main): Likewise for ftello.
24028         * tests/test-fseeko.sh: New file.
24029         * tests/test-ftello.sh: New file.
24030         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
24031         with seekable stdin.
24032         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
24033         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
24034         (gl_REPLACE_FSEEKO): New macro.
24035         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
24036         * modules/fseeko (Files): Distribute fseeko.c.
24037         * modules/ftello (Files): Distribute ftello.c.
24038         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
24039         mode.
24040         * lib/ftello.c (rpl_ftello): New file.
24041         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
24042         fseeko, ftello.
24043         (gl_STDIN_LARGE_OFFSET): New macro.
24044         * modules/stdio (Makefile.am): Perform the replacement.
24045         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
24046
24047 2007-05-23  Bruno Haible  <bruno@clisp.org>
24048
24049         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
24050         GNULIB_POSIXCHECK is defined.
24051
24052 2007-05-21  Bruno Haible  <bruno@clisp.org>
24053
24054         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
24055         Check also the output for NaN arguments. When cross-compiling, guess
24056         no on IRIX.
24057         * lib/vasnprintf.c: Update comments.
24058         * tests/test-vasnprintf-posix.c (strisnan): New function.
24059         (test_function): Use it.
24060         * tests/test-vasprintf-posix.c (strisnan): New function.
24061         (test_function): Use it.
24062         * tests/test-snprintf-posix.h (strisnan): New function.
24063         (test_function): Use it.
24064         * tests/test-sprintf-posix.h (strisnan): New function.
24065         (test_function): Use it.
24066         Reported by Eric Blake.
24067
24068 2007-05-20  Bruno Haible  <bruno@clisp.org>
24069
24070         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
24071         numbers that fails on BeOS.
24072         * doc/functions/frexpl.texi: Update.
24073
24074 2007-05-20  Jim Meyering  <jim@meyering.net>
24075
24076         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
24077         forced upon us by glibc-2.6.
24078
24079 2007-05-20  Bruno Haible  <bruno@clisp.org>
24080
24081         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
24082         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
24083         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
24084         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
24085         NEED_PRINTF_INFINITE.
24086         (is_infinitel): New function.
24087         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
24088         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
24089         gl_PREREQ_VASNPRINTF_INFINITE.
24090         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
24091         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
24092         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
24093         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
24094         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
24095         gl_PREREQ_VASNPRINTF_INFINITE.
24096         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
24097         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24098         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24099         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24100         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
24101         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24102         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24103         * doc/functions/fprintf.texi: Update.
24104         * doc/functions/printf.texi: Update.
24105         * doc/functions/snprintf.texi: Update.
24106         * doc/functions/sprintf.texi: Update.
24107         * doc/functions/vfprintf.texi: Update.
24108         * doc/functions/vprintf.texi: Update.
24109         * doc/functions/vsnprintf.texi: Update.
24110         * doc/functions/vsprintf.texi: Update.
24111
24112 2007-05-20  Bruno Haible  <bruno@clisp.org>
24113
24114         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
24115         was not found in libc.
24116         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
24117
24118 2007-05-20  Bruno Haible  <bruno@clisp.org>
24119
24120         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
24121         printed as "-nan" instead of "nan".
24122         * tests/test-vasprintf-posix.c (test_function): Likewise.
24123         * tests/test-snprintf-posix.h (test_function): Likewise.
24124         * tests/test-sprintf-posix.h (test_function): Likewise.
24125         Needed for HP-UX 11.
24126
24127 2007-05-20  Jim Meyering  <jim@meyering.net>
24128
24129         Fix buggy test for the fchownat-deref bug.
24130         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
24131         symlink required for the run-test.  Without it, this test would
24132         always declare that fchownat doesn't work, and client code would
24133         unnecessarily use the replacement function with fixed libc.
24134         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
24135         Reported by Greg Schafer.
24136
24137 2007-05-19  Bruno Haible  <bruno@clisp.org>
24138
24139         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
24140         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
24141         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
24142         Needed for IRIX 6.5 and Solaris 2.5.1.
24143
24144 2007-05-19  Bruno Haible  <bruno@clisp.org>
24145
24146         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
24147         (test_function): Skip tests involving -0.0 on platforms where
24148         -0.0 = 0.0.
24149         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
24150         (test_function): Skip tests involving -0.0 on platforms where
24151         -0.0 = 0.0.
24152         * tests/test-snprintf-posix.h (have_minus_zero): New function.
24153         (test_function): Skip tests involving -0.0 on platforms where
24154         -0.0 = 0.0.
24155         * tests/test-sprintf-posix.h (have_minus_zero): New function.
24156         (test_function): Skip tests involving -0.0 on platforms where
24157         -0.0 = 0.0.
24158         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
24159         tests.
24160         * tests/test-printf-posix.h (test_function): Likewise.
24161         * tests/test-printf-posix.output: Remove all -0.0 related results.
24162         Needed for IRIX 6.5.
24163
24164 2007-05-19  Bruno Haible  <bruno@clisp.org>
24165
24166         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
24167         printed as "nan0x7fffffff" instead of "nan".
24168         * tests/test-vasprintf-posix.c (test_function): Likewise.
24169         * tests/test-snprintf-posix.h (test_function): Likewise.
24170         * tests/test-sprintf-posix.h (test_function): Likewise.
24171         * tests/test-fprintf-posix.h (NaN): Remove macro.
24172         (test_function): Remove all NaN related tests.
24173         * tests/test-printf-posix.h (NaN): Remove macro.
24174         (test_function): Remove all NaN related tests.
24175         * tests/test-printf-posix.output: Remove all NaN related results.
24176         Needed for IRIX 6.5.
24177
24178 2007-05-19  Bruno Haible  <bruno@clisp.org>
24179
24180         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
24181         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
24182
24183 2007-05-19  Bruno Haible  <bruno@clisp.org>
24184
24185         * lib/float_.h: New file.
24186         * m4/float_h.m4: New file.
24187         * modules/float: New file.
24188         * modules/isnanl (Dependencies): Add float.
24189         * modules/isnanl-nolibm (Dependencies): Likewise.
24190         * modules/mathl (Dependencies): Likewise.
24191         * modules/printf-frexpl (Dependencies): Likewise.
24192         * modules/signbit (Dependencies): Likewise.
24193         * modules/vasnprintf (Dependencies): Likewise.
24194         * doc/headers/float.texi: Update.
24195
24196 2007-05-19  Jim Meyering  <jim@meyering.net>
24197
24198         * lib/utimens.c (gl_futimens): Rename from futimens,
24199         now that glibc-2.6 declares futimens.
24200         * lib/utimens.h: Likewise.
24201
24202 2007-05-19  Bruno Haible  <bruno@clisp.org>
24203
24204         Avoid test failures on mingw.
24205         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
24206         * tests/test-printf-posix.sh: Likewise.
24207         * tests/test-vfprintf-posix.sh: Likewise.
24208         * tests/test-vprintf-posix.sh: Likewise.
24209
24210 2007-05-19  Bruno Haible  <bruno@clisp.org>
24211
24212         Fix *printf result for NaN, Inf, -0.0 on mingw.
24213         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
24214         * lib/vasnprintf.c: Include math.h and isnan.h.
24215         (is_infinite_or_zero): New function.
24216         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
24217         values in the %f, %F, %e, %E, %g, %G directives.
24218         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
24219         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
24220         gl_PRINTF_INFINITE and test its result. Invoke
24221         gl_PREREQ_VASNPRINTF_INFINITE.
24222         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
24223         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24224         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24225         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24226         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
24227         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24228         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24229         * doc/functions/fprintf.texi: Update.
24230         * doc/functions/printf.texi: Update.
24231         * doc/functions/snprintf.texi: Update.
24232         * doc/functions/sprintf.texi: Update.
24233         * doc/functions/vfprintf.texi: Update.
24234         * doc/functions/vprintf.texi: Update.
24235         * doc/functions/vsnprintf.texi: Update.
24236         * doc/functions/vsprintf.texi: Update.
24237
24238 2007-05-19  Bruno Haible  <bruno@clisp.org>
24239
24240         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
24241         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
24242         Instead of multiplying with 10^k, set extra_zeroes to k.
24243         (scale10_round_long_double): Remove function.
24244
24245 2007-05-18  Bruno Haible  <bruno@clisp.org>
24246
24247         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
24248         introduced on 2007-05-06.
24249
24250 2007-05-18  Bruno Haible  <bruno@clisp.org>
24251
24252         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
24253         %g directives.
24254         * tests/test-vasprintf-posix.c (test_function): Likewise.
24255         * tests/test-snprintf-posix.h (test_function): Likewise.
24256         * tests/test-sprintf-posix.h (test_function): Likewise.
24257
24258 2007-05-18  Bruno Haible  <bruno@clisp.org>
24259
24260         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
24261         (strmatch): New function.
24262         (test_function): Test the %f directive on numbers of various exponents.
24263         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
24264         (strmatch): New function.
24265         (test_function): Test the %f directive on numbers of various exponents.
24266         * tests/test-snprintf-posix.h (strmatch): New function.
24267         (test_function): Test the %f directive on numbers of various exponents.
24268         * tests/test-sprintf-posix.h (strmatch): New function.
24269         (test_function): Test the %f directive on numbers of various exponents.
24270         * tests/test-snprintf-posix.c (SIZEOF): New macro.
24271         * tests/test-sprintf-posix.c (SIZEOF): New macro.
24272         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
24273         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
24274
24275 2007-05-18  Bruno Haible  <bruno@clisp.org>
24276
24277         Add support for 'long double' number output.
24278         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
24279         * lib/vasnprintf.c: Include math.h and float+.h.
24280         (mp_limb_t): New type.
24281         (GMP_LIMB_BITS): New macro.
24282         (mp_twolimb_t): New type.
24283         (GMP_TWOLIMB_BITS): New macro.
24284         (mpn_t): New type.
24285         (multiply, divide, convert_to_decimal, decode_long_double,
24286         scale10_round_long_double, scale10_round_decimal_long_double,
24287         floorlog10l): New functions.
24288         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
24289         for the %f, %F, %e, %E, %g, %G directives.
24290         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
24291         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
24292         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
24293         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
24294         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
24295         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24296         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24297         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24298         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
24299         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24300         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24301         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
24302         * modules/snprintf-posix (Depends-on): Likewise.
24303         * modules/sprintf-posix (Depends-on): Likewise.
24304         * modules/vasnprintf-posix (Depends-on): Likewise.
24305         * modules/vasprintf-posix (Depends-on): Likewise.
24306         * modules/vfprintf-posix (Depends-on): Likewise.
24307         * modules/vsnprintf-posix (Depends-on): Likewise.
24308         * modules/vsprintf-posix (Depends-on): Likewise.
24309         * modules/vasnprintf (Files): Add lib/float+.h.
24310         * doc/functions/fprintf.texi: Update.
24311         * doc/functions/printf.texi: Update.
24312         * doc/functions/snprintf.texi: Update.
24313         * doc/functions/sprintf.texi: Update.
24314         * doc/functions/vfprintf.texi: Update.
24315         * doc/functions/vprintf.texi: Update.
24316         * doc/functions/vsnprintf.texi: Update.
24317         * doc/functions/vsprintf.texi: Update.
24318
24319 2007-05-18  Bruno Haible  <bruno@clisp.org>
24320
24321         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
24322
24323 2007-05-18  Bruno Haible  <bruno@clisp.org>
24324
24325         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
24326         for printing 64-bit integers. Needed for mingw.
24327
24328 2007-05-18  Bruno Haible  <bruno@clisp.org>
24329
24330         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
24331         gl_FUNC_FREXPL_WORKS.
24332         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
24333
24334 2007-05-18  Bruno Haible  <bruno@clisp.org>
24335
24336         * modules/frexpl-nolibm-tests: New file.
24337
24338         * modules/frexpl-nolibm: New file.
24339         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
24340
24341 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
24342
24343         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
24344         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
24345         GCC 4.2, which otherwise issues a lot of warnings.
24346         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
24347         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
24348         Likewise.
24349         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
24350         * modules/iconv_open (iconv.h): Likewise.
24351         * modules/locale (locale.h): Likewise.
24352         * modules/netinet_in (netinet/in.h): Likewise.
24353         * modules/sys_select (sys_select.h): Likewise.
24354         * modules/sys_socket (sys/socket.h): Likewise.
24355         * modules/sys_stat (sys/stat.h): Likewise.
24356         * modules/sysexits (sysexits.h): Likewise.
24357         * modules/unistd (unistd.h): Likewise.
24358
24359 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24360
24361         * modules/closein-tests (Makefile.am): Distribute
24362         `test-closein.sh'.
24363
24364 2007-05-17  Bruno Haible  <bruno@clisp.org>
24365
24366         * tests/test-printf-posix.output: Renamed from
24367         tests/test-fprintf-posix.out.
24368         * modules/fprintf-posix-tests: Update.
24369         * modules/printf-posix-tests: Update.
24370         * modules/vfprintf-posix-tests: Update.
24371         * modules/vprintf-posix-tests: Update.
24372         * tests/test-fprintf-posix.sh: Update.
24373         * tests/test-printf-posix.sh: Update.
24374         * tests/test-vfprintf-posix.sh: Update.
24375         * tests/test-vprintf-posix.sh: Update.
24376         Reported by Ralf Wildenhues.
24377
24378 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
24379
24380         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
24381         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
24382         GCC 4.2, which otherwise issues a lot of warnings.
24383         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
24384         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
24385         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
24386         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
24387         it should no longer be needed.
24388         * lib/string_.h: Likewise.
24389         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
24390         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
24391         * modules/inttypes (inttypes.h): Likewise.
24392         * modules/math (math.h): Likewise.
24393         * modules/search (search.h): Likewise.
24394         * modules/signal (signal.h): Likewise.
24395         * modules/stdint (stdint.h): Likewise.
24396         * modules/stdio (stdio.h): Likewise.
24397         * modules/stdlib (stdlib.h): Likewise.
24398         * modules/string (string.h): Likewise.
24399         * modules/sys_time (sys/time.h): Likewise.
24400         * modules/time (time.h): Likewise.
24401         * modules/wchar (wchar.h): Likewise.
24402         * modules/wctype (wtype.h): Likewise.
24403
24404 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24405
24406         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
24407
24408 2007-05-13  Bruno Haible  <bruno@clisp.org>
24409
24410         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
24411         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24412         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
24413         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
24414         (gl_PREREQ_STRTOK_R): Don't require it here.
24415
24416 2007-05-13  Bruno Haible  <bruno@clisp.org>
24417
24418         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
24419         when used in C++ mode.
24420
24421 2007-05-12  Bruno Haible  <bruno@clisp.org>
24422
24423         * lib/linebuffer.h: Tweak doc.
24424         * lib/linebuffer.c: Likewise.
24425
24426 2007-05-12  James Youngman  <jay@gnu.org>
24427
24428         * lib/linebuffer.c (readlinebuffer_delim): New function,
24429         like readlinebuffer, but use a caller-specified delimiter.
24430         (readlinebuffer): Just call readlinebuffer_delim with '\n'
24431         as the delimiter.
24432         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
24433
24434 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
24435
24436         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
24437         * modules/openat (Files): Remove openat-die.c.
24438         (Depends-on): Add openat-die.
24439         * modules/openat-die: New module.
24440
24441 2007-05-06  Bruno Haible  <bruno@clisp.org>
24442
24443         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
24444         Update with info about Cygwin.
24445         * doc/functions/fprintf.texi: Update.
24446         * doc/functions/printf.texi: Update.
24447         * doc/functions/snprintf.texi: Update.
24448         * doc/functions/sprintf.texi: Update.
24449         * doc/functions/vfprintf.texi: Update.
24450         * doc/functions/vprintf.texi: Update.
24451         * doc/functions/vsnprintf.texi: Update.
24452         * doc/functions/vsprintf.texi: Update.
24453         Reported by Eric Blake.
24454
24455 2007-05-06  Bruno Haible  <bruno@clisp.org>
24456
24457         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
24458         padding ourselves for the floating-point directives.
24459         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
24460         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
24461         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24462         gl_PRINTF_FLAG_ZERO and test its result. Invoke
24463         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
24464         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24465         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
24466         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24467         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24468         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
24469         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24470         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24471         * tests/test-snprintf-posix.h (test_function): Also check the width
24472         and some flags in the %f directive.
24473         * tests/test-sprintf-posix.h (test_function): Likewise.
24474         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24475         * tests/test-vasprintf-posix.c (test_function): Likewise.
24476         * doc/functions/fprintf.texi: Update.
24477         * doc/functions/printf.texi: Update.
24478         * doc/functions/snprintf.texi: Update.
24479         * doc/functions/sprintf.texi: Update.
24480         * doc/functions/vfprintf.texi: Update.
24481         * doc/functions/vprintf.texi: Update.
24482         * doc/functions/vsnprintf.texi: Update.
24483         * doc/functions/vsprintf.texi: Update.
24484
24485 2007-05-06  Bruno Haible  <bruno@clisp.org>
24486
24487         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
24488         pass the ' flag character to sprintf or snprintf.
24489         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
24490         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
24491         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24492         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
24493         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
24494         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24495         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
24496         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24497         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24498         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
24499         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24500         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24501         * tests/test-snprintf-posix.h (test_function): Also check the grouping
24502         flag.
24503         * tests/test-sprintf-posix.h (test_function): Likewise.
24504         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24505         * tests/test-vasprintf-posix.c (test_function): Likewise.
24506         * doc/functions/fprintf.texi: Update.
24507         * doc/functions/printf.texi: Update.
24508         * doc/functions/snprintf.texi: Update.
24509         * doc/functions/sprintf.texi: Update.
24510         * doc/functions/vfprintf.texi: Update.
24511         * doc/functions/vprintf.texi: Update.
24512         * doc/functions/vsnprintf.texi: Update.
24513         * doc/functions/vsprintf.texi: Update.
24514
24515 2007-05-01  Bruno Haible  <bruno@clisp.org>
24516
24517         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
24518
24519 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
24520
24521         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
24522         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
24523
24524 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
24525
24526         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
24527         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
24528         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
24529
24530 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
24531
24532         * lib/argp-help.c (struct hol_entry): New member `ord'.
24533         (HOL_ENTRY_PTRCMP): Use ord for comparison
24534         (hol_sort): Initialize ord.
24535
24536 2007-05-01  Bruno Haible  <bruno@clisp.org>
24537
24538         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
24539         Reported by Eric Blake.
24540         * doc/gnulib.texi (Function Substitutes): Update.
24541
24542 2007-05-01  Bruno Haible  <bruno@clisp.org>
24543
24544         * doc/functions.texi: Remove file, now redundant through
24545         doc/functions/*.texi.
24546
24547 2007-05-01  Bruno Haible  <bruno@clisp.org>
24548
24549         * modules/argp (Depends-on): Add sleep.
24550
24551 2007-05-01  Bruno Haible  <bruno@clisp.org>
24552
24553         * modules/sleep-tests: New file.
24554         * tests/test-sleep.c: New file.
24555
24556         * modules/sleep: New file.
24557         * lib/sleep.c: New file.
24558         * m4/sleep.m4: New file.
24559         * lib/unistd_.h (sleep): New declaration.
24560         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
24561         HAVE_SLEEP.
24562         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
24563         * doc/functions/sleep.texi: Document the sleep module.
24564
24565 2007-05-01  Bruno Haible  <bruno@clisp.org>
24566
24567         * lib/sigprocmask.h: Remove file.
24568         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
24569         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
24570         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
24571         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
24572         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
24573         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
24574         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
24575         HAVE_SIGSET_T as a shell variable.
24576         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
24577         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
24578         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
24579         (Depends-on): Add signal. Remove verify.
24580         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
24581         (Include): Mention <signal.h> instead of sigprocmask.h.
24582         * NEWS: Mention the change.
24583         * lib/fatal-signal.c: Don't include sigprocmask.h.
24584
24585 2007-05-01  Bruno Haible  <bruno@clisp.org>
24586
24587         * modules/signal: New file.
24588         * lib/signal_.h: New file.
24589         * m4/signal_h.m4: New file.
24590
24591 2007-05-01  Bruno Haible  <bruno@clisp.org>
24592
24593         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
24594         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
24595         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
24596         HAVE_WCTYPE_CTMP_BUG into wctype.h.
24597
24598 2007-05-01  Bruno Haible  <bruno@clisp.org>
24599
24600         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
24601         configure time.
24602         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
24603         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
24604         * modules/sys_stat (Makefile.am): Substitute their values into
24605         sys/stat.h.
24606
24607 2007-05-01  Bruno Haible  <bruno@clisp.org>
24608
24609         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
24610         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
24611         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
24612
24613 2007-05-01  Bruno Haible  <bruno@clisp.org>
24614
24615         * doc/header/assert.texi: Undo last change: don't mention the gnulib
24616         'assert' module here.
24617
24618 2007-05-01  Bruno Haible  <bruno@clisp.org>
24619
24620         * doc/functions/*.texi: New files.
24621         * doc/functions/google-ranking.txt: New file.
24622         * doc/gnulib.texi (Function Substitutes): New chapter.
24623         (ctime, inet_ntoa): Remove sections.
24624         * doc/ctime.texi: Remove file.
24625         * doc/inet_ntoa.texi: Remove file.
24626         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
24627         dependencies.
24628         (%.info): New rule, specifying a --reference-limit.
24629
24630 2007-05-01  Bruno Haible  <bruno@clisp.org>
24631
24632         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
24633
24634 2007-05-01  Bruno Haible  <bruno@clisp.org>
24635
24636         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
24637         the portability of 'mkdir' to mingw systems.
24638
24639 2007-05-01  Bruno Haible  <bruno@clisp.org>
24640
24641         * doc/headers/google-ranking.txt: New file.
24642
24643 2007-04-30  Eric Blake  <ebb9@byu.net>
24644
24645         Prefer fseeko to fseek.
24646         * modules/getpass (Depends-on): Add fseeko.
24647         * lib/getpass.c (getpass): Use fseeko, not fseek.
24648
24649 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
24650
24651         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
24652         assumes the sorting is stable, while most qsort implementations
24653         are not.  Use argument addresses to ensure they never compare as
24654         equal.
24655
24656         * tests/test-argp-2.sh (usage-indent test): Fix output
24657         (func_compare): Restore diff options
24658         * tests/test-argp.c: Restore #include "progname.h"
24659
24660 2007-04-29  Bruno Haible  <bruno@clisp.org>
24661
24662         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
24663         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24664         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
24665         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24666         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
24667         (configure.ac): Define CHECK_SNPRINTF_POSIX.
24668         (TESTS, check_PROGRAMS): Add test-snprintf.
24669         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
24670         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
24671         (TESTS, check_PROGRAMS): Add test-vsnprintf.
24672         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
24673         assertions that fail on HP-UX, OSF/1, or IRIX.
24674         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
24675
24676 2007-04-29  Bruno Haible  <bruno@clisp.org>
24677
24678         * MODULES.html.sh (posix_functions): Remove 'contents'.
24679
24680 2007-04-29  Karl Berry  <karl@gnu.org>
24681
24682         * config/srclist.txt (gendocs_template_min): new entry.
24683
24684 2007-04-29  Bruno Haible  <bruno@clisp.org>
24685
24686         Work around fpurge bug on BSD systems.
24687         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
24688         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
24689         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
24690         fpurge to rpl_fpurge if the system already has this function.
24691         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
24692         the case where the system already has this function. Correct invariants
24693         on BSD systems.
24694         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
24695         BSD systems.
24696
24697 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
24698
24699         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
24700         proposed by Sven Verdoolaege.
24701
24702         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
24703         options.
24704         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
24705         (usage and help tests): Update
24706
24707 2007-04-29  Bruno Haible  <bruno@clisp.org>
24708
24709         * tests/test-fflush.c (main): Use a file of size 17, not 10.
24710         Print more information in case of failure. Disable a test on BeOS.
24711
24712 2007-04-29  Bruno Haible  <bruno@clisp.org>
24713
24714         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
24715         This helps debugging on systems on which no gdb is available.
24716
24717 2007-04-29  Bruno Haible  <bruno@clisp.org>
24718
24719         * lib/freading.h: Improve comments.
24720         * lib/fwriting.h: Likewise.
24721         * tests/test-freading.c (main): Don't check freading immediately after
24722         repositioning. Needed for glibc.
24723
24724 2007-04-29  Bruno Haible  <bruno@clisp.org>
24725
24726         * lib/freading.c (freading): Trivial simplification.
24727
24728 2007-04-28  Bruno Haible  <bruno@clisp.org>
24729
24730         * tests/test-fwriting.c (main): Also test the interaction between
24731         fflush and fwriting.
24732         * modules/fwriting-tests (Depends-on): Add fflush.
24733
24734         * tests/test-freading.c (main): Also test the interaction between
24735         fflush and freading.
24736         * modules/freading-tests (Depends-on): Add fflush.
24737
24738 2007-04-28  Bruno Haible  <bruno@clisp.org>
24739
24740         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
24741         fseeko and ftello.
24742         Suggested by Eric Blake.
24743
24744 2007-04-28  Jim Meyering  <jim@meyering.net>
24745
24746         Avoid false-negative in gl_STDINT_H's C99 conformance test.
24747         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
24748         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
24749
24750 2007-04-27  Eric Blake  <ebb9@byu.net>
24751
24752         * doc/headers/assert.texi (assert.h): Document assert module use.
24753
24754 2007-04-27  Bruno Haible  <bruno@clisp.org>
24755
24756         * doc/headers/*.texi: New files.
24757         * doc/gnulib.texi (Header File Substitutes): New chapter.
24758         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
24759         dependencies.
24760         (standards.info ,standards.html, standards.dvi): Update dependencies.
24761         (mostlyclean, clean): New targets.
24762
24763 2007-04-27  Bruno Haible  <bruno@clisp.org>
24764
24765         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
24766         * modules/sysexits (Files, Makefile.am): Update.
24767
24768         * lib/sys_socket_.h: Renamed from lib/socket_.h.
24769         * modules/sys_socket (Files, Makefile.am): Update.
24770
24771         * lib/sys_stat_.h: Renamed from lib/stat_.h.
24772         * modules/sys_stat (Files, Makefile.am): Update.
24773
24774 2007-04-27  Eric Blake  <ebb9@byu.net>
24775
24776         * lib/freading.h: Improve comments.
24777         * lib/fwriting.h: Likewise.
24778         * lib/fflush.c: Likewise.
24779
24780         Fix closein for mingw.
24781         * modules/closein-tests: Add tests for closein.
24782         * tests/test-closein.c: New file.
24783         * tests/test-closein.sh: Likewise.
24784         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
24785         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
24786
24787 2007-04-27  Bruno Haible  <bruno@clisp.org>
24788
24789         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
24790         version is < 6.
24791         * lib/math_.h [__DECC]: Likewise.
24792         * lib/stdio_.h [__DECC]: Likewise.
24793         * lib/stdlib_.h [__DECC]: Likewise.
24794         * lib/string_.h [__DECC]: Likewise.
24795         * lib/time_.h [__DECC]: Likewise.
24796         * lib/wchar_.h [__DECC]: Likewise.
24797         * lib/wctype_.h [__DECC]: Likewise.
24798
24799 2007-04-27  Bruno Haible  <bruno@clisp.org>
24800
24801         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
24802
24803 2007-04-27  Bruno Haible  <bruno@clisp.org>
24804
24805         * lib/fflush.c: Add comments.
24806         * modules/fpurge-tests (Depends-on): Add fflush.
24807         * modules/freadable-tests (Depends-on): Likewise.
24808         * modules/fwritable-tests (Depends-on): Likewise.
24809
24810 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
24811
24812         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
24813         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
24814         Report by Bruno Haible <bruno@clisp.org>.
24815
24816 2007-04-26  Eric Blake  <ebb9@byu.net>
24817
24818         Fix fflush on mingw.
24819         * modules/fflush (Depends-on): Add freading.
24820         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
24821         but unread data.
24822
24823 2007-04-26  Eric Blake  <ebb9@byu.net>
24824         and Bruno Haible  <bruno@clisp.org>
24825
24826         Implement freading and fwriting.
24827         * lib/freading.c: New file.
24828         * lib/freading.h: Likewise.
24829         * m4/freading.m4: Likewise.
24830         * modules/freading: Likewise.
24831         * modules/freading-tests: Likewise.
24832         * tests/test-freading.c: Likewise.
24833         * lib/fwriting.c: New file.
24834         * lib/fwriting.h: Likewise.
24835         * m4/fwriting.m4: Likewise.
24836         * modules/fwriting: Likewise.
24837         * modules/fwriting-tests: Likewise.
24838         * tests/test-fwriting.c: Likewise.
24839         * MODULES.html.sh (File stream based Input/Output): Mention them.
24840
24841 2007-04-26  Bruno Haible  <bruno@clisp.org>
24842
24843         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
24844         'long' when we assume it.
24845         Suggested by Eric Blake.
24846
24847 2007-04-26  Bruno Haible  <bruno@clisp.org>
24848
24849         Ensure fseeko, ftello are declared on glibc systems.
24850         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
24851         * modules/fseeko (configure.ac-early): Likewise.
24852         * modules/ftello (configure.ac-early): Likewise.
24853         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
24854         AC_FUNC_FSEEKO for this.
24855         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
24856         (gl_CHECK_FSEEKO): Remove macro.
24857
24858 2007-04-26  Bruno Haible  <bruno@clisp.org>
24859
24860         * tests/test-fflush.c (main): Also check the ftell result after
24861         fflush and fseek/fseeko.
24862         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
24863         file descriptor position cache in the stream.
24864         * lib/fseeko.c (rpl_fseeko): Likewise.
24865
24866 2007-04-26  Bruno Haible  <bruno@clisp.org>
24867
24868         * modules/fflush-tests (Depends-on): Add fseeko.
24869
24870 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
24871             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24872
24873         * lib/argz_.h: ensure error_t definition is obtained in same
24874         mechanism system argz.h would have.
24875         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
24876         argz facilities are known bad.  Err on the side of caution if
24877         cross-compiling.
24878
24879 2007-04-25  Eric Blake  <ebb9@byu.net>
24880
24881         * lib/fpurge.c (includes): Use stdlib.h for free.
24882         * tests/test-fflush.c (main): Also test fflush-fseeko.
24883
24884 2007-04-25  Bruno Haible  <bruno@clisp.org>
24885
24886         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
24887         * lib/fseeko.c: New file.
24888         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
24889         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
24890         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
24891         gl_FUNC_FSEEKO.
24892         (gl_FUNC_FSEEKO): Invoke it.
24893         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
24894         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
24895         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
24896
24897 2007-04-25  Bruno Haible  <bruno@clisp.org>
24898
24899         * modules/fflush (Depends-on): Add ftello.
24900
24901 2007-04-25  Bruno Haible  <bruno@clisp.org>
24902
24903         * modules/ftello-tests: New file.
24904         * tests/test-ftello.c: New file.
24905
24906         * modules/ftello: New file.
24907         * m4/ftello.m4: New file.
24908         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
24909         HAVE_FTELLO.
24910         * lib/stdio_.h (ftello): New declaration.
24911         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
24912         HAVE_FTELLO.
24913
24914 2007-04-25  Bruno Haible  <bruno@clisp.org>
24915
24916         * modules/fseeko-tests: New file.
24917         * tests/test-fseeko.c: New file.
24918
24919         * modules/fseeko: New file.
24920         * m4/fseeko.m4: New file.
24921         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
24922         HAVE_FSEEKO.
24923         * lib/stdio_.h (fseeko): New declaration.
24924         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
24925         HAVE_FSEEKO.
24926
24927 2007-04-25  Bruno Haible  <bruno@clisp.org>
24928
24929         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
24930
24931 2007-04-25  Bruno Haible  <bruno@clisp.org>
24932
24933         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
24934         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
24935         * tests/test-unistd.c: Likewise.
24936         * tests/test-fcntl.c: Likewise.
24937
24938 2007-04-23  Eric Blake  <ebb9@byu.net>
24939
24940         * lib/fflush.c: Fix missing include.
24941         Reported by Bruno Haible.
24942
24943 2007-04-23  Bruno Haible  <bruno@clisp.org>
24944
24945         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
24946         Reported by Eric Blake.
24947
24948 2007-04-23  Bruno Haible  <bruno@clisp.org>
24949
24950         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
24951
24952 2007-04-23  Bruno Haible  <bruno@clisp.org>
24953
24954         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
24955
24956 2007-04-23  Bruno Haible  <bruno@clisp.org>
24957
24958         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
24959         Needed on HP-UX 11.
24960
24961 2007-04-16  Eric Blake  <ebb9@byu.net>
24962
24963         Make fflush rely on fpurge.
24964         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
24965         open coding all variants.
24966         * modules/fflush (Depends-on): Add fpurge and unistd.
24967         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
24968         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
24969
24970         Fix --with-tests compilation on cygwin.
24971         * modules/argmatch-tests (Makefile.am): List gnulib library first
24972         in LDADD.
24973         * modules/argp-tests (Makefile.am): Likewise.
24974         * modules/array-list-tests (Makefile.am): Likewise.
24975         * modules/array-oset-tests (Makefile.am): Likewise.
24976         * modules/avltree-list-tests (Makefile.am): Likewise.
24977         * modules/avltree-oset-tests (Makefile.am): Likewise.
24978         * modules/avltreehash-list-tests (Makefile.am): Likewise.
24979         * modules/carray-list-tests (Makefile.am): Likewise.
24980         * modules/dirname-tests (Makefile.am): Likewise.
24981         * modules/frexp-tests (Makefile.am): Likewise.
24982         * modules/isnanl-tests (Makefile.am): Likewise.
24983         * modules/linked-list-tests (Makefile.am): Likewise.
24984         * modules/linkedhash-list-tests (Makefile.am): Likewise.
24985         * modules/lock-tests (Makefile.am): Likewise.
24986         * modules/rbtree-list-tests (Makefile.am): Likewise.
24987         * modules/rbtree-oset-tests (Makefile.am): Likewise.
24988         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
24989         * modules/tls-tests (Makefile.am): Likewise.
24990         * modules/tsearch-tests (Makefile.am): Likewise.
24991         * modules/xvasprintf-tests (Makefile.am): Likewise.
24992
24993         Fix fpurge for cygwin.
24994         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
24995         value.
24996         * modules/fpurge-tests (Depends-on): Clean up trash.
24997
24998 2007-04-16  Simon Josefsson  <simon@josefsson.org>
24999
25000         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
25001
25002         * m4/autobuild.m4: Re-indent.
25003
25004 2007-04-13  Bruno Haible  <bruno@clisp.org>
25005
25006         * modules/fpurge-tests: New file.
25007         * tests/test-fpurge.c: New file.
25008
25009         * modules/fpurge: New file.
25010         * lib/fpurge.h: New file.
25011         * lib/fpurge.c: New file.
25012         * m4/fpurge.m4: New file.
25013
25014 2007-04-13  Bruno Haible  <bruno@clisp.org>
25015
25016         * modules/fbufmode-tests: New file.
25017         * tests/test-fbufmode.c: New file.
25018
25019         * modules/fbufmode: New file.
25020         * lib/fbufmode.h: New file.
25021         * lib/fbufmode.c: New file.
25022         * m4/fbufmode.m4: New file.
25023
25024 2007-04-13  Bruno Haible  <bruno@clisp.org>
25025
25026         * modules/fwritable-tests: New file.
25027         * tests/test-fwritable.c: New file.
25028
25029         * modules/fwritable: New file.
25030         * lib/fwritable.h: New file.
25031         * lib/fwritable.c: New file.
25032         * m4/fwritable.m4: New file.
25033
25034 2007-04-13  Bruno Haible  <bruno@clisp.org>
25035
25036         * modules/freadable-tests: New file.
25037         * tests/test-freadable.c: New file.
25038
25039         * modules/freadable: New file.
25040         * lib/freadable.h: New file.
25041         * lib/freadable.c: New file.
25042         * m4/freadable.m4: New file.
25043
25044 2007-04-13  Bruno Haible  <bruno@clisp.org>
25045
25046         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
25047         MOSTLYCLEANFILES.
25048
25049 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
25050
25051         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
25052         gzip bootstrap.conf to avoid dragging in i18n machinery.
25053         (gnulib_tool_option): Use it.
25054
25055 2007-04-13  Bruno Haible  <bruno@clisp.org>
25056
25057         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
25058         %F directives.
25059         * tests/test-vasprintf-posix.c (test_function): Likewise.
25060         * tests/test-snprintf-posix.h (test_function): Likewise.
25061         * tests/test-sprintf-posix.h (test_function): Likewise.
25062         * tests/test-fprintf-posix.h (test_function): Likewise.
25063         * tests/test-printf-posix.h (test_function): Likewise.
25064         * tests/test-fprintf-posix.out: Likewise.
25065
25066 2007-04-13  Bruno Haible  <bruno@clisp.org>
25067
25068         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
25069         * modules/tls-tests (configure.ac): Likewise.
25070         Reported by Arto C. Nirkko <anirkko@insel.ch>.
25071
25072 2007-04-13  Bruno Haible  <bruno@clisp.org>
25073
25074         * lib/tls.c (glthread_tls_get): Fix return type.
25075         Patch by Arto C. Nirkko <anirkko@insel.ch>.
25076
25077 2007-04-12  Eric Blake  <ebb9@byu.net>
25078
25079         * modules/gettime (Depends-on): Remove gettime.
25080         Reported by Dmitry V. Levin.
25081
25082 2007-04-12  Bruno Haible  <bruno@clisp.org>
25083
25084         * modules/fflush (Include): Mention <stdio.h>.
25085         * modules/strtoimax (Include): Mention <inttypes.h>.
25086         * modules/strtoumax (Include): Likewise.
25087
25088 2007-04-12  Eric Blake  <ebb9@byu.net>
25089
25090         * .cvsignore: New file.
25091         * .gitignore: Likewise.
25092
25093 2007-04-12  Bruno Haible  <bruno@clisp.org>
25094
25095         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
25096         not before, since $(LDADD) often contains libgnu.a.
25097         * modules/striconv-tests (test_striconv_LDADD): Likewise.
25098         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
25099         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
25100         Needed on Cygwin.
25101
25102 2007-04-12  Eric Blake  <ebb9@byu.net>
25103
25104         Work around glibc's failure to flush stdin on fclose.
25105         * lib/closein.c (close_stdin): Flush stdin before closing.
25106
25107         Work around glibc's failure to reset seekable stdin on exit.
25108         * modules/closein: New module.
25109         * lib/closein.c: New file.
25110         * lib/closein.h: Likewise.
25111         * m4/closein.m4: Likewise.
25112         * MODULES.html.sh (File stream based Input/Output): Document it.
25113
25114 2007-04-12  Simon Josefsson  <simon@josefsson.org>
25115
25116         * gnulib-tool: Rename generated 'autobuild' script to
25117         'do-autobuild' in --create-megatestdir output.
25118
25119         * doc/gnulib.texi (Build robot for gnulib): Fix.
25120
25121 2007-04-12  Simon Josefsson  <simon@josefsson.org>
25122
25123         * modules/sysexits (Depends-on): Add absolute-header.
25124
25125 2007-04-12  Eric Blake  <ebb9@byu.net>
25126
25127         No need to preserve errno on success.
25128         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
25129         Reported by Bruno Haible.
25130
25131 2007-04-12  Simon Josefsson  <simon@josefsson.org>
25132
25133         * MODULES.html.sh (Support for maintaining and releasing
25134         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
25135
25136 2007-04-12  Simon Josefsson  <simon@josefsson.org>
25137
25138         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
25139
25140 2007-04-12  Simon Josefsson  <simon@josefsson.org>
25141
25142         * modules/autobuild: New module.
25143
25144         * m4/autobuild.m4: New file.
25145
25146 2007-04-11  Bruno Haible  <bruno@clisp.org>
25147
25148         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
25149         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
25150         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
25151         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
25152         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25153         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
25154         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
25155         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25156         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
25157         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
25158         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
25159         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
25160         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
25161         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
25162         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
25163         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
25164         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
25165         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
25166         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
25167         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
25168         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
25169         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
25170         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
25171         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
25172         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
25173         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
25174         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
25175         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
25176         Reported by Eric Blake.
25177
25178 2007-04-11  Bruno Haible  <bruno@clisp.org>
25179
25180         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
25181
25182 2007-04-10  Bruno Haible  <bruno@clisp.org>
25183
25184         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
25185         for NaN and Infinity. Needed on FreeBSD 6.1.
25186         * tests/test-vasnprintf-posix.c (test_function): Undo last change
25187         regarding results for "%010a" of Infinity and NaN.
25188         * tests/test-vasprintf-posix.c (test_function): Likewise.
25189         * tests/test-snprintf-posix.h (test_function): Likewise.
25190         * tests/test-sprintf-posix.h (test_function): Likewise.
25191         * tests/test-fprintf-posix.h (test_function): Likewise.
25192         * tests/test-printf-posix.h (test_function): Likewise.
25193         * tests/test-fprintf-posix.out: Likewise.
25194
25195 2007-04-10  Bruno Haible  <bruno@clisp.org>
25196
25197         * modules/locale-tests: New file.
25198         * tests/test-locale.c: New file.
25199
25200         * modules/locale: New file.
25201         * lib/locale_.h: New file.
25202         * m4/locale_h.m4: New file.
25203
25204 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
25205             Bruno Haible  <bruno@clisp.org>
25206
25207         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
25208         be determined, test for availability of the copysignf, copysign,
25209         copysignl functions.
25210         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
25211         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
25212         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
25213
25214 2007-04-09  Eric Blake  <ebb9@byu.net>
25215
25216         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
25217         * modules/stdio (Makefile.am): Support fflush.
25218         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25219         * modules/fflush: New file.
25220         * lib/fflush.c: Likewise.
25221         * m4/fflush.m4: Likewise.
25222         * modules/fflush-tests: New test.
25223         * tests/test-fflush.c: Likewise.
25224         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
25225
25226 2007-04-06  Bruno Haible  <bruno@clisp.org>
25227
25228         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
25229         (VASNPRINTF): Use signbit for faster determination whether to print a
25230         minus sign.
25231         * modules/vasnprintf (Files): Remove lib/float+.h.
25232         * modules/fprintf-posix (Depends-on): Add signbit.
25233         * modules/snprintf-posix (Depends-on): Likewise.
25234         * modules/sprintf-posix (Depends-on): Likewise.
25235         * modules/vasnprintf-posix (Depends-on): Likewise.
25236         * modules/vasprintf-posix (Depends-on): Likewise.
25237         * modules/vfprintf-posix (Depends-on): Likewise.
25238         * modules/vsnprintf-posix (Depends-on): Likewise.
25239         * modules/vsprintf-posix (Depends-on): Likewise.
25240
25241 2007-04-06  Bruno Haible  <bruno@clisp.org>
25242
25243         * tests/test-frexp.c (main): Test also the sign bit of zero results.
25244         * tests/test-frexpl.c (main): Likewise.
25245         * tests/test-ldexpl.c (main): Likewise.
25246         * modules/frexp-tests (Depends-on): Add signbit.
25247         * modules/frexpl-tests (Depdends-on): Likewise.
25248         * modules/ldexpl-tests (Depdends-on): Likewise.
25249
25250 2007-04-06  Bruno Haible  <bruno@clisp.org>
25251
25252         * modules/signbit-tests: New file.
25253         * tests/test-signbit.c: New file.
25254
25255         * modules/signbit: New file.
25256         * lib/signbitf.c: New file.
25257         * lib/signbitd.c: New file.
25258         * lib/signbitl.c: New file.
25259         * m4/signbit.m4: New file.
25260         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
25261         (signbit): New macro.
25262         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
25263         REPLACE_SIGNBIT.
25264         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
25265         REPLACE_FREXPL into math.h.
25266
25267 2007-04-06  Bruno Haible  <bruno@clisp.org>
25268
25269         * modules/isnanf-nolibm-tests: New file.
25270         * tests/test-isnanf.c: New file.
25271
25272         * modules/isnanf-nolibm: New file.
25273         * lib/isnanf.h: New file.
25274         * lib/isnanf.c: New file.
25275         * lib/isnan.c: Consider the USE_FLOAT macro.
25276         * m4/isnanf.m4: New file.
25277
25278 2007-04-06  Bruno Haible  <bruno@clisp.org>
25279
25280         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
25281         (Link): New section.
25282
25283         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
25284
25285 2007-04-06  Bruno Haible  <bruno@clisp.org>
25286
25287         Assume the 'long double' type.
25288         * m4/longdouble.m4: Remove file.
25289         * config/srclist.txt: Don't mention longdouble.m4.
25290         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
25291         * lib/float+.h: Likewise.
25292         * lib/frexp.c: Likewise.
25293         * lib/printf-args.h: Likewise.
25294         * lib/printf-args.c: Likewise.
25295         * lib/printf-frexp.c: Likewise.
25296         * lib/printf-parse.c: Likewise.
25297         * lib/vasnprintf.c: Likewise.
25298         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
25299         * m4/intl.m4: Likewise.
25300         * m4/isnanl.m4: Likewise.
25301         * m4/printf.m4: Likewise.
25302         * m4/printf-frexpl.m4: Likewise.
25303         * m4/vasnprintf.m4: Likewise.
25304         * modules/allocsa (Files): Remove m4/longdouble.m4.
25305         * modules/gettext (Files): Likewise.
25306         * modules/relocatable-prog-wrapper (Files): Likewise.
25307         * modules/vasnprintf (Files): Likewise.
25308         * modules/isnanl (Files): Likewise.
25309         (Include): Simplify.
25310         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
25311         (Include): Simplify.
25312         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
25313         (Include): Simplify.
25314         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
25315         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
25316         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
25317         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
25318         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
25319         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
25320         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
25321         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
25322         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
25323         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
25324         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
25325         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
25326         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
25327         * tests/test-isnanl.c: Likewise.
25328         * tests/test-snprintf-posix.h: Likewise.
25329         * tests/test-sprintf-posix.h: Likewise.
25330         * tests/test-vasnprintf-posix.c: Likewise.
25331         * tests/test-vasnprintf-posix2.c: Likewise.
25332         * tests/test-vasprintf-posix.c: Likewise.
25333
25334 2007-04-06  Bruno Haible  <bruno@clisp.org>
25335
25336         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
25337         * lib/math_.h [__DECC]: Include the overridden include file through
25338         #include_next, outside the double-inclusion guard.
25339         * lib/stdio_.h [__DECC]: Likewise.
25340         * lib/stdlib_.h [__DECC]: Likewise.
25341         * lib/string_.h [__DECC]: Likewise.
25342         * lib/time_.h [__DECC]: Likewise.
25343         * lib/wchar_.h [__DECC]: Likewise.
25344         * lib/wctype_.h [__DECC]: Likewise.
25345         * lib/inttypes_.h [__DECC]: Likewise.
25346         Reported by Albert Chin <china@thewrittenword.com> in
25347         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
25348
25349 2007-04-04  Eric Blake  <ebb9@byu.net>
25350
25351         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
25352         1.5.x.
25353
25354 2007-04-04  Bruno Haible  <bruno@clisp.org>
25355
25356         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
25357         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
25358
25359 2007-04-04  Bruno Haible  <bruno@clisp.org>
25360
25361         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
25362         results for "%010a" of Infinity and NaN.
25363         * tests/test-vasprintf-posix.c (test_function): Likewise.
25364         * tests/test-snprintf-posix.h (test_function): Likewise.
25365         * tests/test-sprintf-posix.h (test_function): Likewise.
25366         * tests/test-fprintf-posix.h (test_function): Remove these tests.
25367         * tests/test-printf-posix.h (test_function): Likewise.
25368         * tests/test-fprintf-posix.out: Update.
25369         Needed for FreeBSD 6.1.
25370
25371 2007-04-04  Bruno Haible  <bruno@clisp.org>
25372
25373         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
25374         directly used by the gnulib modules nor by gnulib-tool.
25375
25376 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
25377
25378         * DEPENDENCIES: Give overall description of version dependency
25379         desirability.  Use more-typical names for apps.
25380         Add shell, coreutils, diffutils, grep, tar, gzip.
25381
25382 2007-04-04  Simon Josefsson  <simon@josefsson.org>
25383
25384         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
25385
25386 2007-04-04  Karl Berry  <karl@gnu.org>
25387
25388         * MODULES.html.sh (func_module): missing '.
25389
25390 2007-04-03  Bruno Haible  <bruno@clisp.org>
25391
25392         * modules/argmatch-tests (Makefile.am): New variable
25393         test_argmatch_LDADD.
25394         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
25395         * modules/array-list-tests (Makefile.am): New variable
25396         test_array_list_LDADD.
25397         * modules/array-oset-tests (Makefile.am): New variable
25398         test_array_oset_LDADD.
25399         * modules/avltree-list-tests (Makefile.am): New variable
25400         test_avltree_list_LDADD.
25401         * modules/avltree-oset-tests (Makefile.am): New variable
25402         test_avltree_oset_LDADD.
25403         * modules/avltreehash-list-tests (Makefile.am): New variable
25404         test_avltreehash_list_LDADD.
25405         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
25406         test_canonicalize_lgpl_LDADD.
25407         * modules/carray-list-tests (Makefile.am): New variable
25408         test_carray_list_LDADD.
25409         * modules/dirname-tests (Makefile.am): New variable
25410         test_dirname_LDADD.
25411         * modules/linked-list-tests (Makefile.am): New variable
25412         test_linked_list_LDADD.
25413         * modules/linkedhash-list-tests (Makefile.am): New variable
25414         test_linkedhash_list_LDADD.
25415         * modules/rbtree-list-tests (Makefile.am): New variable
25416         test_rbtree_list_LDADD.
25417         * modules/rbtree-oset-tests (Makefile.am): New variable
25418         test_rbtree_oset_LDADD.
25419         * modules/rbtreehash-list-tests (Makefile.am): New variable
25420         test_rbtreehash_list_LDADD.
25421         * modules/xvasprintf-tests (Makefile.am): New variable
25422         test_xvasprintf_LDADD.
25423         Reported by Eric Blake.
25424
25425 2007-04-03  Eric Blake  <ebb9@byu.net>
25426
25427         * DEPENDENCIES: Weaken m4 requirements.
25428
25429 2007-04-03  Bruno Haible  <bruno@clisp.org>
25430
25431         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
25432         * modules/isnanl-tests (configure.ac): Likewise.
25433
25434 2007-04-03  Ben Pfaff  <blp@gnu.org>
25435
25436         * modules/iconv_open: Add $(srcdir)/ to source directory
25437         references in Makefile fragments that call gperf, to fix VPATH
25438         builds.
25439
25440 2007-04-03  Bruno Haible  <bruno@clisp.org>
25441
25442         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
25443         * lib/ldexpl.c: Undo last change.
25444
25445 2007-04-03  Bruno Haible  <bruno@clisp.org>
25446
25447         * modules/printf-frexpl (Depends-on): Undo last change.
25448         (Files): Add m4/ldexpl.m4.
25449
25450 2007-04-03  Bruno Haible  <bruno@clisp.org>
25451
25452         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
25453         * modules/isnanl (Link): New section.
25454
25455         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
25456         * modules/frexp (Link): New section.
25457
25458         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
25459         * modules/frexpl (Link): New section.
25460
25461         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
25462         * modules/ldexpl (Link): New section.
25463
25464 2007-04-03  Bruno Haible  <bruno@clisp.org>
25465
25466         * modules/TEMPLATE-EXTENDED: New file.
25467         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
25468
25469 2007-04-03  Bruno Haible  <bruno@clisp.org>
25470
25471         * DEPENDENCIES: New file.
25472         Suggested by Simon Josefsson.
25473
25474 2007-04-03  Bruno Haible  <bruno@clisp.org>
25475
25476         * doc/gnulib.texi: Escape @.
25477
25478 2007-04-03  James Youngman  <jay@gnu.org>
25479         and Paul Eggert  <eggert@cs.ucla.edu>
25480
25481         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
25482         birthtime on all systems that have birthtime, not just those which
25483         use st_birthtimensec rather than st_birthtim.  Putting zero in
25484         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
25485         that the birth time is not available for files on an NFS mount.
25486
25487 2007-04-03  Simon Josefsson  <simon@josefsson.org>
25488
25489         * modules/memxor: Move back from crypto/, suggested by Bruno.
25490         * modules/crypto/hmac-sha1: Fix memxor dependency.
25491
25492         * modules/crypto/gc: Moved from ../.
25493
25494 2007-04-02  Eric Blake  <ebb9@byu.net>
25495
25496         * lib/ldexpl.c (includes): Avoid libm.
25497
25498         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
25499
25500 2007-04-02  Bruno Haible  <bruno@clisp.org>
25501
25502         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
25503         on IRIX.
25504
25505 2007-04-02  Bruno Haible  <bruno@clisp.org>
25506
25507         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
25508         x86 or x86_64 platforms running MacOS X.
25509         Reported by Ryan Schmidt <@ryandesign.com>.
25510
25511 2007-04-02  Bruno Haible  <bruno@clisp.org>
25512
25513         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
25514         i386.
25515
25516 2007-04-01  Simon Josefsson  <simon@josefsson.org>
25517
25518         * modules/crypto/arcfour: Moved from ../.
25519         * modules/crypto/arcfour-tests: Moved from ../.
25520         * modules/crypto/arctwo: Moved from ../.
25521         * modules/crypto/arctwo-tests: Moved from ../.
25522         * modules/crypto/des: Moved from ../.
25523         * modules/crypto/des-tests: Moved from ../.
25524         * modules/crypto/gc-arcfour: Moved from ../.
25525         * modules/crypto/gc-arcfour-tests: Moved from ../.
25526         * modules/crypto/gc-arctwo: Moved from ../.
25527         * modules/crypto/gc-arctwo-tests: Moved from ../.
25528         * modules/crypto/gc-des: Moved from ../.
25529         * modules/crypto/gc-des-tests: Moved from ../.
25530         * modules/crypto/gc-hmac-md5: Moved from ../.
25531         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
25532         * modules/crypto/gc-hmac-sha1: Moved from ../.
25533         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
25534         * modules/crypto/gc-md2: Moved from ../.
25535         * modules/crypto/gc-md2-tests: Moved from ../.
25536         * modules/crypto/gc-md4: Moved from ../.
25537         * modules/crypto/gc-md4-tests: Moved from ../.
25538         * modules/crypto/gc-md5: Moved from ../.
25539         * modules/crypto/gc-md5-tests: Moved from ../.
25540         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
25541         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
25542         * modules/crypto/gc-random: Moved from ../.
25543         * modules/crypto/gc-rijndael: Moved from ../.
25544         * modules/crypto/gc-rijndael-tests: Moved from ../.
25545         * modules/crypto/gc-sha1: Moved from ../.
25546         * modules/crypto/gc-sha1-tests: Moved from ../.
25547         * modules/crypto/gc-tests: Moved from ../.
25548         * modules/crypto/hmac-md5: Moved from ../.
25549         * modules/crypto/hmac-md5-tests: Moved from ../.
25550         * modules/crypto/hmac-sha1: Moved from ../.
25551         * modules/crypto/hmac-sha1-tests: Moved from ../.
25552         * modules/crypto/md2: Moved from ../.
25553         * modules/crypto/md2-tests: Moved from ../.
25554         * modules/crypto/md4: Moved from ../.
25555         * modules/crypto/md4-tests: Moved from ../.
25556         * modules/crypto/md5: Moved from ../.
25557         * modules/crypto/md5-tests: Moved from ../.
25558         * modules/crypto/memxor: Moved from ../.
25559         * modules/crypto/rijndael: Moved from ../.
25560         * modules/crypto/rijndael-tests: Moved from ../.
25561         * modules/crypto/sha1: Moved from ../.
25562
25563 2007-03-30  James Youngman  <jay@gnu.org>
25564
25565         * tests/test-stat-time.c (prepare_test): use chmod() rather than
25566         rename() to change the ctime of a file (because ctime is unaffected
25567         by rename on jfs2 on AIX 5.1).
25568         (main): Start by doing cleanup, in case a previous run failed leaving
25569         test files behind.
25570
25571 2007-03-31  Bruno Haible  <bruno@clisp.org>
25572
25573         Support old proprietary implementations of iconv.
25574         * modules/iconv_open: New file.
25575         * lib/iconv_.h: New file.
25576         * m4/iconv_h.m4: New file.
25577         * lib/iconv_open.c: New file.
25578         * lib/iconv_open-aix.gperf: New file.
25579         * lib/iconv_open-hpux.gperf: New file.
25580         * lib/iconv_open-irix.gperf: New file.
25581         * lib/iconv_open-osf.gperf: New file.
25582         * m4/iconv_open.m4: New file.
25583         * modules/linebreak (Depends-on): Add iconv_open.
25584         * modules/striconv (Depends-on): Likewise.
25585         * modules/striconveh (Depends-on): Likewise.
25586         * modules/unicodeio (Depends-on): Likewise.
25587         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
25588         (iconv_t)(-1).
25589         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
25590         conversion if cd is (iconv_t)(-1).
25591         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
25592         is not possible.
25593
25594 2007-03-31  Bruno Haible  <bruno@clisp.org>
25595
25596         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
25597         work on Solaris either. Protect also second use of "autodetect_jp".
25598
25599 2007-03-31  Bruno Haible  <bruno@clisp.org>
25600
25601         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
25602         the function is not present.
25603
25604 2007-03-31  Bruno Haible  <bruno@clisp.org>
25605
25606         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
25607         the function is not present.
25608
25609 2007-03-31  Bruno Haible  <bruno@clisp.org>
25610
25611         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
25612         a bug in HP-UX iconv_open().
25613
25614 2007-03-31  Bruno Haible  <bruno@clisp.org>
25615
25616         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
25617         (Mathematics <math.h>): New section, add fpieee.
25618         (Input/output <stdio.h>): Add fseterr.
25619         (Mathematics <math.h>): New section, add printf-frexp.
25620         (Container data structures): Add sublist.
25621         (Core language properties): Add fpucw, inline.
25622         (Functions for greatest-width integer types <inttypes.h>): Add
25623         imaxabs, imaxdiv, inttypes.
25624         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
25625         isnanl-nolibm, ldexp.
25626         (Mathematics <math.h>): New section, add printf-frexpl.
25627         (Support for systems lacking POSIX:2001): Add fprintf-posix,
25628         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
25629         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
25630         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
25631         (Unicode string functions): Add unistr/u*-mbtoucr.
25632         (Java): Add javacomp-script, javaexec-script.
25633         (C#): Add csharpcomp-script, csharpexec-script.
25634         (Support for building libraries and executables): Add havelib,
25635         relocatable-*.
25636         (Support for maintaining and releasing projects): Renamed from
25637         'Support for maintaining and release projects'. Add announce-gen.
25638
25639 2007-03-31  Bruno Haible  <bruno@clisp.org>
25640
25641         * README: Talk primarily about git.
25642         (git and CVS): Renamed from CVS.
25643         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
25644         gnulib is available through git.
25645         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
25646
25647 2007-03-30  Bruno Haible  <bruno@clisp.org>
25648
25649         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
25650         * lib/poll_.h: Likewise.
25651         * lib/stat_.h: Likewise.
25652         * lib/sys_time_.h: Likewise.
25653         * lib/sysexit_.h: Likewise.
25654         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
25655         * lib/stdbool_.h: Likewise.
25656         * lib/byteswap_.h: Add double-inclusion guard.
25657
25658 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
25659
25660         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
25661
25662 2007-03-30  Karl Berry  <karl@gnu.org>
25663
25664         * config/srclist-update: double space after USA in the license
25665         substitution, since that's how it's usually (?) written.
25666
25667 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
25668
25669         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
25670         reported by Bruno Haible.
25671
25672 2007-03-29  Bruno Haible  <bruno@clisp.org>
25673
25674         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
25675         a bug in AIX iconv().
25676
25677 2007-03-29  Bruno Haible  <bruno@clisp.org>
25678
25679         * modules/ldexpl-tests: New file.
25680         * tests/test-ldexpl.c: New file.
25681
25682 2007-03-29  Bruno Haible  <bruno@clisp.org>
25683
25684         * lib/ldexpl.c: Include fpucw.h.
25685         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
25686         multiplication.
25687         * modules/ldexpl (Depends-on): Add fpucw.
25688
25689 2007-03-29  Bruno Haible  <bruno@clisp.org>
25690
25691         * modules/ldexpl: New file.
25692         * m4/ldexpl.m4: New file.
25693         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
25694         set.
25695         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
25696         REPLACE_LDEXPL.
25697         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
25698         REPLACE_LDEXPL.
25699         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
25700         gl_FUNC_LDEXPL_WORKS.
25701         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
25702         * modules/mathl (Files): Remove lib/ldexpl.c.
25703         (Depends-on): Add ldexpl.
25704
25705 2007-03-29  Bruno Haible  <bruno@clisp.org>
25706
25707         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
25708
25709 2007-03-29  Bruno Haible  <bruno@clisp.org>
25710
25711         * tests/test-striconveh.c (main): Don't assume that a direct conversion
25712         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
25713         and possibly also HP-UX.
25714         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
25715         work on AIX, IRIX, HP-UX, OSF/1.
25716         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
25717         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
25718         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
25719         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
25720         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
25721         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
25722
25723 2007-03-29  Bruno Haible  <bruno@clisp.org>
25724
25725         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
25726
25727 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
25728
25729         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
25730         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
25731
25732 2007-03-29  Eric Blake  <ebb9@byu.net>
25733
25734         * lib/acl-internal.h: Remove redundant include.
25735         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
25736         Cygwin when a file is locked.
25737
25738 2007-03-29  Bruno Haible  <bruno@clisp.org>
25739
25740         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
25741         file.
25742         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
25743
25744 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
25745
25746         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
25747         try to remove a parent directory if the child couldn't be removed
25748         (except for the first rmdir, which could fail because the child
25749         doesn't exist).  Problem reported by Jeff Blaine in
25750         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
25751
25752 2007-03-28  Bruno Haible  <bruno@clisp.org>
25753
25754         * lib/striconveh.c (utf8conv_carefully): New function.
25755         (mem_cd_iconveh_internal): Invoke it.
25756
25757 2007-03-28  Bruno Haible  <bruno@clisp.org>
25758
25759         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
25760         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
25761         input.
25762         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
25763         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
25764         unistr/u8-uctomb.
25765
25766 2007-03-28  Bruno Haible  <bruno@clisp.org>
25767
25768         * modules/unistr/u8-mbtoucr: New file.
25769         * lib/unistr/u8-mbtoucr.c: New file.
25770         * modules/unistr/u16-mbtoucr: New file.
25771         * lib/unistr/u16-mbtoucr.c: New file.
25772         * modules/unistr/u16-mbtoucr: New file.
25773         * lib/unistr/u16-mbtoucr.c: New file.
25774         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
25775
25776 2007-03-27  Simon Josefsson  <simon@josefsson.org>
25777             Bruno Haible  <bruno@clisp.org>
25778
25779         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
25780         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
25781         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
25782
25783         * m4/stdio_h.m4: Add stubs for vasprintf too.
25784
25785         * modules/stdio: Support vasprintf in sed command.
25786
25787         * modules/vasprintf: Depend on stdio for prototypes.  Remove
25788         vasprintf.h.  Add stdio module indicator.
25789
25790         * lib/stdio_.h: Declare asprintf and vasprintf, based on
25791         vasprintf.h.
25792
25793         * lib/vasprintf.h: File removed.
25794
25795         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
25796         * lib/vasprintf.c: Ditto.
25797         * lib/xvasprintf.c: Ditto.
25798         * tests/test-vasprintf-posix.c: Ditto.
25799         * tests/test-vasprintf.c: Ditto.
25800
25801 2007-03-27  Bruno Haible  <bruno@clisp.org>
25802
25803         Make vasnprintf multithread-safe.
25804         * lib/vasnprintf.c (decimal_point_char): New function.
25805         (VASNPRINTF): Use it.
25806         Suggested by Simon Josefsson.
25807
25808 2007-03-27  Eric Blake  <ebb9@byu.net>
25809
25810         Support sub-second birthtime on cygwin.
25811         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
25812         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
25813         (get_stat_birthtime): Also work with st_birthtim.
25814
25815 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
25816
25817         * lib/stat-time.h (USE_BIRTHTIME): Remove.
25818         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
25819         (get_stat_birthtime_ns): Do not try to use "spare" fields.
25820         (get_stat_birthtime_ns): Simplify compile-time tests.
25821         (get_stat_birthtime): Change the API to look like
25822         get_stat_mtime etc., except return a negative tv_nsec on error.
25823         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
25824         Don't check for "spare" fields.
25825         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
25826         or for struct stat.st_birthtime, as these tests aren't used.
25827         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
25828
25829 2007-03-27  Bruno Haible  <bruno@clisp.org>
25830
25831         * lib/stat-time.h: Include <sys/stat.h>.
25832
25833 2007-03-27  James Youngman  <jay@gnu.org>
25834
25835         * lib/stat-time.h (get_stat_birthtime): New function for
25836           retrieving st_birthtime as provided by UFS2 (hence *BSD).
25837         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
25838           and its variants.
25839         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
25840         * modules/stat-time-test: New file.
25841         * tests/test-stat-time.c: New test, devised by Bruno Haible.
25842
25843 2007-03-26  Bruno Haible  <bruno@clisp.org>
25844
25845         Better support of signalling NaNs.
25846         * lib/atanl.c: Include isnanl.h.
25847         (atanl): Perform test for NaN at the beginning of the function and
25848         through a call to isnanl.
25849         * lib/cosl.c: Include isnanl.h.
25850         (cosl): Perform test for NaN at the beginning of the function and
25851         through a call to isnanl.
25852         * lib/ldexpl.c: Include isnanl.h.
25853         (ldexpl): Perform test for NaN through a call to isnanl.
25854         * lib/logl.c: Include isnanl.h.
25855         (logl): Perform test for NaN at the beginning of the function and
25856         through a call to isnanl.
25857         * lib/sinl.c: Include isnanl.h.
25858         (sinl): Perform test for NaN at the beginning of the function and
25859         through a call to isnanl.
25860         * lib/sqrtl.c: Include isnanl.h.
25861         (sqrtl): Perform test for NaN at the beginning of the function and
25862         through a call to isnanl.
25863         * lib/tanl.c: Include isnanl.h.
25864         (tanl): Perform test for NaN at the beginning of the function and
25865         through a call to isnanl.
25866         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
25867         * modules/mathl (Depends-on): Add isnanl.
25868
25869 2007-03-26  Eric Blake  <ebb9@byu.net>
25870
25871         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
25872         regression in logic sense of previous patch.
25873
25874 2007-03-26  Bruno Haible  <bruno@clisp.org>
25875
25876         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
25877         unportable shell command "if ! ...".
25878         Reported by Ralf Wildenhues.
25879
25880 2007-03-25  Bruno Haible  <bruno@clisp.org>
25881
25882         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
25883         <sysexits.h> file, and only add EX_CONFIG.
25884         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
25885         absolute file name and whether it is sufficient. Substitute also
25886         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
25887         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
25888         ABSOLUTE_SYSEXITS_H into sysexits.h.
25889
25890 2007-03-25  Bruno Haible  <bruno@clisp.org>
25891
25892         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
25893         hints is NULL.
25894
25895 2007-03-25  Bruno Haible  <bruno@clisp.org>
25896
25897         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
25898         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
25899
25900 2007-03-25  Bruno Haible  <bruno@clisp.org>
25901
25902         * lib/vasnprintf.c: Include langinfo.h.
25903         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
25904         multithread-safe.
25905         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
25906         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
25907         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25908         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25909         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25910         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25911         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25912         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
25913         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25914         Reported by Simon Josefsson.
25915
25916 2007-03-25  Bruno Haible  <bruno@clisp.org>
25917
25918         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
25919         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
25920         * modules/vasnprintf (Depends-on): Add stdint.
25921
25922 2007-03-25  Bruno Haible  <bruno@clisp.org>
25923
25924         * modules/fpieee: New file.
25925         * m4/fpieee.m4: New file.
25926         * modules/isnan-nolibm (Depends-on): Add fpieee.
25927         * modules/isnanl-nolibm (Depends-on): Add fpieee.
25928         * modules/isnanl (Depends-on): Add fpieee.
25929
25930 2007-03-25  Bruno Haible  <bruno@clisp.org>
25931
25932         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
25933
25934 2007-03-25  Bruno Haible  <bruno@clisp.org>
25935
25936         Avoid test failures on IRIX 6.5.
25937         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
25938         (main): Use it.
25939         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
25940         macros.
25941         (main): Use them.
25942
25943 2007-03-25  Bruno Haible  <bruno@clisp.org>
25944
25945         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
25946         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
25947         exists but doesn't work.
25948         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
25949         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
25950         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
25951         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
25952
25953 2007-03-25  Bruno Haible  <bruno@clisp.org>
25954
25955         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
25956         returns inf. Needed on IRIX 6.5.
25957
25958 2007-03-25  Bruno Haible  <bruno@clisp.org>
25959
25960         * tests/test-frexpl.c: Include isnanl-nolibm.h.
25961         (main): Use isnanl instead of x != x idiom.
25962         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
25963
25964         * tests/test-frexp.c: Include isnan.h.
25965         (main): Use isnan instead of x != x idiom.
25966         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
25967
25968 2007-03-25  Bruno Haible  <bruno@clisp.org>
25969
25970         * tests/test-frexp.c (NaN): New function/macro.
25971         (main): Use it instead of 0.0 / 0.0.
25972         * tests/test-isnan.c (NaN): New function/macro.
25973         (main): Use it instead of 0.0 / 0.0.
25974         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
25975         (test_function): Use it instead of 0.0 / 0.0.
25976         * tests/test-vasprintf-posix.c (NaN): New function/macro.
25977         (test_function): Use it instead of 0.0 / 0.0.
25978         * tests/test-snprintf-posix.h (NaN): New function/macro.
25979         (test_function): Use it instead of 0.0 / 0.0.
25980         * tests/test-sprintf-posix.h (NaN): New function/macro.
25981         (test_function): Use it instead of 0.0 / 0.0.
25982         * tests/test-fprintf-posix.h (NaN): New function/macro.
25983         (test_function): Use it instead of 0.0 / 0.0.
25984         * tests/test-printf-posix.h (NaN): New function/macro.
25985         (test_function): Use it instead of 0.0 / 0.0.
25986
25987         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
25988
25989 2007-03-25  Bruno Haible  <bruno@clisp.org>
25990
25991         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
25992
25993 2007-03-25  Bruno Haible  <bruno@clisp.org>
25994
25995         * lib/regexec.c (merge_state_with_log): Make static.
25996
25997 2007-03-25  Bruno Haible  <bruno@clisp.org>
25998
25999         * lib/trigl.c (kernel_rem_pio2): Make static.
26000
26001 2007-03-25  Bruno Haible  <bruno@clisp.org>
26002
26003         * lib/sincosl.c (sincosl_table): Make static.
26004
26005 2007-03-25  Bruno Haible  <bruno@clisp.org>
26006
26007         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
26008         if the compiler does not support C99.
26009
26010 2007-03-25  Bruno Haible  <bruno@clisp.org>
26011
26012         * modules/time (Makefile.am): Ensure all rule action lines start with a
26013         tab.
26014
26015 2007-03-24  Bruno Haible  <bruno@clisp.org>
26016
26017         * modules/tsearch-tests: New file.
26018         * tests/test-tsearch.sh: New file.
26019         * tests/test-tsearch.c: New file, mostly copied from glibc.
26020
26021         * modules/search-tests: New file.
26022         * tests/test-search.c: New file.
26023
26024         * modules/search: New file.
26025         * lib/search_.h: New file, incorporating lib/tsearch.h.
26026         * m4/search_h.m4: New file.
26027         * lib/tsearch.h: Remove file.
26028         * lib/tsearch.c: Include search.h instead of tsearch.h.
26029         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
26030         HAVE_TSEARCH.
26031         * modules/tsearch (Files): Remove lib/tsearch.h.
26032         (Depends-on): Add search.
26033         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
26034         (Include): Change tsearch.h into search.h.
26035
26036 2007-03-24  Bruno Haible  <bruno@clisp.org>
26037
26038         * modules/fpucw: New file.
26039         * lib/fpucw.h: New file.
26040         * lib/frexp.c: Include fpucw.h.
26041         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
26042         (FUNC): Use them.
26043         * lib/printf-frexp.c: Include fpucw.h.
26044         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
26045         (FUNC): Use them.
26046         * lib/vasnprintf.c: Include fpucw.h.
26047         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
26048         'long double' calculations.
26049         * tests/test-frexpl.c: Include fpucw.h.
26050         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
26051         * tests/test-printf-frexpl.c: Include fpucw.h.
26052         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
26053         * modules/frexpl (Depends-on): Add fpucw.
26054         * modules/printf-frexpl (Depends-on): Likewise.
26055         * modules/fprintf-posix (Depends-on): Likewise.
26056         * modules/snprintf-posix (Depends-on): Likewise.
26057         * modules/sprintf-posix (Depends-on): Likewise.
26058         * modules/vasnprintf-posix (Depends-on): Likewise.
26059         * modules/vasprintf-posix (Depends-on): Likewise.
26060         * modules/vfprintf-posix (Depends-on): Likewise.
26061         * modules/vsnprintf-posix (Depends-on): Likewise.
26062         * modules/vsprintf-posix (Depends-on): Likewise.
26063         * modules/frexpl-tests (Depends-on): Likewise.
26064         * modules/printf-frexpl-tests (Depends-on): Likewise.
26065
26066 2007-03-24  Bruno Haible  <bruno@clisp.org>
26067
26068         * lib/float+.h: New file.
26069         * lib/isnan.c: Include float+.h.
26070         (SIZE): New macro.
26071         (FUNC): Compare only SIZE bytes of the value.
26072         * lib/vasnprintf.c: Include float+.h.
26073         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
26074         SIZEOF_LDBL or SIZEOF_DBL bytes.
26075         * modules/isnan-nolibm (Files): Add lib/float+.h.
26076         * modules/isnanl-nolibm (Files): Add lib/float+.h.
26077         * modules/isnanl (Files): Add lib/float+.h.
26078         * modules/vasnprintf (Files): Add lib/float+.h.
26079
26080 2007-03-24  Bruno Haible  <bruno@clisp.org>
26081
26082         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
26083         include isnanl-nolibm.h.
26084
26085 2007-03-24  Bruno Haible  <bruno@clisp.org>
26086
26087         * tests/test-read-file.c (main): Don't produce spurious output for
26088         expected situations. Make the test fail if it encountered unexpected
26089         results.
26090
26091 2007-03-24  Bruno Haible  <bruno@clisp.org>
26092
26093         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
26094         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
26095
26096 2007-03-24  Bruno Haible  <bruno@clisp.org>
26097
26098         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
26099
26100 2007-03-24  Bruno Haible  <bruno@clisp.org>
26101
26102         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
26103         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
26104
26105         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
26106         * modules/utf8-ucs4: Turn into a symbolic link to module
26107         unistr/u8-mbtouc.
26108
26109         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
26110         utf8-ucs4-unsafe.
26111         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
26112         unistr/u8-mbtouc-unsafe.
26113
26114         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
26115         * modules/utf16-ucs4: Turn into a symbolic link to module
26116         unistr/u16-mbtouc.
26117
26118         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
26119         utf16-ucs4-unsafe.
26120         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
26121         unistr/u16-mbtouc-unsafe.
26122
26123         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
26124         * modules/ucs4-utf8: Turn into a symbolic link to module
26125         unistr/u8-ubtomb.
26126
26127         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
26128         * modules/ucs4-utf16: Turn into a symbolic link to module
26129         unistr/u16-ubtomb.
26130
26131 2007-03-24  Bruno Haible  <bruno@clisp.org>
26132
26133         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
26134         Enable the function only if HAVE_INLINE.
26135         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
26136         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
26137         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
26138         Enable the function only if HAVE_INLINE.
26139         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
26140         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
26141         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
26142         Enable the function only if HAVE_INLINE.
26143         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
26144         Enable the function only if HAVE_INLINE.
26145         * modules/utf8-ucs4: Update.
26146         * modules/utf8-ucs4-unsafe: Update.
26147         * modules/utf16-ucs4: Update.
26148         * modules/utf16-ucs4-unsafe: Update.
26149         * modules/ucs4-utf8: Update.
26150         * modules/ucs4-utf16: Update.
26151
26152 2007-03-24  Bruno Haible  <bruno@clisp.org>
26153
26154         * lib/utf8-ucs4.h: Remove file.
26155         * lib/utf8-ucs4-unsafe.h: Remove file.
26156         * lib/utf16-ucs4.h: Remove file.
26157         * lib/utf16-ucs4-unsafe.h: Remove file.
26158         * lib/ucs4-utf8.h: Remove file.
26159         * lib/ucs4-utf16.h: Remove file.
26160         * lib/unistr.h: Include their previous contents.
26161         * m4/utf-ucs4.m4: Remove file.
26162         * m4/ucs4-utf.m4: Remove file.
26163         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
26164         (Depends-on): Add unistr/base.
26165         (configure.ac): Remove gl_UTF_UCS4.
26166         (Makefile.am): Update.
26167         (Include): Change to unistr.h.
26168         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
26169         (Depends-on): Add unistr/base.
26170         (configure.ac): Remove gl_UTF_UCS4.
26171         (Makefile.am): Update.
26172         (Include): Change to unistr.h.
26173         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
26174         (Depends-on): Add unistr/base.
26175         (configure.ac): Remove gl_UTF_UCS4.
26176         (Makefile.am): Update.
26177         (Include): Change to unistr.h.
26178         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
26179         (Depends-on): Add unistr/base.
26180         (configure.ac): Remove gl_UTF_UCS4.
26181         (Makefile.am): Update.
26182         (Include): Change to unistr.h.
26183         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
26184         (Depends-on): Add unistr/base.
26185         (configure.ac): Remove gl_UCS4_UTF.
26186         (Makefile.am): Update.
26187         (Include): Change to unistr.h.
26188         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
26189         (Depends-on): Add unistr/base.
26190         (configure.ac): Remove gl_UCS4_UTF.
26191         (Makefile.am): Update.
26192         (Include): Change to unistr.h.
26193         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
26194         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
26195         utf8-ucs4-unsafe.h.
26196         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
26197         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
26198         utf16-ucs4-unsafe.h.
26199         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
26200         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
26201         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
26202         * lib/unistr/u8-strchr.c: Likewise.
26203         * lib/unistr/u8-strrchr.c: Likewise.
26204         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
26205         * lib/unistr/u16-strchr.c: Likewise.
26206         * lib/unistr/u16-strrchr.c: Likewise.
26207         * lib/striconveh.c: Update.
26208         * lib/linebreak.c: Update.
26209
26210 2007-03-24  Bruno Haible  <bruno@clisp.org>
26211
26212         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
26213         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
26214
26215 2007-03-22  Bruno Haible  <bruno@clisp.org>
26216
26217         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
26218
26219 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
26220
26221         * MODULES.html.sh (File system functions): New module write-any-file.
26222         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
26223         * m4/write-any-file.m4: New files.
26224
26225 2007-03-23  Eric Blake  <ebb9@byu.net>
26226
26227         * gnulib-tool: Rearrange space-tab sequences, since some editors
26228         like to eat them.
26229
26230 2007-03-23  Eric Blake  <ebb9@byu.net>
26231
26232         * lib/version-etc.c (version_etc_va): Update license wording to
26233         be more concise.  Recommended by Richard Stallman.
26234
26235 2007-03-22  Bruno Haible  <bruno@clisp.org>
26236
26237         * lib/poll.c (MSG_PEEK): New fallback definition.
26238
26239 2007-03-22  Bruno Haible  <bruno@clisp.org>
26240
26241         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
26242         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
26243         (main): Update.
26244         Fixes a compilation error on BeOS.
26245
26246 2007-03-22  Bruno Haible  <bruno@clisp.org>
26247
26248         * modules/frexpl-tests: New file.
26249         * tests/test-frexpl.c: New file.
26250
26251         * modules/frexpl: New file.
26252         * m4/frexpl.m4: New file.
26253         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
26254         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
26255         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
26256         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
26257         (Depends-on): Add frexpl. Remove isnanl-nolibm.
26258         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
26259
26260 2007-03-22  Bruno Haible  <bruno@clisp.org>
26261
26262         * lib/frexpl.c: Share code with lib/frexp.c.
26263         * modules/mathl (Files): Add lib/frexp.c.
26264         (Depends-on): Add isnanl-nolibm.
26265
26266 2007-03-22  Bruno Haible  <bruno@clisp.org>
26267
26268         * modules/printf-frexp (Files): Add m4/frexp.m4.
26269         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
26270         only if the found frexp function actually works.
26271
26272 2007-03-22  Bruno Haible  <bruno@clisp.org>
26273
26274         * lib/frexp.c: Remove older implementation that uses divisions.
26275
26276 2007-03-21  Bruno Haible  <bruno@clisp.org>
26277
26278         * modules/frexp-tests: New file.
26279         * tests/test-frexp.c: New file.
26280
26281         * modules/frexp: New file.
26282         * lib/frexp.c: New file.
26283         * m4/frexp.m4: New file.
26284         * lib/math_.h (frexp): New declaration.
26285         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
26286         REPLACE_FREXP.
26287         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
26288
26289 2007-03-21  Bruno Haible  <bruno@clisp.org>
26290
26291         * modules/isnanl-tests: New file.
26292         * tests/test-isnanl.c: New file.
26293
26294         * modules/isnanl: New file.
26295         * lib/isnanl.h: New file.
26296         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
26297         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
26298         gl_FUNC_ISNANL_WORKS.
26299         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
26300         New macros.
26301
26302 2007-03-21  Bruno Haible  <bruno@clisp.org>
26303
26304         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
26305         lib/isnanl.h.
26306         (Include): Update.
26307         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
26308         * lib/vasnprintf.c: Update.
26309         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
26310         tests/test-isnanl.h, remove tests/test-isnanl.c.
26311         (Makefile.am): Update.
26312         * tests/test-isnanl-nolibm.c: New file.
26313         * tests/test-isnanl.h: New file.
26314         * tests/test-isnanl.c: Remove file.
26315
26316 2007-03-21  Jim Meyering  <jim@meyering.net>
26317
26318         When trying to open ".", treat ESTALE like EACCES.
26319         * lib/savewd.c (savewd_save): Resort to forking not just upon
26320         failure with EACCES, but also when errno is ESTALE.
26321
26322 2007-03-20  Bruno Haible  <bruno@clisp.org>
26323
26324         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
26325         Needed on AIX 5.1. Reported by Matthew Woehlke.
26326
26327 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
26328
26329         Suggestions by Bruno Haible:
26330         * lib/acl-internal.h: Include "gettext.h" rather than rolling
26331         our own.
26332         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
26333         * modules/acl (Depends-on): Add gettext.
26334
26335 2007-03-19  Bruno Haible  <bruno@clisp.org>
26336
26337         * modules/iconvme: Remove file.
26338         * lib/iconvme.h: Remove file.
26339         * lib/iconvme.c: Remove file.
26340         * m4/iconvme.m4: Remove file.
26341
26342 2007-03-19  Bruno Haible  <bruno@clisp.org>
26343
26344         * doc/relocatable-maint.texi: Break long shell script line.
26345         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
26346
26347 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
26348
26349         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
26350         handle file_has_acl.
26351         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
26352         * lib/acl.c: Move header inclusions and related macro defns into
26353         lib/acl-internal.h.
26354         (S_ISLNK): Remove defn, since that's now done for us.
26355         (file_has_acl): Move to lib/file-has-acl.c.
26356         Call acl_trivial if available.  This is the crucial part of the fix.
26357         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
26358         shared within the library.  Rewrite a bit, partly to make it compatible
26359         with the GNU coding style.
26360         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
26361         Remove unnecessary double-quotes.
26362         Don't test for acl_to_text; the build will catch that.
26363         Replace acl_entries if it doesn't exist and it is needed.
26364         Check for -lsec and acl_trivial (as used on Solaris 10).
26365         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
26366         lib/file-has-acl.c.
26367         (Depends-on): Add sys_stat, for S_ISLNK.
26368
26369 2007-03-19  Ben Pfaff  <blp@gnu.org>
26370
26371         * doc/gnulib.texi: Fix typos.
26372         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
26373
26374 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
26375
26376         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
26377         If size is zero here, buf must be zero.
26378
26379 2007-03-19  Simon Josefsson  <simon@josefsson.org>
26380
26381         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
26382         <bruno@clisp.org>.
26383
26384 2007-03-18  Bruno Haible  <bruno@clisp.org>
26385
26386         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
26387         Suggested by Eric Blake.
26388
26389 2007-03-18  Ben Pfaff  <blp@gnu.org>
26390
26391         * doc/relocatable.texi: Recommend using as prefix a directory
26392         that does not exist and will never be created.  Based on
26393         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
26394         and others.
26395
26396 2007-03-17  Bruno Haible  <bruno@clisp.org>
26397
26398         * lib/fchownat.c: Include lchown.h.
26399
26400 2007-03-17  Bruno Haible  <bruno@clisp.org>
26401
26402         Fix endless loop when the given allocated size was > INT_MAX.
26403         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
26404         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
26405         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
26406         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
26407         * lib/sprintf.c (sprintf): Likewise.
26408
26409 2007-03-17  Bruno Haible  <bruno@clisp.org>
26410
26411         * tests/test-argp-2.sh (func_compare): Output a context diff.
26412
26413 2007-03-17  Bruno Haible  <bruno@clisp.org>
26414
26415         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
26416         locale's decimal-point character.
26417
26418 2007-03-17  Bruno Haible  <bruno@clisp.org>
26419
26420         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
26421         before comparing it. Needed because on some platforms (e.g. x86) a
26422         'long double' occupies less bytes than sizeof (long double).
26423
26424 2007-03-17  Bruno Haible  <bruno@clisp.org>
26425
26426         * tests/test-crc.c (main): Make printf statements 64-bit clean.
26427         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
26428         * tests/test-getaddrinfo.c (simple): Likewise.
26429         * tests/test-read-file.c (main): Likewise.
26430
26431 2007-03-17  Bruno Haible  <bruno@clisp.org>
26432
26433         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
26434
26435 2007-03-17  Bruno Haible  <bruno@clisp.org>
26436
26437         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
26438         unused variable.
26439
26440 2007-03-17  Bruno Haible  <bruno@clisp.org>
26441
26442         * tests/test-c-strcasecmp.c: Include c-strcase.h.
26443         * tests/test-c-strncasecmp.c: Likewise.
26444
26445 2007-03-17  Bruno Haible  <bruno@clisp.org>
26446
26447         * modules/stdlib (Depends-on): Add unistd.
26448         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
26449         Needed for MacOS X 10.3.
26450
26451 2007-03-17  Bruno Haible  <bruno@clisp.org>
26452
26453         * lib/unistr/u-strdup.h: Include <stdlib.h>.
26454
26455 2007-03-17  Bruno Haible  <bruno@clisp.org>
26456
26457         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
26458
26459 2007-03-17  Bruno Haible  <bruno@clisp.org>
26460
26461         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
26462         to reflect files copied from gnulib (with or without modifications).
26463         Suggested by Jim Meyering.
26464
26465 2007-03-17  Eric Blake  <ebb9@byu.net>
26466
26467         * NEWS: Document stdlib change from 2007-02-18.
26468
26469 2007-03-17  Jim Meyering  <jim@meyering.net>
26470
26471         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
26472         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
26473         someone uses a name containing shell meta-characters.
26474         Reported by Alfred M. Szmidt.
26475
26476         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
26477
26478 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
26479
26480         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
26481         and copy gettext configuration files only if configure.ac contains
26482         a use of AM_GNU_GETTEXT_VERSION.
26483
26484 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
26485
26486         * build-aux/bootstrap (gnulib_name): New variable.
26487         (gnulib_tool_options): Use it.
26488
26489 2007-03-13  Simon Josefsson  <simon@josefsson.org>
26490
26491         * tests/test-des.c: Use new namespace.
26492
26493 2007-03-15  Bruno Haible  <bruno@clisp.org>
26494
26495         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
26496         Reported by James Youngman <jay@gnu.org>.
26497
26498 2007-03-15  Bruno Haible  <bruno@clisp.org>
26499
26500         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
26501         declared prototype. Needed with cc on OSF/1 5.1.
26502
26503 2007-03-15  Bruno Haible  <bruno@clisp.org>
26504
26505         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
26506         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
26507         (struct gl_list_implementation): Add dispose_fn argument to the
26508         'create_empty', 'create' methods.
26509         (struct gl_list_impl_base): Add field 'dispose_fn'.
26510         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
26511         argument.
26512         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
26513         dispose_fn argument.
26514         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
26515         dispose_fn on the dropped values.
26516         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
26517         dispose_fn argument.
26518         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
26519         dropped values.
26520         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
26521         (gl_tree_remove_node): Call dispose_fn on the dropped value.
26522         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
26523         (gl_tree_remove_node): Call dispose_fn on the dropped value.
26524         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
26525         argument.
26526         (gl_tree_list_free): Call dispose_fn on the dropped values.
26527         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
26528         the dropped values.
26529         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
26530         Add dispose_fn argument.
26531         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
26532         Call dispose_fn on the dropped values.
26533         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
26534         Add dispose_fn argument.
26535         (gl_sublist_create): Initialize the 'dispose_fn' field.
26536         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
26537         * tests/test-array_list.c (main): Update.
26538         * tests/test-carray_list.c (main): Update.
26539         * tests/test-avltree_list.c (main): Update.
26540         * tests/test-rbtree_list.c (main): Update.
26541         * tests/test-avltreehash_list.c (main): Update.
26542         * tests/test-rbtreehash_list.c (main): Update.
26543         * tests/test-linked_list.c (main): Update.
26544         * tests/test-linkedhash_list.c (main): Update.
26545         * tests/test-array_oset.c (main): Update.
26546
26547 2007-03-15  Bruno Haible  <bruno@clisp.org>
26548
26549         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
26550         (gl_oset_create_empty): Add dispose_fn argument.
26551         (struct gl_oset_implementation): Add dispose_fn argument to
26552         'create_empty' method.
26553         (struct gl_oset_impl_base): Add dispose_fn field.
26554         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
26555         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
26556         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
26557         values.
26558         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
26559         (gl_tree_oset_free): Call dispose_fn on the dropped values.
26560         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
26561         dropped value.
26562         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
26563         dropped value.
26564         * tests/test-array_oset.c (main): Update.
26565         * tests/test-avltree_oset.c (main): Update.
26566         * tests/test-rbtree_oset.c (main): Update.
26567         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
26568
26569 2007-03-13  Bruno Haible  <bruno@clisp.org>
26570
26571         * tests/test-stdbool.c (i): Update after last patch.
26572
26573 2007-03-12  Bruno Haible  <bruno@clisp.org>
26574
26575         * lib/quotearg.c: Include <wctype.h> early, before the definition of
26576         the iswprint macro. Needed on Solaris 2.5.1.
26577
26578 2007-03-12  Bruno Haible  <bruno@clisp.org>
26579
26580         * tests/test-printf-frexp.c (main): Declare x as volatile.
26581
26582 2007-03-12  Simon Josefsson  <simon@josefsson.org>
26583
26584         * doc/gnulib.texi (Build robot for gnulib): New section.
26585
26586 2007-03-12  Jim Meyering  <jim@meyering.net>
26587
26588         * build-aux/bootstrap: New file.
26589         * build-aux/bootstrap.conf: New file, from coreutils.
26590
26591 2007-03-11  Bruno Haible  <bruno@clisp.org>
26592
26593         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
26594
26595 2007-03-12  Simon Josefsson  <simon@josefsson.org>
26596
26597         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
26598         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
26599         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
26600
26601 2007-03-11  Bruno Haible  <bruno@clisp.org>
26602
26603         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
26604         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
26605
26606 2007-03-11  Bruno Haible  <bruno@clisp.org>
26607
26608         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
26609         formula. Needed for SunPRO C 5.0.
26610
26611 2007-03-11  Bruno Haible  <bruno@clisp.org>
26612
26613         * modules/long-options (Depends-on): Add getopt.
26614
26615 2007-03-11  Bruno Haible  <bruno@clisp.org>
26616
26617         * modules/modechange (Depends-on): Add stdbool.
26618
26619 2007-03-11  Bruno Haible  <bruno@clisp.org>
26620
26621         * modules/i-ring (Depends-on): Add stdbool.
26622
26623 2007-03-11  Bruno Haible  <bruno@clisp.org>
26624
26625         * modules/gc-des (Depends-on): Add stdbool.
26626
26627 2007-03-11  Bruno Haible  <bruno@clisp.org>
26628
26629         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
26630
26631 2007-03-11  Bruno Haible  <bruno@clisp.org>
26632
26633         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
26634
26635 2007-03-11  Bruno Haible  <bruno@clisp.org>
26636
26637         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
26638
26639 2007-03-11  Bruno Haible  <bruno@clisp.org>
26640
26641         * lib/vasnprintf.c (sprintf): Undefine.
26642
26643 2007-03-11  Bruno Haible  <bruno@clisp.org>
26644
26645         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
26646         initializers in SunPRO C and Compaq C compilers.
26647
26648 2007-03-11  Bruno Haible  <bruno@clisp.org>
26649
26650         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
26651         decrementing code ANSI C compliant.
26652
26653 2007-03-11  Bruno Haible  <bruno@clisp.org>
26654
26655         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
26656         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
26657
26658 2007-03-11  Bruno Haible  <bruno@clisp.org>
26659
26660         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
26661         <stdbool.h> substitute doesn't pass.
26662
26663 2007-03-11  Bruno Haible  <bruno@clisp.org>
26664
26665         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
26666
26667 2007-03-11  Bruno Haible  <bruno@clisp.org>
26668
26669         * gnulib-tool (func_create_megatestdir): Create also an autobuild
26670         script, for submission to autobuild.josefsson.org.
26671
26672 2007-03-10  Bruno Haible  <bruno@clisp.org>
26673
26674         * modules/canonicalize-lgpl-tests: New file.
26675         * tests/test-canonicalize-lgpl.sh: New file.
26676         * tests/test-canonicalize-lgpl.c: New file.
26677
26678         * modules/c-strcase-tests: New file.
26679         * tests/test-c-strcase.sh: New file.
26680         * tests/test-c-strcasecmp.c: New file.
26681         * tests/test-c-strncasecmp.c: New file.
26682
26683         * modules/atexit-tests: New file.
26684         * tests/test-atexit.sh: New file.
26685         * tests/test-atexit.c: New file.
26686
26687 2007-03-10  Bruno Haible  <bruno@clisp.org>
26688
26689         * tests/test-binary-io.sh: Use temporary filenames that are not so
26690         likely to clash with those of other tests (in a parallel make).
26691         * tests/test-binary-io.c: Likewise.
26692
26693 2007-03-10  Bruno Haible  <bruno@clisp.org>
26694
26695         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
26696         fallback; use #error instead.
26697         Suggested by Simon Josefsson.
26698
26699 2007-03-10  Bruno Haible  <bruno@clisp.org>
26700
26701         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
26702         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
26703         first and the last.
26704
26705 2007-03-10  Bruno Haible  <bruno@clisp.org>
26706
26707         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
26708
26709 2007-03-10  Bruno Haible  <bruno@clisp.org>
26710
26711         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
26712         "make distcheck".
26713         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
26714         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
26715         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
26716
26717 2007-03-10  Bruno Haible  <bruno@clisp.org>
26718
26719         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
26720         variable.
26721         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
26722         variable.
26723
26724 2007-03-09  Eric Blake  <ebb9@byu.net>
26725         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
26726
26727         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
26728         types are not being provided by gnulib.
26729         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
26730         types are supported.
26731
26732 2007-03-10  Bruno Haible  <bruno@clisp.org>
26733
26734         * lib/stdio_.h (__attribute__): New macro.
26735         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
26736         vsprintf): Specify __attribute__ __format__ for GCC.
26737         Suggested by Eric Blake.
26738
26739 2007-03-09  Bruno Haible  <bruno@clisp.org>
26740
26741         * modules/printf-posix-tests: New file.
26742         * tests/test-printf-posix.sh: New file.
26743         * tests/test-printf-posix.c: New file.
26744
26745         * modules/printf-posix: New file.
26746         * lib/printf.c: New file.
26747         * m4/printf-posix-rpl.m4: New file.
26748         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
26749         REPLACE_PRINTF.
26750         * lib/stdio_.h (printf): New declaration.
26751         (format, __format__, ____printf____, ____scanf____, ____strftime____,
26752         ____strfmon____): New macros.
26753         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
26754         REPLACE_PRINTF.
26755
26756 2007-03-09  Bruno Haible  <bruno@clisp.org>
26757
26758         * tests/test-vasnprintf-posix2.sh: New file.
26759         * tests/test-vasnprintf-posix2.c: New file.
26760         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
26761         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
26762         (Makefile.am): Activate test-vasnprintf-posix2.sh.
26763
26764         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
26765         a locale dependent decimal point, rather than always '.'.
26766
26767 2007-03-09  Eric Blake  <ebb9@byu.net>
26768
26769         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
26770         spite of platforms like Tandem/NSK that define it to -1.
26771
26772 2007-03-08  Bruno Haible  <bruno@clisp.org>
26773
26774         * modules/vprintf-posix-tests: New file.
26775         * tests/test-vprintf-posix.sh: New file.
26776         * tests/test-vprintf-posix.c: New file.
26777         * tests/test-printf-posix.h: New file.
26778
26779         * modules/vprintf-posix: New file.
26780         * lib/vprintf.c: New file.
26781         * m4/vprintf-posix.m4: New file.
26782         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
26783         REPLACE_VPRINTF.
26784         * lib/stdio_.h (vprintf): New declaration.
26785         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
26786         REPLACE_VPRINTF.
26787
26788 2007-03-08  Bruno Haible  <bruno@clisp.org>
26789
26790         * modules/fprintf-posix-tests: New file.
26791         * tests/test-fprintf-posix.sh: New file.
26792         * tests/test-fprintf-posix.c: New file.
26793
26794         * modules/fprintf-posix: New file.
26795         * lib/fprintf.c: New file.
26796         * m4/fprintf-posix.m4: New file.
26797         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
26798         REPLACE_FPRINTF.
26799         * lib/stdio_.h (fprintf): New declaration.
26800         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
26801         REPLACE_FPRINTF.
26802
26803 2007-03-08  Bruno Haible  <bruno@clisp.org>
26804
26805         * modules/vfprintf-posix-tests: New file.
26806         * tests/test-vfprintf-posix.sh: New file.
26807         * tests/test-vfprintf-posix.c: New file.
26808         * tests/test-fprintf-posix.h: New file.
26809         * tests/test-fprintf-posix.out: New file.
26810
26811         * modules/vfprintf-posix: New file.
26812         * lib/vfprintf.c: New file.
26813         * m4/vfprintf-posix.m4: New file.
26814         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
26815         REPLACE_VFPRINTF.
26816         * lib/stdio_.h (vfprintf): New declaration.
26817         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
26818         REPLACE_VFPRINTF.
26819
26820 2007-03-08  Bruno Haible  <bruno@clisp.org>
26821
26822         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
26823
26824 2007-03-08  Bruno Haible  <bruno@clisp.org>
26825
26826         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
26827         instead of 'expr' invocations.
26828         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26829         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26830         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26831         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26832         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26833         Suggested by Paul Eggert.
26834
26835 2007-03-08  Bruno Haible  <bruno@clisp.org>
26836
26837         * modules/fseterr-tests: New file.
26838         * tests/test-fseterr.c: New file.
26839
26840         * modules/fseterr: New file.
26841         * lib/fseterr.h: New file.
26842         * lib/fseterr.c: New file.
26843
26844 2007-03-08  Bruno Haible  <bruno@clisp.org>
26845
26846         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
26847         * lib/getopt_.h: Likewise.
26848         * lib/mbswidth.h: Likewise.
26849         * lib/setenv.h: Likewise.
26850         * lib/vasnprintf.h: Likewise.
26851         * lib/vasprintf.h: Likewise.
26852         * lib/verror.h: Likewise.
26853         * lib/xsetenv.h: Likewise.
26854         * lib/xvasprintf.h: Likewise.
26855
26856 2007-03-08  Jim Meyering  <jim@meyering.net>
26857
26858         * users.txt: Add parted.
26859
26860         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
26861
26862 2007-03-07  Bruno Haible  <bruno@clisp.org>
26863
26864         * m4/printf.m4: Make the shell script snippets copy&pastable.
26865
26866 2007-03-02  Bruno Haible  <bruno@clisp.org>
26867
26868         * lib/netinet_in_.h: New file.
26869         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
26870         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
26871         * modules/netinet_in (Files): Add lib/netinet_in_.h.
26872         (Depends-on): Add absolute-header.
26873         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
26874         into netinet/in.h.
26875
26876 2007-03-03  Bruno Haible  <bruno@clisp.org>
26877
26878         * lib/sys_select_.h: New file.
26879         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
26880         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
26881         * modules/sys_select (Files): Add lib/sys_select_.h.
26882         (Depends-on): Add absolute-header.
26883         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
26884         into sys/select.h.
26885
26886 2007-03-02  Bruno Haible  <bruno@clisp.org>
26887
26888         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
26889         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
26890         values.
26891         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
26892         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
26893         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
26894         * modules/sys_socket (Depends-on): Add absolute-header.
26895         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
26896         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
26897         (Include): Remove requirement of inclusion of <sys/types.h>.
26898
26899 2007-03-02  Bruno Haible  <bruno@clisp.org>
26900
26901         * lib/byteswap_.h (bswap_32): Fix formula.
26902
26903 2007-03-06  Bruno Haible  <bruno@clisp.org>
26904
26905         * modules/sprintf-posix-tests: New file.
26906         * tests/test-sprintf-posix.c: New file.
26907
26908         * modules/sprintf-posix: New file.
26909         * lib/sprintf.c: New file.
26910         * m4/sprintf-posix.m4: New file.
26911         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
26912         REPLACE_SPRINTF.
26913         * lib/stdio_.h (sprintf): New declaration.
26914         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
26915         REPLACE_SPRINTF.
26916
26917 2007-03-06  Bruno Haible  <bruno@clisp.org>
26918
26919         * modules/vsprintf-posix-tests: New file.
26920         * tests/test-vsprintf-posix.c: New file.
26921         * tests/test-sprintf-posix.h: New file.
26922
26923         * modules/vsprintf-posix: New file.
26924         * lib/vsprintf.c: New file.
26925         * m4/vsprintf-posix.m4: New file.
26926         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
26927         REPLACE_VSPRINTF.
26928         * lib/stdio_.h (vsprintf): New declaration.
26929         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
26930         REPLACE_VSPRINTF.
26931
26932 2007-03-06  Bruno Haible  <bruno@clisp.org>
26933
26934         * modules/vsnprintf (Depend-on): Remove minmax.
26935
26936 2007-03-06  Bruno Haible  <bruno@clisp.org>
26937
26938         * modules/snprintf-posix-tests: New file.
26939         * tests/test-snprintf-posix.c: New file.
26940
26941         * modules/snprintf-posix: New file.
26942         * m4/snprintf-posix.m4: New file.
26943         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
26944         gl_FUNC_SNPRINTF.
26945         (gl_FUNC_SNPRINTF): Invoke it.
26946         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
26947         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
26948         is set.
26949         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
26950
26951 2007-03-06  Bruno Haible  <bruno@clisp.org>
26952
26953         * modules/vsnprintf-posix-tests: New file.
26954         * tests/test-vsnprintf-posix.c: New file.
26955         * tests/test-snprintf-posix.h: New file.
26956
26957         * modules/vsnprintf-posix: New file.
26958         * m4/vsnprintf-posix.m4: New file.
26959         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
26960         gl_FUNC_VSNPRINTF.
26961         (gl_FUNC_VSNPRINTF): Invoke it.
26962         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
26963         * lib/stdio_.h (vsnprintf): Define as a replacement if
26964         REPLACE_VSNPRINTF is set.
26965         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
26966
26967 2007-03-06  Bruno Haible  <bruno@clisp.org>
26968
26969         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
26970         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
26971
26972 2007-03-06  Bruno Haible  <bruno@clisp.org>
26973
26974         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
26975         (asinl): Declare also if HAVE_DECL_ASINL is set.
26976         (atanl): Declare also if HAVE_DECL_ATANL is set.
26977         (ceill): Declare also if HAVE_DECL_CEILL is set.
26978         (cosl): Declare also if HAVE_DECL_COSL is set.
26979         (expl): Declare also if HAVE_DECL_EXPL is set.
26980         (floorl): Declare also if HAVE_DECL_FLOORL is set.
26981         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
26982         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
26983         (logl): Declare also if HAVE_DECL_LOGL is set.
26984         (sinl): Declare also if HAVE_DECL_SINL is set.
26985         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
26986         (tanl): Declare also if HAVE_DECL_TANL is set.
26987         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
26988         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
26989         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
26990         declaration of frexpl, ldexpl.
26991         * modules/printf-frexpl (Depends-on): Add math.
26992         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
26993
26994 2007-03-05  Bruno Haible  <bruno@clisp.org>
26995
26996         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
26997         frexpl and ldexpl are declared.
26998         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
26999
27000 2007-03-05  Bruno Haible  <bruno@clisp.org>
27001
27002         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
27003         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
27004
27005 2007-03-05  Bruno Haible  <bruno@clisp.org>
27006
27007         * lib/stdio_.h: Include <stddef.h>.
27008
27009 2007-03-05  Bruno Haible  <bruno@clisp.org>
27010
27011         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
27012
27013 2007-03-05  Bruno Haible  <bruno@clisp.org>
27014
27015         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
27016         NetBSD 4, from Ralf Wildenhues.
27017
27018 2007-03-04  Bruno Haible  <bruno@clisp.org>
27019
27020         * lib/vasprintf.h: Update #if logic for the case when the functions
27021         exist but are overridden.
27022
27023 2007-03-04  Bruno Haible  <bruno@clisp.org>
27024
27025         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
27026         implementations: glibc-2.4 and MacOS X 10.3.
27027         * tests/test-vasnprintf-posix.c (test_function): Test also the case
27028         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
27029         * tests/test-vasprintf-posix.c (test_function): Likewise.
27030
27031 2007-03-04  Bruno Haible  <bruno@clisp.org>
27032
27033         * modules/vasprintf-posix-tests: New file.
27034         * tests/test-vasprintf-posix.c: New file.
27035
27036         * modules/vasprintf-posix: New file.
27037         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
27038         defined.
27039         * m4/vasprintf-posix.m4: New file.
27040         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
27041         gl_FUNC_VASPRINTF.
27042         (gl_FUNC_VASPRINTF): Invoke it.
27043         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
27044         here.
27045         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
27046
27047 2007-03-04  Bruno Haible  <bruno@clisp.org>
27048
27049         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
27050         REPLACE_GETTIMEOFDAY.
27051         * modules/sys_time (Makefile.am): Likewise.
27052         * m4/sys_time_h.m4: Likewise.
27053         * m4/gettimeofday.m4: Likewise.
27054
27055 2007-03-04  Bruno Haible  <bruno@clisp.org>
27056
27057         * modules/vasnprintf-posix-tests: New file.
27058         * tests/test-vasnprintf-posix.c: New file.
27059
27060         * modules/vasnprintf-posix: New file.
27061         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
27062         printf-frexpl.h.
27063         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
27064         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
27065         REPLACE_VASNPRINTF is defined.
27066         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
27067         gl_FUNC_VASNPRINTF.
27068         (gl_FUNC_VASNPRINTF): Invoke it.
27069         * m4/vasnprintf-posix.m4: New file.
27070         * m4/printf.m4: New file.
27071
27072 2007-03-04  Bruno Haible  <bruno@clisp.org>
27073
27074         Compile progreloc.c only if --enable-relocatable is specified.
27075         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
27076         if --enable-relocatable was specified.
27077         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
27078         lib_SOURCES.
27079
27080 2007-03-04  Jim Meyering  <jim@meyering.net>
27081
27082         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
27083         Use it consistently, rather than enumerating errno constants.
27084
27085 2007-03-04  Bruno Haible  <bruno@clisp.org>
27086
27087         * modules/xvasprintf-tests: New file.
27088         * tests/test-xvasprintf.c: New file.
27089
27090         * modules/vasprintf-tests: New file.
27091         * tests/test-vasprintf.c: New file.
27092
27093         * modules/vasnprintf-tests: New file.
27094         * tests/test-vasnprintf.c: New file.
27095
27096         * modules/vsnprintf-tests: New file.
27097         * tests/test-vsnprintf.c: New file.
27098
27099         * modules/snprintf-tests: New file.
27100         * tests/test-snprintf.c: New file.
27101
27102 2007-03-04  Bruno Haible  <bruno@clisp.org>
27103
27104         Compile relocatable.c only if --enable-relocatable is specified.
27105         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
27106         gl_RELOCATABLE_LIBRARY.
27107         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
27108         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
27109         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
27110         gl_RELOCATABLE_LIBRARY.
27111         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
27112         (Makefile.am): Remove lib_SOURCES.
27113         * modules/relocatable-lib-lgpl (configure.ac): Invoke
27114         gl_RELOCATABLE_LIBRARY.
27115         (Makefile.am): Remove lib_SOURCES.
27116         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
27117         always.
27118         * modules/relocatable-prog-wrapper (configure.ac): Invoke
27119         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
27120
27121 2007-03-04  Bruno Haible  <bruno@clisp.org>
27122
27123         * modules/argmatch-tests: New file.
27124         * tests/test-argmatch.c: New file.
27125
27126         * tests/test-allocsa.c (main): Halve the number of loop runs.
27127
27128         * modules/alloca-opt-tests: New file.
27129         * tests/test-alloca-opt.c: New file.
27130
27131 2007-03-04  Jim Meyering  <jim@meyering.net>
27132
27133         Work around difference between Linux ACLs and Solaris 10 ZFS.
27134         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
27135         for EINVAL.
27136
27137 2007-03-03  Bruno Haible  <bruno@clisp.org>
27138
27139         * modules/relocatable-prog (Depends-on): Add back progreloc's
27140         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
27141
27142 2007-03-03  Bruno Haible  <bruno@clisp.org>
27143
27144         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
27145         * modules/relocatable-lib: New file.
27146
27147 2007-03-03  Bruno Haible  <bruno@clisp.org>
27148
27149         * modules/relocatable-prog: Renamed from modules/relocatable.
27150         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
27151
27152 2007-03-03  Bruno Haible  <bruno@clisp.org>
27153
27154         * modules/relocatable-script (Files): Add doc/relocatable.texi,
27155         m4/relocatable-lib.m4.
27156         (Depends-on): Remove 'relocatable'.
27157         (configure.ac): Add gl_RELOCATABLE_NOP.
27158
27159 2007-03-03  Bruno Haible  <bruno@clisp.org>
27160
27161         * modules/relocatable-prog-wrapper: New file.
27162         * modules/relocatable (Depends-on): Add it. Remove all other
27163         dependencies except progname.
27164         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
27165
27166         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
27167         (gl_FUNC_STRERROR): Nop.
27168         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
27169
27170         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
27171         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
27172
27173         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
27174         (gl_FUNC_READLINK): Update.
27175
27176         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
27177
27178 2007-03-03  Bruno Haible  <bruno@clisp.org>
27179
27180         * lib/xreadlink.c: Include <unistd.h> unconditionally.
27181         * modules/xreadlink (Depends-on): Add unistd.
27182         * modules/xreadlink-with-size (Depends-on): Likewise.
27183
27184 2007-03-03  Bruno Haible  <bruno@clisp.org>
27185
27186         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
27187         extracted from gt_FUNC_SETENV.
27188         (gt_FUNC_SETENV): Remove macro.
27189         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
27190         remove gt_FUNC_SETENV.
27191
27192 2007-03-03  Bruno Haible  <bruno@clisp.org>
27193
27194         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
27195         ENABLE_RELOCATABLE here.
27196         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
27197
27198 2007-03-03  Bruno Haible  <bruno@clisp.org>
27199
27200         * modules/rbtreehash-list-tests (Depends-on): Add progname.
27201         * tests/test-rbtreehash_list.c: Include progname.h.
27202         (main): Call set_program_name.
27203
27204         * modules/rbtree-oset-tests (Depends-on): Add progname.
27205         * tests/test-rbtree_oset.c: Include progname.h.
27206         (main): Call set_program_name.
27207
27208         * modules/rbtree-list-tests (Depends-on): Add progname.
27209         * tests/test-rbtree_list.c: Include progname.h.
27210         (main): Call set_program_name.
27211
27212         * modules/linked-list-tests (Depends-on): Add progname.
27213         * tests/test-linked_list.c: Include progname.h.
27214         (main): Call set_program_name.
27215
27216 2007-03-03  Bruno Haible  <bruno@clisp.org>
27217
27218         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
27219         All uses of __restrict changed to _Restrict_.
27220         * lib/glob_.h (__restrict): Remove macro.
27221
27222 2007-03-02  Bruno Haible  <bruno@clisp.org>
27223
27224         * modules/gettext (configure.ac): Require gettext infrastructure
27225         from version 0.16.1.
27226
27227 2007-03-02  Bruno Haible  <bruno@clisp.org>
27228
27229         * modules/linkedhash-list-tests (Depends-on): Add progname.
27230         * tests/test-linkedhash_list.c: Include progname.h.
27231         (main): Call set_program_name.
27232
27233         * modules/carray-list-tests (Depends-on): Add progname.
27234         * tests/test-carray_list.c: Include progname.h.
27235         (main): Call set_program_name.
27236
27237         * modules/avltreehash-list-tests (Depends-on): Add progname.
27238         * tests/test-avltreehash_list.c: Include progname.h.
27239         (main): Call set_program_name.
27240
27241         * modules/avltree-oset-tests (Depends-on): Add progname.
27242         * tests/test-avltree_oset.c: Include progname.h.
27243         (main): Call set_program_name.
27244
27245         * modules/avltree-list-tests (Depends-on): Add progname.
27246         * tests/test-avltree_list.c: Include progname.h.
27247         (main): Call set_program_name.
27248
27249         * modules/array-oset-tests (Depends-on): Add progname.
27250         * tests/test-array_oset.c: Include progname.h.
27251         (main): Call set_program_name.
27252
27253         * modules/array-list-tests (Depends-on): Add progname.
27254         * tests/test-array_list.c: Include progname.h.
27255         (main): Call set_program_name.
27256
27257         * modules/argp-tests (Depends-on): Add progname.
27258         * tests/test-argp.c: Include argp.h first. Include progname.h.
27259         (main): Call set_program_name.
27260
27261 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
27262
27263         * doc/gnulib-tool.texi (Initial import): Reword description of
27264         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
27265         limited effect even if defined after the first system include.
27266
27267 2007-03-01  Bruno Haible  <bruno@clisp.org>
27268
27269         * build-aux/config.libpath: Update to libtool-1.5.22.
27270         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27271
27272 2007-03-01  Bruno Haible  <bruno@clisp.org>
27273
27274         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
27275         foo_CFLAGS.
27276         Reported by Ralf Wildenhues.
27277
27278 2007-03-01  Bruno Haible  <bruno@clisp.org>
27279
27280         * build-aux/install-reloc: Remove object files left over by some
27281         compilers.
27282         Reported by Ralf Wildenhues.
27283
27284 2007-03-01  Bruno Haible  <bruno@clisp.org>
27285
27286         * build-aux/install-reloc: Break long lines.
27287
27288 2007-03-01  Bruno Haible  <bruno@clisp.org>
27289
27290         * doc/relocatable.texi: Document that it may not work on OpenBSD.
27291         Reported by Ralf Wildenhues.
27292
27293 2007-03-01  Bruno Haible  <bruno@clisp.org>
27294
27295         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
27296         include ordering constraints.
27297
27298 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
27299
27300         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
27301         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
27302         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
27303         as another example.
27304         * lib/time_.h: Fix misspelling.
27305         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
27306         Require gl_HEADER_TIME_H_DEFAULTS.
27307         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
27308         * m4/time_r.m4 (gl_TIME_R): Likewise.
27309         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
27310
27311 2007-03-01  Bruno Haible  <bruno@clisp.org>
27312
27313         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
27314         * m4/utimens.m4 (gl_UTIMENS): Likewise.
27315
27316 2007-03-01  Jim Meyering  <jim@meyering.net>
27317
27318         * modules/xreadlink (Maintainer): Add my name.
27319         * modules/xreadlink-with-size (Depends-on): Alphabetize.
27320
27321 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
27322             Bruno Haible  <bruno@clisp.org>
27323
27324         * build-aux/install-reloc: Compile also c-ctype.c.
27325         * build-aux/relocatable.sh.in: New file.
27326         * doc/relocatable.texi: New file.
27327         * doc/relocatable-maint.texi: New file.
27328         * doc/gnulib.texi: Include relocatable-maint.texi.
27329         * lib/progreloc.c: Include unistd.h unconditionally.
27330         * lib/relocwrapper.c: Include unistd.h unconditionally.
27331         Include c-ctype.h.
27332         (add_dotbin): Use c_tolower.
27333         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
27334         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
27335         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
27336         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
27337         to m4/relocatable-lib.m4.
27338         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
27339         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
27340         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
27341         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
27342         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
27343         * modules/relocatable: New file.
27344         * modules/relocatable-lib: New file.
27345         * modules/relocatable-script: New file.
27346
27347 2007-02-28  Bruno Haible  <bruno@clisp.org>
27348
27349         Import --enable-relocatable infrastructure.
27350         * build-aux/config.libpath: New file, from GNU gettext.
27351         * build-aux/install-reloc: New file, from GNU gettext.
27352         * build-aux/reloc-ldflags: New file, from GNU gettext.
27353         * lib/relocatable.h: New file, from GNU gettext.
27354         * lib/relocatable.c: New file, from GNU gettext.
27355         * lib/relocwrapper.c: New file, from GNU gettext.
27356         * m4/relocatable.m4: New file, from GNU gettext.
27357
27358 2007-02-28  Bruno Haible  <bruno@clisp.org>
27359
27360         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
27361
27362         * modules/xreadlink: New file, from GNU gettext with modifications.
27363         * lib/xreadlink.c: New file, from GNU gettext.
27364         * lib/xreadlink.h: Add comments.
27365         (xreadlink): New declaration.
27366
27367         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
27368         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
27369         lib/xreadlink-with-size.c.
27370         (configure.ac): Remove gl_XREADLINK invocation.
27371         (Makefile.am): Augment lib_SOURCES.
27372         * m4/xreadlink.m4: Remove file.
27373         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
27374         (xreadlink_with_size): Renamed from xreadink.
27375         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
27376         * modules/canonicalize (Depends-on): Replace xreadlink with
27377         xreadlink-with-size.
27378         * lib/canonicalize.c (canonicalize_filename_mode): Update.
27379
27380 2007-02-25  Jim Meyering  <jim@meyering.net>
27381
27382         * build-aux/announce-gen: When complaining about excess arguments,
27383         list them.
27384
27385 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
27386
27387         * README: Document signed integer overflow situation more
27388         accurately.
27389
27390 2007-02-25  Bruno Haible  <bruno@clisp.org>
27391
27392         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
27393         'a' or 'A' conversion.
27394
27395 2007-02-25  Bruno Haible  <bruno@clisp.org>
27396
27397         * modules/filename: Renamed from modules/pathname.
27398         (Files): Replace lib/pathname.h with lib/filename.h. Replace
27399         lib/concatpath.c with lib/concat-filename.c.
27400         (Makefile.am): Update.
27401         (Include): Replace pathname.h with filename.h.
27402         * lib/filename.h: Renamed from lib/pathname.h.
27403         (concatenated_filename): Renamed from concatenated_pathname.
27404         * lib/concat-filename.c: Renamed from lib/concatpath.c.
27405         (concatenated_filename): Renamed from concatenated_pathname.
27406         * lib/findprog.c: Include filename.h instead of pathname.h.
27407         (find_in_path): Update.
27408         * lib/javacomp.c: Include filename.h instead of pathname.h.
27409         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
27410         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
27411         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
27412         is_oldgcj_14_13_usable, is_javac_usable): Update.
27413         * lib/javaexec.c: Include filename.h instead of pathname.h.
27414         (execute_java_class): Update.
27415         * modules/findprog: Update.
27416         * modules/javacomp: Update.
27417         * modules/javaexec: Update.
27418         * MODULES.html.sh (File system functions): Add 'filename', remove
27419         'pathname'.
27420
27421 2007-02-25  Bruno Haible  <bruno@clisp.org>
27422
27423         * modules/printf-frexpl-tests: New file.
27424         * tests/test-printf-frexpl.c: New file.
27425
27426         * modules/printf-frexpl: New file.
27427         * lib/printf-frexpl.h: New file.
27428         * lib/printf-frexpl.c: New file.
27429         * m4/printf-frexpl.m4: New file.
27430
27431 2007-02-25  Bruno Haible  <bruno@clisp.org>
27432
27433         * modules/printf-frexp-tests: New file.
27434         * tests/test-printf-frexp.c: New file.
27435
27436         * modules/printf-frexp: New file.
27437         * lib/printf-frexp.h: New file.
27438         * lib/printf-frexp.c: New file.
27439         * m4/printf-frexp.m4: New file.
27440
27441 2007-02-25  Bruno Haible  <bruno@clisp.org>
27442
27443         Assume automake >= 1.10 for the tests.
27444         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
27445         * modules/arctwo-tests: Likewise.
27446         * modules/argp-tests: Likewise.
27447         * modules/avltree-list-tests: Likewise.
27448         * modules/avltree-oset-tests: Likewise.
27449         * modules/avltreehash-list-tests: Likewise.
27450         * modules/carray-list-tests: Likewise.
27451         * modules/crc-tests: Likewise.
27452         * modules/des-tests: Likewise.
27453         * modules/gc-arcfour-tests: Likewise.
27454         * modules/gc-arctwo-tests: Likewise.
27455         * modules/gc-des-tests: Likewise.
27456         * modules/gc-hmac-md5-tests: Likewise.
27457         * modules/gc-hmac-sha1-tests: Likewise.
27458         * modules/gc-md2-tests: Likewise.
27459         * modules/gc-md4-tests: Likewise.
27460         * modules/gc-md5-tests: Likewise.
27461         * modules/gc-pbkdf2-sha1-tests: Likewise.
27462         * modules/gc-rijndael-tests: Likewise.
27463         * modules/gc-sha1-tests: Likewise.
27464         * modules/gc-tests: Likewise.
27465         * modules/getaddrinfo-tests: Likewise.
27466         * modules/hmac-md5-tests: Likewise.
27467         * modules/hmac-sha1-tests: Likewise.
27468         * modules/linked-list-tests: Likewise.
27469         * modules/linkedhash-list-tests: Likewise.
27470         * modules/lock-tests: Likewise.
27471         * modules/md2-tests: Likewise.
27472         * modules/md4-tests: Likewise.
27473         * modules/md5-tests: Likewise.
27474         * modules/rbtree-list-tests: Likewise.
27475         * modules/rbtree-oset-tests: Likewise.
27476         * modules/rbtreehash-list-tests: Likewise.
27477         * modules/read-file-tests: Likewise.
27478         * modules/rijndael-tests: Likewise.
27479         * modules/stdint-tests: Likewise.
27480         * modules/tls-tests: Likewise.
27481
27482 2007-02-24  Bruno Haible  <bruno@clisp.org>
27483
27484         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
27485         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
27486         function; instead check whether isnan with a double argument links.
27487         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
27488         function; instead check whether isnan with a 'long double' argument
27489         links.
27490         Reported by Eric Blake <ebb9@byu.net>.
27491
27492 2007-02-24  Bruno Haible  <bruno@clisp.org>
27493
27494         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
27495         defined.
27496         * lib/isnanl.c: Remove all code. Just include isnan.c.
27497         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
27498
27499 2007-02-25  Jim Meyering  <jim@meyering.net>
27500
27501         Avoid conflicting types for 'unsetenv' on FreeBSD.
27502         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
27503         conflicting with FreeBSD's (5.0 and 6.1) function declaration
27504         in stdlib.h.
27505
27506 2007-02-24  Bruno Haible  <bruno@clisp.org>
27507
27508         * modules/isnanl-nolibm-tests: New file.
27509         * tests/test-isnanl.c: New file.
27510
27511         * modules/isnanl-nolibm: New file.
27512         * lib/isnanl.h: New file.
27513         * lib/isnanl.c: New file.
27514         * m4/isnanl.m4: New file.
27515
27516 2007-02-24  Bruno Haible  <bruno@clisp.org>
27517
27518         * modules/isnan-nolibm-tests: New file.
27519         * tests/test-isnan.c: New file.
27520
27521         * modules/isnan-nolibm: New file.
27522         * lib/isnan.h: New file.
27523         * lib/isnan.c: New file.
27524         * m4/isnan.m4: New file.
27525
27526 2007-02-24  Bruno Haible  <bruno@clisp.org>
27527
27528         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
27529         assume that an exponent fits in 20 bits.
27530
27531 2007-02-24  Jim Meyering  <jim@meyering.net>
27532
27533         * m4/regex.m4: Update the description of the configure-time option,
27534         --without-included-regex, to state accurately what the defaults are,
27535         and perhaps to give people an idea why using this option is risky.
27536
27537 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
27538
27539         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
27540         loops on small arguments.  This attempts to avoid the problem
27541         Bruno Haible reported for AIX 4.3.2 in
27542         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
27543
27544 2007-02-23  Bruno Haible  <bruno@clisp.org>
27545
27546         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
27547         Needed for help2man.
27548
27549 2007-02-23  Karl Berry  <karl@gnu.org>
27550
27551         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
27552         exists, foo.h should be cvs-ignored, not committed.
27553
27554 2007-02-23  Eric Blake  <ebb9@byu.net>
27555
27556         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
27557         * lib/stat-time.h (includes): Likewise.
27558         * lib/utimecmp.c (includes): Likewise.
27559         * lib/utimens.h (includes): Likewise.
27560         * lib/getdate.y (includes): Also include "timespec.h" for use
27561         internal to the module.
27562         * modules/utimens (Depends-on): Revert yesterday's patch.
27563         * modules/nanosleep (Depends-on): Add missing dependency.
27564
27565 2007-02-22  Bruno Haible  <bruno@clisp.org>
27566
27567         * lib/glob.c: Don't include getlogin_r.h.
27568
27569 2007-02-22  Jim Meyering  <jim@meyering.net>
27570
27571         * modules/utimens (Depends-on): Add timespec, required for
27572         utimens.h's inclusion of timespec.h.
27573
27574 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
27575
27576         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
27577         long unreadable paths in GNU/Linux.  Problem reported by Andreas
27578         Schwab in
27579         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
27580         I'll try to think of a better way to fix the Solaris problem.
27581
27582         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
27583         like glibc; on Solaris 10, it fails with errno == EINVAL.
27584         POSIX says the behavior is unspecified if the first argument is NULL,
27585         so play it safe and never pass NULL to the system getcwd.
27586
27587 2007-02-21  Jim Meyering  <jim@meyering.net>
27588
27589         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
27590         of gettimeofday.  It would conflict with the one now always
27591         provided via sys_time_.h.  Reported by Matthew Woehlke, as
27592         an IRIX 6.5 build failure.
27593
27594 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27595
27596         Minor fixups to port to Solaris 10 with Sun C 5.8.
27597         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
27598         * modules/getcwd (Depends-on): Add dirfd.
27599         * lib/putenv.c (putenv): #undef it.
27600         (rpl_putenv): New decl.
27601         (malloc, free): Include <stdlib.h> rather than prototyping separately.
27602
27603 2007-02-20  Bruno Haible  <bruno@clisp.org>
27604
27605         * modules/stdio-tests: New file.
27606         * tests/test-stdio.c: New file.
27607
27608         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
27609         (Depends-on): Add stdio.
27610         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
27611         (Include): Use <stdio.h> instead of vsnprintf.h.
27612         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
27613         HAVE_DECL_VSNPRINTF.
27614         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
27615
27616         * modules/snprintf (Files): Remove lib/snprintf.h.
27617         (Depends-on): Add stdio.
27618         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
27619         (Include): Use <stdio.h> instead of snprintf.h.
27620         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
27621         HAVE_DECL_SNPRINTF.
27622         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
27623         * lib/getaddrinfo.c: Likewise.
27624
27625         * modules/stdio: New file.
27626         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
27627         * lib/snprintf.h: Remove file.
27628         * lib/vsnprintf.h: Remove file.
27629         * lib/.cppi-disable: Remove snprintf.h.
27630         * m4/stdio_h.m4: New file.
27631         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
27632
27633 2007-02-20  Jim Meyering  <jim@meyering.net>
27634
27635         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
27636         used by e.g., mingw.  From Bruno Haible.
27637
27638 2007-02-19  Bruno Haible  <bruno@clisp.org>
27639
27640         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
27641         warnings.
27642         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27643
27644 2007-02-19  Bruno Haible  <bruno@clisp.org>
27645
27646         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
27647         from mingw users.
27648
27649 2007-02-19  Bruno Haible  <bruno@clisp.org>
27650
27651         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
27652         warnings.
27653         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
27654
27655 2007-02-19  Jim Meyering  <jim@meyering.net>
27656
27657         Don't use FD after a successful "fdopendir (fd)".
27658         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
27659         Reset it by calling dirfd on the just-obtained DIR*.
27660
27661         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
27662         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
27663
27664 2007-02-18  Bruno Haible  <bruno@clisp.org>
27665
27666         * lib/readlink.c: Include <unistd.h>.
27667         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
27668         HAVE_READLINK.
27669         * modules/readlink (Depends-on): Add unistd.
27670         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27671         (Include): Add <unistd.h>.
27672
27673         * lib/getlogin_r.h: Remove file.
27674         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
27675         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
27676         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
27677         HAVE_DECL_GETLOGIN_R.
27678         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
27679         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27680         (Include): Use <unistd.h> instead of getlogin_r.h.
27681
27682         * lib/getcwd.h: Remove file.
27683         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
27684         * lib/xgetcwd.c: Likewise.
27685         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
27686         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
27687         * modules/getcwd (Files): Remove lib/getcwd.h.
27688         (Depends-on): Add unistd.
27689         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27690         (Include): Use <unistd.h> instad of getcwd.h.
27691
27692         * lib/ftruncate.c: Include <unistd.h> first.
27693         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
27694         Set HAVE_FTRUNCATE.
27695         * modules/ftruncate (Depends-on): Add unistd.
27696         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27697
27698         * lib/fchdir.c: Include <unistd.h> first.
27699         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
27700         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
27701         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
27702         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27703         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
27704
27705         * lib/dup2.c: Include <unistd.h> first.
27706         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
27707         HAVE_DUP2.
27708         * modules/dup2 (Depends-on): Add unistd.
27709         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27710
27711         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
27712         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
27713         REPLACE_CHOWN. Don't define chown as a macro here.
27714         * modules/chown (Depends-on): Add unistd.
27715         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27716
27717         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
27718         Add definition for GL_LINK_WARNING.
27719         (chown, dup2): New declarations.
27720         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
27721         link warning.
27722         (ftruncate): New declaration.
27723         (getcwd): New declaration, taken from old getcwd.h.
27724         (getlogin_r): New declaration, taken from old getlogin_r.h.
27725         (readlink): New declaration.
27726         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
27727         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
27728         (gl_PREREQ_UNISTD): Remove macro.
27729         (gl_UNISTD_MODULE_INDICATOR): New macro.
27730         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
27731         many new variables. Don't set UNISTD_H.
27732         * modules/unistd (Description): Change.
27733         (Depends-on): Add link-warning.
27734         (configure.ac): Update.
27735         (Makefile.am): Create unistd.h always. Substitute many new variables
27736         into it.
27737
27738 2007-02-18  Bruno Haible  <bruno@clisp.org>
27739
27740         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
27741         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
27742         HAVE_GETSUBOPT.
27743         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
27744         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
27745         * lib/getsubopt.h: Remove file.
27746         * modules/getsubopt (Files): Remove lib/getsubopt.h.
27747         (Depends-on): Add stdlib.
27748         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27749         (Includes): Use <stdlib.h> instead of getsubopt.h.
27750         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
27751         Set HAVE_GETSUBOPT.
27752         * lib/getsubopt.c: Don't include getsubopt.h.
27753
27754 2007-02-18  Bruno Haible  <bruno@clisp.org>
27755
27756         * modules/fchdir (Depends-on): Add dup2.
27757
27758 2007-02-18  Bruno Haible  <bruno@clisp.org>
27759
27760         * lib/stdlib_.h: Handle glibc's special invocation convention
27761         specially.
27762
27763 2007-02-18  Bruno Haible  <bruno@clisp.org>
27764
27765         * modules/stdlib-tests: New file.
27766         * tests/test-stdlib.c: New file.
27767
27768         * modules/mkstemp (Files): Remove lib/mkstemp.h.
27769         (Depends-on): Add stdlib.
27770         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27771         (Includes): Use <stdlib.h> instead of mkstemp.h.
27772         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
27773         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
27774         * lib/mkstemp.c: Don't include mkstemp.h.
27775         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
27776         * lib/stdlib--.h: Don't include mkstemp.h.
27777
27778         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
27779         (Depends-on): Add stdlib.
27780         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27781         (Includes): Use <stdlib.h> instead of mkdtemp.h.
27782         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
27783         HAVE_MKDTEMP.
27784         * lib/mkdtemp.c: Don't include mkdtemp.h.
27785         * lib/clean-temp.c: Don't include mkdtemp.h.
27786
27787         * modules/exit (Files): Remove lib/exit.h.
27788         (Depends-on): Add stdlib.
27789         (Makefile.am): Remove lib_SOURCES.
27790         (Include): Use <stdlib.h> instead of exit.h.
27791         * lib/argmatch.c: Don't include exit.h.
27792         * lib/execute.c: Likewise.
27793         * lib/pagealign_alloc.c: Likewise.
27794         * lib/pipe.c: Likewise.
27795         * lib/wait-process.c: Likewise.
27796         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
27797         * lib/exitfail.c: Likewise.
27798         * lib/savewd.c: Likewise.
27799         * lib/xsetenv.c: Likewise.
27800
27801         * modules/stdlib: New file.
27802         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
27803         and extra comments about mkstemp().
27804         * lib/exit.h: Remove file.
27805         * lib/mkdtemp.h: Remove file.
27806         * lib/mkstemp.h: Remove file.
27807         * m4/stdlib_h.m4: New file.
27808         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
27809
27810 2007-02-18  Bruno Haible  <bruno@clisp.org>
27811
27812         * modules/math-tests: New file.
27813         * tests/test-math.c: New file.
27814
27815         * modules/math: New file.
27816         * modules/mathl (Files): Remove lib/mathl.h.
27817         (Depends-on): Add math.
27818         (Makefile.am): Don't mention mathl.h.
27819         (Include): Use <math.h> instead of mathl.h.
27820         * lib/math_.h: New file.
27821         * lib/mathl.h: Remove file.
27822         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
27823         mathl.h.
27824         * lib/asinl.c: Likewise.
27825         * lib/atanl.c: Likewise.
27826         * lib/ceill.c: Likewise.
27827         * lib/cosl.c: Likewise.
27828         * lib/expl.c: Likewise.
27829         * lib/floorl.c: Likewise.
27830         * lib/frexpl.c: Likewise.
27831         * lib/ldexpl.c: Likewise.
27832         * lib/logl.c: Likewise.
27833         * lib/sincosl.c: Likewise.
27834         * lib/sinl.c: Likewise.
27835         * lib/sqrtl.c: Likewise.
27836         * lib/tanl.c: Likewise.
27837         * lib/trigl.c: Likewise.
27838         * m4/math_h.m4: New file.
27839         * MODULES.html.sh (Mathematics): Add math.
27840
27841 2007-02-17  Bruno Haible  <bruno@clisp.org>
27842
27843         * modules/wctype-tests: New file.
27844         * tests/test-wctype.c: New file.
27845
27846         * modules/wchar-tests: New file.
27847         * tests/test-wchar.c: New file.
27848
27849         * modules/unistd-tests: New file.
27850         * tests/test-unistd.c: New file.
27851
27852         * modules/time-tests: New file.
27853         * tests/test-time.c: New file.
27854
27855         * modules/sysexits-tests: New file.
27856         * tests/test-sysexits.c: New file.
27857
27858         * modules/sys_time-tests: New file.
27859         * tests/test-sys_time.c: New file.
27860
27861         * modules/sys_stat-tests: New file.
27862         * tests/test-sys_stat.c: New file.
27863
27864         * modules/sys_socket-tests: New file.
27865         * tests/test-sys_socket.c: New file.
27866
27867         * modules/sys_select-tests: New file.
27868         * tests/test-sys_select.c: New file.
27869
27870         * modules/string-tests: New file.
27871         * tests/test-string.c: New file.
27872
27873         * modules/stdbool-tests: New file.
27874         * tests/test-stdbool.c: New file.
27875
27876         * modules/netinet_in-tests: New file.
27877         * tests/test-netinet_in.c: New file.
27878
27879         * modules/inttypes-tests: New file.
27880         * tests/test-inttypes.c: New file.
27881
27882         * modules/fcntl-tests: New file.
27883         * tests/test-fcntl.c: New file.
27884
27885         * modules/byteswap-tests: New file.
27886         * tests/test-byteswap.c: New file.
27887
27888         * modules/arpa_inet-tests: New file.
27889         * tests/test-arpa_inet.c: New file.
27890
27891 2007-02-17  Bruno Haible  <bruno@clisp.org>
27892
27893         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
27894         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
27895         if the corresponding module is not enabled. Emit link warnings if
27896         the function is used nevertheless.
27897         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
27898         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
27899         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
27900         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
27901         * modules/inttypes (Depends-on): Add link-warning.
27902         (Makefile.am): Copy the contents of build-aux/link-warning.h into
27903         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
27904         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
27905         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
27906         * modules/imaxdiv (configure.ac): Likewise.
27907         * modules/strtoimax (configure.ac): Likewise.
27908         * modules/strtoumax (configure.ac): Likewise.
27909
27910 2007-02-17  Bruno Haible  <bruno@clisp.org>
27911
27912         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
27913         gl_STRING_MODULE_INDICATOR_DEFAULTS.
27914         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
27915         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
27916
27917 2007-02-17  Bruno Haible  <bruno@clisp.org>
27918
27919         * modules/link-warning: New file.
27920         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
27921         * lib/string_.h (GL_LINK_WARNING): Remove definition.
27922         * modules/string (Depends-on): Add link-warning.
27923         (Makefile.am): Copy the contents of build-aux/link-warning.h into
27924         string.h.
27925         * MODULES.html.sh (Support for building libraries and executables): Add
27926         link-warning.
27927
27928 2007-02-17  Bruno Haible  <bruno@clisp.org>
27929
27930         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
27931         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
27932         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
27933         long lines.
27934
27935 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
27936             Bruno Haible  <bruno@clisp.org>
27937
27938         * modules/tmpfile: New file.
27939         * lib/tmpfile.c: New file.
27940         * m4/tmpfile.m4: New file.
27941         * MODULES.html.sh (func_all_modules): New section "Input/output".
27942
27943 2007-02-15  Bruno Haible  <bruno@clisp.org>
27944
27945         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
27946         (supports_delete_on_close): New function.
27947         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
27948
27949 2007-02-14  Bruno Haible  <bruno@clisp.org>
27950
27951         * modules/mbspcasecmp-tests: New file.
27952         * tests/test-mbspcasecmp.sh: New file.
27953         * tests/test-mbspcasecmp.c: New file.
27954
27955         New module mbspcasecmp.
27956         * modules/mbspcasecmp: New file.
27957         * lib/mbspcasecmp.c: New file.
27958         * lib/string_.h (strncasecmp): Change warning message.
27959         (mbspcasecmp): New declaration.
27960         * m4/mbspcasecmp.m4: New file.
27961         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27962         GNULIB_MBSPCASECMP.
27963         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
27964         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
27965
27966 2007-02-14  Bruno Haible  <bruno@clisp.org>
27967
27968         * modules/mbsncasecmp-tests: New file.
27969         * tests/test-mbsncasecmp.sh: New file.
27970         * tests/test-mbsncasecmp.c: New file.
27971
27972         New module mbsncasecmp.
27973         * modules/mbsncasecmp: New file.
27974         * lib/mbsncasecmp.c: New file.
27975         * lib/string_.h (mbsncasecmp): New declaration.
27976         * m4/mbsncasecmp.m4: New file.
27977         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27978         GNULIB_MBSNCASECMP.
27979         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
27980         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
27981
27982 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
27983
27984         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
27985         Verify that it doesn't overlap with our flags.
27986         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
27987         do not have the desired effect in multibyte locales; instead, use
27988         mbscasecmp.
27989         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
27990         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
27991         we don't require GNU fnmatch ourselves (if our users require it, they
27992         should do so explicitly).
27993
27994         Fix regex code so it doesn't rely on strcasecmp.
27995         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
27996         Otherwise, include gnulib's langinfo.h.
27997         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
27998         undesirable behavior in non-C locales.  Instead, rely on localecharset.
27999         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
28000         * modules/regex (FILES): Remove m4/codeset.m4.
28001         (Depends-on): Add localcharset.  Remove strcase.
28002
28003 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28004
28005         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
28006         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
28007
28008 2007-02-13  Bruno Haible  <bruno@clisp.org>
28009
28010         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
28011         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28012
28013 2007-02-12  Bruno Haible  <bruno@clisp.org>
28014
28015         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
28016         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
28017         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
28018         time warning rather than a link error.
28019
28020 2007-02-12  Bruno Haible  <bruno@clisp.org>
28021
28022         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
28023         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28024         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28025
28026 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
28027
28028         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
28029         args, not 2.
28030
28031 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
28032
28033         New module 'time', so that apps can include <time.h> as per
28034         POSIX and GNU instead of separate include files like time_r.h
28035         and timegm.h.  This implementation tries out a simpler approach
28036         for replacing decls in standard include files (as compared to
28037         the string module), somewhat as an experiment.
28038
28039         * config/srclist.txt: Comment out mktime.c for now.
28040         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
28041         since it doesn't apply any more.  Use generic wording instead.
28042         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
28043         'time'.
28044         * lib/time_.h, m4/time_h.m4, modules/time: New files.
28045         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
28046         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
28047         Don't include <sys/types.h>; no longer needed since we assume C89.
28048         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
28049         * lib/strftime.c: Likewise.
28050         * lib/time_r.c: Likewise.
28051         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
28052         * lib/nanosleep.c: Include <time.h> first, to check interface.
28053         * lib/strptime.c: Likewise.
28054         * lib/time_r.c: Likewise.
28055         * lib/timegm.c: Likewise.
28056         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
28057         needed.
28058         * lib/timegm.c: Don't include timegm.h; no longer needed.
28059         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
28060         time.h now handles any problems in that area.
28061         (struct timespec, nanosleep): Remove; time.h now arranges for these.
28062         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
28063         that time.h defines struct timespec.
28064         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
28065         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
28066         handles that.
28067         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
28068         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
28069         needed.  Set REPLACE_LOCALTIME.
28070         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
28071         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
28072         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
28073         nanosleep; time_h.m4 now does that.  Don't require
28074         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
28075         module handles this now.
28076         * modules/getdate (Depends-on): Remove timespec.  Add time.
28077         * modules/nanosleep (Depends-on): Likewise.
28078         * modules/stat-time (Depends-on): Likewise.
28079         * modules/nanosleep (Include): Include time.h, not timespec.h.
28080         * modules/strptime (Files): Remove lib/strptime.h.
28081         (Depends-on): Add extensions, time.
28082         (Include): Include time.h, not strptime.h.
28083         * modules/time_r (Files): Remove lib/time_r.h.
28084         (Depends-on): Add time.
28085         (Include): Include time.h, not time_r.h.
28086         * modules/timegm: Likewise.
28087         * modules/timespec (Description): Now does timespec-related decls
28088         of our own, instead of struct timespec itself.
28089         (Depends-on): Add time; remove extensions.
28090         (Maintainer): Add self.
28091         * modules/utimecmp (Depends-on): Add time; remove timespec.
28092         * modules/utimens (Depends-on): Likewise.
28093         * modules/xnanosleep (Depends-on): Likewise.
28094
28095 2007-02-11  Bruno Haible  <bruno@clisp.org>
28096
28097         * lib/c-strstr.c: Include allocsa.h.
28098         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
28099         * lib/c-strcasestr.c: Include allocsa.h.
28100         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
28101         * lib/strcasestr.c: Include allocsa.h.
28102         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
28103         * lib/mbsstr.c: Include allocsa.h.
28104         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
28105         allocsa/freesa instead of malloc/free.
28106         * lib/mbscasestr.c: Include allocsa.h.
28107         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
28108         allocsa/freesa instead of malloc/free.
28109         * modules/c-strstr (Depends-on): Add allocsa.
28110         * modules/c-strcasestr (Depends-on): Likewise.
28111         * modules/strcasestr (Depends-on): Likewise.
28112         * modules/mbsstr (Depends-on): Likewise.
28113         * modules/mbscasestr (Depends-on): Likewise.
28114
28115 2007-02-11  Bruno Haible  <bruno@clisp.org>
28116
28117         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
28118
28119         * modules/mbsspn-tests: New file.
28120         * tests/test-mbsspn.sh: New file.
28121         * tests/test-mbsspn.c: New file.
28122
28123 2007-02-11  Bruno Haible  <bruno@clisp.org>
28124
28125         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
28126
28127         * modules/mbspbrk-tests: New file.
28128         * tests/test-mbspbrk.sh: New file.
28129         * tests/test-mbspbrk.c: New file.
28130
28131 2007-02-11  Bruno Haible  <bruno@clisp.org>
28132
28133         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
28134         unneeded cast.
28135
28136         * modules/mbscspn-tests: New file.
28137         * tests/test-mbscspn.sh: New file.
28138         * tests/test-mbscspn.c: New file.
28139
28140 2007-02-11  Bruno Haible  <bruno@clisp.org>
28141
28142         * modules/mbscasecmp-tests: New file.
28143         * tests/test-mbscasecmp.sh: New file.
28144         * tests/test-mbscasecmp.c: New file.
28145
28146 2007-02-11  Bruno Haible  <bruno@clisp.org>
28147
28148         Ensure O(n) worst-case complexity of mbscasestr.
28149         * lib/mbscasestr.c: Include stdbool.h.
28150         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
28151         functions.
28152         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
28153         the bookkeeping indicates that it's worth it.
28154         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
28155
28156         * modules/mbscasestr-tests: New file.
28157         * tests/test-mbscasestr1.c: New file.
28158         * tests/test-mbscasestr2.sh: New file.
28159         * tests/test-mbscasestr2.c: New file.
28160         * tests/test-mbscasestr3.sh: New file.
28161         * tests/test-mbscasestr3.c: New file.
28162         * tests/test-mbscasestr4.sh: New file.
28163         * tests/test-mbscasestr4.c: New file.
28164         * m4/locale-tr.m4: New file.
28165
28166 2007-02-11  Bruno Haible  <bruno@clisp.org>
28167
28168         Ensure O(n) worst-case complexity of mbsstr.
28169         * lib/mbsstr.c: Include stdbool.h.
28170         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
28171         functions.
28172         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
28173         bookkeeping indicates that it's worth it.
28174         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
28175
28176         * modules/mbsstr-tests: New file.
28177         * tests/test-mbsstr1.c: New file.
28178         * tests/test-mbsstr2.sh: New file.
28179         * tests/test-mbsstr2.c: New file.
28180         * tests/test-mbsstr3.sh: New file.
28181         * tests/test-mbsstr3.c: New file.
28182         * m4/locale-fr.m4: New file.
28183
28184 2007-02-11  Bruno Haible  <bruno@clisp.org>
28185
28186         * lib/mbsrchr.c (mbsrchr): Fix bug.
28187
28188         * modules/mbsrchr-tests: New file.
28189         * tests/test-mbsrchr.sh: New file.
28190         * tests/test-mbsrchr.c: New file.
28191
28192 2007-02-11  Bruno Haible  <bruno@clisp.org>
28193
28194         * lib/mbschr.c (mbschr): Fix bug.
28195
28196         * modules/mbschr-tests: New file.
28197         * tests/test-mbschr.sh: New file.
28198         * tests/test-mbschr.c: New file.
28199         * m4/locale-zh.m4: New file.
28200
28201 2007-02-11  Bruno Haible  <bruno@clisp.org>
28202
28203         Support for copying multibyte string iterators.
28204         * lib/mbiter.h: Include <string.h>.
28205         (mbiter_multi_copy): New function.
28206         (mbi_copy): New macro.
28207         * lib/mbuiter.h: Include <string.h>.
28208         (mbuiter_multi_copy): New function.
28209         (mbui_copy): New macro.
28210
28211 2007-02-11  Bruno Haible  <bruno@clisp.org>
28212
28213         New module mbslen.
28214         * modules/mbslen: New file.
28215         * lib/mbslen.c: New file.
28216         * lib/string_.h (mbslen): New declaration.
28217         * m4/mbslen.m4: New file.
28218         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28219         GNULIB_MBSLEN.
28220         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
28221         * MODULES.html.sh (Internationalization functions): Add mbslen.
28222
28223 2007-02-11  Bruno Haible  <bruno@clisp.org>
28224
28225         Ensure O(n) worst-case complexity of strcasestr substitute.
28226         * lib/strcasestr.c: Include stdbool.h.
28227         (knuth_morris_pratt): New function.
28228         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
28229         bookkeeping indicates that it's worth it.
28230         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
28231
28232         * modules/strcasestr-tests: New file.
28233         * tests/test-strcasestr.c: New file.
28234
28235 2007-02-11  Bruno Haible  <bruno@clisp.org>
28236
28237         Ensure O(n) worst-case complexity of c_strcasestr.
28238         * lib/c-strcasestr.c: Include stdbool.h, string.h.
28239         (knuth_morris_pratt): New function.
28240         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
28241         the bookkeeping indicates that it's worth it.
28242         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
28243
28244         * modules/c-strcasestr-tests: New file.
28245         * tests/test-c-strcasestr.c: New file.
28246
28247 2007-02-11  Bruno Haible  <bruno@clisp.org>
28248
28249         Ensure O(n) worst-case complexity of c_strstr.
28250         * lib/c-strstr.c: Include stdbool.h, string.h.
28251         (knuth_morris_pratt): New function.
28252         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
28253         bookkeeping indicates that it's worth it.
28254         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
28255
28256         * lib/c-strstr.c: Complete rewrite for maintainability.
28257
28258         * modules/c-strstr-tests: New file.
28259         * tests/test-c-strstr.c: New file.
28260
28261 2007-02-11  Bruno Haible  <bruno@clisp.org>
28262
28263         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
28264         5.2.1 and earlier, whereby \055 was treated just like the range
28265         delimiter '-'.
28266         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
28267
28268 2007-02-08  Bruno Haible  <bruno@clisp.org>
28269
28270         * modules/regex (Depends-on): Add stdbool.
28271         Reported by Dalibor Topic <robilad@kaffe.org>.
28272
28273 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
28274
28275         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
28276         Prefer returning from main to exiting from it.
28277         Remove unnecessary parens after sizeof.
28278
28279 2007-02-05  Bruno Haible  <bruno@clisp.org>
28280
28281         New module mbssep.
28282         * modules/mbssep: New file.
28283         * lib/mbssep.c: New file.
28284         * lib/string_.h (strsep): Add a conditional link warning.
28285         (mbssep): New declaration.
28286         * m4/mbssep.m4: New file.
28287         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28288         GNULIB_MBSSEP.
28289         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
28290         * MODULES.html.sh (Internationalization functions): Add mbssep.
28291
28292 2007-02-05  Bruno Haible  <bruno@clisp.org>
28293
28294         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
28295         Optimize search in case of 1 delimiter.
28296
28297 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
28298
28299         * lib/acl.h: Include sys/types.h before sys/acl.h.
28300
28301 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
28302
28303         Merge upstream fix for glibc bugzilla #3957:
28304
28305         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
28306
28307         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
28308         bit for RE_HAT_LISTS_NOT_NEWLINE.
28309         (build_charclass_op): Remove bogus comment.
28310
28311 2007-02-05  Simon Josefsson  <simon@josefsson.org>
28312
28313         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
28314
28315 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
28316
28317         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
28318         * lib/memmem.c [!defined _LIBC]: Include config.h.
28319
28320 2007-02-04  Bruno Haible  <bruno@clisp.org>
28321
28322         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
28323         warning message.
28324
28325 2007-02-04  Bruno Haible  <bruno@clisp.org>
28326
28327         New module mbstok_r.
28328         * modules/mbstok_r: New file.
28329         * lib/mbstok_r.c: New file.
28330         * lib/string_.h (strtok_r): Change argument names to match the
28331         comments. Add a conditional link warning.
28332         (mbstok_r): New declaration.
28333         * m4/mbstok_r.m4: New file.
28334         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28335         GNULIB_MBSTOK_R.
28336         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
28337         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
28338
28339 2007-02-04  Bruno Haible  <bruno@clisp.org>
28340
28341         New module mbsspn.
28342         * modules/mbsspn: New file.
28343         * lib/mbsspn.c: New file.
28344         * lib/string_.h (strspn): Add a conditional link warning.
28345         (mbsspn): New declaration.
28346         * m4/mbsspn.m4: New file.
28347         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28348         GNULIB_MBSSPN.
28349         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
28350         * MODULES.html.sh (Internationalization functions): Add mbsspn.
28351
28352 2007-02-04  Bruno Haible  <bruno@clisp.org>
28353
28354         New module mbspbrk.
28355         * modules/mbspbrk: New file.
28356         * lib/mbspbrk.c: New file.
28357         * lib/string_.h (strpbrk): Add a conditional link warning.
28358         (mbspbrk): New declaration.
28359         * m4/mbspbrk.m4: New file.
28360         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28361         GNULIB_MBSPBRK.
28362         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
28363         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
28364
28365 2007-02-04  Bruno Haible  <bruno@clisp.org>
28366
28367         New module mbscspn.
28368         * modules/mbscspn: New file.
28369         * lib/mbscspn.c: New file.
28370         * lib/string_.h (strcspn): Add a conditional link warning.
28371         (mbscspn): New declaration.
28372         * m4/mbscspn.m4: New file.
28373         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28374         GNULIB_MBSCSPN.
28375         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
28376         * MODULES.html.sh (Internationalization functions): Add mbscspn.
28377
28378 2007-02-04  Bruno Haible  <bruno@clisp.org>
28379
28380         New module mbscasestr, reduced goal of strcasestr.
28381         * modules/mbscasestr: New file.
28382         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
28383         (mbscasestr): Renamed from strcasestr.
28384         * lib/strcasestr.c: Don't include mbuiter.h.
28385         (strcasestr): Remove support for multibyte locales.
28386         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
28387         Change the conditional link warning.
28388         (mbscasestr): New declaration.
28389         * m4/mbscasestr.m4: New file.
28390         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
28391         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
28392         REPLACE_STRCASESTR.
28393         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
28394         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28395         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
28396         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
28397         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
28398         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
28399         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
28400         (Depends-on): Remove mbuiter.
28401         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
28402
28403 2007-02-04  Bruno Haible  <bruno@clisp.org>
28404
28405         Simplify handling of strncasecmp.
28406         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
28407         the conditional link warning.
28408         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28409         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
28410         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
28411         * modules/strcase (configure.ac): Don't invoke
28412         gl_STRING_MODULE_INDICATOR.
28413         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
28414
28415 2007-02-04  Bruno Haible  <bruno@clisp.org>
28416
28417         New module mbscasecmp, reduced goal of strcasecmp.
28418         * modules/mbscasecmp: New file.
28419         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
28420         (mbscasecmp): Renamed from strcasecmp.
28421         * lib/strcasecmp.c: Don't include mbuiter.h.
28422         (strcasecmp): Remove support for multibyte locales.
28423         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
28424         Change the conditional link warning.
28425         (mbscasecmp): New declaration.
28426         * m4/mbscasecmp.m4: New file.
28427         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
28428         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
28429         REPLACE_STRCASECMP.
28430         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
28431         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28432         GNULIB_MBSCASECMP.
28433         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
28434         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
28435         * modules/strcase (Files): Remove m4/mbrtowc.m4.
28436         (Depends-on): Remove mbuiter.
28437         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
28438
28439 2007-02-04  Bruno Haible  <bruno@clisp.org>
28440
28441         New module mbsstr. Remove module strstr.
28442         * modules/mbsstr: New file.
28443         * modules/strstr: Remove file.
28444         * lib/mbsstr.c: Renamed from lib/strstr.c.
28445         (mbsstr): Renamed from strstr.
28446         * lib/string_.h (strstr): Remove declaration. Change the conditional
28447         link warning.
28448         (mbsstr): New declaration.
28449         * m4/mbsstr.m4: New file.
28450         * m4/strstr.m4: Remove file.
28451         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
28452         REPLACE_STRSTR.
28453         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
28454         Don't initialize GNULIB_STRSTR.
28455         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
28456         substitute GNULIB_STRSTR and REPLACE_STRSTR.
28457         * MODULES.html.sh (Internationalization functions): Add mbsstr.
28458         (Support for systems lacking ANSI C 89): Remove strstr.
28459
28460 2007-02-04  Bruno Haible  <bruno@clisp.org>
28461
28462         New module mbsrchr.
28463         * modules/mbsrchr: New file.
28464         * lib/mbsrchr.c: New file.
28465         * lib/string_.h (strrchr): Add a conditional link warning.
28466         (mbsrchr): New declaration.
28467         * m4/mbsrchr.m4: New file.
28468         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28469         GNULIB_MBSRCHR.
28470         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
28471         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
28472
28473 2007-02-04  Bruno Haible  <bruno@clisp.org>
28474
28475         New module mbschr.
28476         * modules/mbschr: New file.
28477         * lib/mbschr.c: New file.
28478         * lib/string_.h (strchr): Add a conditional link warning.
28479         (mbschr): New declaration.
28480         * m4/mbschr.m4: New file.
28481         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28482         GNULIB_MBSCHR.
28483         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
28484         * MODULES.html.sh (Internationalization functions): Add mbschr.
28485
28486 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
28487
28488         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
28489
28490         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
28491
28492 2007-02-04  Bruno Haible  <bruno@clisp.org>
28493
28494         New module description section 'configure.ac-early'.
28495         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
28496         (func_get_autoconf_early_snippet): New function.
28497         (func_import, func_create_testdir): Use it. Remove special cases for
28498         modules 'extensions' and 'lock'.
28499         * modules/extensions (configure.ac-early): Require
28500         gl_USE_SYSTEM_EXTENSIONS.
28501         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
28502
28503 2007-02-04  Bruno Haible  <bruno@clisp.org>
28504
28505         Make use of gcj-4.3's -fsource and -ftarget option.
28506         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
28507         and if so try the options -fsource and -ftarget.
28508         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
28509         source_version, ftarget_option, target_version arguments.
28510         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
28511         (is_envjavac_oldgcj_14_14_usable): Renamed from
28512         is_envjavac_gcj_14_14_usable.
28513         (is_envjavac_oldgcj_14_13_usable): Renamed from
28514         is_envjavac_gcj_14_13_usable.
28515         (is_gcj_present): Update.
28516         (is_gcj_43, is_gcj43_usable): New functions.
28517         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
28518         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
28519         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
28520         try the options -fsource and -ftarget.
28521
28522 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
28523
28524         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
28525         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
28526         larger value.
28527
28528 2007-02-03  Jim Meyering  <jim@meyering.net>
28529
28530         Give tools a better chance to allocate space for very large buffers.
28531         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
28532
28533         Make pwd and readlink work also when run with an unreadable parent dir
28534         on systems with openat support.
28535         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
28536         provided getcwd function, even when we have openat support.
28537         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
28538
28539 2007-02-02  Bruno Haible  <bruno@clisp.org>
28540
28541         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
28542         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
28543         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
28544         portability problems if one of these functions is only used on specific
28545         platforms.
28546         Reported by Paul Eggert.
28547
28548 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
28549
28550         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
28551         is causing more trouble than it's curing.
28552         * lib/regex_internal.h (__mempcpy): Remove.
28553         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
28554         (and make the code a tad smaller to boot).
28555         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
28556
28557 2007-02-02  Jim Meyering  <jim@meyering.net>
28558
28559         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
28560         section, not in the Makefile.am: one.
28561
28562 2007-02-02  Eric Blake  <ebb9@byu.net>
28563
28564         * lib/strchrnul.c: Always include config.h first.
28565
28566         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
28567         gnulib strstr is not necessary here.
28568
28569 2007-02-02  Simon Josefsson  <simon@josefsson.org>
28570
28571         * m4/socklen.m4: Fix typo.
28572
28573 2007-02-02  Eric Blake  <ebb9@byu.net>
28574
28575         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
28576         * modules/netinet_in (Makefile.am): Likewise.
28577
28578 2007-02-01  Bruno Haible  <bruno@clisp.org>
28579
28580         * lib/string_.h (GL_LINK_WARNING): New macro.
28581         (strcasecmp, strstr, strcasestr): If provided by the system,
28582         conditionally define as a macro that leads to a warning instead of to
28583         an error.
28584         (strncasecmp): Conditionally define as a macro that leads to a warning.
28585
28586 2007-02-01  Karl Berry  <karl@gnu.org>
28587
28588         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
28589
28590 2007-02-01  Bruno Haible  <bruno@clisp.org>
28591
28592         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
28593         renamings.
28594
28595 2007-02-01  Eric Blake  <ebb9@byu.net>
28596
28597         * modules/regex (Depends-on): Revert dependence on mempcpy.
28598         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
28599         module's definition of mempcpy.
28600         Reported by Paul Eggert.
28601
28602 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
28603
28604         * lib/string_.h: If the gnulib module XYZ is not present, undefine
28605         the symbol XYZ before redefining it.  This fixes a problem with
28606         programs that don't use XYZ, when compiled on systems that define
28607         XYZ to something else.
28608
28609 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
28610
28611         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
28612         occurs when "mkdir -m foo" creates a setgid directory that is (1)
28613         writeable to group or other and (2) is intended to have a special
28614         mode bit that is set or cleared.  In such a case, the directory
28615         should be neither group- nor other-writeable until the special
28616         mode bits are right.
28617
28618 2007-01-31  Eric Blake  <ebb9@byu.net>
28619
28620         * modules/mountlist (Depends-on): Add strstr.
28621
28622         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
28623         bug.
28624         * modules/string (Makefile.am): Remove redundant replacement.
28625         * modules/regex (Depends-on): Add mempcpy.
28626
28627 2007-01-31  Bruno Haible  <bruno@clisp.org>
28628
28629         New module description field 'Link'.
28630         * gnulib-tool (func_usage): Document --extract-link-directive.
28631         (sed_extract_prog): Recognize 'Link' directive.
28632         (func_get_link_directive): New function.
28633         (func_import): Show summary of link directives.
28634         Handle --extract-link-directive option.
28635         * modules/acl (Link): New section.
28636         * modules/clock-time (Link): New section.
28637         * modules/euidaccess (Link): New section.
28638         * modules/gettext (Link): New section.
28639         * modules/iconv (Link): New section.
28640         * modules/lock (Link): New section.
28641         * modules/nanosleep (Link): New section.
28642         * modules/readline (Link): New section.
28643
28644 2007-01-27  Bruno Haible  <bruno@clisp.org>
28645
28646         Enforce the use of gnulib modules for unportable <string.h> functions.
28647         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
28648         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
28649         (gl_HEADER_STRING_H_BODY): Require it.
28650         * lib/string_.h: If the gnulib module XYZ is not present, redefine
28651         the symbol XYZ to one that gives a link error.
28652         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
28653         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
28654         * modules/mempcpy (configure.ac): Likewise.
28655         * modules/memrchr (configure.ac): Likewise.
28656         * modules/stpcpy (configure.ac): Likewise.
28657         * modules/stpncpy (configure.ac): Likewise.
28658         * modules/strcase (configure.ac): Likewise.
28659         * modules/strcasestr (configure.ac): Likewise.
28660         * modules/strchrnul (configure.ac): Likewise.
28661         * modules/strdup (configure.ac): Likewise.
28662         * modules/strndup (configure.ac): Likewise.
28663         * modules/strnlen (configure.ac): Likewise.
28664         * modules/strpbrk (configure.ac): Likewise.
28665         * modules/strsep (configure.ac): Likewise.
28666         * modules/strstr (configure.ac): Likewise.
28667         * modules/strtok_r (configure.ac): Likewise.
28668
28669 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
28670
28671         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
28672
28673 2007-01-30  Jim Meyering  <jim@meyering.net>
28674
28675         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
28676
28677 2007-01-29  Bruno Haible  <bruno@clisp.org>
28678
28679         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
28680         * lib/execute.c: Likewise.
28681         * lib/pipe.c: Likewise.
28682         * lib/printf-args.h: Likewise.
28683         * lib/printf-args.c: Likewise.
28684         * lib/printf-parse.c: Likewise.
28685         * lib/vasnprintf.c: Likewise.
28686
28687 2007-01-29  Eric Blake  <ebb9@byu.net>
28688
28689         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
28690         declaration.
28691
28692 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
28693
28694         * lib/strptime.h (strptime): Use 'restrict' for args where
28695         POSIX requires this.
28696         * lib/strptime.c (strptime): Likewise.
28697         Change license notice from LGPL to GPL, since gnulib-tool will
28698         change this as needed.
28699         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
28700         defined.
28701         Include "strptime.h" first, to check interface.
28702         Do not #undef _LIBC and _NL_CURRENT.
28703         Do not include <stdlib.h>; no longer needed.
28704         Include "time_r.h" and declare ptime_locale_status
28705         only if _LIBC is not defined.
28706         (__P): Remove unused macro.
28707         (match_string): Bring back glibc version, but use it only if _LIBC
28708         is defined.
28709         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
28710         Remove unnecessary assertion and abort() call.
28711         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
28712         * m4/strptime.m4: Fix serial number comment.
28713         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
28714         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
28715         (Depends-on): Add time_r.
28716
28717 2007-01-29  Bruno Haible  <bruno@clisp.org>
28718
28719         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28720         strptime.
28721         * modules/strptime (Depends-on): Add stdbool.
28722         * lib/strptime.h: Include <time.h> always. Add comments.
28723
28724 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28725
28726         * modules/strptime: New file.
28727         * lib/strptime.h: New file.
28728         * lib/strptime.c: New file.
28729         * m4/strptime.m4: New file.
28730
28731 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
28732
28733         * MODULES.html.sh: New module mpsort.
28734         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
28735
28736         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
28737         a circularity problem with HP-UX ia64 reported by Bob Proulx in
28738         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
28739         All uses changed.
28740         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
28741         All uses changed.
28742         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
28743         to _Restrict_.
28744         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
28745         the parameter matches the prototype.
28746
28747 2007-01-28  Jim Meyering  <jim@meyering.net>
28748
28749         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
28750         sys/time.h here, reverting that part of the previous patch:
28751         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
28752
28753 2007-01-28  Bruno Haible  <bruno@clisp.org>
28754
28755         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
28756         value of $(SYS_TIME_H).
28757         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
28758         remove it conditionally, too. [added by Jim Meyering]
28759         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
28760         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
28761         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
28762         GETTIMEOFDAY_REPLACEMENT to 1.
28763
28764 2007-01-28  Bruno Haible  <bruno@clisp.org>
28765
28766         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
28767         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
28768         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
28769         Set UNISTD_H instead of UNISTD_H2.
28770         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
28771
28772 2007-01-28  Bruno Haible  <bruno@clisp.org>
28773
28774         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
28775         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
28776
28777 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28778
28779         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
28780         (func_create_testdir): Ensure C locale for `grep' and `tr'
28781         character ranges.
28782         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
28783         ACLOCAL_AMFLAGS parsing state machine.
28784
28785 2007-01-27  Bruno Haible  <bruno@clisp.org>
28786
28787         * modules/unistr/base: Update.
28788
28789 2007-01-27  Bruno Haible  <bruno@clisp.org>
28790
28791         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
28792         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
28793         * modules/unistr/u32-mbtouc-unsafe: Renamed from
28794         modules/unistr/u32-mbtouc.
28795         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
28796         * lib/unistr.h: Update.
28797         * lib/linebreak.c: Update.
28798         * modules/unistr/u32-mbtouc: Renamed from
28799         modules/unistr/u32-mbtouc-safe.
28800         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
28801         * lib/unistr.h: Update.
28802         * lib/unistr/u32-to-u8.c: Update.
28803         * lib/unistr/u32-to-u16.c: Update.
28804
28805 2007-01-27  Bruno Haible  <bruno@clisp.org>
28806
28807         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
28808         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
28809         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
28810         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
28811         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
28812         * modules/unistr/u16-mbtouc-unsafe: Renamed from
28813         modules/unistr/u16-mbtouc.
28814         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
28815         * lib/unistr.h: Update.
28816         * lib/linebreak.c: Update.
28817         * modules/linebreak: Update.
28818         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
28819         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
28820         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
28821         * modules/unistr/u16-mbtouc: Renamed from
28822         modules/unistr/u16-mbtouc-safe.
28823         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
28824         * lib/unistr.h: Update.
28825         * lib/unistr/u16-to-u8.c: Update.
28826         * modules/unistr/u16-to-u8: Update.
28827         * lib/unistr/u16-to-u32.c: Update.
28828         * modules/unistr/u16-to-u32: Update.
28829
28830 2007-01-27  Bruno Haible  <bruno@clisp.org>
28831
28832         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
28833         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
28834         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
28835         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
28836         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
28837         * modules/unistr/u8-mbtouc-unsafe: Renamed from
28838         modules/unistr/u8-mbtouc.
28839         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
28840         * lib/unistr.h: Update.
28841         * lib/striconveh.c: Update.
28842         * modules/striconveh: Update.
28843         * lib/linebreak.c: Update.
28844         * modules/linebreak: Update.
28845         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
28846         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
28847         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
28848         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
28849         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
28850         * lib/unistr.h: Update.
28851         * lib/striconveh.c: Update.
28852         * modules/striconveh: Update.
28853         * lib/unistr/u8-to-u16.c: Update.
28854         * modules/unistr/u8-to-u16: Update.
28855         * lib/unistr/u8-to-u32.c: Update.
28856         * modules/unistr/u8-to-u32: Update.
28857
28858 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28859
28860         Sync from Libtool.
28861         * lib/argz.c: Do not include strings.h nor memory.h, include
28862         string.h unconditionally.  Patch by Simon Josefsson.
28863
28864 2007-01-27  Bruno Haible  <bruno@clisp.org>
28865
28866         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
28867         from gl_HEADER_STRING_H_BODY.
28868         (gl_HEADER_STRING_H_BODY): Require it.
28869         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
28870         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
28871         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
28872         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
28873         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28874         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
28875         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28876         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
28877         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
28878         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
28879         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
28880         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
28881         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
28882         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28883         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
28884
28885 2007-01-27  Bruno Haible  <bruno@clisp.org>
28886
28887         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
28888         check_PROGRAMS into noinst_PROGRAMS.
28889         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
28890         check_PROGRAMS in this case.
28891         (func_import): Set for_test to false.
28892         (func_create_testdir): Set for_test to true.
28893
28894 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
28895             Bruno Haible  <bruno@clisp.org>
28896
28897         * modules/strcasestr (Files): Remove lib/strcasestr.h.
28898         (Depends-on): Add string.
28899         (Includes): Use <string.h> instead of strcasestr.h.
28900         * modules/string (Makefile.am): Also substitute the value of
28901         REPLACE_STRCASESTR.
28902         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
28903         assume strcasestr is declared in <string.h> not <strings.h>. Also
28904         set REPLACE_STRCASESTR.
28905         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
28906         REPLACE_STRCASESTR.
28907         * lib/strcasestr.h: Remove file.
28908         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
28909         * lib/string_.h (strcasestr): New declaration.
28910
28911 2007-01-27  Bruno Haible  <bruno@clisp.org>
28912
28913         * lib/string_.h: Use 'extern'.
28914
28915 2007-01-27  Jim Meyering  <jim@meyering.net>
28916
28917         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
28918         of set-but-not-used local, "q".
28919
28920         * lib/mempcpy.c: Include <config.h> before <string.h>.
28921         This fixes a compilation error on HP-UX, due to the system's
28922         "restrict"-using mempcpy prototype.
28923
28924 2007-01-26  Bruno Haible  <bruno@clisp.org>
28925
28926         Small optimization.
28927         * lib/javacomp.c: Include c-strstr.h.
28928          (is_envjavac_gcj): Use c_strstr instead of strstr.
28929         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
28930
28931 2007-01-26  Bruno Haible  <bruno@clisp.org>
28932
28933         * MODULES.html.sh (Unicode string functions): Add the new modules.
28934
28935         * modules/uniconv/u32-strconv-to-locale: New file.
28936         * lib/uniconv/u32-strconv-to-locale.c: New file.
28937
28938         * modules/uniconv/u16-strconv-to-locale: New file.
28939         * lib/uniconv/u16-strconv-to-locale.c: New file.
28940
28941         * modules/uniconv/u8-strconv-to-locale: New file.
28942         * lib/uniconv/u8-strconv-to-locale.c: New file.
28943
28944         * modules/uniconv/u32-strconv-from-locale: New file.
28945         * lib/uniconv/u32-strconv-from-locale.c: New file.
28946
28947         * modules/uniconv/u16-strconv-from-locale: New file.
28948         * lib/uniconv/u16-strconv-from-locale.c: New file.
28949
28950         * modules/uniconv/u8-strconv-from-locale: New file.
28951         * lib/uniconv/u8-strconv-from-locale.c: New file.
28952
28953         * modules/uniconv/u32-strconv-to-enc: New file.
28954         * lib/uniconv/u32-strconv-to-enc.c: New file.
28955         * modules/uniconv/u32-strconv-to-enc-tests: New file.
28956         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
28957
28958         * modules/uniconv/u16-strconv-to-enc: New file.
28959         * lib/uniconv/u16-strconv-to-enc.c: New file.
28960         * lib/uniconv/u-strconv-to-enc.h: New file.
28961         * modules/uniconv/u16-strconv-to-enc-tests: New file.
28962         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
28963
28964         * modules/uniconv/u8-strconv-to-enc: New file.
28965         * lib/uniconv/u8-strconv-to-enc.c: New file.
28966         * modules/uniconv/u8-strconv-to-enc-tests: New file.
28967         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
28968
28969         * modules/uniconv/u32-strconv-from-enc: New file.
28970         * lib/uniconv/u32-strconv-from-enc.c: New file.
28971         * modules/uniconv/u32-strconv-from-enc-tests: New file.
28972         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
28973
28974         * modules/uniconv/u16-strconv-from-enc: New file.
28975         * lib/uniconv/u16-strconv-from-enc.c: New file.
28976         * modules/uniconv/u16-strconv-from-enc-tests: New file.
28977         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
28978
28979         * modules/uniconv/u8-strconv-from-enc: New file.
28980         * lib/uniconv/u8-strconv-from-enc.c: New file.
28981         * lib/uniconv/u-strconv-from-enc.h: New file.
28982         * modules/uniconv/u8-strconv-from-enc-tests: New file.
28983         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
28984
28985         * modules/uniconv/u32-conv-from-enc: New file.
28986         * lib/uniconv/u32-conv-from-enc.c: New file.
28987         * modules/uniconv/u32-conv-from-enc-tests: New file.
28988         * tests/uniconv/test-u32-conv-from-enc.c: New file.
28989
28990         * modules/uniconv/u16-conv-from-enc: New file.
28991         * lib/uniconv/u16-conv-from-enc.c: New file.
28992         * lib/uniconv/u-conv-from-enc.h: New file.
28993         * modules/uniconv/u16-conv-from-enc-tests: New file.
28994         * tests/uniconv/test-u16-conv-from-enc.c: New file.
28995
28996         * modules/uniconv/u8-conv-from-enc: New file.
28997         * lib/uniconv/u8-conv-from-enc.c: New file.
28998         * modules/uniconv/u8-conv-from-enc-tests: New file.
28999         * tests/uniconv/test-u8-conv-from-enc.c: New file.
29000
29001         * modules/uniconv/base: New file.
29002         * lib/uniconv.h: New file.
29003
29004 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
29005
29006         * doc/gnulib-tool.texi (Initial import): Update to match current
29007         behavior with strdup module.
29008         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
29009         * lib/memmem.h: Remove; all uses removed.  This is now done
29010         by <string.h>.
29011         * lib/mempcpy.h: Likewise.
29012         * lib/memrchr.h: Likewise.
29013         * lib/stpcpy.h: Likewise.
29014         * lib/stpncpy.h: Likewise.
29015         * lib/strcase.h: Likewise.
29016         * lib/strchrnul.h: Likewise.
29017         * lib/strdup.h: Likewise.
29018         * lib/strndup.h: Likewise.
29019         * lib/strnlen.h: Likewise.
29020         * lib/strpbrk.h: Likewise.
29021         * lib/strsep.h: Likewise.
29022         * lib/strstr.h: Likewise.
29023         * lib/strtok_r.h: Likewise.
29024         * lib/string_.h: New file.
29025         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
29026         Rely on <string.h> instead.
29027         * lib/canon-host.c: Likewise.
29028         * lib/chdir-long.c: Likewise.
29029         * lib/concatpath.c: Likewise.
29030         * lib/exclude.c: Likewise.
29031         * lib/fchdir.c: Likewise.
29032         * lib/getaddrinfo.c: Likewise.
29033         * lib/getcwd.c: Likewise.
29034         * lib/getsubopt.c: Likewise.
29035         * lib/glob.c: Likewise.
29036         * lib/hard-locale.c: Likewise.
29037         * lib/iconvme.c: Likewise.
29038         * lib/javacomp.c: Likewise.
29039         * lib/mempcpy.c: Likewise.
29040         * lib/memrchr.c: Likewise.
29041         * lib/regex_internal.h: Likewise.
29042         * lib/stpncpy.c: Likewise.
29043         * lib/strcasecmp.c: Likewise.
29044         * lib/strchrnul.c: Likewise.
29045         * lib/strdup.c: Likewise.
29046         * lib/striconv.c: Likewise.
29047         * lib/striconveh.c: Likewise.
29048         * lib/striconveha.c: Likewise.
29049         * lib/strncasecmp.c: Likewise.
29050         * lib/strndup.c: Likewise.
29051         * lib/strnlen.c: Likewise.
29052         * lib/strsep.c: Likewise.
29053         * lib/strstr.c: Likewise.
29054         * lib/strtok_r.c: Likewise.
29055         * lib/userspec.c: Likewise.
29056         * lib/w32spawn.h: Likewise.
29057         * lib/xstrndup.c: Likewise.
29058         * lib/mountlist.c (strstr): Remove decl.
29059         * m4/string_h.m4: New file.
29060         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
29061         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
29062         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
29063         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
29064         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
29065         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
29066         Set REPLACE_STRCASECMP if necessary.
29067         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
29068         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
29069         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
29070         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
29071         HAVE_DECL_STRDUP if necessary.
29072         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
29073         since gl_FUNC_STRNDUP does that now.
29074         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
29075         Check for decl here...
29076         (gl_PREREQ_STRNLEN): ... not here.
29077         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
29078         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
29079         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
29080         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
29081         necessary.
29082         * modules/string: New file.
29083         * modules/memmem (Files): Remove special-purpose include file.
29084         (Depends-on): Add string.
29085         (Include): Include <string.h>, not the removed file.
29086         * modules/mempcpy: Likewise.
29087         * modules/memrchr: Likewise.
29088         * modules/stpcpy: Likewise.
29089         * modules/stpncpy: Likewise.
29090         * modules/strcase: Likewise.
29091         * modules/strchrnul: Likewise.
29092         * modules/strdup: Likewise.
29093         * modules/strndup: Likewise.
29094         * modules/strnlen: Likewise.
29095         * modules/strpbrk: Likewise.
29096         * modules/strsep: Likewise.
29097         * modules/strstr: Likewise.
29098         * modules/strtok_r: Likewise.
29099         * tests/test-dirname.c: Don't include "strdup.h", since
29100         <string.h> now suffices.
29101         * tests/test-memmem.c: Don't include "memmem.h", since
29102         <string.h> now suffices.
29103
29104 2007-01-25  Bruno Haible  <bruno@clisp.org>
29105
29106         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
29107         *resultp is 0.
29108
29109         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
29110         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
29111         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
29112         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
29113
29114         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
29115         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
29116         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
29117         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
29118         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
29119         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
29120
29121 2007-01-24  Bruno Haible  <bruno@clisp.org>
29122
29123         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
29124         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
29125         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
29126         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
29127         gl_FUNC_FTS_CORE.
29128         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
29129         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
29130         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
29131         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
29132         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
29133         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
29134         gl_FUNC_FCHOWNAT.
29135         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
29136         gl_FUNC_STRFTIME.
29137         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
29138         Reported by Ralf Wildenhues.
29139
29140 2007-01-24  Bruno Haible  <bruno@clisp.org>
29141
29142         Drop AC_REQUIRE calls that are redundant with the module dependencies.
29143         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
29144         gl_GETADDRINFO.
29145         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
29146         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
29147         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
29148
29149 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
29150
29151         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
29152         Don't use 'exit'; just return from 'main'.
29153         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
29154
29155         * lib/fnmatch_.h: Readjust white space and comments to match
29156         glibc, to avoid spurious diffs.
29157
29158 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
29159
29160         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
29161         2004-12-01 change by Jakub Jelinek, since this code won't compile
29162         if !LIBC.  Problem reported by Bob Proulx.
29163
29164 2007-01-23  Bruno Haible  <bruno@clisp.org>
29165
29166         * lib/striconveh.c: Include c-strcaseeq.h.
29167         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
29168         * modules/striconveh (Depends-on): Add c-strcaseeq.
29169
29170 2007-01-23  Bruno Haible  <bruno@clisp.org>
29171
29172         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
29173
29174         * modules/c-strcaseeq: New file.
29175         * lib/c-strcaseeq.h: New file.
29176
29177         * modules/streq: New file.
29178         * lib/streq.h: New file.
29179
29180 2007-01-23  Bruno Haible  <bruno@clisp.org>
29181
29182         * modules/striconveha-tests: New file.
29183         * tests/test-striconveha.c: New file.
29184
29185         * lib/striconveha.h: Include <stdbool.h>.
29186         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
29187         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
29188         (mem_iconveha_notranslit): Renamed from mem_iconveha.
29189         (mem_iconveha): New function.
29190         (str_iconveha_notranslit): Renamed from str_iconveha.
29191         (str_iconveha): New function.
29192         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
29193         c-strcase.
29194
29195 2007-01-23  Bruno Haible  <bruno@clisp.org>
29196
29197         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
29198         encodings without forgiving before trying any encoding with handler.
29199         (str_iconveha): Try all encodings without forgiving before trying any
29200         encoding with handler.
29201
29202 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
29203
29204         Import the following changes from libc.
29205
29206         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
29207
29208         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
29209
29210         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
29211
29212         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
29213         normal_bracket label.
29214
29215         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
29216
29217         [BZ #361]
29218         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
29219         to normal_bracket after fetching the next character.
29220
29221 2007-01-22  Bruno Haible  <bruno@clisp.org>
29222
29223         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
29224         argument.
29225         * lib/striconveh.c (iconv_carefully_1): New function.
29226         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
29227         argument.
29228         (str_cd_iconveh): Update.
29229         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
29230         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
29231         * tests/test-striconveh.c (MAGIC): New macro.
29232         (new_offsets): New function.
29233         (main): Test call with and without offsets.
29234
29235 2007-01-22  Bruno Haible  <bruno@clisp.org>
29236
29237         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
29238         * modules/sys_select (Makefile.am): Likewise.
29239         * modules/sys_socket (Makefile.am): Likewise.
29240         * modules/sys_time (Makefile.am): Likewise.
29241
29242 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
29243
29244         * modules/gettimeofday (License): Change from GPL to LGPL, since
29245         gettimeofday is a library function.
29246
29247 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29248
29249         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
29250
29251 2007-01-21  Bruno Haible  <bruno@clisp.org>
29252
29253         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
29254
29255 2007-01-21  Bruno Haible  <bruno@clisp.org>
29256
29257         * modules/striconveha: New file.
29258         * lib/striconveha.h: New file.
29259         * lib/striconveha.c: New file.
29260         * MODULES.html.sh (Internationalization functions): Add striconveha.
29261         * lib/striconv.c (str_iconv): Optimize the case of an empty input
29262         string.
29263         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
29264
29265 2007-01-21  Bruno Haible  <bruno@clisp.org>
29266
29267         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
29268         * lib/striconveh.c (str_iconveh): Likewise.
29269
29270 2007-01-21  Bruno Haible  <bruno@clisp.org>
29271
29272         * lib/striconveh.h (mem_iconveh): New declaration.
29273         * lib/striconveh.c (mem_iconveh): New function.
29274         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
29275
29276 2007-01-21  Bruno Haible  <bruno@clisp.org>
29277
29278         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
29279
29280         * lib/striconveh.h (mem_cd_iconveh): Change specification.
29281         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
29282         original result buffer.
29283         (str_cd_iconveh): Update.
29284         * tests/test-striconveh.c (main): Update.
29285
29286         * lib/striconv.h (mem_cd_iconv): Change specification.
29287         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
29288         result buffer.
29289         (str_cd_iconv): Update.
29290         * tests/test-striconv.c (main): Update.
29291
29292 2007-01-21  Bruno Haible  <bruno@clisp.org>
29293
29294         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
29295
29296 2007-01-20  Jim Meyering  <jim@meyering.net>
29297
29298         * lib/userspec.c (parse_with_separator): If a user or group string
29299         starts with "+", skip the corresponding name-to-ID look-up, since
29300         such a look-up must fail: user and group names may not include "+".
29301
29302 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
29303
29304         * lib/poll.c: Include sys/time.h and time.h unconditionally,
29305         since we now assume the sys_time module.
29306         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
29307         check for sys/time.h; no longer needed.
29308         * modules/poll (Depends-on): Depend on sys_time.
29309
29310 2007-01-18  Bruno Haible  <bruno@clisp.org>
29311
29312         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
29313         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
29314
29315         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
29316         gettimeofday.
29317
29318         * tests/test-gettimeofday.c: Include <time.h>.
29319         (dummy): Remove variable.
29320
29321         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
29322         gl_HEADER_SYS_TIME_H.
29323         (gl_HEADER_SYS_TIME_H): New macro.
29324
29325         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
29326         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
29327         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
29328         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
29329         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
29330         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
29331         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
29332         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
29333         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
29334         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
29335         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
29336
29337         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
29338         last change; it caused a compilation error when cross-compiling to
29339         Cygwin.
29340
29341 2007-01-18  Jim Meyering  <jim@meyering.net>
29342
29343         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
29344         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
29345         than the race-prone "test -d sys || mkdir sys".
29346         (configure.ac): Use AC_PROG_MKDIR_P.
29347         * modules/sys_select: Likewise.
29348         * modules/sys_socket: Likewise.
29349         * modules/sys_time: Likewise.
29350
29351 2007-01-18  Eric Blake  <ebb9@byu.net>
29352
29353         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
29354         replace gettimeofday.
29355         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
29356         name, to avoid infinite recursion.
29357
29358 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
29359
29360         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
29361         module sys_time.
29362         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
29363         assume timespec.h defines struct timeval.
29364         * lib/settime.c: Likewise.
29365         * lib/utimens.c: Likewise.
29366         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
29367         since we now assume the gettimeofday module.
29368         * lib/tempname.c (__gen_tempname): Likewise.
29369         * lib/gettimeofday.h: Remove.
29370         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
29371         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
29372         Include <time.h>, for 'time()'.
29373         (localtime_buffer_addr): Also use this workaround if
29374         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
29375         to simplify the uses.  All uses changed.
29376         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
29377         that #undef is inside {}, and 'const' follows type name consistently.
29378         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
29379         (gettimeofday): Do not use the maximum possible value for
29380         tv->tv_usec, since that might break usages other than ls.c.
29381         Instead, we'll leave ls.c alone.  This undoes today's patch
29382         by Bruno.  Add a compile-time warning for 1s-clock resolution;
29383         we've never observed the problem but might as well keep the
29384         canary.
29385         * lib/nanosleep.c: Include timespec.h first, for interface check.
29386         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
29387         now assume the sys_time module.
29388         * lib/tempname.c: Likewise.
29389         * lib/timespec.h: Likewise.
29390         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
29391         needed.
29392         * lib/strftime.c: Likewise.
29393         * lib/timespec.h: Likewise.
29394         * lib/posixtm.c: Include posixtm.h first, for interface check.
29395         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
29396         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
29397         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
29398         * lib/sys_time_.h: New file.
29399         * lib/timespec.h (struct timespec): Use long int, not long.
29400         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
29401         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
29402         Remove obsolescent call to AC_HEADER_TIME.
29403         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
29404         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29405         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
29406         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
29407         Likewise.
29408         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
29409         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
29410         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
29411         into the sys_time module.  Check for gettimeofday just once.
29412         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
29413         for gettimeofday signature to just check the signature.  Merely
29414         compile it, since linking doesn't test signature.  Improve test for
29415         whether gettimeofday.o is actually needed.
29416         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
29417         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
29418         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
29419         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
29420         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
29421         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
29422         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
29423         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
29424         than worrying about sys/time.h.
29425         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
29426         Don't bother worrying about TIME_WITH_SYS_TIME.
29427         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
29428         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
29429         * m4/sys_time_h.m4: New file.
29430         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
29431         Don't include sys/time.h.  Return from main rather than exiting.
29432         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
29433         all uses changed.
29434         * modules/gethrxtime (Depends-on): Add sys_time.
29435         * modules/gettime (Depends-on): Likewise.
29436         * modules/gettimeofday (Depends-on): Likewise.
29437         * modules/nanosleep (Depends-on): Likewise.
29438         * modules/settime (Depends-on): Likewise.
29439         * modules/tempname (Depends-on): Likewise.
29440         * modules/utimens (Depends-on): Likewise.
29441         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
29442         (Include:) Change back to <sys/time.h>.
29443         (Maintainer:) Add self.
29444         * modules/sys_time: New file.
29445         * modules/tempname (Depends-on): Add gettimeofday.
29446         * tests/test-gettimeofday.c: Include <sys/time.h>
29447         rather than gettimeofday.h.
29448
29449 2007-01-17  Bruno Haible  <bruno@clisp.org>
29450
29451         * gnulib-tool (func_get_license): Revert last patch. Instead, let
29452         the license default to GPL.
29453         (func_create_testdir): Don't complain if a module is LGPL and its
29454         tests module depends on GPLed modules.
29455
29456 2007-01-17  Bruno Haible  <bruno@clisp.org>
29457
29458         * lib/gettimeofday.c (gettimeofday): Add code for the case
29459         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
29460         maximum possible value for tv->tv_usec, rather than the minimum one.
29461
29462 2005-10-08  Martin Lambers  <marlam@marlam.de>
29463 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
29464 2007-01-16  Bruno Haible  <bruno@clisp.org>
29465
29466         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
29467         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
29468         gl_FUNC_GETTIMEOFDAY.
29469         (Include): Add gettimeofday.h.
29470         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
29471         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
29472         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
29473         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
29474         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
29475         * lib/gettimeofday.h: New file.
29476         * lib/gettimeofday.c: Include <sys/timeb.h>.
29477         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
29478         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
29479         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
29480         fall back on time().
29481
29482         * tests/test-gettimeofday.c: New file.
29483         * modules/gettimeofday-tests: New file.
29484
29485 2007-01-16  Eric Blake  <ebb9@byu.net>
29486
29487         * modules/fnmatch (Depends-on): Depend on wchar.
29488         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
29489         * m4/fnmatch.m4: Likewise.
29490         * modules/mbchar (Makefile.am): Assume <wchar.h>.
29491         * m4/mbchar.m4: Likewise.
29492         * modules/mbswidth (Depends-on): Depend on wchar.
29493         * lib/mbswidth.c: Assume <wchar.h>.
29494         * m4/mbswidth.m4: Likewise.
29495         * modules/quotearg (Depends-on): Depend on wchar.
29496         * lib/quotearg.c: Assume <wchar.h>.
29497         * m4/quotearg.m4: Likewise.
29498         * modules/regex (Depends-on): Depend on wchar.
29499         * lib/regex_internal.h: Assume <wchar.h>.
29500         * m4/regex.m4: Likewise.
29501         * modules/stdint (Depends-on): Depend on wchar.
29502         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
29503         * m4/stdint.m4: Likewise.
29504         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
29505         * modules/strftime (Depends-on): Depend on wchar.
29506         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
29507         * modules/strtol (Depends-on): Depend on wchar.
29508         * lib/strtol.c: Assume <wchar.h>.
29509         * modules/wcwidth (Depends-on): Depend on wchar.
29510         * lib/wcwidth.h: Assume <wchar.h>.
29511         * m4/wcwidth.m4: Likewise.
29512
29513 2007-01-16  Bruno Haible  <bruno@clisp.org>
29514
29515         * modules/csharpexec-script: New, created from...
29516         * modules/csharpexec: ... this.
29517
29518 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
29519
29520         * modules/javaexec-script: New, created from...
29521         * modules/javaexec: ... this.
29522
29523 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29524
29525         * modules/poll (Dependencies): Add sys_select.
29526
29527 2007-01-15  Jim Meyering  <jim@meyering.net>
29528
29529         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
29530         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
29531         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
29532         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
29533
29534 2007-01-15  Bruno Haible  <bruno@clisp.org>
29535
29536         * modules/striconveh: New file.
29537         * lib/striconveh.h: New file.
29538         * lib/striconveh.c: New file.
29539         * MODULES.html.sh (Internationalization functions): Add striconveh.
29540
29541         * modules/striconveh-tests: New file.
29542         * tests/test-striconveh.c: New file.
29543
29544 2007-01-15  Bruno Haible  <bruno@clisp.org>
29545
29546         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
29547         not from GNU libiconv or GNU libc.
29548
29549 2007-01-15  Bruno Haible  <bruno@clisp.org>
29550
29551         * doc/gnulib-intro.texi (Copyright): Explain the different license
29552         terms for module descriptions, autoconf macros, tests, documentation.
29553
29554 2007-01-14  Bruno Haible  <bruno@clisp.org>
29555
29556         * modules/striconv-tests: New file.
29557         * tests/test-striconv.c: New file.
29558
29559 2007-01-14  Bruno Haible  <bruno@clisp.org>
29560
29561         * modules/iconv-tests: New file.
29562         * tests/test-iconv.c: New file.
29563
29564 2007-01-14  Bruno Haible  <bruno@clisp.org>
29565
29566         * gnulib-tool (func_get_license): For test modules, use the license of
29567         the main module.
29568
29569 2007-01-14  Bruno Haible  <bruno@clisp.org>
29570
29571         * modules/iconv (Include): Clarify that <iconv.h> can only be included
29572         if iconv is found to exist.
29573
29574 2007-01-14  Bruno Haible  <bruno@clisp.org>
29575
29576         * modules/c-ctype-tests: New file.
29577         * tests/test-c-ctype.c: New file.
29578
29579 2007-01-14  Bruno Haible  <bruno@clisp.org>
29580
29581         * modules/binary-io-tests: New file.
29582         * tests/test-binary-io.sh: New file.
29583         * tests/test-binary-io.c: New file.
29584
29585 2007-01-14  Bruno Haible  <bruno@clisp.org>
29586
29587         * modules/array-oset-tests: New file.
29588         * tests/test-array_oset.c: New file.
29589
29590 2007-01-14  Bruno Haible  <bruno@clisp.org>
29591
29592         * modules/array-list-tests: New file.
29593         * tests/test-array_list.c: New file.
29594
29595 2007-01-14  Bruno Haible  <bruno@clisp.org>
29596
29597         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
29598         and make.
29599         Reported by Simon Josefsson in
29600         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
29601
29602 2007-01-14  Bruno Haible  <bruno@clisp.org>
29603
29604         * modules/allocsa-tests: New file.
29605         * tests/test-allocsa.c: New file.
29606
29607 2007-01-14  Bruno Haible  <bruno@clisp.org>
29608
29609         * modules/fchdir (Depends-on): Add absolute-header.
29610         * modules/unistd (Depends-on): Likewise.
29611
29612 2006-12-30  Bruno Haible  <bruno@clisp.org>
29613
29614         * modules/fchdir: New file.
29615         * modules/unistd (Files): Add lib/unistd_.h.
29616         (Makefile.am): Generate unistd.h from unistd_.h.
29617         * lib/fchdir.c: New file.
29618         * lib/dirent_.h: New file.
29619         * lib/unistd_.h: New file.
29620         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
29621         * m4/fchdir.m4: New file.
29622         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
29623         (gl_HEADER_UNISTD): Invoke it.
29624         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
29625         function.
29626         * lib/backupfile.c (opendir, closedir): Undefine.
29627         * lib/chown.c (open, close): Undefine.
29628         * lib/clean-temp.c (open, close): Undefine.
29629         * lib/copy-file.c (open, close): Undefine.
29630         * lib/execute.c (open, close): Undefine.
29631         * lib/fsusage.c (open, close): Undefine.
29632         * lib/gc-gnulib.c (open, close): Undefine.
29633         * lib/getcwd.c (opendir, closedir): Undefine.
29634         * lib/glob.c (opendir, closedir): Undefine.
29635         * lib/javacomp.c (open, close): Undefine.
29636         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
29637         * lib/openat-proc.c (open, close): Undefine.
29638         * lib/pagealign_alloc.c (open, close): Undefine.
29639         * lib/pipe.c (open, close): Undefine.
29640         * lib/progreloc.c (open, close): Undefine.
29641         * lib/savedir.c (opendir, closedir): Undefine.
29642         * lib/utime.c (open, close): Undefine.
29643         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
29644
29645 2007-01-10  Bruno Haible  <bruno@clisp.org>
29646
29647         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
29648
29649 2007-01-12  Eric Blake  <ebb9@byu.net>
29650
29651         Provide a robust <wchar.h>.  Further simplifications are now
29652         possible in other modules, but not included here.
29653         * modules/wchar: New module.
29654         * m4/wchar.m4: New file.
29655         * lib/wchar_.h: Likewise.
29656         * modules/mbchar (Depends-on): Depend on wchar, as the first use
29657         of the new module.
29658         * MODULES.html.sh (Extended multibyte and wide character utilities):
29659         New section.
29660
29661 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
29662
29663         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
29664         to a reasonable default for memory allocation.
29665         (xreadlink): Don't allocate a huge buffer, to work around a buggy
29666         file system that reports garbage st_size values for symlinks.
29667         Problem reported by Liyang Hu.
29668
29669 2007-01-11  Simon Josefsson  <simon@josefsson.org>
29670
29671         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
29672         Emacs .#* auto-save files).
29673
29674 2007-01-11  Bruno Haible  <bruno@clisp.org>
29675
29676         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
29677         directory.
29678
29679 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
29680
29681         Use @...@ consistently in lib/wctype_.h.
29682         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
29683         on it being set to 1 or 0.
29684         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
29685         go back to AC_SUBSTing it.
29686         * modules/wctype (Makefile.am): Undo previous change.
29687
29688 2007-01-10  Eric Blake  <ebb9@byu.net>
29689
29690         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
29691         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
29692         * modules/wctype (Makefile.am): Likewise.
29693         Reported by Chris McGuire.
29694
29695 2007-01-10  Jim Meyering  <jim@meyering.net>
29696
29697         fts.c: a small readability/maintainability improvement
29698         * lib/fts.c (fts_read): Make this code slightly more readable and
29699         maintainable by hoisting the "sp->fts_cur = p" assignments to
29700         immediately follow the statements that set P.  Derived from
29701         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
29702
29703 2007-01-10  Eric Blake  <ebb9@byu.net>
29704
29705         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
29706         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
29707         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29708         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
29709         Reported by Chris McGuire.
29710
29711 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29712
29713         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
29714         in sed script.
29715
29716 2007-01-09  Bruno Haible  <bruno@clisp.org>
29717
29718         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
29719         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
29720         variables.
29721         (func_module): Use them.
29722
29723 2007-01-09  Bruno Haible  <bruno@clisp.org>
29724
29725         * modules/unistr/base: New file.
29726         * lib/unistr.h: New file.
29727
29728         * modules/unistr/u8-to-u16: New file.
29729         * lib/unistr/u8-to-u16.c: New file.
29730
29731         * modules/unistr/u8-to-u32: New file.
29732         * lib/unistr/u8-to-u32.c: New file.
29733
29734         * modules/unistr/u16-to-u8: New file.
29735         * lib/unistr/u16-to-u8.c: New file.
29736
29737         * modules/unistr/u16-to-u32: New file.
29738         * lib/unistr/u16-to-u32.c: New file.
29739
29740         * modules/unistr/u32-to-u8: New file.
29741         * lib/unistr/u32-to-u8.c: New file.
29742
29743         * modules/unistr/u32-to-u16: New file.
29744         * lib/unistr/u32-to-u16.c: New file.
29745
29746         * modules/unistr/u8-check: New file.
29747         * modules/unistr/u16-check: New file.
29748         * modules/unistr/u32-check: New file.
29749         * lib/unistr/u8-check.c: New file.
29750         * lib/unistr/u16-check.c: New file.
29751         * lib/unistr/u32-check.c: New file.
29752
29753         * modules/unistr/u8-chr: New file.
29754         * modules/unistr/u16-chr: New file.
29755         * modules/unistr/u32-chr: New file.
29756         * lib/unistr/u8-chr.c: New file.
29757         * lib/unistr/u16-chr.c: New file.
29758         * lib/unistr/u32-chr.c: New file.
29759
29760         * modules/unistr/u8-cmp: New file.
29761         * modules/unistr/u16-cmp: New file.
29762         * modules/unistr/u32-cmp: New file.
29763         * lib/unistr/u8-cmp.c: New file.
29764         * lib/unistr/u16-cmp.c: New file.
29765         * lib/unistr/u32-cmp.c: New file.
29766
29767         * modules/unistr/u8-cpy: New file.
29768         * modules/unistr/u16-cpy: New file.
29769         * modules/unistr/u32-cpy: New file.
29770         * lib/unistr/u8-cpy.c: New file.
29771         * lib/unistr/u16-cpy.c: New file.
29772         * lib/unistr/u32-cpy.c: New file.
29773         * lib/unistr/u-cpy.h: New file.
29774
29775         * modules/unistr/u8-cpy-alloc: New file.
29776         * modules/unistr/u16-cpy-alloc: New file.
29777         * modules/unistr/u32-cpy-alloc: New file.
29778         * lib/unistr/u8-cpy-alloc.c: New file.
29779         * lib/unistr/u16-cpy-alloc.c: New file.
29780         * lib/unistr/u32-cpy-alloc.c: New file.
29781         * lib/unistr/u-cpy-alloc.h: New file.
29782
29783         * modules/unistr/u8-endswith: New file.
29784         * modules/unistr/u16-endswith: New file.
29785         * modules/unistr/u32-endswith: New file.
29786         * lib/unistr/u8-endswith.c: New file.
29787         * lib/unistr/u16-endswith.c: New file.
29788         * lib/unistr/u32-endswith.c: New file.
29789         * lib/unistr/u-endswith.h: New file.
29790
29791         * modules/unistr/u8-mblen: New file.
29792         * modules/unistr/u16-mblen: New file.
29793         * modules/unistr/u32-mblen: New file.
29794         * lib/unistr/u8-mblen.c: New file.
29795         * lib/unistr/u16-mblen.c: New file.
29796         * lib/unistr/u32-mblen.c: New file.
29797
29798         * modules/unistr/u8-mbtouc: New file.
29799         * modules/unistr/u16-mbtouc: New file.
29800         * modules/unistr/u32-mbtouc: New file.
29801         * lib/unistr/u8-mbtouc.c: New file.
29802         * lib/unistr/u16-mbtouc.c: New file.
29803         * lib/unistr/u32-mbtouc.c: New file.
29804
29805         * modules/unistr/u8-mbtouc-safe: New file.
29806         * modules/unistr/u16-mbtouc-safe: New file.
29807         * modules/unistr/u32-mbtouc-safe: New file.
29808         * lib/unistr/u8-mbtouc-safe.c: New file.
29809         * lib/unistr/u16-mbtouc-safe.c: New file.
29810         * lib/unistr/u32-mbtouc-safe.c: New file.
29811
29812         * modules/unistr/u8-move: New file.
29813         * modules/unistr/u16-move: New file.
29814         * modules/unistr/u32-move: New file.
29815         * lib/unistr/u8-move.c: New file.
29816         * lib/unistr/u16-move.c: New file.
29817         * lib/unistr/u32-move.c: New file.
29818         * lib/unistr/u-move.h: New file.
29819
29820         * modules/unistr/u8-next: New file.
29821         * modules/unistr/u16-next: New file.
29822         * modules/unistr/u32-next: New file.
29823         * lib/unistr/u8-next.c: New file.
29824         * lib/unistr/u16-next.c: New file.
29825         * lib/unistr/u32-next.c: New file.
29826
29827         * modules/unistr/u8-prev: New file.
29828         * modules/unistr/u16-prev: New file.
29829         * modules/unistr/u32-prev: New file.
29830         * lib/unistr/u8-prev.c: New file.
29831         * lib/unistr/u16-prev.c: New file.
29832         * lib/unistr/u32-prev.c: New file.
29833
29834         * modules/unistr/u8-set: New file.
29835         * modules/unistr/u16-set: New file.
29836         * modules/unistr/u32-set: New file.
29837         * lib/unistr/u8-set.c: New file.
29838         * lib/unistr/u16-set.c: New file.
29839         * lib/unistr/u32-set.c: New file.
29840         * lib/unistr/u-set.h: New file.
29841
29842         * modules/unistr/u8-startswith: New file.
29843         * modules/unistr/u16-startswith: New file.
29844         * modules/unistr/u32-startswith: New file.
29845         * lib/unistr/u8-startswith.c: New file.
29846         * lib/unistr/u16-startswith.c: New file.
29847         * lib/unistr/u32-startswith.c: New file.
29848         * lib/unistr/u-startswith.h: New file.
29849
29850         * modules/unistr/u8-stpcpy: New file.
29851         * modules/unistr/u16-stpcpy: New file.
29852         * modules/unistr/u32-stpcpy: New file.
29853         * lib/unistr/u8-stpcpy.c: New file.
29854         * lib/unistr/u16-stpcpy.c: New file.
29855         * lib/unistr/u32-stpcpy.c: New file.
29856         * lib/unistr/u-stpcpy.h: New file.
29857
29858         * modules/unistr/u8-stpncpy: New file.
29859         * modules/unistr/u16-stpncpy: New file.
29860         * modules/unistr/u32-stpncpy: New file.
29861         * lib/unistr/u8-stpncpy.c: New file.
29862         * lib/unistr/u16-stpncpy.c: New file.
29863         * lib/unistr/u32-stpncpy.c: New file.
29864         * lib/unistr/u-stpncpy.h: New file.
29865
29866         * modules/unistr/u8-strcat: New file.
29867         * modules/unistr/u16-strcat: New file.
29868         * modules/unistr/u32-strcat: New file.
29869         * lib/unistr/u8-strcat.c: New file.
29870         * lib/unistr/u16-strcat.c: New file.
29871         * lib/unistr/u32-strcat.c: New file.
29872         * lib/unistr/u-strcat.h: New file.
29873
29874         * modules/unistr/u8-strchr: New file.
29875         * modules/unistr/u16-strchr: New file.
29876         * modules/unistr/u32-strchr: New file.
29877         * lib/unistr/u8-strchr.c: New file.
29878         * lib/unistr/u16-strchr.c: New file.
29879         * lib/unistr/u32-strchr.c: New file.
29880
29881         * modules/unistr/u8-strcmp: New file.
29882         * modules/unistr/u16-strcmp: New file.
29883         * modules/unistr/u32-strcmp: New file.
29884         * lib/unistr/u8-strcmp.c: New file.
29885         * lib/unistr/u16-strcmp.c: New file.
29886         * lib/unistr/u32-strcmp.c: New file.
29887
29888         * modules/unistr/u8-strcpy: New file.
29889         * modules/unistr/u16-strcpy: New file.
29890         * modules/unistr/u32-strcpy: New file.
29891         * lib/unistr/u8-strcpy.c: New file.
29892         * lib/unistr/u16-strcpy.c: New file.
29893         * lib/unistr/u32-strcpy.c: New file.
29894         * lib/unistr/u-strcpy.h: New file.
29895
29896         * modules/unistr/u8-strcspn: New file.
29897         * modules/unistr/u16-strcspn: New file.
29898         * modules/unistr/u32-strcspn: New file.
29899         * lib/unistr/u8-strcspn.c: New file.
29900         * lib/unistr/u16-strcspn.c: New file.
29901         * lib/unistr/u32-strcspn.c: New file.
29902         * lib/unistr/u-strcspn.h: New file.
29903
29904         * modules/unistr/u8-strdup: New file.
29905         * modules/unistr/u16-strdup: New file.
29906         * modules/unistr/u32-strdup: New file.
29907         * lib/unistr/u8-strdup.c: New file.
29908         * lib/unistr/u16-strdup.c: New file.
29909         * lib/unistr/u32-strdup.c: New file.
29910         * lib/unistr/u-strdup.h: New file.
29911
29912         * modules/unistr/u8-strlen: New file.
29913         * modules/unistr/u16-strlen: New file.
29914         * modules/unistr/u32-strlen: New file.
29915         * lib/unistr/u8-strlen.c: New file.
29916         * lib/unistr/u16-strlen.c: New file.
29917         * lib/unistr/u32-strlen.c: New file.
29918         * lib/unistr/u-strlen.h: New file.
29919
29920         * modules/unistr/u8-strmblen: New file.
29921         * modules/unistr/u16-strmblen: New file.
29922         * modules/unistr/u32-strmblen: New file.
29923         * lib/unistr/u8-strmblen.c: New file.
29924         * lib/unistr/u16-strmblen.c: New file.
29925         * lib/unistr/u32-strmblen.c: New file.
29926
29927         * modules/unistr/u8-strmbtouc: New file.
29928         * modules/unistr/u16-strmbtouc: New file.
29929         * modules/unistr/u32-strmbtouc: New file.
29930         * lib/unistr/u8-strmbtouc.c: New file.
29931         * lib/unistr/u16-strmbtouc.c: New file.
29932         * lib/unistr/u32-strmbtouc.c: New file.
29933
29934         * modules/unistr/u8-strncat: New file.
29935         * modules/unistr/u16-strncat: New file.
29936         * modules/unistr/u32-strncat: New file.
29937         * lib/unistr/u8-strncat.c: New file.
29938         * lib/unistr/u16-strncat.c: New file.
29939         * lib/unistr/u32-strncat.c: New file.
29940         * lib/unistr/u-strncat.h: New file.
29941
29942         * modules/unistr/u8-strncmp: New file.
29943         * modules/unistr/u16-strncmp: New file.
29944         * modules/unistr/u32-strncmp: New file.
29945         * lib/unistr/u8-strncmp.c: New file.
29946         * lib/unistr/u16-strncmp.c: New file.
29947         * lib/unistr/u32-strncmp.c: New file.
29948
29949         * modules/unistr/u8-strncpy: New file.
29950         * modules/unistr/u16-strncpy: New file.
29951         * modules/unistr/u32-strncpy: New file.
29952         * lib/unistr/u8-strncpy.c: New file.
29953         * lib/unistr/u16-strncpy.c: New file.
29954         * lib/unistr/u32-strncpy.c: New file.
29955         * lib/unistr/u-strncpy.h: New file.
29956
29957         * modules/unistr/u8-strnlen: New file.
29958         * modules/unistr/u16-strnlen: New file.
29959         * modules/unistr/u32-strnlen: New file.
29960         * lib/unistr/u8-strnlen.c: New file.
29961         * lib/unistr/u16-strnlen.c: New file.
29962         * lib/unistr/u32-strnlen.c: New file.
29963         * lib/unistr/u-strnlen.h: New file.
29964
29965         * modules/unistr/u8-strpbrk: New file.
29966         * modules/unistr/u16-strpbrk: New file.
29967         * modules/unistr/u32-strpbrk: New file.
29968         * lib/unistr/u8-strpbrk.c: New file.
29969         * lib/unistr/u16-strpbrk.c: New file.
29970         * lib/unistr/u32-strpbrk.c: New file.
29971         * lib/unistr/u-strpbrk.h: New file.
29972
29973         * modules/unistr/u8-strrchr: New file.
29974         * modules/unistr/u16-strrchr: New file.
29975         * modules/unistr/u32-strrchr: New file.
29976         * lib/unistr/u8-strrchr.c: New file.
29977         * lib/unistr/u16-strrchr.c: New file.
29978         * lib/unistr/u32-strrchr.c: New file.
29979
29980         * modules/unistr/u8-strspn: New file.
29981         * modules/unistr/u16-strspn: New file.
29982         * modules/unistr/u32-strspn: New file.
29983         * lib/unistr/u8-strspn.c: New file.
29984         * lib/unistr/u16-strspn.c: New file.
29985         * lib/unistr/u32-strspn.c: New file.
29986         * lib/unistr/u-strspn.h: New file.
29987
29988         * modules/unistr/u8-strstr: New file.
29989         * modules/unistr/u16-strstr: New file.
29990         * modules/unistr/u32-strstr: New file.
29991         * lib/unistr/u8-strstr.c: New file.
29992         * lib/unistr/u16-strstr.c: New file.
29993         * lib/unistr/u32-strstr.c: New file.
29994         * lib/unistr/u-strstr.h: New file.
29995
29996         * modules/unistr/u8-strtok: New file.
29997         * modules/unistr/u16-strtok: New file.
29998         * modules/unistr/u32-strtok: New file.
29999         * lib/unistr/u8-strtok.c: New file.
30000         * lib/unistr/u16-strtok.c: New file.
30001         * lib/unistr/u32-strtok.c: New file.
30002         * lib/unistr/u-strtok.h: New file.
30003
30004         * modules/unistr/u8-uctomb: New file.
30005         * modules/unistr/u16-uctomb: New file.
30006         * modules/unistr/u32-uctomb: New file.
30007         * lib/unistr/u8-uctomb.c: New file.
30008         * lib/unistr/u16-uctomb.c: New file.
30009         * lib/unistr/u32-uctomb.c: New file.
30010
30011         * MODULES.html.sh (Unicode string functions): Add the new modules.
30012
30013 2007-01-08  Bruno Haible  <bruno@clisp.org>
30014
30015         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
30016         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
30017         subdirectories.
30018
30019 2007-01-08  Karl Berry  <karl@gnu.org>
30020
30021         * doc/error.texi: mention that main() fns must set program_name
30022         when progname is used.
30023
30024 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
30025
30026         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
30027         WCTYPE_H is empty, for the benefit of builds from non-distclean
30028         directories.  Problem reported by Eric Blake in
30029         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
30030
30031 2007-01-08  Bruno Haible  <bruno@clisp.org>
30032
30033         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
30034         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
30035         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
30036         PROVIDE_CANONICALIZE_FILENAME_MODE.
30037         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
30038
30039 2007-01-08  Bruno Haible  <bruno@clisp.org>
30040
30041         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
30042         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
30043         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
30044         * lib/fts.c: Likewise.
30045         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
30046
30047 2006-12-25  Bruno Haible  <bruno@clisp.org>
30048
30049         * modules/utf8-ucs4-safe: New file.
30050         * lib/utf8-ucs4-safe.h: New file.
30051         * lib/unistr/utf8-ucs4-safe.c: New file.
30052
30053         * modules/utf16-ucs4-safe: New file.
30054         * lib/utf16-ucs4-safe.h: New file.
30055         * lib/unistr/utf16-ucs4-safe.c: New file.
30056
30057         * MODULES.html.sh (Unicode string functions): Add the new modules.
30058
30059 2007-01-08  Bruno Haible  <bruno@clisp.org>
30060
30061         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
30062         (Depends-on): Add unitypes.
30063         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
30064         (u8_mbtouc_aux): Move out to separate file.
30065         (u8_mbtouc): Use ucs4_t, uint8_t types.
30066         * lib/unistr/utf8-ucs4.c: New file.
30067
30068         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
30069         (Depends-on): Add unitypes.
30070         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
30071         (u16_mbtouc_aux): Move out to separate file.
30072         (u16_mbtouc): Use ucs4_t, uint16_t types.
30073         * lib/unistr/utf16-ucs4.c: New file.
30074
30075         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
30076         (Depends-on): Add unitypes.
30077         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
30078         (u8_uctomb_aux): Move out to separate file.
30079         (u8_uctomb): Use ucs4_t, uint8_t types.
30080         * lib/unistr/ucs4-utf8.c: New file.
30081
30082         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
30083         (Depends-on): Add unitypes.
30084         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
30085         (u16_uctomb_aux): Move out to separate file.
30086         (u16_uctomb): Use ucs4_t, uint16_t types.
30087         * lib/unistr/ucs4-utf16.c: New file.
30088
30089 2006-12-25  Bruno Haible  <bruno@clisp.org>
30090
30091         * modules/unitypes: New file.
30092         * lib/unitypes.h: New file.
30093         * MODULES.html.sh (func_all_modules): New section "Unicode string
30094         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
30095         this section. Add unitypes.
30096
30097 2007-01-08  Bruno Haible  <bruno@clisp.org>
30098
30099         Avoid variable names that conflict with those from libtool.
30100         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
30101         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
30102         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
30103         library_names_spec to acl_library_names_spec, hardcode_* to
30104         acl_hardcode_*.
30105         Reported by Ralf Wildenhues.
30106
30107 2007-01-08  Bruno Haible  <bruno@clisp.org>
30108
30109         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
30110         definition.
30111         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
30112         definition.
30113         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
30114         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
30115         definition.
30116         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
30117         definition.
30118         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
30119         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
30120         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
30121         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
30122         definition.
30123         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
30124         definition.
30125         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
30126         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
30127         GC_USE_<algorithm>.
30128         * lib/gc-libgcrypt.c: Likewise.
30129         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
30130         * modules/gc-arctwo (configure.ac): Likewise.
30131         * modules/gc-des (configure.ac): Likewise.
30132         * modules/gc-hmac-md5 (configure.ac): Likewise.
30133         * modules/gc-hmac-sha1 (configure.ac): Likewise.
30134         * modules/gc-md2 (configure.ac): Likewise.
30135         * modules/gc-md4 (configure.ac): Likewise.
30136         * modules/gc-md5 (configure.ac): Likewise.
30137         * modules/gc-random (configure.ac): Likewise.
30138         * modules/gc-rijndael (configure.ac): Likewise.
30139         * modules/gc-sha1 (configure.ac): Likewise.
30140
30141 2007-01-08  Bruno Haible  <bruno@clisp.org>
30142
30143         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
30144         macro definition.
30145         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
30146         definition.
30147         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
30148         definition.
30149         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
30150         * modules/fcntl-safer (configure.ac): Likewise.
30151         * modules/fopen-safer (configure.ac): Likewise.
30152         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
30153         GNULIB_FWRITEERROR macro definition.
30154
30155 2007-01-08  Bruno Haible  <bruno@clisp.org>
30156
30157         * m4/gnulib-common.m4: New file.
30158         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
30159         (func_get_filelist): Add m4/gnulib-common.m4.
30160
30161 2007-01-08  Bruno Haible  <bruno@clisp.org>
30162
30163         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
30164         command.
30165
30166 2007-01-08  Jim Meyering  <jim@meyering.net>
30167
30168         Use a more robust test for a "can't happen" condition.
30169         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
30170         narrowed the st_size value.  Presuming the "can't happen" condition
30171         is true, that narrowing could conceivably convert an invalid st_size
30172         value into a valid one.  Instead, use a change based on Matthew
30173         Woehlke's original patch.
30174
30175         Slight readability improvement: use an assert-like macro
30176         in place of literal "abort ()" uses.
30177         * lib/fts.c (fts_assert): Define.
30178         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
30179         Use this macro instead of a bare 'abort'.
30180
30181 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
30182
30183         Don't worry about using IRIX 5.3's wctype.h broken definitions;
30184         simply work around them.
30185         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
30186         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
30187         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
30188         declaring.
30189         Don't bother to define as macros, since the standard doesn't require it.
30190         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
30191         longer worry about IRIX 5.3.
30192         (HAVE_WCTYPE_CTMP_BUG): Remove.
30193
30194 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
30195
30196         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
30197         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
30198         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
30199         Problems reported by Georg Schwarz for IRIX 5.3.
30200
30201         * gnulib-tool (autoconf_minversion): Take the maximum version number
30202         found, not the minimum.  Problem reported by James Youngman.
30203
30204 2007-01-03  Karl Berry  <karl@gnu.org>
30205
30206         * doc/error.texi: new file, explaining interaction with progname.
30207         * doc/gnulib.texi: include it.  Update copyright.
30208
30209 2007-01-03  Simon Josefsson  <simon@josefsson.org>
30210
30211         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
30212         AC_CANONICAL_HOST, to improve autobuild outputs.
30213
30214 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
30215             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
30216
30217         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
30218         sockets, server sockets, and other file descriptors.  Count errors
30219         to compute the return value.  Reorder the code a bit to be easier
30220         to follow.  Don't set event bits that were not requested (except
30221         POLLERR and POLLHUP).
30222
30223 2007-01-01  Bruno Haible  <bruno@clisp.org>
30224
30225         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
30226
30227 2007-01-03  Jim Meyering  <jim@meyering.net>
30228
30229         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
30230
30231 2007-01-02  Bruno Haible  <bruno@clisp.org>
30232
30233         * modules/settime (Include): Require timespec.h.
30234         * modules/nanosleep (Include): Likewise.
30235
30236 2007-01-01  Bruno Haible  <bruno@clisp.org>
30237
30238         * gnulib-tool (func_emit_copyright_notice): Bump year.
30239         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
30240
30241 2007-01-01  Bruno Haible  <bruno@clisp.org>
30242
30243         Improve support for OpenBSD.
30244         * build-aux/config.rpath (libname_spec): Export.
30245         (library_names_spec): New variable. Export.
30246         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
30247         library_names_spec from the config.rpath output. Locate shared library
30248         through the name pattern in library_names_spec.
30249
30250 2007-01-01  Eric Blake  <ebb9@byu.net>
30251
30252         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
30253
30254 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
30255
30256         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
30257         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
30258         assume the C locale, and avoid an "eval" that could cause trouble.
30259         Problem with SORT reported by Bob Proulx.
30260
30261         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
30262         Define.  Trivial patch from Henning Nielsen Lund, originally
30263         sent to bug-grep@gnu.org today.
30264
30265 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
30266
30267         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
30268         struct stat.  Problem reported by Henning Nielsen Lund.
30269         * lib/acl.c: Include acl.h first, to check interface.  Don't
30270         bother to include sys/types.h and sys/stat.h again.
30271
30272 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
30273
30274         Import the following change from libc; problem reported by
30275         Sven Verdoolaege.
30276
30277         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
30278
30279         [BZ #1373]
30280         * lib/argp.h: Remove __NTH for __argp_usage inline function.
30281
30282 2006-12-28  Jim Meyering  <jim@meyering.net>
30283
30284         * build-aux/announce-gen: Do not assume that the package
30285         builds any of tar.gz, tar.bz2, and .xdelta files.
30286         Suggestion from Simon Josefsson.
30287
30288 2006-12-28  Simon Josefsson  <simon@josefsson.org>
30289
30290         * modules/announce-gen: New file.
30291
30292 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
30293
30294         * lib/mbchar.h: Just include <wctype.h>; the wctype module
30295         handles its gotchas now.
30296         * lib/mbswidth.c: Likewise.
30297         * lib/wcwidth.h: Likewise.
30298         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
30299         and iswcntrl; the wctype module does this stuff now.
30300         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
30301         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30302         * modules/mbchar (Depends-on): Add wctype.
30303         * modules/mbswidth (Depends-on): Likewise.
30304         * modules/wcwidth (Depends-on): Likewise.
30305
30306 2006-12-27  Eric Blake  <ebb9@byu.net>
30307
30308         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
30309         module uses more than what <wctype.h> is required to provide.
30310
30311 2006-12-26  Eric Blake  <ebb9@byu.net>
30312
30313         * gnulib-tool (sed_extract_prog): Avoid space-tab.
30314
30315 2006-12-26  Eric Blake  <ebb9@byu.net>
30316
30317         * modules/absolute-header: New module.
30318         * modules/fcntl (Depends-on): Depend on it.
30319         * modules/inttypes (Depends-on): Likewise.
30320         * modules/stdint (Depends-on): Likewise.
30321         * modules/sys_stat (Depends-on): Likewise.
30322         * modules/wctype (Depends-on): Likewise.
30323         * MODULES.html.sh (Support for building libraries and
30324         executables): Document it.
30325
30326 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
30327
30328         * gnulib-tool (SED): Remove, undoing previous change.
30329         The problem was that it broke coreutils on Solaris, because
30330         "sed --posix" leaked into a makefile.
30331         (sed): New alias, if 'alias' and GNU sed.
30332
30333 2006-12-24  Jim Meyering  <jim@meyering.net>
30334
30335         Work around an fchownat bug in glibc-2.4:
30336         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
30337         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
30338         in spite of the -P option.
30339         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
30340         New macros.
30341         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
30342         * modules/openat (Files): Add lib/fchownat.c.
30343         * lib/openat.c (fchownat): Don't define here.  Move to...
30344         * lib/fchownat.c: ...this new file.
30345
30346 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
30347
30348         Fix bug reported by Bruno Haible in
30349         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
30350         where quotearg.c didn't compile on Mac OS X 10.2 because it
30351         lacks <wchar.h> and wint_t.
30352         * lib/wctype_.h (__wctype_wint_t): New type.
30353         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
30354         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
30355         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
30356         Arg is now of type __wctype_wint_t, not wint_t.
30357         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
30358         substitute HAVE_WINT_T.
30359         * modules/wctype (Files): Add m4/wint_t.m4.
30360         (wctype.h): Substitute HAVE_WINT_T.
30361
30362 2006-12-23  Bruno Haible  <bruno@clisp.org>
30363
30364         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
30365
30366 2006-12-23  Bruno Haible  <bruno@clisp.org>
30367
30368         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
30369         S_ISLNK.
30370         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
30371         mingw.
30372
30373 2006-12-22  Bruno Haible  <bruno@clisp.org>
30374
30375         * lib/copy-file.c: Include acl.h.
30376         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
30377         Close the file descriptors only after being done with copy_acl.
30378         * modules/copy-file (Depends-on): Add acl.
30379
30380 2006-12-22  Bruno Haible  <bruno@clisp.org>
30381
30382         * gnulib-tool (SED): New variable.
30383         Use $SED instead of sed everywhere.
30384
30385 2006-12-22  Bruno Haible  <bruno@clisp.org>
30386
30387         * modules/no-c++: New file.
30388         * m4/no-c++.m4: New file.
30389         * MODULES.html.sh (Support for building libraries and executables):
30390         Add no-c++.
30391
30392 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
30393
30394         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
30395         Include <limits.h>, and use its INT_MAX to rewrite the
30396         j loop so that it does not overflow 'int'.  Problem reported by
30397         Ralf Wildenhues in
30398         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
30399         Play it safe by shifting left by 1 rather than multiplying by 2,
30400         as GCC is less likely to optimize this away when the value
30401         is signed (when it assumes overflow leads to undefined behavior).
30402         Also, don't assume time_t uses two's complement.
30403
30404 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
30405
30406         * MODULES.html.sh: New module wctype.
30407         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
30408         * lib/fnmatch.c: Don't bother to include <wchar.h> before
30409         <wctype.h>, since the new wctype module should fix this.
30410         * lib/quotearg.c: Include <wctype.h> unconditionally, since
30411         the wctype module should arrange for it.
30412         * lib/regex_internal.h: Likewise.
30413         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
30414         since the wctype module should handle this now.
30415         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
30416         * modules/fnmatch (Depends-on): Add wctype.
30417         * modules/quotearg (Depends-on): Likewise.
30418         * modules/regex (Depends-on): Likewise.
30419
30420 2006-12-19  Bruno Haible  <bruno@clisp.org>
30421
30422         * lib/strdup.h [C++]: Wrap definitions in extern "C".
30423         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
30424
30425 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30426
30427         * modules/savewd (Depends-on): Fix dependency on fcntl.
30428
30429 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
30430
30431         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
30432         conforms to C99, rather than relying on the user's environment
30433         setting of STDINT_H.
30434
30435 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
30436         and Eric Blake  <ebb9@byu.net>
30437
30438         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
30439         This is more consistent with the other defines here.
30440         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
30441         Port to z/OS.  Problem reported by Paul Gilmartin.
30442         Change local vars to use gl_ prefix rather than ac_.
30443         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
30444         with other defines.
30445         * modules/double-slash-root: New module.
30446         * modules/dirname (Files): Remove m4/double-slash-root.m4.
30447         (Depends-on): Add double-slash-root.
30448         * MODULES.html.sh (File system functions): Mention new module.
30449
30450 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
30451
30452         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
30453         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
30454         This is for the benefit of gzip, which doesn't do i18n.
30455
30456 2006-12-12  Jim Meyering  <jim@meyering.net>
30457
30458         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
30459         Reported by Andreas Schwab <schwab@suse.de>.
30460
30461 2006-12-12  Bruno Haible  <bruno@clisp.org>
30462
30463         Merge these changes.
30464         2006-09-05  Bruno Haible  <bruno@clisp.org>
30465         * lib/iconvme.c (iconv_string): No need to save and restore errno when
30466         iconv_alloc succeeded.
30467         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
30468         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
30469         test for " && dest " at the end - dest is always != NULL there. Call
30470         iconv with 4xNULL arguments initially, to reset the state. Call iconv
30471         with 2xNULL arguments, also to flush the state storage. Handle the
30472         IRIX iconv behaviour. Realloc the final result, to throw away unused
30473         memory.
30474
30475 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
30476
30477         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
30478         and fchmodat unconditionally, since glibc 2.4 has them.
30479         Problem reported by Arkadiusz Miskiewicz.
30480
30481 2006-12-10  Bruno Haible  <bruno@clisp.org>
30482
30483         * gnulib-tool (func_import): Show the include files only for those
30484         modules that are copied and specified.
30485         Reported by Karl Berry.
30486
30487 2006-12-08  Jim Meyering  <jim@meyering.net>
30488
30489         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
30490         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
30491
30492         * build-aux/announce-gen: Add two new options, both optional:
30493         --bootstrap-tools=TOOL_LIST
30494               a comma-separated list of tools, e.g.,
30495               autoconf,automake,bison,gnulib
30496         --gnulib-snapshot-date=DATE
30497               if gnulib is in the bootstrap tool list,
30498               then report this as the snapshot date.
30499               If not specified, use the current date/time.
30500               If you specify a date here, be sure it's UTC.
30501
30502 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30503
30504         * tests/test-argp-2.sh: Fix test to match actual output.
30505         (func_compare): Fix sed script to be portable.
30506
30507 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
30508
30509         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
30510         workaround for this case.  It is not autoconfigured now; offhand
30511         it's hard to see how to autoconfigure it.
30512
30513 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
30514
30515         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
30516         a directory that is about to be chowned.  Such a directory's
30517         initial file permissions should permit the owner only and this
30518         should not be changed until after the chown, since the group and
30519         other bits would be incorrect if they granted permission before
30520         the chown.
30521
30522         Fix porting problem for iswctype reported by Georg Schwarz in:
30523         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
30524         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
30525         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
30526         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
30527         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30528
30529 2006-12-03  Jim Meyering  <jim@meyering.net>
30530
30531         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
30532         p->fts_statp may not yet be defined.
30533         (fts_read): Instead, set it in the caller, once p->fts_statp is
30534         sure to be defined, and corresponds to a top-level directory.
30535         This bug made du -x fail.  Here's the coreutils test case:
30536         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
30537         Reported by Mike Frysinger.
30538
30539 2006-12-01  Jim Meyering  <jim@meyering.net>
30540
30541         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
30542         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
30543         Reported by Simon Josefsson.
30544
30545 2006-11-30  Jim Meyering  <jim@meyering.net>
30546
30547         * m4/warning.m4: Use the all-permissive copyright notice
30548         recommended by RMS (rather than LGPL).
30549         * m4/vararrays.m4: Likewise.
30550         * m4/flexmember.m4: Likewise.
30551
30552 2006-11-29  Bruno Haible  <bruno@clisp.org>
30553
30554         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
30555         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
30556         using +=.
30557         Reported by Simon Josefsson <simon@josefsson.org>.
30558
30559 2006-11-28  James Youngman <jay@gnu.org>
30560
30561         * README: Advise users that they might find the bug-gnulib@gnu.org
30562         and autotools-announce@gnu.org mailing lists useful.
30563
30564 2006-11-28  Bruno Haible  <bruno@clisp.org>
30565
30566         * m4/ptrdiff_max.m4: Remove file.
30567
30568 2006-11-21  Bruno Haible  <bruno@clisp.org>
30569
30570         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
30571         _AC_COMPUTE_INT.
30572         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
30573         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
30574         _AC_COMPUTE_INT.
30575         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
30576         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
30577         _AC_COMPUTE_INT.
30578         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
30579
30580 2006-11-28  Jim Meyering  <jim@meyering.net>
30581
30582         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
30583         warning from "gcc -Wshadow" about shadowing the builtin.
30584
30585 2006-11-27  Bruno Haible  <bruno@clisp.org>
30586
30587         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
30588         _AC_COMPUTE_INT.
30589         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
30590
30591 2006-11-27  Bruno Haible  <bruno@clisp.org>
30592             Paul Eggert  <eggert@cs.ucla.edu>
30593
30594         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
30595
30596 2006-11-26  Bruno Haible  <bruno@clisp.org>
30597
30598         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
30599         noinst_LTLIBRARIES.
30600
30601 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
30602             Bruno Haible  <bruno@clisp.org>
30603
30604         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
30605         if compiling with "gcc -ansi".
30606
30607 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
30608
30609         Fix some incompatibilities with gcc -ansi -pedantic.
30610         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
30611         if compiling pedantically with GCC, unless it's C99 or later.
30612         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
30613         it mishandles gcc -ansi -pedantic as well.
30614         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
30615         if gcc -pedantic.
30616         * lib/regexec.c (check_node_accept_bytes): Don't use auto
30617         initializers for struct if -pedantic, unless it's C99 or later.
30618
30619 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
30620
30621         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
30622         Don't close an fd more than once. Identical atimes indicate
30623         success, not failure.
30624
30625 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
30626
30627         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
30628
30629 2006-11-23  Jim Meyering  <jim@meyering.net>
30630
30631         * build-aux/announce-gen: New file.  From coreutils.
30632
30633 2006-11-22  Jim Meyering  <jim@meyering.net>
30634
30635         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
30636         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
30637         (fts_read): Use a temporary to narrow the overused st_size member
30638         before using it in a switch statement.  Reported by Matthew Woehlke.
30639
30640         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
30641         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30642
30643 2006-11-20  Bruno Haible  <bruno@clisp.org>
30644
30645         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
30646         changequote instead of pairs of brackets.
30647         Reported by Andreas Schwab <schwab@suse.de>.
30648
30649 2006-11-21  Jim Meyering  <jim@meyering.net>
30650
30651         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
30652         so as to remain compatible with older compilers.
30653         Patch from Michael Deutschmann.
30654
30655 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
30656
30657         * MODULES.html.sh (File system functions): Add openat.
30658
30659         * lib/openat.h (rpl_fstatat): New macro, if
30660         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
30661         (fstatat): Define to rpl_fstatat under the same conditions,
30662         unless COMPILING_FSTATAT.
30663         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
30664         seems to have the bug.
30665         * lib/fstatat.c: New file.
30666         * modules/openat (Files): Add it.
30667
30668 2006-11-20  Bruno Haible  <bruno@clisp.org>
30669
30670         * Makefile: New file.
30671
30672 2006-11-20  Jim Meyering  <jim@meyering.net>
30673
30674         The beginnings of syntax-related checks for gnulib.
30675         * lib/Makefile: New file.
30676         * lib/t-idcache: New script.  Ensure that the two halves of
30677         idcache.c stay in sync.
30678
30679         * lib/idcache.c: Adjust comments in user- and group- portions to
30680         be more accurate, and to be consistent with one another.
30681
30682 2006-11-20  Jim Meyering  <jim@meyering.net>
30683
30684         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
30685         continue using the flexible array member (thus, this module performs
30686         half as many malloc calls), with the addition that...
30687         (getgroup, getuser): Consistently record a non-match via an empty
30688         "name" string, and map an empty string match to a NULL return value.
30689         * modules/idcache (Depends-on): Re-add flexmember.
30690
30691         * lib/idcache.c (getuser): Remove all uses of the register keyword.
30692         (getuidbyname, getgroup, getgidbyname): Likewise.
30693
30694         Use cleaner syntax: NULL rather than 0.
30695         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
30696
30697 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
30698
30699         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
30700         It mishandled the case where the group was missing.
30701         Problem reported by Greg Schafer.
30702         * modules/idcache: Likewise.
30703
30704 2006-11-18  Jim Meyering  <jim@meyering.net>
30705
30706         * check-module (%exempt_header): Add exception for some
30707         conditionally-included headers.
30708
30709         * modules/i-ring (Depends-on): Add verify.
30710         (License): Change to LGPL.
30711
30712 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
30713
30714         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
30715         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
30716         and inttostr.h.  Use snprintf rather than uinttostr, so that
30717         LGPLed code doesn't depend on GPLed.
30718
30719 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
30720
30721         * modules/inline (License): Change from GPL to LGPL.
30722
30723 2006-11-17  Jim Meyering  <jim@meyering.net>
30724
30725         * modules/d-type (License): Switch to LGPL.
30726
30727 2006-11-15  Bruno Haible  <bruno@clisp.org>
30728
30729         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
30730
30731 2006-11-15  Eric Blake  <ebb9@byu.net>
30732
30733         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
30734         the module dependency.
30735
30736 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30737             Bruno Haible  <bruno@clisp.org>
30738
30739         * gnulib-tool (func_create_testdir): Add license consistency check.
30740
30741 2006-11-15  Eric Blake  <ebb9@byu.net>
30742
30743         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
30744         random "(cached)" in configure output.
30745
30746 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30747
30748         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
30749         test for conforming inttypes.h is both announced and cached.
30750
30751         * MODULES.html.sh (seen_modules, seen_files): New variables.
30752         (func_module): Rewrite to use a few less gnulib-tool and sed
30753         invocations.  Avoid a couple of quadratic algorithms for ...
30754         (missed_modules, missed_files): ... these, with ...
30755         (func_append, func_tmpdir): ... these new functions, from
30756         gnulib-tool.  Analogously, install traps for cleanup.
30757
30758         * tests/test-gc.c (main): Remove unused variables.
30759         * tests/test-read-file.c: Include stdlib.h, for 'free'.
30760
30761 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
30762
30763         * modules/inttostr (License): Change to LGPL.
30764
30765 2006-11-14  Eric Blake  <ebb9@byu.net>
30766
30767         * modules/tempname (License): Change to LGPL.
30768
30769 2006-11-14  Eric Blake  <ebb9@byu.net>
30770
30771         * doc/functions.texi (Function Portability): *printf functions on
30772         Cygwin now understand all POSIX size specifiers.
30773
30774 2006-11-14  Bruno Haible  <bruno@clisp.org>
30775
30776         * modules/c-ctype (License): Change to LGPL.
30777
30778 2006-11-12  Bruno Haible  <bruno@clisp.org>
30779
30780         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
30781         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
30782         for GNOME libraries, for which the include files are installed in
30783         subdirectories of $prefix/include.
30784
30785 2006-11-12  Bruno Haible  <bruno@clisp.org>
30786
30787         * m4/lib-link.m4: Require at least autoconf-2.54.
30788         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
30789         name to underscores for the --with option.
30790
30791 2006-11-13  Bruno Haible  <bruno@clisp.org>
30792
30793         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
30794         the tests directory.
30795         Reported by Ralf Wildenhues.
30796
30797 2006-11-13  Bruno Haible  <bruno@clisp.org>
30798
30799         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
30800         (func_emit_initmacro_end): Undo the override here.
30801         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
30802         Works around the famous automake error in coreutils.
30803
30804 2006-11-13  Eric Blake  <ebb9@byu.net>
30805
30806         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
30807         element, not its node.
30808
30809 2006-11-12  Bruno Haible  <bruno@clisp.org>
30810
30811         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
30812         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
30813
30814 2006-11-12  Bruno Haible  <bruno@clisp.org>
30815
30816         * gnulib-tool: New option --local-symlink.
30817         (func_usage): Document it.
30818         (lsymbolic): New variable.
30819         (func_import, func_create_testdir): If --symlink was not specified,
30820         test whether --local-symlink was specified and the file comes from
30821         the local_gnulib_dir.
30822
30823 2006-11-12  Bruno Haible  <bruno@clisp.org>
30824
30825         * gnulib-tool (func_ln): New function.
30826         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
30827
30828 2006-11-12  Bruno Haible  <bruno@clisp.org>
30829
30830         Finish support for source files in subdirectories.
30831         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
30832         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
30833         AUTOMAKE_OPTIONS.
30834         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
30835
30836 2006-11-12  Bruno Haible  <bruno@clisp.org>
30837
30838         * gnulib-tool (func_get_automake_snippet): Synthesize also an
30839         EXTRA_lib_SOURCES augmentation.
30840         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
30841
30842 2006-11-12  Jim Meyering  <jim@meyering.net>
30843
30844         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
30845         file descriptors.  This also averts a failure on systems with
30846         native openat support when a traversed directory lacks "x" access.
30847         * lib/fts_.h: Include "i-ring.h"
30848         (struct FTS) [fts_fd_ring]: New member.
30849         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
30850         (FCHDIR): Add parentheses.
30851         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
30852         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
30853         When descending, rather than simply closing the previous
30854         fts_cwd_fd value, push that file descriptor onto the ring.
30855         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
30856         (fts_open): Initialize the new fd_ring member.
30857         (fts_close): Clear the ring.
30858         (fts_safe_changedir): When possible, use our new fd_ring to skip
30859         the diropen and fstat and dev/ino comparison that would normally
30860         accompany a virtual `chdir ("..")'.
30861
30862         * modules/fts (Depends-on): Add i-ring.
30863         * modules/i-ring: New module.
30864         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
30865         * m4/i-ring.m4: New file.
30866
30867 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30868
30869         * gnulib-tool (func_create_testdir): Fix replacement of
30870         `build-aux' in configure.ac.  Run autotools in gltests
30871         subdirectory.
30872         (func_create_testdir, func_create_megatestdir, test): There is
30873         no need for '--force' in most autotool invocations in a new
30874         tree.  Actually fail the whole test if any of the tools, or the
30875         configure or make stages fail.
30876
30877         Sync from Automake.
30878         * build-aux/gnupload: Revert last change.  Add pointer to upload
30879         instructions of the GNU Maintenance Instructions.
30880         Suggestion by Karl Berry.
30881
30882 2006-11-10  Jim Meyering  <jim@meyering.net>
30883
30884         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
30885
30886 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
30887
30888         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
30889         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
30890         (bind_textdomain_codeset) [! ENABLE_NLS]:
30891         Evaluate all the arguments.  That way, callers get compatible behavior
30892         if the arguments have side effects.  Also, it avoids some GCC
30893         diagnostics in some cases; Joel E. Denny reported problems when Bison
30894         was configured with --enable-gcc-warnigs.
30895
30896 2006-11-10  Jim Meyering  <jim@meyering.net>
30897
30898         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
30899         relevant options in CFLAGS (like -O, -fno-inline) are taken into
30900         account.
30901
30902 2006-11-10  Jim Meyering  <jim@meyering.net>
30903
30904         * modules/inline: New file/module.
30905         * modules/xalloc (Files): Remove m4/inline.m4.
30906         (Depends-on): Add inline, instead.
30907         * modules/oset: Likewise.
30908         * modules/list: Likewise.
30909
30910 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
30911
30912         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
30913         Problem reported by Matthew Woehlke.
30914
30915 2006-11-09  Bruno Haible  <bruno@clisp.org>
30916
30917         * lib/tempname.c (gen_tempname): Remove variant that invokes
30918         __gen_tempname.
30919         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
30920         __gen_tempname.
30921
30922 2006-11-08  Bruno Haible  <bruno@clisp.org>
30923
30924         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
30925         to 'yes' instead of 'cross-compiling'.
30926
30927 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
30928
30929         * lib/quotearg.h (quotearg_free): New decl.
30930         * lib/quotearg.c (quotearg_free): New function.
30931         (slot0, nslots, slotvec0, slotvec):
30932         Now file-scope so that quotearg_free can get at them.
30933
30934 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30935
30936         Sync from Automake.
30937         * build-aux/gnupload: Add missing 'gnu' to example URL.
30938         Report by Karl Berry.
30939
30940 2006-11-08  Bruno Haible  <bruno@clisp.org>
30941
30942         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
30943         Suggested by Paul Eggert.
30944
30945 2006-11-08  Jim Meyering  <jim@meyering.net>
30946
30947         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
30948         It's already included if !_LIBC.
30949         (fts_safe_changedir): Add a comment.
30950
30951 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
30952
30953         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
30954         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
30955         Matthew Woehlke.
30956
30957         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
30958         definitions up, to avoid colliding with change below.
30959         (static_inline) [HAVE_INLINE]: New macro.
30960         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
30961         Provide extern decls when !HAVE_INLINE.  Do not define unless
30962         static_inline is defined, either by us or by xmalloc.c.  Use
30963         static_inline rather than static inline.
30964         (XCALLOC): Optimize sizeof(T) = 1 case.
30965         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
30966
30967 2006-11-07  Bruno Haible  <bruno@clisp.org>
30968
30969         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
30970         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
30971         AC_C_INLINE.
30972         * modules/xalloc (Files): Add m4/inline.m4.
30973
30974 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30975
30976         * README: Fix typo.
30977         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
30978         (Miscellanous Notes): ...from this.
30979
30980 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
30981
30982         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
30983         Mention that offsetof should be used instead of sizeof.
30984         From Bruno Haible.
30985
30986 2006-11-07  Bruno Haible  <bruno@clisp.org>
30987
30988         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
30989
30990 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
30991
30992         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
30993         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
30994         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
30995         (gl_tree_add_before, gl_tree_add_after):
30996         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
30997         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
30998         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
30999         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
31000         (gl_linked_add_after, gl_linked_add_at): Likewise.
31001         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
31002         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
31003         (gl_tree_add_before, gl_tree_add_after): Likewise.
31004         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
31005         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
31006         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
31007
31008 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31009
31010         * lib/gl_oset.h: Use C comment style, not C++ comment style.
31011
31012 2006-11-06  Bruno Haible  <bruno@clisp.org>
31013
31014         * m4/inline.m4: New file.
31015         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
31016         * modules/list (Files): Add m4/inline.m4.
31017         * modules/oset (Files): Likewise.
31018
31019 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
31020
31021         * lib/idcache.c: Include <stddef.h>, for offsetof.
31022         (struct userid.name): Change from char * to a flexible array member.
31023         All uses changed.
31024         * modules/idcache (Depends-on): Add flexmember.
31025
31026         * MODULES.html.sh (Core language properties): New module flexmember.
31027         * modules/flexmember, m4/flexmember.m4: New files.
31028
31029         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
31030         inline functions that are identical with the old xnmalloc_inline,
31031         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
31032         that we can avoid some unnecessary integer multiplications and
31033         divisions in the common case where the element size is known at
31034         compile time.
31035         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
31036         needed.
31037         (xnboundedmalloc): Remove.
31038         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
31039         arguments, for consistency with rest of this header.
31040         (xcharalloc): Rewrite using XNMALLOC.
31041         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
31042         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
31043         versions have been moved to lib/xalloc.h and renamed to be the
31044         non-*_inline versions.
31045         (xmalloc, xrealloc): Implement without reference to the xnmalloc
31046         and xnrealloc functions, since those functions are now inline and
31047         now call us.
31048         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
31049         renaming described above.
31050         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
31051         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
31052         captures the dependency in AC_C_INLINE.
31053
31054         New module canonicalize-lgpl, proposed by Charles Wilson in
31055         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
31056         with a few small changes afterwards.
31057         * MODULES.html.sh (File system functions): New module
31058         canonicalize-lgpl.
31059         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
31060         and canonicalize_file_name.
31061         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
31062         * modules/canonicalize-lgpl: New files.
31063
31064 2006-11-05  Bruno Haible  <bruno@clisp.org>
31065
31066         * gnulib-tool (func_import, func_create_testdir): Create directories
31067         also for files in subdirectories of lib/.
31068
31069 2006-11-05  Bruno Haible  <bruno@clisp.org>
31070
31071         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
31072         ANSI C compliant.
31073
31074 2006-11-03  Bruno Haible  <bruno@clisp.org>
31075
31076         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
31077         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
31078         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
31079         (xnboundedmalloc): New inline function.
31080         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
31081         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
31082         xmalloc.
31083         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
31084         xmalloc.
31085         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
31086         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
31087         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
31088         xmalloc.
31089         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
31090         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
31091         xmalloc.
31092         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
31093         gl_tree_add_after): Use XMALLOC instead of xmalloc.
31094         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
31095         xmalloc.
31096         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
31097         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
31098         gl_tree_add_after): Use XMALLOC instead of xmalloc.
31099         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
31100         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
31101         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
31102         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
31103
31104 2006-11-03  Bruno Haible  <bruno@clisp.org>
31105
31106         * lib/c-ctype.h [C++]: Define functions without name mangling.
31107         * lib/fwriteerror.h [C++]: Likewise.
31108         * lib/gcd.h [C++]: Likewise.
31109         * lib/linebreak.h [C++]: Likewise.
31110
31111 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
31112
31113         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
31114         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
31115         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
31116         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
31117         Check for functions and headers just once.
31118         Check for declaration of canonicalize_file_name.
31119         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
31120
31121 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
31122
31123         * gnulib-tool (func_import): Fix typo in actioncmd.
31124
31125 2006-11-02  Bruno Haible  <bruno@clisp.org>
31126
31127         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
31128         newline sequence in the Makefile.am snippet as a space, like "make"
31129         does.
31130         Reported by Roger Persson <perrog@gmail.com>.
31131
31132 2006-11-01  Bruno Haible  <bruno@clisp.org>
31133
31134         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
31135         already declared in <string.h>.
31136         * lib/strcase.h (strncasecmp): Don't declare it if yes.
31137
31138 2006-11-01  Bruno Haible  <bruno@clisp.org>
31139
31140         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
31141         * lib/strcase.h: Include <string.h>.
31142         (strcasecmp): Define to rpl_strcasecmp here.
31143
31144 2006-11-01  Bruno Haible  <bruno@clisp.org>
31145
31146         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
31147
31148 2006-11-01  Eric Blake  <ebb9@byu.net>
31149
31150         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
31151
31152         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
31153
31154 2006-10-29  Bruno Haible  <bruno@clisp.org>
31155
31156         Make it compile in C++ mode.
31157         * lib/full-write.c (full_rw): Add a cast.
31158
31159 2006-11-01  Bruno Haible  <bruno@clisp.org>
31160
31161         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
31162         be POSIX compliant.
31163         Reported by Roger Persson <perrog@gmail.com>.
31164
31165 2006-11-01  Eric Blake  <ebb9@byu.net>
31166
31167         * lib/getopt_.h: Fix comments.
31168
31169 2006-10-31  Eric Blake  <ebb9@byu.net>
31170
31171         * modules/tmpdir (Depends-on): Add sys_stat.
31172         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
31173         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
31174         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
31175         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
31176         tempname.
31177
31178 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
31179
31180         Avoid some C++ diagnostics reported by Bruno Haible.
31181         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
31182         xmalloc.
31183         (quotearg_alloc): Use xcharalloc rather than xmalloc.
31184         (struct slotvec): Move to top level.
31185         (quotearg_n_options): Rewrite to avoid xmalloc.
31186         * lib/xalloc.h (xcharalloc): New function.
31187         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
31188         [defined __cplusplus]: Add function template that provides result
31189         type propagation.  This part of the change is from Bruno Haible.
31190
31191 2006-10-29  Bruno Haible  <bruno@clisp.org>
31192
31193         Make it compile in C++ mode.
31194         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
31195         * lib/strnlen1.c (strnlen1): Cast memchr result.
31196         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
31197         * lib/clean-temp.c (string_equals, string_hash): Add casts.
31198         (create_temp_dir): Rename local variable 'template'.
31199         (compile_csharp_using_sscli): Add cast.
31200         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
31201         * lib/findprog.c (find_in_path): Likewise.
31202         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
31203         * lib/wait-process.c (register_slave_subprocess): Likewise.
31204
31205 2006-10-22  Bruno Haible  <bruno@clisp.org>
31206
31207         * modules/tsearch: New file.
31208         * lib/tsearch.h: New file.
31209         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
31210         * m4/tsearch.m4: New file.
31211         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
31212
31213 2006-10-29  Eric Blake  <ebb9@byu.net>
31214
31215         * lib/arcfour.c: Assume config.h.
31216         * lib/arctwo.c: Likewise.
31217         * lib/base64.c: Likewise.
31218         * lib/check-version.c: Likewise.
31219         * lib/crc.c: Likewise.
31220         * lib/des.c: Likewise.
31221         * lib/gc-gnulib.c: Likewise.
31222         * lib/gc-libgcrypt.c: Likewise.
31223         * lib/gc-pbkdf2-sha1.c: Likewise.
31224         * lib/getaddrinfo.c: Likewise.
31225         * lib/getdelim.c: Likewise.
31226         * lib/getline.c: Likewise.
31227         * lib/hmac-md5.c: Likewise.
31228         * lib/hmac-sha1.c: Likewise.
31229         * lib/iconvme.c: Likewise.
31230         * lib/md2.c: Likewise.
31231         * lib/md4.c: Likewise.
31232         * lib/memxor.c: Likewise.
31233         * lib/read-file.c: Likewise.
31234         * lib/readline.c: Likewise.
31235         * lib/rijndael-alg-fst.c: Likewise.
31236         * lib/rijndael-api-fst.c: Likewise.
31237         * lib/xgetdomainname.c: Likewise.
31238
31239 2006-10-28  Eric Blake  <ebb9@byu.net>
31240
31241         * lib/xstrndup.c: Assume config.h.
31242
31243 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
31244
31245         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
31246         stat-macros.h is now for our own macros, whereas stat_h is for
31247         macros in the <sys/stat.h> name space.
31248         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
31249         (STAT_MACROS_H): Remove.
31250         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
31251         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
31252         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
31253         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
31254         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
31255         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
31256         Move these macros to ...
31257         * lib/stat_.h: here.  Don't include stat-macros.h.
31258         * lib/canonicalize.c: Don't include stat-macros.h.
31259         * lib/chown.c: Likewise.
31260         * lib/euidaccess.c: Likewise.
31261         * lib/file-type.c: Likewise.
31262         * lib/filemode.c: Likewise.
31263         * lib/glob.c: Likewise.
31264         * lib/isapipe.c: Likewise.
31265         * lib/lchown.c: Likewise.
31266         * lib/lstat.c: Likewise.
31267         * lib/mkdir-p.c: Likewise.
31268         * lib/rmdir.c: Likewise.
31269         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
31270         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
31271         unless mkdir isn't declared, to speed up 'configure'.
31272         Always create sys/stat.h, since it's unlikely any real sys/stat.h
31273         would define all the S_* symbols.
31274         * modules/canonicalize (Depends-on):
31275         Depend on sys_stat, not stat-macros.
31276         * modules/chown: Likewise.
31277         * modules/euidaccess: Likewise.
31278         * modules/filemode: Likewise.
31279         * modules/file-type: Likewise.
31280         * modules/glob: Likewise.
31281         * modules/isapipe: Likewise.
31282         * modules/lchown: Likewise.
31283         * modules/lstat: Likewise.
31284         * modules/mkancesdirs: Likewise.
31285         * modules/rmdir: Likewise.
31286         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
31287         * modules/modechange: Likewise.
31288         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
31289         (configure.ac): Remove gl_STAT_MACROS.
31290         * modules/sys_stat (Depends-on): Remove stat-macros.
31291
31292 2006-10-27  Bruno Haible  <bruno@clisp.org>
31293
31294         * m4/signed.m4: Remove file.
31295         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
31296         invocation.
31297         * modules/vasnprintf (Files): Remove m4/signed.m4.
31298
31299 2006-10-27  Bruno Haible  <bruno@clisp.org>
31300
31301         Update to GNU gettext 0.16.
31302         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
31303         m4/inttypes-h.m4, m4/signed.m4.
31304         * m4/gettext.m4: Update to GNU gettext 0.16.
31305         * m4/intl.m4: New file, from GNU gettext.
31306         * m4/intldir.m4: New file, from GNU gettext.
31307         * config/srclist.txt: Update
31308
31309 2006-10-27  Eric Blake  <ebb9@byu.net>
31310
31311         * MODULES.html.sh: Document tempname.
31312         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
31313         dependencies.
31314         (Files): Move lib/tempname.c...
31315         * modules/tempname: ...to this new module.
31316         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
31317         (gl_PREREQ_TEMPNAME): Move...
31318         * m4/tempname.m4: ...to this new file.
31319         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
31320         * modules/sys_stat (Depends-on): Add stat-macros.
31321         * lib/stat_.h (includes): Pick up stat macros.
31322         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
31323         if stat macros are broken.
31324         * lib/tempname.c (includes): No need to include "stat-macros.h".
31325         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
31326         (direxists, __path_search) [!_LIBC]: Don't compile these in
31327         gnulib; the tmpdir module covers that.
31328         * lib/tempname.h: New file.
31329
31330 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
31331
31332         * COPYING: Explain how gnulib-tool converts licence headers.
31333         Almost all wording by Eric Blake.
31334
31335 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
31336
31337         * lib/mbchar.h (is_basic_table): Make read-only.
31338         * lib/mbchar.c (is_basic_table): Likewise.
31339         Reported by John Darrington.
31340
31341 2006-10-25  Bruno Haible  <bruno@clisp.org>
31342
31343         * lib/progname.h (set_program_name): Undefine before defining.
31344
31345 2006-10-25  Bruno Haible  <bruno@clisp.org>
31346
31347         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
31348         false for non-gcc C++ compilers.
31349         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
31350
31351 2006-10-24  Bruno Haible  <bruno@clisp.org>
31352
31353         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
31354         iconv implementations like Irix iconv.
31355
31356 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
31357
31358         * modules/vararrays: New file.
31359         * m4/vararrays.m4: New file, taken from diffutils.
31360         * MODULES.html.sh: New module vararrays.
31361
31362 2006-10-24  Karl Berry  <karl@gnu.org>
31363
31364         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
31365         Don't call GNU Unix.
31366
31367 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31368
31369         * users.txt: Add Libtool.
31370
31371         Sync from Libtool:
31372
31373         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
31374
31375         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
31376         to gnulib's policy of including config.h unconditionally.
31377
31378 2006-10-24  Bruno Haible  <bruno@clisp.org>
31379
31380         * modules/wcwidth (Files): Add m4/wint_t.m4.
31381         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
31382         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
31383
31384 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
31385
31386         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
31387         to pacify GCC with some -W flags enabled.  Problem reported by
31388         Bruno Haible.
31389
31390 2006-10-24  Jim Meyering  <jim@meyering.net>
31391
31392         * MODULES.html.sh: Remove uinttostr.  It's not a module.
31393         Reported by Karl Berry.
31394
31395 2006-10-23  Bruno Haible  <bruno@clisp.org>
31396
31397         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
31398
31399 2006-10-24  Bruno Haible  <bruno@clisp.org>
31400
31401         * lib/gl_list.h: Use C comment style, not C++ comment style.
31402
31403 2006-10-23  Eric Blake  <ebb9@byu.net>
31404
31405         * lib/getaddrinfo.c (includes): Add missing include.
31406
31407 2006-10-23  Bruno Haible  <bruno@clisp.org>
31408             Paul Eggert  <eggert@cs.ucla.edu>
31409
31410         Ability to rename obstack_free.
31411         * lib/obstack.h (__obstack_free): New macro. Declare instead of
31412         obstack_free.
31413         (obstack_free): Invoke the __obstack_free macro.
31414         * lib/obstack.c (obstack_free): Use __obstack_free macro.
31415
31416 2006-10-23  Bruno Haible  <bruno@clisp.org>
31417             Paul Eggert  <eggert@cs.ucla.edu>
31418
31419         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
31420         __argc, __argv from the declaration. (They are defined as macros on
31421         mingw.)
31422
31423 2006-10-22  Bruno Haible  <bruno@clisp.org>
31424
31425         * doc/gnulib-intro.texi: New file.
31426         * doc/gnulib.texi: Include it.
31427
31428 2006-10-21  Bruno Haible  <bruno@clisp.org>
31429
31430         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
31431         "Introduction", "Miscellanous Notes", "Particular Modules".
31432
31433 2006-10-21  Bruno Haible  <bruno@clisp.org>
31434
31435         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31436         Change mostlyclean-local rule to avoid sh syntax error from bash
31437         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
31438
31439 2006-10-23  Jim Meyering  <jim@meyering.net>
31440
31441         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
31442         in place of snprintf.
31443
31444         * modules/inttostr (Files): Add lib/uinttostr.c.
31445         * lib/uinttostr.c (inttostr): New file/function.
31446         * lib/inttostr.h (uinttostr): Declare.
31447         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
31448         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
31449         Add uinttostr.
31450         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
31451
31452 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
31453
31454         * lib/canonicalize.c (ELOOP): Define if not already defined.
31455         Problem reported by Bruno Haible in
31456         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
31457
31458 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
31459
31460         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
31461         Problem reported by Perry Smith and Ville Laurikari.
31462
31463         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
31464         uses.
31465
31466 2006-10-19  Bruno Haible  <bruno@clisp.org>
31467
31468         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
31469         for mingw.
31470
31471 2006-10-19  Bruno Haible  <bruno@clisp.org>
31472
31473         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
31474         Needed for mingw.
31475
31476 2006-10-19  Bruno Haible  <bruno@clisp.org>
31477
31478         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
31479
31480 2006-10-19  Bruno Haible  <bruno@clisp.org>
31481
31482         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
31483         it.
31484
31485 2006-10-19  Bruno Haible  <bruno@clisp.org>
31486
31487         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
31488         invocation.
31489
31490 2006-10-19  Bruno Haible  <bruno@clisp.org>
31491
31492         * gnulib-tool (func_create_testdir): Don't include ftruncate and
31493         mountlist by default.
31494
31495 2006-10-16  Bruno Haible  <bruno@clisp.org>
31496
31497         * lib/c-strstr.c: Include c-strstr.h.
31498
31499 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
31500
31501         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
31502         in a slash.
31503
31504 2006-10-18  Bruno Haible  <bruno@clisp.org>
31505
31506         * lib/lock.h [C++]: Wrap definitions in extern "C".
31507
31508 2006-10-18  Bruno Haible  <bruno@clisp.org>
31509
31510         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
31511         gl_LIBOBJS list.
31512
31513 2006-10-18  Bruno Haible  <bruno@clisp.org>
31514
31515         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
31516
31517 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
31518
31519         * lib/xstrtol.h: Include gettext.h.
31520         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
31521         Problem reported by Eric Blake.
31522         * modules/xstrtol (Depends-on): Add gettext-h.
31523
31524 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
31525
31526         * lib/strftime.c (advance): New macro.
31527         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
31528         incomplete type, so you can't add 0 to it.  Problem and patch
31529         reported by Eelco Dolstra for dietlibc.
31530
31531 2006-10-18  Jim Meyering  <jim@meyering.net>
31532
31533         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
31534         type for a local, and rename it: s/up/user_proc/.
31535
31536 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
31537
31538         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
31539         READ_UTMP_USER_PROCESS.
31540         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
31541
31542 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
31543
31544         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
31545         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
31546
31547 2006-10-17  Eric Blake  <ebb9@byu.net>
31548
31549         * lib/sigprocmask.c (sigprocmask): Fix typo.
31550
31551         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
31552
31553         * modules/clean-temp (Makefile.am): Don't add to make output...
31554         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
31555         config.h.
31556
31557 2006-10-17  Bruno Haible  <bruno@clisp.org>
31558
31559         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
31560         differently if DEFAULT_TEXT_DOMAIN is set.
31561
31562 2006-10-16  Bruno Haible  <bruno@clisp.org>
31563
31564         * lib/clean-temp.c: Include fwriteerror.h.
31565
31566 2006-10-16  Bruno Haible  <bruno@clisp.org>
31567
31568         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
31569
31570 2006-10-16  Bruno Haible  <bruno@clisp.org>
31571
31572         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
31573         * lib/sigprocmask.h: Include <sys/types.h>.
31574         (sigset_t): Use the system's definition if present.
31575
31576 2006-10-17  Eric Blake  <ebb9@byu.net>
31577
31578         * lib/xvasprintf.c (includes): Assume config.h.
31579         * lib/xasprintf.c (includes): Likewise.
31580
31581 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
31582
31583         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
31584         at least as wide as intmax_t.
31585
31586 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
31587
31588         (Imported from Automake.)
31589         * build-aux/gnupload: Update to version 1.1 of directive file.
31590
31591 2006-10-16  Eric Blake  <ebb9@byu.net>
31592
31593         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
31594         match Automake 1.10a.
31595
31596 2006-10-14  Bruno Haible  <bruno@clisp.org>
31597
31598         * modules/sigprocmask: New file.
31599         * lib/sigprocmask.h: New file.
31600         * lib/sigprocmask.c: New file.
31601         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
31602         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
31603         request sigprocmask.o.
31604         (gl_PREREQ_SIGPROCMASK): New macro.
31605         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
31606         (Depends-on): Add sigprocmask.
31607         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
31608         gt_SIGNALBLOCKING. Test for 'raise' only once.
31609         * lib/fatal-signal.c: Include sigprocmask.h.
31610         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
31611         unblock_fatal_signals): Define always.
31612         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31613         sigprocmask.
31614
31615 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
31616
31617         Sync from Automake.
31618         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
31619         which incorrectly sets the mode of an existing destination
31620         directory.  In some cases the unpatched install-sh could do the
31621         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
31622         system.  We hope this is rare in practice, but it's clearly worth
31623         fixing.  Problem reported by Alex Unleashed in
31624         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
31625         Also, don't bother to check for -m bugs unless we're using -m;
31626         suggested by Stepan Kasal.
31627
31628 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31629
31630         Sync from Automake.
31631         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
31632         `-c' flag, so they appear at the same position as in %FASTDEP%
31633         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
31634         which ignores unknown options only after the first non-option.
31635         Bug report against M4 by Nelson H. F. Beebe.
31636
31637 2006-10-13  Jim Meyering  <jim@meyering.net>
31638
31639         Fix a bug in yesterday's change.
31640         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
31641         p->fts_statp->st_dev would be used uninitialized.
31642         Ensures that we always call fts_stat on the very first entry.
31643         Miklos Szeredi reported that find -xdev stopped working.
31644
31645 2006-10-12  Bruno Haible  <bruno@clisp.org>
31646
31647         * gnulib-tool (func_get_automake_snippet): Append an automatically
31648         computed EXTRA_DIST augmentation.
31649         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
31650         * modules/alloca-opt (Makefile.am): Likewise.
31651         * modules/allocsa (Makefile.am): Likewise.
31652         * modules/arcfour (Makefile.am): Likewise.
31653         * modules/arctwo (Makefile.am): Likewise.
31654         * modules/argmatch (Makefile.am): Likewise.
31655         * modules/argz (Makefile.am): Likewise.
31656         * modules/atexit (Makefile.am): Likewise.
31657         * modules/backupfile (Makefile.am): Likewise.
31658         * modules/byteswap (Makefile.am): Likewise.
31659         * modules/c-strtod (Makefile.am): Likewise.
31660         * modules/c-strtold (Makefile.am): Likewise.
31661         * modules/calloc (Makefile.am): Likewise.
31662         * modules/canon-host (Makefile.am): Likewise.
31663         * modules/canonicalize (Makefile.am): Likewise.
31664         * modules/chdir-long (Makefile.am): Likewise.
31665         * modules/chdir-safer (Makefile.am): Likewise.
31666         * modules/check-version (Makefile.am): Likewise.
31667         * modules/chown (Makefile.am): Likewise.
31668         * modules/cloexec (Makefile.am): Likewise.
31669         * modules/close-stream (Makefile.am): Likewise.
31670         * modules/closeout (Makefile.am): Likewise.
31671         * modules/crc (Makefile.am): Likewise.
31672         * modules/csharpexec (Makefile.am): Likewise.
31673         * modules/cycle-check (Makefile.am): Likewise.
31674         * modules/des (Makefile.am): Likewise.
31675         * modules/dev-ino (Makefile.am): Likewise.
31676         * modules/dirfd (Makefile.am): Likewise.
31677         * modules/dirname (Makefile.am): Likewise.
31678         * modules/dup2 (Makefile.am): Likewise.
31679         * modules/eealloc (Makefile.am): Likewise.
31680         * modules/error (Makefile.am): Likewise.
31681         * modules/euidaccess (Makefile.am): Likewise.
31682         * modules/exclude (Makefile.am): Likewise.
31683         * modules/exitfail (Makefile.am): Likewise.
31684         * modules/fcntl-safer (Makefile.am): Likewise.
31685         * modules/fcntl (Makefile.am): Likewise.
31686         * modules/file-type (Makefile.am): Likewise.
31687         * modules/fileblocks (Makefile.am): Likewise.
31688         * modules/filemode (Makefile.am): Likewise.
31689         * modules/filenamecat (Makefile.am): Likewise.
31690         * modules/fnmatch (Makefile.am): Likewise.
31691         * modules/fopen-safer (Makefile.am): Likewise.
31692         * modules/fpending (Makefile.am): Likewise.
31693         * modules/fprintftime (Makefile.am): Likewise.
31694         * modules/free (Makefile.am): Likewise.
31695         * modules/fsusage (Makefile.am): Likewise.
31696         * modules/ftruncate (Makefile.am): Likewise.
31697         * modules/fts (Makefile.am): Likewise.
31698         * modules/gc-arcfour (Makefile.am): Likewise.
31699         * modules/gc-des (Makefile.am): Likewise.
31700         * modules/gc-hmac-md5 (Makefile.am): Likewise.
31701         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
31702         * modules/gc-md4 (Makefile.am): Likewise.
31703         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
31704         * modules/gc-sha1 (Makefile.am): Likewise.
31705         * modules/gc (Makefile.am): Likewise.
31706         * modules/getaddrinfo (Makefile.am): Likewise.
31707         * modules/getcwd (Makefile.am): Likewise.
31708         * modules/getdelim (Makefile.am): Likewise.
31709         * modules/getdomainname (Makefile.am): Likewise.
31710         * modules/getgroups (Makefile.am): Likewise.
31711         * modules/gethostname (Makefile.am): Likewise.
31712         * modules/gethrxtime (Makefile.am): Likewise.
31713         * modules/getline (Makefile.am): Likewise.
31714         * modules/getloadavg (Makefile.am): Likewise.
31715         * modules/getlogin_r (Makefile.am): Likewise.
31716         * modules/getndelim2 (Makefile.am): Likewise.
31717         * modules/getopt (Makefile.am): Likewise.
31718         * modules/getpagesize (Makefile.am): Likewise.
31719         * modules/getpass-gnu (Makefile.am): Likewise.
31720         * modules/getpass (Makefile.am): Likewise.
31721         * modules/getsubopt (Makefile.am): Likewise.
31722         * modules/gettime (Makefile.am): Likewise.
31723         * modules/gettimeofday (Makefile.am): Likewise.
31724         * modules/getugroups (Makefile.am): Likewise.
31725         * modules/getusershell (Makefile.am): Likewise.
31726         * modules/glob (Makefile.am): Likewise.
31727         * modules/group-member (Makefile.am): Likewise.
31728         * modules/hard-locale (Makefile.am): Likewise.
31729         * modules/hash (Makefile.am): Likewise.
31730         * modules/hmac-md5 (Makefile.am): Likewise.
31731         * modules/hmac-sha1 (Makefile.am): Likewise.
31732         * modules/human (Makefile.am): Likewise.
31733         * modules/idcache (Makefile.am): Likewise.
31734         * modules/imaxabs (Makefile.am): Likewise.
31735         * modules/imaxdiv (Makefile.am): Likewise.
31736         * modules/inet_ntop (Makefile.am): Likewise.
31737         * modules/inet_pton (Makefile.am): Likewise.
31738         * modules/intprops (Makefile.am): Likewise.
31739         * modules/inttostr (Makefile.am): Likewise.
31740         * modules/inttypes (Makefile.am): Likewise.
31741         * modules/isapipe (Makefile.am): Likewise.
31742         * modules/javaversion (Makefile.am): Likewise.
31743         * modules/lchmod (Makefile.am): Likewise.
31744         * modules/lchown (Makefile.am): Likewise.
31745         * modules/localcharset (Makefile.am): Likewise.
31746         * modules/long-options (Makefile.am): Likewise.
31747         * modules/lstat (Makefile.am): Likewise.
31748         * modules/malloc (Makefile.am): Likewise.
31749         * modules/mathl (Makefile.am): Likewise.
31750         * modules/mbchar (Makefile.am): Likewise.
31751         * modules/md2 (Makefile.am): Likewise.
31752         * modules/md4 (Makefile.am): Likewise.
31753         * modules/md5 (Makefile.am): Likewise.
31754         * modules/memcasecmp (Makefile.am): Likewise.
31755         * modules/memchr (Makefile.am): Likewise.
31756         * modules/memcmp (Makefile.am): Likewise.
31757         * modules/memcoll (Makefile.am): Likewise.
31758         * modules/memcpy (Makefile.am): Likewise.
31759         * modules/memmem (Makefile.am): Likewise.
31760         * modules/memmove (Makefile.am): Likewise.
31761         * modules/mempcpy (Makefile.am): Likewise.
31762         * modules/memrchr (Makefile.am): Likewise.
31763         * modules/memset (Makefile.am): Likewise.
31764         * modules/memxor (Makefile.am): Likewise.
31765         * modules/mkancesdirs (Makefile.am): Likewise.
31766         * modules/mkdir-p (Makefile.am): Likewise.
31767         * modules/mkdir (Makefile.am): Likewise.
31768         * modules/mkdtemp (Makefile.am): Likewise.
31769         * modules/mkstemp (Makefile.am): Likewise.
31770         * modules/mktime (Makefile.am): Likewise.
31771         * modules/modechange (Makefile.am): Likewise.
31772         * modules/mountlist (Makefile.am): Likewise.
31773         * modules/nanosleep (Makefile.am): Likewise.
31774         * modules/obstack (Makefile.am): Likewise.
31775         * modules/openat (Makefile.am): Likewise.
31776         * modules/pagealign_alloc (Makefile.am): Likewise.
31777         * modules/pathmax (Makefile.am): Likewise.
31778         * modules/physmem (Makefile.am): Likewise.
31779         * modules/poll (Makefile.am): Likewise.
31780         * modules/posixtm (Makefile.am): Likewise.
31781         * modules/posixver (Makefile.am): Likewise.
31782         * modules/putenv (Makefile.am): Likewise.
31783         * modules/quote (Makefile.am): Likewise.
31784         * modules/quotearg (Makefile.am): Likewise.
31785         * modules/raise (Makefile.am): Likewise.
31786         * modules/read-file (Makefile.am): Likewise.
31787         * modules/readline (Makefile.am): Likewise.
31788         * modules/readlink (Makefile.am): Likewise.
31789         * modules/readtokens (Makefile.am): Likewise.
31790         * modules/readutmp (Makefile.am): Likewise.
31791         * modules/realloc (Makefile.am): Likewise.
31792         * modules/regex (Makefile.am): Likewise.
31793         * modules/rename-dest-slash (Makefile.am): Likewise.
31794         * modules/rename (Makefile.am): Likewise.
31795         * modules/rijndael (Makefile.am): Likewise.
31796         * modules/rmdir (Makefile.am): Likewise.
31797         * modules/rpmatch (Makefile.am): Likewise.
31798         * modules/safe-read (Makefile.am): Likewise.
31799         * modules/safe-write (Makefile.am): Likewise.
31800         * modules/same-inode (Makefile.am): Likewise.
31801         * modules/same (Makefile.am): Likewise.
31802         * modules/save-cwd (Makefile.am): Likewise.
31803         * modules/savedir (Makefile.am): Likewise.
31804         * modules/setenv (Makefile.am): Likewise.
31805         * modules/settime (Makefile.am): Likewise.
31806         * modules/sha1 (Makefile.am): Likewise.
31807         * modules/sig2str (Makefile.am): Likewise.
31808         * modules/snprintf (Makefile.am): Likewise.
31809         * modules/stat-macros (Makefile.am): Likewise.
31810         * modules/stat-time (Makefile.am): Likewise.
31811         * modules/stdbool (Makefile.am): Likewise.
31812         * modules/stdint (Makefile.am): Likewise.
31813         * modules/stdlib-safer (Makefile.am): Likewise.
31814         * modules/stpcpy (Makefile.am): Likewise.
31815         * modules/stpncpy (Makefile.am): Likewise.
31816         * modules/strcase (Makefile.am): Likewise.
31817         * modules/strcasestr (Makefile.am): Likewise.
31818         * modules/strchrnul (Makefile.am): Likewise.
31819         * modules/strcspn (Makefile.am): Likewise.
31820         * modules/strdup (Makefile.am): Likewise.
31821         * modules/strerror (Makefile.am): Likewise.
31822         * modules/strftime (Makefile.am): Likewise.
31823         * modules/strndup (Makefile.am): Likewise.
31824         * modules/strnlen (Makefile.am): Likewise.
31825         * modules/strpbrk (Makefile.am): Likewise.
31826         * modules/strsep (Makefile.am): Likewise.
31827         * modules/strstr (Makefile.am): Likewise.
31828         * modules/strtod (Makefile.am): Likewise.
31829         * modules/strtoimax (Makefile.am): Likewise.
31830         * modules/strtok_r (Makefile.am): Likewise.
31831         * modules/strtol (Makefile.am): Likewise.
31832         * modules/strtoll (Makefile.am): Likewise.
31833         * modules/strtoul (Makefile.am): Likewise.
31834         * modules/strtoull (Makefile.am): Likewise.
31835         * modules/strtoumax (Makefile.am): Likewise.
31836         * modules/strverscmp (Makefile.am): Likewise.
31837         * modules/sys_socket (Makefile.am): Likewise.
31838         * modules/sys_stat (Makefile.am): Likewise.
31839         * modules/sysexits (Makefile.am): Likewise.
31840         * modules/time_r (Makefile.am): Likewise.
31841         * modules/timegm (Makefile.am): Likewise.
31842         * modules/timespec (Makefile.am): Likewise.
31843         * modules/tmpfile-safer (Makefile.am): Likewise.
31844         * modules/trim (Makefile.am): Likewise.
31845         * modules/unistd-safer (Makefile.am): Likewise.
31846         * modules/unlinkdir (Makefile.am): Likewise.
31847         * modules/unlocked-io (Makefile.am): Likewise.
31848         * modules/userspec (Makefile.am): Likewise.
31849         * modules/utime (Makefile.am): Likewise.
31850         * modules/utimecmp (Makefile.am): Likewise.
31851         * modules/utimens (Makefile.am): Likewise.
31852         * modules/vasnprintf (Makefile.am): Likewise.
31853         * modules/vasprintf (Makefile.am): Likewise.
31854         * modules/vsnprintf (Makefile.am): Likewise.
31855         * modules/xalloc (Makefile.am): Likewise.
31856         * modules/xgetcwd (Makefile.am): Likewise.
31857         * modules/xnanosleep (Makefile.am): Likewise.
31858         * modules/xreadlink (Makefile.am): Likewise.
31859         * modules/xstrtod (Makefile.am): Likewise.
31860         * modules/xstrtol (Makefile.am): Likewise.
31861         * modules/xstrtold (Makefile.am): Likewise.
31862         * modules/yesno (Makefile.am): Likewise.
31863         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
31864
31865 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
31866
31867         * modules/error (Makefile.am): Distribute files through
31868         EXTRA_DIST, not lib_SOURCES.
31869
31870 2006-10-12  Eric Blake  <ebb9@byu.net>
31871
31872         * modules/error (Makefile.am): Distribute files in /lib.
31873         * modules/obstack (Makefile.am): Likewise.
31874
31875 2006-10-12  Bruno Haible  <bruno@clisp.org>
31876
31877         * modules/acl (Makefile.am): Distribute all files in lib/ through
31878         EXTRA_DIST.
31879         * modules/arcfour (Makefile.am): Likewise.
31880         * modules/arctwo (Makefile.am): Likewise.
31881         * modules/argmatch (Makefile.am): Likewise.
31882         * modules/argz (Makefile.am): Likewise.
31883         * modules/atexit (Makefile.am): Likewise.
31884         * modules/backupfile (Makefile.am): Likewise.
31885         * modules/c-strtod (Makefile.am): Likewise.
31886         * modules/c-strtold (Makefile.am): Likewise.
31887         * modules/calloc (Makefile.am): Likewise.
31888         * modules/canon-host (Makefile.am): Likewise.
31889         * modules/canonicalize (Makefile.am): Likewise.
31890         * modules/chdir-long (Makefile.am): Likewise.
31891         * modules/chdir-safer (Makefile.am): Likewise.
31892         * modules/check-version (Makefile.am): Likewise.
31893         * modules/chown (Makefile.am): Likewise.
31894         * modules/cloexec (Makefile.am): Likewise.
31895         * modules/close-stream (Makefile.am): Likewise.
31896         * modules/closeout (Makefile.am): Likewise.
31897         * modules/crc (Makefile.am): Likewise.
31898         * modules/cycle-check (Makefile.am): Likewise.
31899         * modules/des (Makefile.am): Likewise.
31900         * modules/dirfd (Makefile.am): Likewise.
31901         * modules/dirname (Makefile.am): Likewise.
31902         * modules/dup2 (Makefile.am): Likewise.
31903         * modules/euidaccess (Makefile.am): Likewise.
31904         * modules/exclude (Makefile.am): Likewise.
31905         * modules/exitfail (Makefile.am): Likewise.
31906         * modules/fcntl-safer (Makefile.am): Likewise.
31907         * modules/file-type (Makefile.am): Likewise.
31908         * modules/fileblocks (Makefile.am): Likewise.
31909         * modules/filemode (Makefile.am): Likewise.
31910         * modules/filenamecat (Makefile.am): Likewise.
31911         * modules/fnmatch (Makefile.am): Likewise.
31912         * modules/fopen-safer (Makefile.am): Likewise.
31913         * modules/fpending (Makefile.am): Likewise.
31914         * modules/fprintftime (Makefile.am): Likewise.
31915         * modules/free (Makefile.am): Likewise.
31916         * modules/fsusage (Makefile.am): Likewise.
31917         * modules/ftruncate (Makefile.am): Likewise.
31918         * modules/fts (Makefile.am): Likewise.
31919         * modules/gc (Makefile.am): Likewise.
31920         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
31921         * modules/getaddrinfo (Makefile.am): Likewise.
31922         * modules/getcwd (Makefile.am): Likewise.
31923         * modules/getdelim (Makefile.am): Likewise.
31924         * modules/getdomainname (Makefile.am): Likewise.
31925         * modules/getgroups (Makefile.am): Likewise.
31926         * modules/gethostname (Makefile.am): Likewise.
31927         * modules/gethrxtime (Makefile.am): Likewise.
31928         * modules/getline (Makefile.am): Likewise.
31929         * modules/getloadavg (Makefile.am): Likewise.
31930         * modules/getlogin_r (Makefile.am): Likewise.
31931         * modules/getopt (Makefile.am): Likewise.
31932         * modules/getpass (Makefile.am): Likewise.
31933         * modules/getpass-gnu (Makefile.am): Likewise.
31934         * modules/getsubopt (Makefile.am): Likewise.
31935         * modules/gettime (Makefile.am): Likewise.
31936         * modules/gettimeofday (Makefile.am): Likewise.
31937         * modules/getugroups (Makefile.am): Likewise.
31938         * modules/getusershell (Makefile.am): Likewise.
31939         * modules/glob (Makefile.am): Likewise.
31940         * modules/group-member (Makefile.am): Likewise.
31941         * modules/hard-locale (Makefile.am): Likewise.
31942         * modules/hash (Makefile.am): Likewise.
31943         * modules/hmac-md5 (Makefile.am): Likewise.
31944         * modules/hmac-sha1 (Makefile.am): Likewise.
31945         * modules/human (Makefile.am): Likewise.
31946         * modules/idcache (Makefile.am): Likewise.
31947         * modules/imaxabs (Makefile.am): Likewise.
31948         * modules/imaxdiv (Makefile.am): Likewise.
31949         * modules/inet_ntop (Makefile.am): Likewise.
31950         * modules/inet_pton (Makefile.am): Likewise.
31951         * modules/inttostr (Makefile.am): Likewise.
31952         * modules/isapipe (Makefile.am): Likewise.
31953         * modules/lchown (Makefile.am): Likewise.
31954         * modules/long-options (Makefile.am): Likewise.
31955         * modules/lstat (Makefile.am): Likewise.
31956         * modules/malloc (Makefile.am): Likewise.
31957         * modules/mathl (Makefile.am): Likewise.
31958         * modules/mbchar (Makefile.am): Likewise.
31959         * modules/md2 (Makefile.am): Likewise.
31960         * modules/md4 (Makefile.am): Likewise.
31961         * modules/md5 (Makefile.am): Likewise.
31962         * modules/memcasecmp (Makefile.am): Likewise.
31963         * modules/memchr (Makefile.am): Likewise.
31964         * modules/memcmp (Makefile.am): Likewise.
31965         * modules/memcoll (Makefile.am): Likewise.
31966         * modules/memcpy (Makefile.am): Likewise.
31967         * modules/memmem (Makefile.am): Likewise.
31968         * modules/memmove (Makefile.am): Likewise.
31969         * modules/mempcpy (Makefile.am): Likewise.
31970         * modules/memrchr (Makefile.am): Likewise.
31971         * modules/memset (Makefile.am): Likewise.
31972         * modules/memxor (Makefile.am): Likewise.
31973         * modules/mkancesdirs (Makefile.am): Likewise.
31974         * modules/mkdir (Makefile.am): Likewise.
31975         * modules/mkdir-p (Makefile.am): Likewise.
31976         * modules/mkdtemp (Makefile.am): Likewise.
31977         * modules/mkstemp (Makefile.am): Likewise.
31978         * modules/mktime (Makefile.am): Likewise.
31979         * modules/modechange (Makefile.am): Likewise.
31980         * modules/mountlist (Makefile.am): Likewise.
31981         * modules/nanosleep (Makefile.am): Likewise.
31982         * modules/openat (Makefile.am): Likewise.
31983         * modules/pagealign_alloc (Makefile.am): Likewise.
31984         * modules/physmem (Makefile.am): Likewise.
31985         * modules/poll (Makefile.am): Likewise.
31986         * modules/posixtm (Makefile.am): Likewise.
31987         * modules/posixver (Makefile.am): Likewise.
31988         * modules/putenv (Makefile.am): Likewise.
31989         * modules/quote (Makefile.am): Likewise.
31990         * modules/quotearg (Makefile.am): Likewise.
31991         * modules/raise (Makefile.am): Likewise.
31992         * modules/read-file (Makefile.am): Likewise.
31993         * modules/readline (Makefile.am): Likewise.
31994         * modules/readlink (Makefile.am): Likewise.
31995         * modules/readtokens (Makefile.am): Likewise.
31996         * modules/readutmp (Makefile.am): Likewise.
31997         * modules/realloc (Makefile.am): Likewise.
31998         * modules/regex (Makefile.am): Likewise.
31999         * modules/rename (Makefile.am): Likewise.
32000         * modules/rename-dest-slash (Makefile.am): Likewise.
32001         * modules/rijndael (Makefile.am): Likewise.
32002         * modules/rmdir (Makefile.am): Likewise.
32003         * modules/rpmatch (Makefile.am): Likewise.
32004         * modules/safe-read (Makefile.am): Likewise.
32005         * modules/safe-write (Makefile.am): Likewise.
32006         * modules/same (Makefile.am): Likewise.
32007         * modules/save-cwd (Makefile.am): Likewise.
32008         * modules/savedir (Makefile.am): Likewise.
32009         * modules/setenv (Makefile.am): Likewise.
32010         * modules/settime (Makefile.am): Likewise.
32011         * modules/sha1 (Makefile.am): Likewise.
32012         * modules/sig2str (Makefile.am): Likewise.
32013         * modules/snprintf (Makefile.am): Likewise.
32014         * modules/stdlib-safer (Makefile.am): Likewise.
32015         * modules/stpcpy (Makefile.am): Likewise.
32016         * modules/stpncpy (Makefile.am): Likewise.
32017         * modules/strcase (Makefile.am): Likewise.
32018         * modules/strcasestr (Makefile.am): Likewise.
32019         * modules/strchrnul (Makefile.am): Likewise.
32020         * modules/strcspn (Makefile.am): Likewise.
32021         * modules/strdup (Makefile.am): Likewise.
32022         * modules/strerror (Makefile.am): Likewise.
32023         * modules/strftime (Makefile.am): Likewise.
32024         * modules/strndup (Makefile.am): Likewise.
32025         * modules/strnlen (Makefile.am): Likewise.
32026         * modules/strpbrk (Makefile.am): Likewise.
32027         * modules/strsep (Makefile.am): Likewise.
32028         * modules/strstr (Makefile.am): Likewise.
32029         * modules/strtod (Makefile.am): Likewise.
32030         * modules/strtoimax (Makefile.am): Likewise.
32031         * modules/strtok_r (Makefile.am): Likewise.
32032         * modules/strtol (Makefile.am): Likewise.
32033         * modules/strtoll (Makefile.am): Likewise.
32034         * modules/strtoul (Makefile.am): Likewise.
32035         * modules/strtoull (Makefile.am): Likewise.
32036         * modules/strtoumax (Makefile.am): Likewise.
32037         * modules/strverscmp (Makefile.am): Likewise.
32038         * modules/time_r (Makefile.am): Likewise.
32039         * modules/timegm (Makefile.am): Likewise.
32040         * modules/tmpfile-safer (Makefile.am): Likewise.
32041         * modules/unistd-safer (Makefile.am): Likewise.
32042         * modules/unlinkdir (Makefile.am): Likewise.
32043         * modules/userspec (Makefile.am): Likewise.
32044         * modules/utime (Makefile.am): Likewise.
32045         * modules/utimecmp (Makefile.am): Likewise.
32046         * modules/utimens (Makefile.am): Likewise.
32047         * modules/vasnprintf (Makefile.am): Likewise.
32048         * modules/vasprintf (Makefile.am): Likewise.
32049         * modules/vsnprintf (Makefile.am): Likewise.
32050         * modules/xalloc (Makefile.am): Likewise.
32051         * modules/xgetcwd (Makefile.am): Likewise.
32052         * modules/xnanosleep (Makefile.am): Likewise.
32053         * modules/xreadlink (Makefile.am): Likewise.
32054         * modules/xstrtod (Makefile.am): Likewise.
32055         * modules/xstrtol (Makefile.am): Likewise.
32056         * modules/xstrtold (Makefile.am): Likewise.
32057         * modules/yesno (Makefile.am): Likewise.
32058
32059 2006-10-12  Jim Meyering  <jim@meyering.net>
32060
32061         * m4/getloadavg.m4: Revert the change below.
32062
32063         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
32064         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
32065         fail with a symlink, which is what coreutils' ./bootstrap now
32066         creates by default.
32067
32068 2006-10-12  Bruno Haible  <bruno@clisp.org>
32069
32070         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
32071         mingw.
32072         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
32073         MSVC and mingw explicitly.
32074
32075 2006-10-11  Simon Josefsson  <jas@extundo.com>
32076             Bruno Haible  <bruno@clisp.org>
32077
32078         Add support for multiple gnulib-tool invocations in the scope of a
32079         single configure.ac file.
32080         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
32081         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
32082         with the same contents as the _LIBADD variable.
32083         (func_emit_initmacro_start, func_emit_initmacro_end,
32084         func_emit_initmacro_done): New functions.
32085         (func_import, func_create_testdir): Invoke them. Allow the identifiers
32086         gl_LIBOBJS and gl_LTLIBOBJS.
32087
32088 2006-10-11  Bruno Haible  <bruno@clisp.org>
32089
32090         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
32091         (func_create_testdir): Don't create po/Makefile.am, don't invoke
32092         autoreconf. Instead, invoke autopoint explicitly but move back the
32093         *.m4 files from gnulib.
32094
32095 2006-10-11  Bruno Haible  <bruno@clisp.org>
32096
32097         * gnulib-tool (func_usage): Make module names after --create-testdir
32098         optional.
32099         (func_create_testdir): If no module was specified, use nearly all
32100         modules.
32101
32102 2006-10-12  Jim Meyering  <jim@meyering.net>
32103
32104         Big performance improvement for fts-based tools that use FTS_NOSTAT.
32105         Avoid spurious inode-mismatch problems on non-POSIX file systems.
32106         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
32107         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
32108         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
32109         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
32110         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
32111         (fts_set_stat_required): New function.
32112         (fts_open): Defer the calls to fts_stat, if possible or requested.
32113         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
32114         into fts_stat itself.
32115         (fts_read): Perform any required (deferred) fts_stat call.
32116         (fts_build): Likewise, for the directory we're about to open and read.
32117         In the readdir loop, carefully decide whether each entry will require
32118         an eventual call to fts_stat, using dirent.d_type info if available.
32119         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
32120         a command line argument into this function.  Update all callers.
32121         Map a return value of FTS_DOT to FTS_D for a command line argument.
32122         * modules/fts (Depends-on): Add d-type.  Alphabetize.
32123         Thanks to Miklos Szeredi for his tenacity and for the initial
32124         bug report about "find" failing on a FUSE-based file system.
32125
32126         * lib/fts.c (fts_open): Use consistent indentation.
32127
32128 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
32129
32130         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
32131         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
32132         reported by Jim Meyering.  All uses of cache variables renamed
32133         to match Autoconf's.
32134         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
32135         the other one.
32136
32137         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
32138         Fix misspelling in diagnostic.
32139
32140 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
32141
32142         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
32143         defined.  Problem reported by Matthew Woehlke.
32144
32145         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
32146         Add support for Tandem NonStop R series.
32147         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
32148         Use new macro.
32149
32150         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
32151         (has_trailing_slash): Omit size arg; all callers changed.
32152         Omit 'inline', since it doesn't help performance and we'd
32153         need to configure it.
32154         Don't count //, ///, etc. as having a trailing slash.
32155         As a side effect, this removes a C99ism reported by Matthew Woehlke.
32156         (rpl_rename_dest_slash): On failure, use rename's errno rather
32157         than (in some cases) an incorrect or junk errno.
32158         Simplify code by removing need to compute length; this does
32159         cause it to make two passes instead of one over the file name,
32160         but it's worth it.
32161
32162         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
32163         change, since Autoconf's version may no longer be appropriate now
32164         that we are using CVS Autoconf's version.  Add support for Tandem.
32165
32166 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
32167             Bruno Haible  <bruno@clisp.org>
32168
32169         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
32170         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
32171         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
32172         gl_AC_TYPE_LONG_LONG.
32173
32174         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
32175         instead of HAVE_LONG_LONG.
32176         * lib/printf-args.c (printf_fetchargs): Likewise.
32177         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
32178         * lib/vasnprintf.c (VASNPRINTF): Likewise.
32179         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
32180         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
32181         gl_AC_TYPE_LONG_LONG.
32182
32183 2006-10-11  Bruno Haible  <bruno@clisp.org>
32184
32185         * m4/longlong.m4: Add comments.
32186         * m4/ulonglong.m4: Likewise.
32187
32188 2006-10-10  Bruno Haible  <bruno@clisp.org>
32189
32190         Make it possible to #define stpcpy, strdup to aliases.
32191         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
32192         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
32193
32194 2006-10-10  Bruno Haible  <bruno@clisp.org>
32195
32196         Make it possible to #define gcd to an alias.
32197         * lib/gcd.c: Include config.h.
32198
32199 2006-10-10  Bruno Haible  <bruno@clisp.org>
32200
32201         Make it possible to #define c_isascii to an alias.
32202         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
32203         defined. Undefine the macros before defining them, to avoid gcc
32204         warnings.
32205         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
32206         define NO_C_CTYPE_MACROS early.
32207
32208 2006-10-10  Bruno Haible  <bruno@clisp.org>
32209
32210         Make it possible to #define set_program_name to an alias.
32211         * lib/progname.c: Don't undefine set_program_name; instead, undefine
32212         ENABLE_RELOCATABLE early.
32213
32214 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
32215
32216         Port to Tandem NSK OSS, which has 64-bit signed int but at most
32217         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
32218         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
32219         More generally, don't assume that 64-bit signed int is available
32220         if unsigned int is, and vice versa.
32221         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
32222         unsigned symbols, not on their signed counterparts.
32223         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
32224         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
32225         (UINT64_C, UINTMAX_C):
32226         Likewise.
32227         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
32228         unsigned counterparts.
32229         (Have_long_long, Unsigned): New macros.
32230         (Int): Renamed from INT.
32231         (strtoimax): Use the new macros.
32232         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
32233         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
32234         * modules/inttypes (inttypes.h): Substitute
32235         HAVE_UNSIGNED_LONG_LONG_INT.
32236         * modules/stdint (stdint.h): Likewise.
32237         (Files): Add m4/ulonglong.m4.
32238
32239 2006-10-10  Bruno Haible  <bruno@clisp.org>
32240
32241         Fix a gcc -Wshadow warning.
32242         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
32243         to 'bucket'.
32244         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
32245         gl_linked_indexof_from_to): Likewise.
32246         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
32247         Likewise.
32248         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
32249         Likewise.
32250         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
32251         Reported by Eric Blake.
32252
32253 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
32254
32255         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
32256         for NetBSD.  Problem reported by Bruno Haible.
32257
32258 2006-10-09  Jim Meyering  <jim@meyering.net>
32259
32260         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
32261         Patch from Bruno Haible.
32262
32263 2006-10-09  Jim Meyering  <jim@meyering.net>
32264
32265         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
32266         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
32267         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
32268
32269 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
32270
32271         Don't include <config.h> twice; this doesn't work in some cases,
32272         e.g., when config.h has "#define intmax_t long long int" and
32273         we include <config.h>, <inttypes.h>, <config.h> in that order.
32274         Problem reported by Matthew Woehlke in:
32275         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
32276         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
32277         * lib/fts-cycle.c: Don't include config.h.
32278         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
32279         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
32280         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
32281         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
32282         inttypes.h.
32283         * lib/xstrtoumax.c: Likewise.
32284         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
32285         __strtol and the like, so that this module is more like its siblings.
32286         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
32287         Remove; no longer needed now that we assume gnulib inttypes.h.
32288
32289 2006-10-08  Bruno Haible  <bruno@clisp.org>
32290
32291         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
32292         option.
32293
32294 2006-10-07  Jim Meyering  <jim@meyering.net>
32295
32296         * modules/inttypes (inttypes.h): Revert what seems to have been
32297         an inadvertent part of today's change: use "|", not "/" in the
32298         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
32299
32300 2006-10-07  Bruno Haible  <bruno@clisp.org>
32301
32302         * modules/sublist: New file.
32303
32304 2006-10-07  Bruno Haible  <bruno@clisp.org>
32305
32306         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
32307         * modules/argz (argz.h): Likewise.
32308         * modules/arpa_inet (arpa/inet.h): Likewise.
32309         * modules/byteswap (byteswap.h): Likewise.
32310         * modules/configmake (configmake.h): Likewise.
32311         * modules/fcntl (fcntl.h): Likewise.
32312         * modules/fnmatch (fnmatch.h): Likewise.
32313         * modules/getopt (getopt.h): Likewise.
32314         * modules/glob (glob.h): Likewise.
32315         * modules/inttypes (inttypes.h): Likewise.
32316         * modules/netinet_in (netinet/in.h): Likewise.
32317         * modules/poll (poll.h): Likewise.
32318         * modules/stdbool (stdbool.h): Likewise.
32319         * modules/stdint (stdint.h): Likewise.
32320         * modules/sys_select (sys/select.h): Likewise.
32321         * modules/sys_socket (sys/socket.h): Likewise.
32322         * modules/sys_stat (sys/stat.h): Likewise.
32323         * modules/sysexits (sysexits.h): Likewise.
32324         * modules/unistd (unistd.h): Likewise.
32325         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32326         Add a "DO NOT EDIT" comment to the generated file.
32327         (func_import): Likewise for gnulib-comp.m4.
32328
32329 2006-10-07  Bruno Haible  <bruno@clisp.org>
32330
32331         * lib/gl_sublist.h: New file.
32332         * lib/gl_sublist.c: New file.
32333
32334 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
32335
32336         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
32337         name (relative to the original working directory) and the file
32338         name component (relative to the temporary working directory).  All
32339         callers changed.
32340         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
32341         * lib/mkdir-p.c (make_dir_parents): Likewise.
32342         * lib/mkdir-p.h (make_dir_parents): Likewise.
32343
32344 2006-10-06  Eric Blake  <ebb9@byu.net>
32345
32346         Define several macros for use by the clean-temp module.
32347         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
32348         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
32349         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
32350
32351         * lib/clean-temp.h (close_stream_temp): New declaration.
32352         * lib/clean-temp.c (includes): Pull in headers according to what
32353         other modules are in use.
32354         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
32355
32356 2006-10-06  Bruno Haible  <bruno@clisp.org>
32357
32358         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
32359         instead of fopen, fwriteerror.
32360
32361 2006-10-06  Bruno Haible  <bruno@clisp.org>
32362
32363         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
32364         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
32365         int.
32366         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
32367         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
32368         Return an error indicator.
32369         Suggested by Eric Blake.
32370
32371 2006-10-06  Bruno Haible  <bruno@clisp.org>
32372
32373         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
32374         Reported by Eric Blake.
32375
32376 2006-10-06  Bruno Haible  <bruno@clisp.org>
32377
32378         * modules/closeout (Description): Mention stderr too.
32379
32380 2006-10-06  Bruno Haible  <bruno@clisp.org>
32381         and Paul Eggert  <eggert@cs.ucla.edu>
32382
32383         * lib/closeout.c (close_stdout): Also close stderr.
32384         * lib/closeout.h: Update comment.
32385
32386 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
32387
32388         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
32389         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
32390         * lib/dirchownmod.c: Include lchown.h.
32391         * lib/lchown.c: Don't include files that lchown.h now includes.
32392         Don't declare chown, since lchown.h now does that.
32393         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
32394         (lchown): Define to rpl_chown if lchown is declared but
32395         does not exist.  Declare using a prototype if lchown is not
32396         declared.  Add a copyright notice.
32397         * lib/mkstemp.h: Include <unistd.h>.
32398         * lib/openat.c: Include lchown.h.
32399
32400         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
32401         we now test for that separately.
32402         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
32403         rather than O_NOFOLLOW, when testing whether it's possible to
32404         avoid a race condition reliably.
32405         * lib/savewd.c (savewd_chdir): Likewise.
32406
32407         Remove macros that are no longer needed now that stdint.h is
32408         reliable.
32409         * lib/fsusage.c (UINTMAX_MAX): Remove.
32410         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
32411         * lib/utimecmp.c (SIZE_MAX): Remove.
32412
32413         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
32414
32415         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
32416         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
32417         O_NOATIME works.
32418
32419 2006-10-05  Bruno Haible  <bruno@clisp.org>
32420
32421         * lib/gl_list.h (gl_sortedlist_search_from_to,
32422         gl_sortedlist_indexof_from_to): New declarations.
32423         (gl_list_implementation): New fields sortedlist_search_from_to,
32424         sortedlist_indexof_from_to.
32425         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
32426         inline functions.
32427         * lib/gl_list.c (gl_sortedlist_search_from_to,
32428         gl_sortedlist_indexof_from_to): New functions.
32429         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
32430         function.
32431         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
32432         (gl_array_sortedlist_search_from_to): New function.
32433         (gl_array_list_implementation): Update.
32434         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
32435         function.
32436         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
32437         (gl_carray_sortedlist_search_from_to): New function.
32438         (gl_carray_list_implementation): Update.
32439         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
32440         gl_linked_sortedlist_indexof_from_to): New functions.
32441         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
32442         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
32443         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
32444         gl_tree_sortedlist_indexof_from_to): New functions.
32445         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
32446         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
32447         Update.
32448         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
32449         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
32450         Update.
32451
32452 2006-10-05  Bruno Haible  <bruno@clisp.org>
32453
32454         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
32455         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
32456         (struct gl_list_implementation): Add fields search_from_to,
32457         indexof_from_to. Remove fields search, indexof.
32458         (gl_list_search): Use the search_from_to method.
32459         (gl_list_search_from, gl_list_search_from_to): New functions.
32460         (gl_list_indexof): Use the indexof_from_to method.
32461         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
32462         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
32463         (gl_list_search_from, gl_list_search_from_to): New functions.
32464         (gl_list_indexof): Use the indexof_from_to method.
32465         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
32466         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
32467         gl_array_indexof. Add start_index, end_index arguments.
32468         (gl_array_search_from_to): Renamed from gl_array_search. Add
32469         start_index, end_index arguments.
32470         (gl_array_remove, gl_array_list_implementation): Update.
32471         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
32472         gl_carray_indexof. Add start_index, end_index arguments.
32473         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
32474         start_index, end_index arguments.
32475         (gl_carray_remove, gl_carray_list_implementation): Update.
32476         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
32477         gl_linked_search. Add start_index, end_index arguments.
32478         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
32479         start_index, end_index arguments.
32480         (gl_linked_remove): Update.
32481         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
32482         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
32483         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
32484         field to 'size_t'.
32485         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
32486         gl_tree_search. Add start_index, end_index arguments.
32487         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
32488         start_index, end_index arguments.
32489         (gl_tree_remove): Update.
32490         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
32491         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
32492         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
32493         function.
32494         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
32495         gl_tree_search. Add start_index, end_index arguments.
32496         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
32497         start_index, end_index arguments.
32498         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
32499         Update.
32500         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
32501
32502 2006-10-05  Bruno Haible  <bruno@clisp.org>
32503
32504         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
32505
32506         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
32507         fwriteerror_temp): New declarations.
32508         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
32509         (descriptors): New variable.
32510         (cleanup): First, close the descriptors.
32511         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
32512         fclose_temp, fwriteerror_temp): New functions.
32513
32514 2006-10-04  Jim Meyering  <jim@meyering.net>
32515
32516         * lib/fts.c (fts_open): Tiny comment change.
32517
32518 2006-10-04  Bruno Haible  <bruno@clisp.org>
32519
32520         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
32521         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
32522         gl_LOCK_BODY.
32523         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
32524         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
32525         gl_LOCK_EARLY_BODY.
32526         (gl_LOCK): Require gl_LOCK_BODY.
32527
32528 2006-10-04  Bruno Haible  <bruno@clisp.org>
32529
32530         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
32531         (gl_oset_search_atleast): New declaration.
32532         (struct gl_oset_implementation): Add field 'search_atleast'.
32533         (gl_oset_search_atleast): New inline function.
32534         * lib/gl_oset.c (gl_oset_search_atleast): New function.
32535         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
32536         (gl_array_oset_implementation): Update.
32537         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
32538         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
32539         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
32540
32541 2006-10-04  Bruno Haible  <bruno@clisp.org>
32542
32543         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
32544
32545 2006-10-03  Bruno Haible  <bruno@clisp.org>
32546
32547         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
32548         from gl_avltreehash_list_implementation.
32549
32550 2006-10-03  Bruno Haible  <bruno@clisp.org>
32551
32552         * lib/gl_oset.c (gl_oset_add): Fix return type.
32553
32554 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
32555
32556         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
32557
32558 2006-10-02  Eric Blake  <ebb9@byu.net>
32559
32560         * modules/strnlen (Depends-on): Add extensions.
32561
32562 2006-10-02  Eric Blake  <ebb9@byu.net>
32563
32564         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
32565         definition in 2.60+.
32566
32567 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
32568
32569         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
32570         checks.
32571
32572 2006-10-02  Bruno Haible  <bruno@clisp.org>
32573
32574         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
32575         to the AUTOMAKE_OPTIONS.
32576         Reported by Jim Meyering.
32577
32578 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
32579
32580         Work around bug in Solaris 10 /proc file system:
32581         /proc/self/fd/NNN/.. isn't the parent directory of
32582         the directory whose file descriptor is NNN.  This needs to
32583         be worked around at run time, not compile time, since a
32584         program might be built on Solaris 8, where things work, and
32585         run on Solaris 10.
32586         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
32587         to use the following interface instead:
32588         (OPENAT_BUFFER_SIZE): New macro.
32589         (openat_proc_name): New function.
32590         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
32591         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
32592         Likewise.
32593         * lib/openat-proc.c: New file.
32594         * modules/openat (Files): Add lib/openat-proc.c.
32595         (Depends-on): Add same-inode, stdbool.
32596         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
32597
32598 2006-09-29  Bruno Haible  <bruno@clisp.org>
32599
32600         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
32601         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
32602         argument. Set stdout_closed before testing for ferror, not after.
32603         (fwriteerror, fwriteerror_no_ebadf): New functions.
32604
32605 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32606
32607         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
32608
32609 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
32610
32611         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
32612         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
32613
32614 2006-09-28  Jim Meyering  <jim@meyering.net>
32615
32616         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
32617         Include <unistd.h>.
32618
32619 2006-09-28  Bruno Haible  <bruno@clisp.org>
32620
32621         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
32622         * modules/linkedhash-list (Depends-on): Likewise.
32623         * modules/rbtreehash-list (Depends-on): Likewise.
32624
32625 2006-09-28  Bruno Haible  <bruno@clisp.org>
32626
32627         * lib/strndup.h: Simplify the redefinition of strndup.
32628         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
32629         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
32630
32631 2006-09-28  Bruno Haible  <bruno@clisp.org>
32632
32633         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
32634         * lib/gl_linkedhash_list.c: Likewise.
32635         * lib/gl_rbtreehash_list.c: Likewise.
32636
32637 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
32638
32639         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
32640         getaddrinfo.
32641
32642         * lib/__fpending.h: Don't include <stdio_ext.h> unless
32643         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
32644         it causes <stdio_ext.h> to cause a compile-time error.
32645         Problem reported by Nelson H. F. Beebe.
32646         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
32647         of HAVE_DECL___PENDING.
32648
32649         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
32650         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
32651         declaration.
32652
32653 2006-09-27  Jim Meyering  <jim@meyering.net>
32654
32655         This file could end up with a definition for a function
32656         named __strndup, rather than rpl_strndup on a system with
32657         incomplete weak_alias support.
32658         * lib/strndup.c (strndup): Rename from __strndup.
32659         Remove #defines that used to map __strndup to strndup.
32660         Don't use K&R prototypes.
32661         Remove LIBC-related code, since this file is not sync'd with glibc.
32662         * lib/strndup.h: Revamp, accordingly.
32663         * m4/strndup.m4: Modernize.
32664
32665 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
32666
32667         * modules/savewd (Depends-on): Add 'raise'.
32668         * lib/savewd.c: Include <signal.h>, for 'raise'.
32669
32670 2006-09-26  Jim Meyering  <jim@meyering.net>
32671
32672         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
32673         when we detect Darwin 8.7.0's acl_get_file bug.
32674         Rearrange to perform the new (below) run-test while $LIBS
32675         contains any acl-related library.  Set USE_ACL at the end.
32676         (gl_ACL_GET_FILE): New function.
32677
32678 2006-09-26  Eric Blake  <ebb9@byu.net>
32679
32680         * lib/verror.c: Include <config.h> unconditionally.
32681
32682 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
32683
32684         * modules/clock-time (Maintainer): Add self.
32685         * modules/getlogin_r (Depends-on): Add extensions.
32686
32687 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32688
32689         * modules/clock-time: New module.
32690         * modules/nanosleep (Depends-on): Add clock-time.
32691         * modules/gethrxtime (Depends-on): Likewise.
32692         * modules/gettime (Depends-on): Likewise.
32693         * modules/settime (Depends-on): Likewise.
32694
32695         * modules/fts-lgpl: Depend on openat.
32696         * modules/mkancesdirs: Depend on savewd.
32697         * modules/mkdir-p: Likewise.
32698
32699 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32700
32701         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
32702
32703         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
32704         `gl_have_arbitrary_file_name_length_limit' to
32705         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
32706         actually works between configure runs.
32707
32708 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32709             Bruno Haible  <bruno@clisp.org>
32710
32711         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
32712
32713 2006-09-25  Jim Meyering  <jim@meyering.net>
32714
32715         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
32716         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
32717
32718 2006-09-25  Eric Blake  <ebb9@byu.net>
32719
32720         * gnulib-tool (func_import, func_create_testdir): Fix typos in
32721         exec's in 2006-09-18 patch when shuffling fds.
32722
32723 2006-09-25  Bruno Haible  <bruno@clisp.org>
32724
32725         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
32726         Reported by Jim Meyering.
32727
32728 2006-09-24  Jim Meyering  <jim@meyering.net>
32729
32730         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
32731         compare a pointer against a literal "0".  That caused failures with
32732         at least HP-UX's hpcc.
32733
32734 2006-09-22  Simon Josefsson  <jas@extundo.com>
32735
32736         * modules/gc-sha1:
32737         * modules/gc-md4:
32738         * modules/gc-hmac-sha1:
32739         * modules/gc-hmac-md5:
32740         * modules/gc-des:
32741         * modules/gc-arcfour: Distribute more files.
32742
32743 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32744
32745         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
32746         (gl_linked_iterator_from_to): Initialize struct completely.
32747         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
32748         (gl_tree_iterator_from_to): Likewise
32749         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
32750         * lib/gl_array_list.c [lint] (gl_array_iterator)
32751         (gl_array_iterator_from_to): Likewise.
32752         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
32753         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
32754         (gl_carray_iterator_from_to): Likewise.
32755
32756         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
32757         * lib/md4.c (md4_process_block): Remove unused variable.
32758         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
32759         parentheses for clarity.
32760
32761 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32762
32763         * modules/bison-i18n (Depends-on): Add gettext.
32764
32765 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32766
32767         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
32768         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
32769         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
32770         also add missing comma that caused broken test.
32771         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
32772         stdlib.h, for `abort'.
32773         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
32774         variables.
32775         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
32776         include unistd.h if present, for `rmdir'.
32777         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
32778         variables.
32779         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
32780         in the process include standard headers for prototypes.
32781         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
32782         gets declared on GNU/Linux.
32783         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
32784         unistd.h, for `rmdir'.
32785         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
32786
32787         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
32788         always true.
32789         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
32790
32791         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
32792
32793 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32794
32795         * gnulib-tool (func_version): Create output all at once.  This
32796         may help avoid triggering unnecessary SIGPIPEs, and at any
32797         rate it doesn't hurt.
32798
32799 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32800             Bruno Haible  <bruno@clisp.org>
32801
32802         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
32803         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
32804         * m4/signed.m4 (bh_C_SIGNED): Likewise.
32805
32806         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
32807         (gl_FUNC_VASPRINTF): Invoke it.
32808
32809 2006-09-22  Bruno Haible  <bruno@clisp.org>
32810
32811         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
32812         getloadavg.c as first argument.
32813
32814 2006-09-22  Bruno Haible  <bruno@clisp.org>
32815
32816         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
32817         at the beginning of the gl_INIT macro.
32818         * modules/getloadavg (configure.ac): Pass $gl_source_base to
32819         gl_GETLOADAVG.
32820
32821 2006-09-22  Bruno Haible  <bruno@clisp.org>
32822
32823         * gnulib-tool (func_create_megatestdir): Don't include the config-h
32824         module.
32825         Suggested by Ralf Wildenhues.
32826
32827 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
32828
32829         Import this patch from libc:
32830
32831         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
32832
32833         * lib/regex_internal.c (re_string_reconstruct): Handle
32834         offset < pstr->valid_raw_len && pstr->offsets_needed case.
32835         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
32836         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
32837         re_string_context_at.
32838
32839         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
32840         now requires it.
32841         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
32842         gl_REGEX now does it for us.
32843         (gl_REGEX): Add test taken from
32844         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
32845
32846         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
32847         Check that large offsets work.  Modernize Autoconf usages.
32848         Prefer "yes" to mean a good thing rather than a bad.
32849         Don't put "#define mkstemp" in config.h, as this might interfere
32850         with standard system headers that "#define mkstemp mkstemp64".
32851
32852         * modules/mkstemp (Depends-on): Add extensions, so that
32853         mkstemp is visible on some platforms.
32854         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
32855         (Include): Change to "mkstemp.h" from <stdlib.h>.
32856         (Files): Add mkstemp.h.
32857
32858         * lib/mkstemp.h: New file, since some standard headers
32859         #define mkstemp.
32860         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
32861         Include "mkstemp.h".
32862         Make the _LIBC code resemble glibc original more,
32863         e.g., use K&R style.
32864         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
32865         (mkstemp): Remove, since mkstemp.h does this for us.
32866         * lib/stdlib--.h: Include mkstemp.h.
32867
32868         Import this patch from libc:
32869
32870         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
32871
32872         * lib/tempname.c (__gen_tempname): Change attempts_min
32873         into a macro.  Use preprocessor to decide how to initialize
32874         attempts [Coverity CID 67].
32875
32876 2006-09-20  Bruno Haible  <bruno@clisp.org>
32877
32878         * lib/mkdtemp.c: Import from libc.
32879         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
32880                 * sysdeps/posix/tempname.c (__gen_tempname): Change
32881                 attempts_min into a macro.  Use preprocessor to decide how to
32882                 initialize attempts [Coverity CID 67].
32883         2001-11-27  Paul Eggert  <eggert@twinsun.com>
32884                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
32885                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
32886
32887 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32888
32889         * gnulib-tool (func_exit): New function, to allow to pass the
32890         exit status portably through the trap.  Use everywhere.
32891         (--help, --version): Signal a write error.
32892         (trap): catch SIGPIPE, for write errors.
32893         Exit at the end of the trap, with the correct exit status.
32894
32895 2006-09-19  Karl Berry  <karl@gnu.org>
32896
32897         * doc/gnulib.texi: note about the license texinfo files.
32898
32899 2006-09-19  Eric Blake  <ebb9@byu.net>
32900
32901         * gnulib-tool: Avoid space-tab.
32902
32903 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
32904
32905         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
32906         that prevented coreutils 6.1 from building.  Problem reported
32907         by Petter Reinholdtsen.
32908
32909 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
32910
32911         * gnulib-tool (avoidlist): Fix typo that broke options like
32912         --avoid=lock that are used by coreutils bootstrap.
32913
32914 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
32915
32916         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
32917         more systematically.
32918
32919 2006-09-18  Jim Meyering  <jim@meyering.net>
32920
32921         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
32922
32923 2006-09-18  Bruno Haible  <bruno@clisp.org>
32924
32925         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
32926
32927 2006-09-18  Bruno Haible  <bruno@clisp.org>
32928
32929         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
32930         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
32931         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
32932         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
32933         * m4/gettext.m4: Require autoconf >= 2.52.
32934         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
32935         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
32936         of gl_cv_header_inttypes_h.
32937
32938 2006-09-18  Bruno Haible  <bruno@clisp.org>
32939
32940         * lib/javaversion.c: Include configmake.h.
32941
32942 2006-09-18  Bruno Haible  <bruno@clisp.org>
32943
32944         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
32945         avoid that the while loops be executed in a subshell.
32946
32947 2006-09-18  Bruno Haible  <bruno@clisp.org>
32948
32949         * MODULES.html.sh (func_module): Break long lines.
32950         Suggested by Bruce Korb <bkorb@gnu.org>.
32951
32952 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32953
32954         Speed up by a factor of 1.12.
32955         * gnulib-tool (nl): New variable.
32956         (func_import): Rewrite include directive extraction to only read each
32957         directive once.
32958
32959 2006-09-17  Bruno Haible  <bruno@clisp.org>
32960
32961         * modules/javaversion (Makefile.am): Remove DEFS setting.
32962         (Depends-on): Add configmake, for PKGDATADIR definition.
32963
32964 2006-09-17  Bruno Haible  <bruno@clisp.org>
32965
32966         * gnulib-tool (func_create_testdir): Rewrite all files at once.
32967
32968 2006-09-17  Bruno Haible  <bruno@clisp.org>
32969
32970         * gnulib-tool (func_append): New function, stolen from libtool.m4.
32971         (func_modules_transitive_closure, func_modules_add_dummy,
32972         func_modules_to_filelist, func_import, func_create_testdir,
32973         func_create_megatestdir, ...): Use it wherever possible.
32974         Suggested by Ralf Wildenhues.
32975
32976 2006-09-16  Karl Berry  <karl@gnu.org>
32977
32978         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
32979         to avoid sectioning errors.
32980         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
32981         [ifinfo]: blank line after @center-ed titles.
32982         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
32983         Spell FSF address consistently with others.
32984         (These changes approved by rms.)
32985
32986 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32987
32988         Speed up by a factor of 1.61.
32989         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
32990         already checked module names again.
32991
32992 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32993
32994         Speed up by a factor of 1.13.
32995         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
32996         for new_files, and the input to func_add_or_update.
32997
32998 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32999
33000         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
33001         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
33002
33003 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
33004
33005         * modules/mkancesdirs (Depends-on): Add fcntl.
33006         * modules/savewd: New file.
33007         * MODULES.html.sh (File system functions): Add savewd.
33008
33009         * modules/configmake (Makefile.am): Add support for the
33010         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
33011
33012 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
33013
33014         * m4/savewd.m4: New file.
33015
33016 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
33017
33018         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
33019         (dirchownmod): New arg FD.  All callers changed.
33020         Use FD rather than opening the directory ourself, as opening is
33021         now the caller's responsibility.
33022         * lib/dirchownmod.h: Likewise.
33023         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
33024         hosts that require <sys/types.h> before <sys/stat.h>.  Include
33025         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
33026         (test_dir): Remove.
33027         (mkancesdirs): Return length of prefix of FILE that has already
33028         been made, or -2 if there is a child doing the work.  Redo
33029         algorithm so that it is O(N) rather than O(N**2).  Optimize away
33030         ".", and treat ".." specially since it might stray back into
33031         already-created areas.  Use a subprocess if necessary.  New arg
33032         WD; all users changed.  MAKE_DIR function should now return 1
33033         if it creates a directory that is not readable.  Return -2 if
33034         a child process is spun off.
33035         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
33036         Adjust signature to match code.
33037         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
33038         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
33039         all users changed.
33040         * lib/savewd.c, lib/savewd.h: New files.
33041
33042 2006-09-15  Jim Meyering  <jim@meyering.net>
33043
33044         * modules/rename-dest-slash: New module.
33045         * MODULES.html.sh (posix_compat): Add it here.
33046
33047         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
33048
33049 2006-09-15  Jim Meyering  <jim@meyering.net>
33050
33051         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
33052         file.
33053
33054         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
33055
33056 2006-09-15  Jim Meyering  <jim@meyering.net>
33057
33058         * lib/rename-dest-slash.c (has_trailing_slash): Use
33059         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
33060         (rpl_rename_dest_slash): Perform the cheaper trailing slash
33061         test before testing whether SRC is a directory.
33062         Suggestions from Bruno Haible.
33063
33064         Avoid a warning about an unused variable.
33065         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
33066         into the #ifdef block where it's used.
33067
33068         * lib/rename-dest-slash.c: New file.
33069
33070 2006-09-14  Bruno Haible  <bruno@clisp.org>
33071
33072         * lib/allocsa.c: Include <config.h> unconditionally.
33073         * lib/asnprintf.c: Likewise.
33074         * lib/asprintf.c: Likewise.
33075         * lib/c-strcasecmp.c: Likewise.
33076         * lib/c-strcasestr.c: Likewise.
33077         * lib/c-strncasecmp.c: Likewise.
33078         * lib/c-strstr.c: Likewise.
33079         * lib/classpath.c: Likewise.
33080         * lib/clean-temp.c: Likewise.
33081         * lib/concatpath.c: Likewise.
33082         * lib/copy-file.c: Likewise.
33083         * lib/csharpcomp.c: Likewise.
33084         * lib/csharpexec.c: Likewise.
33085         * lib/execute.c: Likewise.
33086         * lib/fatal-signal.c: Likewise.
33087         * lib/findprog.c: Likewise.
33088         * lib/fwriteerror.c: Likewise.
33089         * lib/gl_array_list.c: Likewise.
33090         * lib/gl_array_oset.c: Likewise.
33091         * lib/gl_avltree_list.c: Likewise.
33092         * lib/gl_avltree_oset.c: Likewise.
33093         * lib/gl_avltreehash_list.c: Likewise.
33094         * lib/gl_carray_list.c: Likewise.
33095         * lib/gl_linked_list.c: Likewise.
33096         * lib/gl_linkedhash_list.c: Likewise.
33097         * lib/gl_list.c: Likewise.
33098         * lib/gl_oset.c: Likewise.
33099         * lib/gl_rbtree_list.c: Likewise.
33100         * lib/gl_rbtree_oset.c: Likewise.
33101         * lib/gl_rbtreehash_list.c: Likewise.
33102         * lib/imaxabs.c: Likewise.
33103         * lib/imaxdiv.c: Likewise.
33104         * lib/javacomp.c: Likewise.
33105         * lib/javaexec.c: Likewise.
33106         * lib/javaversion.c: Likewise.
33107         * lib/linebreak.c: Likewise.
33108         * lib/localcharset.c: Likewise.
33109         * lib/lock.c: Likewise.
33110         * lib/mbchar.c: Likewise.
33111         * lib/mbswidth.c: Likewise.
33112         * lib/mkdtemp.c: Likewise.
33113         * lib/pipe.c: Likewise.
33114         * lib/printf-args.c: Likewise.
33115         * lib/printf-parse.c: Likewise.
33116         * lib/progname.c: Likewise.
33117         * lib/progreloc.c: Likewise.
33118         * lib/readlink.c: Likewise.
33119         * lib/sh-quote.c: Likewise.
33120         * lib/stpcpy.c: Likewise.
33121         * lib/stpncpy.c: Likewise.
33122         * lib/strcasecmp.c: Likewise.
33123         * lib/strcasestr.c: Likewise.
33124         * lib/strcspn.c: Likewise.
33125         * lib/striconv.c: Likewise.
33126         * lib/strncasecmp.c: Likewise.
33127         * lib/strnlen1.c: Likewise.
33128         * lib/strstr.c: Likewise.
33129         * lib/strtok_r.c: Likewise.
33130         * lib/tls.c: Likewise.
33131         * lib/tmpdir.c: Likewise.
33132         * lib/unicodeio.c: Likewise.
33133         * lib/unsetenv.c: Likewise.
33134         * lib/vasnprintf.c: Likewise.
33135         * lib/vasprintf.c: Likewise.
33136         * lib/wait-process.c: Likewise.
33137         * lib/xallocsa.c: Likewise.
33138         * lib/xsetenv.c: Likewise.
33139         * lib/xstriconv.c: Likewise.
33140
33141 2006-09-13  Simon Josefsson  <jas@extundo.com>
33142
33143         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
33144         that internally, suggested by Ralf Wildenhues
33145         <Ralf.Wildenhues@gmx.de>.
33146
33147 2006-09-13  Simon Josefsson  <jas@extundo.com>
33148
33149         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
33150         @LIBOBJS@.
33151         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33152
33153 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
33154
33155         * lib/_fpending.c: Include <config.h> unconditionally, since we no
33156         longer worry about uses that don't define HAVE_CONFIG_H.
33157         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
33158         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
33159         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
33160         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
33161         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
33162         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
33163         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
33164         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
33165         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
33166         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
33167         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
33168         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
33169         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
33170         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
33171         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
33172         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
33173         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
33174         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
33175         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
33176         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
33177         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
33178         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
33179         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
33180         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
33181         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
33182         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
33183         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
33184         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
33185         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
33186         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
33187         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
33188         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
33189         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
33190         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
33191         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
33192         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
33193         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
33194         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
33195         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
33196         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
33197         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
33198         Likewise.
33199
33200 2006-09-13  Eric Blake  <ebb9@byu.net>
33201
33202         * lib/getopt.c: Fix typo in last commit.
33203
33204 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33205
33206         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
33207         dgettext.
33208
33209 2006-09-12  Jim Meyering  <jim@meyering.net>
33210
33211         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
33212         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
33213         Reported by Nelson H. F. Beebe.
33214
33215 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
33216
33217         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
33218         program_invocation_name and program_invocation_short_name are
33219         initialized.
33220         * lib/argp-namefrob.h: Move declarations of program_invocation_name
33221         and program_invocation_short_name to argp.h, so they are visible
33222         to user programs.
33223         * lib/argp.h: Likewise
33224
33225 2006-09-10  Bruno Haible  <bruno@clisp.org>
33226
33227         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
33228         m4/inttypes_h.m4, m4/uintmax_t.m4.
33229
33230 2006-09-10  Bruno Haible  <bruno@clisp.org>
33231
33232         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
33233         gl_AC_TYPE_UINTMAX_T.
33234
33235 2006-09-10  Bruno Haible  <bruno@clisp.org>
33236
33237         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
33238
33239 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
33240
33241         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
33242         convention.  Text proposed by Bruno Haible.
33243         (struct argp_option): Document the use of N_() wrappers.
33244
33245         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
33246         '\v', and translate the two parts separately, instead of feeding
33247         the whole string to gettext.  This allows to exclude
33248         '\v' from the strings visible to the translator by writing doc
33249         strings as N_("..") "\v" N_("..").
33250
33251 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
33252
33253         * config/srclist.txt: Undo latest change; the bug was fixed.
33254
33255 2006-09-09  Bruno Haible  <bruno@clisp.org>
33256
33257         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
33258         assignments if building a library without libtool.
33259         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
33260         in func_emit_lib_Makefile_am.
33261         (func_import): When building a static library libfoo.a, arrange to
33262         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
33263         (func_create_testdir): Likewise.
33264         * modules/gc (configure.ac, Makefile.am): If building statically,
33265         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
33266         * modules/iconvme (configure.ac, Makefile.am): Likewise.
33267         * modules/striconv (configure.ac, Makefile.am): Likewise.
33268         Based on a suggestion by Ralf Wildenhues.
33269
33270 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
33271
33272         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
33273         Check for unistd.h too, since Autoconf doesn't assume POSIX.
33274         Also:
33275
33276         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
33277         Add year_2050_test to catch glibc bug 2821
33278         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
33279
33280         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
33281         Prefer #ifdef to #if.
33282
33283         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
33284         Return from 'main' instead of calling 'exit'.
33285
33286 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
33287
33288         * lib/mktime.c (guess_time_tm): Fix bug where mktime
33289         returned the maximum time_t value rather than (time_t) -1.
33290         Problem originally reported by William Bardwell
33291         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
33292
33293         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
33294         Moved to here ...
33295         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
33296         ... from here.
33297
33298 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
33299
33300         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
33301         2821 is fixed.
33302
33303 2006-09-08  Jim Meyering  <jim@meyering.net>
33304
33305         Don't make generated files read-only.  That would bother too many
33306         people.  However, do retain the ability to work when targets are
33307         read-only: remove the destination and temporary files before writing
33308         them (when generated via sed or echo), or by using the -f option for
33309         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
33310         * modules/alloca-opt, modules/argz, modules/arpa_inet:
33311         * modules/byteswap, modules/configmake, modules/fcntl:
33312         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
33313         * modules/localcharset, modules/netinet_in, modules/poll:
33314         * modules/stdbool, modules/stdint, modules/sys_select:
33315         * modules/sys_socket, modules/sys_stat, modules/sysexits:
33316
33317 2006-09-08  Jim Meyering  <jim@meyering.net>
33318
33319         Avoid new build failure on FreeBSD 6.0.
33320         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
33321         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
33322         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
33323
33324 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33325
33326         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
33327
33328 2006-09-07  Jim Meyering  <jim@meyering.net>
33329
33330         Fix global typo in last change: use chmod u-w, not chmod u-x.
33331         Spotted by Paul Eggert and Bruce Korb.
33332         * modules/alloca-opt, modules/argz, modules/arpa_inet:
33333         * modules/byteswap, modules/configmake, modules/fcntl:
33334         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
33335         * modules/localcharset, modules/netinet_in, modules/poll:
33336         * modules/stdbool, modules/stdint, modules/sys_select:
33337         * modules/sys_socket, modules/sys_stat, modules/sysexits:
33338
33339 2006-09-06  Jim Meyering  <jim@meyering.net>
33340
33341         Make generated files be read-only.
33342         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
33343         Ensure that each generated file is now read-only.
33344         * modules/argz: Likewise.
33345         * modules/arpa_inet: Likewise.
33346         * modules/byteswap: Likewise.
33347         * modules/configmake: Likewise.
33348         * modules/fcntl: Likewise.
33349         * modules/fnmatch: Likewise.
33350         * modules/getopt: Likewise.
33351         * modules/glob: Likewise.
33352         * modules/inttypes: Likewise.
33353         * modules/netinet_in: Likewise.
33354         * modules/poll: Likewise.
33355         * modules/stdbool: Likewise.
33356         * modules/stdint: Likewise.
33357         * modules/sys_select: Likewise.
33358         * modules/sys_socket: Likewise.
33359         * modules/sys_stat: Likewise.
33360         * modules/sysexits: Likewise.
33361         * modules/localcharset: Same as above, but continue using temporary
33362         file named "t-$@" (why different?) rather than the "$@-t" used
33363         everywhere else.
33364
33365         * modules/sysexits (Makefile.am): Replace literal occurrences
33366         of "sysexit.h" more readable, and more consistent, "$@".
33367
33368 2006-09-06  Bruno Haible  <bruno@clisp.org>
33369
33370         * modules/striconv: New file.
33371         * modules/xstriconv: New file.
33372         * MODULES.html.sh (Internationalization functions): Add striconv,
33373         xstriconv.
33374
33375 2006-09-06  Bruno Haible  <bruno@clisp.org>
33376
33377         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
33378         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
33379         not using libtool correctly.
33380
33381 2006-09-06  Bruno Haible  <bruno@clisp.org>
33382
33383         * lib/striconv.h: New file.
33384         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
33385         iconvstring.c.
33386         * lib/xstriconv.h: New file.
33387         * lib/xstriconv.c: New file.
33388
33389 2006-09-06  Bruno Haible  <bruno@clisp.org>
33390
33391         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
33392         lib_..._LDFLAGS.
33393
33394 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33395
33396         * lib/argz_.h: Sync from Libtool.
33397
33398         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
33399                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33400
33401         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
33402
33403 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
33404
33405         * modules/trim: New file.
33406
33407 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
33408
33409         * lib/trim.h: New file.
33410         * lib/trim.c: New file.
33411
33412 2006-09-05  Bruno Haible  <bruno@clisp.org>
33413
33414         * MODULES.html.sh (String handling): Add trim.
33415
33416 2006-09-04  Karl Berry  <karl@gnu.org>
33417
33418         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
33419         until next release.
33420
33421 2006-09-03  Bruno Haible  <bruno@clisp.org>
33422
33423         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
33424         correctly.
33425
33426 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
33427
33428         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
33429         not gl_GETLOADAVG.  Omit unneeded semicolons.
33430         Problems reported by Ralf Wildenhues in
33431         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
33432         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
33433         at the end, which is the usual gnulib style.
33434
33435         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
33436         of doing all the work ourselves.
33437         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
33438         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
33439
33440 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
33441
33442         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
33443         Problem reported by Ralf Wildenhues in
33444         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
33445
33446         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
33447         HAVE_STRUCT_STATFS_F_FSTYPENAME.
33448
33449 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
33450
33451         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
33452         yesterday's patch by changing test -n to test -z.
33453
33454 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
33455
33456         * modules/getloadavg (Files): Add m4/getloadavg.m4.
33457         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
33458         the former is now obsolescent.
33459
33460         * modules/chdir-long (Depends-on): Add fcntl.
33461
33462 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
33463
33464         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
33465         obsolescent, and programs should use gnulib instead.
33466         * m4/getloadavg.m4: New file, with contents taken from Autoconf
33467         but with prefixes changed.
33468
33469 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
33470
33471         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
33472         or stdbool.h, because they might not exist while configuring.
33473
33474         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
33475         Don't include unistd.h or limits.h; not needed, since chdir-long.h
33476         does that for us.
33477         (O_DIRECTORY): Remove.
33478
33479 2006-08-31  Eric Blake  <ebb9@byu.net>
33480
33481         * gnulib-tool: Don't let emacs change spaces to TAB.
33482
33483 2006-08-31  Bruno Haible  <bruno@clisp.org>
33484
33485         * gnulib-tool: When calling func_import more than once, do it in a
33486         subshell.
33487         Reported by Eric Blake <ebb9@byu.net>.
33488
33489 2006-08-31  Bruno Haible  <bruno@clisp.org>
33490
33491         * gnulib-tool (nl): Remove variable.
33492         (sed_transform_lib_file): Use more robust test for config-h module.
33493         (func_import): Fix typo in 2006-08-25 patch.
33494
33495 2006-08-31  Bruno Haible  <bruno@clisp.org>
33496
33497         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
33498         specified, augment Makefile.am variables instead of assigning them.
33499
33500 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
33501
33502         Work around a bug in both the Linux and SunOS 64-bit kernels:
33503         nanosleep mishandles sleeps for longer than 2**31 seconds.
33504         Problem reported by Frank v Waveren in
33505         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
33506         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
33507         Check for nanosleep bug.
33508         (LIB_NANOSLEEP): Append clock_gettime library if needed.
33509
33510 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
33511
33512         Work around a bug in both the Linux and SunOS 64-bit kernels:
33513         nanosleep mishandles sleeps for longer than 2**31 seconds.
33514         Problem reported by Frank v Waveren in
33515         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
33516         * lib/nanosleep.c (BILLION): New constant.
33517         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
33518         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
33519         implementation.
33520
33521 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
33522
33523         * modules/nanosleep (Depends-on): Add gettime.
33524
33525 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
33526         and Simon Josefsson  <jas@extundo.com>
33527         and Oskar Liljeblad  <oskar@osk.mine.nu>
33528
33529         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
33530         * gnulib-tool (func_import): New license type 'unmodifiable license
33531         text'.
33532         * modules/fdl: Use it.  Longer description.
33533         * module/gpl, module/lgpl: New files.
33534
33535 2006-08-30  Jim Meyering  <jim@meyering.net>
33536
33537         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
33538         shadowing the parameter.
33539
33540 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33541
33542         Sync from Libtool:
33543
33544         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33545
33546         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
33547         sharing with gnulib.  Report by Eric Blake.
33548
33549 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
33550
33551         * modules/isapipe: New file.
33552         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
33553
33554 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
33555
33556         * modules/configmake (Makefile.am): Add a comment, and omit
33557         the CONFIGMAKE_ prefix from generated macro names.  Suggested
33558         by Bruno Haible.
33559
33560 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
33561
33562         * m4/isapipe.m4: New file.
33563
33564 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
33565
33566         * lib/isapipe.c, lib/isapipe.h: New files.
33567
33568 2006-08-29  Jim Meyering  <jim@meyering.net>
33569
33570         * modules/configmake (Makefile.am): Make configmake.h depend on
33571         Makefile.  Otherwise, a stale configmake.h could hang around.
33572
33573 2006-08-29  Eric Blake  <ebb9@byu.net>
33574
33575         * lib/error.c (error_at_line, print_errno_message): Match libc, after
33576         resolution of upstream bug 3044.
33577
33578 2006-08-29  Bruno Haible  <bruno@clisp.org>
33579
33580         * modules/localcharset (Depends-on): Add configmake.
33581         (Makefile.am): Remove setting of LIBDIR through DEFS.
33582
33583 2006-08-29  Bruno Haible  <bruno@clisp.org>
33584
33585         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
33586         defined.
33587
33588 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
33589
33590         * modules/fcntl: New file.
33591         * modules/chdir-safer (Depends-on): Add fcntl.
33592         * modules/fts: Likewise.
33593         * modules/mkdir-p: Likewise.
33594
33595         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
33596         This undoes the most recent change, since we're now addressing the
33597         problem in a different way.
33598
33599         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
33600         into output, since the output might be called Makefile.am even
33601         if $makefile_name is something different.
33602         (func_import): Use $makefile_am rather than
33603         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
33604         empty.
33605
33606         * modules/inttypes (Files): Add m4/inttypes-h.m4.
33607
33608 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
33609
33610         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
33611         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
33612         recent change to stdint.m4, since we're now addressing the problem in a
33613         different way.
33614
33615 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
33616
33617         * m4/fcntl_h.m4: New file.
33618
33619 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
33620
33621         * lib/fcntl_.h: New file.
33622         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
33623         the fcntl module.
33624         * lib/dirchownmod.c: Likewise.
33625         * lib/fts.c: Likewise.
33626
33627         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
33628         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
33629         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
33630         just before including <inttypes.h>, to avoid circular inclusion.
33631
33632 2006-08-28  Jim Meyering  <jim@meyering.net>
33633
33634         * doc/visibility.texi: Actually read and correct the grammar of the
33635         sentence affected by yesterday's change.
33636
33637 2006-08-28  Eric Blake  <ebb9@byu.net>
33638
33639         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
33640         needs wrapper.
33641
33642 2006-08-28  Eric Blake  <ebb9@byu.net>
33643
33644         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
33645
33646 2006-08-28  Eric Blake  <ebb9@byu.net>
33647
33648         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
33649
33650 2006-08-28  Bruno Haible  <bruno@clisp.org>
33651
33652         * modules/c-strstr: New file, from GNU gettext.
33653         * MODULES.html.sh (String handling): Add c-strstr.
33654
33655 2006-08-28  Bruno Haible  <bruno@clisp.org>
33656
33657         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
33658         macros.
33659         Reported by Eric Blake.
33660
33661 2006-08-28  Bruno Haible  <bruno@clisp.org>
33662
33663         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
33664         (VASNPRINTF): Return a string of length > INT_MAX without failing.
33665         * lib/vasprintf.c: Include errno.h, limits.h.
33666         (EOVERFLOW): New fallback definition.
33667         (vasprintf): Test here whether the string length is > INT_MAX.
33668         * lib/vsnprintf.c: Include errno.h, limits.h.
33669         (EOVERFLOW): New fallback definition.
33670         (vsnprintf): Fix bug when generated string was too long for the buffer.
33671         Test here whether the string length is > INT_MAX.
33672
33673 2006-08-28  Bruno Haible  <bruno@clisp.org>
33674
33675         * lib/inttypes_.h (SCNX*): Remove definitions.
33676         Reported by Eric Blake.
33677
33678 2006-08-28  Bruno Haible  <bruno@clisp.org>
33679
33680         * lib/c-strstr.h: New file, from GNU gettext.
33681         * lib/c-strstr.c: New file, from GNU gettext.
33682
33683 2006-08-28  Bruno Haible  <bruno@clisp.org>
33684
33685         * gnulib-tool: Reorder some statements.
33686
33687 2006-08-28  Bruno Haible  <bruno@clisp.org>
33688
33689         * gnulib-tool: New option --makefile-name.
33690         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
33691         $makefile_name.
33692         (func_import): Write $makefile_name to the cache file, and read it from
33693         there unless explicitly specified. Use $makefile_name as file name
33694         instead of Makefile.am. Adjust the recommendations accordingly.
33695
33696 2006-08-28  Bruno Haible  <bruno@clisp.org>
33697
33698         * gnulib-tool (func_verify_module): Check against misapplying patch.
33699
33700 2006-08-28  Bruno Haible  <bruno@clisp.org>
33701
33702         * gnulib-tool (func_relativize, func_relconcat): New functions.
33703         Give an error if --local-dir is given with --update.
33704         Remove trailing slashes from $local_gnulib_dir.
33705         (func_import): Store the relativized $local_gnulib_dir in
33706         gnulib-cache.m4, and read it from there if not specified explicitly.
33707
33708 2006-08-28  Bruno Haible  <bruno@clisp.org>
33709
33710         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
33711         is the current directory. Respect also $local_gnulib_dir.
33712
33713 2006-08-28  Bruno Haible  <bruno@clisp.org>
33714             Simon Josefsson  <jas@extundo.com>
33715
33716         BeOS portability.
33717         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
33718
33719 2006-08-27  Jim Meyering  <jim@meyering.net>
33720
33721         * doc/visibility.texi: Remove duplicate word: "pointer".
33722
33723 2006-08-26  Bruno Haible  <bruno@clisp.org>
33724
33725         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
33726         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
33727         (Makefile.am): Create inttypes.h from inttypes_.h.
33728         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
33729
33730         * modules/imaxabs: New file.
33731
33732         * modules/imaxdiv: New file.
33733
33734 2006-08-26  Bruno Haible  <bruno@clisp.org>
33735
33736         * m4/inttypes.m4: New file.
33737         * m4/_inttypes_h.m4: Remove file.
33738         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
33739         PRI_MACROS_BROKEN.
33740         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
33741
33742         * m4/imaxabs.m4: New file.
33743
33744         * m4/imaxdiv.m4: New file.
33745
33746 2006-08-26  Bruno Haible  <bruno@clisp.org>
33747
33748         * lib/inttypes_.h: New file.
33749         * lib/inttypes.h: Remove file.
33750         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
33751
33752         * lib/imaxabs.c: New file.
33753
33754         * lib/imaxdiv.c: New file.
33755
33756 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
33757
33758         New config-h module, so that "make" output needn't be cluttered
33759         by -DHAVE_CONFIG_H.
33760         * MODULES.html.sh (Support for building libraries and executables):
33761         Add config-h.
33762         * modules/config-h: New file.
33763         * gnulib-tool (nl, sed_transform_lib_file): New vars.
33764         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
33765         the config-h module is used.
33766
33767         New configmake module, so that "make" output needn't be cluttered
33768         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
33769         * MODULES.html.sh (Support for building libraries and executables):
33770         Add configmake.
33771         * modules/configmake: New file.
33772
33773 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
33774
33775         * m4/config-h.m4: New file.
33776
33777 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
33778
33779         * config/srclist.txt: Add elisp-comp.
33780
33781 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
33782
33783         * MODULES.html.sh (Support for building libraries and executables):
33784         Add elisp-comp.
33785         * build-aux/elisp-comp: New file.
33786         * modules/elisp-comp: New file.
33787
33788 2006-08-24  Bruno Haible  <bruno@clisp.org>
33789
33790         * gnulib-tool (func_create_testdir): Use non-default values of
33791         sourcebase and m4base.
33792
33793 2006-08-24  Bruno Haible  <bruno@clisp.org>
33794
33795         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
33796         HTML structure.
33797
33798 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
33799
33800         * modules/openat (Depends-on): Add lchown.
33801
33802 2006-08-23  Bruno Haible  <bruno@clisp.org>
33803
33804         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
33805         of gl_LOCK_EARLY instead of gl_LOCK.
33806
33807 2006-08-23  Bruno Haible  <bruno@clisp.org>
33808
33809         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
33810         on OSF/1 to no.
33811         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
33812
33813 2006-08-23  Bruno Haible  <bruno@clisp.org>
33814
33815         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
33816         as unusable.
33817
33818         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
33819         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
33820         (gl_LOCK): New macro.
33821
33822 2006-08-22  Simon Josefsson  <jas@extundo.com>
33823
33824         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
33825         to md5 module.
33826
33827 2006-08-22  Simon Josefsson  <jas@extundo.com>
33828
33829         * MODULES.html.sh: Add "Support for maintaining and release
33830         projects".
33831
33832         * build-aux/gnupload: New file, from coreutils.
33833
33834 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
33835
33836         Avoid the need for AC_LIBSOURCES in m4 macros.
33837         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
33838         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
33839         * modules/check-version (EXTRA_DIST): Add check-version.h.
33840         * modules/crc (EXTRA_DIST): Add crc.h.
33841         * modules/des (EXTRA_DIST): Add des.h.
33842         * modules/gc (EXTRA_DIST): Add gc.h.
33843         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
33844         * modules/getline (EXTRA_DIST): Add getline.h.
33845         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
33846         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
33847         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
33848         * modules/md2 (EXTRA_DIST): Add md2.h.
33849         * modules/md4 (EXTRA_DIST): Add md4.h.
33850         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
33851         * modules/read-file (EXTRA_DIST): Add read-file.h.
33852         * modules/readline (EXTRA_DIST): Add readline.h.
33853         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
33854         rijndael-api-fst.h.
33855
33856 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
33857
33858         * m4/rijndael.m4 (gl_ARCFOUR):
33859         * m4/arctwo.m4 (gl_ARCTWO):
33860         * m4/check-version.m4 (gl_CHECK_VERSION):
33861         * m4/crc.m4 (gl_CRC):
33862         * m4/des.m4 (gl_DES):
33863         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
33864         * m4/gc.m4 (gl_GC):
33865         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
33866         * m4/getline.m4 (gl_FUNC_GETLINE):
33867         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
33868         * m4/hmac-md5.m4 (gl_HMAC_MD5):
33869         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
33870         * m4/md2.m4 (gl_MD2):
33871         * m4/md4.m4 (gl_MD4):
33872         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
33873         * m4/read-file.m4 (gl_FUNC_READ_FILE):
33874         * m4/readline.m4 (gl_FUNC_READLINE):
33875         * m4/rijndael.m4 (gl_RIJNDAEL):
33876         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
33877         to get the necessary .h files and whatnot.
33878
33879 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
33880
33881         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
33882         gnulib rather than the other way around.
33883         * config/srclistvars.sh (COREUTILS): Remove.
33884
33885 2006-08-22  Jim Meyering  <jim@meyering.net>
33886
33887         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
33888
33889         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
33890
33891 2006-08-22  Eric Blake  <ebb9@byu.net>
33892
33893         * modules/regexprops-generic: New file.
33894         * MODULES.html.sh (Support for building documentation): List it.
33895
33896 2006-08-22  Eric Blake  <ebb9@byu.net>
33897
33898         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
33899         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
33900         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
33901         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
33902
33903 2006-08-22  Bruno Haible  <bruno@clisp.org>
33904
33905         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
33906         and lib_LTLIBRARIES like the other lib_* variables.
33907
33908 2006-08-22  Bruno Haible  <bruno@clisp.org>
33909
33910         * build-aux/x-to-1.in: New file, from GNU gettext.
33911
33912 2006-08-22  Bruno Haible  <bruno@clisp.org>
33913
33914         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
33915         <utmpx.h> exists.
33916
33917 2006-08-22  Bruno Haible  <bruno@clisp.org>
33918
33919         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
33920         <utmpx.h> exists.
33921
33922 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
33923
33924         BeOS portability.
33925         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
33926         exist.
33927         Problem reported by Bruno Haible.
33928
33929 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
33930
33931         Avoid the need for AC_LIBSOURCES in m4 macros.
33932         * modules/acl (EXTRA_DIST): Add acl.h.
33933         * modules/argmatch (Files): Add m4/argmatch.m4.
33934         (configure.ac): Add gl_ARGMATCH.
33935         (EXTRA_DIST): Renamed from lib_SOURCES, for
33936         consistency with the other modules.  Remove argmatch.c.
33937         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
33938         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
33939         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
33940         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
33941         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
33942         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
33943         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
33944         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
33945         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
33946         * modules/closeout (EXTRA_DIST): Add closeout.h.
33947         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
33948         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
33949         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
33950         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
33951         dirname.h; remove basename.c and stripslash.c.
33952         * modules/exclude (EXTRA_DIST): Add exclude.h.
33953         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
33954         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
33955         * modules/file-type (EXTRA_DIST): Add file-type.h.
33956         * modules/filemode (EXTRA_DIST): Add filemode.h.
33957         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
33958         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
33959         * modules/fpending (EXTRA_DIST): Add __fpending.h.
33960         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
33961         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
33962         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
33963         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
33964         * modules/getdate (EXTRA_DIST): Add getdate.c.
33965         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
33966         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
33967         * modules/getpass (EXTRA_DIST): Add getpass.h.
33968         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
33969         * modules/group-member (EXTRA_DIST): Add group-member.h.
33970         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
33971         * modules/hash (EXTRA_DIST): Add hash.h.
33972         * modules/human (EXTRA_DIST): Add human.h.
33973         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
33974         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
33975         * modules/lchown (EXTRA_DIST): Add lchown.h.
33976         * modules/long-options (EXTRA_DIST): Add long-options.h.
33977         * modules/lstat (EXTRA_DIST): Add lstat.h.
33978         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
33979         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
33980         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
33981         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
33982         * modules/memxor (EXTRA_DIST): Add memxor.h.
33983         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
33984         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
33985         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
33986         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
33987         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
33988         * modules/physmem (EXTRA_DIST): Add physmem.h.
33989         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
33990         * modules/posixver (EXTRA_DIST): Add posixver.h.
33991         * modules/quote (EXTRA_DIST): Add quote.h.
33992         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
33993         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
33994         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
33995         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
33996         regex_internal.h regexec.c.
33997         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
33998         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
33999         * modules/same (EXTRA_DIST): Add same.h.
34000         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
34001         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
34002         * modules/savedir (EXTRA_DIST): Add savedir.h.
34003         * modules/sha1 (EXTRA_DIST): Add sha1.h.
34004         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
34005         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
34006         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
34007         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
34008         * modules/strdup (EXTRA_DIST): Add strdup.h.
34009         * modules/strftime (EXTRA_DIST): Add strftime.h.
34010         * modules/strndup (EXTRA_DIST): Add strndup.h.
34011         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
34012         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
34013         * modules/time_r (EXTRA_DIST): Add time_r.h.
34014         * modules/timespec (EXTRA_DIST): Add timespec.h.
34015         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
34016         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
34017         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
34018         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
34019         * modules/userspec (EXTRA_DIST): Add userspec.h.
34020         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
34021         * modules/utimens (EXTRA_DIST): Add utimens.h.
34022         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
34023         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
34024         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
34025         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
34026         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
34027         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
34028         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
34029         * modules/yesno (EXTRA_DIST): Add yesno.h.
34030
34031 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
34032
34033         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
34034
34035         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
34036         * m4/dev-ino.m4, same-inode.m4: Remove.
34037
34038         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
34039         * m4/acl.m4 (AC_FUNC_ACL):
34040         * m4/backupfile.m4 (gl_BACKUPFILE):
34041         * m4/c-strtod.m4 (gl_C99_STRTOLD):
34042         * m4/canon-host.m4 (gl_CANON_HOST):
34043         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
34044         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
34045         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
34046         * m4/cloexec.m4 (gl_CLOEXEC):
34047         * m4/close-stream.m4 (gl_CLOSE_STREAM):
34048         * m4/closeout.m4 (gl_CLOSEOUT):
34049         * m4/dirfd.m4 (gl_FUNC_DIRFD):
34050         * m4/dirname.m4 (gl_DIRNAME):
34051         * m4/exclude.m4 (gl_EXCLUDE):
34052         * m4/exitfail.m4 (gl_EXITFAIL):
34053         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
34054         * m4/file-type.m4 (gl_FILE_TYPE):
34055         * m4/filemode.m4 (gl_FILEMODE):
34056         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
34057         * m4/fpending.m4 (gl_FUNC_FPENDING):
34058         * m4/fprintftime.m4 (gl_FPRINTFTIME):
34059         * m4/fts.m4 (gl_FUNC_FTS):
34060         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
34061         * m4/getdate.m4 (gl_GETDATE):
34062         * m4/gethrxtime.m4 (gl_GETHRXTIME):
34063         * m4/getpagesize.m4 (gl_GETPAGESIZE):
34064         * m4/getpass.m4 (gl_FUNC_GETPASS):
34065         * m4/gettime.m4 (gl_GETTIME):
34066         * m4/getugroups.m4 (gl_GETUGROUPS):
34067         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
34068         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
34069         * m4/hard-locale.m4 (gl_HARD_LOCALE):
34070         * m4/hash.m4 (gl_HASH):
34071         * m4/idcache.m4 (gl_IDCACHE):
34072         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
34073         * m4/lchown.m4 (gl_FUNC_LCHOWN):
34074         * m4/long-options.m4 (gl_LONG_OPTIONS):
34075         * m4/lstat.m4 (gl_FUNC_LSTAT):
34076         * m4/md5.m4 (gl_MD5):
34077         * m4/memcasecmp.m4 (gl_MEMCASECMP):
34078         * m4/memcoll.m4 (gl_MEMCOLL):
34079         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
34080         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
34081         * m4/memxor.m4 (gl_MEMXOR):
34082         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
34083         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
34084         * m4/modechange.m4 (gl_MODECHANGE):
34085         * m4/mountlist.m4 (gl_MOUNTLIST):
34086         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
34087         * m4/openat.m4 (gl_FUNC_OPENAT):
34088         * m4/pathmax.m4 (gl_PATHMAX):
34089         * m4/physmem.m4 (gl_PHYSMEM):
34090         * m4/posixtm.m4 (gl_POSIXTM):
34091         * m4/posixver.m4 (gl_POSIXVER):
34092         * m4/quote.m4 (gl_QUOTE):
34093         * m4/quotearg.m4 (gl_QUOTEARG):
34094         * m4/readtokens.m4 (gl_READTOKENS):
34095         * m4/readutmp.m4 (gl_READUTMP):
34096         * m4/regex.m4 (gl_REGEX):
34097         * m4/safe-read.m4 (gl_SAFE_READ):
34098         * m4/safe-write.m4 (gl_SAFE_WRITE):
34099         * m4/same.m4 (gl_SAME):
34100         * m4/save-cwd.m4 (gl_SAVE_CWD):
34101         * m4/savedir.m4 (gl_SAVEDIR):
34102         * m4/settime.m4 (gl_SETTIME):
34103         * m4/sha1.m4 (gl_SHA1):
34104         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
34105         * m4/stat-macros.m4 (gl_STAT_MACROS):
34106         * m4/stat-time.m4 (gl_STAT_TIME):
34107         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
34108         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
34109         * m4/strdup.m4 (gl_FUNC_STRDUP):
34110         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
34111         * m4/strndup.m4 (gl_FUNC_STRNDUP):
34112         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
34113         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
34114         * m4/time_r.m4 (gl_TIME_R):
34115         * m4/timespec.m4 (gl_TIMESPEC):
34116         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
34117         * m4/unlinkdir.m4 (gl_UNLINKDIR):
34118         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
34119         * m4/userspec.m4 (gl_USERSPEC):
34120         * m4/utimecmp.m4 (gl_UTIMECMP):
34121         * m4/utimens.m4 (gl_UTIMENS):
34122         * m4/xalloc.m4 (gl_XALLOC):
34123         * m4/xgetcwd.m4 (gl_XGETCWD):
34124         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
34125         * m4/xreadlink.m4 (gl_XREADLINK):
34126         * m4/xstrtod.m4 (gl_XSTRTOD):
34127         * m4/yesno.m4 (gl_YESNO):
34128         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
34129         to get the necessary .h files and whatnot.
34130
34131 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
34132             Bruno Haible  <bruno@clisp.org>
34133
34134         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
34135         /bin/sh understanding of '!' conditional negation.
34136
34137 2006-08-21  Jim Meyering  <jim@meyering.net>
34138
34139         * modules/openat (Depends-on): Really alphabetize.
34140
34141         * modules/acl (Depends-on): Add error and quote.
34142
34143         * check-module (find_included_lib_files): Add at-func.c to the
34144         ok-to-include-more-than-once white list.
34145
34146         * modules/openat (Depends-on): Add lstat.  Alphabetize.
34147
34148 2006-08-21  Bruno Haible  <bruno@clisp.org>
34149
34150         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34151         Emit a pkgdata_DATA variable only if some snippets add contents to it.
34152         Reported by Martin Lambers <marlam@marlam.de>.
34153
34154 2006-08-21  Bruno Haible  <bruno@clisp.org>
34155
34156         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
34157         specify an installation location, don't emit a noinst_LIBRARIES or
34158         noinst_LTLIBRARIES assignment.
34159
34160 2006-08-21  Bruno Haible  <bruno@clisp.org>
34161
34162         BeOS portability.
34163         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
34164         BeOS has mbrtowc() but no <wctype.h>.
34165
34166 2006-08-21  Bruno Haible  <bruno@clisp.org>
34167
34168         BeOS portability.
34169         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
34170         exist.
34171
34172 2006-08-21  Bruno Haible  <bruno@clisp.org>
34173
34174         BeOS portability.
34175         * lib/mbchar.h: Include <wctype.h> only if it exists.
34176
34177 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
34178
34179         Remove files that are no longer needed by their respective modules.
34180         * m4/obstack.m4: Remove.
34181         * m4/strerror_r.m4: Remove.
34182         * m4/uint32_t.m4: Remove.
34183         * m4/uintptr_t.m4: Remove.
34184         * m4/ullong_max.m4: Remove.
34185         * m4/xstrtoimax.m4: Remove.
34186         * m4/xstrtoumax.m4: Remove.
34187
34188         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
34189         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
34190         dependencies now capture this.
34191
34192         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
34193         Do not use AC_LIBSOURCES, since gnulib modules now do this.
34194         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
34195         * m4/human.m4 (gl_HUMAN): Likewise.
34196         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
34197         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
34198
34199         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
34200
34201         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
34202         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
34203         stdint.
34204         * m4/human.m4 (gl_HUMAN): Likewise.
34205         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
34206         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
34207         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
34208         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
34209         * m4/xstrtol (gl_XSTRTOL): Likewise.
34210
34211         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
34212         AC_TYPE_LONG_LONG_INT.
34213         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
34214         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
34215         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
34216         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
34217
34218         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
34219         on stdbool.
34220
34221         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
34222         (gl_PREREQ_XSTRTOUL): Remove.
34223
34224         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
34225
34226         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
34227         mode.
34228
34229 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
34230
34231         Add and change modules to make it easier for coreutils to use
34232         gnulib-tool.
34233         * modules/backupfile (Files): Remove m4/d-ino.m4.
34234         (Depends-on): Add d-ino.
34235         * modules/cycle-check (Depends-on): Add stdint.
34236         (lib_SOURCES): Add cycle-check.h.
34237         * modules/d-ino: New module.
34238         * modules/d-type: New module.
34239         * modules/error (Files): Remove m4/strerror_r.m4.
34240         * modules/filemode (Files): Add m4/st_dm_mode.m4.
34241         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
34242         m4/inttypes_h.m4, m4/uintmax_t.m4.
34243         (Depends-on): Add stdint.
34244         (lib_SOURCES): Add fsusage.h.
34245         * modules/getcwd (Files): Remove d-ino.m4.
34246         (Depends-on): Add d-ino.
34247         * modules/getndelim2 (Depends-on): Add stdint.
34248         * modules/glob (Files): Remove m4/d-type.m4.
34249         (Depends-on): Add d-type.
34250         * modules/host-os: New module.
34251         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
34252         m4/inttypes_h.m4, m4/uintmax_t.m4.
34253         * Depends-on: Add stdint.
34254         (lib_SOURCES): Add human.h.
34255         * modules/inttostr (Files): Remove m4/intmax_t.m4,
34256         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
34257         m4/uintmax_t.m4, m4/ulonglong.m4.
34258         (Depends-on): Add stdint.
34259         (EXTRA_DIST): Add inttostr.h.
34260         * modules/lchmod: New module.
34261         * modules/link-follow: New module.
34262         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
34263         (Depends-on): Add lchmod.
34264         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
34265         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
34266         (Depends-on): Add stdint.
34267         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
34268         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
34269         (Depends-on): Add stdint.
34270         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
34271         * modules/perl: New module.
34272         * modules/regex (Depends-on): Add stdint.
34273         * modules/rmdir-errno: New module.
34274         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
34275         m4/intmax_t.m4.
34276         (Depends-on): Add stdint.
34277         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
34278         m4/uintmax_t.m4.
34279         (Depends-on): Add stdint.
34280         * modules/unlink-busy: New module.
34281         * modules/utimecmp (Depends-on): Add stdint.
34282         * modules/uptime: New module.
34283         * modules/winsz-ioctl: New module.
34284         * modules/winsz-termios: New module.
34285         * modules/xnanosleep (Depends-on): Add nanosleep.
34286         * modules/ullong_max: Remove.
34287         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
34288         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
34289         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
34290         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
34291         (Depends-on): Add inttypes.
34292         (lib_SOURCES): Add xstrtol.h.
34293         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
34294         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
34295         * MODULES.html.sh: Move 'assert' into the assert section.
34296         Move 'dummy' into the linking section.
34297         Remove ullong_max.
34298         Add section for compatibility checks for POSIX:2001 functions,
34299         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
34300         winsz-ioctl, and winsz-termios into it.
34301         Add lchmod.
34302         Add top-level Misc section and put host-os, perl, and uptime
34303         into it.
34304
34305 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
34306
34307         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
34308         now assume the stdint module.  Do not include inttypes.h.
34309         * lib/fsusage.h: Likewise.
34310         * lib/getndelim2.c: Likewise.
34311         * lib/human.h: Likewise.
34312         * lib/inttostr.h: Likewise.
34313         * lib/obstack.c: Likewise.
34314         * lib/regex_internal.h: Likewise.
34315         * lib/tempname.c: Likewise.
34316         * lib/utimecmp.c: Likewise.
34317         * lib/xstrtol.h: Likewise.
34318
34319         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
34320
34321         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
34322         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
34323         * lib/xtime.h: Likewise.
34324
34325 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
34326
34327         * modules/openat (Files): Add lib/fchmodat.c.
34328         Fixes problem reported by Jay Youngman.
34329
34330 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
34331
34332         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
34333         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
34334
34335 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
34336             Bruno Haible  <bruno@clisp.org>
34337
34338         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
34339         and is a script that invokes bison. Tighten the code. Add comments.
34340
34341 2006-08-18  Jim Meyering  <jim@meyering.net>
34342
34343         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
34344         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
34345         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
34346         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
34347
34348 2006-08-18  Bruno Haible  <bruno@clisp.org>
34349
34350         * modules/bison-i18n: New file.
34351         * MODULES.html.sh (Internationalization functions): Add it.
34352
34353 2006-08-18  Bruno Haible  <bruno@clisp.org>
34354
34355         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
34356         sys/statvfs.h. When getmntinfo was found, check its declaration and
34357         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
34358
34359 2006-08-18  Bruno Haible  <bruno@clisp.org>
34360
34361         * m4/bison-i18n.m4: New file, from bison.
34362
34363 2006-08-18  Bruno Haible  <bruno@clisp.org>
34364
34365         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
34366         (ME_DUMMY): Treat "kernfs" as a dummy.
34367         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
34368
34369 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
34370
34371         Update from coreutils.
34372
34373         2006-08-15  Jim Meyering  <jim@meyering.net>
34374
34375         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
34376
34377         2006-01-17  Jim Meyering  <jim@meyering.net>
34378
34379         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
34380
34381         2006-01-11  Jim Meyering  <jim@meyering.net>
34382
34383         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
34384         Check for the lchmod function.
34385
34386 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
34387
34388         Update from coreutils.
34389
34390         * lib/__fpending.h: Add copyright notice.
34391         * lib/fprintftime.h: Likewise.
34392         * lib/savedir.c: Use (C) in copyright notice.
34393         * lib/savedir.h: Likewise.
34394
34395         2006-08-15  Jim Meyering  <jim@meyering.net>
34396
34397         * lib/at-func.c: New file, with the logic of all emulated at-functions.
34398         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
34399         in support of the EXPECTED_ERRNO macro.
34400         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
34401         definitions.  Instead, define the appropriate symbols and include
34402         "at-func.c".
34403         * lib/mkdirat.c (mkdirat): Likewise.
34404         * lib/fchmodat.c (fchmodat): Likewise.
34405         (ENOSYS): Remove definition.
34406         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
34407         it.  Don't include "unistd--.h" -- it wasn't ever used.
34408
34409         2006-01-17  Jim Meyering  <jim@meyering.net>
34410
34411         Rewrite fts.c not to change the current working directory,
34412         by using openat, fstatat, fdopendir, etc..
34413
34414         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
34415         (HAVE_OPENAT_SUPPORT): Define.
34416         [_LIBC] (fchdir): Don't undef or define; no longer used.
34417         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
34418         Now, this `function' always succeeds, and consumes its file descriptor
34419         parameter -- so callers must not close such FDs.  Update callers.
34420         (diropen_fd, opendirat, cwd_advance_fd): New functions.
34421         (diropen): Add parameter, SP.  Adjust all callers.
34422         Implement using diropen_fd, rather than open.
34423         (fts_open): Initialize new member, fts_cwd_fd.
34424         Remove fts_rft-setting code.
34425         (fts_close): Close fts_cwd_fd, if necessary.
34426         (__opendir2): Define in terms of opendir or opendirat,
34427         depending on whether the FST_NOCHDIR flag is set.
34428         (fts_build): Since fts_safe_changedir consumes its FD, and since
34429         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
34430         and close the dup'd file descriptor upon failure.
34431         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
34432         (fts_safe_changedir): Tweak semantics to reflect that this function
34433         now calls cwd_advance_fd and hence consumes its FD argument.
34434         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
34435         [struct FTS] (fts_rft): Remove now-unused member.
34436         [struct FTS] (fts_cycle.state): Improve comment.
34437
34438         * lib/openat.c (openat_needs_fchdir): New function.
34439         * lib/openat.h (openat_needs_fchdir): Declare it.
34440
34441 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
34442
34443         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
34444         Problem and fix reported by Pádraig Brady in
34445         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
34446
34447 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
34448
34449         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
34450
34451 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
34452
34453         * lib/memcoll.c (memcoll): Optimize for the common case where the
34454         arguments are bytewise equal.
34455
34456 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
34457
34458         * doc/regexprops-generic.texi: Add a copyright notice.
34459
34460 2006-08-15  Bruno Haible  <bruno@clisp.org>
34461
34462         * modules/tmpdir (License): Change to LGPL.
34463
34464 2006-08-15  Bruno Haible  <bruno@clisp.org>
34465
34466         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
34467         module.
34468
34469 2006-08-14  Simon Josefsson  <jas@extundo.com>
34470
34471         * config/srclist.txt: Add gnupload.
34472
34473 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
34474
34475         Change copyright notice from LGPL 2 to GPL 2, since that's the
34476         standard form used in the gnulib repository.
34477         * tests/test-lock.c: Likewise.
34478         * tests/test-stdint.c: Likewise.
34479         * tests/test-tls.c: Likewise.
34480
34481         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
34482         prelude-manager.  User shorter URLs for GNU projects, without '?'.
34483         Add copyright notice.
34484
34485         * check-module: Add copyright notice.  Output a copyright
34486         notice if "--version" is specified.
34487         * modules/COPYING: New file.
34488         * tests/test-getaddrinfo.c: Add copyright notice.
34489         * tests/test-verify.c: Likewise.
34490
34491 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
34492
34493         Change copyright notice from LGPL 2 to GPL 2, since that's the
34494         standard form used in the gnulib repository.
34495         * lib/lock.c: LGPL -> GPL.
34496         * lib/lock.h: Likewise.
34497         * lib/strnlen1.c: Likewise.
34498         * lib/strnlen1.h: Likewise.
34499         * lib/tls.c: Likewise.
34500         * lib/tls.h: Likewise.
34501         * lib/tmpdir.c: Likewise.
34502
34503         * lib/TODO: Remove; this belongs only in coreutils.
34504
34505 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
34506
34507         Add copyright notices to long-enough files that lack them, since
34508         otherwise the files aren't clearly free.  Use the same notice that
34509         getdate.texi already uses.
34510         * doc/alloca-opt.texi: Add copyright notice.
34511         * doc/alloca.texi: Likewise.
34512         * doc/ctime.texi: Likewise.
34513         * doc/functions.texi: Likewise.
34514         * doc/gcd.texi: Likewise.
34515         * doc/gnulib-tool.texi: Likewise.
34516         * doc/inet_ntoa.texi: Likewise.
34517         * doc/visibility.texi: Likewise.
34518
34519         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
34520         * doc/quote.texi: Add copyright notice.
34521
34522         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
34523         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
34524         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
34525         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
34526         is now obsolete, and give a pointer to the Sun list.
34527         Add copyright notice.
34528
34529 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
34530
34531         * config/srclistvars.sh: Add copyright notice.
34532
34533 2006-08-14  Eric Blake  <ebb9@byu.net>
34534
34535         Import the following change from libc:
34536
34537         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
34538
34539         Upstream bug 2997.
34540         * lib/misc/error.c: Add space between program name and message if file
34541         name is missing.
34542
34543 2006-08-12  Karl Berry  <karl@gnu.org>
34544
34545         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
34546         remove, these originate in gnulib now.
34547
34548 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34549
34550         * doc/Makefile (standards.info standards.html standards.dvi):
34551         Also depend on make-stds.texi.
34552
34553 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
34554
34555         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
34556         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
34557
34558         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
34559         in wchar_t.  Problem reported by Eric Blake.
34560
34561         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
34562         LEN is smaller than SIZE.  Suggested by Bruno Haible.
34563         Also, help the compiler to keep LEN in a register.
34564
34565 2006-08-11  Eric Blake  <ebb9@byu.net>
34566
34567         * users.txt: Sort.  Add tar.
34568
34569 2006-08-11  Bruno Haible  <bruno@clisp.org>
34570
34571         * users.txt: New file.
34572
34573 2006-08-11  Bruno Haible  <bruno@clisp.org>
34574
34575         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
34576         before <wchar.h>. Needed for OSF/1 and BSD/OS.
34577
34578 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
34579
34580         * modules/snprintf (Depends-on): Remove minmax.
34581         (Maintainer): Add self and Bruno.
34582
34583 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
34584
34585         * lib/.cppi-disable: Add snprintf.h, socket_.h.
34586         * lib/snprintf.c: Include <errno.h> and <limits.h>.
34587         (EOVERFLOW): Define if the system does not.
34588         Do not include "minmax.h"; it wasn't used.
34589         (snprintf): Don't assume size_t promotes to an unsigned type.
34590         Fix bug when generated string was too long for the buffer: the
34591         buffer's contents are supposed to be the initial prefix of the
34592         output.  Don't assume vasnprintf returns EOVERFLOW if the size
34593         exceeds INT_MAX; do the check ourselves.
34594
34595         Import the following changes from libc:
34596
34597         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
34598
34599         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
34600         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
34601         set wc to the byte which couldn't be converted.
34602         (re_string_reconstruct): Don't clear valid_raw_len before calling
34603         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
34604         tip_context using re_string_context_at.
34605
34606         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
34607
34608         * lib/posix/regex.h: g++ still cannot handled [restrict].
34609
34610         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
34611
34612         * lib/posix/regex.h: Remove special handling for VMS.
34613
34614 2006-08-10  Jim Meyering  <jim@meyering.net>
34615
34616         * modules/same-inode: New module.
34617         * modules/dev-ino: New module.
34618         * modules/cycle-check: Depend on these modules, rather than simply
34619         including their .h files.
34620         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
34621         required via m4/cycle-check.m4.
34622         * modules/same: Depend on new same-inode module, rather than
34623         including same-inode.h.
34624         * modules/chdir-safer: New file.
34625
34626         * modules/chown (Depends-on): Add stat-macros.
34627
34628 2006-08-10  Jim Meyering  <jim@meyering.net>
34629
34630         * m4/cycle-check.m4: New file.
34631         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
34632         * m4/dev-ino.m4, m4/same-inode.m4: New files.
34633
34634 2006-08-10  Eric Blake  <ebb9@byu.net>
34635
34636         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
34637         in from original proposal.
34638
34639 2006-08-10  Eric Blake  <ebb9@byu.net>
34640         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34641
34642         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
34643         namespace.
34644
34645 2006-08-10  Bruno Haible  <bruno@clisp.org>
34646
34647         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
34648         as well.
34649
34650 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
34651
34652         Sync from coreutils.
34653
34654         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
34655
34656         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
34657         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
34658
34659 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
34660
34661         * modules/restrict: Remove; no longer needed now that we assume
34662         Autoconf 2.59 or later.
34663         * MODULES.html.sh: Remove 'restrict'.
34664         * modules/argp (Depends-on): Remove 'restrict'.
34665         * modules/base64 (Depends-on): Likewise.
34666         * modules/gc (Depends-on): Likewise.
34667         * modules/getaddrinfo (Depends-on): Likewise.
34668         * modules/glob (Depends-on): Likewise.
34669         * modules/inet_ntop (Depends-on): Likewise.
34670         * modules/inet_pton (Depends-on): Likewise.
34671         * modules/memxor (Depends-on): Likewise.
34672         * modules/regex (Depends-on): Likewise.
34673         * modules/strtok_r (Depends-on): Likewise.
34674         * modules/time_r (Depends-on): Likewise.
34675
34676 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
34677
34678         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
34679         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
34680         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
34681         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
34682         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
34683         * m4/memxor.m4 (gl_MEMXOR): Likewise.
34684         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
34685         gl_C_RESTRICT replaced by AC_C_RESTRICT.
34686
34687         Merge from coreutils.
34688         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
34689         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
34690         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
34691         * m4/time_r.m4 (gl_TIME_R): Likewise.
34692
34693 2006-08-09  Karl Berry  <karl@gnu.org>
34694
34695         * config/srclist.txt: no more gettext-tools, per Bruno.
34696
34697 2006-08-08  Eric Blake  <ebb9@byu.net>
34698
34699         * modules/verror: New module.
34700         * MODULES.html.sh: Document it.
34701
34702 2006-08-08  Eric Blake  <ebb9@byu.net>
34703
34704         * lib/verror.h, lib/verror.c: New files.
34705
34706 2006-08-08  Eric Blake  <ebb9@byu.net>
34707
34708         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
34709         verror_at_line output complies with GNU Coding Standards even when
34710         file is NULL.
34711
34712 2006-08-07  Bruno Haible  <bruno@clisp.org>
34713
34714         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
34715         versions of AIX.
34716         Reported by Ralf Wildenhues.
34717
34718 2006-08-07  Bruno Haible  <bruno@clisp.org>
34719
34720         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
34721         in an AC_DEFUN. Needed so that the autoconf snippets can use
34722         AC_REQUIRE.
34723
34724 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34725
34726         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34727         Initialize pkgdata_DATA.
34728         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
34729         overriding it.
34730
34731 2006-08-06  Eric Blake  <ebb9@byu.net>
34732
34733         * lib/error.h: Fold in some upstream changes from glibc.
34734         * lib/error.c: Likewise.
34735
34736 2006-08-04  Bruno Haible  <bruno@clisp.org>
34737
34738         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34739         Make the mostlyclean-local rule depend on mostlyclean-generic.
34740         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
34741
34742 2006-07-31  Bruno Haible  <bruno@clisp.org>
34743
34744         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
34745         <stdlib.h>, <string.h>.
34746
34747 2006-07-30  Bruno Haible  <bruno@clisp.org>
34748
34749         * modules/readlink (License): Change to LGPL.
34750
34751 2006-07-30  Bruno Haible  <bruno@clisp.org>
34752
34753         * modules/javaversion (Makefile.am): Distribute javaversion.java and
34754         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
34755         set PKGDATADIR to point to it.
34756
34757 2006-07-30  Bruno Haible  <bruno@clisp.org>
34758
34759         * modules/csharpexec (configure.ac): Comment out macro invocation.
34760         * modules/javaexec (configure.ac): Likewise.
34761         * modules/javacomp-script (configure.ac): Likewise.
34762
34763         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
34764
34765 2006-07-30  Bruno Haible  <bruno@clisp.org>
34766
34767         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
34768         linked-list.
34769
34770 2006-07-30  Bruno Haible  <bruno@clisp.org>
34771
34772         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
34773
34774 2006-07-30  Bruno Haible  <bruno@clisp.org>
34775
34776         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34777         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
34778         get removed.
34779
34780 2006-07-29  Bruno Haible  <bruno@clisp.org>
34781
34782         Make it possible for gnulib-tool to work with locally modified or
34783         augmented gnulib repositories.
34784         * gnulib-tool (func_usage): Document --local-dir option.
34785         (local_gnulib_dir): New variable.
34786         Handle --local-dir option.
34787         (func_lookup_file): New function.
34788         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
34789         (func_get_description, func_get_filelist, func_get_description,
34790         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
34791         func_get_automake_snippet, func_get_include_directive,
34792         func_get_license, func_get_maintainer): Use func_lookup_file.
34793         (func_import, func_create_testdir): Use func_lookup_file.
34794
34795 2006-07-29  Bruno Haible  <bruno@clisp.org>
34796
34797         * modules/setenv (Depends-on): Add unistd.
34798
34799 2006-07-29  Bruno Haible  <bruno@clisp.org>
34800
34801         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
34802
34803 2006-07-29  Bruno Haible  <bruno@clisp.org>
34804
34805         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
34806
34807 2006-07-29  Bruno Haible  <bruno@clisp.org>
34808
34809         * gnulib-tool (import, update): If there is no Makefile.am, look at
34810         aclocal.m4, instead of bailing out.
34811
34812 2006-07-29  Bruno Haible  <bruno@clisp.org>
34813
34814         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
34815         Categorize the options by when they are useful.
34816
34817 2006-07-29  Bruno Haible  <bruno@clisp.org>
34818
34819         * gnulib-tool (func_usage): Document option --no-libtool.
34820         Handle option --no-libtool.
34821         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
34822         for changed semantics of $libtool variable.
34823         (func_import): Likewise. If libtool is not used, show this through
34824         an option --no-libtool.
34825         (func_create_testdir): Update.
34826
34827 2006-07-29  Bruno Haible  <bruno@clisp.org>
34828
34829         * gnulib-tool (func_import): Extend error message about missing
34830         --doc-base.
34831
34832 2006-07-29  Bruno Haible  <bruno@clisp.org>
34833
34834         * gnulib-tool (func_import): Don't create the $docbase directory if
34835         there is no file to store there.
34836
34837 2006-07-29  Bruno Haible  <bruno@clisp.org>
34838
34839         * gnulib-tool (autoconf_minversion): If a --dir option is given and
34840         relevant, look for configure.ac there, not in the current directory.
34841         Also use a simple search for AC_PREREQ, not "autoconf --trace".
34842
34843 2006-07-29  Bruno Haible  <bruno@clisp.org>
34844
34845         * gnulib-tool (SORT): New variable.
34846         (func_usage): Undocument --assume-autoconf option.
34847         Remove --assume-autoconf option handling.
34848         (autoconf_minversion): Determine from the contents of configure.ac.
34849         (func_import): Remove autoconf_minversion handling.
34850         Suggested by Eric Blake.
34851
34852 2006-07-29  Bruno Haible  <bruno@clisp.org>
34853
34854         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
34855
34856 2006-07-29  Bruno Haible  <bruno@clisp.org>
34857
34858         * config/srclist.txt (*setenv.[ch]): Remove rules.
34859
34860 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34861
34862         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
34863
34864 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34865
34866         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
34867         arpa/inet.h.
34868
34869 2006-07-28  Simon Josefsson  <jas@extundo.com>
34870
34871         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
34872         * modules/inet_pton (Depends-on): Likewise.
34873
34874 2006-07-28  Simon Josefsson  <jas@extundo.com>
34875
34876         * m4/netinet_in_h.m4: New file.
34877
34878 2006-07-28  Simon Josefsson  <jas@extundo.com>
34879
34880         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
34881         #include's.
34882
34883 2006-07-28  Simon Josefsson  <jas@extundo.com>
34884
34885         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
34886         #include's.
34887
34888 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
34889
34890         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
34891         setgid on directories only if they set these bits.
34892         * lib/modechange.h: Remove obsolete comment about masks.
34893
34894 2006-07-28  Eric Blake  <ebb9@byu.net>
34895
34896         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
34897         macro expansion.
34898
34899 2006-07-28  Bruno Haible  <bruno@clisp.org>
34900
34901         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
34902
34903 2006-07-28  Bruno Haible  <bruno@clisp.org>
34904
34905         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
34906
34907 2006-07-28  Bruno Haible  <bruno@clisp.org>
34908
34909         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
34910         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
34911         Define fallbacks.
34912         Avoids link error on FreeBSD 4.x.
34913         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34914
34915         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
34916         encoding.
34917         * lib/mbswidth.c (iswcntrl): Likewise.
34918
34919 2006-07-27  Bruno Haible  <bruno@clisp.org>
34920
34921         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
34922         test.
34923
34924 2006-07-27  Bruno Haible  <bruno@clisp.org>
34925
34926         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
34927         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
34928         defined.
34929
34930 2006-07-26  Eric Blake  <ebb9@byu.net>
34931
34932         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
34933
34934 2006-07-26  Eric Blake  <ebb9@byu.net>
34935
34936         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
34937         like mingw that lack mkstemp.
34938         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
34939         avoid compilation warning on mingw.
34940
34941 2006-07-26  Bruno Haible  <bruno@clisp.org>
34942
34943         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
34944         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
34945         INT_FAST*_MIN, INTPTR_MIN.
34946
34947 2006-07-25  Bruno Haible  <bruno@clisp.org>
34948
34949         * modules/version-etc (Depends-on): Add stdarg.
34950
34951 2006-07-25  Bruno Haible  <bruno@clisp.org>
34952
34953         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
34954         complex commands.
34955
34956 2006-07-25  Bruno Haible  <bruno@clisp.org>
34957
34958         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
34959         defined in <stdarg.h> or config.h.
34960
34961 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
34962
34963         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
34964         (gl_STDIO_SAFER): Remove.
34965
34966 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
34967
34968         * MODULES.html.sh (File stream based Input/Output):
34969         Add fopen-safer, tmpfile-safer; remove stdio-safer.
34970         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
34971         * modules/fopen-safer, modules/tmpfile-safer: New files.
34972         * modules/stdio-safer: Remove.
34973
34974 2006-07-24  Bruno Haible  <bruno@clisp.org>
34975
34976         * modules/tmpdir: New file.
34977         * MODULES.html.sh (File system functions): Add it.
34978
34979 2006-07-24  Bruno Haible  <bruno@clisp.org>
34980
34981         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
34982         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
34983
34984 2006-07-24  Bruno Haible  <bruno@clisp.org>
34985
34986         * modules/clean-temp: New file.
34987
34988 2006-07-24  Bruno Haible  <bruno@clisp.org>
34989
34990         * m4/tmpdir.m4: New file, from GNU gettext.
34991
34992 2006-07-24  Bruno Haible  <bruno@clisp.org>
34993
34994         * lib/tmpdir.h: New file, from GNU gettext.
34995         * lib/tmpdir.c: New file, from GNU gettext.
34996
34997 2006-07-24  Bruno Haible  <bruno@clisp.org>
34998
34999         * lib/clean-temp.h: New file, from GNU gettext.
35000         * lib/clean-temp.c: New file, from GNU gettext.
35001
35002 2006-07-23  Eric Blake  <ebb9@byu.net>
35003
35004         * modules/stdio-safer (Files): Add tmpfile-safer.c.
35005         (Depends-on): Add binary-io.
35006
35007 2006-07-23  Eric Blake  <ebb9@byu.net>
35008
35009         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
35010
35011 2006-07-23  Eric Blake  <ebb9@byu.net>
35012
35013         * lib/tmpfile-safer.c: New file.
35014         * lib/stdio-safer.h (fopen_safer): Add prototype.
35015         * lib/stdio--.h (tmpfile): Make safer.
35016
35017 2006-07-23  Bruno Haible  <bruno@clisp.org>
35018
35019         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
35020         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
35021         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
35022         gl_linked_remove_at): Use it.
35023
35024 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35025         and Simon Josefsson <jas@extundo.com>
35026
35027         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
35028
35029         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
35030
35031 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
35032
35033         * modules/close-stream: New file.
35034         * modules/closeout (Description): Make it clear that it exits
35035         with a diagnostic on error.
35036         (Depends-on): Add close-stream.  Remove fpending, stdbool.
35037         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
35038
35039 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
35040
35041         * m4/close-stream.m4: New file.
35042
35043 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
35044
35045         * lib/close-stream.c, lib/close-stream.h: New files.
35046
35047 2006-07-22  Bruno Haible  <bruno@clisp.org>
35048
35049         Merge from GNU gettext 0.15.
35050
35051         2006-05-01  Bruno Haible  <bruno@clisp.org>
35052
35053                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
35054
35055         2006-07-22  Bruno Haible  <bruno@clisp.org>
35056
35057                 * modules/javaversion: New file.
35058                 * MODULES.html.sh (Java): Add javaversion.
35059
35060         2006-03-12  Bruno Haible  <bruno@clisp.org>
35061
35062                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
35063
35064         2005-12-04  Bruno Haible  <bruno@clisp.org>
35065
35066                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
35067                 (untested).
35068
35069         2006-06-21  Bruno Haible  <bruno@clisp.org>
35070
35071                 Avoid warnings from recent versions of mcs.
35072                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
35073                 -o, -L, -r any more. Use options documented since mcs-1.0
35074                 instead. Similarly for -g.
35075
35076         2005-12-04  Bruno Haible  <bruno@clisp.org>
35077
35078                 * build-aux/csharpcomp.sh.in: Suffix for resources is
35079                 .resources, not .resource.
35080
35081         2005-07-09  Bruno Haible  <bruno@clisp.org>
35082
35083                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
35084                 add a .dll suffix.
35085                 Reported by Mark Junker <mjscod@gmx.de>.
35086
35087         2006-07-22  Bruno Haible  <bruno@clisp.org>
35088
35089                 * modules/gettext: Upgrade to gettext-0.15.
35090                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
35091                 m4/visibility.m4.
35092                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
35093
35094 2006-07-22  Bruno Haible  <bruno@clisp.org>
35095
35096         Merge from GNU gettext 0.15.
35097
35098         2006-03-25  Bruno Haible  <bruno@clisp.org>
35099
35100                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
35101
35102         2006-07-21  Bruno Haible  <bruno@clisp.org>
35103
35104                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
35105                 "1.1".
35106
35107         2006-05-09  Bruno Haible  <bruno@clisp.org>
35108
35109                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
35110                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
35111                 for the conftestver execution.
35112
35113         2006-05-01  Bruno Haible  <bruno@clisp.org>
35114
35115                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
35116                 optional target-version argument. Verify that the compiler
35117                 groks source of the specified source-version, or add -source
35118                 option as necessary. Verify that the compiler produces
35119                 bytecode in the specified target-version, or add -target and
35120                 -source options as necessary. Make the result of the test
35121                 available as variable CONF_JAVAC. Also log error output in
35122                 config.log.
35123
35124         2006-03-11  Bruno Haible  <bruno@clisp.org>
35125
35126                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
35127
35128         2006-05-09  Bruno Haible  <bruno@clisp.org>
35129
35130                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
35131                 CLASSPATH_SEPARATOR to a semicolon.
35132
35133         2006-03-12  Bruno Haible  <bruno@clisp.org>
35134
35135                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
35136                 available as variable CONF_JAVA, for subsequent autoconf
35137                 tests. Also log error output in config.log.
35138
35139         2006-07-19  Bruno Haible  <bruno@clisp.org>
35140
35141                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
35142                 that getline works on glibc2 systems. Needed to avoid trouble
35143                 in relocatable.c.
35144                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
35145
35146         2005-12-04  Bruno Haible  <bruno@clisp.org>
35147
35148                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
35149                 launcher (untested).
35150
35151         2005-12-04  Bruno Haible  <bruno@clisp.org>
35152
35153                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
35154
35155         2006-07-22  Bruno Haible  <bruno@clisp.org>
35156
35157                 * gettext.m4: Update from GNU gettext-0.15.
35158                 * nls.m4: Likewise.
35159                 * po.m4: Likewise.
35160                 * inttypes-pri.m4: Likewise.
35161                 * inttypes-h.m4: Renamed from inttypes.m4.
35162                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
35163
35164 2006-07-22  Bruno Haible  <bruno@clisp.org>
35165
35166         Merge from GNU gettext 0.15.
35167
35168         2005-07-05  Bruno Haible  <bruno@clisp.org>
35169
35170                 * printf-args.c (printf_fetchargs): Work around broken
35171                 definition of wint_t on mingw.
35172
35173         2005-02-12  Bruno Haible  <bruno@clisp.org>
35174
35175                 * xallocsa.h: Add extern "C" for C++.
35176
35177         2006-05-17  Bruno Haible  <bruno@clisp.org>
35178
35179                 Cygwin portability.
35180                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
35181
35182         2006-04-30  Bruno Haible  <bruno@clisp.org>
35183
35184                 * progreloc.c: Include <mach-o/dyld.h> if available.
35185                 (find_executable): Use _NSGetExecutablePath when possible.
35186
35187         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
35188
35189                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
35190                 function.
35191
35192         2005-12-29  Bruno Haible  <bruno@clisp.org>
35193
35194                 * progreloc.c (set_program_name_and_installdir): Fix
35195                 compilation error.
35196
35197         2005-12-04  Bruno Haible  <bruno@clisp.org>
35198
35199                 Cygwin portability.
35200                 * progreloc.c: Include <windows.h> also on Cygwin.
35201                 (find_executable): Add support for Cygwin.
35202                 (set_program_name_and_installdir): Handle also platforms with
35203                 nonempty EXEEXT.
35204
35205         2006-07-11  Bruno Haible  <bruno@clisp.org>
35206
35207                 * javacomp.c: Fix a comment.
35208                 Reported by Jim Meyering.
35209
35210         2006-04-30  Bruno Haible  <bruno@clisp.org>
35211
35212                 * javacomp.h (compile_java_class): Add source_version,
35213                 target_version arguments.
35214                 * javacomp.c: Rewritten to choose only a compiler that
35215                 respects the specified source_version and target_version.
35216
35217         2006-06-27  Bruno Haible  <bruno@clisp.org>
35218
35219                 Assume correct S_ISDIR macro.
35220                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
35221
35222         2006-07-22  Bruno Haible  <bruno@clisp.org>
35223
35224                 * javaversion.h: New file, from GNU gettext.
35225                 * javaversion.c: New file, from GNU gettext.
35226                 * javaversion.java: New file, from GNU gettext.
35227                 * javaversion.class: New file, from GNU gettext.
35228
35229         2006-05-17  Bruno Haible  <bruno@clisp.org>
35230
35231                 Cygwin portability.
35232                 * javaexec.c (execute_java_class): Test for jview program
35233                 also on Cygwin.
35234
35235         2006-04-09  Bruno Haible  <bruno@clisp.org>
35236
35237                 * fatal-signal.c: Don't include string.h.
35238                 (at_fatal_signal): Use a copying loop instead of memcpy.
35239
35240         2005-12-04  Bruno Haible  <bruno@clisp.org>
35241
35242                 * csharpexec.c: Add support for 'clix' launcher (untested).
35243                 (execute_csharp_using_sscli): New function.
35244                 (execute_csharp_program): Call it.
35245
35246         2006-06-21  Bruno Haible  <bruno@clisp.org>
35247
35248                 Avoid warnings from recent versions of mcs.
35249                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
35250                 -o, -L, -r any more. Use options documented since mcs-1.0
35251                 instead. Similarly for -g.
35252
35253         2005-07-09  Bruno Haible  <bruno@clisp.org>
35254
35255                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
35256                 add a .dll suffix.
35257                 Reported by Mark Junker <mjscod@gmx.de>.
35258
35259         2006-06-17  Bruno Haible  <bruno@clisp.org>
35260
35261                 * config.charset: Update for NetBSD 3.0.
35262
35263         2006-05-17  Bruno Haible  <bruno@clisp.org>
35264
35265                 Cygwin portability.
35266                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
35267
35268         2006-05-16  Bruno Haible  <bruno@clisp.org>
35269
35270                 * localcharset.c [CYGWIN]: Include <windows.h>.
35271                 (get_charset_aliases): For Cygwin, return the same CPxxx
35272                 aliases list as under WIN32.
35273                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
35274                 the environment variables. Fall back to GetACP().
35275
35276         2006-04-05  Bruno Haible  <bruno@clisp.org>
35277
35278                 * config.charset: Update Juan Manuel Guerrero's address.
35279
35280         2005-02-12  Bruno Haible  <bruno@clisp.org>
35281
35282                 * allocsa.h: Add extern "C" for C++.
35283
35284         2005-02-10  Bruno Haible  <bruno@clisp.org>
35285
35286                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
35287                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
35288
35289         2006-07-22  Bruno Haible  <bruno@clisp.org>
35290
35291                 * gettext.h: Update to GNU gettext-0.15.
35292
35293 2006-07-22  Bruno Haible  <bruno@clisp.org>
35294
35295         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
35296         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
35297         lib-prefix.m4, longdouble.m4, ssize_t.m4.
35298
35299 2006-07-21  Eric Blake  <ebb9@byu.net>
35300
35301         * modules/stdlib-safer: New file.
35302         * MODULES.html.sh (File stream based Input/Output): Add
35303         stdlib-safer.
35304
35305 2006-07-21  Eric Blake  <ebb9@byu.net>
35306
35307         * lib/stdlib-safer.h: New file from coreutils, required by
35308         stdlib--.h.
35309
35310 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
35311
35312         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
35313
35314 2006-07-20  Bruno Haible  <bruno@clisp.org>
35315
35316         * gnulib-tool: Recognize new option --assume-autoconf.
35317         (autoconf_minversion): New variable.
35318         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
35319
35320 2006-07-20  Bruno Haible  <bruno@clisp.org>
35321
35322         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
35323
35324 2006-07-19  Derek R. Price  <derek@ximbiot.com>
35325
35326         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
35327         Reindent and repaginate.
35328
35329 2006-07-19  Derek Price  <derek@ximbiot.com>
35330
35331         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
35332         Correct grammar.
35333
35334 2006-07-17  Bruno Haible  <bruno@clisp.org>
35335
35336         * modules/list: New file.
35337         * modules/array-list: New file.
35338         * modules/carray-list, modules/carray-list-tests: New files.
35339         * modules/linked-list, modules/linked-list-tests: New files.
35340         * modules/avltree-list, modules/avltree-list-tests: New files.
35341         * modules/rbtree-list, modules/rbtree-list-tests: New files.
35342         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
35343         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
35344         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
35345         * modules/oset: New file.
35346         * modules/array-oset: New file.
35347         * modules/avltree-oset, modules/avltree-oset-tests: New files.
35348         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
35349         * tests/test-carray_list.c: New file.
35350         * tests/test-linked_list.c: New file.
35351         * tests/test-avltree_list.c: New file.
35352         * tests/test-rbtree_list.c: New file.
35353         * tests/test-linkedhash_list.c: New file.
35354         * tests/test-avltreehash_list.c: New file.
35355         * tests/test-rbtreehash_list.c: New file.
35356         * tests/test-avltree_oset.c: New file.
35357         * tests/test-rbtree_oset.c: New file.
35358         * MODULES.html.sh (Container data structures): New section.
35359
35360 2006-07-17  Bruno Haible  <bruno@clisp.org>
35361
35362         * m4/gl_list.m4: New file.
35363
35364 2006-07-17  Bruno Haible  <bruno@clisp.org>
35365
35366         * lib/gl_list.h: New file.
35367         * lib/gl_list.c: New file.
35368         * lib/gl_array_list.h: New file.
35369         * lib/gl_array_list.c: New file.
35370         * lib/gl_carray_list.h: New file.
35371         * lib/gl_carray_list.c: New file.
35372         * lib/gl_linked_list.h: New file.
35373         * lib/gl_linked_list.c: New file.
35374         * lib/gl_anylinked_list1.h: New file.
35375         * lib/gl_anylinked_list2.h: New file.
35376         * lib/gl_avltree_list.h: New file.
35377         * lib/gl_avltree_list.c: New file.
35378         * lib/gl_anyavltree_list1.h: New file.
35379         * lib/gl_anyavltree_list2.h: New file.
35380         * lib/gl_rbtree_list.h: New file.
35381         * lib/gl_rbtree_list.c: New file.
35382         * lib/gl_anyrbtree_list1.h: New file.
35383         * lib/gl_anyrbtree_list2.h: New file.
35384         * lib/gl_anytree_list1.h: New file.
35385         * lib/gl_anytree_list2.h: New file.
35386         * lib/gl_linkedhash_list.h: New file.
35387         * lib/gl_linkedhash_list.c: New file.
35388         * lib/gl_anyhash_list1.h: New file.
35389         * lib/gl_anyhash_list2.h: New file.
35390         * lib/gl_avltreehash_list.h: New file.
35391         * lib/gl_avltreehash_list.c: New file.
35392         * lib/gl_rbtreehash_list.h: New file.
35393         * lib/gl_rbtreehash_list.c: New file.
35394         * lib/gl_anytreehash_list1.h: New file.
35395         * lib/gl_anytreehash_list2.h: New file.
35396
35397         * lib/gl_oset.h: New file.
35398         * lib/gl_oset.c: New file.
35399         * lib/gl_array_oset.h: New file.
35400         * lib/gl_array_oset.c: New file.
35401         * lib/gl_avltree_oset.h: New file.
35402         * lib/gl_avltree_oset.c: New file.
35403         * lib/gl_rbtree_oset.h: New file.
35404         * lib/gl_rbtree_oset.c: New file.
35405         * lib/gl_anytree_oset.h: New file.
35406
35407 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
35408
35409         * m4/mkancesdirs.m4: New file.
35410         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
35411         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
35412         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
35413         it.
35414
35415 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
35416
35417         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
35418         * lib/mkancesdirs.h: New files.
35419         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
35420         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
35421         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
35422         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
35423         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
35424         callers changed.  Revamp internals significantly, by not
35425         attempting to create directories that are temporarily more
35426         permissive than the final results.  Do not attempt to use
35427         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
35428         This removes some race conditions, fixes some bugs, and simplifies
35429         things.  Use new dirchownmod function to do owner and mode changes.
35430         * lib/mkdir-p.h: Likewise.
35431         * lib/modechange.c (octal_to_mode): New function.
35432         (struct mode_change): New member mentioned.
35433         (make_node_op_equals): New arg mentioned.  All callers changed.
35434         (mode_compile): Keep track of which mode bits the user has explicitly
35435         mentioned.
35436         (mode_adjust): New arg DIR, so that we implement the X op correctly.
35437         New arg PMODE_BITS, to keep track of which mode bits the user
35438         mentioned; it treats S_ISUID and S_ISGID speciall.
35439         All callers changed.
35440         * lib/modechange.h: Likewise.
35441
35442 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
35443
35444         * MODULES.html.sh: Add mkancestors.
35445         * modules/mkancesdirs: New module.
35446         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
35447         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
35448         The chdir-safer and afs files are now orphans; I'll remove them
35449         unless someone speaks up.
35450         Add lib/dirchownmod.c, lib/dirchownmod.h.
35451         (Depends-on): Remove alloca, chown, save-cwd, dirname.
35452         Add lchown, mkancesdirs.
35453         (Maintainer): Add self.
35454
35455 2006-07-15  Karl Berry  <karl@gnu.org>
35456
35457         * gnulib-tool: help message wording/arrangement.
35458
35459 2006-07-14  Simon Josefsson  <jas@extundo.com>
35460
35461         * doc/gnulib.texi (Libtool and Windows): New section.
35462
35463 2006-07-12  Simon Josefsson  <jas@extundo.com>
35464
35465         * modules/gendocs (License): Fix license, approved by Karl.
35466
35467 2006-07-12  Eric Blake  <ebb9@byu.net>
35468
35469         * MODULES.html.sh: Add gendocs.
35470
35471 2006-07-11  Eric Blake  <ebb9@byu.net>
35472
35473         * modules/fdl: New module, to install doc/fdl.texi.
35474         * MODULES.html.sh: Add new section for documentation modules.
35475         * gnulib-tool: Avoid space-tab.
35476         (--doc-base): New option, to manage files from doc.
35477
35478 2006-07-11  Eric Blake  <ebb9@byu.net>
35479
35480         * m4/absolute-header.m4: Fix comments to match recent change.
35481
35482 2006-07-11  Eric Blake  <ebb9@byu.net>
35483
35484         * gnulib-tool: List --doc-base before --tests-base.
35485
35486 2006-07-11  Derek R. Price  <derek@ximbiot.com>
35487
35488         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
35489
35490 2006-07-11  Bruno Haible  <bruno@clisp.org>
35491
35492         * README: Mention where to put documentation.
35493
35494 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35495
35496         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
35497
35498 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
35499
35500         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
35501         to stdint.m4.
35502
35503 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
35504
35505         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
35506         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
35507         "no/such/file/stdint.h" when there is no such file, so that
35508         the resulting C code can be parsed by dodgy compilers.
35509         Problems reported by Bob Proulx.
35510
35511 2006-07-10  Derek R. Price  <derek@ximbiot.com>
35512
35513         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
35514         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
35515         macros into the GNU _D_EXACT_NAMLEN.
35516         * lib/savedir.c:  Likewise.
35517         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
35518
35519 2006-07-10  Derek R. Price  <derek@ximbiot.com>
35520         and Paul Eggert  <eggert@cs.ucla.edu>
35521
35522         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
35523         * m4/savedir.m4:
35524         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
35525         macros into the GNU _D_EXACT_NAMLEN.
35526
35527 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35528
35529         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
35530         around the absolute name, to work around a problem with the HP-UX
35531         11.23 native C compiler, reported by Bob Proulx.
35532
35533 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35534
35535         * doc/maintain.texi, make-stds.texi: Sync from
35536         <http://savannah.gnu.org/projects/gnustandards>.
35537
35538 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35539
35540         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
35541
35542 2006-07-09  Jim Meyering  <jim@meyering.net>
35543
35544         * m4/glob.m4: Remove a doubled word in a comment.
35545
35546 2006-07-09  Jim Meyering  <jim@meyering.net>
35547
35548         * lib/argp-pv.c: Remove a doubled word in a comment.
35549         * lib/check-version.c (check_version): Likewise.
35550         * lib/javacomp.c (compile_java_class): Likewise.
35551
35552 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
35553
35554         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
35555         for the benefit of people using Autoconf 2.60.  If you want to
35556         support older Autoconf versions you can copy m4/onceonly_2_57.m4
35557         (or m4/onceonly.m4, if pre-2.57) manually.
35558
35559 2006-07-08  Jim Meyering  <jim@meyering.net>
35560
35561         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
35562         comment.
35563         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
35564         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
35565         comment.
35566
35567 2006-07-08  Jim Meyering  <jim@meyering.net>
35568
35569         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
35570
35571 2006-07-07  Simon Josefsson  <jas@extundo.com>
35572
35573         * tests/test-crc.c: Change expected crc value, the test vector
35574         were probably computed using the old broken crc.c?
35575
35576 2006-07-06  Simon Josefsson  <jas@extundo.com>
35577
35578         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
35579         now the canonical place for the M4 file).
35580
35581         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
35582         from the sys_socket dependency now.
35583
35584         * modules/inet_pton (Files): Ditto.
35585
35586         * modules/inet_ntop (Files): Ditto.
35587
35588 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
35589
35590         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
35591         not gl_PREREQ_GETUSERSHELL.
35592
35593 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35594
35595         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
35596         with only one argument, for Autoconf 2.60.
35597         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
35598         expand to nothing, so add a shell command to avoid syntax error.
35599         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
35600
35601 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35602
35603         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
35604
35605 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35606
35607         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
35608         no longer needed.  Check for isblank decl.
35609         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
35610         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
35611         of existence.
35612
35613 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35614
35615         * lib/getloadavg.c: Use __VMS, not VMS.
35616         * lib/getopt.c: Likewise.
35617         * lib/getpagesize.h: Likewise.
35618         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
35619         and probably does not work.
35620
35621 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35622
35623         * lib/.cppi-disable: Add wcwidth.
35624         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
35625         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
35626         (ISGRAPH): Remove.  All uses changed to isgraph.
35627         (FOLD) [!defined _LIBC]: Remove special case.
35628         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
35629         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
35630         HAVE_ISBLANK.
35631         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
35632         case.
35633
35634 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
35635
35636         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
35637         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
35638         brackets.  Other minor changes to suppress some compiler
35639         warnings.
35640
35641 2006-07-06  Derek R. Price  <derek@ximbiot.com>
35642         and Paul Eggert  <eggert@cs.ucla.edu>
35643
35644         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
35645         of invoking obsolescent AC_HEADER_DIRENT macro.
35646         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
35647         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
35648         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
35649         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
35650         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
35651         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
35652         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
35653         * m4/readdir.m4: Remove; no longer needed.
35654
35655 2006-07-06  Derek R. Price  <derek@ximbiot.com>
35656         and Paul Eggert  <eggert@cs.ucla.edu>
35657
35658         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
35659         Don't worry about this obsolete case any more.
35660         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
35661         directories.
35662         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
35663         worry about this obsolete case any more.
35664         * lib/fts.c: Likewise.
35665         * lib/getcwd.c: Likewise.
35666         * lib/glob.h: Likewise.
35667         * lib/savedir.c: Likewise.
35668
35669 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
35670
35671         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
35672         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
35673         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
35674         needed.
35675         All uses removed.
35676         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
35677         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
35678         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
35679         needed.
35680         * m4/getdate.m4 (gl_GETDATE): Likewise.
35681         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
35682         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
35683         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
35684         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
35685         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
35686         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
35687         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
35688         needed.
35689
35690 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
35691
35692         * lib/memcasecmp.c: Include <limits.h>.
35693         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
35694         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
35695         Don't assume isdigit succeeds only on '0' through '9'.
35696
35697 2006-07-05  Eric Blake  <ebb9@byu.net>
35698
35699         * modules/getaddrinfo (Depends-on): Add snprintf.
35700
35701 2006-07-05  Eric Blake  <ebb9@byu.net>
35702
35703         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
35704         to avoid 'header present but could not be compiled' on cygwin.
35705
35706 2006-07-05  Eric Blake  <ebb9@byu.net>
35707
35708         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
35709         missing from netdb.h.
35710         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
35711
35712 2006-07-05  Derek R. Price  <derek@ximbiot.com>
35713
35714         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
35715         no longer needed.
35716         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
35717         * m4/getdate.m4 (gl_GETDATE): Likewise.
35718         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
35719         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
35720         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
35721         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
35722         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
35723
35724 2006-07-05  Derek R. Price  <derek@ximbiot.com>
35725
35726         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
35727         All uses of is_space replaced by isspace.
35728         * lib/exit.h: Don't talk about STDC_HEADERS.
35729         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
35730         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
35731         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
35732         replaced by isprint etc.
35733         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
35734         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
35735         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
35736         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
35737         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
35738         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
35739
35740 2006-07-05  Bruno Haible  <bruno@clisp.org>
35741
35742         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
35743         the function exists, before testing against AIX.
35744         Reported by Martin Lambers <marlam@marlam.de>.
35745
35746 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
35747
35748         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
35749         From Mark D. Baushke.
35750
35751 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
35752
35753         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
35754         to the absolute name, not just one, to bypass Sun C 5.8's
35755         "warning: #include of /usr/include/... may be non-portable".
35756
35757 2006-07-04  Eric Blake  <ebb9@byu.net>
35758
35759         * modules/dirname-tests: New test module.
35760         * tests/test-dirname.c: New file, replacing dirname.c
35761         TEST_DIRNAME section that was recently deleted.
35762
35763 2006-07-04  Bruno Haible  <bruno@clisp.org>
35764
35765         Assume ANSI C header files and <ctype.h> functions.
35766         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
35767         (mbsnwidth): Use isprint, iscntrl instead.
35768
35769 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
35770
35771         Merge from coreutils.
35772         * MODULES.html.sh: Add xstrtold.
35773         * modules/xstrtold: New file.
35774         * modules/cycle-check (Files): Add lib/same-inode.h.
35775         * modules/dirname (Files): Add m4/double-slash-root.m4.
35776         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
35777         * modules/mkdir-p (Files): Add lib/same-inode.h.
35778         * modules/same (Files): Add lib/same-inode.h.
35779
35780 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
35781
35782         * m4/absolute-header.m4: Renamed from full-header-path.m4.
35783         This is to keep the terminology clean; POSIX talks about
35784         "absolute pathnames", not "full pathnames", but the GNU
35785         Coding Standards say to use "path" for something else;
35786         so use "absolute" to keep both sides happy.
35787         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
35788         Set gl_absolute_header, not gl_full_header_path.
35789         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
35790         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
35791         All uses changed.
35792
35793         Merge from coreutils.
35794
35795         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
35796
35797         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
35798         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
35799         want to require the building of c-strtod.o.
35800         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
35801         needs -lm directly.
35802         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
35803
35804         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
35805
35806         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
35807         --as-needed option if available.  Problem reported by Albert Chin in
35808         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
35809         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
35810         cc merely issues a bunch of annoying warnings for --as-needed
35811         (this problem was reported by Bob Proulx).  Also, try linking with
35812         -lm to detect a bug in binutils 2.16 (this problem was reported
35813         by Ralf Wildenhues).
35814
35815         2006-06-18  Jim Meyering  <jim@meyering.net>
35816
35817         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
35818         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
35819         macro.
35820         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
35821         also check for glibc-2.4's abort-inducing bug.
35822
35823         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
35824         Low-probability clean-up should be to use rmdir to get rid of
35825         the just-created directory, not unlink.
35826
35827         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
35828         configure fail, and request a bug report to inform us about it.
35829         Add a comment that, barring reports to the contrary, in 2007 we'll
35830         assume ftruncate is universally available.
35831
35832         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
35833
35834         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
35835
35836         2006-03-12  Jim Meyering  <jim@meyering.net>
35837
35838         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
35839         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
35840         * m4/same.m4 (gl_SAME): Likewise.
35841         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
35842
35843         2006-03-11  Eric Blake  <ebb9@byu.net>
35844
35845         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
35846         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
35847         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
35848         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
35849
35850 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
35851
35852         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
35853         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
35854         reported by Mark D. Baushke, one in
35855         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
35856
35857         Merge from coreutils.
35858
35859         * lib/.cppi-disable: Add stdint_.h.
35860         * lib/.cvsignore: Add stdint.h.
35861
35862         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
35863
35864         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
35865         both double and long double versions.
35866         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
35867         * lib/xstrtold.c: New file.
35868         * lib/xstrtod.h (xstrtold): New decl.
35869
35870         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
35871
35872         * lib/filemode.c (setst): Remove.
35873         (strmode): Rewrite to avoid setst.  This makes the code shorter,
35874         (arguably) clearer, and the generated code is a bit smaller on my
35875         Debian GNU/Linux stable x86 host.
35876
35877         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
35878
35879         * lib/filemode.c: Include "filemode.h" first, to test the interface.
35880         Assume that filemode.h includes sys/types.h and sys/stat.h.
35881         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
35882         (ftypelet): Reorder to put common cases first, for efficiency.
35883         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
35884         to do 'M'.
35885         (strmode): Renamed from mode_string, and now stores 12 bytes instead
35886         of 10, for compatibility with FreeBSD.  All callers changed.
35887         (filemodestring): Now stores 12 bytes instead of 10, and sets file
35888         types that can't be deduced solely from st_mode.  First arg is now a
35889         const pointer.
35890         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
35891         (strmode): Renamed from mode_string.
35892         (filemodestring): New decl.
35893         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
35894         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
35895         needed.
35896         (S_ISPORT, S_ISWHT): New macros, if not already defined.
35897
35898         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
35899
35900         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
35901         fsusage.h now does that.  Include fsusage.h first, to test interface.
35902         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
35903         at most one method (the old code could have generated decls that
35904         didn't conform to C89, not that this was ever exercised).
35905         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
35906
35907         2006-03-19  Jim Meyering  <jim@meyering.net>
35908
35909         Work even in a chroot where d_ino values for entries in "/"
35910         don't match the stat.st_ino values for the same names.
35911         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
35912         number, iterate through all entries again, using lstat instead.
35913         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
35914         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
35915
35916         * lib/getcwd.c (__getcwd): Clarify a comment.
35917         Use memcpy in place of a call to strcpy.
35918
35919         2006-03-12  Jim Meyering  <jim@meyering.net>
35920
35921         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
35922         matches that of the current directory (which we're about to chdir ".."
35923         out of), then save the dev-ino of the parent, instead.
35924
35925         * lib/same-inode.h (SAME_INODE): New file/macro.
35926         * lib/chdir-safer.c (SAME_INODE): Remove definition.
35927         Include "same-inode.h", instead.
35928         * lib/same.c: Likewise.
35929         * lib/cycle-check.h: Include "same-inode.h".
35930         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
35931         * lib/cycle-check.c (SAME_INODE): Remove definition.
35932         * lib/root-dev-ino.h: Include "same-inode.h".
35933
35934         2006-03-11  Eric Blake  <ebb9@byu.net>
35935
35936         * lib/same.c (same_name): s/base_name/last_component/
35937         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
35938         * lib/filenamecat.c (file_name_concat): Likewise.
35939
35940         2006-03-11  Eric Blake  <ebb9@byu.net>,
35941                     Paul Eggert  <eggert@cs.ucla.edu>
35942
35943         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
35944         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
35945         drive prefix.
35946         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
35947         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
35948         (last_component): New method.
35949         * lib/dirname.c (dir_len): Determine when drive letters need a
35950         subsequent slash.  Preserve // when it is special.
35951         (dir_name): Don't append dot when drive letter is absolute.
35952         [TEST_DIRNAME]: Move into a full-blown gnulib test.
35953         * lib/basename.c (base_name): New semantics - malloc the result.
35954         Preserve // when it is special.  Preserve relative files that look
35955         like drive letters.
35956         (base_len): Preserve // when it is special.
35957         (last_component): New method, similar to old base_name semantics.
35958         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
35959         base_name.  Strip redundant slashes from ///.
35960
35961 2006-07-03  Jim Meyering  <jim@meyering.net>
35962
35963         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
35964         macro is used before the first cycle_check call.
35965
35966 2006-07-03  Eric Blake  <ebb9@byu.net>
35967
35968         * modules/dirname (Depends-on): Add xstrndup.
35969
35970 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
35971
35972         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
35973         test cases, so that config.log is a bit easier to follow.
35974
35975 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
35976
35977         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
35978         both are 64 bits, since this seems to be the tradition, and this
35979         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
35980         we ever run into a host that prefers long long to long in this
35981         case, we'll need another configure-time test.  Problem reported by
35982         Jim Meyering.
35983
35984 2006-07-02  Eric Blake  <ebb9@byu.net>
35985
35986         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
35987
35988 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
35989
35990         * modules/inttypes (Depends-on): No longer depends on stdint.
35991         * modules/stdint (Description): Say more about assumptions.
35992         Say that the fast types might differ.  Say macros are used.
35993         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
35994         (Makefile.am): Revise list of substituted symbols to match
35995         new stdint.m4.
35996         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
35997         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
35998         * tests/test-stdint.c (verify_same_types)
35999         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
36000         the code conforms to C99/C89.
36001         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
36002         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
36003
36004 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
36005
36006         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
36007         but fix a bug, by requiring at least 64 bits.
36008         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
36009         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
36010         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
36011         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
36012
36013         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
36014         changes.  Make 2.59 a prerequisite.  Check and substitute for
36015         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
36016         inttypes.h.  Do not use special include files; just use the
36017         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
36018         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
36019         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
36020         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
36021         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
36022         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
36023         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
36024         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
36025         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
36026         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
36027         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
36028         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
36029         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
36030         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
36031         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
36032         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
36033         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
36034         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
36035         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
36036         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
36037         WINT_MAX.  Check for C99 conformance more strictly, by detecting
36038         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
36039         not check for things that C99 does not require, e.g., int8_t.  If
36040         a test isn't needed unless <stdint.h> isn't working, and is
36041         unlikely to be needed for any other reason, then don't do it
36042         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
36043         size_t, since we assume C89 freestanding at least.  Do not check
36044         for sig_atomic_t, wchar_t, or wint_t, since the code now does
36045         the right thing even if the types are not defined.  Instead use:
36046         (gl_STDINT_TYPE_PROPERTIES): New macro.
36047         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
36048         testing whether <sys/types.h> clashes, as Autoconf does this for
36049         us now.  All uses removed.
36050         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
36051         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
36052         (gl_CHECK_TYPE_SAME):
36053         Remove; no longer needed.
36054         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
36055         exists, since we'll return 0 anyway in that case.
36056         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
36057
36058 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
36059
36060         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
36061         possible collision with system files.
36062         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
36063         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
36064         WCHAR_MIN and WCHAR_MAX in this case.
36065         (<stddef.h>): Do not include; no longer needed.
36066         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
36067         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
36068         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
36069         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
36070         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
36071         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
36072         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
36073         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
36074         !defined(__c99))]: Include in this case too, since it's harmless
36075         now.
36076         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
36077         dangerous to do so.
36078         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
36079         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
36080         (_STDINT_MIN, _STDINT_MAX): New macros.
36081         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
36082         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
36083         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
36084         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
36085         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
36086         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
36087         macros, not typedefs; this simplifies things quite a bit.
36088         Use long int for all types narrower than int64_t.
36089         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
36090         Define in terms of long long int or int64_t or long int,
36091         not int64_t or int32_t.  This saves some compile-time testing.
36092         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
36093         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
36094         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
36095         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
36096         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
36097         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
36098         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
36099         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
36100         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
36101         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
36102         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
36103         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
36104         undef any previous version and define our own version, for
36105         simplicity and consistency with the new macros for types.
36106         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
36107         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
36108         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
36109         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
36110         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
36111         @WINT_T_SUFFIX@ to keep things simple here.
36112         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
36113         Simplify by assuming typical 8/16/32/64 host, since we're
36114         already doing that elsewhere anyway.
36115         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
36116         and assume long long int is 64 bits if available.  This
36117         speeds up 'configure'.
36118
36119 2006-07-01  Eric Blake  <ebb9@byu.net>
36120
36121         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
36122         Reported by Andreas Buening.
36123
36124 2006-07-01  Eric Blake  <ebb9@byu.net>
36125
36126         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
36127
36128 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
36129
36130         * lib/getaddrinfo.c: fixed typo
36131
36132 2006-06-29  Jim Meyering  <jim@meyering.net>
36133
36134         * modules/strftime (Maintainer): Add my name, since with the
36135         FPRINTFTIME changes strftime.c has forked from glibc.
36136
36137 2006-06-29  Eric Blake  <ebb9@byu.net>
36138
36139         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
36140
36141 2006-06-29  Eric Blake  <ebb9@byu.net>
36142
36143         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
36144
36145 2006-06-29  Eric Blake  <ebb9@byu.net>
36146
36147         * lib/stat_.h: New file.
36148
36149 2006-06-29  Eric Blake  <ebb9@byu.net>
36150
36151         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
36152         unused static function.
36153
36154 2006-06-29  Eric Blake  <ebb9@byu.net>
36155
36156         * doc/functions.texi (Function Portability): Document missing lstat
36157         on mingw.
36158
36159 2006-06-29  Eric Blake  <ebb9@byu.net>
36160
36161         * MODULES.html.sh: Add sys_stat.
36162         * modules/sys_stat: New module.
36163         * modules/mkstemp (Depends-on): Add sys_stat.
36164
36165 2006-06-29  Derek R. Price  <derek@ximbiot.com>
36166
36167         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
36168
36169 2006-06-29  Derek R. Price  <derek@ximbiot.com>
36170
36171         * m4/c-bs-a.m4: Removed.
36172
36173 2006-06-29  Derek R. Price  <derek@ximbiot.com>
36174
36175         * lib/strftime.c: Assume strftime() exists.
36176
36177 2006-06-29  Derek Price  <derek@ximbiot.com>
36178
36179         * modules/c-bs-a: Removed - \a is C89.
36180         * MODULES.html.sh: Remove c-bs-a.
36181
36182 2006-06-29  Bruno Haible  <bruno@clisp.org>
36183
36184         * modules/wcwidth (License): Change to LGPL.
36185
36186 2006-06-28  Simon Josefsson  <jas@extundo.com>
36187
36188         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
36189         on _WIN32.
36190
36191         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
36192         getnameinfo.
36193
36194 2006-06-28  Simon Josefsson  <jas@extundo.com>
36195
36196         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
36197
36198 2006-06-28  Simon Josefsson  <jas@extundo.com>
36199
36200         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
36201         functions there.  It will succeed on Windows XP, but on Windows
36202         2000 and (presumably) earlier, it will fail, and use the internal
36203         re-implementation.
36204         (use_win32_p): New function.
36205         (getaddrinfo): Use strtoul on servname, to support numeric ports.
36206         Support AI_NUMERICSERV to disable getservbyname.
36207         (getnameinfo): New function, only supports
36208         NI_NUMERICHOST|NI_NUMERICSERV for now.
36209
36210         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
36211         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
36212         getnameinfo.
36213
36214 2006-06-28  Eric Blake  <ebb9@byu.net>
36215
36216         * modules/wcwidth: New file.
36217         * modules/mbchar (Depends-on): Add wcwidth.
36218         * modules/mbswidth (Depends-on): Add wcwidth.
36219         * MODULES.html.sh: Add wcwidth.
36220
36221 2006-06-28  Eric Blake  <ebb9@byu.net>
36222
36223         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
36224         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
36225
36226 2006-06-28  Eric Blake  <ebb9@byu.net>
36227
36228         * lib/xvasprintf.h: Fix comments.
36229
36230 2006-06-28  Eric Blake  <ebb9@byu.net>
36231
36232         * lib/mbchar.h (wcwidth): Include wcwidth.h.
36233         * lib/mbswidth.c (wcwidth): Move from here...
36234         * lib/wcwidth.h: ...to this new file.
36235
36236 2006-06-28  Derek R. Price  <derek@ximbiot.com>
36237
36238         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
36239
36240         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
36241         it's obsolete.
36242         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
36243
36244 2006-06-28  Derek R. Price  <derek@ximbiot.com>
36245
36246         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
36247         Autoconf 2.60 says this stuff was obsolete.
36248
36249 2006-06-28  Bruno Haible  <bruno@clisp.org>
36250
36251         * modules/wcwidth (Files): Add m4/wchar_t.m4.
36252
36253 2006-06-28  Bruno Haible  <bruno@clisp.org>
36254
36255         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
36256         gt_TYPE_WCHAR_T.
36257
36258 2006-06-28  Bruno Haible  <bruno@clisp.org>
36259
36260         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
36261         declaration for wcwidth.
36262         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
36263
36264 2006-06-28  Bruno Haible  <bruno@clisp.org>
36265
36266         * lib/mkdtemp.c [MINGW]: Include <io.h>.
36267         (mkdir): Define using _mkdir.
36268
36269 2006-06-28  Bruno Haible  <bruno@clisp.org>
36270
36271         * lib/getaddrinfo.h: Fix POSIX URL.
36272         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
36273         _WIN32.
36274         (use_win32_p): Make static.
36275         (getaddrinfo): Reject service name if it is empty or does not consist
36276         solely of decimal digits, or if its value is > 65535.
36277         (getnameinfo): Remove useless casts.
36278
36279 2006-06-27  Simon Josefsson  <jas@extundo.com>
36280
36281         * modules/sys_select: New file, suggested by Bruno Haible, Paul
36282         Eggert and Martin Lambers.
36283
36284 2006-06-27  Simon Josefsson  <jas@extundo.com>
36285
36286         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
36287         Eggert and Martin Lambers.
36288
36289 2006-06-27  Bruno Haible  <bruno@clisp.org>
36290
36291         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
36292         result to 0, not to empty.
36293         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
36294
36295 2006-06-27  Bruno Haible  <bruno@clisp.org>
36296
36297         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
36298
36299 2006-06-26  Simon Josefsson  <jas@extundo.com>
36300
36301         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
36302         present.
36303
36304 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
36305
36306         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
36307         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
36308         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
36309
36310 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
36311
36312         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
36313
36314 2006-06-26  Bruno Haible  <bruno@clisp.org>
36315
36316         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
36317
36318 2006-06-26  Bruno Haible  <bruno@clisp.org>
36319
36320         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
36321
36322 2006-06-26  Bruno Haible  <bruno@clisp.org>
36323
36324         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
36325         SGI C compiler in pre-C99 mode.
36326         Suggested by Mark D. Baushke and Larry Jones.
36327
36328 2006-06-26  Bruno Haible  <bruno@clisp.org>
36329
36330         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
36331         WCHAR_MAX.
36332         Reported by Mark D. Baushke and Larry Jones.
36333
36334 2006-06-26  Bruno Haible  <bruno@clisp.org>
36335
36336         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
36337         in pre-C99 mode.
36338         Suggested by Mark D. Baushke and Larry Jones.
36339
36340 2006-06-23  Simon Josefsson  <jas@extundo.com>
36341             Bruno Haible  <bruno@clisp.org>
36342
36343         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
36344         Emit mostlyclean-local rule.
36345         (func_emit_tests_Makefile_am): Likewise.
36346         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
36347
36348 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
36349
36350         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
36351
36352 2006-06-23  Bruno Haible  <bruno@clisp.org>
36353
36354         * tests/test-stdint.c: Update to match ISO C 99 Technical
36355         Corrigendum 1.
36356
36357 2006-06-23  Bruno Haible  <bruno@clisp.org>
36358
36359         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
36360
36361 2006-06-23  Bruno Haible  <bruno@clisp.org>
36362
36363         * lib/stdint_.h: Treat IRIX like OpenBSD.
36364
36365 2006-06-23  Bruno Haible  <bruno@clisp.org>
36366
36367         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
36368         ISO C 99 Technical Corrigendum 1.
36369
36370 2006-06-22  Simon Josefsson  <jas@extundo.com>
36371
36372         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
36373         MinGW.
36374
36375 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
36376
36377         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
36378         needed.  Some compiler complained about some of them.  Problem reported
36379         by Larry Jones in
36380         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
36381
36382 2006-06-21  Simon Josefsson  <jas@extundo.com>
36383
36384         * tests/test-getaddrinfo.c: New file.
36385
36386         * modules/getaddrinfo-tests: New file.
36387
36388         * MODULES.html.sh: Add inet_pton.
36389
36390         * modules/inet_pton: New file.
36391
36392 2006-06-21  Simon Josefsson  <jas@extundo.com>
36393
36394         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
36395         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
36396         of using the (limited) gnulib implementation on Windows XP.
36397
36398         * m4/inet_pton.m4: New file.
36399
36400 2006-06-21  Simon Josefsson  <jas@extundo.com>
36401
36402         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
36403         variable.
36404
36405         * lib/socket_.h: Don't define WINVER.
36406
36407         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
36408         slightly modified to work in gnulib.
36409
36410 2006-06-21  Simon Josefsson  <jas@extundo.com>
36411
36412         * doc/gnulib.texi (Windows sockets): Add.
36413
36414 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
36415
36416         * lib/read-file.c (fread_file): Start with buffer allocation of
36417         0 bytes rather than 1 byte; this simplifies the code.
36418         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
36419         code to free buffer and save/restore errno.
36420         (internal_read_file): Remove unused local.
36421
36422 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
36423
36424         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
36425         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
36426         Problem reported by Denis Excoffier in
36427         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
36428
36429 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36430
36431         * modules/sys_socket, modules/socklen: Include sys/types since
36432         FreeBSD 4.x's sys/socket.h needs it.
36433
36434 2006-06-19  Simon Josefsson  <jas@extundo.com>
36435
36436         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
36437
36438 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
36439
36440         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
36441
36442 2006-06-19  Bruno Haible  <bruno@clisp.org>
36443
36444         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
36445         and FULL_PATH_INTTYPES_H in angle brackets.
36446         Reported by Mark D. Baushke <mdb@gnu.org>.
36447
36448 2006-06-17  Eric Blake  <ebb9@byu.net>
36449
36450         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
36451         errno.
36452
36453 2006-06-17  Bruno Haible  <bruno@clisp.org>
36454
36455         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
36456         <sys/inttypes.h>.
36457
36458 2006-06-17  Bruno Haible  <bruno@clisp.org>
36459
36460         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
36461         whether errno is declared. Assume <errno.h> declares errno.
36462
36463 2006-06-17  Bruno Haible  <bruno@clisp.org>
36464
36465         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
36466
36467 2006-06-17  Bruno Haible  <bruno@clisp.org>
36468
36469         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
36470         problem on Solaris 2.5.1.
36471
36472 2006-06-16  Eric Blake  <ebb9@byu.net>
36473
36474         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
36475         * lib/unicodeio.c [!defined errno]: Likewise.
36476         * lib/strtol.c [!defined errno]: Likewise.
36477         * lib/strtod.c [!defined errno]: Likewise.
36478
36479 2006-06-15  Eric Blake  <ebb9@byu.net>
36480
36481         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
36482
36483 2006-06-15  Eric Blake  <ebb9@byu.net>
36484
36485         * config/srclist.txt (ssize_t.m4): Lose sync.
36486
36487 2006-06-15  Bruno Haible  <bruno@clisp.org>
36488
36489         * modules/stdint (Files): Include m4/full-header-path.m4,
36490         m4/size_max.m4, m4/wchar_t.m4.
36491         (Makefile.am): Many more substitutions.
36492         * modules/stdint-tests: New file.
36493         * tests/test-stdint.c: New file.
36494
36495 2006-06-15  Bruno Haible  <bruno@clisp.org>
36496
36497         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
36498         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
36499         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
36500         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
36501         gl_CHECK_TYPE_SAME): New macros.
36502
36503 2006-06-15  Bruno Haible  <bruno@clisp.org>
36504
36505         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
36506
36507 2006-06-15  Bruno Haible  <bruno@clisp.org>
36508
36509         * lib/stdint_.h: Rewritten to be fully auto-configured.
36510         Fixes bug on HP-UX/IA64.
36511
36512 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
36513
36514         * lib/getdate.y (__attribute__): Don't define if already defined.
36515         Problem reported by Larry Jones.
36516         * lib/utimens.c (__attribute__): Likewise.
36517
36518 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
36519
36520         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
36521         reported by Andreas Schwab.
36522
36523 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36524             Bruno Haible  <bruno@clisp.org>
36525
36526         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
36527         check for the declaration of strnlen and a run test that exposes the
36528         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
36529         rpl_strndup.
36530
36531 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36532             Bruno Haible  <bruno@clisp.org>
36533
36534         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
36535
36536 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36537
36538         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
36539         compile test, for Tru64 4.0D.
36540
36541 2006-05-28  Karl Berry  <karl@gnu.org>
36542
36543         * config/srclist.txt (printf-args.c): lose sync.
36544
36545 2006-05-26  Martin Lambers  <marlam@marlam.de>
36546
36547         * lib/getpass.c: Updates the test for the native W32 API, and adds
36548         missing includes, thus fixing compilation warnings.
36549
36550 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36551
36552         * lib/exclude.c (exclude_fnmatch): New function.
36553         (excluded_file_name): Call exclude_fnmatch.
36554         * lib/exclude.h (excluded_file_name): New prototype
36555
36556 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
36557
36558         * lib/tempname.c (small_open, large_open): New macros.
36559         (__open, __open64) [!_LIBC]: Remove.
36560         (__gen_tempname): Use small_open and large_open instead of __open
36561         and __open64.  This fixes a portability bug on HP-UX 11.11i
36562         reported by Simon Wing-Tang in
36563         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
36564
36565 2006-05-24  Bruno Haible  <bruno@clisp.org>
36566
36567         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
36568         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
36569         Reported by Thorsten Maerz <torte@netztorte.de> via
36570         Aaron Stone <aaron@serendipity.cx>.
36571
36572 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
36573
36574         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
36575         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
36576         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
36577         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
36578         not really conditional on the cache.
36579         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
36580
36581 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
36582
36583         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
36584         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
36585         (my_usleep): Don't mishandle maximum value.
36586
36587 2006-05-19  Jim Meyering  <jim@meyering.net>
36588
36589         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
36590
36591 2006-05-17  Bruno Haible  <bruno@clisp.org>
36592
36593         Cygwin portability.
36594         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
36595
36596 2006-05-17  Bruno Haible  <bruno@clisp.org>
36597
36598         * lib/stdint_.h: Fix recognition of Cygwin.
36599
36600 2006-05-15  Bruno Haible  <bruno@clisp.org>
36601
36602         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
36603         on libtool patch by Ralf Wildenhues.
36604
36605 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
36606
36607         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
36608         test for C99 conformance; (bool) 0.5 is an integer constant
36609         expression, but (bool) -0.5 is not.  Problem reported by Fedor
36610         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
36611
36612 2006-05-11  Simon Josefsson  <jas@extundo.com>
36613
36614         * m4/xvasprintf.m4: Fix obvious typo.
36615
36616 2006-05-11  Jim Meyering  <jim@meyering.net>
36617
36618         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
36619         James Lemley.
36620
36621 2006-05-10  Simon Josefsson  <jas@extundo.com>
36622
36623         * lib/md4.c: Typo fix, update copyright years.
36624         (K1, K2): Don't use L because it turn computations into 64-bit on
36625         64-bit platforms.
36626
36627 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
36628
36629         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
36630         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
36631         unwanted sign propagation, e.g., on hosts with 64-bit int.
36632         There still are some problems with reeelly weird theoretical hosts
36633         (e.g., 33-bit int) but it's not worth worrying about now.
36634         * lib/sha1.c (rol): Likewise.
36635         (K1, K2, K3, K4): Remove unnecessary L suffix.
36636
36637 2006-05-10  Bruno Haible  <bruno@clisp.org>
36638
36639         * lib/des.c: Cast to avoid warnings.
36640
36641 2006-05-09  Bruno Haible  <bruno@clisp.org>
36642
36643         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
36644         (Depends-on): Depend also on xsize, stdarg.
36645         (configure.ac): Add gl_XVASPRINTF.
36646
36647 2006-05-09  Bruno Haible  <bruno@clisp.org>
36648
36649         * m4/xvasprintf.m4: New file.
36650
36651 2006-05-09  Bruno Haible  <bruno@clisp.org>
36652
36653         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
36654         (EOVERFLOW): Define fallback value.
36655         (xstrcat): New function.
36656         (xvasprintf): Recognize the special case of a string concatenation.
36657
36658 2006-05-08  Eric Blake  <ebb9@byu.net>
36659
36660         * gnulib-tool (func_version): Base copyright year on CVS date.
36661         (func_emit_copyright_notice): New function.
36662         (func_emit_lib_Makefile_am): Use it.
36663         (func_emit_tests_Makefile_am): Likewise.
36664         (func_import): Likewise.
36665
36666 2006-05-08  Bruno Haible  <bruno@clisp.org>
36667
36668         * modules/stdarg: New file.
36669         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
36670
36671 2006-05-08  Bruno Haible  <bruno@clisp.org>
36672
36673         * m4/stdarg.m4: New file, from GNU gettext.
36674
36675 2006-05-08  Bruno Haible  <bruno@clisp.org>
36676
36677         * config/srclist.txt (build-aux/config.rpath): different from latest
36678         release.
36679
36680 2006-05-08  Bruno Haible  <bruno@clisp.org>
36681
36682         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
36683
36684 2006-05-05  Jim Meyering  <jim@meyering.net>
36685
36686         * m4/warning.m4: New file, derived from bison's file by the same name.
36687
36688 2006-05-03  Bruno Haible  <bruno@clisp.org>
36689
36690         * lib/stdint_.h: Shorter URL.
36691         * lib/inttypes.h: Likewise.
36692
36693 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
36694
36695         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
36696
36697 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
36698
36699         * lib/verify.h: Document the internals better.  Most of this change
36700         was written by Bruno Haible.
36701
36702 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
36703
36704         * doc/verify.texi: New file, partly based on a proposal by
36705         Bruno Haible.
36706
36707 2006-05-02  Bruno Haible  <bruno@clisp.org>
36708
36709         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
36710         test from here...
36711         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
36712
36713 2006-04-29  Bruno Haible  <bruno@clisp.org>
36714
36715         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
36716         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
36717
36718 2006-04-29  Bruno Haible  <bruno@clisp.org>
36719
36720         * gnulib-tool: Make --update option actually work.
36721
36722 2006-04-29  Bruno Haible  <bruno@clisp.org>
36723
36724         * doc/gcd.texi: New file.
36725         * doc/gnulib.texi: Include it.
36726
36727 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
36728
36729         * lib/getdate.y (get_date): When adding relative date, start with the
36730         initial time, not with the result of the first mktime call.
36731
36732 2006-04-25  Bruno Haible  <bruno@clisp.org>
36733
36734         * gnulib-tool (func_import): Output the include directives in three
36735         blocks, sorted separately.
36736         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36737
36738 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
36739
36740         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
36741         to define main with arguments, for C++.  Reported by Eric Blake.
36742         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
36743         Prefer 'int main ()' to 'int main (void)', for C++.
36744         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
36745         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
36746         for 'main', for C99 and C++.
36747
36748 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
36749
36750         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
36751         Don't assume that exit status -1 is valid.
36752         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36753         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
36754         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
36755         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
36756         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
36757         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
36758         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
36759         functions can be used without declaring them, or that you can
36760         exit with status -1.
36761         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
36762
36763 2006-04-24  Karl Berry  <karl@gnu.org>
36764
36765         * config/srclist.txt (longdouble.m4): sync lost.
36766
36767 2006-04-24  Eric Blake  <ebb9@byu.net>
36768
36769         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
36770
36771 2006-04-24  Bruno Haible  <bruno@clisp.org>
36772
36773         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
36774         poll() implementation in AIX.
36775         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36776
36777 2006-04-24  Bruno Haible  <bruno@clisp.org>
36778
36779         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
36780         assigned exactly once.
36781
36782 2006-04-23  Claudio Fontana  <claudio@gnu.org>
36783             Bruno Haible  <bruno@clisp.org>
36784
36785         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
36786         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
36787         for AM_CPPFLAGS.
36788
36789 2006-04-23  Bruno Haible  <bruno@clisp.org>
36790
36791         * modules/copy-file: Depend on unistd.
36792         * modules/execute: Likewise.
36793         * modules/fatal-signal: Likewise.
36794         * modules/findprog: Likewise.
36795         * modules/mkdtemp : Likewise.
36796         * modules/pipe: Likewise.
36797         * modules/wait-process: Likewise.
36798
36799 2006-04-23  Bruno Haible  <bruno@clisp.org>
36800
36801         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
36802         condition was already detected.
36803         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36804
36805 2006-04-23  Bruno Haible  <bruno@clisp.org>
36806
36807         * lib/copy-file.c: Include <unistd.h> unconditionally.
36808         * lib/execute.c: Likewise.
36809         * lib/fatal-signal.c: Likewise.
36810         * lib/findprog.c: Likewise.
36811         * lib/mkdtemp.c: Likewise.
36812         * lib/pipe.h: Likewise.
36813         * lib/pipe.c: Likewise.
36814         * lib/wait-process.h: Likewise.
36815
36816 2006-04-23  Bruno Haible  <bruno@clisp.org>
36817
36818         * gnulib-tool (func_usage): Fix --import description. Document
36819         --update.
36820         (func_import): Create temporary file in a temporary directory, if
36821         --dry-run is specified. Silence errors from 'grep' when there are no
36822         m4 files in $m4dir.
36823         (func_create_testdir): Silence errors from 'grep' when there are no
36824         m4 files in $m4dir.
36825         Reported by Karl Berry <karl@freefriends.org>.
36826
36827 2006-04-20  Bruno Haible  <bruno@clisp.org>
36828
36829         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
36830         one argument, so that the code will be portable to Autoconf 2.60.
36831         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
36832         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
36833         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
36834
36835 2006-04-19  Derek Price  <derek@ximbiot.com>
36836             Eric Blake  <ebb9@byu.net>
36837
36838         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
36839         rather than "/full/path.h".  Update comment to match.  Shorten &
36840         generalize m4_translit call via AS_TR_CPP.
36841
36842 2006-04-19  Derek Price  <derek@ximbiot.com>
36843             Eric Blake  <ebb9@byu.net>
36844
36845         * lib/inttypes.h: Correct grammar in comment.
36846
36847 2006-04-18  Derek Price  <derek@ximbiot.com>
36848             Paul Eggert  <eggert@cs.ucla.edu>
36849
36850         * modules/inttypes: New file.
36851         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
36852
36853 2006-04-18  Derek Price  <derek@ximbiot.com>
36854             Paul Eggert  <eggert@cs.ucla.edu>
36855
36856         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
36857         New files.
36858
36859 2006-04-18  Derek Price  <derek@ximbiot.com>
36860             Paul Eggert  <eggert@cs.ucla.edu>
36861
36862         * lib/inttypes.h: New file.
36863         * lib/strtoimax.c: Assume <inttypes.h>.
36864
36865 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
36866
36867         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
36868         isn't mounted.  Problem reported by Kir Kolyshkin.
36869
36870 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
36871
36872         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
36873         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
36874         Derek R. Price.
36875         * lib/regex.h (RE_DUP_MAX): Update comment to match current
36876         implementation.
36877
36878 2006-04-12  Eric Blake  <ebb9@byu.net>
36879
36880         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
36881         is now done automatically by the corresponding Autoconf macro.
36882
36883 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
36884
36885         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
36886         time_r.h.
36887
36888 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
36889
36890         Merge regex changes from libc, removing some of our
36891         POSIX-conformance changes that were rejected and redoing them in a
36892         less-intrusive way.
36893
36894         * lib/regcomp.c (re_compile_internal, init_dfa):
36895         Length arg is now size_t, not Idx.  All uses changed.
36896         (peek_token): Forward decl now says internal_function.
36897         (__re_error_msgid, __re_error_msgid_idx):
36898         Now static rather than extern with attribute_hidden.
36899         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
36900         For some reason libc prefers K&R style defns for external functions.
36901         (regerror) [!defined _LIBC]: Likewise.
36902         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
36903         (seek_collating_symbol_entry, lookup_collation_sequence_value):
36904         (build_range_exp, build_collating_symbol):
36905         Use K&R-style defn.
36906         (re_compile_fastmap): Use '\0' to memset, not 0.
36907         (utf8_sb_map): Make the calculations more obvious.
36908         (init_dfa, parse_bracket_exp, build_charclass_op):
36909         Call calloc and cast result, as glibc does.
36910         (init_word_char, fetch_token, peek_token, peek_token_bracket):
36911         (build_range_exp, build_collating_symbol):
36912         Now internal functions.
36913
36914         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
36915
36916         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
36917         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
36918         Don't depend on VMS; depend on __VMS instead, for POSIX
36919         namespace cleanness.
36920         (regoff_t): Define to ssize_t, not long int.
36921
36922         Remove the REG_ macros named below.  Instead, make the old names
36923         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
36924         __USE_GNU_REGEX.
36925         (REG_BACKSLASH_ESCAPE_IN_LISTS):
36926         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
36927         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
36928         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
36929         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
36930         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
36931         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
36932         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
36933         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
36934         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
36935         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
36936         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
36937         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
36938         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
36939         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
36940         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
36941         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
36942         (REG_NREGS):
36943         Remove.  All uses replaced by the old RE_* names.
36944         (RE_BACKSLASH_ESCAPE_IN_LISTS):
36945         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
36946         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
36947         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
36948         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
36949         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
36950         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
36951         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
36952         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
36953         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
36954         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
36955         Don't bother having these macros be independent of each others'
36956         values, since they no longer exist in the POSIX name space.
36957
36958         Rename the following member names back to their old names,
36959         unless !__USE_GNU_REGEX.  All uses changed back.
36960         (buffer): Renamed from re_buffer.
36961         (allocated): Renamed from re_allocated.
36962         (used): Renamed from re_used.
36963         (syntax): Renamed from re_syntax.
36964         (fastmap): Renamed from re_fastmap.
36965         (translate): Renamed from re_translate.
36966         (can_be_null): Renamed from re_can_be_null.
36967         (regs_allocated): Renamed from re_regs_allocated.
36968         (fastmap_accurate): Renamed from re_fastmap_accurate.
36969         (no_sub): Renamed from re_no_sub.
36970         (not_bol): Renamed from re_not_bol.
36971         (not_eol): Renamed from re_not_eol.
36972         (newline_anchor): Renamed from re_newline_anchor.
36973         (num_regs): Renamed from rm_num_regs.
36974         (start): Renamed from rm_start.
36975         (end): Renamed from rm_end.
36976
36977         (free_state): Move up a bit.
36978
36979         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
36980         #define to be empty.
36981         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
36982         when that is what is intended.
36983         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
36984         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
36985         (MAX): New macro.
36986         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
36987         All uses changed back to re_malloc, etc.  It's now the caller's
36988         responsibility to check for overflow; all callers changed.
36989         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
36990         (re_x2nrealloc): Remove.
36991         (free_state): Remove decl.
36992
36993         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
36994         (re_set_registers, re_exec):
36995         Use K&R-style defn.
36996
36997         2006-01-31  Roland McGrath  <roland@redhat.com>
36998
36999         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
37000         Reported by Mike Frysinger <vapier@gentoo.org>.
37001
37002         2006-01-15  Andreas Jaeger  <aj@suse.de>
37003
37004         [BZ #1950]
37005         * lib/regex_internal.c (re_string_reconstruct): Adjust for
37006         build_wcs_upper_buffer change.
37007         (build_wcs_upper_buffer): Change return type.
37008
37009         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
37010
37011         * lib/regex_internal.h: Include <stdint.h> if available.
37012
37013         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
37014
37015         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
37016
37017         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
37018
37019         * lib/regcomp.c: Adjust for changed secondary hash function.
37020
37021         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
37022
37023         * lib/regex.h: Pretty printing.
37024         Clean up namespace a bit.
37025
37026         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
37027
37028         * lib/regexec.c (update_cur_sifted_state, check_arrival,
37029         check_arrival_add_next_nodes): Avoid using uninitialized variable.
37030
37031         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
37032                     Ulrich Drepper  <drepper@redhat.com>
37033
37034         [BZ #1302]
37035         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
37036         changed.
37037         (bitset_word_t): Renamed from bitset_word.  All uses changed.
37038
37039         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
37040
37041         [BZ #281]
37042         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
37043         * lib/regcomp.c: Remove unnecessary uses of
37044         unsigned RE_TRANSLATE_TYPE.
37045         * lib/regex_internal.h: Likewise.
37046         * lib/regex_internal.c: Likewise.
37047         * lib/regexec.c: Likewise.
37048         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
37049
37050         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
37051
37052         * lib/regexec.c (find_recover_state): Remove unnecessary
37053         initialization.
37054         (transit_state_bkref): Make DFA a const pointer.
37055         (get_subexp): Likewise.
37056         (check_arrival): Likewise.
37057         (update_cur_sifted_state): Likewise.
37058         (re_search_internal): Likewise.
37059         (prune_impossible_nodes): Likewise.
37060         (acquire_init_state_context): Likewise.
37061         (proceed_next_node): Likewise.
37062         (set_regs): Likewise.
37063         (free_fail_stack_return): Likewise.
37064         (check_arrival_expand_ecl): Mark DFA parameter as const.
37065         (check_arrival_expand_ecl_sub): Likewise.
37066         (check_subexp_limits): Likewise.
37067         (sub_epsilon_src_nodes):  Likewise.
37068         (add_epsilon_src_nodes):  Likewise.
37069         (merge_state_array): Likewise.
37070         (update_regs): Likewise.
37071         (build_trtable): Likewise.
37072         (sift_states_backward): Mark MCTX parameter as const.
37073         (build_sifted_states): Likewise.
37074         (update_cur_sifted_state): Likewise.
37075         (sift_states_mkref): Likewise.
37076         (check_arrival_expand_ecl): Mark eclosure as const.
37077         (check_dst_limits_calc_pos_1): Likewise.
37078         * lib/regex_internal.h (re_match_context_t): Make dfa a const
37079         pointer.
37080
37081         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
37082
37083         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
37084         (transit_state_sb): Likewise.
37085         (transit_state_mb): Likewise.
37086         (sift_states_iter_mb): Likewise.
37087         (check_arrival_add_next_nodes): Likewise.
37088         (check_node_accept_bytes): Change first parameter to pointer-to-const.
37089         [_LIBC] (re_search_2_stub): Use mempcpy.
37090
37091         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
37092         mbrtowc for very simple UTF-8 case.
37093
37094         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
37095         a pointer-to-const.
37096         (re_acquire_state_context): Likewise.
37097         * lib/regex_internal.h: Adjust prototypes.
37098
37099         * lib/regex.c: Prevent using C++ compilers.
37100
37101         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
37102         (re_acquire_state_context): Likewise.
37103
37104 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
37105
37106         * modules/regex (Depends-on): Add ssize_t.
37107
37108 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
37109
37110         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
37111         translation table.
37112
37113 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
37114
37115         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
37116
37117 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
37118             Bruno Haible  <bruno@clisp.org>
37119
37120         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
37121         <sys/types.h> and <inttypes.h>.
37122
37123 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37124
37125         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
37126         `__error_t_defined', so argp.h will not typedef the former.
37127
37128 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
37129
37130         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
37131         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
37132         glibc names.  Even if glibc is changed to conform to POSIX, the
37133         traditional names will be available anyway, since regex depends on
37134         the extensions module.  Also, fix a longstanding typo in the
37135         implementation of Spencer ERE test #75 from grep 2.3.  Problems
37136         reported by Emanuele Giaquinta.  Also, change sense of cached
37137         variable, so that the message makes sense.
37138
37139 2006-03-24  Simon Josefsson  <jas@extundo.com>
37140
37141         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
37142         including some doc fixes.
37143         (base64_encode_alloc): Fix +1 bug on allocation failures.
37144
37145 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37146
37147         * lib/base64.c (base64_encode): Do not read past end of array with
37148         unsanitized input on systems with CHAR_BIT > 8.
37149
37150 2006-03-24  Eric Blake  <ebb9@byu.net>
37151
37152         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
37153
37154 2006-03-22  Karl Berry  <karl@gnu.org>
37155
37156         * config/srclist.txt (*setenv.[ch]): get from coreutils.
37157         * config/srclistvars.sh (COREUTILS): new var.
37158
37159 2006-03-17  Jim Meyering  <jim@meyering.net>
37160
37161         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
37162         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
37163
37164 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
37165
37166         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
37167         no longer needs it.  Instead, check that regoff_t is as least
37168         as wide as ptrdiff_t.
37169
37170         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
37171         so that our regex.h stays compatible with the installed regex.
37172         This is helpful for installers who configure --without-included-regex.
37173         Problem reported by Emanuele Giaquinta.
37174
37175 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
37176
37177         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
37178         Typedef to long int, not to off_, as POSIX will likely change
37179         in that direction.
37180
37181 2006-03-15  Eric Blake  <ebb9@byu.net>
37182
37183         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
37184
37185 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
37186
37187         * lib/argp-help.c (validate_uparams): Fix typo
37188         * lib/argp-parse.c (argp_default_options): Consistently begin help
37189         messages with a lowercase letter.
37190
37191 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
37192
37193         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
37194         overrun buffers and shouldn't be used (much as gets shouldn't be
37195         used).
37196         * lib/time_r.c (asctime_r, ctime_r): Likewise.
37197
37198 2006-03-08  Simon Josefsson  <jas@extundo.com>
37199
37200         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
37201         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37202
37203 2006-03-08  Simon Josefsson  <jas@extundo.com>
37204
37205         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
37206         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37207
37208 2006-03-08  Simon Josefsson  <jas@extundo.com>
37209
37210         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
37211         signal that configure disabled the device.
37212
37213 2006-03-08  Simon Josefsson  <jas@extundo.com>
37214
37215         * build-aux/maint.mk: Fix refresh-po, to handle no translated
37216         languages.
37217
37218 2006-03-07  Simon Josefsson  <jas@extundo.com>
37219
37220         * modules/getopt (Depends-on): Add unistd.
37221
37222         * modules/unistd: New file.
37223
37224 2006-03-07  Simon Josefsson  <jas@extundo.com>
37225
37226         * modules/gc-random: New file.
37227
37228 2006-03-07  Simon Josefsson  <jas@extundo.com>
37229
37230         * m4/unistd_h.m4: New file.
37231
37232 2006-03-07  Simon Josefsson  <jas@extundo.com>
37233
37234         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
37235         test to be side-effect free by storing the result in the cache
37236         variable gl_cv_lib_readline, and moving the assignment of
37237         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
37238         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37239
37240 2006-03-07  Simon Josefsson  <jas@extundo.com>
37241
37242         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
37243         error on missing devices (the functions will return an error).
37244
37245         * m4/gc.m4: Move random stuff to gc-random.m4
37246
37247 2006-03-07  Simon Josefsson  <jas@extundo.com>
37248
37249         * lib/unistd_.h: New file.
37250
37251 2006-03-07  Simon Josefsson  <jas@extundo.com>
37252
37253         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
37254
37255 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
37256
37257         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
37258         Problem reported by Juan Manuel Guerrero.
37259
37260 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
37261
37262         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
37263         the unistd module.
37264         * lib/getlogin_r.c: Likewise.
37265         * lib/getlogin_r.h: Likewise.
37266         * lib/glob.c: Likewise.
37267         * lib/pagealign_alloc.c: Likewise.
37268         * lib/unistd_.h: Remove; no longer needed.
37269
37270 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
37271
37272         * MODULES.html.sh (Support for systems lacking POSIX:2001):
37273         Add unistd.
37274         * modules/c-stack (Depends-on): Add unistd.
37275         * modules/getlogin_r: Likewise.
37276         * modules/glob: Likewise.
37277         * modules/pagealign_alloc: Likewise.
37278         * modules/unistd (Files): Remove lib/unistd_.h.
37279         (EXTRA_DIST): Remove.
37280         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
37281         need unistd_.h.
37282         (MOSTLYCLEANFILES): Remove unistd.h-t.
37283
37284 2006-03-03  Simon Josefsson  <jas@extundo.com>
37285
37286         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
37287
37288 2006-03-03  Simon Josefsson  <jas@extundo.com>
37289
37290         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
37291         libidn and bison.
37292
37293 2006-03-03  Simon Josefsson  <jas@extundo.com>
37294
37295         * build-aux/maint.mk: Add indent target.
37296
37297 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
37298
37299         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
37300         our replacement poll.h in any case, to avoid a differing
37301         declaration from a system header.  Seen on AIX.
37302
37303 2006-03-01  Simon Josefsson  <jas@extundo.com>
37304
37305         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
37306         <kasal@ucw.cz>.
37307
37308 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
37309
37310         * modules/gettime (Depends-on): Add extensions module.
37311         * modules/nanosleep (Depends-on): Likewise.
37312         * modules/settime (Depends-on): Likewise.
37313
37314 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
37315
37316         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
37317         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
37318         pedantically.
37319         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
37320         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
37321
37322         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
37323         not "==".  Reported by Ralf Wildenhues.
37324
37325 2006-03-01  Karl Berry  <karl@gnu.org>
37326
37327         * doc/Copyright/request-*: new files, synced from gnuorg.
37328
37329 2006-03-01  Karl Berry  <karl@gnu.org>
37330
37331         * config/srclist.txt (Copyright/*): new entries.
37332
37333 2006-02-28  Simon Josefsson  <jas@extundo.com>
37334
37335         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
37336
37337 2006-02-27  Simon Josefsson  <jas@extundo.com>
37338
37339         * lib/base64.h: Indent #define's.  From Jim Meyering
37340         <jim@meyering.net>.
37341
37342 2006-02-27  Jim Meyering  <jim@meyering.net>
37343
37344         Revert the change of 2006-02-24, so these files can continue
37345         to be sync'd from gettext.
37346         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
37347         of `config.h'.
37348
37349 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
37350
37351         * modules/intprops: New file.
37352         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
37353         Add intprops.
37354         * modules/getloadavg (Files): Remove lib/intprops.h.
37355         (Depends-on): Add intprops.
37356         * modules/human: Likewise.
37357         * modules/inttostr: Likewise.
37358         * modules/openat: Likewise.
37359         * modules/sig2str: Likewise.
37360         * modules/userspec: Likewise.
37361         * modules/utimecmp: Likewise.
37362         * modules/xnanosleep: Likewise.
37363         * modules/xstrtol: Likewise.
37364
37365 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
37366
37367         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
37368         * modules/lock-tests (TESTS): Use $(EXEEXT).
37369         * modules/tls-tests: Likewise.
37370         * modules/argp-tests: Likewise.
37371         (check_PROGRAMS): New var, replacing...
37372         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
37373
37374 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37375
37376         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
37377         `config.h'.
37378
37379 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
37380
37381         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
37382
37383 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37384
37385         Sync from coreutils.
37386         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
37387         gl_CHDIR_SAFER.
37388
37389 2006-02-22  Jim Meyering  <jim@meyering.net>
37390
37391         Sync from coreutils.
37392         * m4/chdir-safer.m4: New file.
37393
37394 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
37395
37396         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
37397         AT_FDCWD exceeds INT_MAX.
37398         * lib/openat.h (AT_FDCWD): Likewise.
37399
37400 2006-02-17  Eric Blake  <address@hidden>
37401
37402         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
37403
37404 2006-02-16  Simon Josefsson  <jas@extundo.com>
37405
37406         * modules/getaddrinfo (Depends-on): Add sys_socket.
37407
37408 2006-02-15  Simon Josefsson  <jas@extundo.com>
37409
37410         * build-aux/maint.mk: Add dsyntax-check rule.
37411
37412 2006-02-15  Eric Blake  <ebb9@byu.net>
37413
37414         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
37415         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
37416         'present but cannot compile' warnings on cygwin.
37417         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
37418         use ws2tcpip.h if sys/socket.h works.
37419         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
37420         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
37421
37422 2006-02-14  Simon Josefsson  <jas@extundo.com>
37423
37424         * modules/maintainer-makefile (Files): Rename.
37425
37426         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
37427         and (the local) Makefile.cfg to maint-cfg.mk.
37428
37429         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
37430         to the latter.
37431
37432         * modules/maintainer-makefile: New module.
37433
37434         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
37435         severaly stripped to make it possible to build it up from scratch
37436         with reliable tests.
37437
37438         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
37439         fixes to permit overriding the default actions when configure and
37440         makefile are not available.
37441
37442 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
37443
37444         Sync from coreutils.
37445         * modules/lstat (Depends-on): Don't depend on xalloc.
37446         (License): Change from GPL to LGPL, since this is now simply a
37447         replacement for a libc function.
37448
37449 2006-02-14  Jim Meyering  <jim@meyering.net>
37450
37451         Sync from coreutils.
37452
37453         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
37454         failure on deficient systems, and simplify gnulib lgpl dependencies.
37455         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
37456         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
37457
37458         * lib/xalloc-die.c: Remove unused definition of N_.
37459
37460 2006-02-14  Jim Meyering  <jim@meyering.net>
37461
37462         Sync from coreutils.
37463         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
37464         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
37465         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
37466         double-quote uses of that variable, to accommodate the rare case in
37467         which getmntent is available in none of the libraries checked.  This
37468         happens at least on FreeBSD 5.0.
37469
37470 2006-02-13  Simon Josefsson  <jas@extundo.com>
37471
37472         * gnulib-tool (Usage): Fix --import, from
37473         karl@freefriends.org (Karl Berry).
37474
37475 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
37476
37477         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
37478
37479 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
37480
37481         * lib/argp-namefrob.h: Restore changes accidentally lost during the
37482         "autoupdate" on 2005-12-12.
37483
37484 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
37485
37486         * modules/closeout (Depends-on): Remove atexit.
37487
37488 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
37489
37490         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
37491         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
37492
37493 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
37494
37495         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
37496         __EXTENSIONS__ if this causes compilation to fail.  Problem
37497         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
37498         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
37499
37500 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
37501
37502         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
37503         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
37504         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
37505         All uses changed.
37506
37507 2006-01-26  Simon Josefsson  <jas@extundo.com>
37508
37509         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
37510         prototype is visible on mingw32.
37511
37512         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
37513         for mingw32.
37514
37515         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
37516         mingw32).
37517
37518 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
37519
37520         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
37521         attempt to open for write; this always fails, at least on POSIX
37522         hosts.  This reinstates the 2006-01-09 change, which was
37523         inadvertently removed.
37524
37525 2006-01-26  Bruno Haible  <bruno@clisp.org>
37526
37527         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
37528         Reported by Paul Eggert.
37529
37530 2006-01-26  Bruno Haible  <bruno@clisp.org>
37531             Paul Eggert  <eggert@cs.ucla.edu>
37532
37533         * lib/stdbool_.h (_Bool)
37534         [(! (defined __cplusplus || defined __BEOS__)
37535           && !defined __GNUC__
37536           && !(defined __HP_cc || defined __xlc__
37537                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
37538                || defined __sgi))]:
37539         #define to signed char in these cases too; this simplifies
37540         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
37541         etc., separately) and makes it more conservative.
37542
37543 2006-01-25  Simon Josefsson  <jas@extundo.com>
37544
37545         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
37546         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
37547         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
37548
37549 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37550
37551         * lib/argp-namefrob.h: Bugfix. Remove stray #
37552
37553 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
37554
37555         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
37556         so that we test the test.
37557         Check for yet another HP-UX cc bug involving *bool |= bool.
37558
37559 2006-01-25  Karl Berry  <karl@gnu.org>
37560
37561         * config/srclist.txt (vasnprintf.c): sync lost.
37562
37563 2006-01-25  Jim Meyering  <jim@meyering.net>
37564
37565         Sync from the stable (b5) branch of coreutils:
37566
37567         * lib/fts.c (fts_children): Don't let close() clobber errno from
37568         failed fchdir().
37569
37570         * lib/fts.c (fts_stat): When following a symlink-to-directory,
37571         don't necessarily interpret stat-fails+lstat-succeeds as indicating
37572         a dangling symlink.  That can also happen at least for ELOOP.
37573         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
37574         FYI, this bug predates the inclusion of fts.c in coreutils.
37575
37576         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
37577         in their own block, so pre-c99 compilers don't object.
37578
37579         Avoid the double-free (first in fts_read, second in fts_close) that
37580         would occur when an `active' directory is made inaccessible (e.g.,
37581         via chmod a-x) during a traversal.
37582         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
37583         before returning.  Reproduce this failure by
37584         mkdir -p a/b; cd a; chmod a-x . b
37585         Reported by Stavros Passas.
37586
37587 2006-01-25  Jim Meyering  <jim@meyering.net>
37588
37589         * lib/fileblocks.c: Remove more useless parentheses.
37590         * lib/readutmp.h: Likewise.
37591
37592 2006-01-25  Bruno Haible  <bruno@clisp.org>
37593
37594         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
37595         warnings.
37596         Reported by Paul Eggert.
37597
37598 2006-01-25  Bruno Haible  <bruno@clisp.org>
37599
37600         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
37601         rid of a trap command. For Solaris sh.
37602         Reported by Mark D. Baushke <mdb@gnu.org>.
37603
37604 2006-01-24  Simon Josefsson  <jas@extundo.com>
37605
37606         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
37607         Bruno.
37608
37609 2006-01-24  Karl Berry  <karl@gnu.org>
37610
37611         * config/srclist.txt (argp-namefrob.h): sync lost.
37612
37613 2006-01-24  Jim Meyering  <jim@meyering.net>
37614
37615         * modules/openat (Files): Add lib/intprops.h.
37616         From Mark D. Baushke.
37617
37618 2006-01-24  Jim Meyering  <jim@meyering.net>
37619
37620         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
37621         Reported by Mark D. Baushke.
37622
37623 2006-01-24  Jim Meyering  <jim@meyering.net>
37624
37625         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
37626
37627 2006-01-24  Bruno Haible  <bruno@clisp.org>
37628
37629         * modules/strnlen (Maintainer): Change from glibc to all.
37630
37631 2006-01-24  Bruno Haible  <bruno@clisp.org>
37632
37633         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
37634         Patch by Paul Eggert.
37635
37636 2006-01-24  Bruno Haible  <bruno@clisp.org>
37637
37638         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
37639         already has it.
37640         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
37641         2005-11-26.
37642
37643         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
37644         'signed char' to avoid problems with the built-in _Bool type.
37645         Reported by Paul Eggert on 2005-11-26.
37646
37647 2006-01-24  Bruno Haible  <bruno@clisp.org>
37648
37649         * gnulib-tool (func_import): Avoid constructing complicated sed
37650         expressions inside backquote.
37651         Report and solution by Mark D. Baushke <mdb@gnu.org>.
37652
37653 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
37654
37655         These changes imported from libc.
37656         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
37657         test and two separate function calls.
37658         * lib/strndup.c (__strndup): Add libc_hidden_def.
37659
37660 2006-01-23  Simon Josefsson  <jas@extundo.com>
37661
37662         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
37663         Remove the test_*_SOURCES variable: automake infers it by default.
37664         * modules/tls-tests: Likewise.
37665
37666 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
37667
37668         Work around porting bugs reported by Dieter in
37669         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
37670         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
37671         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
37672         Include "getopt.h" first, to check interface.
37673         (getenv): Declare only if defined HAVE_DECL_GETENV &&
37674         !HAVE_DECL_GETENV.
37675         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
37676         (__strndup): Revert to K&R-style function dfns, the glibc style.
37677         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
37678         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
37679         Include strnlen.h first, to get prototype properly.
37680         (strnlen): Renamed from __strnlen.
37681         Remove weak alias.
37682
37683 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
37684
37685         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
37686
37687 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
37688
37689         * config/srclist.txt: Adjust to reflect glibc reorganization.
37690         This affects only comments.
37691
37692 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
37693
37694          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
37695          Reported by Bruce Korb <bkorb@gnu.org>.
37696
37697 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
37698
37699         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
37700         to pacify gcc -Wswitch-default.
37701
37702 2006-01-22  Bruno Haible  <bruno@clisp.org>
37703
37704         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
37705         temporary buffer for sprintf, take into account the precision also
37706         for 'd', 'i', 'u', 'o', 'x', 'X'.
37707
37708 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
37709
37710         * modules/argp-tests: New module
37711         * tests/test-argp.c: New file
37712         * tests/test-argp-2.sh: New file
37713
37714 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
37715
37716         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
37717         (__argp_base_name): Removed
37718         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
37719         typo.
37720         (__argp_base_name): Provide macro definition or extern declaration
37721         depending on the configuration
37722
37723 2006-01-20  Simon Josefsson  <jas@extundo.com>
37724
37725         * modules/inet_ntop (Depends-on): Depend on sys_socket.
37726
37727 2006-01-20  Simon Josefsson  <jas@extundo.com>
37728
37729         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
37730
37731 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
37732
37733         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
37734         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
37735         Suggested by Bruno Haible.
37736
37737 2006-01-20  Karl Berry  <karl@gnu.org>
37738
37739         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
37740         until changes propagate, I guess.
37741
37742 2006-01-19  Simon Josefsson  <jas@extundo.com>
37743
37744         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
37745
37746 2006-01-19  Simon Josefsson  <jas@extundo.com>
37747
37748         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
37749
37750 2006-01-19  Simon Josefsson  <jas@extundo.com>
37751
37752         * gnulib-tool: Set check_PROGRAMS.
37753
37754         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
37755         modules/des-tests, modules/gc-arcfour-tests,
37756         modules/gc-arctwo-tests, modules/gc-des-tests,
37757         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
37758         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
37759         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
37760         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
37761         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
37762         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
37763         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
37764         test_*_SOURCES.
37765
37766 2006-01-18  Simon Josefsson  <jas@extundo.com>
37767
37768         * modules/socklen (Depends-on): Depend on sys_socket.
37769
37770 2006-01-18  Simon Josefsson  <jas@extundo.com>
37771
37772         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
37773         modules/des-tests, modules/gc-arcfour-tests,
37774         modules/gc-arctwo-tests, modules/gc-des-tests,
37775         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
37776         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
37777         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
37778         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
37779         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
37780         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
37781         $(EXEEXT) to automake TESTS variable, for mingw32.
37782
37783 2006-01-17  Simon Josefsson  <jas@extundo.com>
37784
37785         * modules/socklen (Include): Need sys/socket.h.
37786
37787 2006-01-17  Bruno Haible  <bruno@clisp.org>
37788
37789         * modules/ssize_t (Include): Add <sys/types.h>.
37790
37791 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
37792
37793         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
37794         it's not portable and it doesn't work with cross-compiles.
37795         Problem reported by Bruno Haible.  Fix missing-$ typo in
37796         'test "gl_cv_ignore_unused_libraries" ...' that prevented
37797         -zignore from being used with Sun's C compiler.
37798
37799 2006-01-12  Simon Josefsson  <jas@extundo.com>
37800
37801         * lib/base64.c: Fix warning, reported by Bruno Haible
37802         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
37803
37804 2006-01-12  Bruno Haible  <bruno@clisp.org>
37805
37806         * modules/ldd: New file.
37807         * build-aux/ldd.sh.in: New file.
37808         * MODULES.html.sh (Support for building libraries and executables): Add
37809         ldd.
37810
37811 2006-01-12  Bruno Haible  <bruno@clisp.org>
37812
37813         * m4/ldd.m4: New file.
37814
37815 2006-01-12  Bruno Haible  <bruno@clisp.org>
37816
37817         * gnulib-tool (func_import, func_create_testdir): Don't go into an
37818         endless loop while replacing $auxdir with build-aux.
37819
37820 2006-01-11  Simon Josefsson  <jas@extundo.com>
37821
37822         * lib/stdint_.h (SIZE_MAX): Add missing (.
37823
37824 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
37825
37826         Sync from coreutils.
37827         * lib/md5.c: Fix commentary typos.
37828         (alignof, UNALIGNED_P): No need for a GCC-specific version.
37829         * lib/md5.h (__attribute__): Remove; unused.
37830         * lib/sha1.c: Fix commentary to match md5 better.
37831         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
37832         so that we don't need to worry about alignment.  All uses changed.
37833         This merges the 2005-10-28 md5 change into sha1.
37834
37835 2006-01-11  Jim Meyering  <jim@meyering.net>
37836
37837         Sync from coreutils.
37838         * lib/md5.c (OP): Fix spacing.
37839
37840 2006-01-11  Bruno Haible  <bruno@clisp.org>
37841
37842         Ensure automatic ordering between gl_LOCK and gl_ARGP.
37843         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
37844         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
37845
37846 2006-01-11  Bruno Haible  <bruno@clisp.org>
37847
37848         Ensure automatic ordering between gl_LOCK and gl_ARGP.
37849         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
37850         the "early" section as well.
37851
37852 2006-01-11  Bruno Haible  <bruno@clisp.org>
37853
37854         Avoid "ar: no archive members specified" error on MacOS X.
37855         * gnulib-tool (func_modules_add_dummy): New function.
37856         (func_import, func_create_testdir): Invoke it.
37857
37858 2006-01-11  Bruno Haible  <bruno@clisp.org>
37859
37860         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
37861         with $auxdir in AC_CONFIG_FILES statements.
37862
37863 2006-01-11  Bruno Haible  <bruno@clisp.org>
37864
37865         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37866         Initialize also noinst_HEADERS to empty.
37867
37868 2006-01-11  Bruno Haible  <bruno@clisp.org>
37869
37870         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
37871         variables.
37872         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
37873         autoreconf.
37874
37875 2006-01-11  Bruno Haible  <bruno@clisp.org>
37876
37877         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
37878         overridable by the user.
37879         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37880
37881 2006-01-10  Simon Josefsson  <jas@extundo.com>
37882
37883         * modules/sys_socket: New file.
37884
37885 2006-01-10  Simon Josefsson  <jas@extundo.com>
37886
37887         * m4/sys_socket_h.m4: New file.
37888
37889 2006-01-10  Simon Josefsson  <jas@extundo.com>
37890
37891         * lib/socket_.h: New file.
37892
37893 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
37894
37895         * modules/readutmp (Maintainer): Add myself.
37896
37897 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
37898
37899         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
37900         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
37901         People who are still concerned with buggy memcmp implementations
37902         can invoke gl_FUNC_MEMCMP themselves.
37903
37904 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
37905
37906         * lib/regex_internal.h (BITSET_WORD_BITS):
37907         Work around a bug in 64-bit PGC (before version 6.1-2), where the
37908         preprocessor mishandles large unsigned values as if they were signed.
37909         Problem reported by Claudio Fontana in
37910         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
37911
37912 2006-01-10  Jim Meyering  <jim@meyering.net>
37913
37914         Avoid the double-free (first in fts_read, second in fts_close) that
37915         would occur when an `active' directory is made inaccessible (e.g.,
37916         via chmod a-x) during a traversal.
37917         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
37918         before returning.  Reproduce this failure by
37919         mkdir -p a/b; cd a; chmod a-x . b
37920         Reported by Stavros Passas.
37921
37922         Sync from coreutils.
37923         * lib/sha1.c: Tweak grammar in a comment.
37924
37925 2006-01-10  Jim Meyering  <jim@meyering.net>
37926
37927         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
37928         Patch by Joerg Sonnenberger.
37929
37930 2006-01-10  Bruno Haible  <bruno@clisp.org>
37931
37932         * modules/readutmp: Depend on module free.
37933         * modules/strtok_r: Depend on module restrict.
37934
37935 2006-01-10  Bruno Haible  <bruno@clisp.org>
37936
37937         * modules/gettext (configure.ac): Add an invocation of
37938         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
37939
37940 2006-01-10  Bruno Haible  <bruno@clisp.org>
37941
37942         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
37943         Reported by Werner Lemberg <wl@gnu.org>.
37944
37945 2006-01-10  Bruno Haible  <bruno@clisp.org>
37946
37947         * lib/localcharset.c: Update from GNU gettext.
37948
37949 2006-01-10  Bruno Haible  <bruno@clisp.org>
37950
37951         * lib/argp.h (__const): Remove macro. Use const instead.
37952         * lib/argp-fmtstream.h (__const): Likewise.
37953         * lib/glob_.h (__const): Remove macro.
37954         * lib/glob-libc.h: Use const instead of __const.
37955
37956 2006-01-10  Bruno Haible  <bruno@clisp.org>
37957
37958         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
37959         variable.
37960         Needed to avoid an automake error regarding the 'gettext' module.
37961
37962 2006-01-09  Simon Josefsson  <jas@extundo.com>
37963
37964         * modules/inet_ntop (Depends-on): Add restrict.
37965
37966 2006-01-09  Simon Josefsson  <jas@extundo.com>
37967
37968         * modules/gc-rijndael-tests (License): Put under LGPL.
37969
37970         * modules/gc-des-tests (License): Likewise.
37971
37972         * modules/gc-arcfour-tests (License): Likewise.
37973
37974         * modules/gc-arctwo-tests (License): Likewise.
37975
37976         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
37977
37978         * modules/gc-hmac-sha1-tests (Files): Likewise.
37979
37980         * modules/gc-hmac-md5-tests (License): Likewise.
37981
37982         * modules/gc-sha1-tests (License): Likewise.
37983
37984         * modules/gc-md5-tests (License): Likewise.
37985
37986         * modules/gc-md4-tests (License): Likewise.
37987
37988         * modules/gc-md2-tests (License): Likewise.
37989
37990         * modules/gc-tests (License): Likewise.
37991
37992         * modules/des-tests (License): Likewise.
37993
37994         * modules/md4-tests (License): Likewise.
37995
37996         * modules/md2-tests (License): Likewise.
37997
37998 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
37999
38000         Sync from coreutils:
38001
38002         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
38003         * modules/lib-ignore: New file.
38004         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
38005         chdir-safer.m4, lchmod.m4.
38006         * modules/openat: Add mkdirat.c, openat-priv.h.
38007
38008 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
38009
38010         Sync from coreutils.
38011         * m4/lib-ignore.m4: New file.
38012         * m4/lchmod.m4: New file.
38013
38014 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
38015
38016         Sync from coreutils.
38017         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
38018         for write access: POSIX says that must fail.
38019         * lib/fts.c (diropen): Likewise.
38020         * lib/save-cwd.c (save_cwd): Likewise.
38021         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
38022         well, for minor improvements on hosts that lack O_DIRECTORY.
38023         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
38024         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
38025         Fall back on chown if open failed with EACCES.
38026
38027         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
38028         Report an error at compile-time if only a 1-second nominal clock
38029         resolution is found.
38030
38031         * lib/lchmod.h: New file.
38032         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
38033         (make_dir_parents): Use lchown rather than chown, and
38034         lchmod rather than chmod.
38035
38036         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
38037         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
38038         "proc" reported by n0dalus.
38039
38040         * lib/mountlist.c: Include <limits.h>.
38041         (dev_from_mount_options)
38042         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
38043         New function.  It no longer assumes "dev=" has the System V meaning
38044         on Linux (since it doesn't).  It also parses "dev=" more carefully.
38045         (read_file_system_list)
38046         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
38047         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
38048         dev= in that case.
38049
38050         * lib/posixtm.h (PDS_PRE_2000): New macro.
38051         * lib/posixtm.c (year): Arg is now syntax_bits rather than
38052         allow_century.  All usages changed.  Reject dates outside the range
38053         1969-1999 if PDS_PRE_2000 is used.
38054
38055 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
38056
38057         Sync from coreutils.
38058         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
38059         (Time of day items): Mention the possibility of leap seconds.
38060         Problem reported by Dr. David Alan Gilbert.
38061
38062 2006-01-09  Jim Meyering  <jim@meyering.net>
38063
38064         Sync from coreutils.
38065
38066         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
38067
38068         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
38069
38070         * lib/modechange.c (mode_compile): Reject an invalid mode string
38071         that starts with an octal digit.  From Andreas Gruenbacher.
38072
38073         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
38074         and dup to open_safer and dup_safer, respectively.
38075         (openat_permissive): Fix typo in comment.
38076
38077         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
38078         "gettext.h"; either no longer needed or are guaranteed by openat.h.
38079         (_): Remove; no longer needed.
38080         (openat): Renamed from rpl_openat; no need for rpl_openat
38081         since openat.h renames openat for us.
38082         Replace most of the body with a call to openat_permissive,
38083         to avoid duplicate code.
38084         Port to (probably hypothetical) environments were mode_t is
38085         wider than int.
38086         (openat_permissive): Require mode arg, so that we can check
38087         types better.  Put it just after flags.  Change cwd failure
38088         indicator from pointer-to-bool to pointer-to-errno-value.
38089         All callers changed.
38090         Invoke openat_save_fail and/or openat_restore_fail if
38091         cwd_errno is null, so that openat can call us.
38092         (openat_permissive, fdopendir, fstatat, unlinkat):
38093         Simplify errno handling to avoid some duplicate code,
38094         as it's OK to set errno on success.
38095         * lib/openat.h: Revamp code so that function macros depend on
38096         __OPENAT_PREFIX only, not also on AT_FDCWD.
38097         (openat_ro): Remove.  Caller changed to use openat_permissive.
38098         (openat_permissive): Now a macro, if not a function.
38099         (openat_restore_fail, openat_save_fail): Now always functions,
38100         since mkdirat needs them even if __OPENAT_PREFIX is defined.
38101
38102         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
38103         and openat.c.
38104         * lib/mkdirat.c: Include openat-priv.h.
38105         Remove definitions of macros defined therein.
38106         * lib/openat.c: Likewise.
38107
38108         * lib/mkdirat.c (mkdirat): New file and function.
38109         * lib/openat.h (mkdirat): Declare.
38110
38111         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
38112
38113         * lib/openat.h (openat_permissive): Declare.
38114         (openat_ro): Define.
38115
38116         * lib/openat.c (EXPECTED_ERRNO): New macro.
38117         (openat_permissive): New function -- used in remove.c rewrite.
38118         (all functions): Set errno just before returning, only if there
38119         was an actual failure.
38120         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
38121
38122         Emulate openat-family functions using Linux's procfs, if possible.
38123         Idea and some code based on Ulrich Drepper's glibc changes.
38124
38125         * lib/openat.c: (BUILD_PROC_NAME): New macro.
38126         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
38127         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
38128         before falling back on save_cwd and restore_cwd.
38129         (fdopendir, fstatat, unlinkat): Likewise.
38130
38131         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
38132         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
38133
38134         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
38135         as second argument to va_arg.  Otherwise, some versions of gcc
38136         warn that `if this code is reached, the program will abort'.
38137
38138 2006-01-09  Jim Meyering  <jim@meyering.net>
38139
38140         Sync from coreutils.
38141         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
38142         Require openat-priv.h.
38143
38144 2006-01-09  Bruno Haible  <bruno@clisp.org>
38145
38146         * modules/strnlen (Include): Use strnlen.h.
38147
38148 2006-01-09  Bruno Haible  <bruno@clisp.org>
38149
38150         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
38151
38152 2006-01-09  Bruno Haible  <bruno@clisp.org>
38153
38154         * lib/sysexit_.h (EX_OK): New macro.
38155         Suggested by Martin Lambers <marlam@marlam.de>.
38156
38157 2006-01-09  Bruno Haible  <bruno@clisp.org>
38158
38159         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
38160         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
38161
38162 2006-01-09  Bruno Haible  <bruno@clisp.org>
38163
38164         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
38165         numbers.
38166
38167 2006-01-09  Bruno Haible  <bruno@clisp.org>
38168
38169         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
38170         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
38171         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
38172         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
38173
38174 2006-01-09  Bruno Haible  <bruno@clisp.org>
38175
38176         * build-aux/javacomp.sh.in: New file, moved from lib/.
38177         * modules/javacomp-script (Files): Update.
38178         (configure.ac): Add AC_CONFIG_FILES invocation.
38179         (EXTRA_DIST): Remove variable.
38180
38181         * build-aux/javaexec.sh.in: New file, moved from lib/.
38182         * modules/javaexec (Files): Update.
38183         (configure.ac): Add AC_CONFIG_FILES invocation.
38184         (EXTRA_DIST): Remove javaexec.sh.in.
38185
38186         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
38187         * modules/csharpcomp-script (Files): Update.
38188         (configure.ac): Add AC_CONFIG_FILES invocation.
38189         (EXTRA_DIST): Remove variable.
38190
38191         * build-aux/csharpexec.sh.in: New file, moved from lib/.
38192         * modules/csharpexec (Files): Update.
38193         (configure.ac): Add AC_CONFIG_FILES invocation.
38194         (EXTRA_DIST): Remove csharpexec.sh.in.
38195
38196 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
38197
38198         Sync from coreutils.
38199
38200         Add POSIX ACL support
38201         * lib/acl.h (copy_acl, set_acl): Add declarations.
38202         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
38203         systems other than Linux.
38204         (chmod_or_fchmod): New function: use fchmod when possible,
38205         and chmod otherwise.
38206         (file_has_acl): Add a POSIX ACL implementation, with a
38207         Linux-specific subcase.
38208         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
38209         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
38210         acls are unsupported.
38211         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
38212         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
38213         are unsupported.
38214
38215 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
38216
38217         Sync from coreutils.
38218         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
38219
38220 2006-01-07  Bruno Haible  <bruno@clisp.org>
38221
38222         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
38223         gl_EARLY.
38224
38225 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
38226
38227         * lib/strftime.c (tzname): Don't declare if it is already #defined.
38228         Problem reported for Mingw by Mark Junker.
38229
38230 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
38231
38232         * README: Gnulib normally doesn't generate a tarball.
38233
38234 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
38235
38236         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
38237         long int, not int, for nanosecond counts, so that people who are
38238         used to POSIX struct timespec won't be surprised.  Reported by Jim
38239         Meyering.
38240
38241 2005-12-28  Bruno Haible  <bruno@clisp.org>
38242
38243         * build-aux/config.rpath: Update from GNU gettext.
38244
38245 2005-12-16  Jim Meyering  <jim@meyering.net>
38246
38247         * modules/fprintftime: New module.
38248         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
38249
38250 2005-12-16  Jim Meyering  <jim@meyering.net>
38251
38252         * m4/fprintftime.m4: New file.
38253
38254 2005-12-16  Jim Meyering  <jim@meyering.net>
38255
38256         * lib/fprintftime.c, lib/fprintftime.h: New files.
38257
38258 2005-12-15  Simon Josefsson  <jas@extundo.com>
38259
38260         * modules/socklen (configure.ac): Fix M4 macro name, to align with
38261         new m4/socklen.m4.
38262
38263 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
38264
38265         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
38266         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
38267
38268 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
38269
38270         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
38271         * lib/argp-help.c (fill_in_uparams): Check if the constructed
38272         struct uparams is valid. Fall back to the default values if it is
38273         not.
38274
38275 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
38276
38277         * modules/argp (Files): Add argp-pin.c
38278         (Depends-on): dirname
38279         (lib_SOURCES): Add argp-pin.c
38280
38281 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
38282
38283         * m4/argp.m4:  Check if program_invocation_name and
38284         program_invocation_short_name are declared and define appropriate
38285         macros if they are not.
38286
38287 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
38288
38289         * lib/argp-help.c (__argp_base_name): New function
38290         (__argp_short_program_name): Rewrite using __argp_base_name
38291         * lib/argp-namefrob.h: Define program_invocation_name and
38292         program_invocation_short_name if requested
38293         (__argp_base_name): Add prototype
38294         * lib/argp-parse.c (argp_def): Use gettext wrappers
38295         (argp_default_parser): Use __argp_base_name
38296         * lib/argp-pin.c: New file. Defines program_invocation_name and
38297         program_invocation_short_name on systems that lack them.
38298
38299 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
38300
38301         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
38302         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
38303         porting problem reported by Georg Schwarz in
38304         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
38305
38306 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
38307
38308         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
38309         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
38310         porting problem reported by Georg Schwarz in
38311         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
38312
38313 2005-12-05  Bruno Haible  <bruno@clisp.org>
38314
38315         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
38316         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
38317         Reported by Mark Junker <mjscod@gmx.de>.
38318
38319 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
38320
38321         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
38322         Use implementation from Albert Chin, with some
38323         comments/corrections by Stepan Kasal and myself.
38324
38325 2005-12-02  Bruno Haible  <bruno@clisp.org>
38326
38327         * gnulib-tool (func_import): Accept GPLed build tool modules when
38328         --lgpl is given.
38329         * modules/csharpcomp-script: New file.
38330         * modules/csharpcomp: Depend on it.
38331         * modules/javacomp-script: New file.
38332         * modules/javacomp: Depend on it.
38333         Suggested by Simon Josefsson.
38334
38335 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
38336
38337         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
38338         statement, to work around an HP-UX 10.20 compiler bug reported by
38339         Peter O'Gorman.
38340
38341 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
38342
38343         * modules/savedir (Depends-on): Add openat.
38344
38345 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
38346
38347         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
38348         (uintmax_t) [defined uintmax_t]: Do not declare.
38349         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
38350         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
38351         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
38352         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
38353         sake of portability to weird hosts that C allows (though we don't
38354         know of any practical examples).
38355
38356         * lib/savedir.h (fdsavedir): New decl.
38357         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
38358         contains most of the former guts of savedir.
38359         (savedir): Use savedirstream.
38360         Include "openat.h".
38361
38362 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
38363
38364         * modules/obstack (Files): Add m4/ulonglong.m4.
38365         Problem reported by Davide Angelocola.
38366
38367 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
38368
38369         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
38370         coreutils no longer futzes with rounding modes.
38371
38372 2005-11-14  Jim Meyering  <jim@meyering.net>
38373
38374         * lib/mkstemp-safer.c: Include <config.h>, required for possible
38375         replacement of mkstemp.
38376
38377 2005-11-10  Simon Josefsson  <jas@extundo.com>
38378
38379         * lib/readline.c: Remove EOL.
38380
38381 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
38382
38383         * modules/gethrxtime (Depends-on): Add gettime.
38384
38385 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
38386
38387         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
38388         or gettimeofday; no longer needed.
38389
38390 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
38391
38392         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
38393         time business.
38394         (gethrxtime) [! (HAVE_NANOUPTIME
38395         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
38396         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
38397         our own approximation.
38398
38399 2005-11-08  Eric Blake  <ebb9@byu.net>
38400
38401         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
38402
38403 2005-11-08  Eric Blake  <ebb9@byu.net>
38404
38405         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
38406
38407 2005-11-04  Bruno Haible  <bruno@clisp.org>
38408
38409         * gnulib-tool: Implement --update mode.
38410
38411 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
38412
38413         Fix porting problem reported by Theodoros V. Kalamatianos.
38414         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
38415         Don't assume that futimes failing means we must fail.
38416
38417 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
38418
38419         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
38420         variables to suggest the intended function of the PATH_MAX check.
38421
38422 2005-10-30  Kean Johnston  <jkj@sco.com>
38423
38424         Trivial changes to support SCO systems.
38425         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
38426         as PATH_MAX.
38427         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
38428         where __ptr is null when no I/O is pending.
38429
38430 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
38431
38432         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
38433         leave errno alone.  Problem reported by Dmitry V. Levin.
38434
38435 2005-10-28  Simon Josefsson  <jas@extundo.com>
38436
38437         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
38438         Test more.
38439
38440         * tests/test-gc-md2.c, tests/test-md2.c: New files.
38441
38442         * modules/md2, modules/md2-tests: New files.
38443
38444 2005-10-28  Simon Josefsson  <jas@extundo.com>
38445
38446         * m4/inet_ntop.m4: More tests.
38447
38448         * m4/gc-md2.m4, md2.m4: New file.
38449
38450 2005-10-28  Simon Josefsson  <jas@extundo.com>
38451
38452         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
38453         "restrict" keywords, as per POSIX.  Protect the function
38454         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
38455         Don't use K&R prototypes.  Check the sprintf return values.
38456         Re-define EAFNOSUPPORT if not present.  Indent.
38457
38458         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
38459         suggested by Bruno Haible <bruno@clisp.org>.
38460
38461         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
38462
38463         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
38464
38465         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
38466         libgcrypt).
38467
38468         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
38469
38470         * lib/md2.h, lib/md2.c: New files.
38471
38472 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
38473
38474         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
38475         errno alone.  Problem reported by Frederic Jolliton.
38476
38477 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
38478
38479         * modules/verify (License): Change from GPL to LGPL.  This is a
38480         tiny module and there are apparently near-equivalents that are
38481         under the BSD license.
38482
38483 2005-10-24  Simon Josefsson  <jas@extundo.com>
38484
38485         * modules/sha1: Relicense to LGPL.
38486
38487 2005-10-24  Simon Josefsson  <jas@extundo.com>
38488
38489         * lib/md4.h: Shrink buffer size, now that we changed the type.
38490
38491 2005-10-23  Simon Josefsson  <jas@extundo.com>
38492
38493         * gnulib-tool (func_import): Fix --tests-base.
38494
38495 2005-10-22  Simon Josefsson  <jas@extundo.com>
38496
38497         * modules/arcfour (Depends-on): Need stdint.
38498
38499 2005-10-22  Simon Josefsson  <jas@extundo.com>
38500
38501         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
38502         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
38503
38504 2005-10-22  Simon Josefsson  <jas@extundo.com>
38505
38506         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
38507         suggested by Bruno Haible <bruno@clisp.org>.
38508
38509 2005-10-22  Simon Josefsson  <jas@extundo.com>
38510
38511         * lib/crc.h: Include stddef.h, for size_t.
38512
38513 2005-10-22  Simon Josefsson  <jas@extundo.com>
38514
38515         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
38516         arcfour_context struct (simplify test vector testing in GNU
38517         Shishi).
38518
38519 2005-10-21  Simon Josefsson  <jas@extundo.com>
38520
38521         * modules/des, modules/des-tests: New files.
38522
38523         * modules/gc-des, modules/gc-des-tests: New files.
38524
38525         * tests/test-des.c, tests/test-gc-des.c: New file.
38526
38527 2005-10-21  Simon Josefsson  <jas@extundo.com>
38528
38529         * modules/arctwo, modules/arctwo-tests: New files.
38530
38531         * tests/test-arctwo.c: New file.
38532
38533         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
38534
38535         * tests/test-gc-arctwo.c: New file.
38536
38537 2005-10-21  Simon Josefsson  <jas@extundo.com>
38538
38539         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
38540         Bruno Haible <bruno@clisp.org>.
38541
38542         * m4/gc-des.m4: New file.
38543
38544 2005-10-21  Simon Josefsson  <jas@extundo.com>
38545
38546         * m4/arctwo.m4: New file.
38547
38548         * m4/gc-arctwo.m4: New file.
38549
38550 2005-10-21  Simon Josefsson  <jas@extundo.com>
38551
38552         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
38553         block.
38554
38555 2005-10-21  Simon Josefsson  <jas@extundo.com>
38556
38557         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
38558         <bruno@clisp.org>.
38559
38560         * lib/hmac-sha1.c (hmac_sha1): Likewise.
38561
38562         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
38563         Bruno Haible <bruno@clisp.org>.
38564
38565         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
38566         <bruno@clisp.org>.
38567
38568 2005-10-21  Simon Josefsson  <jas@extundo.com>
38569
38570         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
38571
38572 2005-10-21  Simon Josefsson  <jas@extundo.com>
38573
38574         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
38575
38576 2005-10-21  Simon Josefsson  <jas@extundo.com>
38577
38578         * lib/des.h, lib/des.c: New files.
38579
38580         * lib/gc-gnulib.c: Support DES.c
38581
38582 2005-10-21  Simon Josefsson  <jas@extundo.com>
38583
38584         * lib/arctwo.h, lib/arctwo.c: New files.
38585
38586         * lib/gc-gnulib.c: Support ARCTWO.
38587
38588 2005-10-21  Simon Josefsson  <jas@extundo.com>
38589
38590         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
38591         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38592
38593 2005-10-21  Simon Josefsson  <jas@extundo.com>
38594
38595         * gnulib-tool (func_import, func_create_testdir): Define automake
38596         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
38597         Makefile.am snippet),
38598         suggested by Bruno Haible <bruno@clisp.org>.
38599
38600         * modules/gc (Makefile.am): Use it.
38601
38602 2005-10-21  Bruno Haible  <bruno@clisp.org>
38603
38604         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
38605         patch.
38606
38607 2005-10-19  Simon Josefsson  <jas@extundo.com>
38608
38609         * tests/test-gc-rijndael.c: New file.
38610
38611         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
38612
38613 2005-10-19  Simon Josefsson  <jas@extundo.com>
38614
38615         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
38616         interface too.
38617
38618 2005-10-19  Simon Josefsson  <jas@extundo.com>
38619
38620         * tests/test-gc-arcfour.c: New file.
38621
38622         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
38623
38624 2005-10-19  Simon Josefsson  <jas@extundo.com>
38625
38626         * modules/gc-md4, modules/gc-md4-tests: New file.
38627
38628         * tests/test-gc-md4.c: New file.
38629
38630 2005-10-19  Simon Josefsson  <jas@extundo.com>
38631
38632         * m4/gc-md4.m4: New file.
38633
38634 2005-10-19  Simon Josefsson  <jas@extundo.com>
38635
38636         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
38637         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
38638         <kasal@ucw.cz>.
38639
38640 2005-10-19  Simon Josefsson  <jas@extundo.com>
38641
38642         * m4/gc-arcfour.m4: New file.
38643
38644         * m4/gc-rijndael.m4: New file.
38645
38646 2005-10-19  Simon Josefsson  <jas@extundo.com>
38647
38648         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
38649
38650 2005-10-19  Simon Josefsson  <jas@extundo.com>
38651
38652         * lib/gc-gnulib.c: Support ARCFOUR.
38653
38654 2005-10-19  Simon Josefsson  <jas@extundo.com>
38655
38656         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
38657         support.
38658
38659         * lib/gc.h: Add ECB enum type.
38660
38661         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
38662
38663 2005-10-18  Simon Josefsson  <jas@extundo.com>
38664
38665         * tests/test-md5.c: New file.
38666
38667         * modules/md5-tests: New file.
38668
38669 2005-10-18  Simon Josefsson  <jas@extundo.com>
38670
38671         * tests/test-md4.c: New file.
38672
38673         * modules/md4, modules/md4-tests: New files.
38674
38675 2005-10-18  Simon Josefsson  <jas@extundo.com>
38676
38677         * m4/md4.m4: New file.
38678
38679 2005-10-18  Simon Josefsson  <jas@extundo.com>
38680
38681         * lib/md4.h, lib/md4.c: New files, based on md5.?.
38682
38683 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
38684
38685         * gnulib-tool (func_create_testdir): Omit the second check whether
38686         BUILT_SOURCES in nonempty.
38687
38688 2005-10-17  Simon Josefsson  <jas@extundo.com>
38689
38690         * tests/test-rijndael.c: New file.
38691
38692 2005-10-17  Simon Josefsson  <jas@extundo.com>
38693
38694         * modules/sha1: Depend on stdint instead of md5.
38695
38696         * modules/md5: Depend on stdint, remove uint32_t.
38697
38698 2005-10-17  Simon Josefsson  <jas@extundo.com>
38699
38700         * modules/gc-sha1-tests: New file.
38701
38702         * tests/test-gc-sha1.c: New file.
38703
38704 2005-10-17  Simon Josefsson  <jas@extundo.com>
38705
38706         * m4/md5.m4: Remove call to uint32_t.m4.
38707
38708 2005-10-17  Simon Josefsson  <jas@extundo.com>
38709
38710         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
38711
38712         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
38713         md5.h.
38714
38715         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
38716
38717         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
38718
38719 2005-10-17  Simon Josefsson  <jas@extundo.com>
38720
38721         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
38722
38723 2005-10-17  Simon Josefsson  <jas@extundo.com>
38724
38725         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
38726
38727 2005-10-17  Simon Josefsson  <jas@extundo.com>
38728
38729         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
38730
38731         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
38732
38733 2005-10-17  Bruno Haible  <bruno@clisp.org>
38734
38735         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
38736         that it can also be used in a test.
38737
38738 2005-10-16  Bruno Haible  <bruno@clisp.org>
38739
38740         * gnulib-tool (func_emit_tests_Makefile_am): Also define
38741         TESTS_ENVIRONMENT, so that individual tests can augment it.
38742
38743         * gnulib-tool (func_create_testdir): Use an intermediate target for
38744         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
38745         macros, like $(ALLOCA_H), which cannot be passed through the command
38746         line.
38747
38748 2005-10-15  Simon Josefsson  <jas@extundo.com>
38749
38750         * modules/rijndael-tests: New file.
38751
38752         * modules/rijndael: New file.
38753
38754 2005-10-15  Simon Josefsson  <jas@extundo.com>
38755
38756         * m4/rijndael.m4: New file.
38757
38758 2005-10-15  Simon Josefsson  <jas@extundo.com>
38759
38760         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
38761
38762         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
38763
38764 2005-10-14  Simon Josefsson  <jas@extundo.com>
38765
38766         * tests/test-arcfour.c: New file.
38767
38768         * modules/arcfour, modules/arcfour-tests: New files.
38769
38770 2005-10-14  Simon Josefsson  <jas@extundo.com>
38771
38772         * m4/arcfour.m4: New file.
38773
38774 2005-10-14  Simon Josefsson  <jas@extundo.com>
38775
38776         * lib/arcfour.h, lib/arcfour.c: New files.
38777
38778 2005-10-14  Roland McGrath  <roland@redhat.com>
38779
38780         Import from libc.  [BZ #1331]
38781         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
38782         macro argument.
38783         Reported by Matej Vela <vela@debian.org>.
38784
38785 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
38786
38787         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
38788         include <wchar.h>; no longer needed.
38789
38790 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
38791
38792         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
38793
38794 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
38795         and  Ulrich Drepper  <drepper@redhat.com>
38796
38797         Import from libc.
38798         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
38799         instead of inline stream orientation test and two separate
38800         function calls.  Pay no attention to USE_IN_LIBIO.
38801
38802 2005-10-13  Simon Josefsson  <jas@extundo.com>
38803
38804         * modules/gc-hmac-md5-tests: New file.
38805
38806         * tests/test-gc-hmac-sha1.c: New file.
38807
38808         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
38809
38810         * modules/gc-hmac-md5-tests: New file.
38811
38812         * tests/test-gc-md5.c: New file.
38813
38814         * modules/gc-md5-tests: New file.
38815
38816 2005-10-13  Simon Josefsson  <jas@extundo.com>
38817
38818         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
38819         Move memory allocation outside of loop.
38820
38821 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
38822
38823         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
38824         intermediate directory is in a read-only file system.  Problem
38825         reported by Eric Blake.
38826
38827 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
38828
38829         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
38830
38831 2005-10-12  Simon Josefsson  <jas@extundo.com>
38832
38833         * tests/test-hmac-sha1.c: New file.
38834
38835         * modules/hmac-sha1-tests: New file.
38836
38837         * modules/hmac-sha1: New file.
38838
38839 2005-10-12  Simon Josefsson  <jas@extundo.com>
38840
38841         * modules/gc-sha1: New file.
38842
38843 2005-10-12  Simon Josefsson  <jas@extundo.com>
38844
38845         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
38846
38847         * tests/test-gc-pbkdf2-sha1.c: New file.
38848
38849 2005-10-12  Simon Josefsson  <jas@extundo.com>
38850
38851         * modules/gc-md5, modules/gc-hmac-md5: New files.
38852
38853         * modules/gc (Files): Remove md5, memxor and hmac files.
38854
38855 2005-10-12  Simon Josefsson  <jas@extundo.com>
38856
38857         * m4/gc-pbkdf2-sha1.m4: New file.
38858
38859         * m4/gc-hmac-sha1.m4: New file.
38860
38861         * m4/gc-sha1: New file.
38862
38863         * m4/hmac-sha1.m4: New file.
38864
38865 2005-10-12  Simon Josefsson  <jas@extundo.com>
38866
38867         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
38868
38869         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
38870
38871 2005-10-12  Simon Josefsson  <jas@extundo.com>
38872
38873         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
38874         suggested by Bruno Haible <bruno@clisp.org>.
38875
38876 2005-10-12  Simon Josefsson  <jas@extundo.com>
38877
38878         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
38879
38880 2005-10-12  Simon Josefsson  <jas@extundo.com>
38881
38882         * lib/gc-pbkdf2-sha1.c: New file.
38883
38884         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
38885
38886 2005-10-12  Simon Josefsson  <jas@extundo.com>
38887
38888         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
38889
38890         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
38891
38892 2005-10-12  Simon Josefsson  <jas@extundo.com>
38893
38894         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
38895         GC_USE_HMAC_MD5, respectively.
38896
38897         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
38898         (gc_md5): Fix typo.
38899
38900         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
38901
38902         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
38903
38904         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
38905
38906 2005-10-12  Bruno Haible  <bruno@clisp.org>
38907
38908         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
38909         Reported by Stepan Kasal <kasal@ucw.cz>.
38910
38911 2005-10-11  Simon Josefsson  <jas@extundo.com>
38912
38913         * tests/test-crc.c: New file.
38914
38915         * modules/crc, modules/crc-tests: New files.
38916
38917 2005-10-11  Simon Josefsson  <jas@extundo.com>
38918
38919         * m4/crc.m4: New file.
38920
38921 2005-10-11  Simon Josefsson  <jas@extundo.com>
38922
38923         * lib/gc.h: Add gc_hash and gc_hash_buffer.
38924
38925         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
38926
38927         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
38928
38929 2005-10-11  Simon Josefsson  <jas@extundo.com>
38930
38931         * lib/crc.h, lib/crc.c: New files.
38932
38933         * lib/gc.h (gc_hash_buffer): Add doc.
38934
38935 2005-10-11  Bruno Haible  <bruno@clisp.org>
38936
38937         * modules/c-strcasestr: New file.
38938         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
38939
38940 2005-10-11  Bruno Haible  <bruno@clisp.org>
38941
38942         * modules/c-strcase: New file.
38943         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
38944
38945 2005-10-11  Bruno Haible  <bruno@clisp.org>
38946
38947         * lib/strcasecmp.c: Include limits.h.
38948         (strcasecmp): Avoid integer overflow on exotic platforms.
38949         * lib/strncasecmp.c: Include limits.h.
38950         (strncasecmp): Avoid integer overflow on exotic platforms.
38951         Reported by Paul Eggert.
38952
38953 2005-10-11  Bruno Haible  <bruno@clisp.org>
38954
38955         * lib/c-strcasestr.h: New file, from GNU gettext.
38956         * lib/c-strcasestr.c: New file, from GNU gettext.
38957
38958 2005-10-11  Bruno Haible  <bruno@clisp.org>
38959
38960         * lib/c-strcase.h: New file, from GNU gettext.
38961         * lib/c-strcasecmp.c: New file, from GNU gettext.
38962         * lib/c-strncasecmp.c: New file, from GNU gettext.
38963
38964 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
38965
38966         * modules/mempcpy (License): GPL -> LGPL.
38967         * modules/strchrnul (License): Likewise.
38968         * modules/sysexits (License): Likewise.
38969
38970 2005-10-08  Simon Josefsson  <jas@extundo.com>
38971
38972         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
38973
38974 2005-10-07  Simon Josefsson  <jas@extundo.com>
38975
38976         * m4/memxor.m4: Remove gl_C_RESTRICT call.
38977
38978 2005-10-06  Simon Josefsson  <jas@extundo.com>
38979
38980         * tests/test-hmac-md5.c: New file.
38981
38982         * modules/hmac-md5-tests: New file.
38983
38984         * modules/hmac-md5: New file.
38985
38986 2005-10-06  Simon Josefsson  <jas@extundo.com>
38987
38988         * m4/hmac-md5.m4: New file.
38989
38990         * m4/memxor.m4: Require gl_C_RESTRICT.
38991
38992 2005-10-06  Simon Josefsson  <jas@extundo.com>
38993
38994         * lib/memxor.c (memxor): Avoid casts and warnings.
38995
38996 2005-10-06  Simon Josefsson  <jas@extundo.com>
38997
38998         * lib/hmac-md5.c: New file.
38999
39000         * lib/hmac.h: New file.
39001
39002 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
39003
39004         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
39005         promotes to int, not unsigned int, to catch the AIX 5.3
39006         compiler bug.
39007
39008 2005-10-05  Simon Josefsson  <jas@extundo.com>
39009
39010         * modules/memxor: New file.
39011
39012         * modules/iconv (Files): Move config.rpath to havelib, it is used
39013         there.
39014
39015         * modules/havelib (Files): Add config.rpath.
39016
39017 2005-10-05  Simon Josefsson  <jas@extundo.com>
39018
39019         * m4/memxor.m4: New file.
39020
39021 2005-10-05  Simon Josefsson  <jas@extundo.com>
39022
39023         * lib/memxor.c (memxor): Fix compiler error.
39024
39025         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
39026         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
39027
39028         * lib/memxor.h, lib/memxor.c: New files.
39029
39030         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
39031         we assume all systems have it, suggested by Jim Meyering
39032         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
39033         any systems lack sys/socket.h; mingw32 is known to lack it, but we
39034         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
39035         same reasons.
39036
39037 2005-10-05  Simon Josefsson  <jas@extundo.com>
39038
39039         * config/srclist.txt: Add glibc bug 1423 for md5.h.
39040
39041 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
39042
39043         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
39044         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
39045         needed, since the source code now assumes these .h files.
39046
39047 2005-10-05  Derek Price  <derek@ximbiot.com>
39048
39049         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
39050
39051 2005-10-05  Bruno Haible  <bruno@clisp.org>
39052
39053         * modules/stdint (License): Change to LGPL.
39054
39055 2005-10-04  Simon Josefsson  <jas@extundo.com>
39056
39057         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
39058         D. Baushke" <mdb@gnu.org>.
39059
39060 2005-10-04  Bruno Haible  <bruno@clisp.org>
39061
39062         * lib/verify.h (verify_true): Provide alternative definition for C++.
39063
39064 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
39065
39066         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
39067         (SSIZE_MAX): New macro, if not already defined.
39068         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
39069         than 2 GiB.
39070
39071 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
39072
39073         Sync from coreutils.
39074         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
39075         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
39076         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
39077         ULLONG_MAX doesn't work with 2.7.2.1.
39078
39079 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
39080
39081         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
39082         From Ben Pfaff.
39083
39084         * modules/exclude (Depends-on): Depend on verify.
39085         * modules/strtoimax (Depends-on): Likewise.
39086         * modules/utimecmp (Depends-on): Likewise.
39087
39088 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
39089
39090         * lib/exclude.c: Include verify.h.
39091         (verify): Remove.  All callers changed to use verify.h's version.
39092         * lib/strtoimax.c: Likewise.
39093         * lib/utimecmp.c: Likewis.e
39094
39095         Sync from coreutils.
39096         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
39097         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
39098         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
39099         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
39100         bother returning ENOSYS if settimeofday or stime fails; just let
39101         them return whatever errno they want to return.
39102         * lib/utimens.c: Include unistd.h, for dup2.
39103         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
39104         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
39105
39106 2005-10-02  Jim Meyering  <jim@meyering.net>
39107
39108         Sync from coreutils.
39109         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
39110         from glibc-2.2.5 that fails for read-only files.
39111
39112 2005-10-02  Jim Meyering  <jim@meyering.net>
39113
39114         Sync from coreutils.
39115         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
39116         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
39117         `#if HAVE_CONFIG_H'.
39118         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
39119         Remove AT_FDCWD test.
39120         Do not consume the fd unless successful.
39121         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
39122         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
39123         block, so that we don't even try to compile it if settimeofday is
39124         available.  This works around a compilation failure on OSF1 V5.1,
39125         due to stime requiring a `long int*' while tv_sec is `int'.
39126
39127 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
39128
39129         Sync from coreutils.
39130         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
39131         against `yes', rather than just testing for nonempty.
39132
39133 2005-10-01  Simon Josefsson  <jas@extundo.com>
39134
39135         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
39136         and Darwin.
39137
39138         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
39139         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
39140         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
39141         freeaddrinfo and gai_strerror are declared by the POSIX headers.
39142         Check if struct addrinfo is declared.
39143
39144 2005-10-01  Simon Josefsson  <jas@extundo.com>
39145
39146         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
39147         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
39148         AI_* and EAI_* definitions.  Protect function declarations.
39149
39150 2005-10-01  Jim Meyering  <jim@meyering.net>
39151
39152         Sync from coreutils.
39153
39154         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
39155         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
39156         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
39157         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
39158         in the inet and nsl libraries.  Required on Solaris 5.7.
39159
39160 2005-10-01  Jim Meyering  <jim@meyering.net>
39161
39162         Sync from coreutils.
39163         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
39164         in the inet and nsl libraries.  Required on Solaris 5.7.
39165
39166 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
39167
39168         * lib/getdelim.c (getdelim): Remove unused variables.
39169
39170 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
39171
39172         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
39173         so that the code works even with ancient cpp.  Portability problem
39174         with GCC 2.7.2.1 reported by Thomas M.Ott.
39175
39176 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
39177
39178         * modules/regex (Depends-on): Add strcase.
39179
39180         * modules/gethostname (Licence): Change from GPL to LGPL, since
39181         gethostname.c is a trivial implementation of a standard library
39182         function.
39183         * modules/poll (License): Change from GPL to LGPL, since it's
39184         derived from LGPL code.
39185
39186 2005-09-27  Jim Meyering  <jim@meyering.net>
39187
39188         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
39189         HAVE_CONFIG_H.
39190
39191         * lib/intprops.h (signed_type_or_expr__): Define.
39192         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
39193         for unsigned types.
39194
39195 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
39196
39197         * lib/verify.h (verify_expr): Remove, replacing with:
39198         (verify_true): New macro that returns true instead of void.
39199         (verify_type__): Remove.
39200         (verify): Use verify_true rather than verify_type__.
39201
39202 2005-09-26  Bruno Haible  <bruno@clisp.org>
39203
39204         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
39205         is necessary.
39206         (lib_SOURCES): Remove mbchar.c.
39207         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
39208         (Files): Add m4/mbrtowc.m4.
39209         * modules/mbiter: Likewise.
39210         * modules/mbuiter: Likewise.
39211
39212 2005-09-26  Bruno Haible  <bruno@clisp.org>
39213
39214         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
39215         compile mbchar.c if they are not both present.
39216         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
39217         * m4/mbiter.m4 (gl_MBITER): Likewise.
39218         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
39219         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
39220         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
39221
39222 2005-09-25  Jim Meyering  <jim@meyering.net>
39223
39224         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
39225         also uses socklen_t.
39226
39227 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
39228
39229         * lib/utimens.c (ENOSYS): Define if not already defined.
39230         (futimens): Support having a null PATH if the file descriptor
39231         is nonnegative.
39232
39233         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
39234         Remove.
39235         (__attribute): Define to empty unless GCC 3.1 or later.
39236         This works around a core dump on OpenBSD 3.4, which has GCC
39237         2.95.3, which dumps core when given __attribute__(()).  It also
39238         simplifies other tests, since we really don't want to bother with
39239         worrying about which ancient version of GCC supported what.
39240         Original problem reported by Yoann Vandoorselaere, with part of
39241         the fix suggested by Derek Price.
39242
39243 2005-09-24  Jim Meyering  <jim@meyering.net>
39244
39245         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
39246         so we can once again use a positive bitfield width of 1 -- now we
39247         don't have to explain why we were using a bitfield width of 2.
39248
39249 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
39250
39251         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
39252         and similarly for the other external symbols.  Problem reported
39253         by James Gallager.
39254
39255         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
39256         bug reported by Jim Meyering.
39257
39258         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
39259         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
39260         not needed, since socklen is a prerequisite module.
39261
39262 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
39263
39264         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
39265         Problem reported by Eric Blake.
39266         (getaddrinfo): Initialize se so that it's not garbage.
39267         Redo internal storage allocation so that it doesn't make unportable
39268         assumptions about alignment.
39269         Fix a memory leak.
39270
39271         * lib/utimens.c (futimens): Use futimesat if available.
39272         Prefer it to futimes since it doesn't have the futimes bug.
39273
39274         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
39275         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
39276         Instead, declare a function that returns a pointer to an array,
39277         and use verify_type__ to declare the size of the array.
39278         Problem and germ of a solution reported by Bruno Haible.
39279         (verify_type__): Use 2, not 1, for bitfield size, to avoid
39280         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
39281
39282 2005-09-23  Jim Meyering  <jim@meyering.net>
39283
39284         Sync from coreutils.
39285         Correct build failure (socklen_t not defined) on at least
39286         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
39287         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
39288
39289 2005-09-23  Jim Meyering  <jim@meyering.net>
39290
39291         * modules/getaddrinfo (Depends-on): Add socklen.
39292
39293 2005-09-23  Bruno Haible  <bruno@clisp.org>
39294
39295         * tests/test-verify.c: New file.
39296
39297 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
39298
39299         Sync from coreutils.
39300
39301         * modules/argmatch (Depends-on): Add verify.
39302         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
39303         unistd-safer.
39304         * modules/save-cwd (Depends-on): Likewise.
39305
39306         * modules/openat (Files): Add lib/openat-die.c.
39307         (Depends-on): Remove error, exitfail.
39308         Add dirname.
39309
39310         * modules/verify: New file.
39311         * MODULES.html.sh (Diagnostics <assert.h>): New section,
39312         with "verify" module.
39313
39314 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
39315
39316         Sync from coreutils.
39317
39318         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
39319         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
39320         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
39321         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
39322         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
39323         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
39324         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
39325         Don't bother checking for string.h, stdlib.h, unistd.h.
39326         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
39327         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
39328         module's job.
39329         * m4/jm-macros.m4 (gl_MACROS): Likewise.
39330         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
39331
39332         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
39333         (gl_GETDATE): Use it.
39334
39335         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
39336
39337 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
39338
39339         Sync from coreutils.
39340
39341         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
39342         stat-time.h.
39343         * lib/argmatch.h: Include verify.h
39344         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
39345         (ARGMATCH_ASSERT): Remove; unused.
39346         * lib/canonicalize.c: Assume STDC_HEADERS.
39347         * lib/exclude.c: Include "strcase.h".
39348         * lib/regex_internal.h [!defined _LIBC]: Likewise.
39349         * lib/getusershell.c: Include stdio--.h rather than stdio.h
39350         and stdio-safer.h.
39351         (getusershell): Call fopen, not fopen_safer.
39352         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
39353         Do not include unistd-safer.h.
39354         (save_cwd): Don't call fd_safer; no longer needed
39355         now that we include fcntl--.h.
39356
39357         * lib/getdate.y (relative_time): New type.
39358         (RELATIVE_TIME_0): New constant.
39359         (parser_control): Use relative_time instead of doing it ourselves.
39360         (%union): Add new relative_time rel member.
39361         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
39362         Now typeless.
39363         (relunit, relunit_snumber): Now of type rel.
39364         (zone, rel, relunit, get_date): Adjust to above changes.
39365
39366         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
39367         Do not include unistd-safer.h.
39368         (getloadavg): Don't call fd_safer; no longer needed
39369         now that we include fcntl--.h.
39370
39371         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
39372         (make_dir_parents): Treat ENOSYS like EEXIST.
39373
39374         Improve quality of diagnostics on restore_cwd failure.
39375         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
39376         (make_dir_parents): Last arg is now int * (for errno), not bool *.
39377         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
39378         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
39379         each time through the loop.  Do not diagnose restore_cwd failure;
39380         that is the caller's job (and perhaps the caller does not care).
39381
39382         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
39383         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
39384         If the file already exists but is not a directory, don't bother
39385         to try to make its parents.
39386         Close potential file descriptor leak if we can't chdir("/") (!).
39387         Don't always return true if chdir($PWD) fails; return true only
39388         if the requested action was done successfully (except for the
39389         chdir($PWD)).
39390         Don't log final directory unless we actually made it.
39391         Refactor to avoid duplicate code to fix up permissions.
39392         Don't attempt to fix up parent permissions if chdir($PWD) fails.
39393
39394         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
39395         to make it a bit faster and (I hope) clearer.
39396         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
39397         Fix bug in formats like %2N.
39398
39399         * lib/verify.h: New file.
39400
39401 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
39402
39403         Sync from coreutils.
39404         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
39405
39406 2005-09-22  Jim Meyering  <jim@meyering.net>
39407
39408         Sync from coreutils.
39409
39410         * m4/lstat.m4 (gl_FUNC_LSTAT):
39411         Use AC_LIBSOURCES to require lstat.c and lstat.h.
39412         Remove obsolete comment.
39413         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
39414         * m4/xstrtod.m4: Likewise.
39415
39416         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
39417
39418 2005-09-22  Jim Meyering  <jim@meyering.net>
39419
39420         Sync from coreutils.
39421
39422         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
39423
39424         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
39425         the .tm_year member, since otherwise gcc-4.0 would now warn about
39426         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
39427
39428         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
39429         order to avoid an unsuppressible warning from gcc on 64-bit systems.
39430
39431         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
39432         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
39433         when run in a time zone for which daylight savings time is in effect
39434         for the starting date.
39435
39436         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
39437         stop us from restricting permissions of just-created absolute-named
39438         directories.
39439         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
39440         to restore initial working directory.
39441         * lib/mkdir-p.c (make_dir_parents): New parameter:
39442         different_working_dir, to tell caller if/when we change the working
39443         directory and are unable to return to the initial one.
39444         * lib/mkdir-p.h (make_dir_parents): Update prototype.
39445         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
39446         `return false'.  This fixes a bug introduced on 2004-07-30.
39447
39448         * lib/openat.c (fdopendir): Be sure to close the supplied
39449         file descriptor before returning.  This makes our replacement
39450         implementation a little closer to Solaris's, where fdopendir
39451         ties the file descriptor to the returned DIR* pointer.
39452         * lib/openat.c (unlinkat): New function.
39453         * lib/openat.h (unlinkat): Add prototype.
39454         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
39455         (openat_restore_fail): Rename from openat_restore_die.
39456         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
39457
39458         Provide an alternative to exiting immediately upon save_cwd or
39459         restore_cwd failure.  Now, an application can arrange e.g.,
39460         to perform a longjump in that case.
39461         * lib/openat.c: Include dirname.h.
39462         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
39463         (rpl_openat, fdopendir, fstatat): Call openat_save_die
39464         and openat_restore_die rather than calling error directly.
39465         Don't include "error.h" or "exitfail.h"; they're no longer needed.
39466
39467         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
39468         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
39469         define.
39470
39471         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
39472         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
39473                             int utc, int nanoseconds);
39474         Background:
39475         date should not have to allocate a megabyte of virtual memory to
39476         handle a format argument like +%1048575T.  When implemented with
39477         strftime, it must allocate such a buffer, use strftime to fill it
39478         in, print it, then free it.
39479         With fprintftime, it simply prints everything and exits.
39480         With no need for memory allocation, that's one fewer way to fail.
39481         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
39482         optional field width, not before, so we accept %9:z, not %:9z.
39483         (my_strftime): Be sure to use L_('x') for literals.
39484
39485         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
39486         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
39487         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
39488         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
39489         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
39490         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
39491         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
39492         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
39493         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
39494         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
39495         * lib/xgethostname.c, lib/xreadlink.c:
39496         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
39497
39498         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
39499         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
39500         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
39501         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
39502         and don't include <sys/file.h>).
39503
39504 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
39505
39506         Sync from coreutils.
39507
39508         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
39509         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
39510         [!LDAV_DONE]: Avoid unused variable warning.
39511
39512 2005-09-21  Bruno Haible  <bruno@clisp.org>
39513
39514         * lib/unicodeio.h (unicode_to_mb): New declaration.
39515
39516 2005-09-20  Derek Price  <derek@ximbiot.com>
39517
39518         * lib/getaddrinfo.c: Don't include <netdb.h> included from
39519         getaddrinfo.h.
39520
39521 2005-09-20  Bruno Haible  <bruno@clisp.org>
39522
39523         * gnulib-tool: Remove trailing slashes from the values specified for
39524         --source-base, --m4-base, --tests-base, --aux-dir.
39525         Suggested by Simon Josefsson <jas@extundo.com>.
39526
39527 2005-09-20  Bruno Haible  <bruno@clisp.org>
39528
39529         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
39530         func_modules_to_filelist, func_import, func_create_testdir): Make all
39531         sorting results locale-independent, so that gnulib-cache.m4 doesn't
39532         change when gnulib-tool is invoked in a different locale.
39533
39534 2005-09-19  Simon Josefsson  <jas@extundo.com>
39535
39536         * m4/socklen.m4: Fix typo.
39537
39538 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39539
39540         Use a consistent style for including <config.h>.
39541         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
39542         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
39543         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
39544         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
39545         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
39546         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
39547         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
39548         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
39549         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
39550         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
39551         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
39552         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
39553         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
39554         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
39555         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
39556         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
39557         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
39558         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
39559         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
39560         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
39561         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
39562         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
39563         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
39564         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
39565         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
39566         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
39567         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
39568         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
39569         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
39570         lib/xstrtoumax.c, lib/yesno.c:
39571         Standardize inclusion of config.h.
39572         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
39573         lib/inttostr.h:  Removed inclusion of config.h from header files.
39574         * lib/inttostr.c:  Adjusted in-tree users.
39575         * lib/timespec.h: Remove superfluous warning to include config.h.
39576         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
39577         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
39578         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
39579         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
39580         config.h with HAVE_CONFIG_H.
39581
39582 2005-09-19  Jim Meyering  <jim@meyering.net>
39583
39584         * modules/pathmax (License): Change to LGPL.
39585
39586 2005-09-19  Derek Price  <derek@ximbiot.com>
39587
39588         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
39589
39590 2005-09-19  Bruno Haible  <bruno@clisp.org>
39591
39592         * gnulib-tool (import): Provide default for --tests-base.
39593
39594 2005-09-19  Bruno Haible  <bruno@clisp.org>
39595
39596         * doc/quote.texi: New file, extracted from gnulib.texi.
39597         * doc/ctime.texi: New file, extracted from gnulib.texi.
39598         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
39599         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
39600         * doc/gnulib.texi: Include them.
39601
39602 2005-09-18  Bruno Haible  <bruno@clisp.org>
39603
39604         Portability fix.
39605         * gnulib-tool (func_readlink): New function.
39606         (func_ln_if_changed): Use it.
39607
39608 2005-09-18  Bruno Haible  <bruno@clisp.org>
39609
39610         * gnulib-tool: Support --with-tests also with --import.
39611         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
39612         (func_import): Use variables $testsbase and $inctests. Emit a
39613         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
39614         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
39615         SUBDIRS += $testsdir.
39616         (func_create_testdir): Update.
39617
39618 2005-09-18  Bruno Haible  <bruno@clisp.org>
39619
39620         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
39621         instead of $dry_run.
39622         (func_cp_if_changed, func_mv_if_changed): Remove functions.
39623         (func_ln_if_changed): Don't handle dry-run here.
39624         (func_import): In dry-run mode, detect more precisely which actions
39625         would be performed, and don't use "...ing" verbs.
39626
39627 2005-09-18  Bruno Haible  <bruno@clisp.org>
39628
39629         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
39630         (func_import): Use join on two temporary files instead of three nested
39631         loops, in order to determine which files are new or old.
39632
39633 2005-09-18  Bruno Haible  <bruno@clisp.org>
39634
39635         * gnulib-tool (func_import): Comment out code that spits out the
39636         new files with --dry-run.
39637
39638 2005-09-18  Bruno Haible  <bruno@clisp.org>
39639
39640         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
39641
39642 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
39643
39644         * lib/stat-time.h: New file.
39645         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
39646         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
39647         in a different way.
39648         (timespec_cmp): New function.
39649         * lib/utimecmp.c: Include stat-time.h.
39650         (SYSCALL_RESOLUTION): Depend on whether various struct stat
39651         members exist, not on the obsolescent ST_MTIM_NSEC.
39652         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
39653
39654 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
39655
39656         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
39657
39658 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
39659
39660         * MODULES.html.sh (File system functions): Add stat-time.
39661         * modules/stat-time: New file.
39662         * modules/timespec (Files): Remove m4/st_mtim.m4; this
39663         is now done in a different way, by the stat-time module.
39664         * modules/utimecmp (Depends-on): Add stat-time.
39665
39666 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
39667
39668         * m4/st_mtim.m4: Remove.  Superseded by...
39669         * m4/stat-time.m4: New file.
39670         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
39671         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
39672
39673 2005-09-15  Derek Price  <derek@ximbiot.com>
39674
39675         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
39676
39677 2005-09-15  Derek Price  <derek@ximbiot.com>
39678
39679         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
39680         * lib/regex_internal.c: Ditto, using this...
39681         (__GNUC_PREREQ): ...new macro.
39682         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
39683         using...
39684         (__GNUC_PREREQ): ...this new macro.
39685
39686         * lib/strstr.h: Include string.h. Define strstr as a macro here.
39687
39688 2005-09-15  Derek Price  <derek@ximbiot.com>
39689             Paul Eggert  <eggert@cs.ucla.edu>
39690
39691         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
39692         changes, consolidating in...
39693         * lib/regex_internal.h: ...this file.
39694
39695 2005-09-13  Jim Meyering  <jim@meyering.net>
39696
39697         * lib/canon-host.c: Filter through gnu indent and reword comments
39698         slightly.
39699         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
39700
39701 2005-09-13  Derek Price  <derek@ximbiot.com>
39702
39703         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
39704         failure.
39705         Reported by Jim Meyering  <jim@meyering.net>.
39706
39707 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
39708
39709         * lib/base64.c: Typo.
39710         (base64_encode): Put b64str in initialized data section.
39711
39712 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
39713
39714         Merge glibc and coreutils changes into gnulib, plus a few
39715         extra fixes.
39716         * lib/md5.c: Use #error rather than a string.
39717         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
39718         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
39719         (__attribute__): Define to empty for non recent-GCC.
39720         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
39721         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
39722         Renamed from their non-__ counterparts, with new macros replacing
39723         them if not _LIBC.  Add __THROW attribute.
39724         (rol): Remove.
39725         (struct md5_ctx): Align buffer if using GCC.
39726         * lib/sha1.h (struct sha1_ctx): Likewise.
39727         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
39728         The old name was backwards.
39729         (NOTSWAP): Remove; not used.
39730         (rol): New macro, moved here from md5.h.
39731         (sha1_process_block): Remove a FIXME that doesn't make sense.
39732
39733 2005-09-12  Derek Price  <derek@ximbiot.com>
39734
39735         Return usable errors from canon-host.
39736         * lib/canon-host.h: New file.
39737         * lib/canon-host.c (canon_host): Wrap...
39738         (canon_host_r): ...this new function, which now relies exclusively on
39739         getaddrinfo.
39740         (ch_strerror): New function.
39741         (last_cherror): New global.
39742         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
39743         interface.
39744         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
39745         void *.
39746         (freeaddrinfo): Free ai->ai_canonname when set.
39747
39748 2005-09-12  Derek Price  <derek@ximbiot.com>
39749
39750         Make canon-host require getaddrinfo.
39751         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
39752         AC_LIBSOURCE canon-host.h.  Call...
39753         (gl_PREREQ_CANON_HOST): ...this new function, which requires
39754         gl_GETADDRINFO.
39755         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
39756
39757 2005-09-12  Derek Price  <derek@ximbiot.com>
39758
39759         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
39760         LGPL.
39761         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
39762
39763 2005-09-12  Derek Price  <derek@ximbiot.com>
39764
39765         * lib/gai_strerror.c: Include config.h when available.  Include
39766         getaddrinfo.h before other headers to test interface.
39767         Reported by Larry Jones <lawrence.jones@ugs.com>.
39768
39769 2005-09-12  Derek Price  <derek@ximbiot.com>
39770             Paul Eggert  <eggert@cs.ucla.edu>
39771
39772         * modules/glob (Files): Add glob-libc.h.
39773
39774 2005-09-12  Derek Price  <derek@ximbiot.com>
39775             Paul Eggert  <eggert@cs.ucla.edu>
39776
39777         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
39778         glob_.h, glob-libc.h.
39779         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
39780
39781 2005-09-12  Derek Price  <derek@ximbiot.com>
39782             Paul Eggert  <eggert@cs.ucla.edu>
39783
39784         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
39785         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
39786         protecting things that should be done only in gnulib contexts.
39787         * lib/glob_.h: New file, containing only the glob things needed for
39788         gnulib.
39789         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
39790         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
39791         (glob, globfree, glob_pattern_p): Now defined simply in terms of
39792         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
39793         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
39794         and to respect the namespace rules better.
39795
39796 2005-09-08  Simon Josefsson  <jas@extundo.com>
39797
39798         * modules/socklen: New file.
39799
39800 2005-09-08  Simon Josefsson  <jas@extundo.com>
39801
39802         * m4/socklen.m4: New file.
39803
39804 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
39805
39806         * modules/utimens (Files): Add m4/utimbuf.m4, since
39807         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
39808         Reported by Sergey Poznyakoff.
39809
39810 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
39811
39812         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
39813         definitions, since that's the preferred style in glibc.
39814         Fix a minor spacing issue, and update copyright notice to match
39815         glibc's.
39816
39817 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
39818
39819         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
39820
39821 2005-09-06  Simon Josefsson  <jas@extundo.com>
39822
39823         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
39824         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
39825
39826 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
39827
39828         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
39829         warning.
39830
39831 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
39832
39833         * config/srclist.txt: Add glibc bug 1302.
39834
39835 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
39836
39837         Change bitset word type from unsigned int to unsigned long int,
39838         as this has better performance on typical 64-bit hosts.
39839         Port bitset code to hosts with unusual word sizes.
39840         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
39841         (build_collating_symbol):
39842         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
39843         argument is a bitset.  This is merely a style issue, but it makes
39844         it clearer that an entire array is expected.
39845         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
39846         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
39847         Port to the case where bitset_word is not the same as unsigned int.
39848         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
39849         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
39850         Likewise.
39851         * lib/regexec.c (check_dst_limits_calc_pos_1,
39852         check_subexp_matching_top):
39853         (build_trtable, group_nodes_into_DFAstates):
39854         Likewise.
39855         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
39856         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
39857         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
39858         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
39859         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
39860         * lib/regcomp.c (optimize_subexps, lower_subexp):
39861         Work even if bitset_word has holes in its bitwise representation.
39862         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
39863         * lib/regexec.c (check_dst_limits_calc_pos_1,
39864         check_subexp_matching_top):
39865         Likewise.
39866         * lib/regex_internal.c (re_string_reconstruct):
39867         Don't assume UCHAR_MAX == 255.
39868         * lib/regex_internal.h (bitset_set_all): Likewise.
39869         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
39870         All uses changed.
39871         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
39872         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
39873         All uses changed.
39874         (BITSET_WORD_MAX): New macro.
39875         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
39876         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
39877         (bitset_empty, bitset_copy):
39878         Prefer sizeof (bitset) to multiplying it out ourselves.
39879         (bitset_not_merge): Remove; unused.
39880         (bitset_contain): Return bool, not unsigned int with one bit on.
39881         All callers changed.
39882         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
39883         alignment than re_node_set; do this by defining a new internal
39884         type struct dests_alloc and using it to allocate memory.
39885
39886 2005-09-05  Bruno Haible  <bruno@clisp.org>
39887
39888         * gnulib-tool (func_import): Fix comparison in handling of symbolic
39889         links.
39890
39891 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
39892
39893         * modules/size_max (Makefile.am): Add size_max.h
39894
39895 2005-09-04  Derek Price  <derek@ximbiot.com>
39896
39897         * gnulib-tool (func_import): Fix reversed $symbolic logic.
39898
39899 2005-09-03  Simon Josefsson  <jas@extundo.com>
39900
39901         * gnulib-tool: Fix typo.
39902
39903 2005-09-03  Simon Josefsson  <jas@extundo.com>
39904
39905         * config/srclist.txt: Add glibc bug 1293.
39906
39907 2005-09-03  Derek Price  <derek@ximbiot.com>
39908
39909         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
39910         From Larry Jones <lawrence.jones@ugs.com>.
39911
39912 2005-09-02  Simon Josefsson  <jas@extundo.com>
39913
39914         * modules/socklen: New file.
39915
39916 2005-09-02  Simon Josefsson  <jas@extundo.com>
39917
39918         * modules/havelib: New module.
39919
39920         * modules/gettext, modules/iconv, modules/lock, modules/readline:
39921         Use havelib.
39922
39923 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
39924
39925         Check for arithmetic overflow when calculating sizes, to prevent
39926         some buffer-overflow issues.  These patches are conservative, in the
39927         sense that when I couldn't determine whether an overflow was possible,
39928         I inserted a run-time check.
39929         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
39930         macros.
39931         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
39932         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
39933         (re_xnrealloc, re_x2nrealloc): New inline functions.
39934         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
39935         parse_bracket_exp):
39936         (build_equiv_class, build_charclass): Check for arithmetic overflow
39937         in size expression calculations.
39938         * lib/regex_internal.c (re_string_realloc_buffers):
39939         (build_wcs_upper_buffer, re_node_set_add_intersect):
39940         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
39941         (re_dfa_add_node, register_state): Likewise.
39942         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
39943         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
39944         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
39945         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
39946
39947 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
39948
39949         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
39950         m4/ulonglong.m4.  Problem reported by Martin Lambers.
39951
39952 2005-09-02  Bruno Haible  <bruno@clisp.org>
39953
39954         Support for lib vs. lib64 distinction on biarch platforms.
39955         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
39956         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
39957         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
39958
39959 2005-09-02  Bruno Haible  <bruno@clisp.org>
39960
39961         * gnulib-tool (import): In the other first-use case, provide defaults
39962         as well.
39963
39964 2005-09-02  Bruno Haible  <bruno@clisp.org>
39965
39966         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
39967         patches not yet found in the latest gettext release.
39968
39969 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
39970
39971         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
39972         to avoid a collision with bits/local_lim.h in glibc.
39973         All uses changed.  Problem reported by Dmitry V. Levin in
39974         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
39975
39976         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
39977         bugs in int versus size_t comparisons.
39978         (re_string_context_at): Fix bug where the code assumed that
39979         Idx is signed.
39980
39981         Use bool where appropriate.
39982         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
39983         All callers changed.
39984         (calc_eclosure_iter): Likewise, for ROOT arg.
39985         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
39986         (build_charclass_op): Likewise, for NON_MATCH arg.
39987         * lib/regex_internal.c (re_string_allocate, re_string_construct):
39988         (re_string_construct_common): Likewise, for ICASE arg.
39989         * lib/regexec.c (re_search_2_stub, re_search_stub):
39990         Likewise, for RET_LEN arg.
39991         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
39992         (set_regs): Likewise, for FL_BACKTRACK arg.
39993         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
39994         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
39995         (calc_eclosure_iter, parse_bracket_exp):
39996         Use bool for internal variables that are booleans.
39997         * lib/regexec.c (re_search_internal, check_matching,
39998         proceed_next_node):
39999         (set_regs, build_sifted_states, sift_states_bkref):
40000         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
40001         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
40002         (find_collation_sequence_value):
40003         Likewise.
40004         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
40005         (re_node_set_compare):
40006         Return bool, not int. All callers changed.
40007         * lib/regexec.c (check_halt_node_context, check_dst_limits):
40008         (build_trtable, check_node_accept): Likewise.
40009         * lib/regex_internal.h: Include stdbool.h.
40010
40011         Fix bugs uncovered when converting to bool.
40012         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
40013         failure instead of charging ahead blindly.
40014         * lib/regex_internal.c (register_state): Likewise.
40015         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
40016         for freeing internal storage.
40017         (group_nodes_into_DFA_states): Use unsigned int, not int, for
40018         bitset pieces used as boolean, to avoid undefined behavior
40019         on hosts that do int overflow checking.
40020
40021 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
40022
40023         * config/srclist.txt: Add glibc bugs 1285-1287.
40024
40025 2005-09-01  Jim Meyering  <jim@meyering.net>
40026
40027         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
40028         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
40029         Require gl_STAT_MACROS, too.
40030
40031 2005-09-01  Bruno Haible  <bruno@clisp.org>
40032
40033         * gnulib-tool (import): In the first-use case, provide defaults.
40034
40035 2005-09-01  Bruno Haible  <bruno@clisp.org>
40036
40037         * gnulib-tool (func_import): Remove the .tmp files.
40038
40039 2005-09-01  Bruno Haible  <bruno@clisp.org>
40040
40041         * gnulib-tool (func_import): Fix handling of symbolic links.
40042
40043 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
40044
40045         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
40046         old glibc regex code mishandles strings longer than 2**31 bytes.
40047         This patch fixes this when the regex code is used in gnulib
40048         (i.e., outside glibc).
40049
40050         This patch should not affect the use of the regex code inside
40051         glibc.  No doubt this problem also needs to be handled for glibc
40052         as well, but the result will be an incompatible change to the
40053         glibc ABI, and the old ABI will have to be supported too.  That
40054         can be the the subject for another patch.
40055
40056         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
40057         governing whether the rest of this patch is active.  By default,
40058         the macro is disabled and the patch has no effect.
40059         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
40060         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
40061         (struct re_pattern_buffer, re_search, re_search_2, re_match):
40062         (re_match_2, re_set_registers): Use the new types.
40063         * lib/regex_internal.h (Idx, re_hashval_t): New types.
40064         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
40065         New macros.
40066         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
40067         (re_string_context_at, bin_tree_t, re_dfastate_t):
40068         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
40069         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
40070         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
40071         (re_string_char_size_at, re_string_wchar_at):
40072         (re_string_elem_size_at):
40073         Use the new types and macros to port to 64-bit hosts.
40074         Use unsigned types for internal values, so that the code
40075         mostly works even for arrays larger than SSIZE_MAX.
40076         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
40077         (search_duplicated_node, calc_eclosure_iter, fetch_number):
40078         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
40079         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
40080         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
40081         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
40082         (calc_inveclosure, parse_dup_op, build_range_exp):
40083         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
40084         (fetch_number, create_token_tree, mark_opt_subexp):
40085         Likewise.
40086         * lib/regex_internal.c (re_string_construct_common,
40087         create_ci_newstate):
40088         (create_cd_newstate, re_string_allocate, re_string_construct):
40089         (re_string_realloc_buffers, build_wcs_upper_buffer):
40090         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
40091         (re_string_reconstruct, re_string_peek_byte_case):
40092         (re_string_fetch_byte_case, re_string_context_at):
40093         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
40094         (re_node_set_init_copy, re_node_set_add_intersect):
40095         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
40096         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
40097         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
40098         (re_acquire_state, re_acquire_state_context, register_state):
40099         Likewise.
40100         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
40101         search_cur_bkref_entry):
40102         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
40103         (re_search_internal, re_search_2_stub, re_search_stub)
40104         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
40105         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
40106         (update_cur_sifted_state, check_dst_limits):
40107         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
40108         (check_subexp_limits, sift_states_bkref, merge_state_array):
40109         (check_subexp_matching_top, get_subexp, get_subexp_sub):
40110         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
40111         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
40112         (expand_bkref_cache, check_node_accept_bytes):
40113         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
40114         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
40115         (acquire_init_state_context, check_halt_node_context):
40116         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
40117         (sift_states_backward, clean_state_log_if_needed):
40118         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
40119         (find_recover_state, transit_state_sb, transit_state_mb):
40120         (transit_state_bkref, build_trtable, match_ctx_clean):
40121         Likewise.
40122         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
40123         to work around an assumption that REG_MISSING is negative.
40124
40125         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
40126         (seek_collating_symbol_entry) [defined _LIBC]:
40127         (lookup_collation_sequence_value) [defined _LIBC]:
40128         (build_range_exp, build_collating_symbol) [defined _LIBC]:
40129         Use prototypes rather than old-style function definitions.
40130         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
40131         (transit_state_sb) [0]:
40132         (find_collation_sequence_value) [defined _LIBC]: Likewise.
40133
40134         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
40135         rm_eo.
40136
40137         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
40138         (optimize_subexps, lower_subexp):
40139         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
40140         since the signed shift might overflow.  Use 1u<<31 instead.
40141         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
40142         Likewise.
40143         * lib/regexec.c (check_dst_limits_calc_pos_1,
40144         check_subexp_matching_top): Likewise.
40145
40146         * lib/regcomp.c (optimize_subexps, lower_subexp):
40147         Use CHAR_BIT rather than 8, for clarity.
40148         * lib/regexec.c (check_dst_limits_calc_pos_1):
40149         (check_subexp_matching_top): Likewise.
40150         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
40151         have to worry about portability issues when shifting it left.
40152         Remove no-longer-needed test for table_size > 0.
40153         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
40154         in a word, as the resulting behavior is undefined.
40155         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
40156         in one case, a <= should have been an <, and in another case the
40157         whole test was missing.
40158         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
40159         the standard name CHAR_BIT.
40160         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
40161         this is not true on one's complement and signed-magnitude hosts.
40162
40163         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
40164         next_last_offset.
40165         (struct re_dfa_t): Remove unused member states_alloc.
40166         * lib/regcomp.c (init_dfa): Don't initialize unused members.
40167
40168 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
40169
40170         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
40171         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
40172         and large-file glibc and in 32-bit large-file Solaris.
40173
40174 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
40175
40176         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
40177         lengths fit in regoff_t; this isn't true if regoff_t is the same
40178         width as size_t.
40179         * lib/regex.c (re_search_internal): 5th arg is LAST_START
40180         (= START + RANGE) instead of RANGE.  This avoids overflow
40181         problems when regoff_t is the same width as size_t.
40182         All callers changed.
40183         (re_search_2_stub): Check for overflow when adding the
40184         sizes of the two strings.
40185         (re_search_stub): Check for overflow when adding START
40186         to RANGE; if it occurs, substitute the extreme value.
40187
40188 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
40189
40190         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
40191
40192 2005-08-31  Jim Meyering  <jim@meyering.net>
40193
40194         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
40195         a pointer-to-const.
40196         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
40197         (register_state): Likewise.
40198         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
40199         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
40200         (group_nodes_into_DFAstates): Likewise.
40201
40202 2005-08-31  Jim Meyering  <jim@meyering.net>
40203
40204         * check-module: Add a FIXME comment.
40205
40206 2005-08-31  Eric Blake  <ebb9@byu.net>
40207
40208         * modules/unistd-safer (Files): Add unistd--.h.
40209         * modules/stdio-safer (Files): Add stdio--.h.
40210
40211 2005-08-31  Derek Price  <derek@ximbiot.com>
40212
40213         * lib/getdelim.c (getdelim): Return EOF on EOF.
40214         Reported by Larry Jones <lawrence.jones@ugs.com>.
40215
40216 2005-08-31  Bruno Haible  <bruno@clisp.org>
40217
40218         Avoid unnecessary diffs in the generated lib/Makefile.am.
40219         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
40220         the generated files.
40221         (func_import): Don't set cmd.
40222
40223 2005-08-31  Bruno Haible  <bruno@clisp.org>
40224
40225         * lib/strstr.c: Include <stddef.h>, for NULL.
40226         * lib/strcasestr.c: Likewise.
40227         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40228
40229 2005-08-31  Bruno Haible  <bruno@clisp.org>
40230
40231         * gnulib-tool: New option --macro-prefix.
40232         (func_import): Use macro_prefix.
40233         (import): Handle option --macro-prefix.
40234
40235 2005-08-31  Bruno Haible  <bruno@clisp.org>
40236
40237         * gnulib-tool (import): Rename most ac_* variables to cached_*.
40238         Also use new variables cached_lgpl, cached_libtool.
40239
40240 2005-08-31  Bruno Haible  <bruno@clisp.org>
40241
40242         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
40243         always instantiating them.
40244
40245 2005-08-31  Bruno Haible  <bruno@clisp.org>
40246
40247         * gnulib-tool (func_import): Read the previous cached settings
40248         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
40249         earlier added by gnulib but are now dropped. Warn when a gnulib file
40250         overwrites a non-gnulib file.
40251
40252 2005-08-31  Bruno Haible  <bruno@clisp.org>
40253
40254         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
40255         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
40256         projects that don't keep autogenerated files in CVS. Put into
40257         actioncmd only the specified modules, not the transitive closure.
40258
40259 2005-08-31  Bruno Haible  <bruno@clisp.org>
40260
40261         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
40262         Create directories that shall be filled.
40263         (import): Don't look for gl_* macros in configure.ac. Recurse across
40264         all directories containing a gnulib-cache.m4 files, if meaningful.
40265
40266 2005-08-31  Bruno Haible  <bruno@clisp.org>
40267
40268         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
40269         (import): Set seen_libtool when we see gl_LIBTOOL.
40270
40271 2005-08-31  Bruno Haible  <bruno@clisp.org>
40272
40273         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
40274         declaration macro definitions from generated gnulib.m4.
40275
40276 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
40277
40278         * lib/iconvme.h: Add prototype for iconv_alloc.
40279
40280 2005-08-29  Simon Josefsson  <jas@extundo.com>
40281
40282         * lib/iconvme.c: Fix errno.
40283
40284 2005-08-29  Bruno Haible  <bruno@clisp.org>
40285
40286         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
40287         that it works when the directory contains spaces.
40288
40289 2005-08-29  Bruno Haible  <bruno@clisp.org>
40290
40291         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
40292
40293 2005-08-29  Bruno Haible  <bruno@clisp.org>
40294
40295         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
40296         Emit more advice.
40297
40298 2005-08-29  Bruno Haible  <bruno@clisp.org>
40299         and Stepan Kasal  <kasal@ucw.cz>
40300
40301         * check-module: If more parameters are given, check each of them
40302         separately; add more exceptions, as noted by Jim Meyering.
40303         (check_module): New procedure.
40304         (%exempt_header): Now contains all exceptions.
40305
40306 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
40307
40308         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
40309
40310 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
40311
40312         * lib/iconvme.c: Split iconv_string into iconv_alloc.
40313
40314 2005-08-28  Bruno Haible  <bruno@clisp.org>
40315
40316         * m4/gnulib-tool.m4: New file.
40317
40318 2005-08-27  Jim Meyering  <jim@meyering.net>
40319
40320         * modules/unistd-safer (Files): Add pipe-safer.c.
40321         * modules/fcntl-safer (Files): Add creat-safer.c.
40322
40323 2005-08-27  Jim Meyering  <jim@meyering.net>
40324
40325         * m4/stdlib-safer.m4: New file.  From coreutils.
40326         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
40327         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
40328         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
40329         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
40330         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
40331
40332 2005-08-27  Jim Meyering  <jim@meyering.net>
40333
40334         * lib/fopen-safer.c: Merge minor changes from coreutils.
40335         * lib/dup-safer.c: Likewise.
40336         * lib/fd-safer.c: Likewise.
40337
40338         Merge from coreutils.
40339         * lib/stdio--.h: New file.
40340         * lib/stdlib--.h: New file.
40341         * lib/mkstemp-safer.c: New file.
40342
40343         GNU tar needs these.
40344         * lib/pipe-safer.c: New file.
40345         * lib/creat-safer.c: New file.
40346         * lib/fcntl--.h (creat): Define to creat_safer.
40347         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
40348         * lib/unistd--.h (pipe): Define to pipe_safer.
40349         * lib/unistd-safer.h: Declare pipe_safer.
40350
40351 2005-08-26  Simon Josefsson  <jas@extundo.com>
40352
40353         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
40354         Haible <bruno@clisp.org>.
40355
40356 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
40357
40358         * lib/regex_internal.h: Remove all references to
40359         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
40360         or better.
40361         (bitset_not, bitset_merge, bitset_not_merge):
40362         (bitset_mask, re_string_allocate, re_string_construct):
40363         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
40364         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
40365         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
40366         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
40367         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
40368         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
40369         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
40370         (re_acquire_state_context):
40371         Remove unnecessary forward decls.
40372         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
40373         Put __attribute at function definition,
40374         now that the function decl has been removed.
40375         * lib/regex_internal.c (re_string_peek_byte_case):
40376         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
40377         Likewise.
40378
40379 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
40380
40381         * m4/regex.m4: Add AC_PREREQ(2.50).
40382         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
40383
40384 2005-08-25  Simon Josefsson  <jas@extundo.com>
40385
40386         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
40387         __fsetlocking.
40388
40389 2005-08-25  Simon Josefsson  <jas@extundo.com>
40390
40391         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
40392         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
40393         GLIBC specific code.
40394
40395 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
40396
40397         Make regex safe for g++.  This fixes one real bug (an "err"
40398         that should have been "*err").  g++ problem reported by
40399         Sam Steingold.
40400         * lib/regex_internal.h (re_calloc): New macro, consistent with
40401         re_malloc etc.  All callers of calloc changed to use re_calloc.
40402         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
40403         not int.  All callers changed.
40404         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
40405         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
40406         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
40407         (find_recover_state): Change "err" to "*err"; this fixes what
40408         appears to be a real bug.
40409         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
40410         versus int.
40411
40412 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
40413
40414         * modules/regex (Depends-on): Add malloc, since the code
40415         assumes that !malloc(0) means failure.
40416
40417 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
40418
40419         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
40420
40421         alloca modernization/simplification for regex.
40422         * lib/regex.c: Remove portability cruft for alloca.  This no longer
40423         needs to be at the start of the file, and can be moved into
40424         regex_internal.h and simplified.
40425         * lib/regex_internal.h: Include <alloca.h>.
40426         (__libc_use_alloca) [!defined _LIBC]: New macro.
40427         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
40428         now works outside glibc.
40429
40430 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
40431
40432         * config/srclist.txt: Add glibc bugs 1241, 1245.
40433
40434 2005-08-25  Jim Meyering  <jim@meyering.net>
40435
40436         * lib/open-safer.c: Include <config.h>.
40437         Otherwise, we'd lose LARGEFILE support in any file using
40438         e.g. "fcntl--.h"
40439
40440 2005-08-25  Bruno Haible  <bruno@clisp.org>
40441
40442         * m4/minmax.m4: Require autoconf 2.52.
40443         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
40444         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
40445         alternatives of translit over the alphabet.
40446         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
40447
40448 2005-08-24  Simon Josefsson  <jas@extundo.com>
40449
40450         * tests/test-getpass.c: New file.
40451
40452 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
40453
40454         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
40455         for GNU regex features.
40456
40457 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
40458
40459         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
40460         * lib/regex.h (regerror): Likewise.
40461
40462         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
40463         requires this.  (The code never needed it.)
40464
40465         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
40466         All uses of recently-renamed identifiers changed to use the new,
40467         POSIX-compliant names.  The code will build and run just fine
40468         without these changes, but it's better to eat our own dog food
40469         and use the standard-conforming names.
40470
40471         * lib/regex.h: Fix a multitude of POSIX name space violations.
40472         These changes have an effect only for programs that define
40473         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
40474         do not change anything for programs compiled in the normal way.
40475         Also, there is no effect on the ABI.
40476
40477         (_REGEX_SOURCE): New macro.
40478         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
40479         defined and _GNU_SOURCE is not; this fixes a name space violation.
40480
40481         Rename the following macros to obey POSIX requirements.
40482         The old names are still visible as macros if _REGEX_SOURCE is defined.
40483         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
40484         RE_BACKSLASH_ESCAPE_IN_LISTS.
40485         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
40486         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
40487         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
40488         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
40489         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
40490         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
40491         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
40492         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
40493         (REG_INTERVALS): renamed from RE_INTERVALS.
40494         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
40495         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
40496         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
40497         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
40498         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
40499         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
40500         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
40501         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
40502         RE_UNMATCHED_RIGHT_PAREN_ORD.
40503         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
40504         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
40505         (REG_DEBUG): renamed from RE_DEBUG.
40506         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
40507         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
40508         unusual, since we can't clash with the POSIX REG_ICASE.
40509         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
40510         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
40511         (REG_NO_SUB): renamed from RE_NO_SUB.
40512         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
40513         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
40514         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
40515         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
40516         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
40517         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
40518         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
40519         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
40520         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
40521         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
40522         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
40523         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
40524         RE_SYNTAX_POSIX_MINIMAL_BASIC.
40525         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
40526         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
40527         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
40528         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
40529         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
40530         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
40531         (REG_FIXED): Renamed from REGS_FIXED.
40532         (REG_NREGS): Renamed from RE_NREGS.
40533
40534         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
40535         of other REG_* macros, since POSIX says the user is allowed to
40536         #undef these macros selectively.
40537
40538         (reg_errcode_t): Update comment stating what other tables need
40539         to be consistent.
40540
40541         Rename the following enum values to obey POSIX requirements.
40542         The old names are still visible as macros.
40543         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
40544         is not defined, since GNU is supposed to be a superset of POSIX as
40545         much as possible, and since we want reg_errcode_t to be a signed
40546         type for implementation consistency.
40547         (_REG_NOERROR): Renamed from REG_NOERROR.
40548         (_REG_NOMATCH): Renamed from REG_NOMATCH.
40549         (_REG_BADPAT): Renamed from REG_BADPAT.
40550         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
40551         (_REG_ECTYPE): Renamed from REG_ECTYPE.
40552         (_REG_EESCAPE): Renamed from REG_EESCAPE.
40553         (_REG_ESUBREG): Renamed from REG_ESUBREG.
40554         (_REG_EBRACK): Renamed from REG_EBRACK.
40555         (_REG_EPAREN): Renamed from REG_EPAREN.
40556         (_REG_EBRACE): Renamed from REG_EBRACE.
40557         (_REG_BADBR): Renamed from REG_BADBR.
40558         (_REG_ERANGE): Renamed from REG_ERANGE.
40559         (_REG_ESPACE): Renamed from REG_ESPACE.
40560         (_REG_BADRPT): Renamed from REG_BADRPT.
40561         (_REG_EEND): Renamed from REG_EEND.
40562         (_REG_ESIZE): Renamed from REG_ESIZE.
40563         (_REG_ERPAREN): Renamed from REG_ERPAREN.
40564         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
40565         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
40566         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
40567         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
40568
40569         (_REG_RE_NAME, _REG_RM_NAME): New macros.
40570         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
40571         changed.  But support the old name if the new one is not defined
40572         and if _REGEX_SOURCE.
40573
40574         Change the following member names in struct re_pattern_buffer.
40575         The old names are still supported if !_REGEX_SOURCE.
40576         The new names are always supported, regardless of _REGEX_SOURCE.
40577         (re_buffer): Renamed from buffer.
40578         (re_allocated): Renamed from allocated.
40579         (re_used): Renamed from used.
40580         (re_syntax): Renamed from syntax.
40581         (re_fastmap): Renamed from fastmap.
40582         (re_translate): Renamed from translate.
40583         (re_can_be_null): Renamed from can_be_null.
40584         (re_regs_allocated): Renamed from regs_allocated.
40585         (re_fastmap_accurate): Renamed from fastmap_accurate.
40586         (re_no_sub): Renamed from no_sub.
40587         (re_not_bol): Renamed from not_bol.
40588         (re_not_eol): Renamed from not_eol.
40589         (re_newline_anchor): Renamed from newline_anchor.
40590
40591         Change the following member names in struct re_registers.
40592         The old names are still supported if !_REGEX_SOURCE.
40593         The new names are always supported, regardless of _REGEX_SOURCE.
40594         (rm_num_regs): Renamed from num_regs.
40595         (rm_start): Renamed from start.
40596         (rm_end): Renamed from end.
40597
40598         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
40599         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
40600         Prepend __ to parameter names.
40601
40602         Undo yesterday's changes.
40603
40604 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
40605
40606         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
40607         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
40608         lib/regex.c.
40609
40610 2005-08-24  Jim Meyering  <jim@meyering.net>
40611
40612         Sync from coreutils.
40613         * m4/fcntl-safer.m4: New file.
40614
40615         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
40616         and object files for this module.
40617
40618 2005-08-24  Jim Meyering  <jim@meyering.net>
40619
40620         Sync from coreutils.
40621         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
40622
40623 2005-08-24  Jim Meyering  <jim@meyering.net>
40624
40625         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
40626         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
40627
40628 2005-08-24  Jim Meyering  <jim@meyering.net>
40629
40630         * modules/fcntl-safer: New module.
40631         * modules/fts (Depends-on): Add fcntl-safer.
40632         * MODULES.html.sh (File descriptor based Input/Output):
40633         Add fcntl-safer.
40634
40635 2005-08-24  Bruno Haible  <bruno@clisp.org>
40636
40637         Support for unit test modules.
40638         * modules/README: Mention tests modules.
40639         * modules/TEMPLATE-TESTS: New file.
40640         * gnulib-tool: New options --extract-tests-module, --with-tests and
40641         --tests-base (unused for the moment).
40642         (testsbase, inctests): New variables.
40643         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
40644         (func_verify_module): Exclude TEMPLATE-TESTS.
40645         (func_verify_nontests_module, func_verify_tests_module): New functions.
40646         (func_get_dependencies): Add implicit dependency for tests modules.
40647         (func_get_tests_module): New function.
40648         (func_modules_transitive_closure): When --with-tests was specified,
40649         include the unit tests as well, unless explicitly avoided.
40650         (func_emit_lib_Makefile_am): Ignore the tests modules here.
40651         (func_emit_tests_Makefile_am): New function.
40652         (func_create_testdir): When --with-tests was specified, emit a
40653         tests/ directory.
40654         * MODULES.html.sh (Future developments): Update.
40655
40656 2005-08-24  Bruno Haible  <bruno@clisp.org>
40657
40658         * modules/tls-tests: New file.
40659         * tests/test-tls.c: New file, from GNU gettext.
40660
40661 2005-08-24  Bruno Haible  <bruno@clisp.org>
40662
40663         * modules/lock-tests: New file.
40664         * tests/test-lock.c: New file, from GNU gettext.
40665
40666 2005-08-24  Bruno Haible  <bruno@clisp.org>
40667
40668         * lib/lock.h: Add multiple inclusion guard.
40669         * lib/tls.h: Add multiple inclusion guard.
40670
40671 2005-08-24  Bruno Haible  <bruno@clisp.org>
40672
40673         * gnulib-tool: Add support for the --aux-dir option to
40674         --create-testdir, --create-megatestdir, --test, --megatest.
40675         (func_create_testdir, func_create_megatestdir): Optionally emit a
40676         AC_CONFIG_AUX_DIR directive.
40677         (create-testdir, create-megatestdir, test, megatest): Provide a
40678         default value for $auxdir.
40679
40680 2005-08-24  Bruno Haible  <bruno@clisp.org>
40681
40682         * gnulib-tool (import): Use compound statement instead of subshell
40683         where possible.
40684
40685 2005-08-24  Bruno Haible  <bruno@clisp.org>
40686
40687         * gnulib-tool (import): Change --aux-dir default to "build-aux".
40688
40689 2005-08-24  Bruno Haible  <bruno@clisp.org>
40690
40691         * gnulib-tool (func_version): Update.
40692
40693 2005-08-24  Bruno Haible  <bruno@clisp.org>
40694
40695         * gnulib-tool (func_import, func_create_testdir,
40696         func_create_megatestdir): Quote all autoconf macro arguments.
40697
40698 2005-08-24  Bruno Haible  <bruno@clisp.org>
40699
40700         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
40701         option --force, because --force causes the aclocal.m4 of each
40702         subdirectory to be newer than the corresponding config.h.in.
40703
40704 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
40705
40706         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
40707         All contents moved to gl_REGEX.
40708         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
40709         assume that it does.
40710
40711 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
40712
40713         * lib/regex.h (REG_NOSYS)
40714         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
40715         Define, since POSIX requires it as of 2001.
40716         (_REG_ENOSYS)
40717         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
40718         New private symbol, used to keep the enum signed in all cases.
40719         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
40720         Youngman in
40721         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
40722
40723         * lib/regex_internal.c (re_string_skip_chars, register_state):
40724         (calc_state_hash):
40725         Remove forward decls; no longer needed now that we use prototypes.
40726         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
40727         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
40728         (clean_state_log_if_needed): Likewise.
40729
40730 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
40731
40732         * config/srclist.txt: Add glibc bugs 1231-1233.
40733
40734 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
40735
40736         Fix problems reported by Sam Steingold in
40737         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
40738         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
40739         assumed that reg_errcode_t is a signed type, which is not
40740         necessarily true if _XOPEN_SOURCE is not defined.
40741         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
40742         since some compilers warn about it otherwise.
40743
40744 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
40745
40746         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
40747         (init_word_char, create_initial_state, duplicate_node_closure):
40748         (fetch_token, peek_token_bracket, build_range_exp):
40749         (build_collating_symbol): Remove forward decls; no longer needed
40750         now that we use prototypes.
40751
40752         * lib/regcomp.c:
40753         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
40754         (re_compile_fastmap_iter, regcomp, regerror, regfree):
40755         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
40756         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
40757         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
40758         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
40759         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
40760         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
40761         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
40762         (build_range_exp, build_collating_symbol, parse_bracket_exp):
40763         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
40764         (build_charclass, build_charclass_op, fetch_number, create_tree):
40765         (create_token_tree, mark_opt_subexp, duplicate_tree):
40766         Use prototypes rather than old-style definitions.
40767
40768         * lib/regex_internal.c:
40769         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
40770         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
40771         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
40772         (re_string_reconstruct, re_string_peek_byte_case):
40773         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
40774         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
40775         (re_node_set_init_copy, re_node_set_add_intersect):
40776         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
40777         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
40778         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
40779         (re_acquire_state, re_acquire_state_context, register_state):
40780         (create_ci_newstate, create_cd_newstate, free_state):
40781         Likewise.
40782         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
40783         re_search_2):
40784         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
40785         (re_search_internal, prune_impossible_nodes):
40786         (acquire_init_state_context, check_matching, static):
40787         (check_halt_node_context, check_halt_state_context, proceed_next_node):
40788         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
40789         (update_regs, sift_states_backward, build_sifted_states):
40790         (clean_state_log_if_needed, merge_state_array):
40791         (update_cur_sifted_state, add_epsilon_src_nodes):
40792         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
40793         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
40794         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
40795         (find_recover_state, check_subexp_matching_top, transit_state_mb):
40796         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
40797         (check_arrival, check_arrival_add_next_nodes):
40798         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
40799         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
40800         (check_node_accept_bytes, check_node_accept, extend_buffers):
40801         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
40802         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
40803         (sift_ctx_init):
40804         Likewise.
40805
40806         * lib/regex_internal.h:
40807         (re_string_allocate, re_string_construct, re_string_reconstruct):
40808         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
40809         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
40810         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
40811         (re_string_context_at, re_string_peek_byte_case):
40812         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
40813         is defined, since we now use prototypes always.
40814
40815         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
40816         C89 or better.  All uses removed.
40817
40818 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
40819
40820         * config/srclist.txt: Add glibc bugs 1220-1227.
40821
40822 2005-08-20  Jim Meyering  <jim@meyering.net>
40823
40824         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
40825         of unused local, dfa.
40826
40827 2005-08-20  Bruno Haible  <bruno@clisp.org>
40828
40829         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
40830
40831 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40832
40833         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
40834         (re_node_set_insert_last, re_dfa_add_node):
40835         Rename local variables to avoid GCC shadowing warnings.
40836
40837 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40838
40839         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
40840         [defined lint]: Suppress bogus uninitialized-variable warnings.
40841
40842         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
40843         and let the caller return REG_ESPACE if out of space.  This
40844         removes an uninitialied-variable warning with GCC 4.0.1, and also
40845         avoids taking the address of a local variable.  All callers
40846         changed.
40847
40848 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40849
40850         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
40851         $LIBCSRC/posix/regexec.c.
40852         Add glibc bug 1217 for regcomp.c.
40853
40854 2005-08-19  Jim Meyering  <jim@meyering.net>
40855
40856         * lib/regexec.c (proceed_next_node): Redo local variables to
40857         avoid GCC shadowing warnings.
40858
40859 2005-08-18  Bruno Haible  <bruno@clisp.org>
40860
40861         * lib/strstr.c (strstr): Fix return value in multibyte case.
40862         * lib/strcasestr.c (strcasestr): Likewise.
40863
40864 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
40865
40866         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
40867
40868 2005-08-17  Jim Meyering  <jim@meyering.net>
40869
40870         Make the %s format (seconds since the epoch) work for a negative
40871         number and when used with a zero-padded field width, e.g. %015s.
40872
40873         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
40874         label so that it precedes the code to set `digits'.  Otherwise,
40875         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
40876         print `00-22'.  Now, it prints `-0022', as it should.
40877
40878 2005-08-17  Bruno Haible  <bruno@clisp.org>
40879
40880         * modules/strstr (Files): Add m4/mbrtowc.m4.
40881         (Depends-on): Add mbuiter.
40882
40883 2005-08-17  Bruno Haible  <bruno@clisp.org>
40884
40885         * modules/strcasestr: New file.
40886         * MODULES.html.sh (String handling, based on ANSI C 89): Add
40887         strcasestr.
40888
40889 2005-08-17  Bruno Haible  <bruno@clisp.org>
40890
40891         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
40892
40893 2005-08-17  Bruno Haible  <bruno@clisp.org>
40894
40895         * modules/mbuiter: New file.
40896         * MODULES.html.sh (Extended multibyte and wide character utilities):
40897         Add mbuiter.
40898
40899 2005-08-17  Bruno Haible  <bruno@clisp.org>
40900
40901         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
40902         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
40903
40904 2005-08-17  Bruno Haible  <bruno@clisp.org>
40905
40906         * m4/strcasestr.m4: New file.
40907
40908 2005-08-17  Bruno Haible  <bruno@clisp.org>
40909
40910         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
40911         * lib/strstr.c: Completely rewritten, with multibyte locale support.
40912
40913 2005-08-17  Bruno Haible  <bruno@clisp.org>
40914
40915         * lib/strcasestr.h: New file.
40916         * lib/strcasestr.c: New file.
40917
40918 2005-08-17  Bruno Haible  <bruno@clisp.org>
40919
40920         * lib/strcasecmp.c: Use mbuiter.h.
40921
40922 2005-08-17  Bruno Haible  <bruno@clisp.org>
40923
40924         * lib/mbuiter.h: New file.
40925
40926 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
40927
40928         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
40929         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
40930         and gl_GETOPT are both invoked via different paths (as happens
40931         with GNU tar CVS because it uses both argp and getopt), the former
40932         wins.
40933
40934 2005-08-16  Bruno Haible  <bruno@clisp.org>
40935
40936         * modules/tls: New file.
40937         * MODULES.html.sh (Multithreading): Add tls.
40938
40939 2005-08-16  Bruno Haible  <bruno@clisp.org>
40940
40941         * modules/strnlen1: New file.
40942         * MODULES.html.sh (String handling): Add strnlen1.
40943
40944 2005-08-16  Bruno Haible  <bruno@clisp.org>
40945
40946         * modules/strcase (Files): Add m4/mbrtowc.m4.
40947         (Depends-on): Add strnlen1, mbchar.
40948
40949 2005-08-16  Bruno Haible  <bruno@clisp.org>
40950
40951         * modules/mbiter: New file.
40952         * MODULES.html.sh (Extended multibyte and wide character utilities):
40953         Add mbiter.
40954
40955 2005-08-16  Bruno Haible  <bruno@clisp.org>
40956
40957         * modules/mbfile: New file.
40958         * MODULES.html.sh (Extended multibyte and wide character utilities):
40959         Add mbfile.
40960
40961 2005-08-16  Bruno Haible  <bruno@clisp.org>
40962
40963         * modules/mbchar: New file.
40964         * MODULES.html.sh (Extended multibyte and wide character utilities):
40965         New section.
40966
40967 2005-08-16  Bruno Haible  <bruno@clisp.org>
40968
40969         * m4/tls.m4: New file, from GNU gettext.
40970
40971 2005-08-16  Bruno Haible  <bruno@clisp.org>
40972
40973         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
40974         always.
40975         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
40976
40977 2005-08-16  Bruno Haible  <bruno@clisp.org>
40978
40979         * m4/mbiter.m4: New file.
40980
40981 2005-08-16  Bruno Haible  <bruno@clisp.org>
40982
40983         * m4/mbfile.m4: New file.
40984
40985 2005-08-16  Bruno Haible  <bruno@clisp.org>
40986
40987         * m4/mbchar.m4: New file.
40988
40989 2005-08-16  Bruno Haible  <bruno@clisp.org>
40990
40991         * lib/tls.h: New file, from GNU gettext.
40992         * lib/tls.c: New file, from GNU gettext.
40993
40994 2005-08-16  Bruno Haible  <bruno@clisp.org>
40995
40996         * lib/strnlen1.h: New file.
40997         * lib/strnlen1.c: New file.
40998
40999 2005-08-16  Bruno Haible  <bruno@clisp.org>
41000
41001         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
41002         (mbi_init): Update.
41003         (mbi_avail, mbi_advance): Let the iteration end before the terminating
41004         NUL byte, not after it.
41005
41006 2005-08-16  Bruno Haible  <bruno@clisp.org>
41007
41008         * lib/strcase.h (strcasecmp): Add note in comments.
41009         * lib/strncasecmp.c: Use code from strcasecmp.c.
41010         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
41011         (strcasecmp): Work correctly in multibyte locales.
41012
41013 2005-08-16  Bruno Haible  <bruno@clisp.org>
41014
41015         * lib/mbiter.h: New file.
41016
41017 2005-08-16  Bruno Haible  <bruno@clisp.org>
41018
41019         * lib/mbfile.h: New file.
41020
41021 2005-08-16  Bruno Haible  <bruno@clisp.org>
41022
41023         * lib/mbchar.h: New file.
41024         * lib/mbchar.c: New file.
41025
41026 2005-08-16  Bruno Haible  <bruno@clisp.org>
41027
41028         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
41029         the valid ones. Makes the comparison operations transitive:
41030         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
41031         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
41032
41033 2005-08-15  Simon Josefsson  <jas@extundo.com>
41034
41035         * modules/ssize_t (License): Change to 'unlimited'.
41036
41037         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
41038
41039 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41040
41041         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
41042         Add comments for each pending glibc patch.
41043
41044 2005-08-15  Bruno Haible  <bruno@clisp.org>
41045
41046         * lib/regex.h (__restrict_arr): Don't define to __restrict if
41047         __cplusplus is defined.
41048
41049 2005-08-14  Jim Meyering  <jim@meyering.net>
41050
41051         Sync from coreutils.
41052
41053         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
41054         Use the hash-table-based cycle-detection code not just when
41055         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
41056         Reported by James Youngman in
41057         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
41058         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
41059         FTS_TIGHT_CYCLE_CHECK.
41060         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
41061         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
41062         once again.
41063         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
41064         * lib/fts.c (fd_safer): Remove decl.
41065         Include fcntl--.h rather than unistd-safer.h
41066         (fts_safe_changedir): Don't call fd_safer; no longer needed
41067         now that we include fcntl--.h.
41068
41069 2005-08-12  Simon Josefsson  <jas@extundo.com>
41070
41071         * modules/getndelim2: Use ssize_t module.
41072         * modules/getnline: Likewise.
41073         * modules/safe-read: Likewise.
41074         * modules/xreadlink: Likewise.
41075
41076         * modules/ssize_t: New file.
41077
41078 2005-08-12  Simon Josefsson  <jas@extundo.com>
41079
41080         * m4/readline.m4: Look for termcap, curses or ncurses if required.
41081
41082 2005-08-12  Simon Josefsson  <jas@extundo.com>
41083
41084         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41085         ssize_t.
41086
41087 2005-08-12  Simon Josefsson  <jas@extundo.com>
41088
41089         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
41090         readline, getdelim and check_version.
41091         (Support for systems lacking ISO C 99: Sizes of integer types):
41092         Add size_max.
41093
41094 2005-08-12  Bruno Haible  <bruno@clisp.org>
41095
41096         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
41097
41098 2005-08-11  Simon Josefsson  <jas@extundo.com>
41099
41100         * modules/readline: New file.
41101
41102         * modules/strnlen (Files): Add strnlen.h.
41103
41104 2005-08-11  Simon Josefsson  <jas@extundo.com>
41105
41106         * m4/readline.m4: New file.
41107
41108 2005-08-11  Simon Josefsson  <jas@extundo.com>
41109
41110         * lib/readline.h, readline.c: New file.
41111
41112 2005-08-11  Simon Josefsson  <jas@extundo.com>
41113
41114         * doc/gnulib.texi (Initial import, Finishing touches): Mention
41115         gl_AVOID.
41116
41117 2005-08-11  Bruno Haible  <bruno@clisp.org>
41118
41119         * lib/strnlen.h (strnlen): Change parameter name to match comment.
41120
41121 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
41122
41123         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
41124
41125 2005-08-10  Simon Josefsson  <jas@extundo.com>
41126
41127         * tests/test-iconvme.c: New file.
41128
41129 2005-08-10  Simon Josefsson  <jas@extundo.com>
41130
41131         * m4/strnlen.m4: New file.
41132
41133         * m4/strndup.m4: Don't check for strnlen declaration, done in
41134         strnlen.m4.
41135
41136 2005-08-10  Simon Josefsson  <jas@extundo.com>
41137
41138         * lib/strndup.c: Use strnlen.h.
41139
41140         * lib/strnlen.h: New file.
41141
41142 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
41143
41144         * README: Typos.
41145
41146 2005-08-02  Simon Josefsson  <jas@extundo.com>
41147
41148         * modules/readline: New file.
41149
41150 2005-08-02  Simon Josefsson  <jas@extundo.com>
41151
41152         * modules/getdelim: New file.
41153
41154         * modules/getline: Rewrite, don't use getndelim2.
41155
41156 2005-08-02  Simon Josefsson  <jas@extundo.com>
41157
41158         * m4/getline.m4: Separate out getdelim stuff into separate module.
41159
41160         * m4/getdelim.m4: New file.
41161
41162 2005-08-02  Simon Josefsson  <jas@extundo.com>
41163
41164         * lib/getline.h, getline.c: Rewrite.
41165
41166         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
41167
41168 2005-07-31  Bruno Haible  <bruno@clisp.org>
41169
41170         * lib/lock.h (gl_lock_initializer): New macro.
41171         (gl_lock_define_initialized): Use it.
41172         (gl_rwlock_initializer): New macro.
41173         (gl_rwlock_define_initialized): Use it.
41174         (gl_recursive_lock_initializer): New macro.
41175         (gl_recursive_lock_define_initialized): Use it.
41176
41177 2005-07-30  Karl Berry  <karl@gnu.org>
41178
41179         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
41180         Report from Ben Pfaff, regarding getopt.
41181
41182 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
41183
41184         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
41185         normal way.
41186         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
41187         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
41188         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
41189         (gl_GETOPT): Use the new macros.  Most of the implementation
41190         is moved to the new macros.  This is for programs like Emacs
41191         that don't want all the functionality of gl_GETOPT.
41192
41193 2005-07-26  Bruno Haible  <bruno@clisp.org>
41194
41195         * m4/lock.m4: Update from GNU gettext.
41196
41197 2005-07-26  Bruno Haible  <bruno@clisp.org>
41198
41199         * lib/lock.h: Update from GNU gettext.
41200         * lib/lock.c: Update from GNU gettext.
41201
41202 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
41203
41204         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
41205         obsolescent AC_TRY_RUN.  Include the default includes files, for
41206         'exit'.
41207
41208 2005-07-24  Bruno Haible  <bruno@clisp.org>
41209
41210         * modules/visibility: New file.
41211         * MODULES.html.sh (Misc): Add visibility.
41212
41213 2005-07-24  Bruno Haible  <bruno@clisp.org>
41214
41215         * m4/visibility.m4: New file.
41216
41217 2005-07-24  Bruno Haible  <bruno@clisp.org>
41218
41219         * doc/visibility.texi: New file.
41220
41221 2005-07-22  Bruno Haible  <bruno@clisp.org>
41222
41223         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
41224         $(ALLOCA_H), redundant through BUILT_SOURCES.
41225         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
41226         redundant through BUILT_SOURCES.
41227         * modules/byteswap (Makefile.am): Remove explicit dependency on
41228         $(BYTESWAP_H), redundant through BUILT_SOURCES.
41229         * modules/fnmatch (Makefile.am): Remove explicit dependency on
41230         $(FNMATCH_H), redundant through BUILT_SOURCES.
41231         * modules/getopt (Makefile.am): Remove explicit dependency on
41232         $(GETOPT_H), redundant through BUILT_SOURCES.
41233         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
41234         redundant through BUILT_SOURCES.
41235         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
41236         redundant through BUILT_SOURCES.
41237         * modules/stdbool (Makefile.am): Remove explicit dependency on
41238         $(STDBOOL_H), redundant through BUILT_SOURCES.
41239         * modules/stdint (Makefile.am): Remove explicit dependency on
41240         $(STDINT_H), redundant through BUILT_SOURCES.
41241         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
41242         Remove explicit dependency on $(SYSEXITS_H).
41243         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
41244
41245 2005-07-18  Simon Josefsson  <jas@extundo.com>
41246
41247         * lib/check-version.c (check_version): Accept identical versions too.
41248
41249 2005-07-18  Bruno Haible  <bruno@clisp.org>
41250
41251         * modules/lock: New file.
41252         * MODULES.html.sh (Multithreading): New section.
41253
41254 2005-07-18  Bruno Haible  <bruno@clisp.org>
41255
41256         * m4/lock.m4: New file, from GNU gettext.
41257
41258 2005-07-18  Bruno Haible  <bruno@clisp.org>
41259
41260         * lib/lock.h: New file, from GNU gettext.
41261         * lib/lock.c: New file, from GNU gettext.
41262
41263 2005-07-18  Bruno Haible  <bruno@clisp.org>
41264
41265         * lib/lock.h (gl_once_t): New type.
41266         (gl_once_define, gl_once): New macros.
41267         * lib/lock.c (fresh_once): New variable.
41268         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
41269         functions.
41270
41271 2005-07-16  Simon Josefsson  <jas@extundo.com>
41272
41273         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
41274         workaround, suggested by Bruno.
41275
41276 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
41277
41278         * modules/xalloc (Depends-on): Add xalloc-die.
41279         * modules/xvasprintf (Depends-on): Add xalloc-die.
41280
41281 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
41282
41283         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
41284         with a minor change.
41285
41286 2005-07-15  Bruno Haible  <bruno@clisp.org>
41287
41288         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
41289         When using lib/poll.c, define poll as rpl_poll.
41290
41291 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
41292
41293         * modules/argp (Depends-on): Remove unlocked-io.
41294
41295 2005-07-14  Derek Price  <derek@ximbiot.com>
41296
41297         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
41298         for glob symlink bug.
41299
41300 2005-07-14  Bruno Haible  <bruno@clisp.org>
41301
41302         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
41303         Instead, test for *_unlocked function declarations directly.
41304
41305 2005-07-11  Simon Josefsson  <jas@extundo.com>
41306
41307         * modules/size_max: New file.
41308
41309         * modules/xsize: Depend on size_max module for size_max.m4.
41310
41311 2005-07-11  Simon Josefsson  <jas@extundo.com>
41312
41313         * lib/size_max.h: New file.
41314
41315 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
41316
41317         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
41318         copyright symbol and the year.
41319         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
41320         (version_etc_va): Use parameterized copyright notice.
41321         Reword to conform to the current GNU coding standards.
41322
41323 2005-07-11  Karl Berry  <karl@gnu.org>
41324
41325         * doc/gnulib.texi (Quoting): new node.
41326         (Initial import): more info, from Patrice.
41327
41328 2005-07-11  Bruno Haible  <bruno@clisp.org>
41329
41330         * gnulib-tool (func_usage): Document option --avoid.
41331         (Command line options): Handle --avoid.
41332         (func_acceptable): New function.
41333         (func_modules_transitive_closure): Use it.
41334
41335 2005-07-11  Bruno Haible  <bruno@clisp.org>
41336
41337         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
41338         Reported by Jim Meyering.
41339
41340 2005-07-10  Bruno Haible  <bruno@clisp.org>
41341
41342         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
41343         Needed when size_t is smaller than 'unsigned int'.
41344         Reported by Paul Eggert.
41345
41346 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
41347
41348         * modules/argp (Depends-on): Add unlocked-io
41349
41350 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
41351
41352         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
41353         block of defines.
41354
41355 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
41356
41357         * config/srclist.txt: Comment out regcomp.c, since we have a porting
41358         fix now.
41359
41360 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
41361         and Paul Eggert  <eggert@cs.ucla.edu>
41362
41363         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
41364         in wint_t, not wchar_t.  Remove now-unnecessary cast.
41365
41366 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
41367
41368         * modules/regex (Files): Add lib/regex_internal.c,
41369         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
41370         (Depends-on): Add extensions.
41371         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
41372
41373 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
41374
41375         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
41376         pathconf.
41377         * m4/same.m4 (gl_SAME): Likewise.
41378         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
41379
41380         * m4/regex.m4: Adjust to new libc regex implementation.
41381         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
41382         all the .c and .h parts of (the new) regex.
41383         Quote the m4 stuff better.
41384         Check for RE_ICASE bug of old gnulib.
41385         Check for REG_STARTEND of recent libc.
41386         Rename local variables from jm_* to gl_*.
41387         Quote operand of "test -f".
41388         Say "recent enough" version of libc, not "version 2".
41389         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
41390         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
41391         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
41392         Remove check for btowc, isascii.
41393         Require AM_LANGINFO_CODESET.
41394
41395 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
41396
41397         * lib/regex.c, regex.h: Sync from libc.
41398         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
41399         * lib/regexec.c:
41400         New files, synced from libc, except that regex_internal.h
41401         currently has a small porting fix.
41402
41403 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
41404
41405         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
41406         regex_internal.c, regexec.c.
41407         Add regex_internal.h too, but as a comment, since the libc version
41408         is currently broken in gnulib mode.
41409
41410 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
41411
41412         Support programs like Emacs that use gnulib but not gettext.
41413         * MODULES.html.sh (Internationalization functions): Add gettext-h.
41414         * modules/gettext-h: New file.
41415         * modules/gettext (Files): Remove lib/gettext.h.
41416         (Depends-on): Add gettext-h.
41417         (Makefile.am): Remove lib_SOURCES.
41418         * modules/argmatch, modules/c-stack, modules/closeout:
41419         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
41420         * modules/execute, modules/file-type, modules/getaddrinfo:
41421         * modules/getopt, modules/human, modules/javacomp:
41422         * modules/javaexec, modules/mkdir-p, modules/obstack:
41423         * modules/openat, modules/pagealign_alloc, modules/pipe:
41424         * modules/quotearg, modules/regex, modules/rpmatch:
41425         * modules/unicodeio, modules/userspec, modules/version-etc:
41426         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
41427         * modules/xsetenv:
41428         Depend on gettext-h, not gettext.
41429
41430 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
41431
41432         * gnulib-tool (func_import): Add support for 'public domain' license.
41433         * modules/alloca, modules/atexit, modules/memmove:
41434         Now public domain, not GPL.
41435         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
41436         * modules/realloc, modules/strerror, modules/strtod:
41437         Now LGPL, not GPL.
41438
41439 2005-07-05  Bruno Haible  <bruno@clisp.org>
41440
41441         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
41442         autoconf CVS. Needed for mingw.
41443
41444 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
41445
41446         Remove the dependency of the strftime module on the tzset module.
41447         * modules/strftime (Depends-on): Remove dependency on tzset.
41448
41449 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
41450
41451         Remove the dependency of the strftime module on the tzset module.
41452         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
41453         gl_FUNC_TZSET_CLOBBER.
41454
41455 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
41456
41457         Remove the dependency of the strftime module on the tzset module.
41458         * lib/strftime.c (my_strftime)
41459         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
41460         Copy the input structure, to work around some of the bug with
41461         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
41462         Solaris releases, you should also use the tzset module, but we won't
41463         require it as a dependency any more since we don't want LGPLed code
41464         to depend on GPLed code.
41465
41466 2005-07-02  Jim Meyering  <jim@meyering.net>
41467
41468         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
41469         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
41470         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
41471         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
41472
41473 2005-07-02  Jim Meyering  <jim@meyering.net>
41474
41475         * lib/backupfile.c (backup_args): Change a `0' to NULL.
41476
41477 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
41478
41479         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
41480         declares only 'struct timespec;' (!).
41481
41482 2005-07-01  Jim Meyering  <jim@meyering.net>
41483
41484         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
41485         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
41486         * lib/save-cwd.c, tempname.c:
41487         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
41488         and don't include <sys/file.h>).
41489
41490 2005-06-29  Jim Meyering  <jim@meyering.net>
41491
41492         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
41493         type name.  Use the variable name instead.
41494         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
41495         Likewise.
41496
41497 2005-06-28  Simon Josefsson  <jas@extundo.com>
41498
41499         * modules/check-version (Files): Add check-version.m4.
41500
41501 2005-06-28  Simon Josefsson  <jas@extundo.com>
41502
41503         * m4/check-version.m4: New file, suggested by Jim Meyering
41504         <jim@meyering.net>.
41505
41506 2005-06-28  Simon Josefsson  <jas@extundo.com>
41507
41508         * lib/check-version.h, lib/check-version.c: New files.
41509
41510 2005-06-28  Simon Josefsson  <jas@extundo.com>
41511
41512         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
41513         collision with global variable.  Better indentation.  Don't
41514         increment buffer pointer beyond buffer end.  Based on comments
41515         from Paul Eggert <eggert@cs.ucla.edu>.
41516
41517         * lib/base64.h: Indent.
41518
41519 2005-06-28  Simon Josefsson  <jas@extundo.com>
41520
41521         * doc/gnulib.texi (Library version handling): New section.
41522
41523 2005-06-28  Jim Meyering  <jim@meyering.net>
41524
41525         * check-module (find_included_lib_files): Hard-code another
41526         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
41527         but modules/fts-lgpl (correctly) does not list those files.
41528
41529         * modules/canonicalize (Files): Add lib/pathmax.h.
41530
41531 2005-06-25  Simon Josefsson  <jas@extundo.com>
41532
41533         * modules/check-version: New file.
41534
41535 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
41536
41537         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
41538         initializer of struct addrinfo, as an indication that we don't
41539         care how many members the structure has.
41540
41541 2005-06-24  Derek Price  <derek@ximbiot.com>
41542         and Bruno Haible  <bruno@clisp.org>
41543
41544         Remove stat module & update lstat.
41545         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
41546         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
41547         * m4/stat.m4: Remove this file.
41548
41549 2005-06-24  Derek Price  <derek@ximbiot.com>
41550         and Bruno Haible  <bruno@clisp.org>
41551
41552         Remove stat module & update lstat.
41553         * lib/stat.c: Remove this file...
41554         (slash_aware_lstat): ...moving this content and its support...
41555         * lib/lstat.c (rpl_lstat): ...into here.
41556         * lib/lstat.h: New file.
41557
41558 2005-06-24  Derek Price  <derek@ximbiot.com>
41559         and Bruno Haible  <bruno@clisp.org>
41560
41561         Remove stat module & update lstat.
41562         * config/srclist.txt (libc sources): Remove stat.
41563
41564 2005-06-24  Derek Price  <derek@ximbiot.com>
41565         and Bruno Haible  <bruno@clisp.org>
41566
41567         Remove stat module & update lstat.
41568         * MODULES.html.sh (stat): Remove.
41569         * MODULES.html: Regenerated.
41570         * modules/lstat (Description): Correct function name.
41571         (Files): Add "lstat.h".
41572         (Depends-on): Remove stat, add xalloc, stat-macros.
41573         * modules/stat: Remove this file.
41574         (Include): Add "lstat.h", remove <sys/stat.h>.
41575
41576 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
41577
41578         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
41579         (ranged_convert): Don't save conversion in a temporary struct.
41580         This causes a warning with GCC 4.0.0, and anyway in the typical
41581         case it's not worth the extra 100 bytes or so of code.
41582         (ranged_convert, __mktime_internal): When calling a function via a
41583         pointer P, use P () rather than (*P) (), as we now assume C89 or
41584         better.
41585
41586 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
41587
41588         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
41589         "who -r" failed to give output.  Problem reported by Tim Waugh.
41590
41591         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
41592         (xcalloc): Use it to avoid needless tests.
41593         Problem reported by Jim Meyering.
41594
41595 2005-06-20  Derek Price  <derek@ximbiot.com>
41596
41597         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
41598         unnecessary for Autoconfs > 2.59c.
41599
41600 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41601
41602         * lib/argp.h (__option_is_short): Check upper limit of
41603         __key. Isprint() requires its argument to have the value
41604         of an unsigned char or EOF.
41605
41606 2005-06-16  Jim Meyering  <jim@meyering.net>
41607
41608         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
41609         when either N or S is zero.
41610
41611 2005-06-16  Derek Price  <derek@ximbiot.com>
41612
41613         * m4/bison.m4: Declare YACC & YFLAGS precious.
41614
41615 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
41616
41617         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
41618         multibyte string or pattern, fall back on unibyte matching.
41619         Problem reported by James Youngman.
41620
41621 2005-06-08  Bruno Haible  <bruno@clisp.org>
41622
41623         * modules/csharpcomp: New file.
41624         * MODULES.html.sh (C#): Add csharpcomp.
41625
41626 2005-06-08  Bruno Haible  <bruno@clisp.org>
41627
41628         * m4/csharpcomp.m4: New file, from GNU gettext.
41629
41630 2005-06-08  Bruno Haible  <bruno@clisp.org>
41631
41632         * lib/csharpcomp.h: New file, from GNU gettext.
41633         * lib/csharpcomp.c: New file, from GNU gettext.
41634         * lib/csharpcomp.sh.in: New file, from GNU gettext.
41635
41636 2005-06-08  Bruno Haible  <bruno@clisp.org>
41637
41638         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
41639         warning on mingw.
41640
41641 2005-06-07  Derek Price  <derek@ximbiot.com>
41642
41643         Sync from CVS.
41644         * lib/glob_.h: Indent nested #ifdef.
41645
41646 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
41647
41648         Sync from coreutils.
41649         Use "file name" when talking about file names, instead of "filename"
41650         or "path", as per the GNU coding standards.
41651         * lib/mkdir-p.c: Renamed from makepath.c.
41652         (make_dir_parents): Renamed from make_path.  All callers changed.
41653         * lib/mkdir-p.h: Likewise.  All includers changed.
41654         * lib/filenamecat.c: Renamed from path-concat.c.
41655         (file_name_concat): Renamed from path_concat.  All callers changed.
41656         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
41657         * lib/filenamecat.h: Likewise.  All includers changed.
41658         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
41659         in comments or local variable names.
41660         * lib/basename.c: Likewise.
41661         * lib/canonicalize.c, canonicalize.h: Likewise.
41662         * lib/dirname.c, dirname.h: Likewise.
41663         * lib/euidaccess.c: Likewise.
41664         * lib/exclude.c: Likewise
41665         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
41666         * lib/fsusage.c, fsuage.h: Likewise.
41667         * lib/fts.c, fts_.h: Likewise.
41668         * lib/getcwd.c: Likewise.
41669         * lib/getloadavg.c: Likewise.
41670         * lib/mkstemp.c: Likewise.
41671         * lib/mountlist.c, mountlist.h: Likewise.
41672         * lib/openat.c, openat.h: Likewise.
41673         * lib/readlink-stub.c: Likewise.
41674         * lib/readutmp.c, readutmp.h: Likewise.
41675         * lib/rename.c: Likewise.
41676         * lib/rmdir.c: Likewise.
41677         * lib/same.c: Likewise.
41678         * lib/savedir.c: Likewise.
41679         * lib/stripslash.c: Likewise.
41680         * lib/tempname.c: Likewise.
41681         * lib/xreadlink.c: Likewise.
41682         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
41683         All uses changed.
41684         * lib/exclude.h: Likewise.
41685
41686         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
41687         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
41688         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
41689         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
41690         * lib/pathmax.h: Include <limits.h> unconditionally, since other
41691         files have been getting away with it for years (MORE/BSD 4.3
41692         is extinct now).
41693         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
41694         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
41695
41696         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
41697         Define to 256, not 255, as per modern POSIX.
41698
41699 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
41700
41701         Sync from coreutils.
41702         Use "file name" when talking about file names, instead of "filename"
41703         or "path", as per the GNU coding standards.
41704         * MODULES.html.sh: mkdir-p renamed from makepath.
41705         filenamecat renamed from path-concat.
41706         * modules/filenamecat: Renamed from modules/path-concat.
41707         (Files): filenamecat.h and filenamecat.c renamed from
41708         path-concat.h and path-concat.c.
41709         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
41710         (Include): filenamecat.h, not path-concat.h.
41711         * modules/mkdir-p: Renamed from modules/makepath.
41712         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
41713         makepath.c.
41714         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
41715         (Include): mkdir-p.h, not makepath.h.
41716
41717 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
41718
41719         Sync from coreutils.
41720         * m4/mkdir-p.m4: Renamed from makepath.m4.
41721         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
41722         Rename files from makepath.c to mkdir-p.c, and from
41723         makepath.h to mkdir-p.h.
41724         * m4/filenamecat.m4: Renamed from path-concat.m4.
41725         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
41726         Rename files from path-concat.c to filenamecat.c,
41727         and from path-concat.h to filenamecat.h.
41728         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
41729         "file name" in local variables or comments.
41730         * m4/rename.m4: Likewise.
41731
41732 2005-06-01  Bruno Haible  <bruno@clisp.org>
41733
41734         * modules/csharpexec: New file.
41735         * MODULES.html.sh (C#): New section.
41736
41737 2005-06-01  Bruno Haible  <bruno@clisp.org>
41738
41739         * m4/csharp.m4: New file, from GNU gettext.
41740         * m4/csharpexec.m4: New file, from GNU gettext.
41741
41742 2005-06-01  Bruno Haible  <bruno@clisp.org>
41743
41744         * lib/csharpexec.h: New file, from GNU gettext.
41745         * lib/csharpexec.c: New file, from GNU gettext.
41746         * lib/csharpexec.sh.in: New file, from GNU gettext.
41747
41748 2005-05-31  Derek Price  <derek@ximbiot.com>
41749             Paul Eggert  <eggert@cs.ucla.edu>
41750
41751         Sync from cvs.
41752         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
41753
41754 2005-05-31  Derek Price  <derek@ximbiot.com>
41755             Paul Eggert  <eggert@cs.ucla.edu>
41756
41757         Sync from cvs.
41758         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
41759
41760 2005-05-29  Derek Price  <derek@ximbiot.com>
41761
41762         * config/srclist.txt (glob_.h, glob.c): Add these files.
41763
41764 2005-05-29  Derek Price  <derek@ximbiot.com>
41765
41766         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
41767         * modules/glob: New file.
41768         * modules/getlogin_r: Add link to POSIX spec in description.
41769
41770 2005-05-29  Derek Price  <derek@ximbiot.com>
41771             Paul Eggert  <eggert@cs.ucla.edu>
41772
41773         * m4/glob.m4: New file.
41774
41775 2005-05-29  Derek Price  <derek@ximbiot.com>
41776             Paul Eggert  <eggert@cs.ucla.edu>
41777
41778         * lib/glob_.h, lib/glob.c: New files.
41779
41780 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
41781
41782         * modules/fts (Files): Remove m4/inttypes-pri.m4.
41783         * modules/fts-lgpl (Depends-on): Remove gettext.
41784
41785 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
41786
41787         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
41788         and don't require gt_INTTYPES_PRI.
41789
41790 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
41791
41792         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
41793
41794         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
41795         the configuration hassle isn't worth it.
41796         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
41797         (LONGEST_MODIFIER, PRIuMAX): Remove.
41798
41799 2005-05-27  Bruno Haible  <bruno@clisp.org>
41800
41801         * lib/getlogin_r.h: Remove second include of <stddef.h>.
41802
41803 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
41804
41805         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
41806         _POSIX_PTHREAD_SEMANTICS for Solaris.
41807
41808 2005-05-25  Derek Price  <derek@ximbiot.com>
41809
41810         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
41811
41812 2005-05-25  Derek Price  <derek@ximbiot.com>
41813             Paul Eggert  <eggert@cs.ucla.edu>
41814
41815         * modules/getlogin_r, m4/getlogin_r.m4: New files.
41816         * lib/getlogin_r.c, getlogin_r.h: New files.
41817
41818 2005-05-25  Bruno Haible  <bruno@clisp.org>
41819             Derek Price  <derek@ximbiot.com>
41820
41821         * lib/getlogin_r.h: Simplify API documentation.
41822
41823 2005-05-23  Derek Price  <derek@ximbiot.com>
41824
41825         * modules/minmax (Files): Add m4/minmax.m4.
41826         (configure.ac): Add gl_MINMAX.
41827
41828 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
41829
41830         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
41831         so that unistd-safer.h (GPL'ed code) need not be included.
41832
41833 2005-05-22  Bruno Haible  <bruno@clisp.org>
41834
41835         * m4/minmax.m4: New file.
41836         Based on a patch by Derek Price <derek@ximbiot.com>.
41837
41838 2005-05-22  Bruno Haible  <bruno@clisp.org>
41839
41840         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
41841         (INT64_MIN): Fix definition.
41842         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
41843
41844         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
41845         NEED_SIGNED_INT_TYPES.
41846
41847         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
41848         HAVE_SYSTEM_INTTYPES.
41849
41850 2005-05-22  Bruno Haible  <bruno@clisp.org>
41851
41852         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
41853         Also include <sys/param.h> if it defines MIN, MAX.
41854         Based on a patch by Derek Price <derek@ximbiot.com>.
41855
41856 2005-05-21  Jim Meyering  <jim@meyering.net>
41857
41858         * modules/fts (Files): Add m4/inttypes-pri.m4.
41859         (Depends-on): Add lstat and remove gettext.  Alphabetize.
41860
41861 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
41862
41863         New fts module.
41864         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
41865         (setup_dir, free_dir): New functions.
41866         (enter_dir, leave_dir): Define trivial
41867         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
41868         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
41869         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
41870         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
41871         Move to fts-cycle.c.
41872         (fts_open): Use setup_dir.
41873         (fts_close): Use free_dir.
41874         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
41875         This adds a label and some gotos, but the alternatives were messier.
41876         Check for memory allocation failure when entering a dir.
41877         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
41878         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
41879         (FTS): New member fts_cycle, that is a union that contains the
41880         old active_dir_ht and cycle_state.  All uses changed to mention
41881         fts_cycle.ht and fts_cycle.state.
41882         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
41883         fts.c, with the following changes:
41884         (setup_dir, free_dir): New functions.
41885         (enter_dir): Now returns bool.  Return true if successful, false
41886         if memory exhausted.  All callers changed.
41887         Do not bother partly cleaning up on
41888         memory allocation failure; that is free_dir's job.
41889         However, free ad if hash_insert fails, to avoid memory leak.
41890         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
41891         fts->fts_options to see which union member to use.
41892
41893 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
41894
41895         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
41896         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
41897
41898 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
41899
41900         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
41901
41902 2005-05-20  Jim Meyering  <jim@meyering.net>
41903
41904         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
41905         Now a macro, to pacify GCC.
41906
41907 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
41908
41909         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
41910         of -1.
41911
41912 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
41913
41914         * lib/chown.c (rpl_chown): Return -1 on failure.
41915
41916 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
41917
41918         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
41919         Don't check for stddef.h.
41920         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
41921         don't use its results.
41922         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
41923         since we include them unconditionally.  Don't require
41924         AM_STDBOOL_H, since stdbool is a prerequisite.
41925         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
41926         since we assume C89 or better.
41927         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
41928         as we don't use their results.
41929         Don't check for fchdir, memmove, memset, strrchr, as we use
41930         them unconditionally.
41931         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
41932         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
41933
41934 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
41935
41936         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
41937         Include <stddef.h> unconditionally, since we assume C89 now.
41938         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
41939         * lib/fts.c: Include fts_.h first, to check interface.
41940         Do not include intprops.h; no longer needed.
41941         Include cycle-check.h and hash.h, since fts_.h no longer does.
41942         Remove unnecessary casts of closedir to void.
41943         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
41944         decide whether to decrement nlinks.
41945         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
41946         (FTS): Use struct hash_table * instead of Hash_table, so that
41947         we no longer need to include hash.h here.
41948
41949 2005-05-18  Jim Meyering  <jim@meyering.net>
41950
41951         * modules/dirfd (License): Change to LGPL.  Most of the code
41952         is already in the public domain.
41953
41954 2005-05-18  Jim Meyering  <jim@meyering.net>
41955
41956         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
41957         Reported by Yoann Vandoorselaere.
41958
41959 2005-05-17  Jim Meyering  <jim@meyering.net>
41960
41961         * m4/fts.m4: New file, from coreutils.
41962
41963 2005-05-17  Jim Meyering  <jim@meyering.net>
41964
41965         * lib/fts.c, lib/fts_.h: New files, from coreutils.
41966
41967 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
41968
41969         Sync from coreutils.
41970         * m4/unlinkdir.m4: New file.
41971
41972 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
41973
41974         Sync from coreutils.
41975         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
41976         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
41977         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
41978         White space changes only.
41979         * lib/makepath.c (make_path): Port to hosts where leading "//" is
41980         special.
41981         * lib/yesno.c: Include getline.h, not ctype.h.
41982         (yesno): Don't remove leading white space; POSIX doesn't allow it.
41983         Use getline to remove arbitrary restriction on response length.
41984
41985 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
41986
41987         * config/srclist-update: Spell out "Street" in FSF postal
41988         mail address; this is the style the FSF seems to prefer.
41989
41990         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
41991         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
41992         this updates FSF postal mail address.
41993
41994         Sync from coreutils.
41995         * modules/unlinkdir: New file.
41996         * modules/yesno (Depends-on): Add getline.
41997         * MODULES.html.sh (File system functions): Add unlinkdir.
41998
41999 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
42000
42001         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
42002         lib/strsep.h:
42003         Change the initial comment to refer to GPL, not LGPL.
42004         gnulib-tool will change it to LGPL as needed.
42005
42006         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
42007         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
42008         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
42009         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
42010         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
42011         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
42012         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
42013         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
42014         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
42015         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
42016         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
42017         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
42018         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
42019         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
42020         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
42021         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
42022         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
42023         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
42024         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
42025         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
42026         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
42027         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
42028         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
42029         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
42030         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
42031         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
42032         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
42033         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
42034         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
42035         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
42036         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
42037         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
42038         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
42039         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
42040         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
42041         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
42042         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
42043         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
42044         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
42045         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
42046         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
42047         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
42048         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
42049         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
42050         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
42051         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
42052         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
42053         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
42054         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
42055         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
42056         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
42057         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
42058         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
42059         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
42060         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
42061         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
42062         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
42063         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
42064         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
42065         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
42066         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
42067         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
42068         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
42069         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
42070         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
42071         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
42072         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
42073         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
42074         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
42075         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
42076         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
42077         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
42078         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
42079         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
42080         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
42081         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
42082         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
42083         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
42084         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
42085         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
42086         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
42087         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
42088         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
42089         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
42090         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
42091         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
42092         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
42093         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
42094         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
42095         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
42096         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
42097         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
42098         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
42099         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
42100         lib/yesno.c, lib/yesno.h:
42101         Update FSF postal mail address.
42102
42103 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
42104
42105         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
42106         tests/test-memmem.c, tests/test-stpncpy.c:
42107         Update FSF postal mail address.
42108
42109 2005-05-13  Bruno Haible  <bruno@clisp.org>
42110
42111         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
42112         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
42113         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
42114         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
42115         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
42116         Add support for 64-bit integers in the MSVC compiler.
42117
42118 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42119
42120         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
42121
42122 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
42123
42124         * gnulib-tool (func_import): Sort and uniquify recommended includes.
42125
42126 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
42127
42128         * doc/getdate.texi (General date syntax): Don't say that date
42129         date --iso-8601=ns generates acceptable dates; it doesn't yet.
42130         Problem reported by Nic Ferrier.
42131
42132 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42133
42134         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
42135         specified in ai_socktype. Fix invalid ai_protocol
42136         check. ai_protocol is usually set to 0 or depending on
42137         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
42138         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
42139         ai_socktype / ai_protocol in the returned addrinfo structure.
42140
42141 2005-05-10  Simon Josefsson  <jas@extundo.com>
42142
42143         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
42144         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42145
42146 2005-05-10  Karl Berry  <karl@gnu.org>
42147
42148         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
42149         (from http://www.gnu.org/licenses).
42150         * doc/COPYING.LIB: also rename to COPYING.LESSER.
42151         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
42152         fdl.texi suffices.
42153
42154 2005-05-10  Karl Berry  <karl@gnu.org>
42155
42156         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
42157         (COPYING.DOC): remove.
42158
42159         * config/srclist-update: new FSF address.
42160
42161 2005-05-10  Derek Price  <derek@ximbiot.com>
42162
42163         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
42164         possible.
42165
42166 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42167             Bruno Haible  <bruno@clisp.org>
42168
42169         * modules/inet_ntop: New file.
42170         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42171         inet_ntop.
42172
42173 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42174             Bruno Haible  <bruno@clisp.org>
42175
42176         * m4/inet_ntop.m4: New file.
42177
42178 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42179             Bruno Haible  <bruno@clisp.org>
42180
42181         * lib/inet_ntop.h: New file.
42182         * lib/inet_ntop.c: New file, from glibc with modifications.
42183
42184 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
42185
42186         * modules/time_r (License): Change to LGPL.
42187         * modules/extensions (License): Change to LGPL.  Actually,
42188         the license is more permissive than that, but currently gnulib-tool
42189         doesn't know how to handle more-permissive licenses.
42190
42191         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
42192         Problem reported by Dave Love.
42193
42194 2005-05-08  Jim Meyering  <jim@meyering.net>
42195
42196         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
42197         blank.
42198
42199 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
42200
42201         * modules/argmatch (Depends-on): Add stdbool.
42202         * modules/backupfile (Depends-on): Likewise.
42203         * modules/chdir-long (Depends-on): Likewise.
42204         * modules/closeout (Depends-on): Likewise.
42205         * modules/cycle-check (Depends-on): Likewise.
42206         * modules/dirname (Depends-on): Likewise.
42207         * modules/fnmatch (Depends-on): Likewise.
42208         * modules/fsusage (Depends-on): Likewise.
42209         * modules/fwriteerror (Depends-on): Likewise.
42210         * modules/getcwd (Depends-on): Likewise.
42211         * modules/getloadavg (Depends-on): Likewise.
42212         * modules/hard-locale (Depends-on): Likewise.
42213         * modules/makepath (Depends-on): Likewise.
42214         * modules/mountlist (Depends-on): Likewise.
42215         * modules/nanosleep (Depends-on): Likewise.
42216         * modules/posixtm (Depends-on): Likewise.
42217         * modules/quotearg (Depends-on): Likewise.
42218         * modules/readtokens (Depends-on): Likewise.
42219         * modules/readtokens0 (Depends-on): Likewise.
42220         * modules/readutmp (Depends-on): Likewise.
42221         * modules/save-cwd (Depends-on): Likewise.
42222         * modules/strftime (Depends-on): Likewise.
42223         * modules/userspec (Depends-on): Likewise.
42224         * modules/utimecmp (Depends-on): Likewise.
42225         * modules/xgetcwd (Depends-on): Likewise.
42226         * modules/xnanosleep (Depends-on): Likewise.
42227         * modules/xstrtod (Depends-on): Likewise.
42228         * modules/yesno (Depends-on): Likewise.
42229
42230 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
42231
42232         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
42233         needless checks.
42234
42235 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
42236
42237         Merge from coreutils.  Among other things,
42238         add bulletproofing for cases where stdin, stdout, or stderr are closed.
42239         * lib/fd-safer.c: New file.
42240         * lib/fcntl-safer.h, open-safer.c: Remove.
42241         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
42242         * lib/dup-safer.c: Include unistd-safer.h first.
42243         Don't include errno.h.
42244         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
42245         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
42246         * lib/file-type.c: Rely on file-type.h change.
42247         * lib/getloadavg.c: Include unistd-safer.h.
42248         (getloadavg): Use safer open.
42249         * lib/getusershell.c: Include "stdio-safer.h".
42250         (getusershell): Use safer fopen.
42251         * lib/long-options.c (long_options): Use NULL rather than 0.
42252         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
42253         'free'.
42254         * lib/modechange.c: Likewise.
42255         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
42256         (MODE_DONE): New constant.
42257         (struct mode_change): Remove 'next' member.
42258         (make_node_op_equals): New function; like the old one of the
42259         same name, except it allocates an array.
42260         (mode_compile, mode_create_from_ref): Use it.
42261         (mode_compile): Allocate result as an array, not a linked list.
42262         Parse octal string ourself, so that we catch mistakes like "+0".
42263         (mode_adjust): Arg is an array, not a linked list.
42264         * lib/modechange.c: Include stat-macros.h, xalloc.h.
42265         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
42266         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
42267         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
42268         Remove.  This is now stat-macros.h's job.
42269         (talloc): Remove.  All callers replaced by xalloc, so that
42270         our invokers don't have to worry about reporting memory failures.
42271         (make_node_op_equals): Remove.
42272         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
42273         New constants.
42274         (struct mode_change): Moved here from modechange.h.
42275         (mode_append_entry): Remove.
42276         (mode_compile): Remove MASKED_OPS arg, since it encouraged
42277         apps to have incorrect behavior.  Use simpler algorithm for head
42278         and tail.  Don't futz with umask; that's now the job of mode_adjust.
42279         Detect more invalid usages rather than having somewhat-random behavior.
42280         Don't insert an "a=" action, as that leads to incorrect behavior.
42281         (mode_compile, mode_create_from_ref): Return NULL on error instead
42282         of an enum, since now there's only one way to have an error.  All
42283         callers changed.
42284         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
42285         at the correct time.  Simplify calculation of "+u" and its ilk.
42286         Don't mishandle "+X".
42287         (mode_free): Remove "register" and localize decls.
42288         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
42289         (struct mode_change): Move to modechange.c; callers don't
42290         need to see this stuff.
42291         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
42292         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
42293         (mode_change, mode_adjust): Reflect the new signatures noted above.
42294         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
42295         that might redefine system include files.
42296         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
42297         (my_usleep): Use NULL rather than (void *) 0.
42298         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
42299         Use siginterrupt to specify that system calls should be interrupted.
42300         (rpl_nanosleep): Move initialization of suspended closer to call of
42301         my_usleep.
42302         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
42303         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
42304         (desirable_utmp_entry): New function.
42305         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
42306         using x2nrealloc, to simplify logic.
42307         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
42308         size calculation.  Do not assume utmp file is a regular file.
42309         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
42310         (READ_UTMP_CHECK_PIDS): New constant.
42311         * lib/save-cwd.c: Include unistd-safer.h.
42312         (save_cwd): Use fd_safer.
42313         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
42314         [!_LIBC] Include "stat-macros.h" instead.
42315         * lib/unistd-safer.h (fd_safer): New decl.
42316
42317 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
42318
42319         * modules/getloadavg (Depends-on): Add unistd-safer.
42320         * modules/getusershell (Depends-on): Add stdio-safer.
42321         * modules/lstat (Depends-on): Remove xalloc.
42322         * modules/mkstemp (Depends-on): Add stat-macros.
42323         * modules/modechange (Depends-on): Remove xstrtol.
42324         Add stat-macros, xalloc.
42325         * modules/save-cwd (Depends-on): Add unistd-safer.
42326         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
42327         * modules/unistd-safer (Files): Add lib/fd-safer.c
42328         (Makefile.am): Remove lib_SOURCES.
42329
42330         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
42331         Remove fcntl-safer; unistd-safer supersedes it.
42332
42333 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
42334
42335         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
42336         AC_HEADER_STAT.
42337         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
42338         (gl_PREREQ_CHOWN): Remove.
42339         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
42340         it.  Don't require AC_HEADER_STAT.
42341         (gl_PREREQ_LSTAT): Remove.
42342         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
42343         Don't require AC_HEADER_STAT.
42344         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
42345         (gl_PREREQ_RMDIR): Remove.
42346         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
42347         mention stat-macros.h or AC_HEADER_STAT, since we'll make
42348         the stat-macros module a prerequisite.
42349         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
42350         * m4/filemode.m4 (gl_FILEMODE): Likewise.
42351         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
42352         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
42353         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
42354         variable names.
42355         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
42356         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
42357         variable prefixes.
42358         * m4/fcntl-safer.m4: Remove.
42359         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
42360         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
42361         Invoke gl_PREREQ_FD_SAFER.
42362         (gl_PREREQ_FD_SAFER): New macro.
42363         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
42364         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
42365         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
42366         Remove duplicate call to AC_LIBOBJ(readutmp).
42367         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
42368
42369         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
42370         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
42371
42372 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
42373
42374         * MODULES.html.sh (Misc): Add byteswap.
42375
42376 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
42377
42378         * modules/getcwd (Depends-on): Add extensions.
42379         * modules/openat (Depends-on): Likewise.
42380
42381 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
42382
42383         * modules/byteswap: New file.
42384
42385 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
42386
42387         * m4/byteswap.m4: New file.
42388
42389 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
42390
42391         * lib/byteswap_.h: New file.
42392
42393 2005-04-25  Karl Berry  <karl@gnu.org>
42394
42395         * m4/gettext.m4: Update from GNU gettext 0.14.4.
42396
42397 2005-04-25  Albert Chin  <china@thewrittenword.com>
42398
42399         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
42400         Toolkit C bug.
42401
42402 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
42403
42404         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
42405         (func_ln_if_changed) Remove forcibly for no error message
42406         in case file does not exist.
42407
42408 2005-04-19  Simon Josefsson  <jas@extundo.com>
42409
42410         * gnulib-tool (Options): Make --symlink mean --symbolic.
42411
42412 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
42413
42414         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
42415
42416 2005-04-16  Simon Josefsson  <jas@extundo.com>
42417
42418         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
42419
42420 2005-04-15  Simon Josefsson  <jas@extundo.com>
42421
42422         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
42423
42424 2005-04-15  Simon Josefsson  <jas@extundo.com>
42425
42426         * gnulib-tool: Rename --symlink to --symbolic.
42427
42428 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
42429
42430         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
42431         symbolic links to files instead of copying/moving.  Add --aux-dir,
42432         specifying directory relative --dir where auxiliary build tools
42433         are placed.
42434
42435 2005-04-14  Bruno Haible  <bruno@clisp.org>
42436
42437         * modules/allocsa (License): Change to LGPL.
42438         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42439
42440 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
42441
42442         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
42443         that "UTC +1 second" continues to work.  Problem reported
42444         by Dmitry V. Levin.
42445         (relunit_snumber): New rule.
42446         (relunit): Use it.
42447
42448 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
42449
42450         * lib/getdate.y (universal_time_zone_table): New constant.
42451         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
42452         universal_time_zone_table.
42453         (lookup_zone): Prefer universal_time_zone_table to
42454         local_time_zone_table, so that "GMT" time stamps are allowed in
42455         London during the summer.  Problem reported by Ian Abbott.
42456
42457 2005-04-12  Jim Meyering  <jim@meyering.net>
42458
42459         * lib/human.c (humblock): Set *options even when returning due to
42460         xstrtoumax conversion failure.  Thanks to a used-uninitialized
42461         warning from gcc-4.
42462
42463 2005-04-09  Jim Meyering  <jim@meyering.net>
42464
42465         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
42466         -Wuninitialized: initialize tm0.tm_year.
42467
42468 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
42469
42470         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
42471         count, since there's no maximum.  All uses changed.
42472         Add member dsts_seen.
42473         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
42474         not being INT_MAX.
42475         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
42476         Use pc_rels_seen to decide whther a date is absolute.
42477
42478         * lib/getdate.y (number): Don't overwrite year.
42479         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
42480         check.
42481
42482 2005-04-02  Simon Josefsson  <jas@extundo.com>
42483
42484         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
42485         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
42486
42487 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
42488
42489         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
42490         where no absolute path name can be longer than PATH_MAX.
42491
42492 2005-03-27  Jim Meyering  <jim@meyering.net>
42493
42494         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
42495
42496 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
42497
42498         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
42499         "one's complement" -> "ones' complement" in comment, as per Knuth.
42500         "value of type" -> "type or expression" in comment.
42501         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
42502
42503 2005-03-26  Jim Meyering  <jim@meyering.net>
42504
42505         Comment nits.
42506         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
42507         Correct typos: s/or/of/.
42508
42509 2005-03-26  Jim Meyering  <jim@meyering.net>
42510
42511         * modules/check-include-files: Move to ../ and rename to...
42512         * check-module: ...this.
42513
42514 2005-03-25  Jim Meyering  <jim@meyering.net>
42515
42516         * modules/xvasprintf (Files): Add xalloc.h.
42517
42518 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
42519
42520         * modules/gettext (Files): config/config.rpath ->
42521         build-aux/config.rpath
42522         * modules/iconv (Files): Likewise.
42523         Problem reported by Oskar Liljeblad.
42524
42525 2005-03-23  Jim Meyering  <jim@meyering.net>
42526
42527         * modules/check-include-files: New script to check for
42528         missing dependencies, multiple includes, etc.
42529
42530         * modules/c-strtold (Depends-on): Add xalloc.
42531         * modules/c-strtod (Depends-on): Add xalloc.
42532         * modules/hash (Depends-on): Add xalloc.
42533         (Files): Remove lib/xalloc.h.
42534
42535         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
42536         * modules/userspec (Files): Add lib/inttostr.h.
42537
42538 2005-03-23  Jim Meyering  <jim@meyering.net>
42539
42540         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
42541
42542 2005-03-22  Jim Meyering  <jim@meyering.net>
42543
42544         * modules/stat-macros: New module.
42545         * modules/canonicalize, modules/euidaccess, modules/file-type,
42546         * modules/filemode, modules/lchown, modules/makepath,
42547         * modules/rmdir, modules/stat: Depend on new stat-macros module
42548         rather than listing lib/stat-macros.h manually.
42549         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
42550
42551 2005-03-22  Jim Meyering  <jim@meyering.net>
42552
42553         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
42554
42555 2005-03-22  Bruno Haible  <bruno@clisp.org>
42556
42557         * config/srclist.txt: Replace target directory 'config' with
42558         'build-aux'.
42559         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
42560         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
42561         ../build-aux/.
42562
42563 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
42564
42565         * modules/chdir-long (Depends-on): Add mempcpy.
42566
42567         * modules/acl, modules/backupfile, modules/c-strtod,
42568         modules/c-strtold, modules/canon-host, modules/canonicalize,
42569         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
42570         modules/exclude, modules/exitfail, modules/file-type,
42571         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
42572         modules/getdate, modules/getline, modules/getpagesize,
42573         modules/getpass, modules/getugroups, modules/group-member,
42574         modules/hard-locale, modules/hash, modules/human, modules/idcache,
42575         modules/inttostr, modules/long-options, modules/makepath,
42576         modules/md5, modules/memcasecmp, modules/memcoll,
42577         modules/modechange, modules/mountlist, modules/path-concat,
42578         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
42579         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
42580         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
42581         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
42582         modules/strftime, modules/strndup, modules/strverscmp,
42583         modules/timespec, modules/unlocked-io, modules/userspec,
42584         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
42585         modules/yesno:
42586         Remove lib_SOURCES line from Makefile.am section, as this is now
42587         done automatically by the corresponding Autoconf macro.
42588
42589 2005-03-21  Jim Meyering  <jim@meyering.net>
42590
42591         Changes imported from coreutils.
42592
42593         * lib/cycle-check.c: Don't include xalloc.h.
42594
42595         * lib/path-concat.c: Don't include assert.h.
42596         (path_concat): Remove assertion that would have triggered
42597         for ABASE starting with more than one slash.
42598         Reported by Andreas Schwab.
42599
42600         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
42601         properly when ABASE is an absolute file name.
42602         Correct the description of this function.
42603         Include <assert.h>.
42604         Add an assertion and a test driver.
42605         This fixes a bug introduced on 2004-07-02.
42606         Andreas Schwab reported the resulting failure of cp --parents:
42607         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
42608
42609 2005-03-21  Jim Meyering  <jim@meyering.net>
42610
42611         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
42612         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
42613
42614 2005-03-21  Jim Meyering  <jim@meyering.net>
42615         and  Paul Eggert  <eggert@cs.ucla.edu>
42616
42617         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
42618         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
42619         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
42620         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
42621         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
42622         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
42623         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
42624         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
42625         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
42626         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
42627         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
42628         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
42629         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
42630         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
42631         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
42632         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
42633         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
42634         for these modules.
42635
42636 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
42637
42638         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
42639         (which shouldn't happen), generate nothing instead of returning 0
42640         immediately, so that nstrftime (NULL, ...) doesn't return 0.
42641
42642 2005-03-16  Bruno Haible  <bruno@clisp.org>
42643
42644         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
42645         HAVE_LONGLONG_64BIT.
42646
42647 2005-03-16  Bruno Haible  <bruno@clisp.org>
42648
42649         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
42650         HAVE_LONGLONG_64BIT.
42651
42652 2005-03-16  Bruno Haible  <bruno@clisp.org>
42653
42654         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
42655         HAVE_LONGLONG_64BIT.
42656
42657 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
42658
42659         * lib/strftime.c (my_strftime): Prepend space to format so that we can
42660         reliably distinguish strftime failure from empty output on POSIX
42661         hosts.
42662
42663 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
42664
42665         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
42666         (iconv_string): Don't guess a size-zero buffer, as that might cause
42667         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
42668         result would be 'too large', where 'too large' is (heuristically)
42669         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
42670         overflow concerns.  This will prevent some unwanted malloc failures
42671         when the inputs are very large.
42672
42673 2005-03-15  Karl Berry  <karl@gnu.org>
42674
42675         * config/srclist.txt (config.rpath): from gettext.
42676         * config/config.rpath: update.
42677
42678 2005-03-15  Bruno Haible  <bruno@clisp.org>
42679
42680         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
42681         to 'negate'.
42682
42683         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
42684         variable.
42685
42686         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
42687         results.
42688
42689 2005-03-14  Simon Josefsson  <jas@extundo.com>
42690
42691         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
42692         <fx@gnu.org>.
42693
42694 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
42695
42696         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
42697         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
42698         intprops.h.
42699         * lib/strtol.c: Likewise.
42700
42701 2005-03-14  Jim Meyering  <jim@meyering.net>
42702
42703         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
42704         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
42705         to be nonzero so that we (and caller) can detect the difference
42706         between a valid zero-length expansion and an error return, even
42707         when the underlying strftime fails before writing anything into
42708         that location.
42709
42710 2005-03-14  Bruno Haible  <bruno@clisp.org>
42711
42712         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
42713         Update from GNU gettext 0.14.3.
42714
42715 2005-03-10  Jim Meyering  <jim@meyering.net>
42716
42717         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
42718
42719 2005-03-10  Jim Meyering  <jim@meyering.net>
42720
42721         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
42722         so that this module works on systems without fchdir.
42723
42724 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
42725
42726         Factor int-properties macros into a single file, except for
42727         glibc-related files.
42728         * lib/intprops.h: New file.
42729         * lib/getloadavg.c: Include it instead of limits.h.
42730         (INT_STRLEN_BOUND): Remove.
42731         * lib/human.c: Include intprops.h.
42732         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
42733         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
42734         302/1000.
42735         * lib/inttostr.h: Include intprops.h instead of limits.h.
42736         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
42737         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
42738         for consistency with intprops.h.
42739         (time_t_is_integer, twos_complement_arithmetic): Use them.
42740         * lib/sig2str.h: Include <signal.h>, intprops.h.
42741         (INT_STRLEN_BOUND): Remove.
42742         * lib/strftime.c (TYPE_SIGNED): Remove.
42743         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
42744         * lib/strtol.c: Adjust comments to match intprops.h.
42745         * lib/userspec.c: Include intprops.h.
42746         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
42747         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
42748         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
42749         instead of rolling our own expressions.
42750         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
42751
42752         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
42753         instead of int.
42754         (my_strftime): Do not mishandle years close to INT_MAX, by doing
42755         the right thing even if adding 1900 would overflow.  Similarly
42756         for tm_mon + 1 and tm_yday + 1.
42757         Make %Y always equivalent to %C%y, and similarly for %G and %g.
42758         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
42759         (DO_SIGNED_NUMBER): New macro.
42760         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
42761
42762 2005-03-07  Bruno Haible  <bruno@clisp.org>
42763
42764         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
42765
42766 2005-03-07  Bruno Haible  <bruno@clisp.org>
42767
42768         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
42769
42770 2005-03-04  Derek R. Price  <derek@ximbiot.com>
42771
42772         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
42773         (func_import): Only replace files via --import when they have actually
42774         changed.
42775
42776 2005-03-03  Derek R. Price  <derek@ximbiot.com>
42777
42778         * m4/mmap-anon.m4: New file.
42779         * m4/pagealign_alloc.m4: New file.
42780
42781 2005-03-03  Derek R. Price  <derek@ximbiot.com>
42782             Bruno Haible  <bruno@clisp.org>
42783
42784         * modules/pagealign_alloc: New file.
42785         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
42786
42787 2005-03-03  Derek R. Price  <derek@ximbiot.com>
42788             Bruno Haible  <bruno@clisp.org>
42789
42790         * lib/pagealign_alloc.h: New file.
42791         * lib/pagealign_alloc.c: New file.
42792
42793 2005-03-03  Bruno Haible  <bruno@clisp.org>
42794
42795         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
42796         Use an all-permissive copyright notice, recommended by RMS.
42797
42798 2005-03-02  Bruno Haible  <bruno@clisp.org>
42799
42800         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
42801         of AIX, the replacement has to be done only after <string.h> is
42802         included, therefore not in config.h. stpncpy.h does the replacement,
42803         and stpncpy.c uses it.
42804
42805 2005-03-02  Bruno Haible  <bruno@clisp.org>
42806
42807         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
42808         stpncpy.c uses it.
42809
42810 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
42811
42812         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
42813         The workaround isn't strictly needed for POSIX conformance, and
42814         it's too much of a pain to configure and maintain.  We'll ask
42815         people to fix their kernels instead.
42816         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
42817         (NANOSLEEP_BUG_WORKAROUND): Remove.
42818         (xnanosleep): Remove the workaround.
42819
42820 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
42821
42822         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
42823         Reported by Derek Price.
42824         (Include): Add "timespec.h".
42825
42826         * modules/xnanosleep (Depends-on): Remove gethrxtime.
42827
42828 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
42829
42830         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
42831         to detect nanosleep bug.
42832
42833 2005-03-01  Bruno Haible  <bruno@clisp.org>
42834
42835         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
42836
42837 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
42838
42839         * modules/gethrxtime: New file.
42840         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
42841         (Depends-on): Add gethrxtime.
42842         (configure.ac): Add gl_XNANOSLEEP.
42843         (Makefile.am): Remove lib_SOURCES line.
42844
42845 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42846
42847         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
42848         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
42849
42850 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42851
42852         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
42853         * lib/timespec.h (gettime): Return void, since it always
42854         succeeds now.  All uses changed.
42855         * lib/gettime.c (gettime) Likewise.
42856         [HAVE_NANOTIME]: Prefer nanotime.
42857         Assume gettimeofday succeeds, as POSIX requires.
42858         Assime time () succeeds, since other code already does.
42859         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
42860         (timespec_subtract): Remove.
42861         (NANOSLEEP_BUG_WORKAROUND): New constant.
42862         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
42863         things considerably.  Use it only on GNU/Linux hosts, since the
42864         workaround shouldn't be needed elsewhere.
42865
42866 2005-02-24  Bruno Haible  <bruno@clisp.org>
42867
42868         * modules/gettext (Files): Add m4/glibc2.m4.
42869
42870 2005-02-24  Bruno Haible  <bruno@clisp.org>
42871
42872         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
42873         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
42874         * m4/progtest.m4:
42875         Update from GNU gettext 0.14.2.
42876         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
42877
42878 2005-02-24  Bruno Haible  <bruno@clisp.org>
42879
42880         * lib/localcharset.c: Update from GNU gettext 0.14.2.
42881         * lib/config.charset: Update from GNU gettext 0.14.2.
42882
42883 2005-02-24  Bruno Haible  <bruno@clisp.org>
42884
42885         * lib/gettext.h: Update from GNU gettext 0.14.2.
42886
42887 2005-02-23  Simon Josefsson  <jas@extundo.com>
42888
42889         * m4/iconvme.m4: New file.
42890
42891 2005-02-23  Jim Meyering  <jim@meyering.net>
42892
42893         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
42894         change.
42895         Thanks to Bruno Haible for catching it.
42896
42897 2005-02-22  Simon Josefsson  <jas@extundo.com>
42898
42899         * modules/iconvme: New file.
42900
42901         * MODULES.html.sh: Add iconvme.
42902
42903 2005-02-22  Simon Josefsson  <jas@extundo.com>
42904
42905         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
42906
42907 2005-02-22  Simon Josefsson  <jas@extundo.com>
42908
42909         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
42910
42911 2005-02-22  Jim Meyering  <jim@meyering.net>
42912
42913         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
42914         s/ifndef/ifdef/.
42915
42916 2005-02-20  Neil Conway  <neilc@samurai.com>
42917
42918         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
42919         returned by OSX/Darwin if the specified buffer is not large
42920         enough for the hostname.
42921
42922 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42923
42924         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
42925         pass it to _help, otherwise the latter coredumps trying to
42926         dereference state.root_argp.
42927
42928 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
42929
42930         * modules/chdir-long (Depends-on): Add memrchr.
42931         * modules/memrchr (Files): Add lib/memrchr.h.
42932         (Include): "memrchr.h".
42933
42934 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
42935
42936         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
42937
42938 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
42939
42940         * lib/memrchr.h: New file.
42941         * lib/chdir-long.c: Include it.
42942         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
42943         Don't bother including stddef.h.
42944
42945 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
42946
42947         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
42948         inclusion.
42949         Include <sys/types.h>, for dev_t.
42950         (ME_DUMMY, ME_REMOTE): Move from here....
42951         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
42952         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
42953         Dmitry V. Levin.
42954         Include mountlist.h first, to test the interface.
42955
42956 2005-01-29  Bruno Haible  <bruno@clisp.org>
42957
42958         * lib/progname.c (program_name): Initialize.
42959         Needed when linking statically on MacOS X.
42960
42961 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42962
42963         Sync from coreutils.
42964         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
42965         (Depends-on): Add c-strtod.
42966         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
42967
42968 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42969
42970         Sync from coreutils.
42971         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
42972
42973         Remove files that are specific to coreutils.
42974         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
42975
42976 2005-01-28  Bruno Haible  <bruno@clisp.org>
42977
42978         * modules/javacomp: New file.
42979         * MODULES.html.sh (Java): Add javacomp.
42980
42981 2005-01-28  Bruno Haible  <bruno@clisp.org>
42982
42983         * m4/javacomp.m4: New file, from GNU gettext.
42984
42985 2005-01-28  Bruno Haible  <bruno@clisp.org>
42986
42987         * lib/javacomp.sh.in: New file, from GNU gettext.
42988         * lib/javacomp.h: New file, from GNU gettext.
42989         * lib/javacomp.c: New file, from GNU gettext.
42990
42991 2005-01-26  Simon Josefsson  <jas@extundo.com>
42992
42993         * lib/gai_strerror.c: Use GPL in header.
42994
42995 2005-01-26  Bruno Haible  <bruno@clisp.org>
42996
42997         * modules/javaexec: New file.
42998         * MODULES.html.sh (Java): Add javaexec.
42999
43000 2005-01-26  Bruno Haible  <bruno@clisp.org>
43001
43002         * m4/javaexec.m4: New file, from GNU gettext.
43003
43004 2005-01-26  Bruno Haible  <bruno@clisp.org>
43005
43006         * lib/javaexec.sh.in: New file, from GNU gettext.
43007         * lib/javaexec.h: New file, from GNU gettext.
43008         * lib/javaexec.c: New file, from GNU gettext.
43009
43010 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
43011
43012         * modules/lchown (Depends-on): Remove lchown.h
43013
43014 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
43015
43016         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
43017         must be defined if the header file was not found, in order
43018         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
43019
43020 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
43021
43022         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
43023         initializers for struct pentry_state.
43024         (__argp_error): Check return value of __asprintf
43025         (__argp_failure): Translate error message
43026
43027         * lib/argp-parse.c: Removed braces around the expansion of N_()
43028
43029 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
43030
43031         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
43032         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
43033         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
43034         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
43035         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
43036         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
43037         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
43038         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
43039         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
43040         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
43041         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
43042         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
43043         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
43044         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
43045         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
43046         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
43047         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
43048         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
43049         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
43050         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
43051         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
43052         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
43053         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
43054         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
43055         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
43056         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
43057         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
43058         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
43059         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
43060         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
43061         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
43062         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
43063         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
43064         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
43065         xstrtol.m4, xstrtoumax.m4, yesno.m4:
43066         Use an all-permissive copyright notice, recommended by RMS.
43067
43068 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
43069
43070         * modules/chdir-long (Depends-on): Remove mempcpy.
43071
43072 2005-01-21  Jim Meyering  <jim@meyering.net>
43073
43074         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
43075         same value as for Solaris 9.
43076
43077         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
43078         component length.  This included changing the parameter to be
43079         of type `char *' rather than `char const *'.
43080         * lib/chdir-long.h (chdir_long): Update prototype.
43081
43082         * lib/openat.c (fdopendir, fstatat): New functions.
43083         * lib/openat.h: Include headers required for use of DIR and struct
43084         stat.
43085         [AT_SYMLINK_NOFOLLOW]: Define.
43086         (fdopendir, fstatat): Add prototypes.
43087
43088 2005-01-21  Bruno Haible  <bruno@clisp.org>
43089
43090         * modules/classpath: New file.
43091         * MODULES.html.sh (Java): Add classpath.
43092
43093 2005-01-21  Bruno Haible  <bruno@clisp.org>
43094
43095         * lib/classpath.h: New file, from GNU gettext.
43096         * lib/classpath.c: New file, from GNU gettext.
43097
43098 2005-01-20  Simon Josefsson  <jas@extundo.com>
43099
43100         * modules/version-etc-fsf: New file.
43101
43102 2005-01-20  Simon Josefsson  <jas@extundo.com>
43103
43104         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
43105         * lib/version-etc.c: Remove version_etc_copyright.
43106         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
43107         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
43108
43109 2005-01-20  Simon Josefsson  <jas@extundo.com>
43110
43111         * lib/base64.h (isbase64): Add.
43112
43113         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
43114         using a unsigned prototype, don't inline.
43115         (base64_decode): Use it.
43116
43117 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
43118
43119         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
43120         it.
43121
43122 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
43123
43124         * lib/save-cwd.c (save_cwd): Remove code to support the case
43125         where fchdir is missing or flaky.
43126
43127 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
43128
43129         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
43130
43131 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
43132
43133         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
43134         AC_LIBSOURCES now does this.
43135         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
43136         with new ullong_max module.
43137
43138 2005-01-19  Bruno Haible  <bruno@clisp.org>
43139
43140         * modules/sh-quote: New file.
43141         * MODULES.html.sh (Executing programs): Add sh-quote.
43142
43143 2005-01-19  Bruno Haible  <bruno@clisp.org>
43144
43145         * lib/sh-quote.h: New file, from GNU gettext.
43146         * lib/sh-quote.c: New file, from GNU gettext.
43147
43148 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
43149
43150         Merge from coreutils.
43151         * m4/ullong_max.m4: New file.
43152         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
43153         (gl_MACROS): Assume localeconv exists.
43154
43155 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
43156
43157         Merge changes from coreutils, as described below in several
43158         changelogs dated today.
43159
43160         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
43161         (O_DIRECTORY): Remove; not needed here, since "." must be
43162         a directory.  All uses removed.
43163         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
43164         universal on Suns, and we also need to test for IRIX.
43165         Revamp code to use 'if' rather than '#if'.
43166         Avoid unnecessary comparison of cwd->desc to 0.
43167
43168         * lib/utimens.c (futimens): Robustify the previous patch, by checking
43169         for known valid error numbers rather than observed invalid ones.
43170
43171 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
43172
43173         * modules/ullong_max: New file.
43174
43175         * modules/chdir-long, modules/openat: New files.
43176         * modules/save-cwd (Depends-on): Depend on chdir-long.
43177         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
43178
43179 2005-01-18  Jim Meyering  <jim@meyering.net>
43180
43181         Merge from coreutils.
43182         * m4/chdir-long.m4, m4/openat.m4: New files.
43183         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
43184         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
43185         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
43186         is sane and DOES follow symlinks.  Besides, testing 20 different
43187         systems found no broken chown implementations.
43188         Prompted by a change in rsync's copy of this macro.
43189         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
43190
43191         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
43192
43193         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
43194         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
43195         NULL-means-set-to-current-time semantics.
43196         Remove temporary file immediately, rather than waiting
43197         for configure's at-exit trap code to do it.
43198
43199 2005-01-18  Jim Meyering  <jim@meyering.net>
43200
43201         * lib/version-etc.c (version_etc_copyright): Update copyright date.
43202
43203         * lib/utimens.c (futimens): Account for the fact that futimes
43204         can also fail with errno == ENOSYS or errno == ENOENT.
43205         Patch from Dmitry V. Levin.
43206
43207         Change the name of the robust chdir function from chdir to chdir_long.
43208         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
43209         (restore_cwd): Use chdir_long, not chdir.
43210         * lib/chdir-long.c: Renamed from chdir.c.
43211         * lib/chdir-long.h: Renamed from chdir.h.
43212         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
43213         Hurd.
43214
43215 2005-01-18  Bruno Haible  <bruno@clisp.org>
43216
43217         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
43218         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
43219         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
43220         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
43221         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
43222         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
43223         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
43224         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
43225         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
43226         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
43227         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
43228         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
43229         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
43230         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
43231         Use an all-permissive copyright notice, recommended by RMS.
43232
43233 2005-01-18  Bob Proulx  <bob@proulx.com>
43234
43235         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
43236         simplify offsetof() macro construct to avoid compile failure with
43237         native HP-UX 11.0 ANSI C compiler.
43238
43239 2005-01-17  Bruno Haible  <bruno@clisp.org>
43240
43241         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
43242         redundant because stpncpy.m4 takes care of it.
43243
43244 2005-01-17  Bruno Haible  <bruno@clisp.org>
43245
43246         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
43247
43248 2005-01-17  Bruno Haible  <bruno@clisp.org>
43249
43250         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
43251         used.
43252
43253 2005-01-17  Bruno Haible  <bruno@clisp.org>
43254
43255         * lib/fwriteerror.h (fwriteerror): Change specification to include
43256         fclose.
43257         * lib/fwriteerror.c: Include <stdbool.h>.
43258         (fwriteerror): At the end, close the file stream. Record whether
43259         stdout was already closed.
43260
43261 2005-01-17  Bruno Haible  <bruno@clisp.org>
43262
43263         * lib/execute.c (environ): Declare if needed.
43264         * lib/pipe.c (environ): Likewise.
43265         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
43266
43267 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
43268
43269         * modules/argp: Depend on vsnprintf
43270
43271 2005-01-10  Jim Meyering  <jim@meyering.net>
43272
43273         * modules/closeout (Depends-on): Add atexit.
43274
43275 2005-01-06  Bruno Haible  <bruno@clisp.org>
43276
43277         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
43278
43279 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
43280
43281         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
43282         definitions to be after all include files, to avoid collisions.
43283         Problem reported by Bob Proulx.
43284
43285 2005-01-04  Jim Meyering  <jim@meyering.net>
43286
43287         Changes imported from coreutils.
43288         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
43289         as the mkstemp template, use a temporary directory and an
43290         8.3-friendly template to avoid trouble on systems like DJGPP.
43291         Reported by Juan M. Guerrero via Stepan Kasal.
43292         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
43293         close. Remove the temporary directory right away, rather than waiting
43294         for configure's at-exit trap code to do it.
43295         Suggestion from Stepan Kasal.
43296
43297 2005-01-01  Simon Josefsson  <jas@extundo.com>
43298
43299         * gnulib-tool: Print #include directives when --import'ing.
43300
43301 2004-12-28  Simon Josefsson  <jas@extundo.com>
43302
43303         * tests/test-base64.c: Include required header files.  Remove
43304         unused variables.
43305
43306 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
43307
43308         * modules/error (Depends-on): Remove gettext.
43309
43310 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
43311
43312         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
43313         not needed.  This removes a dependency on the gettext module.
43314         [defined _LIBC]: Do not include <libintl.h>; not needed.
43315
43316 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
43317
43318         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
43319         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
43320
43321 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
43322
43323         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
43324         HAVE_DECL_STRTOLD.
43325
43326 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
43327
43328         * modules/getdate (Depends-on): Remove alloca-opt.
43329
43330 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
43331
43332         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
43333
43334 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
43335
43336         * lib/argp-parse.c: Include <stddef.h>.
43337         (alignof, alignto): New macros.
43338         (parser_init): Don't assume that void * is aligned sufficiently
43339         for struct option.
43340
43341         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
43342         need to extend the stack.
43343         (YYINITDEPTH): New macro, so that the initial stack isn't overly
43344         large.
43345
43346 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
43347
43348         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
43349
43350 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
43351
43352         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
43353         (2004-10-24) change.  Apparently this was a false alarm.
43354
43355         * modules/getdate: Depend on alloca-opt, not alloca.
43356
43357 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
43358
43359         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
43360         Remove now-obsolete comment about AIX.
43361         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
43362         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
43363         (YYMAXDEPTH): New macro.
43364
43365 2004-12-18  Simon Josefsson  <jas@extundo.com>
43366
43367         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
43368
43369 2004-12-18  Bruno Haible  <bruno@clisp.org>
43370
43371         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
43372
43373 2004-12-18  Bruno Haible  <bruno@clisp.org>
43374
43375         * lib/fatal-signal.c (fatal_signals): Make non-const.
43376         (init_fatal_signals): New function.
43377         (uninstall_handlers, install_handlers): Ignore signals that were set to
43378         SIG_IGN.
43379         (at_fatal_signal): Call init_fatal_signals.
43380         (init_fatal_signal_set): Likewise. Ignore signals that were set to
43381         SIG_IGN.
43382         Reported by Paul Eggert.
43383
43384 2004-12-18  Bruno Haible  <bruno@clisp.org>
43385
43386         * doc/alloca.texi: New file.
43387         * doc/alloca-opt.texi: New file.
43388
43389 2004-12-17  Jim Meyering  <jim@meyering.net>
43390
43391         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
43392         Otherwise, install-sh could exit with improper exit status when
43393         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
43394
43395 2004-12-16  Simon Josefsson  <jas@extundo.com>
43396
43397         * tests/test-base64.c: Add license.
43398
43399 2004-12-15  Stepan Kasal  <address@hidden>
43400
43401         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
43402
43403 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
43404
43405         * modules/getcwd (Files): Add m4/d-ino.m4.
43406         Suggested by Mark D. Baushke.
43407
43408 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
43409
43410         * lib/getdate.y (textint): New member "negative".
43411         (time_zone_hhmm): New function.
43412         Expect 14 shift-reduce conflicts, not 13.
43413         (o_colon_minutes): New rule.
43414         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
43415         (yylex): Set the "negative" member of signed numbers.
43416
43417 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
43418
43419         * doc/getdate.texi (Time of day items, Time zone items):
43420         Describe new formats +00:00, UTC+00:00.
43421
43422 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
43423
43424         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
43425         spurious "-l"s.  Problem reported by Stepan Kasal.
43426
43427 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
43428
43429         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
43430         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
43431
43432 2004-12-04  Simon Josefsson  <jas@extundo.com>
43433
43434         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
43435         Vandoorselaere <yoann@prelude-ids.org>.
43436
43437 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
43438
43439         Changes imported from coreutils.
43440         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
43441         exist.
43442         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
43443
43444 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
43445
43446         Changes imported from coreutils.
43447         * lib/hard-locale.c: Assume <locale.h> exists.
43448         Include "strdup.h".
43449         (GLIBC_VERSION): New macro.
43450         (hard_locale): Assume setlocale exists.
43451         Rewrite to avoid #ifdef.
43452         Use strdup rather than malloc + strcpy.
43453         * lib/human.c: Assume <locale.h> exists.
43454         (human_readable): Assume localeconv exists.
43455
43456 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
43457
43458         * modules/hard-locale (Depends-on): Add strdup.
43459
43460 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
43461
43462         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
43463         convert T2, not T.  (Imported from libc.)
43464
43465 2004-11-30  Simon Josefsson  <jas@extundo.com>
43466
43467         * modules/restrict (License): Change to LGPL.
43468
43469 2004-11-30  Simon Josefsson  <jas@extundo.com>
43470
43471         * m4/restrict.m4: Add copyright and copying conditions.
43472
43473 2004-11-30  Simon Josefsson  <jas@extundo.com>
43474
43475         * m4/base64.m4: New file.
43476
43477 2004-11-30  Simon Josefsson  <jas@extundo.com>
43478
43479         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
43480         base64.
43481
43482         * tests/test-base64.c: New file.
43483
43484         * modules/base64: New file.
43485
43486 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
43487
43488         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
43489         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
43490
43491         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
43492
43493 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
43494
43495         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
43496         (__getcwd.c): Don't restore errno; glibc doesn't.
43497         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
43498         first, falling back to our code only if its results look suspicious.
43499         Ensure that the resulting buffer is only as large as necessary.
43500
43501         * lib/readutmp.c: Include readutmp.h first.
43502         Include <errno.h>, since readutmp.h no longer does that.
43503         * lib/readutmp.h: Don't include <errno.h>,
43504         <sys/param.h>, <time.h>; not needed to establish interface.
43505         (errno): Remove decl.
43506         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
43507         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
43508         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
43509
43510 2004-11-28  Simon Josefsson  <jas@extundo.com>
43511
43512         * lib/base64.h, base64.c: New file.
43513
43514 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
43515
43516         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
43517
43518 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
43519
43520         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
43521         (Depends-on): Remove pathmax, same.  Add mempcpy.
43522         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
43523         (Makefile.am): Append getcwd.h to lib_SOURCES.
43524         (Include): Add getcwd.h.
43525         (Maintainer): Change from Jim Meyering to "all, glibc",
43526         since getdate now uses intended-for-glibc code.
43527         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
43528         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
43529
43530 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
43531
43532         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
43533         HP's ANSI C compiler.
43534         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
43535         Declaring int functions causes warnings on some modern systems and
43536         shouldn't be needed to compile on ancient ones.
43537         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
43538         defined.
43539
43540         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
43541         with the following changes.
43542         (__set_errno): Parenthesize properly.
43543         Include <stdbool.h>.
43544         (MIN, MAX, MATCHING_INO): New macros.
43545         (__getcwd): Define with prototype, not K&R form.
43546         Use heuristics to allocate default buffer on stack if possible.
43547         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
43548         behavior, and to avoid the PATH_MAX limit when computing
43549         ../../../../...
43550         Use MATCHING_INO to compare inode number to file.
43551         Check for arithmetic overflow in size calculations.
43552         Fix bug in reallocation of dot array that caused getcwd to fail
43553         on directories nested deeper than 75.
43554         Be more careful about saving errno on error.
43555         Do not use realloc; use only free+malloc, as this is a bit
43556         more flexible and avoids a needless copy operation.
43557         Do not inspect st_dev and st_ino for symbolic links; POSIX
43558         doesn't specify the latter.
43559         Check for closedir errors.
43560         Avoid needless casts.
43561         Use "#ifdef weak_alias" around weak_alias, to be like other
43562         glibc code.
43563         The following changes to getcwd.c have effect only when used in
43564         gnulib; they have no effect inside glibc proper.
43565         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
43566         as alloca isn't used.
43567         (alloca, __alloca): Likewise.
43568         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
43569         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
43570         unconditionally, as gnulib assumes C89 or better.
43571         Do not include <sys/param.h>.
43572         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
43573         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
43574         better.
43575         (NULL) [!defined NULL]: Remove; we assume C89 or better.
43576         Include <dirent.h> in a way that is compatible with modern Autoconf.
43577         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
43578         New macros, if not already defined.
43579         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
43580         Use "_LIBC", not "defined _LIBC", for consistency.
43581         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
43582         a mempcpy module.
43583         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
43584         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
43585         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
43586         credit only to Jim Meyering and adjust the copyright dates.
43587         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
43588         <stdlib.h>, <unistd.h>, "pathmax.h".
43589         Instead, include "xgetcwd.h" (first) and "getcwd.h".
43590         (INITIAL_BUFFER_SIZE): Remove.
43591         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
43592
43593 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
43594
43595         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
43596         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
43597         Use the _ONCE methods, for efficiency.
43598         Check for fcntl.h.  In test program, include <errno.h>
43599         and <fcntl.h> if available.  Remove old K&R cruft from
43600         test program.  Check for common errors in GNU/Linux,
43601         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
43602         don't do AC_LIBOBJ, as that's getcwd.m4's job.
43603         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
43604         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
43605         name accordingly.
43606         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
43607         accommodate new getcwd.c.
43608         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
43609         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
43610         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
43611         that's all we need now.
43612
43613 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
43614
43615         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
43616         argp-parse.c depends on getopt internals, that means we should
43617         always use our getopt, to be on the safe side.
43618         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
43619         order not to spoil the result of an eventual previous invocation
43620         of gl_GETOPT_SUBSTITUTE.
43621
43622 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
43623
43624         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
43625         redefinition warnings. To avoid them, include the defines
43626         in `#if !defined __need_getopt ... #endif'. The only place
43627         where __getopt_argv_const is used is in definitions
43628         of getopt_long and getopt_long_only below, which are as well
43629         protected by `#ifndef __need_getopt'.
43630         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
43631         __need_getopt after including <stdio.h> and <unistd.h> These
43632         headers might have defined it.
43633
43634 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
43635
43636         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
43637
43638 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
43639
43640         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
43641         (futimens): New function, which uses futimes if available.
43642         (futimens, utimens): Support timespec==NULL, with same semantics
43643         as utime and utimens.
43644         * lib/utimens.h (futimens): New decl.
43645
43646 2004-11-23  Jim Meyering  <jim@meyering.net>
43647
43648         * lib/getopt_.h: Remove trailing blanks.
43649
43650 2004-11-23  Jim Meyering  <jim@meyering.net>
43651
43652         * lib/__fpending.c: Add comment.
43653
43654 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
43655
43656         * modules/canonicalize (Depends-on): Add xreadlink.
43657         Problem reported by James Youngman.
43658
43659 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
43660
43661         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
43662         New macros.
43663         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
43664         optopt): Use them instead of invoking ## directly; otherwise, the
43665         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
43666
43667 2004-11-19  Bruno Haible  <bruno@clisp.org>
43668
43669         * lib/strtok_r.c: Move comments from here...
43670         * lib/strtok_r.h: ... to here.
43671
43672 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
43673
43674         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
43675         implementations that mishandle size_t overflow.
43676
43677 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
43678
43679         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
43680         might fail.  Problem reported by Yoann Vandoorselaere.
43681         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
43682         implementations that mishandle size_t overflow.
43683
43684 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43685
43686         * modules/canon-host (Depends-on): Add strdup.
43687
43688 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43689
43690         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
43691
43692 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43693
43694         * lib/canon-host.c: Include "strdup.h".
43695         (canon_host): Use getaddrinfo if available, so that IPv6 works.
43696         Use strdup instead of malloc/strcpy to duplicate strings.
43697
43698         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
43699         (human_space_before_unit): New constant.
43700         * lib/human.c (human_readable): Support it.
43701
43702         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
43703         (xgetcwd): Set errno correctly when failing.
43704         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
43705         the failure is actually due to a PATH_MAX problem.
43706
43707         Further getopt changes to make it more likely that glibc will
43708         buy the changes back.
43709         * lib/getopt.c (POSIXLY_CORRECT): New constant.
43710         (getopt): Use it, so to preserve glibc semantic
43711         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
43712         when compiling for libc.
43713         * lib/getopt_.h (__getopt_argv_const): Bring it back.
43714         (getopt_long, getopt_long_only): Use it.
43715
43716         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
43717         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
43718         (getopt): Argv is now char * const *, as per standard.
43719         (_getopt_internal_r, _getopt_internal): Argv is now char **,
43720         not char *__getopt_argv_const *.
43721         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
43722         _getopt_long_only_r): Likewise.
43723         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
43724         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
43725         _getopt_long_r, _getopt_long_only_r): Likewise.
43726         * lib/getopt_.h (__getopt_argv_const): Remove.
43727         (getopt): Argv is now char * const *, as per standard.
43728
43729         * lib/getdate.y (tORDINAL): New token.
43730         (day, relunit): Allow it for relative times.
43731         (relative_time_table): Use tORDINAL for ordinals.
43732
43733 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43734
43735         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
43736         Document that "second" isn't allowed as an ordinal number.
43737
43738 2004-11-16  Jim Meyering  <jim@meyering.net>
43739
43740         * modules/closeout (Depends-on): Add fpending.
43741
43742 2004-11-15  Jim Meyering  <jim@meyering.net>
43743
43744         * lib/closeout.c: Include "__fpending.h" once again.
43745         Include <stdbool.h>.
43746         (close_stdout): Don't fail just because stdout was closed initially,
43747         since some programs don't write to stdout in the normal course of
43748         operation (other than --version and --help), and we don't want this
43749         function to make e.g. `touch file >&-' fail.
43750         But do fail if it was closed and someone has tried to write to it.
43751         E.g., `printf foo >&-' must fail.
43752
43753 2004-11-13  Jim Meyering  <jim@meyering.net>
43754
43755         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
43756
43757 2004-11-12  Simon Josefsson  <jas@extundo.com>
43758
43759         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
43760         small doc fix is still pending.
43761
43762 2004-11-11  Simon Josefsson  <jas@extundo.com>
43763
43764         * modules/strtok_r: New file.
43765
43766         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43767         strtok_r.
43768
43769 2004-11-11  Simon Josefsson  <jas@extundo.com>
43770
43771         * m4/strtok_r.m4: New file.
43772
43773         * m4/getopt.m4: Replace opterr.
43774
43775 2004-11-11  Simon Josefsson  <jas@extundo.com>
43776
43777         * lib/strtok_r.h, strtok_r.c: New file.
43778
43779 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
43780
43781         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
43782         of replacing opterr, getopt, etc.  This should handle the
43783         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
43784
43785 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
43786
43787         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
43788         we can stop lying to compilers about the constness of argv when we
43789         are compiled outside glibc.
43790         (getopt, getopt_long, getopt_long_only): Use it.
43791         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
43792         _getopt_internal, getopt): Likewise.
43793         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
43794         _getopt_long_only_r): Likewise.
43795         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
43796         _getopt_long_r, _getopt_long_only_r): Likewise.
43797
43798         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
43799         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
43800         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
43801         the other external symbols.
43802         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
43803         declaration, since the above renaming now works around collisions.
43804
43805 2004-11-11  Jim Meyering  <jim@meyering.net>
43806
43807         * lib/linebreak.c: Remove trailing blanks.
43808         * lib/alloca_.h: Likewise.
43809         * lib/acosl.c: Likewise.
43810         * lib/euidaccess.c: Likewise.
43811         * lib/allocsa.h: Likewise.
43812
43813 2004-11-10  Simon Josefsson  <jas@extundo.com>
43814
43815         * m4/getaddrinfo.m4: New file.
43816
43817 2004-11-10  Simon Josefsson  <jas@extundo.com>
43818
43819         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
43820
43821 2004-11-10  Simon Josefsson  <jas@extundo.com>
43822
43823         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43824         getaddrinfo.
43825
43826         * modules/getaddrinfo: New file.
43827
43828 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
43829
43830         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
43831
43832 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
43833
43834         * lib/mktime.c (SHR): New macro, which is a portable
43835         substitute for >> that should work even on Crays.
43836         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
43837         Problem reported by Mark D. Baushke in
43838         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
43839         * lib/getdate.y (SHR): Likewise.
43840         (tm_diff): Use it.
43841         * lib/strftime.c (SHR): Likewise.
43842         (tm_diff): Use it.
43843         * lib/quotearg.c (struct quoting_options): Use unsigned int for
43844         quote_these_too, so that right shifts are well defined.  All uses
43845         changed.
43846
43847 2004-11-10  Jim Meyering  <jim@meyering.net>
43848
43849         Ensure that no close failure goes unreported.
43850         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
43851         return early when it seems there's nothing to flush.
43852         Don't include __fpending.h.
43853
43854 2004-11-10  Jim Meyering  <jim@meyering.net>
43855
43856         * modules/closeout (Depends-on): Remove fpending.
43857
43858 2004-11-10  Jim Meyering  <jim@meyering.net>
43859
43860         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
43861
43862 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
43863
43864         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
43865         gl_FUNC_STRFTIME.
43866         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
43867         and AC_REQUIRE when possible, to avoid duplicate checks.
43868         Check for <wchar.h>.
43869
43870 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
43871
43872         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
43873
43874 2004-11-09  Bruno Haible  <bruno@clisp.org>
43875
43876         * m4/sockpfaf.m4: New file.
43877
43878 2004-11-05  Bruno Haible  <bruno@clisp.org>
43879
43880         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
43881         Reported by Mark D. Baushke <mdb@cvshome.org>.
43882
43883 2004-11-04  Bruno Haible  <bruno@clisp.org>
43884
43885         2004-09-11  Bruno Haible  <bruno@clisp.org>
43886                 * allocsa.valgrind: New file.
43887         2004-02-06  Bruno Haible  <bruno@clisp.org>
43888                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
43889                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
43890                 Reported by Christopher Seip <chris.seip@hp.com>.
43891
43892 2004-11-04  Bruno Haible  <bruno@clisp.org>
43893
43894         * modules/allocsa (Files): Add lib/allocsa.valgrind.
43895         (Makefile.am): Distribute it.
43896
43897 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
43898
43899         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
43900         with errno == ERANGE if the buffer is too small.
43901         Problem reported by Mark D. Baushke.
43902
43903 2004-11-03  Albert Chin  <china@thewrittenword.com>
43904             Paul Eggert  <eggert@cs.ucla.edu>
43905
43906         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
43907         equivalent, substitute $ac_type for equivalent type rather than
43908         blindly using uint32_t *always* which won't work if uint32_t is not
43909         available.  Define _UINT32_T to work around typedef of uint32_t if
43910         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
43911         2.5.1.
43912
43913 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
43914
43915         * m4/jm-macros.m4: Sync from coreutils.
43916         (gl_MACROS): Check for mbrlen, for pathchk.
43917         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
43918
43919 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
43920
43921         * lib/xreadlink.c (MAXSIZE): New macro.
43922         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
43923         size does not exceed MAXSIZE.  Avoid cast.
43924         As suggested by Mark D. Baushke in
43925         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
43926         if readlink fails with buffer size just under MAXSIZE, try again
43927         with MAXSIZE.
43928
43929 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
43930
43931         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
43932
43933 2004-11-02  Derek R. Price  <derek@ximbiot.com>
43934         and  Paul Eggert  <eggert@cs.ucla.edu>
43935
43936         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
43937         (get_date): Overparenthesize to avoid GCC warning.
43938
43939 2004-11-02  Bruno Haible  <bruno@clisp.org>
43940
43941         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
43942         returns void.
43943
43944 2004-11-02  Bruno Haible  <bruno@clisp.org>
43945
43946         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
43947         function returns void.
43948
43949 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
43950
43951         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
43952         fflush_unlocked, flockfile, funlockfile, funlockfile,
43953         fputs_unlocked, putc_unlocked.
43954
43955 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
43956
43957         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
43958         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
43959         already declared.
43960
43961 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
43962
43963         * modules/getdate (Files): Add doc/getdate.texi.
43964         (Depends-on): Add setenv, xalloc.
43965
43966 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
43967
43968         * lib/getdate.y: Add support for TZ="foo" within a date string.
43969         Fix some bugs near time_t boundaries.  Reject dates with
43970         out-of-range components, e.g., "Sept 31".
43971         Include <stdlib.h>, "setenv.h", "xalloc.h".
43972         (ISDIGIT_LOCALE): Remove; unused.
43973         Note that the TZ and time functions used here are not reentrant.
43974         (mktime_ok, get_tz): New functions.
43975         (TZBUFSIZE): New constant.
43976         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
43977         This requires that we sometimes generate our own TZ="XXX..." setting.
43978
43979 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
43980
43981         * doc/getdate.texi: New file, from coreutils with modifications for
43982         the new TZ parsing.
43983
43984 2004-10-27  Derek R. Price  <derek@ximbiot.com>
43985
43986         * lib/mktime.c (not_equal_tm): Remove redundant check.
43987
43988 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
43989
43990         * modules/regex (lib_SOURCES): Add regex.c.
43991         Reported by James Youngman in
43992         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
43993
43994 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
43995
43996         * lib/getdate.y: Use Bison 1.875 features, and some minor
43997         code cleanups.  This change does not affect semantics.
43998         Don't include <stdlib.h>; no longer needed.
43999         Don't include unlocked-io.h; only the "#if TEST" code uses
44000         stdio, and performance isn't crucial there.
44001         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
44002         Bison 1.875 features as described below.
44003         All uses of "PC." replaced by "pc->".
44004         (YYSTYPE): Add a forward declaration.
44005         (yylex, yyerror): Use full prototypes in forward decls.
44006         Use "%pure-parser" rather than obsolescent "%pure_parser".
44007         Use %parse-param and %lex-param instead of obsolescent
44008         YYPARSE_PARAM and YYLEX_PARAM.
44009         (meridian_table, month_and_day_table, time_units_table,
44010         relative_time_table, time_zone_table, military_table,
44011         lookup_zone, lookup_word, get_date):
44012         Use NULL instead of 0 where appropriate.
44013         (to_hour): Avoid abort (), to avoid a dependency on
44014         stdlib.h.
44015         (yyerror, yylex): Now accepts parser_control * arg.
44016         (main) [TEST]: Use '\0' rather than 0 for char.
44017
44018 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
44019
44020         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
44021
44022 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
44023
44024         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
44025         It's now the caller's responsibility to handle the case where
44026         !HAVE_GETPAGESIZE && !defined getpagesize.
44027
44028         * lib/mktime.c (leapyear): Arg is long int, not int.
44029
44030 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
44031
44032         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
44033
44034 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
44035
44036         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
44037         missing.  Problem reported by James Youngman.
44038
44039 2004-10-16  Simon Josefsson  <jas@extundo.com>
44040
44041         * gnulib-tool: Fix comments.  Fix parse problem.
44042         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
44043
44044 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
44045
44046         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
44047         implementation of getopt_long.  Problem reported by Alexander Taler in:
44048         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
44049
44050 2004-10-15  Bruno Haible  <bruno@clisp.org>
44051
44052         * gnulib-tool: Untabify. Initialize supplied_libname.
44053         (func_usage): More homogenous output.
44054         (func_modules_transitive_closure, func_modules_to_filelist,
44055         func_emit_lib_Makefile_am): New functions.
44056         (func_import): New function, extracted from big case statement. Use
44057         func_get_license, func_modules_transitive_closure,
44058         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
44059         opt_lgpl. Don't use test -a, as it's not portable.
44060         (func_create_testdir): Use func_modules_transitive_closure,
44061         func_modules_to_filelist, func_emit_lib_Makefile_am.
44062
44063 2004-10-15  Bruno Haible  <bruno@clisp.org>
44064
44065         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
44066
44067 2004-10-15  Bruno Haible  <bruno@clisp.org>
44068
44069         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
44070         the portions belonging to each module.
44071         Suggested by Derek Robert Price <derek@ximbiot.com>.
44072
44073 2004-10-12  Simon Josefsson  <jas@extundo.com>
44074
44075         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
44076         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
44077         to real functions.
44078
44079 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44080
44081         * modules/vsnprintf: New file.
44082
44083 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44084
44085         * m4/vsnprintf.m4: New file.
44086
44087 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44088
44089         * lib/vsnprintf.h: New file.
44090         * lib/vsnprintf.c: New file.
44091
44092 2004-10-11  Bruno Haible  <bruno@clisp.org>
44093
44094         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
44095         vsnprintf.
44096
44097 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
44098
44099         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
44100
44101 2004-10-07  Bruno Haible  <bruno@clisp.org>
44102
44103         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
44104         fits into the provided buffer.
44105
44106 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
44107
44108         * lib/diacrit.c, diacrit.h: Add GPL notice.
44109
44110         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
44111         notice.
44112         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
44113         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
44114         This avoids a potential constant-folding bug.
44115
44116 2004-10-05  Bruno Haible  <bruno@clisp.org>
44117
44118         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
44119         for the declaration of strsep.
44120
44121 2004-10-05  Bruno Haible  <bruno@clisp.org>
44122
44123         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
44124
44125 2004-10-04  Simon Josefsson  <jas@extundo.com>
44126
44127         * modules/memmem: New file.
44128         * tests/test-memmem.c: New file.
44129         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
44130
44131 2004-10-04  Simon Josefsson  <jas@extundo.com>
44132
44133         * m4/memmem.m4: New file.
44134
44135 2004-10-04  Simon Josefsson  <jas@extundo.com>
44136
44137         * lib/memmem.h: New file.
44138         * lib/memmem.c: New file, taken from glibc.
44139
44140 2004-10-04  Simon Josefsson  <jas@extundo.com>
44141
44142         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
44143         '#ifdef USE_UNLOCKED_IO'.
44144
44145 2004-10-04  Simon Josefsson  <jas@extundo.com>
44146
44147         * config/srclist.txt: Add memmem from glibc.
44148
44149 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
44150
44151         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
44152
44153         * modules/argmatch, modules/argp, modules/closeout, modules/error,
44154         modules/exclude, modules/getdate, modules/getline,
44155         modules/getndelim2, modules/getpass, modules/getpass-gnu,
44156         modules/getusershell, modules/linebuffer, modules/md5,
44157         modules/mountlist, modules/posixtm, modules/readtokens,
44158         modules/readutmp, modules/regex, modules/sha1,
44159         modules/version-etc, modules/yesno:
44160         Remove dependency on unlocked-io.
44161
44162 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
44163
44164         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
44165
44166         * m4/unlocked-io.m4: Add copyright notice.
44167         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
44168
44169 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
44170
44171         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
44172         * lib/xmalloc.c (xmemdup): Likewise.
44173         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
44174         XFREE): Remove these long-obsolescent macros.
44175         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
44176         * lib/xstrdup.c: Remove.
44177
44178         * lib/regex.c (re_comp): Cast gettext return value to char *,
44179         Problem reported by Martin Neitzel via Mark D. Baushke.
44180
44181 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
44182
44183         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
44184         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
44185         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
44186         regex.c, sha1.c, version-etc.c, yesno.c:
44187         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
44188         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
44189         the includer's responsibility.
44190
44191         Sync from coreutils.
44192
44193         * lib/modechange.c (mode_compile): Don't decrement a pointer that
44194         points to the start of a string, as the C Standard says the
44195         resulting behavior is undefined.
44196
44197         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
44198         simple -> simple_backups, numbered_existing ->
44199         numbered_existing_backups, numbered -> numbered_backups
44200         to avoid shadowing problems.  All uses changed.
44201         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
44202         * lib/backupfile.c (check_extension, numbered_backup):
44203         Rename locals to avoid shadowing 'basename'.
44204         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
44205         once.
44206
44207         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
44208         * lib/.cvsignore: Add getopt.h.
44209
44210 2004-10-04  Bruno Haible  <bruno@clisp.org>
44211
44212         * modules/README: New file.
44213         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
44214         not a module.
44215
44216 2004-10-02  Jim Meyering  <jim@meyering.net>
44217
44218         * lib/dirfd.h, getpagesize.h: Add copyright notice.
44219
44220 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44221
44222         * modules/strsep: New file.
44223
44224 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44225
44226         * m4/strsep.m4: New file.
44227
44228 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44229
44230         * lib/strsep.h: New file.
44231         * lib/strsep.c: New file.
44232
44233 2004-10-01  Simon Josefsson  <jas@extundo.com>
44234
44235         * lib/snprintf.c (snprintf): Handle size==0.
44236
44237 2004-10-01  Simon Josefsson  <jas@extundo.com>
44238             Bruno Haible  <bruno@clisp.org>
44239
44240         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
44241         (snprintf): Declare 'args'.
44242
44243 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
44244
44245         * lib/snprintf.c: Remove comments as to why each header is needed.
44246
44247 2004-10-01  Bruno Haible  <bruno@clisp.org>
44248
44249         * MODULES.html.sh: Add strsep.
44250
44251 2004-09-30  Simon Josefsson  <jas@extundo.com>
44252
44253         * modules/snprintf: New file.
44254
44255 2004-09-30  Simon Josefsson  <jas@extundo.com>
44256
44257         * m4/snprintf.m4: New file.
44258
44259 2004-09-30  Simon Josefsson  <jas@extundo.com>
44260
44261         * lib/snprintf.h, lib/snprintf.c: New files.
44262
44263 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
44264
44265         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
44266         (hol_entry_help): Never translate an empty string.
44267         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
44268         * lib/argp.h (OPTION_NO_TRANS): New option.
44269
44270 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
44271
44272         * modules/argp (Maintainer): Replace Simon Josefsson
44273         by Sergey Poznyakoff.
44274
44275 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
44276
44277         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
44278         changes merged back into glibc.
44279
44280 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
44281
44282         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
44283
44284 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
44285
44286         * lib/xvasprintf.c: Include xalloc.h.
44287         (xvasprintf): Use xalloc_die, not xmalloc_die.
44288
44289 2004-09-29  Bruno Haible  <bruno@clisp.org>
44290
44291         * modules/alloca-opt: New file, derived from modules/alloca.
44292         * modules/allocsa: Depend on alloca-opt instead of alloca.
44293         * modules/setenv: Likewise.
44294         * modules/vasnprintf: Likewise.
44295         * MODULES.html.sh: Add alloca-opt.
44296
44297 2004-09-28  Simon Josefsson  <jas@extundo.com>
44298
44299         * gnulib-tool: New parameter --lgpl, to asseert that modules are
44300         LGPL, and to replace license template from GPL to LGPL.
44301
44302 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
44303
44304         * modules/dummy: Change license to LGPL.
44305
44306 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
44307
44308         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
44309
44310 2004-09-24  Simon Josefsson  <jas@extundo.com>
44311
44312         * modules/minmax (License): Change from GPL to LGPL.
44313
44314 2004-09-23  Simon Josefsson  <jas@extundo.com>
44315
44316         * gnulib-tool (--import): Typo.
44317
44318 2004-09-23  Simon Josefsson  <jas@extundo.com>
44319
44320         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
44321
44322 2004-09-22  Bruno Haible  <bruno@clisp.org>
44323
44324         * modules/*: Add 'License' field.
44325         * gnulib-tool: Accept --extract-license option.
44326         (func_get_license): New function.
44327
44328 2004-09-21  Bruno Haible  <bruno@clisp.org>
44329
44330         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
44331         Reported by Simon Josefsson.
44332
44333 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
44334
44335         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
44336         gl_AC_TYPE_LONG_LONG.
44337
44338 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
44339
44340         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
44341
44342 2004-09-18  Simon Josefsson  <jas@extundo.com>
44343         and  Paul Eggert  <eggert@cs.ucla.edu>
44344
44345         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
44346         calls with autoreconf.  Define GL_LIB.
44347
44348 2004-09-14  Karl Berry  <karl@gnu.org>
44349
44350         * config/srclist.txt: unsync setenv.c, sigh.
44351
44352 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
44353
44354         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
44355         Problem reported by Bruno Haible in:
44356         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
44357
44358 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
44359
44360         * config/srclist.txt: Comment out argp-pvh.c.
44361
44362 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
44363
44364         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
44365         in case some system header has #define'd it.  Problem reported by
44366         Soeren D. Schulze in
44367         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
44368
44369 2004-09-09  Karl Berry  <karl@gnu.org>
44370
44371         * regex.[ch]: delete from the root.  These were supposed to be
44372                 synced with emacs cvs, but this has not happened for about
44373                 a year, and anyway nothing else uses emacs regex.[ch].
44374                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
44375                 lib/regex[.ch] is untouched.
44376
44377 2004-09-09  Bruno Haible  <bruno@clisp.org>
44378
44379         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
44380
44381 2004-09-09  Bruno Haible  <bruno@clisp.org>
44382
44383         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
44384         modifications.
44385         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
44386
44387 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
44388
44389         * modules/xvasprintf: New file.
44390         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
44391
44392 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
44393
44394         * lib/xvasprintf.h: New file.
44395         * lib/xvasprintf.c: New file.
44396         * lib/xasprintf.c: New file.
44397
44398 2004-09-08  Bruno Haible  <bruno@clisp.org>
44399
44400         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
44401
44402 2004-09-08  Bruno Haible  <bruno@clisp.org>
44403
44404         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
44405         length is > INT_MAX.
44406         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
44407         more.
44408
44409 2004-09-08  Bruno Haible  <bruno@clisp.org>
44410
44411         * lib/stdint_.h: New file, taken from GNU clisp.
44412
44413 2004-09-08  Bruno Haible  <bruno@clisp.org>
44414             Oskar Liljeblad  <oskar@osk.mine.nu>
44415
44416         * modules/stdint: New file.
44417         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
44418
44419 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44420
44421         Import from coreutils.
44422         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
44423         strings on unbounded length.  alloca's performance benefits aren't
44424         that important here.
44425         (V_STRDUP): Remove.
44426         (parse_with_separator): New function, with most of the internals
44427         of the old parse_user_spec.  Allow user to omit both user and group,
44428         for compatibility with FreeBSD.
44429         Clone only the user name, not the entire spec.
44430         Do not set *uid, *gid unless entirely successful.
44431         Avoid memory leak in some failing cases.
44432         Fix regression for USER.GROUP reported by Dmitry V. Levin in
44433         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
44434         (parse_user_spec): Rewrite to use parse_with_separator.
44435
44436 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44437
44438         * modules/userspec: Don't depend on alloca.
44439
44440 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44441
44442         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
44443
44444 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44445
44446         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
44447         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
44448         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
44449
44450 2004-08-16  Simon Josefsson  <jas@extundo.com>
44451
44452         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
44453         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
44454         Add --dry-run for --import.
44455         Let user provided command line parameters override configure.ac
44456         settings.
44457
44458 2004-08-12  Simon Josefsson  <jas@extundo.com>
44459
44460         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
44461         as discussed with Paul Eggert in threads rooted at
44462         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
44463         and
44464         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
44465         Before, the test was empty, and relied on ELIDE_CODE in source
44466         code.)
44467         (gl_PREREQ_GETOPT): New macro.
44468         (gl_GETOPT): Use them.
44469
44470 2004-08-12  Simon Josefsson  <jas@extundo.com>
44471
44472         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
44473         * lib/getopt_.h: Renamed from getopt.h.
44474
44475 2004-08-12  Simon Josefsson  <jas@extundo.com>
44476
44477         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
44478         Change default library name from libfoo to libgnu.
44479         Now, if you have a configure.ac that says:
44480                 gl_SOURCE_BASE(gl)
44481                 gl_M4_BASE(gl/m4)
44482                 gl_MODULES(error getopt etcetera)
44483                 gl_INIT
44484         you can import all you need by running:
44485                 ../gnulib/gnulib-tool --import
44486
44487         * modules/getopt (Files): Rename getopt.h to getopt_.h.
44488         (Makefile.am): Rewrite, use logic from argz.
44489         (Include): Use <getopt.h> instead of "getopt.h".
44490
44491 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
44492
44493         * modules/argp (Files): Add m4/unlocked-io.m4.
44494         (Depends-on): Add extensions.
44495
44496 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
44497
44498         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
44499         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
44500         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
44501         Check for program_invocation_name, program_invocation_short_name,
44502         flockfile, funlockfile, features.h, _getopt_long_only_r.
44503
44504 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
44505
44506         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
44507         its complicated substitute.
44508         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
44509         and program_invocation_name.
44510         (__argp_basename) [!_LIBC]: Remove; the only use was
44511         replaced by its body.
44512         (__argp_short_program_name): Change condition from
44513         !defined __argp_short_program_name to
44514         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
44515         to match argp-namefrob.h.
44516         (__argp_failure): Don't assume strerror_r returns char *.
44517         * lib/argp-parse.c (N_): Define unconditionally.
44518         (argp_default_options): Fill out initializers with 0 to avoid
44519         gcc warnings.
44520
44521 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
44522
44523         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
44524         getopt1.c.
44525
44526 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
44527
44528         Merge from coreutils.
44529
44530         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
44531
44532         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
44533         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
44534
44535 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
44536
44537         Merge from coreutils.
44538
44539         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
44540         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
44541         for Reliant Unix 5.43.
44542
44543         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
44544         (union fooround): Use uintmax_t, not long int.
44545         The rest is a merge from libc:
44546         [defined _LIBC]: Include <shlib-compat.h>.
44547         (_obstack) [defined _LIBC]: Remove after 2.3.4.
44548
44549         * lib/settime.c (settime): Recode to avoid warning with
44550         Sun Forte C 6U2.
44551
44552         * lib/strverscmp.c: Convert to UTF-8.
44553
44554 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
44555
44556         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
44557         m4/uintmax_t.m4.
44558
44559 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44560
44561         * modules/xalloc-die: New file.
44562         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
44563
44564         * modules/md5 (Files): Add m4/uint32_t.m4.
44565         * modules/sha1: Renamed from modules/sha.
44566         (Files):
44567         Rename lib/sha.h to lib/sha1.h.
44568         Rename lib/sha.c to lib/sha1.c.
44569         Rename m4/sha.m4 to m4/sha1.m4.
44570         (lib_SOURCES): Likewise.
44571         (configure.ac): Rename gl_SHA to gl_SHA1.
44572         (Include): sha.h -> sha1.h.
44573
44574 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44575
44576         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
44577         * m4/sha1.m4: Renamed from sha.m4.
44578         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
44579
44580 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44581
44582         * lib/obstack.h (obstack_empty_p):
44583         Don't assume that chunk->contents is suitably aligned.
44584         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
44585         Likewise. Problem reported by Benno in
44586         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
44587
44588         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
44589         readable.  This could be improved further but it'd take some work.
44590
44591 2004-08-08  Simon Josefsson  <jas@extundo.com>
44592
44593         * modules/xgethostname (Depends-on): Remove exit and error (not
44594         used).
44595
44596         * modules/getpass-gnu: Add getpass.h.
44597         (Depends-on): Add stdbool.
44598         * modules/getpass: Add getpass.h.
44599
44600 2004-08-08  Simon Josefsson  <jas@extundo.com>
44601
44602         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
44603         Check getpass declaration.
44604
44605 2004-08-08  Simon Josefsson  <jas@extundo.com>
44606
44607         * lib/xgethostname.c: Don't include error.h (not used).
44608
44609         * lib/getpass.h: Add.
44610         * lib/getpass.c: Include getpass.h first.
44611
44612 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
44613
44614         * lib/xalloc-die.c: New file.
44615         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
44616         All uses removed.
44617         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
44618         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
44619         xalloc-die.c.
44620         (_, N_, xalloc_die): Move to xalloc-die.c.
44621         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
44622         so that we needn't mess with xalloc_msg_memory_exhausted.
44623
44624         * lib/sha1.h: Renamed from sha.h.
44625         (SHA1_H): Renamed from _SHA_H.
44626         (sha1_ctx): Renamed from sha_ctx.
44627         (sha1_init_ctx): Renamed from sha_init_ctx.
44628         (sha1_process_block): Renamed from sha_process_block.
44629         (sha1_process_bytes): Renamed from sha_process_bytes.
44630         (sha1_finish_ctx): Renamed from sha_finish_ctx.
44631         (sha1_read_ctx): Renamed from sha_read_ctx.
44632         (sha1_stream): Renamed from sha_stream.
44633         (sha1_buffer): Renamed from sha_buffer.
44634         * lib/sha1.c: Likewise; renamed from sha.c.
44635         Do not include <sys/types.h>.
44636         Include <stddef.h> rather than <stdlib.h>.
44637
44638 2004-08-08  Bruno Haible  <bruno@clisp.org>
44639
44640         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
44641         FILESYSTEM_PREFIX_LEN.
44642         * lib/progreloc.c: Likewise.
44643         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
44644
44645 2004-08-06  Simon Josefsson  <jas@extundo.com>
44646
44647         * modules/progname (Depends-on): Don't depend on stdbool.
44648
44649 2004-08-06  Simon Josefsson  <jas@extundo.com>
44650
44651         * modules/getsubopt: New file.
44652         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44653         getsubopt.
44654
44655 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
44656
44657         More merge from coreutils.
44658
44659         * m4/utimens.m4, m4/utimecmp.m4: New files.
44660         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
44661         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
44662         prereq.m4, sha.m4: Import changes from coreutils.
44663
44664 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
44665
44666         More merge from coreutils.
44667         * modules/raise, modules/readtokens0, modules/utimens:
44668         * modules/utimecmp, module/xnanosleep: New files.
44669         * modules/strftime: Add lib/strftime.h.
44670         Change include from <time.h> to "strftime.h".
44671         * modules/yesno: Add lib/yesno.h.
44672         * modules/backupfile: Remove lib/addext.c.
44673         * modules/euidaccess: Add stat-macros.h.
44674         * modules/canonicalize, modules/euidaccess,
44675         modules/filemode, modules/lchown, modules/makepath,
44676         modules/rmdir, modules/stat: Likewise.
44677
44678 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
44679
44680         Merge from tar.
44681         * lib/argp-help.c (make_hol, hol_append): Don't assume that
44682         SIZE_MAX is a valid preprocessor constant.
44683         (__argp_basename): Change from "#ifndef _LIBC"
44684         to "#ifndef __argp_short_program_name", so that
44685         we don't compile these functions for tar.
44686
44687         More merges from coreutils.
44688         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
44689         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
44690         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
44691         * lib/addext.c: Remove; no longer needed.
44692         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
44693         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
44694         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
44695         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
44696         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
44697         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
44698         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
44699         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
44700         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
44701         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
44702         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
44703         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
44704         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
44705         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
44706         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
44707         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
44708         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
44709         Import changes from coreutils.
44710
44711 2004-08-05  Simon Josefsson  <jas@extundo.com>
44712
44713         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
44714
44715 2004-08-05  Simon Josefsson  <jas@extundo.com>
44716
44717         * m4/getsubopt.m4: New file.
44718
44719 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
44720
44721         Merge from coreutils.
44722
44723         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
44724         * m4/getcwd-path-max.m4: New files.
44725
44726         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
44727         FILESYSTEM_PREFIX_LEN ->
44728         FILE_SYSTEM_PREFIX_LEN.
44729         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
44730         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
44731         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
44732         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
44733
44734         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
44735         prerequisite modules now handle the DOS stuff.
44736         Don't check for unistd.h.
44737
44738 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
44739
44740         Merge from coreutils.
44741
44742         * lib/.gdb-history: Remove; this doesn't belong here.
44743
44744         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
44745         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
44746         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
44747         * lib/getcwd.c: New files.
44748
44749         * lib/dirname.h: Include <stdbool.h>.
44750         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
44751         for consistency with POSIX terminology.  All uses changed.
44752         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
44753         (strip_trailing_slashes): Use bool for booleans.
44754         * lib/stripslash.c (strip_trailing_slashes): Likewise.
44755
44756         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
44757         sometimes returns a positive errno value even when it succeeds.
44758         (print_errno_message) [!LIBC]: Fall back on strerror if
44759         __strerror_r fails.
44760
44761         * lib/path-concat.c (mempcpy): Don't define if a system header defines
44762         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
44763         (longest_relative_suffix): New function.
44764         (path_concat): Use it.  Assume first argument is not NULL.
44765         Port to DOS.  Omit redundant separators.
44766         Report an error instead of returning NULL.
44767         Use mempcpy instead of memcpy.
44768         (xpath_concat): Remove: not declared or used.
44769
44770         * lib/same.h: Include <stdbool.h>
44771         (same_name): Return bool, not int.
44772         * lib/same.c (same_name): Likewise.
44773         (errno): Don't declare; we assume C89 or better now.
44774
44775         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
44776         if not already defined.
44777
44778         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
44779         * lib/dup-safer.c (errno): Likewise.
44780
44781 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
44782
44783         Merge from coreutils.
44784         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
44785         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
44786         * modules/path-concat: Don't depend on strdup.
44787
44788 2004-08-03  Simon Josefsson  <jas@extundo.com>
44789
44790         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
44791         * lib/progname.h: Don't include stdbool.h.
44792
44793 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
44794
44795         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
44796         * MODULES.html.sh (func_all_modules): Remove fatal.
44797
44798 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
44799
44800         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
44801
44802 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
44803
44804         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
44805         working.
44806
44807 2004-08-02  Simon Josefsson  <jas@extundo.com>
44808
44809         * lib/getsubopt.h: New file, with comments from Bruno Haible.
44810         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
44811         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
44812
44813 2004-08-01  Simon Josefsson  <jas@extundo.com>
44814
44815         * lib/xgetdomainname.c: Include stdlib.h, for free().
44816
44817 2004-07-19  Bruno Haible  <bruno@clisp.org>
44818
44819         * MODULES.html.sh (func_all_modules): Add dummy.
44820
44821 2004-07-16  Simon Josefsson  <jas@extundo.com>
44822
44823         * modules/dummy: New file.
44824
44825 2004-07-16  Simon Josefsson  <jas@extundo.com>
44826
44827         * lib/dummy.c: New file.
44828
44829 2004-07-16  Bruno Haible  <bruno@clisp.org>
44830
44831         * lib/backupfile.h: Add extern "C" for C++.
44832         * lib/closeout.h: Likewise.
44833         * lib/copy-file.h: Likewise.
44834         * lib/findprog.h: Likewise.
44835         * lib/full-write.h: Likewise.
44836         * lib/pathname.h: Likewise.
44837         * lib/progname.h: Likewise.
44838         * lib/stpcpy.h: Likewise.
44839         * lib/stpncpy.h: Likewise.
44840         * lib/strcase.h: Likewise.
44841         * lib/strstr.h: Likewise.
44842         * lib/xalloc.h: Likewise.
44843
44844         * lib/mbswidth.h: Add extern "C" for C++.
44845         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
44846
44847 2004-07-13  Robert Millan  <robertmh@gnu.org>
44848
44849         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
44850
44851 2004-07-09  Simon Josefsson  <jas@extundo.com>
44852
44853         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
44854         failed without this.)
44855
44856 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44857
44858         * modules/chown (Files): Add lib/fchown-stub.c, since
44859         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
44860
44861 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44862
44863         * lib/fchown-stub.c: New file.
44864
44865 2004-06-24  Jim Meyering  <jim@meyering.net>
44866
44867         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
44868
44869 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
44870
44871         * modules/argz: Omit "#include".
44872
44873         * MODULES.html.sh (func_all_modules): Add calloc, to match
44874         2004-06-01 addition of calloc module.
44875
44876 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
44877
44878         * m4/argz.m4: New file, which is autoupdated from libtool.
44879
44880 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
44881
44882         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
44883         libtool.
44884
44885 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
44886
44887         * config/srclist-update: Don't insist on "USA." before the
44888         close-comment, as libtool omits the period and puts the */ on a
44889         separate line.
44890         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
44891         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
44892
44893 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
44894
44895         * modules/argz: New file.
44896         * MODULES.html.sh (func_all_modules): Add argz.
44897
44898 2004-06-12  Jim Meyering  <jim@meyering.net>
44899         and  Paul Eggert  <eggert@cs.ucla.edu>
44900
44901         * modules/hash (Files): Add lib/xalloc.h.
44902         * modules/pipe (Depends-on): Add wait-process.
44903         * modules/stat (Depends-on): Add xalloc.
44904         * modules/userspec (Files): Add lib/userspec.h.
44905         * modules/xstrto
44906
44907         Upgrade from gettext-0.13.
44908         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
44909         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
44910         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
44911
44912 2004-06-10  Jim Meyering  <jim@meyering.net>
44913
44914         * lib/calloc.c: New file.
44915
44916 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
44917
44918         * lib/getdate.y (yylex): Allow space between sign and number.
44919         Problem reported by Dan Jacobson.
44920
44921 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
44922
44923         Merge from coreutils CVS.
44924
44925         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
44926         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
44927         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
44928         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
44929         xstrtol.m4: Fix copyright date and/or serial number.
44930
44931         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
44932         See if we need an fchown replacement.
44933         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
44934         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
44935         and use the replacement function if we detect either defect.
44936
44937         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
44938         gl_UTIMECMP.
44939
44940 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
44941         and  Jim Meyering  <jim@meyering.net>
44942
44943         Merge from coreutils CVS.
44944
44945         * lib/stat-macros.h: New file, with contents from file-type.h
44946         and coreutils' system.h.
44947         * lib/file-type.c: Include "stat-macros.h".
44948         * lib/file-type.h (file_type): Move all macro definitions to new file,
44949         stat-macros.h.
44950
44951         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
44952         Wrap old code with this conditional.
44953         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
44954         function that does not dereference symlinks.
44955         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
44956
44957         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
44958         dependency problems.
44959         (xreadlink): Accept new arg SIZE, for efficiency.
44960         All decls and uses changed.
44961         * lib/xreadlink.h: Include <stddef.h>, for size_t.
44962
44963         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
44964         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
44965
44966         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
44967         sysexits.h.
44968
44969 2004-06-01  Jim Meyering  <jim@meyering.net>
44970
44971         * m4/calloc.m4: New file.
44972
44973 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
44974
44975         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
44976         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
44977         Also, fix a typo in a diagnostic.
44978
44979 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
44980
44981         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
44982         or AC_FUNC_REALLOC.
44983
44984 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
44985
44986         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
44987         macros to be defined.
44988         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
44989         the allocator returns NULL because the requested size is zero.
44990
44991 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
44992
44993         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
44994         var.  Add comment explaining why libc still defines it.  This
44995         merges the following patch from glibc:
44996         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
44997
44998 2004-05-20  Andreas Schwab  <schwab@suse.de>
44999
45000         * m4/free.m4: Replace free if it not known to work, not the other
45001         way round.
45002
45003 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
45004
45005         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
45006         present in glibc since revision 1.1 of this file.
45007         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
45008         obstack_alignment_mask, obstack_alloc, obstack_base,
45009         obstack_blank, obstack_blank_fast, obstack_chunk_size,
45010         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
45011         obstack_grow0, obstack_init, obstack_int_grow,
45012         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
45013         obstack_next_free, obstack_object_size, obstack_ptr_grow,
45014         obstack_ptr_grow_fast, obstack_room): Remove declarations of
45015         nonexistent functions.
45016
45017 2004-05-18  Karl Berry  <karl@gnu.org>
45018
45019         * config/srclist.txt: break link for vasnprintf.c.
45020
45021 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
45022
45023         Port obstack to the AS/400, where pointers are 16 bytes wide and
45024         you cannot cast an integer to a valid pointer.  This patch is
45025         currently waiting to be integrated into glibc; see
45026         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
45027
45028         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
45029         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
45030         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
45031         (struct obstack): temp member is now a union of a pointer and
45032         an integer, instead of an integer.  All integer uses changed.
45033         This does not affect the physical layout of struct obstack,
45034         except on hosts (like the AS/400) where the size or alignment of
45035         void * is greater than that of ptrdiff_t.
45036         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
45037         __STDC__)]: Store temporary in pointer member of union, not
45038         integer member.
45039         * lib/obstack.c: Include <stddef.h>, for offsetof.
45040         (struct fooalign): Remove; it doesn't need a name.
45041         (union fooround): Change double to long double, and add void *.
45042         (DEFAULT_ALIGNMENT): Use offsetof to compute.
45043         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
45044         not a macro.  Hence the values are always int; so remove all
45045         casts-to-int in uses.
45046
45047 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
45048
45049         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
45050         we can get this patch merged into glibc.
45051
45052 2004-05-17  Derek R. Price  <derek@ximbiot.com>
45053             Paul Eggert  <eggert@cs.ucla.edu>
45054
45055         * m4/argp: Depend on alloca.
45056
45057 2004-05-17  Derek R. Price  <derek@ximbiot.com>
45058             Paul Eggert  <eggert@cs.ucla.edu>
45059
45060         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
45061         freecoding.
45062
45063 2004-05-17  Bruno Haible  <bruno@clisp.org>
45064
45065         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
45066         precision that consists of a '.' followed by an empty digit string.
45067         Patch by Tor Lillqvist <tml@iki.fi>.
45068
45069 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
45070
45071         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
45072         for backward compatibility with older code.  We need our own
45073         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
45074         it under some other name, and our alloca.h will define it.
45075
45076 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
45077             Derek Price  <derek@ximbiot.com>
45078
45079         * lib/alloca.c: Include <alloca.h>, to get our interface.
45080         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
45081         include <alloca.h> first.  Use C89 prototype for alloca; this
45082         requires including <stddef.h> for size_t.  Use extern "C" if C++.
45083         Use #elif for simplicity, since we can assume C89 now.
45084         Don't try to source the system alloca.h since it will not be found
45085         and to prevent recursively including its replacement.
45086         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
45087         * lib/regex.c: Likewise.
45088
45089 2004-05-16  Derek Price  <derek@ximbiot.com>
45090             Paul Eggert  <eggert@cs.ucla.edu>
45091
45092         getline cleanup.  This changes the getndelim2 API: both order of
45093         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
45094         no delimiter).
45095
45096         * lib/getline.c: Don't include stddef.h or stdio.h, since our
45097         interface does that.
45098         (getline): Always use getdelim, so that we don't have two
45099         copies of this code.
45100         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
45101         if available.
45102         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
45103         (GETNDELIM2_MAXIMUM): New macro.
45104         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
45105         instead of the old practice of delim2==0.  All callers changed.
45106         Return -1 on overflow, instead of returning junk.
45107         Do not set *linesize unless allocation succeeds.
45108         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
45109         that we include sys/types.h.
45110         * lib/getnline.h: Likewise.
45111         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
45112         (getndelim2): Reorder arguments.
45113         * lib/getnline.c (getnline, getndelim):
45114         Don't discard the NMAX argument.
45115         (getnline): Invoke getndelim, to avoid code duplication.
45116         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
45117         of (size_t) -1 by callers of the getnline family.
45118
45119 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
45120
45121         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
45122         Check for gettimeofday.
45123         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
45124         Check for settimeofday, stime.
45125
45126 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
45127
45128         * lib/nanosleep.c (suspended): Change its type from int to
45129         sig_atomic_t volatile.
45130         (first_call): Make it private to rpl_nanosleep, and have it
45131         be zero initially as that's a bit faster.
45132         (my_usleep): Round up fractional times instead of truncating them,
45133         as this is the usual meaning for 'sleep'.
45134
45135         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
45136         doesn't work.
45137         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
45138         (ENOSYS): Define if not defined.
45139         (settime): Fall back on stime if it exists and settimeofday fails.
45140         But don't bother with fallbacks if a method fails with errno == EPERM.
45141
45142 2004-05-11  Jim Meyering  <jim@meyering.net>
45143
45144         Prior to this change, the save_cwd caller required read access to the
45145         current directory on most systems (ones with the fchdir function).
45146
45147         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
45148         fails, try write-only, and finally, resort to using xgetcwd.
45149
45150 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
45151
45152         * lib/obstack.c, obstack.h: Import changes from libc.
45153
45154 2004-04-28  Bruno Haible  <bruno@clisp.org>
45155
45156         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
45157         also implicitly appends .exe to executables.
45158         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
45159         accepts Windows pathnames.
45160         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
45161         Treat Cygwin like Windows, since it now accepts Windows pathnames.
45162         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
45163         Treat Cygwin like Windows, since it now accepts Windows pathnames.
45164         Reported by Derek Robert Price <derek@ximbiot.com>.
45165
45166 2004-04-21  Karl Berry  <karl@gnu.org>
45167
45168         * config/srclist.txt (localcharset.c): break sync.
45169
45170 2004-04-20  Paul Eggert  <eggert@twinsun.com>
45171
45172         * m4/host-os.m4: Add a copyright notice.
45173
45174 2004-04-20  Jim Meyering  <jim@meyering.net>
45175
45176         Change UTILS_ to gl_ in AC_DEFINE'd names.
45177         Change utils_- and jm_-prefixed variables, too.
45178         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
45179         UTILS_FUNC_MKDIR_TRAILING_SLASH.
45180         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
45181
45182         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
45183         Don't emit trailing blanks.
45184         Also rename jm_-prefixed variables to have gl_ prefix.
45185
45186         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
45187         Also rename jm_-prefixed variables to have gl_ prefix.
45188
45189         * m4/jm-macros.m4: Reflect the renamings.
45190         * m4/prereq.m4: Likewise.
45191
45192 2004-04-20  Jim Meyering  <jim@meyering.net>
45193
45194         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
45195         memory.
45196
45197 2004-04-20  Jim Meyering  <jim@meyering.net>
45198             Bruno Haible  <bruno@clisp.org>
45199
45200         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
45201         memory when realloc fails.
45202
45203 2004-04-19  Jim Meyering  <jim@meyering.net>
45204
45205         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
45206         now that readutmp.c may call `free (0)'.
45207
45208 2004-04-19  Bruno Haible  <bruno@clisp.org>
45209
45210         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
45211         * m4/inttypes_h.m4: Likewise.
45212         * m4/stdint_h.m4: Likewise.
45213         * m4/intmax_t.m4: Likewise.
45214         * m4/uintmax_t.m4: Likewise.
45215
45216 2004-04-18  Jim Meyering  <jim@meyering.net>
45217
45218         * m4/prereq.m4: Don't forbid jm_ prefix.
45219
45220         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
45221         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
45222         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
45223         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
45224         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
45225         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
45226         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
45227         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
45228         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
45229         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
45230         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
45231         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
45232         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
45233         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
45234         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
45235         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
45236         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
45237         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
45238         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
45239
45240 2004-04-18  Jim Meyering  <jim@meyering.net>
45241
45242         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
45243         failure, don't leak memory and do call END_UTMP_ENT.
45244
45245 2004-04-16  Jim Meyering  <jim@meyering.net>
45246
45247         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
45248         coreutils' stat program.
45249         (gl_PREREQ): Don't require jm_PREREQ_STAT.
45250
45251 2004-04-11  Paul Eggert  <eggert@twinsun.com>
45252
45253         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
45254         C89.
45255         (CHAR_BIT): Remove, since we assume C89.
45256         Include <stdint.h> if available, as per current Autoconf CVS advice.
45257
45258 2004-03-31  Jim Meyering  <jim@meyering.net>
45259
45260         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
45261         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
45262         * m4/xalloc.m4: Likewise.
45263
45264 2004-03-30  Paul Eggert  <eggert@twinsun.com>
45265
45266         Merge from coreutils.
45267
45268         * m4/inttostr.m4: New file.
45269         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
45270         Require AM_STDBOOL_H and gl_TIMESPEC instead.
45271         Require gl_CLOCK_TIME.
45272         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
45273
45274 2004-03-30  Paul Eggert  <eggert@twinsun.com>
45275
45276         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
45277         not bool, to be more consistent with Unix conventions.
45278         Suggested by Bruno Haible.
45279
45280         Merge from coreutils.
45281
45282         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
45283         * lib/umaxtostr.c: New files.
45284
45285         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
45286         the usual <time.h> dance.
45287         (get_date): Change signature to support fractional time stamps.
45288         All callers changed.
45289         * lib/getdate.y: Include "getdate.h" first, as we can now
45290         assume C89 and don't need to worry about 'const'.
45291         Similarly, include "unlocked-io.h" near start, not in middle.
45292         Include <limits.h>.
45293         (textint.value): Use long int rather than int.
45294         (textint.digits): Use size_t rather than int.
45295         (BILLION, LOG10_BILLION): New constants.
45296         (parser_control): New member rel_ns.  Members day_ordinal,
45297         time_zone, month, day, hour, minutes, rel_year, rel_month,
45298         rel_day, rel_hour, rel_minutes, rel_seconds
45299         are now long int, not int.  Member seconds is now struct timespec,
45300         not int.  New member timespec_seen.  Members dates_seen, days_seen,
45301         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
45302         not int.
45303         (%union.intval): Now long int, not int.
45304         New member timespec.
45305         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
45306         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
45307         (spec): Now is a timespec or an item list.
45308         (timespec, items): New nonterminals.
45309         (time, rel, relunit, number, get_date):
45310         Add support for fractional seconds.
45311         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
45312         (gmtime, localtime, mktime): Remove decls; not needed with C89.
45313         (to_hour): First arg is now long int, not int.
45314         (to_year): Returns long int, not int.
45315         Don't treat year -70 like 70.
45316         (tm_diff): Returns long int, not int.
45317         (lookup_word): Use bool instead of int when appropriate.
45318         (yylex): Use size_t for count, not int.
45319         Detect overflow when parsing large integer constants.
45320         Add support for fractions.
45321         (get_date): Make pointers 'const' if possible.
45322         Use more-portable code to detect integer overflow.
45323         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
45324         Don't use ctime; it's not reliable if the year has >4 digits.
45325
45326         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
45327         This is for compatibility with BSD.
45328
45329         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
45330         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
45331         From coreutils' system.h.
45332
45333         * lib/userspec.c: Don't include "posixver.h".
45334         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
45335         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
45336         compatible extension.  Simplify code by removing a boolean int
45337         that was always nonzero if a string was nonnull.
45338
45339 2004-03-30  Jim Meyering  <jim@meyering.net>
45340
45341         Merge from coreutils.
45342
45343         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
45344         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
45345         on some systems one must include <grp.h> before it.
45346         Reported by Christian Krackowizer.
45347
45348 2004-03-30  Jim Meyering  <jim@meyering.net>
45349
45350         Merge from coreutils.
45351
45352         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
45353
45354         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
45355         an empty input stream.
45356
45357         * lib/readtokens.c: Include <stdbool.h>.
45358         (readtoken): Use `size_t' rather than int/long.
45359         All callers adjusted.
45360         Use `bool' rather than `int' where appropriate.
45361         Use memset rather than an explicit loop.
45362         Use x2nrealloc rather than xrealloc.
45363         Allow the use of `\0' as a delimiter.
45364         (readtokens): Likewise.
45365         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
45366
45367 2004-03-30  Jim Meyering  <jim@meyering.net>
45368
45369         * m4/realloc.m4: Remove file, since now it does no more than
45370         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
45371         the `configure.ac' section of module/realloc.
45372         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
45373
45374 2004-03-30  Bruno Haible  <bruno@clisp.org>
45375
45376         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
45377         nonnull.
45378
45379 2004-03-29  Paul Eggert  <eggert@twinsun.com>
45380
45381         Merge changes to getloadavg.c from coreutils and Emacs.
45382
45383         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
45384         Define to an expression, not to the empty string.
45385         Include cloexec.h and xalloc.h.
45386         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
45387         Use set_cloexec_flag rather than rolling our own.
45388         * lib/cloexec.c, lib/cloexec.h: New files.
45389
45390 2004-03-29  Paul Eggert  <eggert@twinsun.com>
45391
45392         * m4/cloexec.m4: New file.
45393
45394 2004-03-18  Paul Eggert  <eggert@twinsun.com>
45395
45396         * lib/getopt.h: Sync with libc CVS.
45397
45398 2004-03-18  Paul Eggert  <eggert@twinsun.com>
45399             Bruno Haible  <bruno@clisp.org>
45400
45401         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
45402         mbswidth.
45403
45404 2004-03-18  Paul Eggert  <eggert@twinsun.com>
45405             Bruno Haible  <bruno@clisp.org>
45406
45407         * lib/mbswidth.h: Include <wchar.h> only if
45408         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
45409         <wchar.h>.
45410         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
45411
45412 2004-03-09  Paul Eggert  <eggert@twinsun.com>
45413
45414         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
45415         Sync with libc CVS.
45416         * lib/getopt_int.h: New file, also synced from libc.
45417
45418 2004-03-09  Paul Eggert  <eggert@twinsun.com>
45419
45420         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
45421         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
45422         Bring back getopt.c, getopt.h, getopt1.c.
45423
45424 2004-03-07  Paul Eggert  <eggert@twinsun.com>
45425
45426         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
45427         All uses changed.  Check for sa_sigaction member; this fixes
45428         a bug first reported by Jason Andrade in
45429         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
45430
45431 2004-03-07  Paul Eggert  <eggert@twinsun.com>
45432
45433         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
45434         '#if' expressions.  Unlike the code it replaces, it does not
45435         depend on (defined _SC_PAGESIZE).  However, it does depend on
45436         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
45437         first reported by Jason Andrade in
45438         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
45439
45440 2004-02-25  Simon Josefsson  <jas@extundo.com>
45441
45442         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
45443
45444 2004-02-25  Simon Josefsson  <jas@extundo.com>
45445
45446         * lib/strdup.h: New file.
45447         * lib/strdup.c: Include it.
45448         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
45449         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
45450
45451 2004-02-23  Karl Berry  <karl@gnu.org>
45452
45453         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
45454         (from fencepost.gnu.org:/gd/gnuorg).
45455
45456 2004-02-23  Karl Berry  <karl@gnu.org>
45457
45458         * config/srclistvars.sh (GNUORG) [karl]: redefine.
45459         * config/srclist.txt: add maintain/standards documents.
45460
45461 2004-02-18  Bruno Haible  <bruno@clisp.org>
45462
45463         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
45464         Reported by Derek Robert Price <derek@ximbiot.com>.
45465
45466 2004-02-16  Karl Berry  <karl@gnu.org>
45467
45468         * config/mkinstalldirs, install-sh: update from automake.
45469
45470 2004-02-06  Karl Berry  <karl@gnu.org>
45471
45472         * m4/po.m4: update from gettext 0.14.1.
45473
45474 2004-02-06  Karl Berry  <karl@gnu.org>
45475
45476         * lib/config.charset: update from gettext 0.14.1.
45477
45478 2004-02-05  Paul Eggert  <eggert@twinsun.com>
45479
45480         Add comments and code, prompted by suggestions from Bruno Haible
45481         for sh-quote.
45482         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
45483         describing the enum quoting_style values.
45484         * lib/quotearg.c (quotearg_alloc): New function.
45485         (quotearg_buffer_restyled): Treat lone { and } as special.
45486         Treat = as special.  Work around bug with older shells
45487         that "see" a '\' that is really the 2nd byte of a multibyte char.
45488         Quote empty string with shell_quoting_style.
45489
45490 2004-02-03  Bruno Haible  <bruno@clisp.org>
45491
45492         * m4/pipe.m4: New file, from GNU gettext.
45493
45494 2004-02-03  Bruno Haible  <bruno@clisp.org>
45495
45496         * lib/pipe.h: New file, from GNU gettext.
45497         * lib/pipe.c: New file, from GNU gettext.
45498
45499 2004-01-27  Bruno Haible  <bruno@clisp.org>
45500
45501         * m4/execute.m4: New file, from GNU gettext.
45502
45503 2004-01-27  Bruno Haible  <bruno@clisp.org>
45504
45505         * lib/execute.h: New file, from GNU gettext.
45506         * lib/execute.c: New file, from GNU gettext.
45507         * lib/w32spawn.h: New file, from GNU gettext.
45508
45509 2004-01-24  Paul Eggert  <eggert@twinsun.com>
45510
45511         Merge from diffutils.
45512
45513         * lib/file-type.c (file_type): Add typed memory objects.
45514         * lib/file-type.h (S_TYPEISTMO): New macro.
45515
45516         * lib/c-stack.h (c_stack_action): Remove argv argument.
45517         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
45518         (die): Don't calculate message unless segv_action returns.
45519         (get_stack_location, min_address_from_argv, max_address_from_argv,
45520         volatile stack_base, volatile_stack_size): Remove.
45521         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
45522         that every segmentation violation is a stack overflow.  (Ouch!)
45523         See Debian bug 136249 (still outstanding) for more info about why
45524         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
45525
45526 2004-01-24  Paul Eggert  <eggert@twinsun.com>
45527
45528         Exit-status fix from coreutils.
45529
45530         Use exit_failure consistently in place of EXIT_FAILURE,
45531         so that program exit statuses are consistent on failure.
45532
45533         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
45534         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
45535         * lib/argmatch.h: Comment fix to match the above.
45536         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
45537         Now a macro referring to exit_failure, instead of a separate
45538         variable.  Include "exitfail.h" to get it.
45539         * lib/xstrtol.h: Include "exitfail.h".
45540         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
45541
45542         * lib/long-options.c (parse_long_options): Use prototype
45543         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
45544         for clarity.
45545
45546 2004-01-21  Jim Meyering  <jim@meyering.net>
45547
45548         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
45549         so as not to conflict with a different-sized __mktime_internal
45550         function in GNU libc.
45551         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
45552         Problem building statically-linked `ls' reported by Michael Brunnbauer.
45553
45554 2004-01-20  Karl Berry  <karl@gnu.org>
45555
45556         * config/config.guess: update from config.
45557
45558         * config/srclistvars.sh: GNUWWWLICENSES for karl.
45559
45560 2004-01-20  Bruno Haible  <bruno@clisp.org>
45561
45562         Safer stack allocation.
45563         * lib/setenv.c: Include allocsa.h.
45564         (alloca): Remove fallback definition.
45565         (freea): Remove macro.
45566         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
45567         instead of freea.
45568
45569 2004-01-20  Bruno Haible  <bruno@clisp.org>
45570
45571         * m4/eealloc.m4: New file, from GNU gettext.
45572
45573 2004-01-20  Bruno Haible  <bruno@clisp.org>
45574
45575         * m4/allocsa.m4: New file, from GNU gettext.
45576
45577 2004-01-20  Bruno Haible  <bruno@clisp.org>
45578
45579         * lib/xallocsa.h: New file, from GNU gettext.
45580         * lib/xallocsa.c: New file, from GNU gettext.
45581
45582 2004-01-20  Bruno Haible  <bruno@clisp.org>
45583
45584         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
45585
45586 2004-01-20  Bruno Haible  <bruno@clisp.org>
45587
45588         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
45589         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
45590         specially.
45591
45592 2004-01-20  Bruno Haible  <bruno@clisp.org>
45593
45594         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
45595         patch.
45596
45597 2004-01-20  Bruno Haible  <bruno@clisp.org>
45598
45599         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
45600
45601 2004-01-20  Bruno Haible  <bruno@clisp.org>
45602
45603         * lib/eealloc.h: New file.
45604
45605 2004-01-20  Bruno Haible  <bruno@clisp.org>
45606
45607         * lib/binary-io.h: Avoid warnings on Cygwin.
45608
45609 2004-01-20  Bruno Haible  <bruno@clisp.org>
45610
45611         * lib/allocsa.h: New file, from GNU gettext.
45612         * lib/allocsa.c: New file, from GNU gettext.
45613
45614 2004-01-18  Karl Berry  <karl@gnu.org>
45615
45616         * doc/gpl.texi, doc/lgpl.texi: new files.
45617
45618 2004-01-18  Karl Berry  <karl@gnu.org>
45619
45620         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
45621         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
45622
45623 2004-01-15  Paul Eggert  <eggert@twinsun.com>
45624
45625         Merge from coreutils.
45626
45627         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
45628         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
45629         (gl_DEFAULT_POSIX2_VERSION): Move
45630         the documentation from 'configure' into 'config.hin',
45631         so that 'configure --help' isn't burdened by it and
45632         we don't have to worry about its formatting there.
45633         Reword the documentation so that it's more succinct
45634         and can be run together into a single paragraph.
45635         * m4/same.m4 (gl_SAME): Check for pathconf.
45636
45637 2004-01-15  Paul Eggert  <eggert@twinsun.com>
45638
45639         Merge from coreutils.
45640
45641         * lib/posixver.c: Include posixver.h.
45642
45643         * lib/same.c: Include <stdbool.h>, <limits.h>.
45644         (_POSIX_NAME_MAX): Define if not defined.
45645         (MIN): New macro.
45646         (same_name): If file names are silently truncated, report
45647         that the file names are the same if they are the same after
45648         the silent truncation.
45649
45650         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
45651         conversion function.
45652         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
45653         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
45654         longer needed.
45655
45656 2004-01-15  Jim Meyering  <jim@meyering.net>
45657
45658         Merge from coreutils.
45659
45660         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
45661         if no library is required.
45662         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
45663         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
45664         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
45665         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
45666         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
45667         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
45668         value, $ac_cv_search_crypt, if it's "none required".
45669         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
45670         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
45671         not gl_FUNC_GETLOADAVG.
45672         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
45673         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
45674
45675 2004-01-15  Jim Meyering  <jim@meyering.net>
45676
45677         Merge from coreutils.
45678
45679         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
45680         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
45681         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
45682
45683         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
45684         optional configure-time default.
45685
45686         * lib/version-etc.c (version_etc_copyright): Update copyright date.
45687
45688         * lib/xreadlink.c (xreadlink): Correct outdated comment.
45689
45690 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
45691
45692         Merge from coreutils.
45693
45694         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
45695         value, $ac_cv_search_nanosleep, if it's "none required".
45696
45697 2004-01-14  Paul Eggert  <eggert@twinsun.com>
45698
45699         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
45700         with like-named macro in fnmatch.c.
45701         (EXT): Use an internal constant instead.
45702
45703         Merge fnmatch patches from glibc.
45704         * lib/fnmatch.c (mbsinit): Remove define.
45705         Add libc_hidden_ver (__fnmatch, fnmatch).
45706         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
45707         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
45708
45709 2004-01-14  Karl Berry  <karl@gnu.org>
45710
45711         * config/install-sh: update from automake.
45712
45713 2004-01-13  Karl Berry  <karl@gnu.org>
45714
45715         * config/install-sh: update from automake.
45716
45717 2004-01-09  Karl Berry  <karl@gnu.org>
45718
45719         * config/install-sh: update from automake.
45720
45721 2004-01-05  Karl Berry  <karl@gnu.org>
45722
45723         * config/config.{sub,guess}: update from config.
45724
45725 2003-12-31  Karl Berry  <karl@gnu.org>
45726
45727         * config/depcomp: update from automake.
45728
45729 2003-12-14  Karl Berry  <karl@gnu.org>
45730
45731         * lib/config.charset: update from gettext-runtime.
45732
45733 2003-12-03  Paul Eggert  <eggert@twinsun.com>
45734
45735         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
45736         Bug reported by Alfred M. Szmidt.
45737
45738 2003-12-03  Bruno Haible  <bruno@clisp.org>
45739
45740         * m4/gettext.m4: Upgrade from gettext-0.13.
45741         * m4/po.m4: Upgrade from gettext-0.13.
45742         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
45743         * m4/intmax.m4: New file, from gettext-0.13.
45744         * m4/printf-posix.m4: New file, from gettext-0.13.
45745
45746 2003-11-29  Karl Berry  <karl@gnu.org>
45747
45748         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
45749
45750 2003-11-25  Paul Eggert  <eggert@twinsun.com>
45751             Bruno Haible  <bruno@clisp.org>
45752
45753         * lib/printf-parse.h: Don't include sys/types.h.
45754         (ARG_NONE): New macro.
45755         (char_directive): Change type of *arg_index fields to size_t.
45756         * lib/printf-parse.c: Don't include sys/types.h.
45757         (SSIZE_MAX): Remove macro.
45758         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
45759         Remove unnecessary overflow check.
45760         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
45761         fields.
45762
45763 2003-11-25  Bruno Haible  <bruno@clisp.org>
45764
45765         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
45766
45767 2003-11-25  Bruno Haible  <bruno@clisp.org>
45768
45769         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
45770         gt_TYPE_SSIZE_T.
45771
45772 2003-11-24  Paul Eggert  <eggert@twinsun.com>
45773
45774         * modules/alloca: Remove dependency on xalloc.
45775
45776 2003-11-24  Paul Eggert  <eggert@twinsun.com>
45777
45778         * lib/alloca.c: Remove dependency on xalloc module.
45779         (xalloc_die): Remove.
45780         (memory_full) [!defined emacs]: New macro.
45781         [!defined emacs]: Don't include xalloc.h.
45782         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
45783         address arithmetic overflows.  Change datatypes a bit to avoid
45784         unnecessary casts.
45785
45786 2003-11-22  Jim Meyering  <jim@meyering.net>
45787
45788         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
45789         s/size/size_t/.
45790
45791 2003-11-21  Karl Berry  <karl@gnu.org>
45792
45793         * config/config.{sub,guess}: update from config.
45794
45795 2003-11-18  Karl Berry  <karl@gnu.org>
45796
45797         * config/config.{sub,guess}: update from config.
45798
45799         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
45800
45801 2003-11-17  Paul Eggert  <eggert@twinsun.com>
45802
45803         * README: Mention that S+T cannot overflow if S is the size of
45804         an existing object and T is sufficiently small.
45805
45806 2003-11-17  Jim Meyering  <jim@meyering.net>
45807
45808         On systems without utime and without a utimes function capable of
45809         dealing with a NULL struct utimbuf* argument, this utime replacement
45810         could -- in unusual circumstances -- leak a file descriptor.
45811         * lib/utime.c: Include <unistd.h> and <errno.h>.
45812         (utime_null): Be sure to close `fd' and to preserve errno.
45813         Reported by Geoff Collyer via Arnold Robbins.
45814
45815 2003-11-17  Bruno Haible  <bruno@clisp.org>
45816
45817         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
45818         (Depends-on): Add xsize.
45819
45820 2003-11-17  Bruno Haible  <bruno@clisp.org>
45821
45822         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
45823
45824 2003-11-17  Bruno Haible  <bruno@clisp.org>
45825
45826         * lib/vasnprintf.c (alloca): Remove fallback definition.
45827         (freea): Remove definition.
45828         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
45829         Reported by Paul Eggert.
45830
45831 2003-11-16  Paul Eggert  <eggert@twinsun.com>
45832             Bruno Haible  <bruno@clisp.org>
45833
45834         Protect against address arithmetic overflow.
45835         * lib/printf-args.h: Include stddef.h.
45836         (arguments): Change type of field 'count' to size_t.
45837         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
45838         'unsigned int' where appropriate.
45839         * lib/printf-parse.h: Include sys/types.h.
45840         (char_directive): Change type of *arg_index fields to ssize_t.
45841         (char_directives): Change type of fields 'count', max_*_length to
45842         size_t.
45843         * lib/printf-parse.c: Include sys/types.h and xsize.h.
45844         (SSIZE_MAX): Define fallback value.
45845         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
45846         instead of 'int' where appropriate. Check a_allocated, d_allocated
45847         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
45848         * lib/vasnprintf.c: Include xsize.h.
45849         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
45850         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
45851         overflow. Avoid wraparound when converting a width or precision from
45852         decimal to binary.
45853
45854 2003-11-16  Bruno Haible  <bruno@clisp.org>
45855
45856         Update from GNU gettext.
45857         * lib/printf-parse.c: Generalize to it can be compiled for wide
45858         strings.
45859         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
45860         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
45861         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
45862         SNPRINTF): New macros.
45863         Don't include <alloca.h> if the file is used inside libintl.
45864         (local_wcslen): New function, for Solaris 2.5.1.
45865         (VASNPRINTF): Use it instead of wcslen.
45866
45867 2003-11-16  Bruno Haible  <bruno@clisp.org>
45868
45869         * lib/xsize.h (xmax): New function.
45870         (xsum, xsum3, xsum4): Declare as "pure" functions.
45871
45872 2003-11-12  Paul Eggert  <eggert@twinsun.com>
45873
45874         * modules/xalloc (Files): Undo latest change, since xalloc.h
45875         no longer needs SIZE_MAX or PTRDIFF_MAX.
45876
45877 2003-11-12  Paul Eggert  <eggert@twinsun.com>
45878
45879         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
45880         gl_PTRDIFF_MAX.
45881
45882 2003-11-12  Paul Eggert  <eggert@twinsun.com>
45883
45884         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
45885         "return", to pacify some unknown compiler.  Problem reported
45886         by Joerg Schilling.
45887
45888 2003-11-12  Paul Eggert  <eggert@twinsun.com>
45889
45890         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
45891         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
45892         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
45893         heuristic is just as accurate as far as we know, and it removes a
45894         dependency on size_max.m4 and ptrdiff_max.m4.
45895
45896 2003-11-11  Bruno Haible  <bruno@clisp.org>
45897
45898         * modules/xsize (Files): Add m4/size_max.m4.
45899         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
45900
45901 2003-11-11  Bruno Haible  <bruno@clisp.org>
45902
45903         * m4/size_max.m4: New file.
45904         * m4/ptrdiff_max.m4: New file.
45905         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
45906         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
45907         (gl_XALLOC): Invoke it.
45908
45909 2003-11-11  Bruno Haible  <bruno@clisp.org>
45910
45911         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
45912         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
45913         defined.
45914
45915 2003-11-10  Paul Eggert  <eggert@twinsun.com>
45916
45917         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
45918         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
45919         rejected some allocations of exactly SIZE_MAX - 2 bytes.
45920         From Bruno Haible.
45921         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
45922         not (size_t) -1, since it's defined here.
45923
45924 2003-11-09  Karl Berry  <karl@gnu.org>
45925
45926         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
45927
45928 2003-11-06  Paul Eggert  <eggert@twinsun.com>
45929
45930         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
45931         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
45932         Reject sizes of exactly SIZE_MAX bytes.
45933         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
45934         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
45935
45936 2003-11-05  Bruno Haible  <bruno@clisp.org>
45937
45938         * lib/xsize.h: Include limits.h, to avoid a possible collision with
45939         SIZE_MAX defined in <limits.h> on Solaris.
45940
45941 2003-11-04  Jim Meyering  <jim@meyering.net>
45942
45943         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
45944         variable names, rather than @VAR@.
45945         * modules/poll: Likewise.
45946
45947 2003-11-04  Bruno Haible  <bruno@clisp.org>
45948
45949         * modules/xsize: New file.
45950         * modules/linebreak: Depend on xsize.
45951         * MODULES.html.sh (func_all_modules): Add xsize.
45952
45953 2003-11-04  Bruno Haible  <bruno@clisp.org>
45954
45955         * m4/xsize.m4: New file.
45956
45957 2003-11-04  Bruno Haible  <bruno@clisp.org>
45958
45959         * lib/xsize.h: New file.
45960         * lib/linebreak.c: Include xsize.h.
45961         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
45962         argument for overflow.
45963         Suggested by Paul Eggert.
45964
45965 2003-11-03  Karl Berry  <karl@gnu.org>
45966
45967         * config/config.{guess,sub}: update from config.
45968
45969 2003-11-03  Jim Meyering  <jim@meyering.net>
45970
45971         * modules/userspec (lib_SOURCES): Add userspec.h.
45972         (Include): Add "userspec.h".
45973         Improve description.
45974
45975 2003-11-03  Jim Meyering  <jim@meyering.net>
45976
45977         * lib/userspec.c: Include "userspec.h".
45978         * lib/userspec.h: New file.
45979
45980 2003-11-03  Bruno Haible  <bruno@clisp.org>
45981
45982         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
45983
45984 2003-11-03  Bruno Haible  <bruno@clisp.org>
45985
45986         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
45987         available, to avoid (extremely rare) race condition.
45988         Suggested by Paul Eggert.
45989
45990 2003-11-02  Karl Berry  <karl@gnu.org>
45991
45992         * config/srclist.txt (vasprintf.c): sync broken, sigh.
45993
45994 2003-10-31  Paul Eggert  <eggert@twinsun.com>
45995
45996         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
45997         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
45998         (read_filesystem_list): Set and use me_type_malloced.
45999         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
46000         whatever the type happens to be), for brevity and consistency.
46001         Check for size calculation overflow on Alphas running OSF/1.
46002
46003 2003-10-31  Jim Meyering  <jim@meyering.net>
46004
46005         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
46006
46007         * lib/linebuffer.c: Include <string.h> for declaration of memset.
46008
46009 2003-10-30  Paul Eggert  <eggert@twinsun.com>
46010             Bruno Haible  <bruno@clisp.org>
46011
46012         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
46013         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
46014
46015 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
46016
46017         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
46018         netbsd*-gnu*.  Suggested by Robert Millan.
46019
46020 2003-10-29  Paul Eggert  <eggert@twinsun.com>
46021
46022         * modules/group-member: Depend on stdbool.
46023
46024 2003-10-29  Paul Eggert  <eggert@twinsun.com>
46025
46026         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
46027
46028 2003-10-29  Paul Eggert  <eggert@twinsun.com>
46029
46030         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
46031         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
46032         after the 'gnu' in these cases.  This fixes some bugs in the
46033         previous change, and is based on suggestions by Robert Millan.
46034
46035 2003-10-29  Paul Eggert  <eggert@twinsun.com>
46036
46037         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
46038         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
46039         no longer needed.
46040         * lib/quotearg.c (quotearg_n_options): Use it.
46041         * lib/group-member.c: Include <stdbool.h>.
46042         (free_group_info): Arg is now const *; don't free arg.
46043         (get_group_info): Now returns bool and accepts struct group_info *,
46044         rather than returning a malloc'ed struct group_info *.
46045         All uses changed.  Check for overflow in internal size calculation.
46046
46047         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
46048         rather than xmalloc/xrealloc.
46049         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
46050         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
46051         conformance bug: the old code used a pointer after freeing the
46052         storage that it addressed.
46053         * lib/hash.c (hash_initialize): Simplify the code by using
46054         xalloc_oversized rather than doing it by hand.
46055         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
46056         the buffer preserved.  Use free and xmalloc instead.
46057         * lib/quotearg.c (quotearg_n_options): Likewise.
46058         Use a simpler test for size overflow.  Don't use xalloc_oversized
46059         because unsigned int might be wider than size_t (!); this suggests
46060         that we should switch from unsigned int to size_t for slot numbers.
46061
46062 2003-10-28  Paul Eggert  <eggert@twinsun.com>
46063
46064         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
46065         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
46066         NetBSD kernels.  Requested by Richard Stallman.
46067
46068 2003-10-27  Paul Eggert  <eggert@twinsun.com>
46069
46070         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
46071         to allocate the returned structure.  Do not allocate a subarray,
46072         as x2nrealloc will do that.
46073         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
46074         instead of xnrealloc.
46075         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
46076
46077 2003-10-27  Bruno Haible  <bruno@clisp.org>
46078
46079         * lib/stdbool_.h: Better support for BeOS.
46080
46081 2003-10-26  Paul Eggert  <eggert@twinsun.com>
46082
46083         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
46084         now uses inline.
46085
46086 2003-10-26  Paul Eggert  <eggert@twinsun.com>
46087
46088         * lib/xalloc.h (xalloc_oversized): New static inline function, for
46089         callers that want to do their own size-overflow checking.  Include
46090         <stdbool.h>, since xalloc_oversized returns bool.
46091         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
46092         to use xalloc_oversized.
46093
46094         Add two functions x2realloc, x2nrealloc, for programs that grow
46095         arrays dynamically by doubling their sizes.
46096         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
46097         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
46098         New functions.
46099
46100         Port to C99 semantics for 'inline' of external functions.
46101         Bug reported by Bruno Haible.
46102         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
46103         with the old contents of xnmalloc.
46104         (xnmalloc, xmalloc): Use it.
46105         (xnrealloc_inline): New static inline function,
46106         with the old contents of xnrealloc.
46107         (xnrealloc, xrealloc): Use it.
46108
46109         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
46110         that.
46111
46112 2003-10-26  Karl Berry  <karl@gnu.org>
46113
46114         * config/srclist.txt (COPYING.DOC): no longer available from
46115         /gd/gnuorg; don't know where the ultimate source is.
46116
46117 2003-10-25  Paul Eggert  <eggert@twinsun.com>
46118
46119         Fix several address-calculation bugs in the hash modules,
46120         plus some minor code cleanup.
46121
46122         * lib/hash.h: Include <stdbool.h>, for bool.
46123         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
46124         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
46125         hash_get_n_entries, hash_get_max_bucket_length,
46126         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
46127         hash_rehash): Use size_t rather than unsigned.
46128         * lib/hash.c (struct hash_table, hash_get_n_buckets,
46129         hash_get_n_buckets_used, hash_get_n_entries,
46130         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
46131         hash_get_entries, hash_do_for_each, hash_string, is_prime,
46132         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
46133         Likewise.
46134         (SIZE_MAX): Define if not defined.
46135         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
46136         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
46137         hash_print):
46138         Use const * when possible.
46139         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
46140         (check_tuning): Fix bug: if tuning parameters were very close to
46141         0 or 1, rounding errors could have caused subscript violations.
46142         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
46143         (hash_initialize): Add 'fail:' label
46144         to free table and return NULL, and use it to simplify code.
46145         Use calloc rather than clearing the storage ourself.
46146         (hash_initialize, hash_rehash): Check for arithmetic overflow in
46147         buffer size calculations.
46148         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
46149         Include <stddef.h>, for size_t.
46150         * lib/hash-pjw.c (hash_pjw): Likewise.
46151         Switch to method described by Bruno Haible.
46152         Include <limits.h>, for CHAR_BIT.
46153         (SIZE_BITS): New macro.
46154
46155 2003-10-23  Paul Eggert  <eggert@twinsun.com>
46156
46157         * m4/getline.m4 (AM_FUNC_GETLINE):
46158         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
46159         hosts.  Problem reported by Derek Robert Price in
46160         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
46161         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
46162         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
46163
46164 2003-10-21  Paul Eggert  <eggert@twinsun.com>
46165
46166         * lib/getndelim2.c (getndelim2): When size calculation overflows,
46167         ceiling the allocation at NMAX bytes rather than silently
46168         discarding input bytes before NMAX is reached.  This makes
46169         a difference only if NMAX exceeds SIZE_MAX / 2.
46170
46171         * lib/obstack.c: Merge from glibc.
46172         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
46173         Add libc_hidden_def (_obstack_newchunk).
46174         (_obstack_free) [! defined _LIBC]: Remove.
46175         [defined _LIBC]: Make a strong alias from obstack_free, rather than
46176         a clone of the function body.
46177         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
46178         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
46179
46180         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
46181         glibc.
46182         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
46183         arg to memcpy.
46184
46185         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
46186         (obstack_ptr_grow_fast, obstack_int_grow_fast):
46187         Don't use lvalue casts, as GCC plans to remove support for them
46188         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
46189         was also present in the non-GCC version, indicating that this
46190         code had always been buggy and had never been widely used.
46191         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
46192         Use the fast variant of each macro, rather than copying the
46193         definiens of the fast variant; that way, we'll be more likely to
46194         catch future bugs in the fast variants.
46195
46196 2003-10-20  Bruno Haible  <bruno@clisp.org>
46197
46198         * modules/wait-process: New file.
46199         * MODULES.html.sh (func_all_modules): Add wait-process.
46200
46201 2003-10-20  Bruno Haible  <bruno@clisp.org>
46202
46203         * m4/wait-process.m4: New file.
46204
46205 2003-10-20  Bruno Haible  <bruno@clisp.org>
46206
46207         * lib/wait-process.h: New file, from GNU gettext.
46208         * lib/wait-process.c: New file, from GNU gettext.
46209
46210 2003-10-19  Jim Meyering  <jim@meyering.net>
46211
46212         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
46213         HPUX 10.20.
46214
46215 2003-10-18  Karl Berry  <karl@gnu.org>
46216
46217         * config/config.guess: update from config.
46218
46219 2003-10-16  Paul Eggert  <eggert@twinsun.com>
46220
46221         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
46222         (getgroups): First arg is int, not size_t.
46223         Don't let 'free' mangle errno.
46224
46225 2003-10-16  Paul Eggert  <eggert@twinsun.com>
46226
46227         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
46228
46229 2003-10-16  Karl Berry  <karl@gnu.org>
46230
46231         * config/config.{guess,sub}: update from config.
46232
46233 2003-10-16  Jim Meyering  <jim@meyering.net>
46234
46235         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
46236         memcpy.
46237
46238 2003-10-15  Paul Eggert  <eggert@twinsun.com>
46239
46240         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
46241         (SIZE_MAX): Remove.
46242         (new_exclude, add_exclude_file): Initial size no longer needs to
46243         be a power of 2.
46244         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
46245         our own address arithmetic overflow checking.
46246
46247         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
46248         (fnmatch): Do not alloca more than 2000 wide characters;
46249         instead, use malloc for large buffers.
46250         Check for address arithmetic overflow, and return -1
46251         with errno set to ENOMEM in that case.
46252         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
46253         (NEW_PATTERN): Do not alloca more than 8000 bytes;
46254         instead, return -1.  Check for address arithmetic overflow.
46255
46256 2003-10-14  Paul Eggert  <eggert@twinsun.com>
46257
46258         Handle invalid suffixes and overflow independently, so that
46259         callers can treat them independently as needed.  Fix some bugs in
46260         suffix handling, e.g., "100k@" was not diagnosed as an invalid
46261         suffix for a human-readable blocksize.  The major caller-visible
46262         change is the addition of a new
46263         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
46264         that both overflow and suffix chars were found.
46265
46266         * lib/human.c (humblock): Don't check separately for invalid suffix
46267         char; that is xstrtoumax's job (now that its bug is fixed).
46268         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
46269         INTMAX_MAX]: New macros.
46270         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
46271         TYPE_MAXIMUM): New macros.
46272         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
46273         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
46274         if overflow occurs, as it's what __strtol does and it's more useful
46275         in practice.
46276         (__xstrtol): If __strtol reports some error other than ERANGE,
46277         reflect it to the caller as LONGINT_INVALID.  If it reports
46278         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
46279         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
46280         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
46281         value.
46282         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
46283         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
46284         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
46285         [defined UINTMAX_MAX]: New macros.
46286
46287 2003-10-14  Bruno Haible  <bruno@clisp.org>
46288
46289         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
46290
46291 2003-10-14  Bruno Haible  <bruno@clisp.org>
46292
46293         * m4/sig_atomic_t: New file, from GNU gettext.
46294         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
46295
46296 2003-10-14  Bruno Haible  <bruno@clisp.org>
46297
46298         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
46299         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
46300         Also use volatile where needed.
46301
46302 2003-10-12  Paul Eggert  <eggert@twinsun.com>
46303
46304         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
46305         Change maintainer from Bruno Haible to 'all'.
46306
46307 2003-10-12  Paul Eggert  <eggert@twinsun.com>
46308
46309         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
46310
46311 2003-10-12  Paul Eggert  <eggert@twinsun.com>
46312
46313         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
46314         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
46315         and define in terms of the other primitives.
46316         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
46317         (SIZE_MAX): Define if not already defined.
46318         (array_size_overflow): New function.
46319         (xalloc_die): Abort instead of exiting if 'error' returns.
46320         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
46321         (xmalloc, xrealloc): Use them.
46322         (xcalloc): Check for address arithmetic overflow.
46323         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
46324         a bit faster than strcpy.
46325
46326 2003-10-10  Simon Josefsson  <jas@extundo.com>
46327
46328         * modules/argp (Depends-on): Add restrict and strcase.
46329
46330 2003-10-10  Simon Josefsson  <jas@extundo.com>
46331
46332         * m4/argp.m4: Add AC_C_INLINE.
46333
46334 2003-10-08  Paul Eggert  <eggert@twinsun.com>
46335
46336         Merge getpass from libc, plus a few fixes.
46337
46338         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
46339         Include <stdbool.h>.
46340         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
46341         __fsetlocking to empty.
46342         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
46343         do include <bits/libc-lock.h>.
46344         Do not include <fcntl.h>; not needed.
46345         [_LIBC]: Include <wchar.h>.
46346         (NOTCANCEL_MODE): New macro.
46347         (flockfile, funlockfile) [_LIBC]: New macros.
46348         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
46349         [!_LIBC]: New macros.
46350         (call_fclose): New function.
46351         (getpass): Use it.  Save tty stream separately; this simplifies the
46352         code and makes it more reliable if stdin happens to equal stdout.
46353         Invoke __fsetlocking on tty.
46354         Handle thread cancellation if needed.
46355         Namespace cleanup (use __tcgetattr, __getline).
46356         Use bool for Booleans.
46357         [USE_IN_LIBIO]: Handle wide streams.
46358         [!_LIBC]: Unconditionally do the fseek, since we don't know what
46359         stream might go where.
46360
46361         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
46362         doesn't have to include <stdio.h> before us.
46363         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
46364         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
46365         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
46366         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
46367         if not declared, so that we can use getpass.c code from libc without
46368         rewriting it.
46369         (flockfile, ftrylockfile, funlockfile): New macros.
46370
46371 2003-10-08  Paul Eggert  <eggert@twinsun.com>
46372
46373         * modules/getpass: Depend on stdbool.
46374
46375 2003-10-08  Paul Eggert  <eggert@twinsun.com>
46376
46377         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
46378
46379 2003-10-07  Karl Berry  <karl@gnu.org>
46380
46381         * config/config.{guess,sub}: update from config.
46382
46383 2003-10-06  Jim Meyering  <jim@meyering.net>
46384             Bruno Haible  <bruno@clisp.org>
46385
46386         This lets translators provide better translations for the
46387         "Written by ..." part of --version output.
46388         * lib/version-etc.h: Include stdarg.h.
46389         (version_etc_copyright): Declare as readonly.
46390         (version_etc): Make this function variadic with a NULL-terminated list
46391         of author name strings.
46392         (version_etc_va): New declaration.
46393         * lib/version-etc.c: Include stdarg.h, stdlib.h.
46394         (version_etc_copyright): Declare as readonly.
46395         (version_etc_va): New function. Provide a different translatable string
46396         for each possible number of authors < 10. Abbreviate when there are 10
46397         authors or more.
46398         (version_etc): Make this function variadic. Call version_etc_va.
46399         Suggestion from Gary V. Vaughan.
46400
46401         * lib/long-options.h (parse_long_options): Change prototype: the
46402         authors string is moved to the end and becomes variadic.
46403         * lib/long-options.c: Include stdarg.h.
46404         (parse_long_options): Make this function variadic, too.
46405         Call version_etc_va, not version_etc.
46406
46407 2003-10-06  Bruno Haible  <bruno@clisp.org>
46408
46409         * modules/version-etc-2: Remove file.
46410         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
46411
46412 2003-10-06  Bruno Haible  <bruno@clisp.org>
46413
46414         * modules/fatal-signal: New file.
46415         * MODULES.html.sh (func_all_modules): Add fatal-signal.
46416
46417 2003-10-06  Bruno Haible  <bruno@clisp.org>
46418
46419         * m4/fatal-signal.m4: New file.
46420         * m4/signalblocking.m4: New file, from GNU gettext.
46421
46422 2003-10-06  Bruno Haible  <bruno@clisp.org>
46423
46424         * lib/version-etc-2.h: Remove file.
46425         * lib/version-etc-2.c: Remove file.
46426
46427 2003-10-06  Bruno Haible  <bruno@clisp.org>
46428
46429         * lib/fatal-signal.h: New file, from GNU gettext.
46430         * lib/fatal-signal.c: New file, from GNU gettext.
46431
46432 2003-10-05  Paul Eggert  <eggert@twinsun.com>
46433
46434         * README: Rework advice for preventing empty .o files.
46435         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
46436         not <sys/types.h>.
46437
46438 2003-10-04  Karl Berry  <karl@gnu.org>
46439
46440         * lib/argp*: update from libc.
46441
46442 2003-10-04  Karl Berry  <karl@gnu.org>
46443
46444         * config/config.{guess,sub}: update from config.
46445
46446 2003-10-02  Bruno Haible  <bruno@clisp.org>
46447
46448         * modules/lchown (Include): Add lchown.h.
46449         * modules/time_r (Include): Use "..." syntax.
46450         * modules/xgetdomainname (Include): Add xgetdomainname.h.
46451
46452 2003-10-01  Simon Josefsson  <jas@extundo.com>
46453
46454         * MODULES.html.sh (func_all_modules): Move gethostname from section
46455         'based on' to section 'lacking' POSIX:2001.
46456
46457 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
46458
46459         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
46460         to output mode on the same stream.
46461
46462 2003-09-29  Paul Eggert  <eggert@twinsun.com>
46463
46464         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
46465         Fix arg typo in previous patch.
46466
46467 2003-09-28  Jim Meyering  <jim@meyering.net>
46468
46469         * lib/error.c: Correct cpp indentation.
46470
46471 2003-09-27  Paul Eggert  <eggert@twinsun.com>
46472
46473         * modules/free: New file.
46474
46475 2003-09-27  Paul Eggert  <eggert@twinsun.com>
46476
46477         * m4/free.m4: New file.
46478
46479 2003-09-27  Paul Eggert  <eggert@twinsun.com>
46480
46481         * lib/minmax.h (MIN, MAX)
46482         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
46483         Omit the special code that used __typeof__, since we worry that
46484         it could be more trouble than it's worth.  See:
46485         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
46486         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
46487
46488         * lib/free.c: New file.
46489
46490 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
46491
46492         Trivial fixes to Makefile.am parts of module listings.
46493         * modules/strstr: Append strstr.h to lib_SOURCES.
46494         * modules/strcase: Likewise, for strcase.h.
46495
46496 2003-09-27  Karl Berry  <karl@gnu.org>
46497
46498         * config/mkinstalldirs: update from automake.
46499
46500 2003-09-26  Paul Eggert  <eggert@twinsun.com>
46501
46502         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
46503         (error_tail): Do not loop, reallocating temporary buffer, since
46504         the output cannot contain more wide characters than the input
46505         contains bytes, the size must be big enough already.  This avoids
46506         one potential size overflow calculation.  Check for size overflow
46507         when calculating temporary buffer size.  Free temporary buffer
46508         when done, if it was allocated with malloc; this plugs a memory
46509         leak.  Remove casts from void * to pointers, that are no longer
46510         needed now that we're assuming C89 or better.
46511
46512         Merge error changes from glibc.
46513
46514         * lib/error.c, error.h: Update copyright notice header to match glibc.
46515         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
46516         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
46517         Disable cancellation while printing error.
46518         * lib/error.h: Prepend __ to parameter names.
46519
46520 2003-09-26  Jim Meyering  <jim@meyering.net>
46521
46522         * lib/error.c (error_tail): Move some declarations
46523         into inner scope where the local variables are used.
46524
46525 2003-09-26  Bruno Haible  <bruno@clisp.org>
46526
46527         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
46528         stpncpy().
46529         Don't define stpncpy through config.h; it's now done through stpncpy.h.
46530
46531 2003-09-26  Bruno Haible  <bruno@clisp.org>
46532
46533         * lib/stpncpy.h (gnu_stpncpy): New declaration.
46534         (stpncpy): Define as alias for gnu_stpncpy.
46535         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
46536
46537 2003-09-25  Simon Josefsson  <jas@extundo.com>
46538
46539         * lib/xgetdomainname.h: New file.
46540         * lib/xgetdomainname.c: New file.
46541
46542 2003-09-25  Simon Josefsson  <jas@extundo.com>
46543             Bruno Haible  <bruno@clisp.org>
46544
46545         * modules/getdomainname: New file.
46546         * modules/xgetdomainname: New file.
46547         * MODULES.html.sh (func_all_modules): Add getdomainname,
46548         xgetdomainname.
46549
46550 2003-09-25  Simon Josefsson  <jas@extundo.com>
46551             Bruno Haible  <bruno@clisp.org>
46552
46553         * m4/getdomainname.m4: New file.
46554
46555 2003-09-25  Simon Josefsson  <jas@extundo.com>
46556             Bruno Haible  <bruno@clisp.org>
46557
46558         * lib/getdomainname.h: New file.
46559         * lib/getdomainname.c: New file.
46560
46561 2003-09-25  Karl Berry  <karl@gnu.org>
46562
46563         * lib/argp-fmtstream.c, argp-help.c: update from libc.
46564
46565 2003-09-25  Karl Berry  <karl@gnu.org>
46566
46567         * config/install-sh: update from automake.
46568
46569 2003-09-25  Bruno Haible  <bruno@clisp.org>
46570
46571         * modules/version-etc-2: New file, from modules/version-etc with
46572         modifications.
46573         * MODULES.html.sh (func_all_modules): Add version-etc-2.
46574
46575 2003-09-25  Bruno Haible  <bruno@clisp.org>
46576
46577         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
46578         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
46579
46580 2003-09-24  Simon Josefsson  <jas@extundo.com>
46581
46582         * modules/xgethostname: Add xgethostname.h.
46583
46584 2003-09-24  Paul Eggert  <eggert@twinsun.com>
46585
46586         * lib/linebuffer.c (freebuffer): Don't free the argument, just
46587         the buffer associated with the argument.  Bug reported by
46588         Simon Josefsson.
46589
46590 2003-09-24  Paul Eggert  <eggert@twinsun.com>
46591
46592         * README: Document assumptions that 'int' is at least 32 bits
46593         wide, that integer arithmetic is 2's complement without overflow,
46594         that there are no holes in integer values, that adding sizes of
46595         two nonoverlapping objects can't overflow, and that all-bits-zero
46596         yields scalar zero.  Fix spelling and capitalization typos.
46597
46598 2003-09-19  Karl Berry  <karl@gnu.org>
46599
46600         * lib/argp.h: update from libc.
46601
46602 2003-09-17  Paul Eggert  <eggert@twinsun.com>
46603
46604         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
46605         to avoid spurious warnings like "AC_RUN_IFELSE was called before
46606         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
46607
46608 2003-09-17  Paul Eggert  <eggert@twinsun.com>
46609
46610         * gnulib-tool: Use "test -h", not "test -L", for portability
46611         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
46612         (tags_regexp): Remove, since \| doesn't conform to POSIX.
46613         (sed_extract_prog): Issue s commands one-by-one, rather than
46614         using \| in one s command.
46615
46616 2003-09-16  Paul Eggert  <eggert@twinsun.com>
46617
46618         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
46619         input error, instead of returning NULL the next time we are called
46620         (and therefore losing track of errno).
46621
46622 2003-09-16  Bruno Haible  <bruno@clisp.org>
46623
46624         * gnulib-tool (func_create_testdir): Warn about duplicated
46625         dependencies.
46626
46627 2003-09-15  Paul Eggert  <eggert@twinsun.com>
46628
46629         * modules/argmatch, modules/fatal, modules/obstack,
46630         modules/xalloc, modules/xgethostname: Sort dependencies by
46631         importance, not alphabetically.
46632
46633 2003-09-15  Paul Eggert  <eggert@twinsun.com>
46634
46635         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
46636         fails, so that the caller gets the proper errno.
46637
46638         * lib/readutmp.c (read_utmp): Likewise.
46639         Check for fstat error.  Close stream and free storage
46640         when failing.
46641
46642 2003-09-14  Karl Berry  <karl@gnu.org>
46643
46644         * config/srclist.txt (strdup.c): disable for c89 changes.
46645
46646 2003-09-14  Jim Meyering  <jim@meyering.net>
46647
46648         * lib/getloadavg.c: Correct cpp indentation.
46649         * lib/strdup.c: Likewise.
46650         * lib/vasnprintf.c: Likewise.
46651
46652 2003-09-14  Bruno Haible  <bruno@clisp.org>
46653
46654         * modules/fwriteerror: New file.
46655         * MODULES.html.sh (func_all_modules): Add fwriteerror.
46656
46657 2003-09-14  Bruno Haible  <bruno@clisp.org>
46658
46659         * lib/fwriteerror.h: New file.
46660         * lib/fwriteerror.c: New file.
46661
46662 2003-09-12  Paul Eggert  <eggert@twinsun.com>
46663
46664         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
46665         modules/xgethostname, modules/xalloc: Depend on exit.
46666
46667 2003-09-12  Paul Eggert  <eggert@twinsun.com>
46668
46669         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
46670
46671         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
46672         and AC_MINIX, too, so that their extensions are available.
46673
46674         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
46675         This macro has been superseded by gl_BACKUPFILE.
46676
46677         More patches to assume C89 or better.
46678
46679         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
46680
46681         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
46682         unconditionally.
46683         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
46684         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
46685         Include <string.h>, <stdlib.h> unconditionally.
46686         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
46687         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
46688         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
46689         headers or for string.h.
46690         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
46691         or strtoul.
46692
46693         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
46694         headers.
46695         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
46696         * m4/userspec.m4 (gl_USERSPEC): Likewise.
46697         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
46698         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
46699         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46700         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
46701         memcpy, memset.
46702         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
46703         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
46704         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
46705         strtol.
46706         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
46707         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
46708         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
46709         strtoul.
46710
46711 2003-09-12  Paul Eggert  <eggert@twinsun.com>
46712
46713         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
46714         * lib/obstack.c [!defined _LIBC]: Likewise.
46715         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
46716         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
46717         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
46718
46719         More changes to assume C89 or better.
46720
46721         * lib/error.c (error_tail): Assume vprintf.
46722
46723         * lib/argmatch.c (getenv): Remove decl.
46724         * lib/progreloc.c (get_full_program_name): Define via prototype.
46725         * lib/setenv.c (clearenv): Likewise.
46726         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
46727         needed.
46728         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
46729         (malloc, memcpy): Remove decls.
46730         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
46731         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
46732         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
46733         (memcpy): Remove macro.
46734         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
46735         (__P): Remove.  All uses removed.
46736         (PTR): Remove.  All uses changed to void *.
46737         (CHAR_BIT, NULL): Remove.
46738         (spaces, zeros, memset_space, memset_zero)
46739         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
46740         Remove.
46741         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
46742         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
46743         Define with prototype.
46744         Remove now-unnecessary prototype decl.
46745         (extra_args_spec): Assume ANSI C.  All uses changed.
46746         (extra_args_spec_iso): Remove.
46747         (my_strftime, emacs_strftimeu): Define via prototype.
46748         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
46749         unconditionally.
46750         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
46751         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
46752         (strtoul, strtol): Remove decls.
46753         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
46754         LONG_MAX): Remove.
46755         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
46756         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
46757         (LOCALE_PARAM_PROTO): New macro.
46758         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
46759         (INTERNAL (strtol), strtol): Define with a prototype.
46760         (PARAMS): Remove.  All uses removed.
46761         * lib/tempname.c: Include <string.h> unconditionally.
46762         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
46763         * lib/xgethostname.c (main): Define with a prototype.
46764         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
46765         Include <stdlib.h> unconditionally.
46766         (calloc, malloc, realloc, free): Remove decls.
46767         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
46768         Include <stdlib.h> unconditionally.  Sort include file names.
46769         (strtod): Remove.
46770         (xstrtod): Define with a prototype.
46771         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
46772         (strtol, strtoul): Remove decls.
46773
46774 2003-09-11  Paul Eggert  <eggert@twinsun.com>
46775
46776         More patches to assume C89 or better.
46777         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
46778         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
46779         string.h, memchr, STDC_HEADERS.
46780
46781 2003-09-11  Paul Eggert  <eggert@twinsun.com>
46782
46783         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
46784         Include <stdlib.h>, <string.h> unconditionally.
46785         Remove now-unnecessary cast to char *.
46786         * lib/strnlen.c: Include <string.h> unconditionally.
46787         * lib/yesno.c (yesno): Define with a prototype.
46788
46789 2003-09-11  Bruno Haible  <bruno@clisp.org>
46790
46791         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
46792
46793 2003-09-10  Jim Meyering  <jim@meyering.net>
46794
46795         * lib/error.c: Correct indentation of cpp directives.
46796
46797 2003-09-10  Bruno Haible  <bruno@clisp.org>
46798
46799         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
46800         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
46801         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
46802         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
46803         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
46804         <stdlib.h> and <string.h> checks.
46805         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
46806         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
46807
46808 2003-09-10  Bruno Haible  <bruno@clisp.org>
46809
46810         * lib/strcspn.c: Include <string.h> unconditionally.
46811         * lib/strpbrk.c: Include <string.h> unconditionally.
46812         * lib/strstr.c: Include <string.h> unconditionally.
46813         * lib/unicodeio.c: Include <string.h> unconditionally.
46814         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
46815         * lib/unsetenv.c: Likewise.
46816         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
46817         * lib/yesno.c: Include <stdlib.h> unconditionally.
46818         (rpmatch): Add prototype.
46819
46820 2003-09-09  Paul Eggert  <eggert@twinsun.com>
46821
46822         More patches to assume C89 or better.
46823         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
46824         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
46825         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
46826         or for string.h.
46827         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
46828         stdlib.h.
46829         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
46830         C headers.
46831         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
46832         string.h.
46833         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
46834         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
46835         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
46836         or for string.h.
46837         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
46838         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
46839         C headers.
46840         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
46841         memcpy.
46842         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
46843         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
46844         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
46845         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
46846         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
46847         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
46848         string.h, free.
46849         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
46850         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
46851         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
46852         C headers, or for string.h.
46853         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
46854         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
46855         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
46856         headers, memory.h, stdlib.h, string.h, strings.h.
46857         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
46858         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
46859         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
46860         strchr.
46861         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
46862         headers, memory.h, string.h.
46863         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
46864         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
46865         free.
46866         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
46867         headers.
46868         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
46869         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
46870         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
46871         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
46872         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
46873
46874 2003-09-09  Paul Eggert  <eggert@twinsun.com>
46875
46876         More K&R removal.
46877
46878         * lib/acosl.c (main): Use a prototype.
46879         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
46880         tanl.c: Likewise.
46881
46882         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
46883
46884         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
46885         (getopt, etopt_long, getopt_long_only, _getopt_internal)
46886         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
46887         with a prototype.
46888         * lib/getopt.c (const): Remove macro.
46889         Include <string.h> unconditionally.
46890         (my_index): Remove; all uses changed to strchr.
46891         (strlen): Remove decl.
46892         (exchange): Remove forward decl; no longer needed.
46893         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
46894         Define with prototype.
46895         * lib/getopt1.c (const): Remove macro.
46896         (getopt_long, getopt_long_only, main): Define with prototype.
46897
46898         * lib/getugroups.c: Include <string.h> unconditionally.
46899
46900         * lib/getusershell.c: Include <stdlib.h> unconditionally.
46901         (getusershell, setusershell, endusershell, readname, main):
46902         Define with prototypes.
46903
46904         * lib/group-member.c: Include group-member.h first.
46905         Include <stdlib.h> unconditionally.
46906
46907         * lib/hard-locale.c: Include hard-locale.h first.
46908         Include <stdlib.h>, <string.h> unconditionally.
46909
46910         * lib/hash.c (free, malloc): Remove decls.
46911         Include <stdlib.h> unconditionally.
46912
46913         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
46914         (getenv): Do not declare.
46915
46916         * lib/idcache.c: Include <string.h> unconditionally.
46917
46918         * lib/long-options.c: Include long-options.h first, to test interface.
46919         Include <stdlib.h> unconditionally.
46920
46921         * lib/makepath.c: Include makepath.h first, to test interface.
46922         Include <stdlib.h> and <string.h> unconditionally.
46923
46924         * lib/linebuffer.c: Include <stdlib.h>.
46925         (free): Remove decl.
46926
46927         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
46928         stddef.h. rpl_malloc returns void *, not char *.
46929         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
46930         prototype.
46931
46932         * lib/md5.h: Include <limits.h> unconditionally.
46933         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
46934         (__P): Remove; all uses removed.
46935         * lib/md5.c: Include "md5.h" first.
46936         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
46937         md5_buffer, md5_process_bytes, md5_process_block):
46938         Define with prototypes.
46939         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
46940         * lib/sha.c: Include "sha.h" first.
46941         Include <stdlib.h>, <string.h> unconditionally.
46942
46943         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
46944         * lib/memcmp.c (__ptr_t): Likewise.
46945         * lib/memrchr.c (__ptr_t): Likewise.
46946         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
46947         Include <string.h> unconditionally.
46948         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
46949         * lib/memchr.c: Include <stdlib.h> unconditionally.
46950         * lib/memchr.c (LONG_MAX): Remove.
46951         * lib/memrchr.c (LONG_MAX): Likewise.
46952         * lib/memchr.c (__memchr): Define via a prototype.
46953         * lib/memrchr.c (__memrchr): Likewise.
46954         * lib/memcmp.c (__P): Remove, and remove all uses.
46955         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
46956         Remove forward decls; no longer needed.
46957         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
46958         Use types required by C89 in prototype.
46959
46960         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
46961         * lib/savedir.c: Likewise.
46962         * lib/mkdir.c (free): Remove decl.
46963         * lib/rmdir.c (rmdir): Define with a prototype.
46964         * lib/savedir.c: Include savedir.h first, to test interface.
46965
46966         * lib/mktime.c (STDC_HEADERS): Remove.
46967         Include <stdlib.h>, <string.h> unconditionally.
46968
46969         * lib/modechange.c: Include <stdlib.h> unconditionally.
46970         (malloc): Remove decl.
46971
46972         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
46973         (free): Remove decl.
46974
46975         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
46976         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
46977         (This type really should be intptr_t, but that's a C99ism.)
46978         (_obstack_memcpy): Remove: all uses changed to memcpy.
46979         Include <string.h> unconditionally.
46980         (struct obstack): Assume __STDC__ for types of members
46981         chunkfun, freefun, extra_arg.
46982         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
46983         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
46984         obstack_begin, obstack_specify_allocation,
46985         obstack_specify_allocation_with_arg, obstack_chunkfun,
46986         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
46987         Remove unprototyped decls and the macros that use them.
46988         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
46989         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
46990         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
46991         (defined __STDC__ && __STDC__)]:
46992         Remove nonprototyped code.
46993         Include <stdlib.h> unconditionally.
46994         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
46995         _obstack_allocated_p, _obstack_free, obstack_free,
46996         _obstack_memory_used, print_and_abort):
46997         Define using prototypes.
46998         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
46999         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
47000         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
47001         obstack_next_free, obstack_object_size, obstack_room) [0]:
47002         Remove unused, unprototyped code.
47003
47004         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
47005
47006         * lib/physmem.c (physmem_total, physmem_available, main): Define
47007         with prototypes.
47008
47009         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
47010         (main): Define with a prototype.
47011
47012         * lib/posixver.c (getenv): Remove decl.
47013
47014         * lib/putenv.c (malloc): Returns void *, not char *.
47015         Include <string.h> unconditionally.
47016         (strchr, memcpy, NULL): Do not define.
47017
47018         * lib/readtokens.c: Include readtokens.h first, to test interface.
47019         Include <stdlib.h>, <string.h> unconditionally.
47020         (init_tokenbuffer): Define with a prototype.
47021
47022         * lib/regex.c (PARAMS): Remove.  All uses removed.
47023         All uses of _RE_ARGS removed, too.
47024         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
47025         unconditionally.
47026         (bzero): Assume memset exists.
47027         (memcmp, memcpy, NULL): Remove.
47028         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
47029         char, or assignments to local vars of type signed char.
47030         (init_syntax_once, PREFIX(extract_number_and_incr),
47031         PREFIX(print_partial_compiled_pattern),
47032         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
47033         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
47034         PREFIX(regex_grow_registers), PREFIX(regex_compile),
47035         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
47036         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
47037         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
47038         wcs_compile_range, byte_compile_range, truncate_wchar,
47039         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
47040         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
47041         count_mbs_length, wcs_re_match_2_internal,
47042         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
47043         PREFIX(alt_match_null_string_p),
47044         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
47045         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
47046         regfree, PREFIX(extract_number)): Define with prototype.  Remove
47047         now-unnecessary declaration, if any.
47048         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
47049         regcomp, regexec):
47050         Remove now-unnecessary casts among pointer types.
47051         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
47052
47053         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
47054         (free): Remove decl.
47055
47056         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
47057
47058         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
47059         (free): Remove decl.
47060
47061         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
47062         * lib/xgetcwd.c: Likewise.
47063
47064         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
47065         (free): Remove decl.
47066
47067         * lib/strchrnul.c (strchrnul): Define with a prototype.
47068         Fix bug: c_in was not converted to char before searching.
47069
47070         The following changes are not K&R related:
47071
47072         * lib/group-member.h: Include <sys/types.h>, so that this file is
47073         self-contained.
47074         * lib/makepath.h: Likewise.
47075
47076         * lib/getusershell.c (readname, default_index, line_size, readname):
47077         Use size_t, not int, for sizes.
47078         (readname): If the size overflows, report an error instead of
47079         looping forever.
47080
47081 2003-09-09  Paul Eggert  <eggert@twinsun.com>
47082
47083         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
47084         libc.
47085
47086 2003-09-09  Paul Eggert  <eggert@twinsun.com>
47087
47088         * README: New section: portability guidelines.
47089
47090 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
47091
47092         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
47093         C89 spec.
47094
47095 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
47096
47097         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
47098
47099 2003-09-08  Paul Eggert  <eggert@twinsun.com>
47100
47101         Assume C89 or better; remove K&R cruft.
47102         A few of these changes were first proposed by Derek Robert Price
47103         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
47104
47105         * lib/addext.c: Include <string.h> unconditionally.
47106         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
47107         Don't declare getenv or malloc.
47108
47109         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
47110         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
47111         (NULL): Remove.
47112         (find_stack_direction, alloca): Use prototypes.
47113
47114         * lib/atexit.c (atexit): Define using a prototype.
47115
47116         * lib/basename.c, dirname.c, stripslash.c:
47117         Include <string.h> unconditionally.
47118
47119         * lib/bcopy.c: Include <stddef.h>.
47120         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
47121
47122         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
47123
47124         * lib/error.h (error, error_at_line, error_print_progname)
47125         [! (defined (__STDC__) && __STDC__)]: Remove decls.
47126         * lib/error.c: Include error.h first, to check interface.
47127         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
47128         (VA_START): Remove; all uses changeed to va_start.
47129         (exit, strerror): Remove decls.
47130         (error_print_progname): Prototype uncondionally.
47131         Don't include <errno.h>; no longer needed.
47132         (private_strerror): Remove.
47133         (error_tail): Always define.
47134         (error, error_at_line): Assume C89 or better; always use prototypes.
47135         * lib/fatal.c: Include "fatal.h" first, to test interface.
47136         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
47137         (VA_START): Remove; all uses changed to va_start.
47138         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
47139         this case.
47140         (exit): Remove decl.
47141         (fatal): Prototype unconditionally.  Assume va_start works.
47142         Abort at end, to pacify gcc.
47143
47144         * lib/euidaccess.c (main): Define with a prototype.
47145
47146         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
47147
47148         * lib/exitfail.c: Include <stdlib.h> unconditionally.
47149
47150         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
47151         prototypes.
47152         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
47153         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
47154         (getenv): Remove decl.
47155         (fnmatch): Define using a prototype.
47156         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
47157         (FCT): Define using a prototype.
47158
47159         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
47160
47161         * lib/gethostname.c: Include <stddef.h>.
47162         (gethostname): Define with prototype.  Length is size_t, not int.
47163
47164 2003-09-08  Paul Eggert  <eggert@twinsun.com>
47165
47166         Assume C89 or better; remove K&R cruft.
47167         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
47168         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
47169         string.h, getenv, malloc.
47170         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
47171         headers.
47172         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
47173         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
47174         do not check for strerror.
47175         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
47176         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
47177         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
47178         do not check for doprnt or vprintf.
47179         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
47180         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
47181
47182 2003-09-08  Paul Eggert  <eggert@twinsun.com>
47183
47184         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
47185         getversion.c should have been removed then, but was accidentally
47186         preserved.
47187
47188         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
47189         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
47190
47191 2003-09-08  Karl Berry  <karl@gnu.org>
47192
47193         * config/config.sub, config.guess, srclistvars.sh: update from savannah
47194                 config, forget about prep.
47195
47196         * config/depcomp, missing: update from automake.
47197
47198 2003-09-07  Paul Eggert  <eggert@twinsun.com>
47199
47200         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
47201         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
47202
47203 2003-09-07  Paul Eggert  <eggert@twinsun.com>
47204
47205         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
47206         copy_tm_result.  Bug reported by Simon Josefsson in
47207         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
47208
47209 2003-09-06  Paul Eggert  <eggert@twinsun.com>
47210
47211         * m4/time_r.m4: New file.
47212         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
47213         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
47214         is. Check for timegm declaration.
47215         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
47216         Do not check for gmtime_r.
47217         Replace mktime if __mktime_internal does not exist and if mktime
47218         hasn't been replaced already.
47219
47220 2003-09-06  Paul Eggert  <eggert@twinsun.com>
47221
47222         * lib/time_r.c, lib/time_r.h: New files.
47223
47224         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
47225         __localtime_r.
47226         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
47227         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
47228
47229         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
47230         __gmtime_r.
47231         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
47232         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
47233         Include <time_r.h>.
47234
47235         * lib/timegm.c: Switch to glibc implementation, with the following
47236         changes:
47237         [defined HAVE_CONFIG_H]: Include <config.h>.
47238         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
47239         (__mktime_internal) [!defined _LIBC]: New decl.
47240         (__gmtime_r) [!defined _LIBC]: New macro and function.
47241         (timegm): Use a prototype, since gnulib assumes C89.
47242         Do not bother declaring tmp to be const, as it's not really usefu.
47243         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
47244         (timegm): Declare only if HAVE_DECL_TIMEGM.
47245
47246 2003-09-06  Paul Eggert  <eggert@twinsun.com>
47247
47248         * MODULES.html.sh (func_all_modules): Add time_r.
47249         * modules/time_r: New file.
47250         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
47251         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
47252
47253 2003-09-03  Paul Eggert  <eggert@twinsun.com>
47254
47255         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
47256         Bug reported by Lute Kamstra in
47257         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
47258
47259         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
47260         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
47261         course with correspondingly smaller numbers for tomorrow and
47262         yesterday.  From Tadayoshi Funaba.  Originally installed into
47263         sh-utils on 1999-08-07, but the patch got lost (I guess during the
47264         coreutils merge?).
47265
47266 2003-08-31  Simon Josefsson  <jas@extundo.com>
47267
47268         * modules/timegm: New file.
47269         * MODULES.html.sh (func_all_modules): Add timegm.
47270
47271 2003-08-31  Simon Josefsson  <jas@extundo.com>
47272
47273         * m4/timegm.m4: New file.
47274
47275 2003-08-31  Simon Josefsson  <jas@extundo.com>
47276
47277         * lib/timegm.h: New file.
47278         * lib/timegm.c: New file.  Based on
47279         wget-1.8.2/src/http.c:mktime_from_utc.
47280
47281 2003-08-31  Karl Berry  <karl@gnu.org>
47282
47283         * lib/argp.h: update from libc.
47284
47285 2003-08-28  Bruno Haible  <bruno@clisp.org>
47286
47287         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
47288         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
47289         followed by '#define fnmatch fnmatch_posix' gives an error.
47290
47291 2003-08-28  Bruno Haible  <bruno@clisp.org>
47292
47293         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
47294         warning on QNX, which defines O_BINARY to 000000.
47295
47296 2003-08-27  Jim Meyering  <jim@meyering.net>
47297
47298         * m4/mkstemp.m4: Require that the system mkstemp be able to create
47299         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
47300         would fail after 32.  Reported by Danny Levinson.  Details here:
47301         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
47302
47303 2003-08-24  Bruno Haible  <bruno@clisp.org>
47304
47305         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
47306         MSVC7 <stdio.h> is included later.
47307
47308 2003-08-22  Simon Josefsson  <jas@extundo.com>
47309
47310         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
47311
47312 2003-08-20  Karl Berry  <karl@gnu.org>
47313
47314         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
47315
47316 2003-08-20  Bruno Haible  <bruno@clisp.org>
47317
47318         * modules/progname: New file.
47319         * MODULES.html.sh (func_all_modules): Add progname.
47320
47321 2003-08-20  Bruno Haible  <bruno@clisp.org>
47322
47323         * lib/progname.h: New file, from GNU gettext.
47324         * lib/progname.c: New file, from GNU gettext.
47325         * lib/progreloc.c: New file, from GNU gettext.
47326
47327 2003-08-19  Jim Meyering  <jim@meyering.net>
47328
47329         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
47330         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
47331
47332 2003-08-19  Bruno Haible  <bruno@clisp.org>
47333
47334         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
47335         more.
47336
47337 2003-08-19  Bruno Haible  <bruno@clisp.org>
47338
47339         * lib/xstrdup.c: Assume <string.h> exists.
47340
47341 2003-08-18  Paul Eggert  <eggert@twinsun.com>
47342
47343         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
47344         in makefile rules.
47345
47346 2003-08-18  Jim Meyering  <jim@meyering.net>
47347
47348         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
47349         * m4/lib-ld.m4: Likewise.
47350
47351 2003-08-18  Jim Meyering  <jim@meyering.net>
47352
47353         * lib/setenv.h: Indent nested cpp directive.
47354         * lib/vasnprintf.c: Remove trailing blanks.
47355
47356 2003-08-17  Simon Josefsson  <jas@extundo.com>
47357
47358         * modules/xstrndup: New file.
47359         * MODULES.html.sh (func_all_modules): Add xstrndup.
47360
47361 2003-08-17  Simon Josefsson  <jas@extundo.com>
47362
47363         * modules/argp: Fix autoconf macro name. Add more dependencies.
47364
47365 2003-08-17  Simon Josefsson  <jas@extundo.com>
47366
47367         * m4/xstrndup.m4: New file.
47368
47369 2003-08-17  Simon Josefsson  <jas@extundo.com>
47370
47371         * m4/argp.m4: New file.
47372
47373 2003-08-17  Simon Josefsson  <jas@extundo.com>
47374             Bruno Haible  <bruno@clisp.org>
47375
47376         * lib/xstrndup.h: New file.
47377         * lib/xstrndup.c: New file.
47378
47379 2003-08-17  Bruno Haible  <bruno@clisp.org>
47380
47381         * modules/strndup (Files, Include): Add lib/strndup.h.
47382
47383 2003-08-17  Bruno Haible  <bruno@clisp.org>
47384
47385         * modules/euidaccess (Files): Add lib/euidaccess.h.
47386
47387 2003-08-17  Bruno Haible  <bruno@clisp.org>
47388
47389         * lib/strndup.h: New file.
47390
47391 2003-08-17  Bruno Haible  <bruno@clisp.org>
47392
47393         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
47394         like AC_GNU_SOURCE.
47395         * modules/extensions (configure.ac): Comment out the invocation of
47396         gl_USE_SYSTEM_EXTENSIONS.
47397
47398 2003-08-16  Paul Eggert  <eggert@twinsun.com>
47399
47400         Merges from coreutils, etc.
47401         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
47402         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
47403         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
47404         fixing a typo.
47405         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
47406         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
47407
47408 2003-08-16  Paul Eggert  <eggert@twinsun.com>
47409
47410         Document merge from coreutils.
47411         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
47412         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
47413         * modules/utime: Add m4/utimes-null.m4.
47414
47415 2003-08-16  Paul Eggert  <eggert@twinsun.com>
47416
47417         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
47418         space, undoing this 2003-08-12 change:
47419         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
47420
47421 2003-08-16  Paul Eggert  <eggert@twinsun.com>
47422
47423         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
47424         strtoul.c from libc, undoing this 2003-08-12 change:
47425         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
47426
47427 2003-08-16  Jim Meyering  <jim@meyering.net>
47428
47429         Merges from coreutils.
47430         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
47431         prefix.  Adjust cache variables similarly.  Create 500 rather than
47432         just 300 files, to exercise bug on Darwin6.5, too.
47433         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
47434         $missing_dir.
47435         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
47436         AM_SYS_POSIX_TERMIOS.
47437         Reported by mkc@mathdogs.com.
47438         Also change use of $am_cv_sys_posix_termios
47439         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
47440         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
47441         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
47442         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
47443         in /proc/mounts until it finds one with matching device number.  This
47444         is unnecessary when the FILE argument *is* a mount point.  No stat call
47445         is necessary in that case.  So, disable the statvfs-testing code on
47446         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
47447         as RedHat bug# 84846.
47448         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
47449         to 1MB, so as not to render systems with no stack size limit (e.g.,
47450         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
47451         Include <unistd.h>.  On some systems,
47452         it is required for the definition of _SC_PAGESIZE.
47453
47454 2003-08-16  Jim Meyering  <jim@meyering.net>
47455
47456         Merge from coreutils.
47457         * lib/xstrtoimax.c: #else #if -> #elif.
47458         * lib/xstrtoumax.c: Likewise.
47459
47460 2003-08-16  Jim Meyering  <jim@meyering.net>
47461
47462         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
47463         * m4/utimes.m4: Removed.
47464         * m4/utimes-null.m4: Renamed from utimes.m4.
47465
47466         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
47467         to 1MB, so as not to render systems with no stack size limit (e.g.,
47468         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
47469         Include <unistd.h>.  On some systems,
47470         it is required for the definition of _SC_PAGESIZE.
47471
47472 2003-08-16  Jim Meyering  <jim@meyering.net>
47473         and Paul Eggert  <eggert@cs.ucla.edu>
47474
47475         Merges from coreutils, etc.
47476
47477         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
47478         using the latest version from cvs.  This avoids problems with #line
47479         directives using a vendor (Sun) compiler.
47480         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
47481         Don't set GETGROUPS_LIB here; now it's
47482         done via getgroups.m4's wrapper function.
47483         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
47484         rather than just in sh-util/configure.in, so that the
47485         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
47486         same.
47487         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
47488         AC_FUNC_GETLOADAVG where to find getloadavg.c.
47489         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
47490         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
47491         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
47492         Remove code that is now done by the newly-required macros.
47493         Append $(EXEEXT) to DF_PROG.
47494         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
47495         Do not invoke or require the following here,
47496         since prereq.m4 or some gnulib .m4 now does this for us:
47497         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
47498         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
47499         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
47500         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
47501         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
47502         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
47503         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
47504         AC_FUNC_OBSTACK.
47505         Do not replace the following functions, as this is now the job
47506         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
47507         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
47508         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
47509         atexit getpass, strdup, getpagesize.
47510         Replace 'raise'.
47511         Do not check for the following functions, as this is now the job
47512         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
47513         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
47514         setregid.
47515         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
47516         Check for sys/sysctl.h.
47517         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
47518         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
47519         of checking for ssize_t ourselves.
47520
47521         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
47522         Require every macro that gnulib/modules/* suggests for us.
47523         (jm_PREREQ_ADDEXT): New macro.
47524         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
47525         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
47526
47527         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
47528         (gl_PHYSMEM): Use it.
47529         Also check for `table' function.
47530         Check for new headers and functions.
47531         Add check for sys/sysmp.h.
47532         With suggestions from Kaveh Ghazi.
47533         Ignore headers that are present but cannot be compiled.  This
47534         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
47535         C 5.4.
47536
47537 2003-08-15  Paul Eggert  <eggert@twinsun.com>
47538
47539         Document merge from coreutils.
47540         * modules/userspec: Depend on posixver.
47541         * modules/strftime: Depend on tzset.
47542
47543 2003-08-15  Paul Eggert  <eggert@twinsun.com>
47544
47545         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
47546         rather than tab, after '#' in shell-script copyright notices.
47547         Suggested by Bruno Haible.
47548
47549 2003-08-15  Paul Eggert  <eggert@twinsun.com>
47550
47551         * config/srclist-update: Use three spaces, rather than tab, after '#'
47552         in shell-script copyright notices.  Suggested by Bruno Haible.
47553         Remove unnecessary parenthesization in regular expression.
47554
47555 2003-08-15  Jim Meyering  <jim@meyering.net>
47556
47557         Merge from coreutils.
47558         * lib/xgethostname.c: Include <stdlib.h>.
47559         (xghostname): Don't exit for anything other than memory-related
47560         failure; just return NULL.
47561         * lib/userspec.c: Include "posixver.h".
47562         (parse_user_spec): Accept `.' as a separator only
47563         in pre-POSIX-200112 mode.
47564         * lib/strtoimax.c: Use #elif rather than #else #if.
47565         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
47566         Remove function, now that we can rely on a working tzset function.
47567         [!_LIBC]: Ensure that the required autoconf test has been run.
47568         [!defined _NL_CURRENT && HAVE_STRFTIME]:
47569         Use underlying_strftime for %r.
47570         * lib/sha.c: Merge in some clean-up and optimization changes from
47571         glibc.
47572         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
47573         Ensure that it is a multiple of 64.
47574         Rearrange loop exit tests so as to avoid performing an
47575         additional fread after encountering an error or EOF.
47576         * lib/realloc.c: Update copyright date.
47577
47578 2003-08-15  Jim Meyering  <jim@meyering.net>
47579         and Paul Eggert  <eggert@twinsun.com>
47580
47581         Merge from coreutils.
47582         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
47583         member but strut utmpx does not.  Needed for AIX 4.3.3.
47584         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
47585
47586 2003-08-15  Jim Meyering  <jim@meyering.net>
47587         and Paul Eggert  <eggert@cs.ucla.edu>
47588
47589         Merges from coreutils, etc.
47590         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
47591         Require gl_FUNC_TZSET_CLOBBER.
47592         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
47593         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
47594         members.
47595
47596 2003-08-14  Paul Eggert  <eggert@twinsun.com>
47597
47598         Help the merge from coreutils.
47599         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
47600         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
47601         * m4/tzset.m4: Use it too.
47602
47603 2003-08-14  Paul Eggert  <eggert@twinsun.com>
47604
47605         * modules/tzset: New file.
47606
47607 2003-08-14  Jim Meyering  <jim@meyering.net>
47608
47609         Merges from coreutils.
47610         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
47611         variable names, rather than @FNMATCH_H@.
47612         * modules/alloca: Likewise for $(ALLOCA_H).
47613
47614         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
47615         the three copies of the literal target, `fnmatch.h'.
47616         * modules/alloca (alloca.h): Likewise.
47617
47618 2003-08-14  Jim Meyering  <jim@meyering.net>
47619
47620         Merge from coreutils.
47621         * m4/tzset.m4: New file.
47622         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
47623         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
47624         otherwise, AIX 5.1 systems would end up using the latter.
47625         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
47626         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
47627         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
47628         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
47629
47630 2003-08-14  Jim Meyering  <jim@meyering.net>
47631
47632         Merge from coreutils.
47633         * lib/obstack.h: Whitespace changes.
47634         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
47635         and xcalloc return values.
47636         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
47637         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
47638         hang on OSF/1 5.1 for DIR on both local and remote file systems.
47639         Reported by (and fix confirmed by) Nelson H. F. Beebe.
47640         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
47641         error from mntctl.
47642         Use mntctl's return value to drive the entry-processing loop, since
47643         we can't rely on the value of the vmt_length member in the last
47644         entry.  On some systems doing so could result in exhausting
47645         virtual memory.  Based in part on a patch from Mike Jetzer.
47646
47647 2003-08-14  Jim Meyering  <jim@meyering.net>
47648         and Paul Eggert  <eggert@twinsun.com>
47649
47650         Merges from coreutils, plus other fixes.
47651         * lib/physmem.c: Merge in portability changes from gcc/libiberty
47652         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
47653         for credits and details.  Thanks to Kaveh Ghazi for helping
47654         to keep these files in sync.
47655         (ARRAY_SIZE): Define it.
47656         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
47657         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
47658         (memcasecmp): Don't assume size_t fits in unsigned int.
47659         Remove casts and duplicate code.
47660         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
47661         (memcpy): Remove definition.
47662         Merge in some clean-up and optimization changes from glibc.
47663         [BLOCKSIZE]: Move definition to top of file.
47664         Ensure that it is a multiple of 64.
47665         Rearrange loop exit tests so as to avoid performing an
47666         additional fread after encountering an error or EOF.
47667         * lib/md5.h (md5_uintptr): Define.
47668         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
47669         return to the initial working directory.  Preserve errno
47670         for caller.
47671         * lib/idcache.c: Include "xalloc.h".
47672         (xmalloc, xrealloc): Remove decls.
47673         (getuser): Remove casts no longer required in C89.
47674         * lib/human.c: Include stdio.h, for sprintf.
47675         * lib/group-member.c: Include "xalloc.h".
47676         (xmalloc, xrealloc): Remove decls.
47677         (get_group_info): Remove casts no longer required in C89.
47678         * lib/getusershell.c (readname): Remove casts no longer required in
47679         C89.
47680         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
47681         * lib/getline.c: Whitespace fix, from coreutils.
47682
47683 2003-08-13  Paul Eggert  <eggert@twinsun.com>
47684
47685         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
47686         Check for isascii.
47687
47688         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
47689         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
47690         Undo previous (whitespace-only) change.
47691
47692 2003-08-13  Paul Eggert  <eggert@twinsun.com>
47693
47694         * lib/exclude.c: Include <ctype.h>
47695         (IN_CTYPE_DOMAIN): New macro.
47696         (is_space): New fn.
47697         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
47698         and empty lines.
47699
47700         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
47701         Undo previous (whitespace-only) change.
47702
47703 2003-08-13  Paul Eggert  <eggert@twinsun.com>
47704
47705         * config/srclist-update: Change update back to the old behavior,
47706         leaving whitespace alone.  Use one 'sed' command rather than a
47707         pipeline.
47708         (fixlicense): Now a variable, not a function.
47709         (remove_trailing_blanks): Remove.
47710         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
47711         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
47712         Undo previous (whitespace-only) change.
47713
47714 2003-08-12  Paul Eggert  <eggert@twinsun.com>
47715
47716         Merge from coreutils.
47717         * modules/euidaccess: Add lib_SOURCES, include for new
47718         file euidaccess.h
47719
47720 2003-08-12  Paul Eggert  <eggert@twinsun.com>
47721
47722         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
47723         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
47724         Normalize leading white space and remove trailing white space.
47725
47726         Merge from coreutils
47727         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
47728
47729         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
47730         0.12.1.  These files are now being upgraded automatically by
47731         ../config/srclist-update.
47732
47733 2003-08-12  Paul Eggert  <eggert@twinsun.com>
47734
47735         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
47736         Normalize leading white space and remove trailing white space.
47737         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
47738         notice, as per ../config/srclist-update.
47739
47740         Merge from coreutils.
47741         * lib/euidaccess.h: New file.
47742         * lib/euidaccess.c: Include it.
47743         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
47744         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
47745         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
47746
47747 2003-08-12  Paul Eggert  <eggert@twinsun.com>
47748
47749         * config/srclist-update: Add copyright notice.
47750         (remove_id_lines, remove_trailing_blanks): New constants.
47751         (fixfile): Use them to normalize spacing a bit in copied files.
47752         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
47753         Normalize leading white space and remove trailing white space.
47754
47755         * config/texinfo.tex: Sync with texinfo.
47756
47757         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
47758         strtoul.c from libc, to merge coreutils whitespace changes.
47759
47760         * config/srclist.txt: Get the following m4 files from gettext:
47761         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
47762         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
47763         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
47764         wint_t.m4.
47765
47766 2003-08-12  Karl Berry  <karl@gnu.org>
47767
47768         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
47769         been made.
47770
47771 2003-08-11  Paul Eggert  <eggert@twinsun.com>
47772
47773         * modules/gnu-source, m4/gnu-source.m4:
47774         Remove; we're assuming Autoconf 2.54 or later now.
47775         Suggested by Bruno Haible.
47776         * MODULES.html.sh (func_all_modules): Remove gnu-source.
47777
47778 2003-08-11  Bruno Haible  <bruno@clisp.org>
47779
47780         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
47781
47782 2003-08-11  Bruno Haible  <bruno@clisp.org>
47783
47784         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
47785         (vasnprintf): Use it instead of wcslen.
47786
47787 2003-08-11  Bruno Haible  <bruno@clisp.org>
47788
47789         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
47790         value to ensure that _Bool promotes to int. Use #define for _Bool when
47791         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
47792
47793 2003-08-10  Karl Berry  <karl@gnu.org>
47794
47795         * lib/regex.h: update from libc (whitespace fix).
47796
47797 2003-08-09  Paul Eggert  <eggert@twinsun.com>
47798
47799         Merge some files from coreutils.  These changes were
47800         originally made by Jim Meyering.
47801         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
47802         many older Unixes require this.
47803         * lib/alloca.c (alloca): Remove cast to argument of free;
47804         no longer needed in C89.
47805         * lib/alloca_.h, regex.h: Fix white space to match
47806         what GNU indent does.
47807
47808 2003-08-09  Paul Eggert  <eggert@twinsun.com>
47809
47810         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
47811         apparently Emacs's Unicode mode got confused before my 2003-08-05
47812         checkin.
47813
47814 2003-08-08  Paul Eggert  <eggert@twinsun.com>
47815
47816         * m4/extensions.m4: New file.
47817         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
47818         Require gl_USE_SYSTEM_EXTENSIONS.
47819         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
47820         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
47821
47822 2003-08-08  Paul Eggert  <eggert@twinsun.com>
47823
47824         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
47825         * modules/extensions, modules/gnu-source: New files.
47826         * modules/timespec, modules/unlocked-io: Depend on extensions.
47827
47828 2003-08-07  Paul Eggert  <eggert@twinsun.com>
47829
47830         * modules/restrict: New file.
47831         * MODULES.html.sh (func_all_modules): Add restrict.
47832         * modules/regex: Depend on restrict.
47833
47834 2003-08-07  Paul Eggert  <eggert@twinsun.com>
47835
47836         * m4/restrict.m4: New file.
47837         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
47838
47839 2003-08-07  Bruno Haible  <bruno@clisp.org>
47840
47841         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
47842         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
47843
47844 2003-08-07  Bruno Haible  <bruno@clisp.org>
47845
47846         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
47847         makes the module 'getndelim2' compatible with the module 'getline'.
47848
47849 2003-08-05  Paul Eggert  <eggert@twinsun.com>
47850
47851         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
47852         byte with "\201" to avoid glitches when editing that source file
47853         with multi-gnome-terminal.
47854
47855 2003-08-05  Paul Eggert  <eggert@twinsun.com>
47856
47857         * lib/bumpalloc.h: Remove.
47858
47859 2003-08-05  Paul Eggert  <eggert@twinsun.com>
47860
47861         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
47862         * modules/bumpalloc: Remove.
47863
47864 2003-08-04  Paul Eggert  <eggert@twinsun.com>
47865
47866         * lib/getloadavg.c: Change copyright notice and spacing to conform to
47867         GNU coding style.
47868
47869         Merge from coreutils.
47870         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
47871         1. From glibc.
47872         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
47873         from Karl Berry, implemented by Jim Meyering.
47874         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
47875         from Dmitry V. Levin.
47876         Remove anachronistic cast of xrealloc.
47877         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
47878         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
47879         type. Otherwise, it wouldn't compile with at least /bin/cc on
47880         ymp-cray-unicos9.0.2.X.
47881         Combine two mostly-identical uses of alloca into one.
47882         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
47883
47884 2003-08-04  Dave Love  <d.love@dl.ac.uk>
47885
47886         [From Emacs.]
47887
47888         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
47889         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
47890         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
47891         obsolete NLIST_NAME_UNION.
47892         [__GNU__]: Undef BSD and FSCALE.
47893         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
47894
47895 2003-08-03  Paul Eggert  <eggert@twinsun.com>
47896
47897         * lib/stdbool_.h (_Bool): Make it signed char, instead of
47898         an enum type, so that it's guaranteed to promote to int.  See:
47899         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
47900
47901 2003-08-03  Karl Berry  <karl@gnu.org>
47902
47903         * config/depcomp: update from automake.
47904
47905 2003-07-31  Paul Eggert  <eggert@twinsun.com>
47906
47907         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
47908         (strerror): Don't assume that a printable int fits in 14 bytes.
47909
47910 2003-07-31  Bruno Haible  <bruno@clisp.org>
47911
47912         * modules/getpass-gnu: New file.
47913         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
47914
47915 2003-07-31  Bruno Haible  <bruno@clisp.org>
47916
47917         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
47918
47919 2003-07-24  Karl Berry  <karl@gnu.org>
47920
47921         * config/missing: update from automake.
47922
47923 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
47924             Bruno Haible  <bruno@clisp.org>
47925
47926         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
47927         * lib/getline.c (getline, getdelim): Likewise.
47928         Remove _GNU_SOURCE define; now it's defined in config.h through
47929         m4/getline.m4.
47930
47931 2003-07-23  Karl Berry  <karl@gnu.org>
47932
47933         * config/config.sub: update from prep.
47934
47935 2003-07-22  Paul Eggert  <eggert@twinsun.com>
47936
47937         * modules/xalloc (Depends-on): Add exitfail.
47938         * modules/xmemcoll: Likewise.
47939
47940 2003-07-22  Paul Eggert  <eggert@twinsun.com>
47941
47942         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
47943         over-parenthesization in macros.
47944
47945         Sync with coreutils.
47946
47947         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
47948         required by C99.
47949
47950         Use `exit_failure' for xalloc and xmemcoll instead of their own
47951         private exit-failure variables.
47952         * lib/xalloc.h (xalloc_exit_failure): Remove.
47953         * lib/xmalloc.c: Likewise.  Include exitfail.h.
47954         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
47955         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
47956         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
47957         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
47958
47959 2003-07-20  Jim Meyering  <jim@meyering.net>
47960
47961         * modules/closeout (Depends-on): Add exitfail.
47962         Suggestion from Bruno Haible.
47963
47964 2003-07-19  Karl Berry  <karl@gnu.org>
47965
47966         * config/config.sub: update from prep.
47967
47968 2003-07-18  Paul Eggert  <eggert@twinsun.com>
47969
47970         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
47971         Remove.
47972         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
47973         to test that it can stand by itself.  Include "exitfail.h".
47974         Clients should set exit_failure instead.
47975         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
47976
47977 2003-07-18  Bruno Haible  <bruno@clisp.org>
47978
47979         * modules/getndelim2: New file.
47980         * modules/getline: Share files with module getndelim2.
47981         * modules/getnline: Depend on getndelim2 instead of sharing files with
47982         it. Add getnline.c to lib_SOURCES.
47983         * MODULES.html.sh (func_all_modules): Add getndelim2.
47984
47985 2003-07-18  Bruno Haible  <bruno@clisp.org>
47986
47987         * m4/getndelim2.m4: New file.
47988         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
47989         invoke gl_PREREQ_GETNDELIM2.
47990         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
47991         gl_PREREQ_GETNDELIM2.
47992         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
47993         gl_GETNDELIM2.
47994
47995 2003-07-18  Bruno Haible  <bruno@clisp.org>
47996
47997         * lib/getndelim2.h: New file.
47998         * lib/getndelim2.c: Make into a module of its own. Include config.h,
47999         getndelim2.h.
48000         (getndelim2): Make non-static. Change return type to ssize_t.
48001         * lib/getline.h: Change argument names.
48002         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
48003         * lib/getnline.c: Include getndelim2.h.
48004
48005 2003-07-18  Andreas Schwab  <schwab@suse.de>
48006
48007         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
48008
48009 2003-07-17  Karl Berry  <karl@gnu.org>
48010
48011         * config/config.sub: update from prep.
48012
48013 2003-07-17  Bruno Haible  <bruno@clisp.org>
48014
48015         * modules/getnline: New file.
48016         * modules/getline: Add lib/getndelim2.c to source file list.
48017         * MODULES.html.sh (func_all_modules): Add getnline.
48018
48019 2003-07-17  Bruno Haible  <bruno@clisp.org>
48020
48021         * m4/getnline.m4: New file.
48022
48023 2003-07-17  Bruno Haible  <bruno@clisp.org>
48024
48025         * m4/Makefile.am.in: Remove file.
48026         * m4/Makefile.am: Remove file.
48027         * m4/Makefile.in: Remove file.
48028
48029 2003-07-17  Bruno Haible  <bruno@clisp.org>
48030
48031         * lib/getnline.h: New file.
48032         * lib/getnline.c: New file.
48033         * lib/getndelim2.c: New file, extracted from getline.c.
48034         (getndelim2): Renamed from getdelim2, with added nmax argument.
48035         * lib/getline.c: Include getndelim2.c.
48036         (getdelim2): Moved out to getndelim2.c.
48037         (getline, getdelim): Update.
48038
48039 2003-07-17  Bruno Haible  <bruno@clisp.org>
48040
48041         * lib/Makefile.am: Remove file.
48042         * lib/Makefile.in: Remove file.
48043
48044 2003-07-17  Bruno Haible  <bruno@clisp.org>
48045
48046         * configure.in: Remove file.
48047         * Makefile.in: Remove file.
48048
48049 2003-07-17  Bruno Haible  <bruno@clisp.org>
48050
48051         * MODULES.html.sh: Put the </BODY> right before </HTML>.
48052
48053 2003-07-16  Karl Berry  <karl@gnu.org>
48054
48055         * config/srclist-update: was running fixlicense twice, which caused
48056                 texinfo.tex to be nullified for some reason.  Simplify,
48057                 $gplsrc is no longer needed as far as I can see?
48058
48059 2003-07-16  Jim Meyering  <jim@meyering.net>
48060
48061         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
48062
48063 2003-07-15  Paul Eggert  <eggert@twinsun.com>
48064
48065         * config/srclist.txt: Get the following files from gettext-runtime/intl
48066         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
48067         ref-del.sin.  From Bruno Haible.
48068         * config/srclist-update (fixfile): Change grep pattern again, since the
48069         previous fix didn't work (there was another trailing $).  Use
48070         '[$]' to escape the $s.
48071
48072 2003-07-15  Karl Berry  <karl@gnu.org>
48073
48074         * lib/vasnprintf.c: update from gettext.
48075
48076 2003-07-15  Karl Berry  <karl@gnu.org>
48077
48078         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
48079         gets expanded when surrounded by '$'.
48080
48081 2003-07-15  Jim Meyering  <jim@meyering.net>
48082
48083         * modules/save-cwd: Don't depend on error.  From Derek Price.
48084
48085 2003-07-15  Jim Meyering  <jim@meyering.net>
48086
48087         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
48088
48089 2003-07-14  Simon Josefsson  <jas@extundo.com>
48090
48091         * modules/mempcpy: New file.
48092         * MODULES.html.sh (func_all_modules): Add mempcpy.
48093
48094 2003-07-14  Simon Josefsson  <jas@extundo.com>
48095
48096         * m4/mempcpy.m4: New file.
48097
48098 2003-07-14  Simon Josefsson  <jas@extundo.com>
48099
48100         * lib/mempcpy.h: New file.
48101         * lib/mempcpy.c: New file.
48102
48103 2003-07-14  Paul Eggert  <eggert@twinsun.com>
48104
48105         * modules/getdate, modules/posixtm: Depend on mktime.
48106
48107 2003-07-14  Paul Eggert  <eggert@twinsun.com>
48108
48109         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
48110         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
48111         unicodeio.c, unicodeio.h, unlocked-io.h:
48112         Switch from LGPL to GPL.
48113
48114 2003-07-14  Paul Eggert  <eggert@twinsun.com>
48115
48116         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
48117         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
48118         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
48119         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
48120         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
48121         updated automatically by ../config/srclist-update.  This changes
48122         their license from LPGL to GPL.
48123
48124 2003-07-14  Paul Eggert  <eggert@twinsun.com>
48125
48126         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
48127         assumed to refer to the root of the most recent stable gettext version.
48128         * config/srclistvars.sh: Add defaults for eggert.
48129         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
48130         Match "This program" as well as "The program".  This is needed
48131         for gettext.
48132
48133 2003-07-14  Jim Meyering  <jim@meyering.net>
48134
48135         Don't emit diagnostics.  Let callers do that.
48136         * lib/save-cwd.c: Don't include "error.h".
48137         (save_cwd): Don't call error.  Ensure that errno is valid
48138         when returning nonzero.
48139
48140         * lib/save-cwd.h (restore_cwd): Update prototype.
48141         * lib/save-cwd.c (restore_cwd): Remove two parameters.
48142         Simplify.  Don't call error upon failure.  Let callers do that.
48143         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
48144         when auditing is enabled.  But don't bother updating the #if.
48145
48146 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
48147
48148         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
48149         it breaks C++ compilation.
48150         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
48151
48152 2003-07-10  Simon Josefsson  <jas@extundo.com>
48153
48154         * modules/strchrnul (Makefile.am): Add strchrnul.h.
48155
48156 2003-07-10  Jim Meyering  <jim@meyering.net>
48157
48158         * m4/clock_time.m4: Remove trailing blank.
48159         * m4/intmax_t.m4: Likewise.
48160
48161 2003-07-10  Jim Meyering  <jim@meyering.net>
48162
48163         * lib/vasnprintf.c: Remove trailing blanks.
48164         Make cpp indentation consistent.
48165
48166 2003-07-09  Paul Eggert  <eggert@twinsun.com>
48167
48168         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
48169         posixver.c, strftime.c, strnlen.c, strverscmp.c:
48170         Switch from LGPL to GPL.
48171
48172 2003-07-09  Paul Eggert  <eggert@twinsun.com>
48173
48174         * config/srclist.txt: Sort sublists.  Add
48175         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
48176         that differ from gnulib for one reason or another; we'd like this list
48177         to be smaller but for now let's document what we have.
48178
48179 2003-07-08  Paul Eggert  <eggert@twinsun.com>
48180
48181         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
48182         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
48183         and sweeter "eval x=$x".
48184         * config/srclist.txt: Get lib/argp* from glibc.
48185
48186 2003-07-07  Paul Eggert  <eggert@twinsun.com>
48187
48188         * lib/mktime.c: Fix some boundary cases and remove need for floating
48189         point.
48190
48191         Issue a compile-time diagnostic if time_t is floating point, or if
48192         two's complement arithmetic is not in effect, or if arithmetic
48193         right shift does not propagate the sign.  These assumptions were
48194         all in the original code but they weren't checked.
48195
48196         (TIME_T_MIDPOINT, verify): New macros.
48197         (__isleap): Remove; it has integer overflow problems.
48198         (leapyear): New function, without those problems.
48199         (ydhms_tm_diff): Remove; splitting into two parts.
48200         (ydhms_diff): New function, containing the arithmetic part of
48201         the old ydhms_tm_diff function.  Issue a compile-time
48202         diagnostic if we are not using C99 integer division.
48203         Avoid casts when possible.
48204         (guess_time_tm): New function, containing the checking part of
48205         the old ydhms_tm_diff function.  Return the new value, rather than
48206         the difference between it and the old.  Accept a new argument T
48207         so that *T specifies the old value.  Check for overflow in the result.
48208
48209         (__mktime_internal): Use a time_t offset, not a long int offset.
48210         This undoes the 2003-06-04 change, which is no longer needed now
48211         that we have better overflow checking.
48212         (localtime_offset): Likewise.
48213
48214         (__mktime_internal): Avoid harmful overflow on hosts where time_t
48215         and long are 64-bit but int is only 32-bit.
48216         (ydhms_diff): Use long int to store year1 and yday1.
48217         Issue a compile-time diagnostic if long int is not wide enough.
48218
48219         (__mktime_internal): Use long int to store adjusted year and yday.
48220         Use plain C rather than preprocessor commands, if that doesn't
48221         affect efficiency.
48222         Check for overflow (and try to repair) after each probe
48223         rather than checking only at the very end.  This avoids some bugs
48224         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
48225         does not equal GMT offset at maximum time).
48226         Use integer to check for overflow rather than floating point; this
48227         is more portable to non-IEEE hosts, and is a tad faster.
48228         When we detect that we are oscillating between two values,
48229         don't check whether tm_isdst has the requested value, since
48230         we already know the answer.  When tm_isdst has the wrong value,
48231         use a different heuristic to find the right one, based on the
48232         extreme values actually observed in practice in tz2003a,
48233         rather than the (overly optimistic) "previous 3 calendar quarters".
48234
48235         (not_equal_tm, print_tm, check_result): Use "const T" rather than
48236         "T const" to accommodate glibc style.
48237         (check_result): Use less-confusing report format.  "long" -> "long int.
48238         (main): Likewise.
48239         Don't loop if the iteration overflows time_t.
48240         Allow a negative step in the iteration.
48241
48242 2003-07-06  Karl Berry  <karl@gnu.org>
48243
48244         * config/depcomp: update from automake.
48245         * config/config.sub: update from prep.
48246
48247 2003-07-03  Karl Berry  <karl@gnu.org>
48248
48249         * config/config.guess: update from prep.
48250
48251 2003-07-01  Paul Eggert  <eggert@twinsun.com>
48252
48253         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
48254         xreadlink.c now includes it unconditionally.
48255
48256 2003-07-01  Paul Eggert  <eggert@twinsun.com>
48257
48258         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
48259         having it depend on HAVE_SYS_TYPES_H.
48260
48261 2003-07-01  Bruno Haible  <bruno@clisp.org>
48262
48263         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
48264         <sys/types.h> should be sufficient.
48265         Reported by Paul Eggert.
48266
48267 2003-06-26  Karl Berry  <karl@gnu.org>
48268
48269         * config/depcomp: update from automake.
48270
48271 2003-06-26  Bruno Haible  <bruno@clisp.org>
48272
48273         * modules/human: Depend on module stdbool.
48274
48275 2003-06-25  Bruno Haible  <bruno@clisp.org>
48276
48277         * modules/readlink: New file.
48278         * modules/xreadlink: Depend on it.
48279         * MODULES.html.sh (func_all_modules): Add readlink.
48280
48281 2003-06-25  Bruno Haible  <bruno@clisp.org>
48282
48283         * m4/readlink.m4: New file.
48284
48285 2003-06-25  Bruno Haible  <bruno@clisp.org>
48286
48287         * lib/readlink.c: New file.
48288
48289 2003-06-22  Karl Berry  <karl@gnu.org>
48290
48291         * config/srclist.txt: update mkinstalldirs from automake.
48292         * config/mkinstalldirs: update.
48293
48294 2003-06-22  Bruno Haible  <bruno@clisp.org>
48295
48296         Portability to mingw32.
48297         * m4/ssize_t.m4: New file, from GNU gettext.
48298         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
48299         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
48300
48301 2003-06-22  Bruno Haible  <bruno@clisp.org>
48302
48303         * modules/safe-read: Add m4/ssize_t.m4.
48304         * modules/xreadlink: Add m4/ssize_t.m4.
48305
48306 2003-06-20  Bruno Haible  <bruno@clisp.org>
48307
48308         Assume C89, so PARAMS isn't needed.
48309         * lib/unicodeio.h (PARAMS): Remove.
48310         * lib/unicodeio.c: Don't use PARAMS.
48311
48312 2003-06-18  Karl Berry  <karl@gnu.org>
48313
48314         * config/config.{guess,sub}: update from prep.
48315
48316 2003-06-18  Jim Meyering  <jim@meyering.net>
48317
48318         Merge changes from coreutils.
48319         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
48320         Remove explicit declarations of xmalloc and realloc.
48321         Include xalloc.h.
48322         (read_utmp): Remove anachronistic cast of xmalloc.
48323
48324 2003-06-17  Paul Eggert  <eggert@twinsun.com>
48325
48326         Assume C89, so PARAMS isn't needed.
48327         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
48328         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
48329         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
48330         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
48331         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
48332         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
48333         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
48334         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
48335         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
48336         lib/xstrtod.h, lib/xstrtol.h: Likewise.
48337         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
48338         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
48339         no longer needed. Anyway, config.h should always be included before any
48340         other file.
48341
48342 2003-06-11  Simon Josefsson  <jas@extundo.com>
48343
48344         * modules/sysexits: New file.
48345         * MODULES.html.sh (func_all_modules): Add sysexits.
48346
48347 2003-06-11  Simon Josefsson  <jas@extundo.com>
48348
48349         * lib/sysexit_.h: New file.
48350
48351 2003-06-11  Derek Price  <derek@ximbiot.com>
48352
48353         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
48354         necessary.
48355
48356 2003-06-11  Bruno Haible  <bruno@clisp.org>
48357
48358         * m4/sysexits.m4: New file.
48359
48360 2003-06-10  Simon Josefsson  <jas@extundo.com>
48361
48362         * lib/argp.h: New file, from glibc.
48363         * lib/argp-ba.c: New file, from glibc.
48364         * lib/argp-eexst.c: New file, from glibc.
48365         * lib/argp-fmtstream.c: New file, from glibc.
48366         * lib/argp-fmtstream.h: New file, from glibc.
48367         * lib/argp-fs-xinl.c: New file, from glibc.
48368         * lib/argp-help.c: New file, from glibc.
48369         * lib/argp-namefrob.h: New file, from glibc.
48370         * lib/argp-parse.c: New file, from glibc.
48371         * lib/argp-pv.c: New file, from glibc.
48372         * lib/argp-pvh.c: New file, from glibc.
48373         * lib/argp-xinl.c: New file, from glibc.
48374
48375 2003-06-10  Simon Josefsson  <jas@extundo.com>
48376
48377         * modules/strchrnul: New file.
48378
48379 2003-06-10  Simon Josefsson  <jas@extundo.com>
48380
48381         * modules/argp: New file.
48382
48383 2003-06-10  Simon Josefsson  <jas@extundo.com>
48384
48385         * m4/strchrnul.m4: New file.
48386
48387 2003-06-10  Simon Josefsson  <jas@extundo.com>
48388
48389         * lib/strchrnul.h: New file.
48390         * lib/strchrnul.c: New file.
48391
48392 2003-06-10  Bruno Haible  <bruno@clisp.org>
48393
48394         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
48395
48396 2003-06-07  Karl Berry  <karl@gnu.org>
48397
48398         * config/config.{guess,sub}: update from prep.
48399
48400 2003-06-07  Jim Meyering  <jim@meyering.net>
48401
48402         * modules/strtod: Use $(...) notation, not @...@ for
48403         AC_REPLACE'd variables.
48404         * modules/localcharset: Likewise.
48405
48406 2003-06-07  Jim Meyering  <jim@meyering.net>
48407
48408         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
48409         in place of my name in the copyright comment.
48410         Remove definition and uses of __P.
48411
48412         From coreutils.
48413         * lib/stat.c: Don't declare xmalloc explicitly.
48414         Instead, include "xalloc.h".
48415         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
48416         xrealloc, and xcalloc return values.
48417         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
48418         Improve comment.
48419         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
48420
48421 2003-06-07  Bruno Haible  <bruno@clisp.org>
48422
48423         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
48424         avoid AC_CONFIG_LINKS.
48425         * modules/fnmatch (Makefile.am): Use explicit creation rule for
48426         fnmatch.h, to avoid AC_CONFIG_LINKS.
48427         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
48428
48429 2003-06-07  Bruno Haible  <bruno@clisp.org>
48430
48431         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
48432         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
48433         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
48434         directory.
48435         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
48436         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
48437         directory.
48438
48439 2003-06-06  Jim Meyering  <jim@meyering.net>
48440
48441         Merge from coreutils.
48442         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
48443         Consolidate declarations and initializations of *_base* locals.
48444
48445         Merge from coreutils.
48446         This avoids a core dump on systems without GNU putenv,
48447         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
48448         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
48449         (unsetenv): New static function, from GNU libc.
48450         (rpl_putenv): Use it.
48451
48452         * lib/modechange.c: Remove trailing blanks.
48453
48454         Merge from coreutils.
48455         * lib/fsusage.c: Remove declaration of statfs.
48456         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
48457
48458         * lib/posixtm.c: Include <stdbool.h> unconditionally.
48459
48460 2003-06-06  Jim Meyering  <jim@meyering.net>
48461
48462         * lib/stdbool_.h: Renamed from stdbool.h.in.
48463
48464 2003-06-06  Jim Meyering  <jim@meyering.net>
48465             Bruno Haible  <bruno@clisp.org>
48466
48467         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
48468         Adjust Makefile.am snippet not to redirect directly to target.
48469         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
48470
48471 2003-06-05  Paul Eggert  <eggert@twinsun.com>
48472
48473         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
48474         mismatch, look in future quarters as well as past.  This fixes a
48475         bug when processing fall-backwards gaps immediately after a long
48476         period of daylight-saving time.
48477
48478         * lib/mktime.c: Assume freestanding C89 or better.
48479         (HAVE_LIMITS_H): Remove.  Assume it's 1.
48480         (__P): Remove; not used.
48481         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
48482         (mktime, not_equal_tm, print_tm, check_result,
48483         main): Use prototypes.  Use const * where appropriate.
48484         (main): Fix typo in testing code that uncovered by above changes.
48485         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
48486
48487 2003-06-04  Paul Eggert  <eggert@twinsun.com>
48488
48489         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
48490         locale.h, localeconv.  This merges changes from coreutils.
48491
48492         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
48493         It can be removed after the next Autoconf is released.
48494         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
48495         needed.
48496
48497 2003-06-04  Paul Eggert  <eggert@twinsun.com>
48498
48499         * lib/mktime.c: Fix Debian bug 177940
48500         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
48501         (localtime_offset): Now long int, not time_t, because we want it
48502         to be guaranteed to be signed.  All uses changed.
48503         (__mktime_internal): If overflow would occur when adding offset,
48504         don't add it.
48505
48506         Merge 'human' changes from coreutils.  Rewrite to support
48507         locale-specific notations like thousands separators.
48508         * lib/human.c: Simplify authorship notice.
48509         Include human.h immediately after config.h.
48510         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
48511         <limits.h>: Do not include, since human.h does.
48512         (SIZE_MAX, UINTMAX_MAX): New macros.
48513         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
48514         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
48515         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
48516         (power_letter): Renamed from suffixes.
48517         (generate_suffix_backwards): Remove.
48518         (adjust_value): Now takes int style (because of human.h changes)
48519         and long double value (for greater precision on some platforms).
48520         (group_number): New function.
48521         (human_readable): Use it.  Use integer options, not enum.
48522         Put the options before the sizes in the arg list.
48523         Support all the new options.
48524         The old human_readable function has been removed;
48525         use inttostr.h instead.
48526         (human_readable, default_block_size, humblock):
48527         Use uintmax_t, not int, for block sizes.
48528         (human_readable_inexact, block_size_types): Remove.
48529         (block_size_opts): New constant.
48530         (human_options): Renamed from human_block_size, with new signature
48531         that allows block sizes up to UINTMAX_MAX.  All callers changed.
48532         * lib/human.h: Add copyright and authorship notice.
48533         Include <limits.h> and <stdbool.h> unconditionally.
48534         (PARAMS): Remove.  All uses removed.
48535         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
48536         (enum human_inexact_style): Remove tag; now a nameless enum.
48537         (human_floor, human_ceiling, human_round_to_even): Now have
48538         values 2, 0, 1 rather than -1, 1, 0.
48539         (human_group_digits, human_suppress_point_zero, human_autoscale,
48540         human_base_1024, human_SI, human_B): New constants.
48541         (human_readable_inexact, human_block_size): Remove.
48542         (human_readable): Size args are now uintmax_t, not int.
48543         (human_options): New decl.
48544
48545         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
48546         unnecessary now that we assume C89 or better.  This change
48547         imported from coreutils.
48548
48549         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
48550         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
48551         in the 2003-05-30 sync from glibc.
48552
48553         .h files should stand alone, but we shouldn't include <sys/types.h>
48554         if we can get away with just <stddef.h>.
48555
48556         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
48557         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
48558         rather than <sys/types.h>, as we merely need size_t.
48559         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
48560         to get size_t.
48561         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
48562         Include <stdio.h>, to get FILE.
48563         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
48564         memcasecmp.h has included <stddef.h> and all we need is size_t.
48565         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
48566         our interface, instead of including <sys/types.h>
48567
48568 2003-06-04  Paul Eggert  <eggert@twinsun.com>
48569
48570         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
48571         now, as glibc mktime is buggy on non-glibc systems.
48572
48573 2003-06-03  Karl Berry  <karl@gnu.org>
48574
48575         * config/config.sub: update from prep.
48576
48577 2003-06-02  Paul Eggert  <eggert@twinsun.com>
48578
48579         [from coreutils]
48580         Fix some minor time-related bugs with POSIX time arguments.
48581         Some valid time stamps were being rejected (notably -1, and
48582         time stamps before 1900 on 64-bit hosts).  And some invalid
48583         time stamps were being accepted, e.g. September 31.
48584
48585         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
48586         that we can return (time_t) -1 successfully.
48587         * lib/posixtm.c: Likewise.
48588         [HAVE_STDBOOL_H]: Include <stdbool.h>.
48589         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
48590         (t): Remove static var.
48591         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
48592         of static var.  All uses changed.
48593         (year): Do not reject years before 1900; they can occur with
48594         64-bit time_t.
48595         (posix_time_parse): Do not check for out-of-range components;
48596         that is now the caller's responsibility, since our checks were
48597         only approximations.
48598         (posixtime): Use mktime to check for out-of-range components,
48599         since it knows them exactly.
48600         If mktime returns (time_t) -1, check whether an error actually occurred
48601         by invoking localtime on -1.
48602         (main) [TEST_POSIXTIME]: Check for input data errors, and report
48603         posixtime failures better.
48604         Improve the test data (in comments only).
48605
48606 2003-06-02  Karl Berry  <karl@gnu.org>
48607
48608         * config/mkinstalldirs (version): new variable.
48609         (--version): new option.
48610         (usage): improve message.
48611
48612 2003-05-30  Karl Berry  <karl@gnu.org>
48613
48614         * lib/mktime.c: update from libc.
48615
48616 2003-05-30  Bruno Haible  <bruno@clisp.org>
48617
48618         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
48619         * config/config.rpath: Upgrade to gettext-0.12.1.
48620
48621 2003-05-30  Bruno Haible  <bruno@clisp.org>
48622
48623         * m4/gettext.m4: Upgrade to gettext-0.12.1.
48624         * m4/nls.m4: New file, from gettext-0.12.1.
48625         * m4/po.m4: New file, from gettext-0.12.1.
48626         * m4/progtest.m4: Upgrade to gettext-0.12.1.
48627
48628 2003-05-30  Bruno Haible  <bruno@clisp.org>
48629
48630         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
48631         * lib/localcharset.h: Likewise.
48632         * lib/localcharset.c: Likewise.
48633
48634 2003-05-29  Karl Berry  <karl@gnu.org>
48635
48636         * config/config.rpath: update from gettext.
48637
48638 2003-05-28  Paul Eggert  <eggert@twinsun.com>
48639
48640         Assume the headers required for C89 freestanding compilers.
48641         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
48642         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
48643         * m4/human.m4 (gl_HUMAN): Likewise.
48644         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
48645         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
48646         * m4/userspec.m4 (gl_USERSPEC): Likewise.
48647         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
48648         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
48649         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
48650
48651 2003-05-28  Paul Eggert  <eggert@twinsun.com>
48652
48653         Assume the headers required for C89 freestanding compilers.
48654         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
48655         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
48656         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
48657         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
48658         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
48659         define, since <limits.h> is guaranteed to do that.
48660         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
48661         * lib/exclude.c: Include <stdbool.h> unconditionally.
48662         * lib/tempname.c: Include <stddef.h> unconditionally.
48663         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
48664         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
48665         <stddef.h> does that.
48666         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
48667         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
48668         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
48669         needed.
48670         * lib/xstrtol.c: Likewise.
48671         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
48672         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
48673
48674         * lib/addext.c (addext): Use assignment rather than cast, to avoid
48675         warnings on some platforms.
48676
48677         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
48678         arbitrarily.
48679
48680 2003-05-26  Jim Meyering  <jim@meyering.net>
48681
48682         Merge in a change from coreutils:
48683         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
48684         that is guaranteed to be `no'.  Use `no_such_member' to indicate
48685         that condition, rather than `-1' which is slightly misleading.
48686         Change the name of the cache variable to have the gl_ prefix.
48687         Prompted by a patch from Richard Dawe for DJGPP.
48688
48689 2003-05-24  Karl Berry  <karl@gnu.org>
48690
48691         * config/config.guess: update from prep.
48692
48693 2003-05-22  Karl Berry  <karl@gnu.org>
48694
48695         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
48696
48697 2003-05-20  Karl Berry  <karl@gnu.org>
48698
48699         * config/config.guess: update from prep.
48700
48701 2003-05-18  Karl Berry  <karl@gnu.org>
48702
48703         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
48704         might actually be set by the user.
48705
48706         * config/depcomp, install-sh, mdate-sh: update from automake.
48707
48708 2003-05-17  Bruno Haible  <bruno@clisp.org>
48709
48710         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
48711         invalid expansion for AC_EGREP_CPP.
48712         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
48713         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
48714         Suggested by Akim Demaille <akim@epita.fr> in
48715         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
48716
48717 2003-05-12  Jim Meyering  <jim@meyering.net>
48718
48719         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
48720         the space-padded-by-default conversion specifiers, %e, %k, %l.
48721
48722 2003-05-12  Bruno Haible  <bruno@clisp.org>
48723
48724         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
48725         the string is longer than 4 KB.
48726
48727 2003-05-11  Karl Berry  <karl@gnu.org>
48728
48729         * config/config.{guess,sub}: update from prep.
48730
48731 2003-05-09  Bruno Haible  <bruno@clisp.org>
48732
48733         * modules/error: Add m4/strerror_r.m4 to file list.
48734
48735 2003-05-03  Bruno Haible  <bruno@clisp.org>
48736
48737         Upgrade to Unicode-4.0.
48738         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
48739         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
48740         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
48741         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
48742         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
48743         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
48744         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
48745         Change width of U+E0100..U+E01EF from 1 to 0.
48746
48747 2003-04-25  Jim Meyering  <jim@meyering.net>
48748
48749         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
48750         of type size_t, not int.
48751
48752 2003-04-25  Bruno Haible  <bruno@clisp.org>
48753
48754         * lib/copy-file.c: Include <stddef.h>, for size_t.
48755
48756 2003-04-21  Paul Eggert  <eggert@twinsun.com>
48757
48758         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
48759         code which expansion is under static control.  Patch imported from
48760         Akim Demaille's patch to Bison; see
48761         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
48762
48763 2003-04-14  Bruno Haible  <bruno@clisp.org>
48764
48765         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
48766
48767 2003-04-11  Jim Meyering  <jim@meyering.net>
48768
48769         Merge changes from Coreutils.
48770
48771         2003-03-22  Jim Meyering  <jim@meyering.net>
48772
48773         * lib/strftime.c (widen): Cast alloca return value to proper type.
48774
48775         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
48776
48777         From GNU libc.
48778         * lib/strftime.c (my_strftime): Handle very large width
48779         specifications for numeric values correctly.  Improve checks for
48780         overflow.
48781
48782         2003-01-19  Jim Meyering  <jim@meyering.net>
48783
48784         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
48785         definitions.
48786         (nl_get_alt_digit) [! defined my_strftime]: Define.
48787         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
48788         _nl_get_alt_digit and _nl_get_walt_digit.
48789
48790         * lib/strftime.c (my_strftime): Merge in locale-related changes from
48791         libc. These changes have no effect outside of _LIBC.
48792
48793 2003-04-10  Bruno Haible  <bruno@clisp.org>
48794
48795         * modules/findprog: New file.
48796         * MODULES.html.sh (func_all_modules): Add it.
48797
48798 2003-04-10  Bruno Haible  <bruno@clisp.org>
48799
48800         * m4/findprog.m4: New file.
48801         * m4/eaccess.m4: New file.
48802
48803 2003-04-10  Bruno Haible  <bruno@clisp.org>
48804
48805         * lib/findprog.h: New file, from GNU gettext.
48806         * lib/findprog.c: New file, from GNU gettext.
48807
48808 2003-04-05  Jim Meyering  <jim@meyering.net>
48809
48810         Merge changes from Coreutils.
48811
48812         * lib/exclude.h (PARAMS): Remove definition and uses.
48813         * lib/exclude.c: Remove uses of `PARAMS'.
48814
48815         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
48816         Add test-cases for DOS filenames. Declare program_name.
48817         (main): Set up program_name.  Patch by Rich Dawe.
48818
48819         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
48820         error from mntctl.
48821         Use mntctl's return value to drive the entry-processing loop, since
48822         we can't rely on the value of the vmt_length member in the last
48823         entry.  On some systems doing so could result in exhausting
48824         virtual memory.  Based in part on a patch from Mike Jetzer.
48825
48826 2003-04-04  Bruno Haible  <bruno@clisp.org>
48827
48828         * modules/linebreak: New file.
48829         * MODULES.html.sh (func_all_modules): Add it.
48830
48831 2003-04-04  Bruno Haible  <bruno@clisp.org>
48832
48833         * m4/linebreak.m4: New file.
48834
48835 2003-04-04  Bruno Haible  <bruno@clisp.org>
48836
48837         * lib/linebreak.h: New file, from GNU gettext.
48838         * lib/linebreak.c: New file, from GNU gettext with slight
48839         modifications.
48840         * lib/lbrkprop.h: New file, from GNU gettext.
48841
48842 2003-04-03  Bruno Haible  <bruno@clisp.org>
48843
48844         * modules/utf8-ucs4: New file.
48845         * modules/utf16-ucs4: New file.
48846         * modules/ucs4-utf8: New file.
48847         * modules/ucs4-utf16: New file.
48848         * MODULES.html.sh (func_all_modules): Add them.
48849
48850 2003-04-03  Bruno Haible  <bruno@clisp.org>
48851
48852         * m4/utf-ucs4.m4: New file.
48853         * m4/ucs4-utf.m4: New file.
48854
48855 2003-04-03  Bruno Haible  <bruno@clisp.org>
48856
48857         * lib/utf8-ucs4.h: New file, from GNU gettext.
48858         * lib/utf16-ucs4.h: New file, from GNU gettext.
48859         * lib/ucs4-utf8.h: New file, from GNU gettext.
48860         * lib/ucs4-utf16.h: New file, from GNU gettext.
48861
48862 2003-04-02  Bruno Haible  <bruno@clisp.org>
48863
48864         * modules/binary-io: New file.
48865         * MODULES.html.sh (func_all_modules): Add it.
48866
48867 2003-04-02  Bruno Haible  <bruno@clisp.org>
48868
48869         * lib/binary-io.h: New file, from GNU gettext.
48870
48871 2003-04-01  Bruno Haible  <bruno@clisp.org>
48872
48873         * modules/pathname: New file.
48874         * MODULES.html.sh (func_all_modules): Add it.
48875
48876 2003-04-01  Bruno Haible  <bruno@clisp.org>
48877
48878         * lib/pathname.h: New file, from GNU gettext.
48879         * lib/concatpath.c: New file, from GNU gettext.
48880
48881 2003-03-30  Bruno Haible  <bruno@clisp.org>
48882
48883         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
48884
48885 2003-03-30  Bruno Haible  <bruno@clisp.org>
48886
48887         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
48888         function chown() doesn't exist.
48889
48890 2003-03-28  Bruno Haible  <bruno@clisp.org>
48891
48892         * modules/copy-file: New file.
48893         * MODULES.html.sh (func_all_modules): Add it.
48894
48895 2003-03-28  Bruno Haible  <bruno@clisp.org>
48896
48897         * m4/copy-file.m4: New file.
48898
48899 2003-03-28  Bruno Haible  <bruno@clisp.org>
48900
48901         * lib/copy-file.h: New file, from GNU gettext.
48902         * lib/copy-file.c: New file, from GNU gettext.
48903
48904 2003-03-18  Jim Meyering  <jim@meyering.net>
48905
48906         * lib/quote.c (quote_n): Fix typo in comment.
48907
48908 2003-03-18  Bruno Haible  <bruno@clisp.org>
48909
48910         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
48911         checking.
48912         * m4/onceonly_2_57.m4: Likewise.
48913
48914 2003-03-17  Bruno Haible  <bruno@clisp.org>
48915
48916         * m4/onceonly.m4: Require autoconf 2.54 or newer.
48917         (m4_quote): Remove macro.
48918         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
48919
48920 2003-03-14  Jim Meyering  <jim@meyering.net>
48921
48922         Merge changes from Coreutils.
48923         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
48924         to be const, in order to avoid warnings.
48925         (obstack_room): Likewise.
48926         (obstack_empty_p): Likewise.
48927
48928 2003-03-14  Bruno Haible  <bruno@clisp.org>
48929
48930         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
48931         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
48932
48933 2003-03-13  Paul Eggert  <eggert@twinsun.com>
48934
48935         Merge changes from Bison.
48936         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
48937         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
48938         when compiling Bison 1.875's `bitset bset = obstack_alloc
48939         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
48940         * lib/hash.c: Include <stdbool.h> unconditionally.
48941
48942 2003-03-13  Paul Eggert  <eggert@twinsun.com>
48943
48944         * m4/onceonly.m4 (m4_quote): New macro.
48945         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
48946         Quote AC_FOREACH variable-expansions properly.
48947
48948 2003-03-13  Paul Eggert  <eggert@twinsun.com>
48949
48950         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
48951
48952 2003-03-09  Paul Eggert  <eggert@twinsun.com>
48953
48954         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
48955         Reported by Bruce Becker; see:
48956         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
48957
48958 2003-03-03  Paul Eggert  <eggert@twinsun.com>
48959             Bruno Haible  <bruno@clisp.org>
48960
48961         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
48962         Reported by John Hughes, see
48963         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
48964
48965 2003-02-20  Bruno Haible  <bruno@clisp.org>
48966
48967         * MODULES.html.sh (func_all_modules): Add poll.
48968
48969 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
48970
48971         * modules/poll: New file.
48972
48973 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
48974
48975         * lib/poll_.h: New file.
48976         * lib/poll.c: New file.
48977
48978 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
48979
48980         * m4/poll.m4: New file.
48981
48982 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
48983
48984         * modules/mathl: New file.
48985
48986 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
48987
48988         * lib/mathl.h: New file.
48989         * lib/acosl.c: New file.
48990         * lib/asinl.c: New file.
48991         * lib/atanl.c: New file.
48992         * lib/ceill.c: New file.
48993         * lib/cosl.c: New file.
48994         * lib/expl.c: New file.
48995         * lib/floorl.c: New file.
48996         * lib/frexpl.c: New file.
48997         * lib/ldexpl.c: New file.
48998         * lib/logl.c: New file.
48999         * lib/sincosl.c: New file.
49000         * lib/sinl.c: New file.
49001         * lib/sqrtl.c: New file.
49002         * lib/tanl.c: New file.
49003         * lib/trigl.c: New file.
49004         * lib/trigl.h: New file.
49005
49006 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
49007
49008         * m4/mathl.m4: New file.
49009
49010 2003-02-18  Bruno Haible  <bruno@clisp.org>
49011
49012         * MODULES.html.sh (func_all_modules): Add mathl.
49013
49014 2003-02-17  Bruno Haible  <bruno@clisp.org>
49015
49016         * modules/mkdtemp: New module.
49017         * MODULES.html.sh (func_all_modules): Add it.
49018
49019 2003-02-17  Bruno Haible  <bruno@clisp.org>
49020
49021         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
49022
49023 2003-02-17  Bruno Haible  <bruno@clisp.org>
49024
49025         * lib/mkdtemp.h: New file, from GNU gettext.
49026         * lib/mkdtemp.c: New file, from GNU gettext.
49027
49028 2003-02-02  Jim Meyering  <jim@meyering.net>
49029
49030         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
49031         e.g. glibc-2.2.93.
49032
49033 2003-01-31  Bruno Haible  <bruno@clisp.org>
49034
49035         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
49036         'rpl_rename'.
49037         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
49038         'rpl_strnlen'.
49039         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
49040         'rpl_strtod'.
49041         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
49042         'rpl_utime'.
49043
49044 2003-01-31  Bruno Haible  <bruno@clisp.org>
49045
49046         * lib/rename.c: #undef rename before defining rpl_rename.
49047         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
49048
49049 2003-01-30  Bruno Haible  <bruno@clisp.org>
49050
49051         * modules/vasnprintf, modules/vasprintf: New modules.
49052         * MODULES.html.sh (func_all_modules): Add them.
49053
49054 2003-01-30  Bruno Haible  <bruno@clisp.org>
49055
49056         * m4/signed.m4: New file, from GNU gettext.
49057         * m4/longdouble.m4: New file, from GNU gettext.
49058         * m4/wchar_t.m4: New file, from GNU gettext.
49059         * m4/wint_t.m4: New file, from GNU gettext.
49060         * m4/vasnprintf.m4: New file.
49061         * m4/vasprintf.m4: New file.
49062
49063 2003-01-30  Bruno Haible  <bruno@clisp.org>
49064
49065         * lib/printf-args.h: New file, from GNU gettext.
49066         * lib/printf-args.c: New file, from GNU gettext.
49067         * lib/printf-parse.h: New file, from GNU gettext.
49068         * lib/printf-parse.c: New file, from GNU gettext.
49069         * lib/vasnprintf.h: New file, from GNU gettext.
49070         * lib/vasnprintf.c: New file, from GNU gettext.
49071         * lib/asnprintf.c: New file, from GNU gettext.
49072         * lib/vasprintf.h: New file, from GNU gettext with modifications.
49073         * lib/vasprintf.c: New file, from GNU gettext.
49074         * lib/asprintf.c: New file, from GNU gettext.
49075
49076 2003-01-29  Bruno Haible  <bruno@clisp.org>
49077
49078         * modules/stpncpy: New module.
49079         * MODULES.html.sh (func_all_modules): Add it.
49080
49081 2003-01-29  Bruno Haible  <bruno@clisp.org>
49082
49083         * m4/stpncpy.m4: New file.
49084
49085 2003-01-29  Bruno Haible  <bruno@clisp.org>
49086
49087         * lib/stpncpy.h: New file, from GNU gettext with modifications.
49088         * lib/stpncpy.c: New file, from GNU gettext with modifications.
49089
49090 2003-01-28  Bruno Haible  <bruno@clisp.org>
49091
49092         * modules/c-ctype: New module.
49093         * MODULES.html.sh (func_all_modules): Add it.
49094
49095 2003-01-28  Bruno Haible  <bruno@clisp.org>
49096
49097         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
49098         Paul Eggert.
49099         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
49100         Paul Eggert.
49101
49102 2003-01-27  Bruno Haible  <bruno@clisp.org>
49103
49104         * modules/xsetenv: New module.
49105         * MODULES.html.sh (func_all_modules): Add it.
49106
49107 2003-01-27  Bruno Haible  <bruno@clisp.org>
49108
49109         * lib/xsetenv.h: New file, from GNU gettext.
49110         * lib/xsetenv.c: New file, from GNU gettext.
49111
49112 2003-01-23  Jim Meyering  <jim@meyering.net>
49113
49114         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
49115         from working on systems without dirfd (at least Irix and OSF1/Tru64).
49116
49117 2003-01-23  Bruno Haible  <bruno@clisp.org>
49118
49119         * modules/minmax: New module.
49120         * MODULES.html.sh (func_all_modules): Add it.
49121
49122 2003-01-23  Bruno Haible  <bruno@clisp.org>
49123
49124         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
49125         Eggert.
49126
49127 2003-01-22  Bruno Haible  <bruno@clisp.org>
49128
49129         * modules/exit: New module.
49130         * MODULES.html.sh (func_all_modules): Add it.
49131
49132 2003-01-22  Bruno Haible  <bruno@clisp.org>
49133
49134         * lib/exit.h: New file, from GNU gettext.
49135
49136 2003-01-19  Bruno Haible  <bruno@clisp.org>
49137
49138         * gnulib-tool: Recognize option --extract-maintainer.
49139         (func_get_maintainer): New function.
49140         * modules/*: Add Maintainer entry.
49141
49142 2003-01-16  Jim Meyering  <jim@meyering.net>
49143
49144         * m4/regex.m4: The `regex' struct is both input and output.
49145         Initialize it before each use.  Patch by Tim Waugh.
49146
49147 2003-01-16  Bruno Haible  <bruno@clisp.org>
49148
49149         * MODULES.html.sh: Add a table of contents. Add the module name as
49150         leftmost column. Add hyperlinks.
49151
49152 2003-01-15  Bruno Haible  <bruno@clisp.org>
49153
49154         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
49155
49156 2003-01-15  Bruno Haible  <bruno@clisp.org>
49157
49158         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
49159         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
49160         suffix.
49161
49162 2003-01-15  Bruno Haible  <bruno@clisp.org>
49163
49164         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
49165
49166 2003-01-15  Bruno Haible  <bruno@clisp.org>
49167
49168         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
49169         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
49170
49171 2003-01-14  Jim Meyering  <jim@meyering.net>
49172
49173         * lib/same.c (same_name): Tweak a comment.
49174
49175 2003-01-14  Bruno Haible  <bruno@clisp.org>
49176
49177         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
49178         when a string comparison is sufficient.
49179
49180 2003-01-14  Bruno Haible  <bruno@clisp.org>
49181
49182         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
49183         'unsigned int'.
49184
49185 2003-01-14  Bruno Haible  <bruno@clisp.org>
49186
49187         * lib/hash-pjw.c: Add comment about low quality of this function.
49188
49189 2003-01-13  Bruno Haible  <bruno@clisp.org>
49190
49191         * modules/stpcpy: Distribute lib/stpcpy.h.
49192         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
49193
49194 2003-01-13  Bruno Haible  <bruno@clisp.org>
49195
49196         * modules/*: Add a description.
49197         * modules/strpbrk: Fix Makefile.am snippet.
49198         * modules/strtoimax: Fix dependencies.
49199         * modules/strtoumax: Likewise.
49200
49201 2003-01-13  Bruno Haible  <bruno@clisp.org>
49202
49203         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
49204         * modules/alloca (Makefile.am): All object files depend on alloca.h.
49205         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
49206
49207 2003-01-13  Bruno Haible  <bruno@clisp.org>
49208
49209         * gnulib-tool (func_create_testdir): Store config/* files in the main
49210         directory.
49211         * config.rpath: Move to ...
49212         * config/config.rpath: ... here.
49213         * modules/gettext: Contains config/config.rpath, not config.rpath.
49214         * modules/iconv: Likewise.
49215
49216 2003-01-12  Paul Eggert  <eggert@twinsun.com>
49217
49218         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
49219         to avoid collisions with libcurses and libreadline.
49220
49221         * m4/getstr.m4: Remove.
49222         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
49223
49224 2003-01-12  Paul Eggert  <eggert@twinsun.com>
49225
49226         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
49227         to avoid collisions with libcurses and libreadline.
49228
49229         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
49230         * lib/getstr.h, getstr.c: Remove.
49231         * lib/getline.c: Include "getline.h", to check interface.
49232         Move body of old getstr.c here: this defines MIN_CHUNK and
49233         declares getdelim2, which is renamed from getstr.
49234         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
49235
49236         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
49237         All uses changed.
49238         * lib/linebuffer.h: Likewise.
49239         (readline): Remove backward-compatibility macro.
49240
49241 2003-01-12  Paul Eggert  <eggert@twinsun.com>
49242
49243         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
49244         to avoid collisions with libcurses and libreadline.
49245         * getstr: Remove.
49246         * MODULES.html.sh: Remove getstr.
49247         * modules/getline: Depend on unlocked-io, not getstr.
49248
49249 2003-01-12  Jim Meyering  <jim@meyering.net>
49250
49251         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
49252
49253 2003-01-10  Bruno Haible  <bruno@clisp.org>
49254
49255         * modules/alloca: Change Makefile.am requirements. Simplify Include
49256         requirements. Add lib/alloca_.h to file list.
49257
49258 2003-01-10  Bruno Haible  <bruno@clisp.org>
49259
49260         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
49261
49262 2003-01-10  Bruno Haible  <bruno@clisp.org>
49263
49264         * lib/alloca_.h: New file.
49265         * lib/getdate.y: Unconditionally include alloca.h.
49266         * lib/makepath.c: Likewise.
49267         * lib/setenv.c: Likewise.
49268         * lib/userspec.c: Likewise.
49269
49270 2003-01-09  Karl Berry  <karl@gnu.org>
49271
49272         * MODULES.html.sh: include `dirname $0` in PATH, to find
49273         gnulib-tool.
49274
49275 2003-01-09  Bruno Haible  <bruno@clisp.org>
49276
49277         * modules/stdbool: Change configure.ac, Makefile.am requirements.
49278         Simplify Include requirements. Add lib/stdbool.h.in to file list.
49279
49280 2003-01-09  Bruno Haible  <bruno@clisp.org>
49281
49282         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
49283
49284 2003-01-09  Bruno Haible  <bruno@clisp.org>
49285
49286         * lib/stdbool.h.in: New file.
49287
49288 2003-01-09  Bruno Haible  <bruno@clisp.org>
49289
49290         * gnulib-tool (func_all_modules): Ignore files ending in ~.
49291         * MODULES.html.sh: Likewise.
49292
49293 2003-01-08  Jim Meyering  <jim@meyering.net>
49294
49295         * lib/full-write.c: Undefine and define-away `const' after inclusion
49296         of errno.h, not before.  Suggestion from Bruno Haible.
49297
49298 2003-01-08  Bruno Haible  <bruno@clisp.org>
49299
49300         * modules/full-read: Depend on full-write.
49301
49302 2003-01-08  Bruno Haible  <bruno@clisp.org>
49303
49304         * lib/safe-read.c: Include specification header first, to ensure its
49305         selfcontainedness.
49306         * lib/full-write.c: Likewise.
49307
49308 2003-01-07  Jim Meyering  <jim@meyering.net>
49309
49310         * lib/full-write.c: Rework so that it may serve to define full_read,
49311         too.
49312         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
49313
49314 2003-01-07  Bruno Haible  <bruno@clisp.org>
49315
49316         * lib/strtoimax.c: Include <stdint.h> as an alternative to
49317         <inttypes.h>.
49318         * lib/xstrtol.h: Likewise.
49319         * lib/xstrtoimax.c: Likewise.
49320         * lib/xstrtoumax.c: Likewise.
49321         * lib/human.h: Likewise.
49322
49323         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
49324         on systems that have <inttypes.h> but not <stdint.h>.
49325
49326 2003-01-07  Bruno Haible  <bruno@clisp.org>
49327
49328         * MODULES.html.sh: Add copyright notice.
49329         (missed_files): Omit CVS directory entries.
49330         (func_module): Make it work with sed-3.02.
49331         * MODULES.txt: Remove file.
49332
49333 2003-01-06  Jim Meyering  <jim@meyering.net>
49334
49335         * lib/version-etc.c: Update year in translatable copyright string.
49336
49337 2003-01-03  Karl Berry  <karl@gnu.org>
49338
49339         * config/config.{guess,sub}: update from prep.
49340
49341 2003-01-02  Karl Berry  <karl@gnu.org>
49342
49343         * doc/COPYING.DOC: belatedly updated to 1.2.
49344
49345 2003-01-01  Karl Berry  <karl@gnu.org>
49346
49347         * gnulib-tool (func_verify_module): report module name $module in
49348         error message, not $1.
49349         * gnulib-tool (create-testdir): don't complain if destdir couldn't
49350         be created, only if it doesn't exist.
49351         * gnulib-tool (last_checkin_date): don't expand the $Date here.
49352
49353 2002-12-31  Paul Eggert  <eggert@twinsun.com>
49354
49355         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
49356
49357 2002-12-31  Paul Eggert  <eggert@twinsun.com>
49358
49359         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
49360         memcmp if strcoll doesn't work.
49361
49362 2002-12-31  Bruno Haible  <bruno@clisp.org>
49363
49364         * lib/utime.c (utime_null): No need to call ftruncate if the file was
49365         nonempty.
49366
49367 2002-12-31  Bruno Haible  <bruno@clisp.org>
49368
49369         * lib/memcoll.c (STRCOLL): New macro.
49370         (memcoll): Use it.
49371
49372 2002-12-31  Bruno Haible  <bruno@clisp.org>
49373
49374         * lib/localcharset.h: New file.
49375         * lib/localcharset.c: Include it.
49376         * lib/unicodeio.c: Likewise.
49377
49378 2002-12-31  Bruno Haible  <bruno@clisp.org>
49379
49380         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
49381         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
49382
49383 2002-12-31  Bruno Haible  <bruno@clisp.org>
49384
49385         * lib/getline.h: Include <stddef.h>, for size_t.
49386
49387         * lib/unicodeio.h: Include <stddef.h>, for size_t.
49388         * lib/unicodeio.c: Don't include <stddef.h>.
49389
49390 2002-12-31  Bruno Haible  <bruno@clisp.org>
49391
49392         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
49393         HAVE_TM_ZONE.
49394
49395 2002-12-24  Karl Berry  <karl@gnu.org>
49396
49397         * config/config.guess: update from prep.
49398
49399 2002-12-24  Bruno Haible  <bruno@clisp.org>
49400
49401         General infrasructure.
49402         * m4/README: Rewritten.
49403         * m4/onceonly.m4: New file.
49404         * m4/onceonly_2_57.m4: New file.
49405
49406         Module atexit.
49407         * m4/atexit.m4: New file.
49408
49409         Module strtod.
49410         * m4/strtod.m4: New file.
49411
49412         Module strtol.
49413         * m4/strtol.m4: New file.
49414
49415         Module strtoul.
49416         * m4/strtoul.m4: New file.
49417
49418         Module memchr.
49419         * m4/memchr.m4: New file.
49420
49421         Module memcmp.
49422         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
49423         (jm_FUNC_MEMCMP): Invoke it.
49424
49425         Module memcpy.
49426         * m4/memcpy.m4: New file.
49427
49428         Module memmove.
49429         * m4/memmove.m4: New file.
49430
49431         Module memset.
49432         * m4/memset.m4: New file.
49433
49434         Module strcspn.
49435         * m4/strcspn.m4: New file.
49436
49437         Module strpbrk.
49438         * m4/strpbrk.m4: New file.
49439
49440         Module strstr.
49441         * m4/strstr.m4: New file.
49442
49443         Module strerror.
49444         * m4/strerror.m4: New file.
49445
49446         Module mktime.
49447         * m4/mktime.m4: Renamed from jm-mktime.m4.
49448         (gl_PREREQ_MKTIME): New macro.
49449         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
49450
49451         Module malloc.
49452         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
49453         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
49454         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
49455
49456         Module realloc.
49457         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
49458         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
49459         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
49460
49461         Module strftime.
49462         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
49463         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
49464         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
49465         gl_TM_GMTOFF.
49466         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
49467
49468         Module xalloc.
49469         * m4/xalloc.m4: New file.
49470
49471         Module alloca.
49472         * m4/alloca.m4: New file.
49473
49474         Module putenv.
49475         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
49476         (jm_FUNC_PUTENV): Invoke it.
49477
49478         Module setenv.
49479         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
49480         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
49481         when invoked twice.
49482         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
49483         gt_FUNC_SETENV.
49484
49485         Module memrchr.
49486         * m4/memrchr.m4: New file.
49487
49488         Module stpcpy.
49489         * m4/stpcpy.m4: New file.
49490
49491         Module strcase.
49492         * m4/strcase.m4: New file.
49493
49494         Module strdup.
49495         * m4/strdup.m4: New file.
49496
49497         Module strnlen.
49498         * m4/strnlen.m4: New file.
49499
49500         Module strndup.
49501         * m4/strndup.m4: New file.
49502
49503         Module xstrtod.
49504         * m4/xstrtod.m4: New file.
49505
49506         Module xstrtol.
49507         * m4/xstrtol.m4: New file.
49508
49509         Module getdate.
49510         * m4/getdate.m4: New file.
49511
49512         Module unlocked-io.
49513         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
49514         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
49515         * m4/jm-glibc-io.m4n: Remove file.
49516
49517         Module long-options.
49518         * m4/long-options.m4: New file.
49519
49520         Module md5.
49521         * m4/md5.m4: New file.
49522
49523         Module sha.
49524         * m4/sha.m4: New file.
49525
49526         Module getstr.
49527         * m4/getstr.m4: New file.
49528
49529         Module getline.
49530         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
49531         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
49532         <sys/types.h>, for size_t. Use the function name gnu_getline, not
49533         simply getline. Infoke gl_PREREQ_GETLINE.
49534
49535         Module obstack.
49536         * m4/obstack.m4: New file.
49537
49538         Module hash.
49539         * m4/hash.m4: New file.
49540
49541         Module readtokens.
49542         * m4/readtokens.m4: New file.
49543
49544         Module strverscmp.
49545         * m4/strverscmp.m4: New file.
49546
49547         Module stdbool.
49548         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
49549         OSF/1.
49550
49551         Module strtoll.
49552         * m4/strtoll.m4: New file.
49553
49554         Module strtoull.
49555         * m4/strtoull.m4: New file.
49556
49557         Module strtoimax.
49558         * m4/strtoimax.m4: New file.
49559
49560         Module strtoumax.
49561         * m4/strtoumax.m4: New file.
49562
49563         Module xstrtoimax.
49564         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
49565         jm_AC_PREREQ_XSTRTOIMAX.
49566         Moved the strtol prerequisites to strtol.m4.
49567         Moved the strtoll prerequisites to strtoll.m4.
49568         Moved the strtoimax prerequisites to strtoimax.m4.
49569
49570         Module xstrtoumax.
49571         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
49572         jm_AC_PREREQ_XSTRTOUMAX.
49573         Moved the strtoul prerequisites to strtoul.m4.
49574         Moved the strtoull prerequisites to strtoull.m4.
49575         Moved the strtoumax prerequisites to strtoumax.m4.
49576
49577         Module chown.
49578         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
49579         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
49580
49581         Module dup2.
49582         * m4/dup2.m4: New file.
49583
49584         Module ftruncate.
49585         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
49586         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
49587
49588         Module getgroups.
49589         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
49590         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
49591
49592         Module gettimeofday.
49593         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
49594         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
49595         gl_PREREQ_GETTIMEOFDAY.
49596
49597         Module mkdir.
49598         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
49599         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
49600
49601         Module mkstemp.
49602         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
49603         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
49604         jm_AC_TYPE_UINTMAX_T.
49605         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
49606
49607         Module stat.
49608         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
49609         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
49610
49611         Module lstat.
49612         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
49613         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
49614
49615         Module timespec.
49616         * m4/timespec.m4 (gl_TIMESPEC): New macro.
49617         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
49618         * m4/st_mtim.m4: Indentation.
49619
49620         Module nanosleep.
49621         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
49622         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
49623         gl_PREREQ_NANOSLEEP.
49624
49625         Module regex.
49626         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
49627         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
49628         (gl_REGEX): New macro.
49629
49630         Module rename.
49631         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
49632         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
49633
49634         Module rmdir.
49635         * m4/rmdir.m4: New file.
49636
49637         Module utime.
49638         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
49639         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
49640         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
49641
49642         Module dirname.
49643         * m4/dirname.m4: New file.
49644
49645         Module getopt.
49646         * m4/getopt.m4: New file.
49647
49648         Module unistd-safer.
49649         * m4/unistd-safer.m4: New file.
49650
49651         Module fnmatch.
49652         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
49653         declaration.
49654         (gl_PREREQ_FNMATCH_EXTRA): New macro.
49655         (gl_FUNC_FNMATCH_POSIX): New macro.
49656         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
49657         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
49658         simply fnmatch.
49659
49660         Module exclude.
49661         * m4/exclude.m4: New file.
49662
49663         Module human.
49664         * m4/human.m4: New file.
49665
49666         Module acl.
49667         * m4/acl.m4: Nop.
49668
49669         Module backupfile.
49670         * m4/backupfile.m4: New file.
49671         * m4/d-ino.m4: Indentation.
49672
49673         Module fsusage.
49674         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
49675         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
49676         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
49677
49678         Module dirfd.
49679         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
49680         requirements.
49681
49682         Module euidaccess.
49683         * m4/euidaccess.m4: New file.
49684
49685         Module file-type.
49686         * m4/file-type.m4: New file.
49687
49688         Module fileblocks.
49689         * m4/fileblocks.m4: New file.
49690
49691         Module filemode.
49692         * m4/filemode.m4: New file.
49693
49694         Module isdir.
49695         * m4/isdir.m4: New file.
49696
49697         Module lchown.
49698         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
49699         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
49700
49701         Module makepath.
49702         * m4/makepath.m4: New file.
49703
49704         Module modechange.
49705         * m4/modechange.m4: New file.
49706
49707         Module mountlist.
49708         * m4/mountlist.m4: New file.
49709         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
49710         Indentation.
49711
49712         Module path-concat.
49713         * m4/path-concat.m4: New file.
49714
49715         Module pathmax.
49716         * m4/pathmax.m4: New file.
49717
49718         Module same.
49719         * m4/same.m4: New file.
49720
49721         Module save-cwd.
49722         * m4/save-cwd.m4: New file.
49723
49724         Module savedir.
49725         * m4/savedir.m4: New file.
49726
49727         Module xgetcwd.
49728         * m4/xgetcwd.m4: New file.
49729         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
49730
49731         Module xreadlink.
49732         * m4/xreadlink.m4: New file.
49733
49734         Module safe-read.
49735         * m4/safe-read.m4: New file.
49736
49737         Module safe-write.
49738         * m4/safe-write.m4: New file.
49739
49740         Module closeout.
49741         * m4/closeout.m4: New file.
49742
49743         Module stdio-safer.
49744         * m4/stdio-safer.m4: New file.
49745
49746         Module getpass.
49747         * m4/getpass.m4: New file.
49748
49749         Module getugroups.
49750         * m4/getugroups.m4: New file.
49751
49752         Module group-member.
49753         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
49754         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
49755
49756         Module idcache.
49757         * m4/idcache.m4: New file.
49758
49759         Module userspec.
49760         * m4/userspec.m4: New file.
49761
49762         Module gettime.
49763         * m4/clock_time.m4: New file.
49764         * m4/gettime.m4: New file.
49765
49766         Module settime.
49767         * m4/settime.m4: New file.
49768
49769         Module posixtm.
49770         * m4/posixtm.m4: New file.
49771
49772         Module gethostname.
49773         * m4/gethostname.m4: New file.
49774
49775         Module canon-host.
49776         * m4/canon-host.m4: New file.
49777
49778         Module gettext.
49779         * m4/codeset.m4: New file, from gettext-0.11.5.
49780         * m4/gettext.m4: New file, from gettext-0.11.5.
49781         * m4/glibc21.m4: New file, from gettext-0.11.5.
49782         * m4/iconv.m4: New file, from gettext-0.11.5.
49783         * m4/intdiv0.m4: New file, from gettext-0.11.5.
49784         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
49785         * m4/inttypes.m4: New file, from gettext-0.11.5.
49786         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
49787         * m4/isc-posix.m4: New file, from gettext-0.11.5.
49788         * m4/lcmessage.m4: New file, from gettext-0.11.5.
49789         * m4/lib-ld.m4: New file, from gettext-0.11.5.
49790         * m4/lib-link.m4: New file, from gettext-0.11.5.
49791         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
49792         * m4/progtest.m4: New file, from gettext-0.11.5.
49793         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
49794         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
49795         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
49796
49797         Module localcharset.
49798         * m4/localcharset.m4: New file.
49799
49800         Module hard-locale.
49801         * m4/hard-locale.m4: New file.
49802
49803         Module mbswidth.
49804         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
49805         onceonly macros.
49806         * m4/mbrtowc.m4: Add comment.
49807
49808         Module memcasecmp.
49809         * m4/memcasecmp.m4: New file.
49810
49811         Module memcoll.
49812         * m4/memcoll.m4: New file.
49813
49814         Module unicodeio.
49815         * m4/unicodeio.m4: New file.
49816
49817         Module rpmatch.
49818         * m4/rpmatch.m4: New file.
49819
49820         Module yesno.
49821         * m4/yesno.m4: New file.
49822
49823         Module exitfail.
49824         * m4/exitfail.m4: New file.
49825
49826         Module c-stack.
49827         * m4/c-stack.m4 (gl_C_STACK): New macro.
49828         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
49829
49830         Module error.
49831         * m4/error.m4 (gl_ERROR): New macro.
49832         (jm_PREREQ_ERROR): Use onceonly macros.
49833
49834         Module fatal.
49835         * m4/fatal.m4: New file.
49836
49837         Module getloadavg.
49838         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
49839         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
49840
49841         Module getpagesize.
49842         * m4/getpagesize.m4: New file.
49843
49844         Module getusershell.
49845         * m4/getusershell.m4: New file.
49846
49847         Module physmem.
49848         * m4/physmem.m4: New file.
49849
49850         Module posixver.
49851         * m4/posixver.m4: New file.
49852
49853         Module quotearg.
49854         * m4/quotearg.m4: New file.
49855
49856         Module quote.
49857         * m4/quote.m4: New file.
49858
49859         Module readutmp.
49860         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
49861
49862         Module sig2str.
49863         * m4/sig2str.m4: New file.
49864
49865         Other.
49866         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
49867         ulonglong.m4.
49868         * m4/intmax_t.m4: New file.
49869         * m4/d-type.m4: Indentation.
49870         * m4/jm-macros.m4: Update.
49871         * m4/prereq.m4 (jm_PREREQ): Update.
49872         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
49873         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
49874         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
49875         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
49876         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
49877         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
49878         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
49879         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
49880         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
49881         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
49882         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
49883         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
49884         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
49885         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
49886         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
49887         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
49888         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
49889         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
49890         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
49891
49892 2002-12-24  Bruno Haible  <bruno@clisp.org>
49893
49894         * MODULES.txt: Update according to m4/ changes.
49895
49896         Module gettext.
49897         * config.rpath: New file, from gettext-0.11.5.
49898
49899         * modules/*: New module descriptions.
49900         * gnulib-tool: New file.
49901         * MODULES.html.sh: New file.
49902
49903 2002-12-21  Karl Berry  <karl@gnu.org>
49904
49905         * doc/fdl.texi: update to version 1.2.
49906
49907 2002-12-19  Karl Berry  <karl@gnu.org>
49908
49909         * config/config.guess: update from prep.
49910
49911 2002-12-18  Bruno Haible  <bruno@clisp.org>
49912
49913         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
49914         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
49915
49916 2002-12-17  Bruno Haible  <bruno@clisp.org>
49917
49918         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
49919         stdlib.h, string.h.
49920
49921 2002-12-17  Bruno Haible  <bruno@clisp.org>
49922
49923         * lib/canon-host.c (strdup): Remove unused declaration.
49924
49925         * lib/fsusage.c: Include full_read.h.
49926         (get_fs_usage): Use full_read instead of safe_read.
49927
49928         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
49929
49930 2002-12-12  Karl Berry  <karl@gnu.org>
49931
49932         * config/config.guess: update from prep.
49933
49934 2002-12-11  Bruno Haible  <bruno@clisp.org>
49935
49936         * m4/setenv.m4: New file, from gettext-0.11.5.
49937
49938 2002-12-11  Bruno Haible  <bruno@clisp.org>
49939
49940         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
49941         not unsetenv().
49942         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
49943         modifications:
49944
49945         2002-12-11  Bruno Haible  <bruno@clisp.org>
49946
49947                 * setenv.c (alloca): Fall back to malloc.
49948                 (freea): New macro.
49949                 (setenv): Use freea() to free memory allocated with alloca().
49950
49951         2002-11-13  Bruno Haible  <bruno@clisp.org>
49952
49953                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
49954                 function declarations.
49955                 * unsetenv.c (unsetenv): Likewise.
49956
49957         2002-03-04  Bruno Haible  <bruno@clisp.org>
49958
49959                 Portability to AIX 4.3.3.
49960                 * unsetenv.c: New file, extracted from setenv.c.
49961                 * setenv.c: Move the unsetenv() function to unsetenv.c.
49962
49963         2001-12-20  Bruno Haible  <bruno@clisp.org>
49964
49965                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
49966                 use malloc instead. For SunOS 4.
49967
49968         2001-12-11  Bruno Haible  <bruno@clisp.org>
49969
49970                 * setenv.c: Declare alloca.
49971                 (compar_fn_t): New typedef.
49972                 (KNOWN_VALUE, STORE_VALUE): Use it.
49973
49974         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
49975         setenv.h.
49976
49977 2002-12-10  Paul Eggert  <eggert@twinsun.com>
49978
49979         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
49980         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
49981         Choose values that are less likely to collide with system fnmatch
49982         options.
49983         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
49984         defined (e.g., a pure POSIX system).
49985         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
49986         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
49987
49988 2002-12-06  Paul Eggert  <eggert@twinsun.com>
49989
49990         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
49991         a pain in practice to deal with generated m4 files.  This change
49992         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
49993
49994         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
49995         and jm-glibc-io.m4, as they are no longer a special case.
49996         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
49997         kludge and the auto-generation stuff.  Check only whether the
49998         functions are declared, not whether they exist, since older hosts
49999         that don't declare the functions can't use the optimization anyway.
50000
50001 2002-12-06  Jim Meyering  <jim@meyering.net>
50002
50003         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
50004
50005         Merge in changes from libc's misc/error.c, in preparation
50006         for the merge of gnulib's changes back into libc.
50007
50008         * lib/error.c (_): Define only if not already defined.
50009         Move definition to follow all #include directives.
50010         Include unlocked-io.h only if !_LIBC.
50011         [_LIBC]: Include <libio/libioP.h>.
50012         [USE_IN_LIBIO]: Include <libio/iolibio.h>
50013         (fflush): Tweak definition to use INTUSE.
50014         (putc): Define.
50015
50016 2002-12-05  Paul Eggert  <eggert@twinsun.com>
50017
50018         * lib/alloca.c [defined emacs]: Include "lisp.h".
50019         (xalloc_die) [defined emacs]: New macro.
50020         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
50021         [! defined emacs]: Include <xalloc.h>.
50022         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
50023         (pointer): Typedef to POINTER_TYPE *.
50024         (malloc): Remove decl; we now always use xmalloc.
50025         (alloca): Use old-style definition, since Emacs needs this.
50026         Check for arithmetic overflow when computing combined size.
50027
50028 2002-12-04  Paul Eggert  <eggert@twinsun.com>
50029
50030         Do not generate unlocked-io.h automatically, since it's easier to
50031         maintain it by hand.
50032
50033         * lib/unlocked-io.h: New file, from GNU diffutils,
50034         but with proper copyright notice and attribution.
50035         * lib/gen-uio: Remove.
50036         * lib/Makefile.am: Add copyright notice.
50037         (libfetish_a_SOURCES): Add unlocked-io.h.
50038         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
50039         (DISTCLEANFILES, io_functions): Remove macros.
50040         (EXTRA_DIST): Remove gen_uio.
50041         (unlocked-io.h): Remove rule.
50042
50043 2002-12-04  Jim Meyering  <jim@meyering.net>
50044
50045         Reflect the fact that stat.c and lstat.c are no longer generated.
50046         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
50047         (DISTCLEANFILES): Likewise.
50048         (EXTRA_DIST): Likewise.
50049         (all_local): Don't depend on stat.c or lstat.c.
50050         (stat.c, lstat.c): Remove rules.
50051         (EXTRA_DIST): Remove xstat.in.
50052
50053         * lib/xstat.in: Remove file.  Contents moved into stat.c.
50054         * lib/stat.c: New file.  Contents mostly from xstat.in.
50055         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
50056         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
50057
50058         * lib/safe-read.c: Rework so that it may serve to define safe_write,
50059         too.
50060         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
50061
50062 2002-12-03  Jim Meyering  <jim@meyering.net>
50063
50064         * lib/safe-read.c, safe-write.c: Change variable names and comments,
50065         but not semantics, to minimize the differences between these two files.
50066         (safe_read): Change comment to mention SAFE_READ_ERROR.
50067
50068         * lib/safe-read.c (IS_EINTR): Define.
50069         (safe_read): Use IS_EINTR in place of in-function cpp directives.
50070
50071 2002-12-02  Jim Meyering  <jim@meyering.net>
50072
50073         * lib/safe-read.c (EINTR): Define.
50074         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
50075         (INT_MAX): Provide fallback.
50076         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
50077
50078         * lib/safe-read.h (SAFE_READ_ERROR): Define.
50079
50080 2002-12-02  Bruno Haible  <bruno@clisp.org>
50081
50082         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
50083         Define, taken from safe-read.c.
50084         (INT_MAX): Provide fallback.
50085         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
50086         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
50087
50088         * lib/safe-read.c (EINTR): Remove definition.
50089         (safe_read): Don't use EINTR if it is absent.
50090
50091 2002-12-01  Jim Meyering  <jim@meyering.net>
50092
50093         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
50094         zero.
50095         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
50096
50097 2002-11-27  Paul Eggert  <eggert@twinsun.com>
50098
50099         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
50100         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
50101         with `if (! (value < limit)) abort ();', for readability.
50102
50103 2002-11-26  Karl Berry  <karl@gnu.org>
50104
50105         * lib/strdup.c: copy from libc again, with jim's ok.
50106         * lib/.cppi-disable: re-add strdup.c
50107
50108 2002-11-25  Karl Berry  <karl@gnu.org>
50109
50110         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
50111         instead of "strtol.c".
50112
50113 2002-11-25  Karl Berry  <karl@gnu.org>
50114
50115         * config/install-sh: update from automake for variable quoting, $0 in
50116         error msgs, etc.
50117
50118         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
50119         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
50120         entry.
50121
50122 2002-11-25  Jim Meyering  <jim@meyering.net>
50123
50124         * lib/mktime.c: Sync from libc, now that it has the latest fix.
50125
50126 2002-11-24  Karl Berry  <karl@gnu.org>
50127
50128         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
50129         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
50130
50131 2002-11-24  Jim Meyering  <jim@meyering.net>
50132
50133         Update from coreutils:
50134
50135         * lib/mktime.c: Merge in changes from libc.
50136
50137         Avoid a link-time failure on some Linux systems.
50138         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
50139         (otherwise).
50140         (__mon_yday): Declare with the STATIC attribute.
50141         (__mktime_internal): Likewise.
50142         Based on a report from Greg Schafer.
50143
50144 2002-11-23  Jim Meyering  <jim@meyering.net>
50145
50146         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
50147         Use `unsigned', not `int', as type of index.
50148
50149         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
50150
50151         * lib/fsusage.c: Remove unneeded parentheses around operands of
50152         `defined'.
50153
50154 2002-11-22  Paul Eggert  <eggert@twinsun.com>
50155
50156         * lib/quotearg.h: Allow multiple inclusion by surrounding with
50157         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
50158         so that we can be included first.
50159         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
50160         * lib/quotearg.c: Include quotearg.h immediately after config.h.
50161         No need to include stddef.h or sys/types.h any more.
50162         Surround local include files with "", not "<>".
50163         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
50164         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
50165         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
50166         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
50167         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
50168         (ISPRINT): Remove; no longer needed now that we assume C89.
50169
50170         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
50171         Preserve errno.
50172
50173         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
50174         quotearg_char): Use SIZE_MAX rather than
50175         (size_t) -1 when we are talking about "infinity".
50176
50177         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
50178
50179 2002-11-22  Paul Eggert  <eggert@twinsun.com>
50180
50181         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
50182         hint that one should use `if (! x) abort ();' rather than `assert
50183         (x);', and anyway it's one less thing to worry about configuring.
50184         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
50185         hash_rehash, hash_insert): Use abort rather than assert.
50186
50187 2002-11-22  Bruno Haible  <bruno@clisp.org>
50188
50189         * lib/safe-read.h: Assume C89. Add comments.
50190         (safe_read): Change return type to size_t.
50191         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
50192         byte counts > SSIZE_MAX correctly.
50193         * lib/safe-write.h: New file.
50194         * lib/safe-write.c: New file.
50195         * lib/full-read.h: New file.
50196         * lib/full-read.c: New file.
50197         * lib/full-write.h: Assume C89. Add comments.
50198         * lib/full-write.c: Include safe-write.h.
50199         (full_write): Rewritten to use safe_write.
50200         Suggested by Jim Meyering and Paul Eggert.
50201
50202 2002-11-21  Jim Meyering  <jim@meyering.net>
50203
50204         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
50205
50206         Merge in changes from the coreutils.
50207
50208         2002-09-25  Paul Eggert  <eggert@twinsun.com>
50209         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
50210         <stdint.h>.
50211         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
50212         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
50213         int.  Work more efficiently if X is the same width as uintmax_t.
50214         Do not compare X to -1, to avoid bogus compiler warning.
50215         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
50216         Don't assume that f_frsize and f_bsize are the same type.
50217
50218         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
50219         warning on FreeBSD.
50220
50221         * lib/makepath.c (make_path): Restore umask *before* creating the final
50222         component.
50223         (make_path): Minor reformatting.
50224
50225         * lib/xmalloc.c: Adjust to work with new autoconf macros,
50226         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
50227         HAVE_MALLOC/HAVE_REALLOC.
50228
50229         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
50230         dummy ones.  At least on GNU/Linux systems, `auto' means something
50231         else.
50232         From Michael Stone.
50233
50234 2002-11-21  Bruno Haible  <bruno@clisp.org>
50235
50236         Remove case insensitive option matching.
50237         * lib/argmatch.h (argcasematch): Remove declaration.
50238         (ARGCASEMATCH): Remove macro.
50239         (__xargmatch_internal): Remove case_sensitive argument.
50240         (XARGMATCH): Update.
50241         (XARGCASEMATCH): Remove macro.
50242         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
50243         case_sensitive argument.
50244         (argcasematch): Remove function.
50245         (__xargmatch_internal): Remove case_sensitive argument.
50246         (main): Use XARGMATCH instead of XARGCASEMATCH.
50247
50248         * lib/xmalloc.c: Change compile-time error message. Add comment about
50249         required autoconf version.
50250
50251 2002-11-20  Paul Eggert  <eggert@twinsun.com>
50252
50253         Merge argmatch cleanups from Bison.  Assume C89.
50254
50255         * lib/argmatch.c: Include config.h here, not in argmatch.h.
50256         Include stdlib.h, for EXIT_FAILURE.
50257         Always include <string.h>, since we assume C89.
50258         (EXIT_FAILURE): Remove pre-C89 bug workaround.
50259         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
50260         Include <stddef.h> instead, since it's all we need for size_t.
50261         (PARAMS): Remove.  All uses removed.
50262         (ARRAY_CARDINALITY): Do not bother to #undef.
50263         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
50264         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
50265         Remove unnecessary parentheses.
50266         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
50267         Insert necessary parentheses.
50268         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
50269         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
50270
50271 2002-11-19  Bruno Haible  <bruno@clisp.org>
50272
50273         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
50274         * lib/mbswidth.h: Include <stddef.h>, for size_t.
50275
50276         * lib/mbswidth.h (PARAMS): Remove macro.
50277         (mbswidth, mbsnwidth): Use ANSI C function declarations.
50278         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
50279
50280         * lib/gcd.h (PARAMS): Remove macro.
50281         (gcd): Use ANSI C function declarations.
50282         * lib/gcd.c (gcd): Likewise.
50283
50284 2002-11-15  Bruno Haible  <bruno@clisp.org>
50285
50286         * lib/strcspn.c: Include <stddef.h>.
50287         (strcspn): Use ANSI C function declaration. Change return type to
50288         size_t. Use NULL.
50289         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
50290         (strpbrk): Use NULL.
50291         * lib/strpbrk.h (PARAMS): Remove macro.
50292         (strpbrk): Use ANSI C function declaration.
50293         * lib/strstr.c: Don't include <sys/types.h>.
50294         * lib/strstr.h (PARAMS): Remove macro.
50295         (strstr): Use ANSI C function declarations.
50296
50297 2002-11-14  Karl Berry  <karl@gnu.org>
50298
50299         * config/mkinstalldirs: `do' on separate line, instead of
50300         `for var; do'.
50301
50302 2002-11-06  Bruno Haible  <bruno@clisp.org>
50303
50304         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
50305         * lib/gcd.c (gcd): Likewise.
50306
50307 2002-11-05  Bruno Haible  <bruno@clisp.org>
50308
50309         * lib/gcd.h: New file, from gettext-0.11.5.
50310         * lib/gcd.c: New file, from gettext-0.11.5.
50311
50312 2002-11-05  Bruno Haible  <bruno@clisp.org>
50313
50314         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
50315         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
50316         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
50317         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
50318
50319         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
50320         <libintl.h>.
50321         * lib/makepath.c: Include gettext.h instead of <locale.h> and
50322         <libintl.h>.
50323
50324         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
50325         * lib/human.c: Include gettext.h instead of <libintl.h>.
50326         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
50327         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
50328         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
50329         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
50330         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
50331         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
50332         (textdomain): Remove definition.
50333         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
50334
50335         * lib/long-options.c: Remove include of <libintl.h> and definition of
50336         _.
50337         * lib/same.c: Remove include of <libintl.h> and definition of _.
50338
50339 2002-11-04  Owen Taylor  <otaylor@redhat.com>
50340
50341         * lib/config.charset: A few additions for Solaris.
50342
50343 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
50344
50345         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
50346         * lib/localcharset.c (locale_charset): Declare as extern "C".
50347
50348 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
50349
50350         * lib/config.charset: msdos in uk_UA uses CP1125.
50351
50352 2002-11-04  Bruno Haible  <bruno@clisp.org>
50353
50354         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
50355         * lib/strcase.h: New file, from GNU gettext-0.11.5.
50356         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
50357         * lib/strstr.h: New file, from GNU gettext-0.11.5.
50358         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
50359
50360 2002-11-04  Bruno Haible  <bruno@clisp.org>
50361
50362         * lib/localcharset.c (locale_charset): Don't return an empty string.
50363
50364 2002-11-04  Bruno Haible  <bruno@clisp.org>
50365
50366         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
50367         aliases.
50368
50369 2002-11-04  Bruno Haible  <bruno@clisp.org>
50370
50371         * lib/config.charset: Update for newest glibc. Add canonical names
50372         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
50373
50374 2002-11-04  Bruno Haible  <bruno@clisp.org>
50375
50376         * lib/config.charset: Add support for NetBSD.
50377
50378 2002-11-04  Bruno Haible  <bruno@clisp.org>
50379
50380         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
50381
50382 2002-11-01  Bruno Haible  <bruno@clisp.org>
50383
50384         * configure.in: Add AC_CONFIG_AUX_DIR call.
50385         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
50386         test/Makefile.
50387         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
50388
50389 2002-09-28  Karl Berry  <karl@gnu.org>
50390
50391         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
50392         installed automake until the next release, since changes have been
50393         made.
50394
50395 2002-09-25  Karl Berry  <karl@gnu.org>
50396
50397         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
50398         * lib/getopt*: copy from libc/posix.
50399         * lib/gettext.h: copy from gettext.
50400         * lib/.cppi-disable: add strdup.c, gettext.h.
50401
50402 2002-09-25  Karl Berry  <karl@gnu.org>
50403
50404         * config/srclist.txt: enable gettext.h check.
50405         * config/config.{guess,sub}: update from prep.
50406         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
50407                 from automake 1.6.3.
50408         See srclist*.
50409
50410 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
50411
50412         * regex.c (PATFETCH): Remove the translating fetch.
50413         (PATFETCH_RAW): Rename to PATFETCH.
50414         (set_image_of_range): New fun.
50415         (SET_RANGE_TABLE_WORK_AREA): Use it.
50416         (regex_compile): Don't translate the pattern chars so eagerly.
50417         Only do it when inserting an `exactn' bytecode or when handling
50418         a char-range.
50419         (mutually_exclusive_p): Avoid empty statement.
50420
50421 2002-07-06  Jim Meyering  <meyering@lucent.com>
50422
50423         * m4/README: Don't mention Makefile.am.in.
50424         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
50425
50426 2002-07-01  Jim Meyering  <meyering@lucent.com>
50427
50428         * lib/c-stack.c: Include sys/time.h.
50429         From Volker Borchert.
50430
50431 2002-06-26  Paul Eggert  <eggert@twinsun.com>
50432
50433         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
50434
50435 2002-06-26  Paul Eggert  <eggert@twinsun.com>
50436
50437         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
50438         New macro.  Use it uniformly instead of
50439         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
50440         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
50441         reported by Vin Shelton.
50442
50443 2002-06-22  Paul Eggert  <eggert@twinsun.com>
50444
50445         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
50446         Do not assume SA_SIGINFO behavior.
50447         Bug reported by Jim Meyering on NetBSD 1.5.2.
50448
50449 2002-06-22  Jim Meyering  <meyering@lucent.com>
50450
50451         * m4/c-stack.m4: New file, from diffutils-2.8.2.
50452         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
50453
50454         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
50455         now that configure.ac uses AC_GNU_SOURCE.
50456         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
50457         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
50458
50459         Update to latest tools.  Suggestions from Paul Eggert.
50460         * m4/stdbool.m4: New file, from diffutils-2.8.2.
50461         * m4/gnu-source.m4: Update from diffutils-2.8.2.
50462         * m4/fnmatch.m4: Likewise.
50463         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
50464         to AC_HEADER_STDBOOL
50465
50466 2002-06-22  Jim Meyering  <meyering@lucent.com>
50467
50468         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
50469         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
50470
50471 2002-06-22  Jim Meyering  <meyering@lucent.com>
50472
50473         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
50474
50475         * lib/exitfail.c, exitfail.h: Likewise.
50476         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
50477
50478         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
50479         of fnmatch.h.
50480         (EXTRA_DIST): Add fnmatch_loop.c.
50481         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
50482
50483         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
50484         * lib/fnmatch.c: Update from diffutils-2.8.2.
50485         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
50486         * lib/fnmatch.h: Remove file.
50487
50488 2002-06-21  Jim Meyering  <meyering@lucent.com>
50489
50490         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
50491         * m4/mbrtowc.m4: Likewise.
50492
50493         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
50494         * m4/mbswidth.m4: Reflect name change:
50495         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
50496         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
50497
50498         * m4/lib-link.m4: Update from gettext-0.11.2.
50499         * m4/gettext.m4: Likewise.
50500
50501         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
50502         From Alfred M. Szmidt.
50503
50504 2002-06-18  Paul Eggert  <eggert@twinsun.com>
50505
50506         * lib/file-type.h: Report an error if neither S_ISREG nor
50507         S_IFREG is defined, instead of using a test specific to glibc
50508         2.2.  This should be safe, since POSIX requires S_ISREG and
50509         Unix Version 7 had S_IFREG.  We don't need to check for
50510         <sys/types.h> since we don't use any symbols that it defines.
50511
50512 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
50513
50514         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
50515         $@-t, so that each temporary file name is unique and valid in the first
50516         8 characters, for operation under DOS.
50517
50518 2002-06-15  Paul Eggert  <eggert@twinsun.com>
50519
50520         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
50521
50522 2002-06-15  Jim Meyering  <meyering@lucent.com>
50523
50524         Work even with DJGPP 2.03, which lacks support for symlinks.
50525         From Richard Dawe.
50526         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
50527         is defined.
50528         * lib/lchown.c (S_ISLNK): Likewise.
50529
50530 2002-06-15  Jim Meyering  <meyering@lucent.com>
50531
50532         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
50533         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
50534         have been included before this file.
50535
50536 2002-06-14  Jim Meyering  <meyering@lucent.com>
50537
50538         * lib/file-type.h: Use the version from diffutils-2.8.2.
50539         * lib/file-type.c: Likewise.
50540
50541 2002-06-07  Jim Meyering  <meyering@lucent.com>
50542
50543         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
50544         They're needed at least for NetBSD 1.5.2.
50545         ($statxfs_includes): Include those same headers.
50546         ($statxfs_includes): Include sys/vfs.h if available.
50547         ($statxfs_includes): Likewise for sys/statvfs.h.
50548         Check for the following members in both structs statfs and statvfs:
50549         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
50550
50551 2002-06-01  Jim Meyering  <meyering@lucent.com>
50552
50553         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
50554         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
50555
50556 2002-05-28  Jim Meyering  <meyering@lucent.com>
50557
50558         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
50559         Reported by Volker Borchert.
50560
50561 2002-05-27  Jim Meyering  <meyering@lucent.com>
50562
50563         Fix a problem seen only on nonconforming systems whereby ls.c's
50564         use of localtime, and then of gettimeofday would cause trouble:
50565         the localtime call used to initialize rpl_gettimeofday's save
50566         mechanism would clobber ls's current local time information so
50567         that in any long listing the first file would always be listed
50568         with date 1970-01-01.  Analysis by Volker Borchert.
50569
50570         * lib/gettimeofday.c (localtime): Undefine.
50571         (rpl_localtime): New function.
50572
50573 2002-05-27  Jim Meyering  <meyering@lucent.com>
50574
50575         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
50576         localtime.
50577
50578         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
50579         use the replacement function; it wouldn't resolve at link time.
50580         Reported by Volker Borchert.
50581
50582 2002-05-22  Jim Meyering  <meyering@lucent.com>
50583
50584         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
50585         file-type.h.
50586         * lib/file-type.h: New file.
50587         * lib/file-type.c (file_type): New file/function.  Extracted from
50588         diffutils.
50589
50590 2002-04-30  Jim Meyering  <meyering@lucent.com>
50591
50592         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
50593
50594 2002-04-29  Paul Eggert  <eggert@twinsun.com>
50595
50596         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
50597
50598 2002-04-29  Paul Eggert  <eggert@twinsun.com>
50599
50600         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
50601         Do not check for alloca.h (no longer used) or stdbool.h (was never
50602         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
50603
50604 2002-04-29  Paul Eggert  <eggert@twinsun.com>
50605
50606         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
50607
50608 2002-04-29  Jim Meyering  <meyering@lucent.com>
50609
50610         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
50611         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
50612         Use AC_FUNC_STRNLEN here instead.
50613
50614         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
50615         With autoconf-2.53a, it's part of AC_PROG_CC.
50616
50617 2002-04-28  Paul Eggert  <eggert@twinsun.com>
50618
50619         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
50620         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
50621
50622 2002-04-28  Paul Eggert  <eggert@twinsun.com>
50623
50624         * lib/sig2str.h, lib/sig2str.c: New files.
50625         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
50626
50627 2002-04-28  Paul Eggert  <eggert@twinsun.com>
50628
50629         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
50630         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
50631         of 127, since 64 is the largest conceivable number for ancient
50632         nonstandard hosts.
50633         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
50634
50635 2002-04-28  Jim Meyering  <meyering@lucent.com>
50636
50637         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
50638
50639 2002-04-24  Jim Meyering  <meyering@lucent.com>
50640
50641         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
50642         (jm_PREREQ): Use it.
50643
50644         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
50645         mach/mach.h fcntl.h.
50646         Check for this function: setlocale.
50647
50648 2002-04-24  Jim Meyering  <meyering@lucent.com>
50649
50650         * lib/gettext.h: New file, from Gettext.
50651         * lib/Makefile.am (INCLUDES): Remove -I../intl.
50652         (libfetish_a_SOURCES): Add gettext.h.
50653
50654 2002-04-16  Jim Meyering  <meyering@lucent.com>
50655
50656         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
50657         ut_pid, ut_id, ut_exit.
50658
50659 2002-04-16  Jim Meyering  <meyering@lucent.com>
50660
50661         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
50662         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
50663         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
50664
50665 2002-04-12  Jim Meyering  <meyering@lucent.com>
50666
50667         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
50668         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
50669         existence of the getmntinfo function.  Needed for Darwin 5.3.
50670
50671         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
50672         This is necessary at least on Darwin 5.3.
50673
50674         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
50675         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
50676         strnlen.o in the library, and that makes some versions of ranlib
50677         object.
50678
50679 2002-04-12  Jim Meyering  <meyering@lucent.com>
50680
50681         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
50682
50683 2002-04-09  Jim Meyering  <meyering@lucent.com>
50684
50685         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
50686         to be more precise.  Rather than saying we're checking whether the
50687         function `works', say what we're testing.
50688         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
50689         Reported by Bruno Haible.
50690
50691 2002-03-10  Jim Meyering  <meyering@lucent.com>
50692
50693         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
50694         Suggestion from Santiago Vila.
50695
50696 2002-03-08  Jim Meyering  <meyering@lucent.com>
50697
50698         * lib/rename.c: Mention that this wrapper is needed also on
50699         mips-dec-ultrix4.4 systems.
50700
50701 2002-03-02  Jim Meyering  <meyering@lucent.com>
50702
50703         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
50704         not HAVE_CLOCK_SETTIME.
50705
50706 2002-02-27  Paul Eggert  <eggert@twinsun.com>
50707
50708         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
50709         Check for clock_settime.
50710
50711 2002-02-27  Paul Eggert  <eggert@twinsun.com>
50712
50713         * lib/nanosleep.h: Rename to....
50714         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
50715
50716         * lib/gettime.c: New file.
50717         * lib/settime.c: New file.
50718         * lib/stime.c: Remove.
50719
50720         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
50721         timespec.h.  Remove nanosleep.h.
50722
50723 2002-02-25  Paul Eggert  <eggert@twinsun.com>
50724
50725         * m4/acl.m4: New file.
50726         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
50727         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
50728
50729 2002-02-25  Paul Eggert  <eggert@twinsun.com>
50730
50731         * lib/acl.c, lib/acl.h: New files.
50732         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
50733
50734 2002-02-24  Jim Meyering  <meyering@lucent.com>
50735
50736         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
50737         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
50738         cause trouble.  Reported by Nelson Beebe.
50739
50740 2002-02-23  Paul Eggert  <eggert@twinsun.com>
50741
50742         * lib/path-concat.c (xpath_concat): Reorder code to pacify
50743         compilers that don't know that xalloc_die never returns.
50744
50745 2002-02-20  Jim Meyering  <meyering@lucent.com>
50746
50747         * lib/getdate.c: Regenerate using bison-1.33.
50748
50749 2002-02-17  Jim Meyering  <meyering@lucent.com>
50750
50751         * config/config.guess (main): Don't use `head -1'; it's no longer
50752         portable. Use `sed 1q' instead.
50753
50754 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
50755
50756         * m4/codeset.m4: Upgrade to gettext-0.11.
50757         * m4/gettext.m4: Upgrade to gettext-0.11.
50758         * m4/glibc21.m4: Upgrade to gettext-0.11.
50759         * m4/iconv.m4: Upgrade to gettext-0.11.
50760         * m4/isc-posix.m4: Upgrade to gettext-0.11.
50761         * m4/lcmessage.m4: Upgrade to gettext-0.11.
50762         * m4/lib-ld.m4: New file, from gettext-0.11.
50763         * m4/lib-link.m4: New file, from gettext-0.11.
50764         * m4/lib-prefix.m4: New file, from gettext-0.11.
50765         * m4/progtest.m4: Upgrade to gettext-0.11.
50766
50767 2002-02-15  Paul Eggert  <eggert@twinsun.com>
50768
50769         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
50770         (jm_PREREQ): Use it.
50771
50772 2002-02-15  Paul Eggert  <eggert@twinsun.com>
50773
50774         * lib/posixver.c, lib/posixver.h: New files.
50775         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
50776
50777 2002-02-02  Paul Eggert  <eggert@twinsun.com>
50778             Bruno Haible  <bruno@clisp.org>
50779
50780         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
50781         (fwrite_success_callback): New declaration.
50782         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
50783         print_unicode_char. Call failure callback instead of error.
50784         (fwrite_success_callback): New function.
50785         (exit_failure_callback): New function.
50786         (fallback_failure_callback): New function.
50787         (print_unicode_char): Call unicode_to_mb.
50788
50789 2002-01-26  Jim Meyering  <meyering@lucent.com>
50790
50791         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
50792         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
50793
50794 2002-01-26  Jim Meyering  <meyering@lucent.com>
50795
50796         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
50797
50798 2002-01-22  Paul Eggert  <eggert@twinsun.com>
50799
50800         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
50801
50802 2002-01-22  Jim Meyering  <meyering@lucent.com>
50803
50804         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
50805         Otherwise, some versions of automake would omit the rule that makes
50806         Makefile from Makefile.in.
50807
50808 2002-01-21  Paul Eggert  <eggert@twinsun.com>
50809
50810         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
50811         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
50812         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
50813         (memcoll): Set errno to zero if there is no error.
50814
50815         * lib/quotearg.c (quotearg_buffer_restyled):
50816         Fix bug with quoting buffers containing NUL when backslashing escapes.
50817         This bug was exposed by the other changes in this patch.
50818         (quotearg_n_options): New arg ARGSIZE.
50819         All callers changed.
50820         (quoting_options_from_style): New function.
50821         (quotearg_n_style): Use it.
50822         (quotearg_n_style_mem): New function.
50823
50824         * lib/quotearg.h (quotearg_n_style_mem): New function.
50825
50826 2002-01-19  Jim Meyering  <meyering@lucent.com>
50827
50828         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
50829         Remove useless quotes: DF_PROG="df".
50830         * m4/strnlen.m4: New file.
50831
50832 2002-01-16  Paul Eggert  <eggert@twinsun.com>
50833
50834         * lib/backupfile.c (ISDIGIT): Comment fix.
50835         * lib/getdate.y (ISDIGIT): Likewise.
50836         * lib/posixtm.c (ISDIGIT, year): Likewise.
50837         * lib/strverscmp.c (ISDIGIT): Likewise.
50838         * lib/userspec.c (ISDIGIT): Likewise.
50839
50840 2002-01-16  Jim Meyering  <meyering@lucent.com>
50841
50842         * lib/getdate.y: Add three semicolons, each just before a closing
50843         brace. Bison (as of version 1.31) no longer papers over that mistake.
50844
50845 2002-01-05  Jim Meyering  <meyering@lucent.com>
50846
50847         * lib/version-etc.c (version_etc_copyright): Update copyright year.
50848
50849 2001-12-19  Paul Eggert  <eggert@twinsun.com>
50850
50851         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
50852         not silently exit merely because the output buffer happens to
50853         have nothing pending.
50854
50855 2001-12-18  Paul Eggert  <eggert@twinsun.com>
50856
50857         See the big note in ../ChangeLog.
50858         * lib/human.c (suffixes): Prefer K to k for 1024.
50859         (generate_suffix_backwards): New function.
50860         (human_readable_inexact): Use it.
50861         * lib/xstrtol.c (__xstrtol): If there is no number but there
50862         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
50863         Accept 'K' as well as 'k'.
50864
50865 2001-12-15  Jim Meyering  <meyering@lucent.com>
50866
50867         * lib/regex.h (__restrict_arr): Update from libc.
50868
50869         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
50870         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
50871         (STREQ): Define.
50872
50873 2001-12-14  Jim Meyering  <meyering@lucent.com>
50874
50875         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
50876         Suggestion from Bruno Haible.
50877
50878 2001-12-10  Jim Meyering  <meyering@lucent.com>
50879
50880         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
50881         xrealloc, Instead, include "xalloc.h".
50882         (initbuffer): Don't cast xmalloc return value to char*.
50883         (readline): Reword comment.
50884         Don't cast xrealloc return value to char*
50885         Return NULL, not 0.
50886
50887 2001-12-09  Jim Meyering  <meyering@lucent.com>
50888
50889         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
50890         about `signed and unsigned type in conditional expression'.
50891         * lib/posixtm.c (posix_time_parse): Likewise.
50892
50893         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
50894
50895         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
50896         to avoid a pedantic warning.
50897
50898         * lib/getstr.c: Don't include assert.h.
50899         (getstr): Remove warning-evoking assertions.
50900         Return -1 if offset parameter is out of bounds.
50901         Change the type of a local from int to size_t.
50902
50903         * lib/strftime.c (my_strftime_localtime_r): Include this function
50904         definition in the `#if ! HAVE_TM_GMTOFF' block.
50905
50906         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
50907         Include xalloc.h instead.
50908
50909 2001-12-02  Jim Meyering  <meyering@lucent.com>
50910
50911         * lib/tempname.c: Don't declare getenv, thus reverting the change of
50912         2001-11-18.  It's no longer necessary, now that stdlib.h is always
50913         included.
50914
50915         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
50916         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
50917
50918 2001-11-30  Akim Demaille  <akim@epita.fr>
50919
50920         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
50921         before being defined.
50922
50923 2001-11-27  Paul Eggert  <eggert@twinsun.com>
50924
50925         * lib/quotearg.h (quotearg_n, quotearg_n_style):
50926         First arg is int, not unsigned.
50927         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
50928         (SIZE_MAX, UINT_MAX): New macros.
50929         (quotearg_n_options): Abort if N is negative.
50930         Avoid overflow check on hosts where size_t is 64 bits and int
50931         is 32 bits, as overflow is impossible there.
50932         Fix off-by-one typo that caused unnecessary reallocation.
50933
50934 2001-11-27  Jim Meyering  <meyering@lucent.com>
50935
50936         * lib/tempname.c: Merge with version from libc.
50937         * lib/regex.c: Likewise.
50938
50939         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
50940         systems for which STDC_HEADERS is 0, it was not included, resulting in
50941         a warning about an integer-to-pointer conversion problem with getenv.
50942         Reported by Volker Borchert.
50943
50944 2001-11-26  Jim Meyering  <meyering@lucent.com>
50945
50946         * lib/gtod.h: Remove file.
50947         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
50948         * lib/gettimeofday.c: Don't include gtod.h.
50949         (GTOD_init): Remove function.
50950         (rpl_gettimeofday): Do its job here instead, rather than aborting.
50951         Suggestion from Volker Borchert.
50952
50953 2001-11-23  Jim Meyering  <meyering@lucent.com>
50954
50955         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
50956         it.
50957         * lib/hash.c (struct hash_table): Define it here instead.
50958
50959 2001-11-22  Jim Meyering  <meyering@lucent.com>
50960
50961         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
50962
50963 2001-11-20  Jim Meyering  <meyering@lucent.com>
50964
50965         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
50966         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
50967
50968 2001-11-19  Jim Meyering  <meyering@lucent.com>
50969
50970         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
50971         directory.  Use "conftestXXXXXX" as the template.
50972         Suggestion from Paul Eggert.
50973
50974         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
50975         immediately, so the test doesn't mistakenly hit the max-open-files
50976         limit.
50977
50978 2001-11-18  Paul Eggert  <eggert@twinsun.com>
50979
50980         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
50981         (TEMPORARIES): New macro.
50982         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
50983         removes an artificial limitation (e.g. HP-UX 10.20, where
50984         TMP_MAX is 17576).
50985
50986 2001-11-18  Jim Meyering  <meyering@lucent.com>
50987
50988         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
50989
50990 2001-11-18  Jim Meyering  <meyering@lucent.com>
50991
50992         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
50993         on SunOS 4.
50994
50995         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
50996         files will be created before anything else.
50997
50998 2001-11-17  Paul Eggert  <eggert@twinsun.com>
50999
51000         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
51001         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
51002
51003 2001-11-17  Jim Meyering  <meyering@lucent.com>
51004
51005         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
51006         Prompted by a report from Bob Proulx.
51007
51008         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
51009         Instead, require UTILS_FUNC_MKSTEMP.
51010
51011 2001-11-17  Jim Meyering  <meyering@lucent.com>
51012
51013         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
51014         Now, that's done as part of AC_FUNC_STRTOD.
51015
51016 2001-11-17  Jim Meyering  <meyering@lucent.com>
51017
51018         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
51019         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
51020         rather than group writable.  Patch by Juan F. Codagnone.
51021
51022         * lib/readtokens.c: Remove explicit declarations of xmalloc and
51023         xrealloc, Instead, include "xalloc.h".
51024
51025         * lib/mountlist.c: Include unlocked-io.h after all system headers.
51026         Remove explicit declarations of xmalloc, xrealloc,
51027         and xstrdup.  Instead, include "xalloc.h".
51028
51029         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
51030         unlocked-io.h.
51031         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
51032         Likewise.
51033         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
51034
51035         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
51036         Reported by Padraig Brady.
51037
51038         * lib/mkstemp.c: #undef mkstemp.
51039         Include config.h.
51040         (rpl_mkstemp): Rename from mkstemp.
51041         Protoize.
51042
51043 2001-11-16  Jim Meyering  <meyering@lucent.com>
51044
51045         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
51046         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
51047         determine the amount of total physical memory, use pstat_getstatic.
51048         HPUX-11 doesn't define _SC_PHYS_PAGES.
51049         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
51050         If sysconf couldn't be used to determine the amount of available
51051         physical memory, use both pstat_getstatic and pstat_getdynamic.
51052         Based on a patch from Bob Proulx.
51053
51054 2001-11-10  Jim Meyering  <meyering@lucent.com>
51055
51056         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
51057         (jm_PREREQ): Use it.
51058
51059 2001-11-09  Jim Meyering  <meyering@lucent.com>
51060
51061         * m4/jm-macros.m4: Require autoconf-2.52f.
51062         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
51063         Use these AC_-prefixed names, not the AM_-prefixed ones.
51064
51065         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
51066
51067 2001-11-05  Jim Meyering  <meyering@lucent.com>
51068
51069         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
51070
51071 2001-11-04  Jim Meyering  <meyering@lucent.com>
51072
51073         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
51074         $DEFS.
51075
51076 2001-11-03  Jim Meyering  <meyering@lucent.com>
51077
51078         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
51079         of AC_DEFUN.
51080
51081         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
51082         know the name of the variable in the macro definition.
51083
51084 2001-11-03  Jim Meyering  <meyering@lucent.com>
51085
51086         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
51087         in argmatch_to_argument call.
51088
51089         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
51090         argument.
51091
51092         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
51093         e.g., a fault due to an attempt to free a NULL pointer.
51094
51095 2001-11-01  Jim Meyering  <meyering@lucent.com>
51096
51097         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
51098         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
51099
51100 2001-11-01  Jim Meyering  <meyering@lucent.com>
51101
51102         * lib/dirfd.c, lib/dirfd.h: New files.
51103         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
51104
51105         * lib/hash.c (hash_print) [TESTING]: Clean up.
51106
51107 2001-10-22  Paul Eggert  <eggert@twinsun.com>
51108
51109         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
51110         to avoid a warning if -Wall.
51111
51112 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
51113
51114         * README: New file
51115         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
51116         (per RMS's instructions, this is now the canonical source)
51117         * lgpl/, gpl/: New directories.
51118
51119 2001-10-21  Paul Eggert  <eggert@twinsun.com>
51120
51121         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
51122
51123 2001-10-21  Jim Meyering  <meyering@lucent.com>
51124
51125         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
51126         this code would end up calling gettext even in packages built
51127         with --disable-nls.
51128         * lib/getopt.c (_): Likewise.
51129         * lib/regex.c (_): Likewise.
51130
51131 2001-10-20  Paul Eggert  <eggert@twinsun.com>
51132
51133         * m4/error.m4 (jm_PREREQ_ERROR):
51134         Do not invoke AC_CHECK_FUNCS with strerror_r, as
51135         AC_FUNC_STRERROR_R does that.
51136         Check for strerror declaration.
51137
51138         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
51139         are supposed to have them these days.
51140         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
51141         Merge changes from latest Autoconf CVS.
51142         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
51143         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
51144         POSIX decided to standardize on the int flavor of strerror_r.
51145
51146 2001-10-20  Paul Eggert  <eggert@twinsun.com>
51147
51148         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
51149         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
51150         Use strerror_r that is only a macro, even if it is not a function.
51151         (strerror): Check for HAVE_DECL_STRERROR before declaring.
51152         (private_strerror): Use prototypes, not old-style function definition.
51153         (print_errno_message): New function.
51154         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
51155         char*-flavored one.
51156         (error_tail, error, error_at_line): Use it.
51157
51158 2001-10-11  Jim Meyering  <meyering@lucent.com>
51159
51160         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
51161         and quote_n (1, ... to avoid clobbering a buffer.
51162
51163 2001-10-05  Jim Meyering  <meyering@lucent.com>
51164
51165         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
51166         hash-pjw.h.
51167         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
51168         * lib/hash-pjw.h: New file.
51169
51170 2001-09-30  Jim Meyering  <meyering@lucent.com>
51171
51172         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
51173         `struct fsstat' has the `f_fstypename' member.
51174         Use that to define FS_TYPE, which is now used to make
51175         the getfsstat link test tighter.
51176
51177 2001-09-30  Jim Meyering  <meyering@lucent.com>
51178
51179         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
51180         Include <sys/ucred.h>, for Apple Darwin.
51181         Include sys/mount.h and sys/fs_types.h only if available.
51182         (FS_TYPE): Define.
51183         (read_filesystem_list): Use FS_TYPE.
51184
51185 2001-09-29  Paul Eggert  <eggert@twinsun.com>
51186
51187         * lib/exclude.c (excluded_filename): 0 -> false, since it's
51188         a boolean context.
51189
51190 2001-09-29  Jim Meyering  <meyering@lucent.com>
51191
51192         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
51193         [one-argument getmntent function]): Include stdio.h before mntent.h.
51194         SunOS 4.1.x needs it for the declaration of `FILE'.
51195         Patch by Volker Borchert.
51196
51197         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
51198         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
51199         sys/fs_types.h, and make the link-test for getfsstat guard #include
51200         directives with appropriate #if HAVE_*_H tests so that we can
51201         detect getfsstat on Apple Darwin1.3.7 systems.
51202         Reported by Nelson Beebe.
51203         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
51204
51205 2001-09-28  Paul Eggert  <eggert@twinsun.com>
51206
51207         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
51208         #defines strtoimax.  Also treat the other strto* functions
51209         like strtoimax.
51210
51211         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
51212         Check for strtoul and strtoumax,
51213         as those declarations are made even in the signed case.
51214         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
51215         Likewise, for strtol and strtoimax.
51216
51217 2001-09-28  Paul Eggert  <eggert@twinsun.com>
51218
51219         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
51220         #defines strtoimax.  Also treat the other strto* functions
51221         like strtoimax.
51222
51223         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
51224         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
51225         (strtoimax, strtoumax): Do not declare if already defined as a macro.
51226
51227 2001-09-26  Jim Meyering  <meyering@lucent.com>
51228
51229         Most macros in unlocked-io.h had the wrong number of arguments.
51230         * lib/gen-uio: New script.
51231         (USE_UNLOCKED_IO): Define to 1 if not already defined.
51232         * lib/unlocked-io.hin: Remove file.
51233         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
51234         rather than trying to embed it here.
51235         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
51236         Reported by Padraig Brady.
51237
51238 2001-09-25  Volker Borchert  <bt@teknon.de>
51239
51240         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
51241         `result'.
51242
51243 2001-09-24  Jim Meyering  <meyering@lucent.com>
51244
51245         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
51246
51247 2001-09-23  Jim Meyering  <meyering@lucent.com>
51248
51249         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
51250         instead of the mere test for existence of mntent.h.  The latter
51251         would get a false-positive on AIX 3.4 systems.
51252         In the outer getmntent if-block, don't die if neither of the getmntent
51253         tests succeeds.  Instead, just fall through and continue with the
51254         remaining tests.
51255
51256 2001-09-23  Jim Meyering  <meyering@lucent.com>
51257
51258         * lib/mountlist.c: Remove useless parentheses in #if directives.
51259         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
51260         the deprecated MOUNTED symbol is no longer defined in mntent.h.
51261
51262 2001-09-22  Jim Meyering  <meyering@lucent.com>
51263
51264         * m4/gettext.m4: New file.  From gettext.
51265         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
51266         * m4/progtest.m4: Likewise
51267         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
51268         * m4/glibc21.m4: Likewise.
51269
51270         * m4/libintl.m4: Remove.  No longer used.
51271
51272 2001-09-22  Jim Meyering  <meyering@lucent.com>
51273
51274         * lib/localcharset.c: Update from latest gettext.
51275         * lib/config.charset: Likewise.
51276
51277 2001-09-20  Jim Meyering  <meyering@lucent.com>
51278
51279         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
51280         strtoimax.
51281         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
51282         strtoumax.
51283
51284 2001-09-20  Jim Meyering  <meyering@lucent.com>
51285
51286         * lib/xstrtol.c (strtoimax): Guard declaration with
51287         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
51288         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
51289         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
51290         (strtoumax): Likewise, for completeness (it wasn't necessary).
51291
51292 2001-09-17  Paul Eggert  <eggert@twinsun.com>
51293
51294         * lib/strtoimax.c (HAVE_LONG_LONG):
51295         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
51296         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
51297         to work around bug in IBM C compiler.
51298
51299 2001-09-17  Jim Meyering  <meyering@lucent.com>
51300
51301         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
51302         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
51303         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
51304         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
51305         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
51306         whenever the right hand side need not be expanded by the shell.
51307
51308 2001-09-16  Paul Eggert  <eggert@twinsun.com>
51309
51310         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
51311         library.  It's not correct, as some older glibcs are buggy.
51312         fnmatch wasn't fixed until glibc 2.2.
51313
51314         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
51315         special shell magic here.
51316
51317 2001-09-16  Jim Meyering  <meyering@lucent.com>
51318
51319         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
51320         * m4/jm-macros.m4: Require it.
51321
51322 2001-09-16  Jim Meyering  <meyering@lucent.com>
51323
51324         * lib/mkdir.c: New file.
51325
51326 2001-09-15  Jim Meyering  <meyering@lucent.com>
51327
51328         * m4/jm-macros.m4: Check for help2man.
51329
51330 2001-09-11  Jim Meyering  <meyering@lucent.com>
51331
51332         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
51333         The body, by Paul Eggert, was moved here from configure.in.
51334         * m4/jm-macros.m4: Require UTILS_HOST_OS.
51335
51336 2001-09-04  Paul Eggert  <eggert@twinsun.com>
51337
51338         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
51339         (jm_PREREQ): Use it.
51340
51341 2001-09-04  Paul Eggert  <eggert@twinsun.com>
51342
51343         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
51344         Use ssize_t, not int, to store result of readlink.
51345         Check for ssize_t overflow as well as size_t overflow,
51346         as POSIX says the result of readlink is implementation-defined
51347         when ssize_t overflows.
51348         Remove unnecessary cast to char*.
51349         Use free+malloc instead of realloc, as the storage doesn't need
51350         to be preserved and it's clearer and can be more efficient that way.
51351         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
51352         * lib/xreadlink.h (xreadlink): Update prototype.
51353
51354 2001-09-04  Paul Eggert  <eggert@twinsun.com>
51355
51356         * lib/xgetcwd.c: Revert some of the previous change; intead,
51357         fix the HAVE_GETCWD_NULL code to behave more like the
51358         !HAVE_GETCWD_NULL code used to.
51359
51360         Include "xalloc.h".
51361         (xgetcwd): Do not return NULL when memory is exhausted; instead,
51362         invoke xalloc_die.
51363
51364 2001-09-03  Paul Eggert  <eggert@twinsun.com>
51365
51366         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
51367         sys/param.h, as pathmax.h includes them.
51368
51369 2001-09-03  Paul Eggert  <eggert@twinsun.com>
51370
51371         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
51372         (jm_PREREQ_XGETCWD): New macro.
51373
51374         * m4/getcwd.m4: New file.
51375
51376 2001-09-03  Paul Eggert  <eggert@twinsun.com>
51377
51378         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
51379         like the HAVE_GETCWD_NULL code.
51380         Include pathmax.h if not HAVE_GETCWD.
51381         Do not include xalloc.h.
51382         (INITIAL_BUFFER_SIZE): New symbol.
51383         Do not use xmalloc / xrealloc, since the caller is responsible for
51384         handling errors.  Preserve errno around `free' during failure.
51385         Do not overrun buffer when using getwd.
51386
51387 2001-09-03  Paul Eggert  <eggert@twinsun.com>
51388
51389         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
51390         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
51391         getcwd (NULL, 0).
51392
51393 2001-09-03  Paul Eggert  <eggert@twinsun.com>
51394
51395         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
51396         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
51397         spotted by Jim Meyering.
51398
51399 2001-09-03  Jim Meyering  <meyering@lucent.com>
51400
51401         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
51402         failure.
51403
51404 2001-09-02  Jim Meyering  <meyering@lucent.com>
51405
51406         * lib/error.c: Update from GNU libc.
51407
51408 2001-09-01  Jim Meyering  <meyering@lucent.com>
51409
51410         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
51411         Used by df.
51412
51413 2001-09-01  Jim Meyering  <meyering@lucent.com>
51414
51415         * lib/xreadlink.c: New file.
51416         * lib/xreadlink.h: New file.
51417         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
51418         xreadlink.h.
51419
51420         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
51421         doesn't conflict with sparc Solaris 7's definition in
51422         /usr/include/sys/int_types.h.
51423
51424         * lib/exclude.c: Use `""', not `<>' to #include non-system header
51425         files.
51426         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
51427         and strncasecmp as r-values.  Unixware didn't have declarations.
51428
51429 2001-08-31  Paul Eggert  <eggert@twinsun.com>
51430
51431         * lib/xstrtol.h: Add copyright notice.
51432         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
51433         LONGINT_INVALID_SUFFIX_CHAR.
51434
51435 2001-08-31  Paul Eggert  <eggert@twinsun.com>
51436
51437         * lib/xstrtol.c (strtoimax): New decl.
51438
51439 2001-08-31  Paul Eggert  <eggert@twinsun.com>
51440
51441         * lib/xgetcwd.c: Don't include pathmax.h.
51442         Include stdlib.h and unistd.h if available.
51443         Include xalloc.h.
51444         (xmalloc, xstrdup, free): Remove decls.
51445         (xgetcwd): Don't assume sizes fit in unsigned.
51446         Check for overflow when computing sizes.
51447         Simplify reallocation code.
51448
51449 2001-08-31  Paul Eggert  <eggert@twinsun.com>
51450
51451         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
51452         a directory's st_size can have an arbitrary value, so the old
51453         usage could waste an arbitrary amount of memory.  All uses
51454         changed.
51455         * lib/savedir.h: Update prototype.
51456
51457 2001-08-31  Paul Eggert  <eggert@twinsun.com>
51458
51459         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
51460
51461         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
51462         old strtoimax.c.
51463
51464         Also, make the following further changes to make this file's
51465         configuration more similar to that of strtol.c:
51466         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
51467         (strtoumax, uintmax_t, strtoull, strtol): Remove.
51468         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
51469         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
51470         changed to signed values.
51471
51472         And make the following changes as well:
51473         Fix copyright notice, as 1999 was missing.
51474         (verify): New macro.
51475         (strtoimax): Check sizes at compile-time, not run-time.
51476         Prefer strtol to strtoll if both work.
51477         (main): Remove; it was not that useful and was a pain to maintain.
51478
51479         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
51480
51481 2001-08-31  Jim Meyering  <meyering@lucent.com>
51482
51483         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
51484         Use an initial, malloc'd, buffer of length 128 rather than
51485         a statically allocated one of length 1024.
51486
51487 2001-08-30  Paul Eggert  <eggert@twinsun.com>
51488
51489         Simplify code, partly by assuming autoconf 2.52 semantics.
51490
51491         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
51492
51493         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
51494         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
51495         All uses removed.
51496         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
51497         Move AC_REQUIRE to next-to-top level, to avoid confusion.
51498         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
51499         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
51500         jm_AC_HEADER_INTTYPES_H.
51501         * m4/jm-macros.m4 (jm_MACROS): Likewise.
51502
51503         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
51504
51505         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
51506         Quote first arg of AC_DEFUN.
51507         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
51508         since they are needed to parse the include file even if we need
51509         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
51510         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
51511         but with opposite signedness.
51512
51513 2001-08-30  Paul Eggert  <eggert@twinsun.com>
51514
51515         Merge 'exclude' changes from tar 1.13.22.
51516         This fixes one or two unlikely storage allocation overflow bugs,
51517         but doesn't change user-visible behavior otherwise.
51518
51519 2001-08-30  Paul Eggert  <eggert@twinsun.com>
51520
51521         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
51522         (jm_PREREQ_EXCLUDE): New macro.
51523
51524 2001-08-30  Paul Eggert  <eggert@twinsun.com>
51525
51526         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
51527         tm to be declared.
51528
51529 2001-08-30  Paul Eggert  <eggert@twinsun.com>
51530
51531         * lib/hash.c: Remove '2001' from copyright notice.
51532
51533 2001-08-30  Paul Eggert  <eggert@twinsun.com>
51534
51535         * lib/full-write.h: New file.
51536         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
51537         * lib/full-write.c: Correct credits, as cccp.c no longer
51538         exists and anyway it was so heavily changed from the old cccp
51539         code as to be unrecognizable.  Include full-write.h.
51540         (full_write) Return size_t, with short writes meaning failure.
51541         All callers changed.  This fixes a bug with large buffers
51542         on 64-bit hosts.
51543         * lib/utime.c: Include full-write.h.
51544
51545 2001-08-30  Paul Eggert  <eggert@twinsun.com>
51546
51547         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
51548         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
51549         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
51550         Include if available.
51551         (<xalloc.h>): Include
51552         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
51553         (verify): New macro.  Use it to verify that EXCLUDE macros do not
51554         collide with FNM macros.
51555         (struct patopts): New struct.
51556         (struct exclude): Use it, as exclude patterns now come with options.
51557         (new_exclude): Support above changes.
51558         (new_exclude, add_exclude_file):
51559         Initial size must now be a power of two to simplify overflow checking.
51560         (free_exclude, fnmatch_no_wildcards): New function.
51561         (excluded_filename): No longer requires options arg, as the options
51562         are determined by add_exclude.  Now returns bool, not int.
51563         (excluded_filename, add_exclude):
51564         Add support for the fancy new exclusion options.
51565         (add_exclude, add_exclude_file): Now takes int options arg.
51566         Check for arithmetic overflow when computing sizes.
51567         (add_exclude_file): xrealloc might modify errno, so don't
51568         realloc until after errno might be used.
51569
51570         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
51571         New macros.
51572         (free_exclude): New decl.
51573         (add_exclude, add_exclude_file): Now takes int options arg.
51574         (excluded_filename): No longer requires options arg, as the options
51575         are determined by add_exclude.  Now returns bool, not int.
51576
51577 2001-08-30  Paul Eggert  <eggert@twinsun.com>
51578
51579         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
51580
51581 2001-08-27  Jim Meyering  <meyering@lucent.com>
51582
51583         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
51584
51585         * lib/version-etc.c (N_): Remove definition.
51586         Revert most of last change.
51587         Instead, simply don't mark the `Copyright...' string for translation.
51588         Based on advice from Paul Eggert.
51589
51590         * lib/strtoxmax.c: Tweak comment.
51591
51592 2001-08-26  Jim Meyering  <meyering@lucent.com>
51593
51594         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
51595
51596         * m4/xstrtoimax.m4: New file.
51597         * m4/xstrtoumax.m4: Add comments explaining why we
51598         AC_REPLACE_FUNCS(strtol).
51599
51600 2001-08-26  Jim Meyering  <meyering@lucent.com>
51601
51602         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
51603         of copyright with `%s' so translators don't get an untranslated
51604         message in 2002.
51605         (COPYRIGHT_YEAR): Define.
51606         (version_etc): Use fprintf rather than fputs.
51607         Suggestion from Ulrich Drepper.
51608
51609         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
51610
51611         * lib/strtoll.c: New file, from GNU libc.
51612         * lib/xstrtoimax.c: New file.
51613
51614         * lib/xstrtol.h: Add xstrtoimax.
51615         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
51616         * lib/strtoimax.c: New file.  Likewise, but first define
51617         STRTOUXMAX_SIGNED.
51618
51619         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
51620         ...
51621         * lib/strtoxmax.c: ... then renamed to this.
51622
51623 2001-08-18  Paul Eggert  <eggert@twinsun.com>
51624
51625         * m4/inttypes.m4: Add AC_PREREQ(2.13).
51626         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
51627         (jm_AC_TYPE_INTMAX_T): New macro.
51628         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
51629
51630         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
51631
51632         * m4/longlong.m4: Renamed from ulonglong.m4.
51633         * m4/inttypes.m4: Renamed from inttypes_h.m4.
51634         * m4/uintmax_t.m4: Removed.
51635
51636 2001-08-13  Paul Eggert  <eggert@twinsun.com>
51637
51638         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
51639         Port to Solaris 8, where 'sed' requires a space after the 'r'
51640         command, and where sh dislikes "$/".  Clean up the spacing a bit.
51641         Redirect output to $tmp just once.
51642
51643 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
51644
51645         * lib/addext.c (<errno.h>): Include.
51646         (errno): Declare if not defined.
51647         (addext): Work correctly when pathconf returns -1 and leaves
51648         errno alone because there is no limit.  Also, work even if
51649         pathconf returns a value greater than SIZE_MAX.
51650
51651 2001-08-12  Jim Meyering  <meyering@lucent.com>
51652
51653         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
51654         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
51655         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
51656         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
51657         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
51658         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
51659         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
51660         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
51661         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
51662         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
51663         utime.m4, utimes.m4, xstrtoumax.m4:
51664         Quote the first argument in each use of AC_DEFUN.
51665
51666 2001-08-12  Jim Meyering  <meyering@lucent.com>
51667
51668         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
51669         Simply `return getcwd (NULL, 0);'.
51670         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
51671         Use 1300 as initial value for length, not PATH_MAX.
51672
51673         * lib/pathmax.h: Clean up cpp syntax.
51674
51675 2001-08-12  Jim Meyering  <meyering@lucent.com>
51676
51677         * lib/gettimeofday.c: New file.
51678         * lib/gtod.h: New file.
51679         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
51680
51681 2001-08-05  Jim Meyering  <meyering@lucent.com>
51682
51683         * m4/jm-macros.m4: Require autoconf-2.52.
51684
51685 2001-08-04  Jim Meyering  <meyering@lucent.com>
51686
51687         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
51688         stmt, to get in sync with glibc.
51689
51690 2001-08-03  Paul Eggert  <eggert@twinsun.com>
51691
51692         The following changes are from gettext 0.10.39 as maintained by
51693         Bruno Haible.
51694
51695         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
51696         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
51697         with inverted sense.  All uses changed.
51698
51699         * lib/mbswidth.c: Don't include <limits.h>.
51700         Include <stdlib.h> and <string.h> unconditionally.
51701         (iswcntrl, mbsinit, ISCNTRL): New macros.
51702         (mbsnwidth): Use K&R style function declarations.
51703         Don't bother checking for MB_LEN_MAX == 1, since the compiler
51704         can optimize it when MB_CUR_MAX == 1.
51705         The width of control characters is zero, not 1.
51706
51707 2001-08-03  Paul Eggert  <eggert@twinsun.com>
51708
51709         The following changes are from gettext 0.10.39 as maintained by
51710         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
51711
51712         * m4/codeset.m4: Upgrade to serial AM1.
51713         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
51714         all uses changed.  Quote first arg of AC_DEFUN.
51715         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
51716
51717         * m4/iconv.m4: Upgrade to serial AM2.
51718         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
51719         Add --with-libconv-prefix.
51720         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
51721         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
51722         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
51723         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
51724         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
51725
51726         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
51727         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
51728         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
51729         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
51730         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
51731         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
51732         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
51733         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
51734         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
51735
51736         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
51737         string.h any more.
51738
51739         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
51740         not the default value.
51741
51742         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
51743         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
51744         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
51745         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
51746         Also check for iswcntrl, used for wcwidth fallback.
51747         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
51748         to Autoconf 2.13.
51749
51750 2001-08-03  Jim Meyering  <meyering@lucent.com>
51751
51752         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
51753         as it was in the original.  Reported by Paul Eggert.
51754
51755 2001-07-16  Jim Meyering  <meyering@lucent.com>
51756
51757         * m4/gettimeofday.m4: New file.
51758         Prompted by a report from Bernhard Baehr.
51759
51760 2001-07-15  Jim Meyering  <meyering@lucent.com>
51761
51762         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
51763         stuff. Now it's in ../Makefile.cfg.
51764
51765 2001-07-15  Jim Meyering  <meyering@lucent.com>
51766
51767         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
51768         (BUILT_SOURCES): Add unlocked-io.h.
51769         (io_functions): Define.
51770         (unlocked-io.h): New rule.
51771         (DISTCLEANFILES): Add unlocked-io.h.
51772         (all-local): Depend on unlocked-io.h, to ensure it is created.
51773
51774         * lib/unlocked-io.hin: New file
51775
51776         * lib/regex.c: Update from glibc.
51777
51778 2001-07-05  Jim Meyering  <meyering@lucent.com>
51779
51780         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
51781         recommendation.
51782         (libfetish_a_SOURCES): Put all .h files here instead.
51783         Remove a thus-exposed (better checks in automake) duplicate and
51784         two unnecessary .h files.
51785
51786 2001-07-04  Jim Meyering  <meyering@lucent.com>
51787
51788         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
51789         that generates jm-glibc-io.m4 so that it doesn't trigger any make
51790         distcheck failure.
51791
51792 2001-07-02  Jim Meyering  <meyering@lucent.com>
51793
51794         The following changes were prompted by suggestions from Bruno Haible.
51795
51796         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
51797         is now generated.
51798         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
51799         definition of EXTRA_DIST.
51800         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
51801         ensure that the generated file is created/updated whenever the list
51802         of $(unlocked_functions) is changed.
51803         (jm-glibc-io.m4): New rule.
51804         (unlocked-io.h): New rule -- currently unused.
51805
51806 2001-06-24  Jim Meyering  <meyering@lucent.com>
51807
51808         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
51809         unmatched right bracket, rather than kludging it with an extra,
51810         falsely-matching quote in a comment.  Patch by Akim Demaille.
51811
51812 2001-06-11  Jim Meyering  <meyering@lucent.com>
51813
51814         * lib/regex.c: Update from GNU libc.
51815
51816 2001-05-27  Jim Meyering  <meyering@lucent.com>
51817
51818         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
51819         Check for ut_type in struct utmp.
51820
51821 2001-05-27  Jim Meyering  <meyering@lucent.com>
51822
51823         * lib/readutmp.h (UT_TYPE): Define.
51824
51825 2001-05-24  Jim Meyering  <meyering@lucent.com>
51826
51827         * lib/argmatch.c: Include "quote.h".
51828         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
51829         quote function.  Reported by Göran Uddeborg.
51830
51831 2001-05-22  Jim Meyering  <meyering@lucent.com>
51832
51833         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
51834         now that we use the package-supplied version unconditionally.
51835         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
51836
51837 2001-05-21  Jim Meyering  <meyering@lucent.com>
51838
51839         * m4/regex.m4: Change a couple backticks to single quotes to avoid
51840         shell syntax errors.
51841
51842 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
51843
51844         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
51845
51846 2001-05-20  Paul Eggert  <eggert@twinsun.com>
51847
51848         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
51849         Don't bother to check library strftime, since
51850         we'll be using our own my_strftime function anyway.
51851         Define my_strftime instead of strftime.
51852
51853 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
51854
51855         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
51856         which is not yet declared.
51857
51858 2001-05-15  Jim Meyering  <meyering@lucent.com>
51859
51860         * m4/regex.m4: Use proper quoting so brackets appear in the test
51861         program.
51862         Reported by, and with help from, Bruno Haible.
51863
51864 2001-05-13  Jim Meyering  <meyering@lucent.com>
51865
51866         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
51867         undefined.
51868
51869 2001-05-11  Paul Eggert  <eggert@twinsun.com>
51870
51871         dirname code cleanup.  base_name now behaves more compatibly
51872         with POSIX basename when given file names that have trailing
51873         slashes, and similarly for dir_name.  Add new primitives
51874         base_len and dir_len.  Put the directory-name-related decls
51875         into dirname.h.
51876
51877         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
51878         * lib/backupfile.c (base_name): Likewise.
51879         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
51880         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
51881         * lib/makepath.c (strip_trailing_slashes): Likewise.
51882         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
51883         ISSLASH): Likewise.
51884         * lib/rename.c (strip_trailing_slashes): Likewise.
51885         * lib/same.c (base_name): Likewise.
51886         * lib/stripslash.c (ISSLASH): Likewise.
51887
51888         * lib/addext.c: Include <dirname.h> after size_t is defined.
51889         * lib/backupfile.c: Likewise.
51890
51891         * lib/addext.c (addext): Use base_len to trim redundant
51892         trailing slashes instead of doing it ourselves.
51893         But do not trim the last slash if it is not redundant.
51894
51895         * lib/backupfile.c (find_backup_file_name,
51896         max_backup_version): Use base_len instead of rolling it ourselves.
51897         Handle the case of "" and (on DOS) "C:" correctly.
51898
51899         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
51900         needed. Include <string.h>, <dirname.h>.
51901         (base_name): Allow file names ending in slashes, other than names
51902         that are all slashes.  In this case, return the basename followed
51903         by the slashes.  This is more general, and can be used in places
51904         where the original base_name purposely had an assertion failure.
51905         (base_len): New function.
51906
51907         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
51908         Do not include <assert.h>; no longer needed.
51909         Include xalloc.h.
51910         (memrchr): Remove decl.
51911         (dir_name_r): Remove.
51912         (dir_len): Renamed from dirlen.  All callers changed.
51913         Rewrite in terms of base_name, for simplicity and consistency.
51914         (dir_name): Never return NULL.  All callers changed.
51915         Do not include <stdlib.h> in test program; no longer needed.
51916         return 0; is fine for test program.
51917
51918         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
51919         New macros.
51920         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
51921
51922         * lib/path-concat.c (path_concat): Use base_len to compute
51923         base length, not strlen; this means we cannot rely on memcpy
51924         to null-terminate.
51925
51926         * lib/same.c (STREQ): Remove.
51927         (same_name): Handle the case where the basename ends in trailing '/'.
51928
51929         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
51930         a slash was stripped.  Do not strip the last slash after a
51931         file system prefix.
51932
51933 2001-05-11  Paul Eggert  <eggert@twinsun.com>
51934
51935         * lib/Makefile.am (libfetish_a_SOURCES):
51936         Add strftime.c, since we now compile it on all hosts.
51937
51938         * lib/strftime.c (my_strftime):
51939         Define to nstrftime if emacs, but only if my_strftime is not defined.
51940         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
51941         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
51942         Add one more extra argument: a nanoseconds value.
51943         All uses changed.
51944         (ns): New macro.
51945         (my_strftime function): Add %N format.
51946         (emacs_strftimeu): Renamed from emacs_strftime,
51947         with extra ut argument.
51948
51949 2001-05-09  Paul Eggert  <eggert@twinsun.com>
51950
51951         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
51952
51953 2001-04-21  Jim Meyering  <meyering@lucent.com>
51954
51955         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
51956         doesn't interfere.
51957
51958 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
51959
51960         * m4/ftruncate.m4: Check for chsize.
51961         Link with ftruncate.o unconditionally if ftruncate is missing.
51962         This was required when cross-compiling to i586-mingw32msvc.
51963
51964 2001-04-08  Jim Meyering  <meyering@lucent.com>
51965
51966         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
51967         recomputed; that's necessary when the offset spans a DST transition.
51968         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
51969
51970 2001-04-02  Jim Meyering  <meyering@lucent.com>
51971
51972         * lib/regex.h, regex.c: Update from GNU libc.
51973
51974 2001-03-24  Jim Meyering  <meyering@lucent.com>
51975
51976         * m4/jm-macros.m4: Require autoconf-2.49d.
51977
51978 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
51979
51980         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
51981
51982 2001-03-19  Paul Eggert  <eggert@twinsun.com>
51983
51984         * lib/version-etc.c (version_etc_copyright): Update to 2001.
51985
51986 2001-03-17  Jim Meyering  <meyering@lucent.com>
51987
51988         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
51989         now that the version in autoconf is equivalent.
51990         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
51991
51992         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
51993         Suggestion from Akim Demaille.
51994
51995         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
51996         (jm_PREREQ_TEMPNAME): New function.
51997
51998 2001-03-16  Paul Eggert  <eggert@twinsun.com>
51999
52000         * lib/tempname.c (uint64_t): Define to uintmax_t if
52001         not defined, and if UINT64_MAX is not defined.
52002         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
52003         Reported by John David Anglin.
52004
52005 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
52006
52007         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
52008         resolve alias if codeset is empty.
52009         * lib/config.charset (BeOS): Use wildcard syntax.
52010
52011 2001-03-13  Jim Meyering  <meyering@lucent.com>
52012
52013         * lib/path-concat.c (path_concat)
52014         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
52015         concatenating e.g., `C:' and `foo'.
52016         From Bruno Haible.
52017
52018 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
52019
52020         * lib/localcharset.c (locale_charset): Don't use
52021         setlocale(LC_CTYPE,NULL). Don't return NULL.
52022         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
52023
52024 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
52025
52026         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
52027         support for DOS/DJGPP.
52028
52029 2001-03-01  Paul Eggert  <eggert@twinsun.com>
52030
52031         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
52032         lacks mkstemp.  Compile our own tempname.c if we compile our own
52033         mkstemp.c, as mkstemp relies on tempname.
52034
52035 2001-03-01  Jim Meyering  <meyering@lucent.com>
52036
52037         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
52038         AH_VERBATIM really does output its argument verbatim.
52039
52040 2001-02-28  Paul Eggert  <eggert@twinsun.com>
52041
52042         * lib/Makefile.am (libfetish_a_SOURCES):
52043         Add dup-safer.c, fopen-safer.c.
52044         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
52045
52046         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
52047         * lib/unistd-safer.h: New files.
52048
52049 2001-02-25  Paul Eggert  <eggert@twinsun.com>
52050
52051         The mkstemp replacement is taken from glibc 2.2.2, with some
52052         portability fixes for use outside glibc, as follows:
52053
52054         * lib/tempname.c (struct_stat64): New macro.
52055         (direxists, __gen_tempname): Use it.
52056         This avoids a portability problem with Solaris 8.
52057
52058         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
52059         (<stddef.h>, <stdint.h>, <string.h>):
52060         Include only if STDC_HEADERS || _LIBC.
52061         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
52062         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
52063         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
52064         (__set_errno): Define this macro if <errno.h> doesn't.
52065         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
52066         Define these macros if <stdio.h> doesn't.
52067         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
52068         Define these macros if <sys/stat.h>
52069         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
52070         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
52071         __xstat64): Define if not _LIBC.
52072         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
52073         (__gen_tempname): Invoke gettimeofday only if
52074         HAVE_GETTIMEOFDAY || _LIBC;
52075         otherwise, fall back on plain "time".
52076         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
52077
52078         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
52079
52080         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
52081
52082 2001-02-18  Paul Eggert  <eggert@twinsun.com>
52083
52084         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
52085
52086 2001-02-17  Paul Eggert  <eggert@twinsun.com>
52087
52088         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
52089         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
52090         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
52091         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
52092
52093 2001-02-17  Paul Eggert  <eggert@twinsun.com>
52094
52095         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
52096         Remove workaround macros for hosts that have mbrtowc but not
52097         mbstate_t, as we now insist on proper declarations for both
52098         before using mbrtowc.
52099
52100 2001-02-17  Jim Meyering  <meyering@lucent.com>
52101
52102         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
52103         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
52104         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
52105         UnixWare 7.1.1.
52106
52107         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
52108         rather than AC_CACHE_VAL.
52109
52110 2001-02-17  Jim Meyering  <meyering@lucent.com>
52111
52112         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
52113         around included file name.
52114
52115         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
52116
52117         * lib/strftime.c: Update from GNU libc (the only changes were to
52118         comments).
52119
52120 2001-02-17  Jim Meyering  <meyering@lucent.com>
52121
52122         * lib/regex.c: Update from libc.
52123
52124 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
52125
52126         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
52127         clash.
52128
52129 2001-02-16  Paul Eggert  <eggert@twinsun.com>
52130
52131         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
52132         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
52133         Reported by Mark Hounschell via Paul Eggert.
52134
52135 2001-02-07  Jim Meyering  <meyering@lucent.com>
52136
52137         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
52138
52139 2001-02-05  Jim Meyering  <meyering@lucent.com>
52140
52141         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
52142         it includes the patch required for `large file' support with at least
52143         HP-UX's 10.20 /bin/cc.
52144
52145 2001-02-03  Jim Meyering  <meyering@lucent.com>
52146
52147         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
52148         AS_IF, now that it works once again (mysteriously).
52149         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
52150
52151 2001-01-30  Jim Meyering  <meyering@lucent.com>
52152
52153         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
52154         * m4/chown.m4: Rename conftestchown to conftest.chown.
52155         * m4/rename.m4: s/conftestdir/conftest.d1/ and
52156         s/conftestdir2/conftest.d2/.
52157         * m4/utimes.m4: s/conftestdata/conftest.data/
52158         Inspired by Pavel Roskin's change in autoconf.
52159
52160 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
52161
52162         * lib/config.charset: Update for FreeBSD 4.2.
52163
52164 2001-01-27  Jim Meyering  <meyering@lucent.com>
52165
52166         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
52167         a use of AS_IF.
52168         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
52169
52170 2001-01-26  Jim Meyering  <meyering@lucent.com>
52171
52172         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
52173         quotearg.c includes it.
52174
52175 2001-01-26  Jim Meyering  <meyering@lucent.com>
52176
52177         * lib/quotearg.c: Include stddef.h.
52178         * lib/quote.c: Include stddef.h.
52179         Reported by Axel Kittenberger.
52180
52181         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
52182         line in double quotes so that it evokes a better diagnostic.
52183         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
52184         Reported by Axel Kittenberger.
52185
52186 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
52187
52188         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
52189         as if it was a `charset'.
52190
52191 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
52192
52193         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
52194         has const.
52195
52196 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
52197
52198         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
52199         to avoid a warning.  Add back 'const' to inptr.
52200
52201 2001-01-20  Jim Meyering  <meyering@lucent.com>
52202
52203         Be sure that headers are checked before used in code compiled
52204         for the type checks.
52205         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
52206         In place of that, invoke jm_CHECK_ALL_TYPES.
52207         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
52208         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
52209         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
52210         The check for ssize_t was mistakenly run before the test for unistd.h.
52211
52212         The configure-time check for stdbool.h was missing.
52213         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
52214         (jm_PREREQ_HASH): New function.
52215
52216 2001-01-17  Jim Meyering  <meyering@lucent.com>
52217
52218         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
52219         for autoconf-2.49c.
52220         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
52221
52222 2001-01-16  Jim Meyering  <meyering@lucent.com>
52223
52224         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
52225         From Bruno Haible.
52226
52227 2001-01-14  Jim Meyering  <meyering@lucent.com>
52228
52229         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
52230         foo and bar.  Create conftestdir/ in the script, not in the C code.
52231         Remove directories in the script, not in the C code.
52232         Remove conftestdir{,2} before trying to create the directory.
52233         Make the entire configure script fail if the mkdir fails.
52234
52235 2001-01-14  Jim Meyering  <meyering@lucent.com>
52236
52237         * lib/rename.c: New file.  From Volker Borchert.
52238         Include stdlib.h, string.h or strings.h, and xalloc.h.
52239         Use strip_trailing_slashes rather than open-coding it.
52240
52241 2001-01-03  Paul Eggert  <eggert@twinsun.com>
52242
52243         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
52244
52245 2001-01-03  Jim Meyering  <meyering@lucent.com>
52246
52247         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
52248         of local `inptr' to avoid warning with some system declarations of
52249         iconv.
52250
52251 2001-01-02  Volker Borchert  <bt@teknon.de>
52252
52253         * m4/rename.m4: New file.
52254         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
52255
52256 2001-01-01  Jim Meyering  <meyering@lucent.com>
52257
52258         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
52259         even on systems with utmpx.h.  It's necessary for the declaration of
52260         utmp's ut_user member.  Reported by Andreas Jaeger.
52261
52262         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
52263         available. They are required for the declarations of getgrgid and
52264         getpwuid resp.
52265         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
52266         Reported by Andreas Jaeger.
52267
52268 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
52269
52270         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
52271         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
52272         so `make install' also works in VPATH builds.
52273
52274 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
52275
52276         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
52277         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
52278         can be used in subdirectories.
52279
52280 2000-12-29  Paul Eggert  <eggert@twinsun.com>
52281
52282         * lib/modechange.c: Do not assume that mode_t uses the
52283         traditional octal encoding.  E.g. "chmod 1 FOO" should set
52284         the other-execute bit of FOO even if S_IXOTH != 1.
52285
52286         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
52287         WOTH, XOTH, ALLM): New macros.
52288         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
52289          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
52290         Use them.
52291         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
52292         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
52293         (mode_compile):
52294         No need to use uintmax_t; unsigned long is long enough.
52295         Don't bother to get suffix since we don't use it.
52296
52297 2000-12-26  Jim Meyering  <meyering@lucent.com>
52298
52299         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
52300         better with autoheader.
52301
52302 2000-12-24  Jim Meyering  <meyering@lucent.com>
52303
52304         * lib/hash.c (is_prime): Return explicit boolean values.
52305         (hash_get_first): Return NULL to appease Irix5.6's 89.
52306         Reported by Nelson Beebe.
52307
52308 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
52309
52310         * lib/localcharset.c (locale_charset): Add support for Win32.
52311
52312 2000-12-18  Paul Eggert  <eggert@twinsun.com>
52313
52314         * lib/physmem.h, lib/physmem.c: New files.
52315
52316         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
52317         (noinst_HEADERS): Add physmem.h.
52318
52319         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
52320         't' for compatibility with Solaris 8 sort.
52321
52322 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
52323
52324         * lib/config.charset: Add support for BeOS.
52325
52326 2000-12-17  Jim Meyering  <meyering@lucent.com>
52327
52328         * m4/dos.m4 (jm_AC_DOS): New file and macro.
52329         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
52330
52331 2000-12-16  Jim Meyering  <meyering@lucent.com>
52332
52333         This bug had a serious impact on chown: `chown N:M FILE' (for integer
52334         N and M) would have treated it like `chown N:N FILE'.
52335
52336         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
52337
52338 2000-12-16  Jim Meyering  <meyering@lucent.com>
52339
52340         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
52341         SHELLS_FILE to a file name that's useful on djgpp systems.
52342         Include stdlib.h.
52343         (ADDITIONAL_DEFAULT_SHELLS): Define.
52344         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
52345         Based mostly on a patch from Prashant TR.
52346
52347 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
52348
52349         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
52350         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
52351         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
52352
52353 2000-12-08  Andreas Schwab  <schwab@suse.de>
52354
52355         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
52356         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
52357
52358 2000-12-07  Jim Meyering  <meyering@lucent.com>
52359
52360         * lib/stripslash.c (ISSLASH): Define.
52361         (strip_trailing_slashes): Use ISSLASH rather than comparing against
52362         `/'.
52363         From Prashant TR.
52364
52365         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
52366         (dir_name_r): Declare this function as static.
52367         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
52368         manifest itself on a name containing a mix of slashes and
52369         backslashes.
52370         Make this function work with names starting with a DOS-style
52371         drive letter and colon prefix.
52372         (dir_name): Append `.' if necessary.
52373         Based mostly on patches from Prashant TR and Eli Zaretskii.
52374
52375         * lib/dirname.h (dir_name_r): Remove prototype.
52376
52377 2000-12-06  Paul Eggert  <eggert@twinsun.com>
52378
52379         * m4/off_t-format.m4: Remove this file.
52380         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
52381
52382 2000-12-06  Jim Meyering  <meyering@lucent.com>
52383
52384         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
52385         replacement strtoull, we may well need the replacement strtoul, too.
52386         Check for declarations of strtoul and strtoull.
52387         Check for strtol.  Mainly as a cue to cause automake to include
52388         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
52389         Check for limits.h -- strtol.c needs it.
52390
52391 2000-12-05  Jim Meyering  <meyering@lucent.com>
52392
52393         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
52394
52395 2000-12-04  Jim Meyering  <meyering@lucent.com>
52396
52397         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
52398         Also include memory.h, stdlib.h, unistd.h if appropriate.
52399         Reported by Andreas Jaeger (conflicting declaration of malloc).
52400
52401 2000-12-02  Jim Meyering  <meyering@lucent.com>
52402
52403         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
52404         * m4/jm-macros.m4 (jm_MACROS): require it.
52405
52406 2000-12-02  Jim Meyering  <meyering@lucent.com>
52407
52408         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
52409
52410 2000-12-01  Paul Eggert  <eggert@twinsun.com>
52411
52412         * lib/memrchr.c: Include <config.h> before any system include file.
52413
52414 2000-11-30  Jim Meyering  <meyering@lucent.com>
52415
52416         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
52417
52418 2000-11-30  Jim Meyering  <meyering@lucent.com>
52419
52420         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
52421
52422 2000-11-29  Paul Eggert  <eggert@twinsun.com>
52423
52424         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
52425
52426 2000-11-26  Jim Meyering  <meyering@lucent.com>
52427
52428         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
52429
52430 2000-11-22  Paul Eggert  <eggert@twinsun.com>
52431
52432         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
52433         size of (size_t) -1; it's not portable.
52434
52435 2000-11-17  Jim Meyering  <meyering@lucent.com>
52436
52437         * lib/strstr.c: Update from GNU libc.
52438
52439 2000-11-17  Akim Demaille  <akim@epita.fr>
52440
52441         * lib/obstack.h: Formatting changes.
52442         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
52443         prevent type checking.
52444         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
52445         cast the value to (void *): assigning a `foo *' to a `void *'
52446         variable is valid.
52447         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
52448
52449 2000-11-16  Jim Meyering  <meyering@lucent.com>
52450
52451         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
52452
52453 2000-11-11  Jim Meyering  <meyering@lucent.com>
52454
52455         * lib/error.c: Add a couple #includes, merging from GNU libc version.
52456
52457 2000-11-10  Jim Meyering  <meyering@lucent.com>
52458
52459         * lib/obstack.h: Update from GNU libc.
52460         * lib/obstack.c: Likewise.
52461
52462 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
52463
52464         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
52465
52466 2000-11-06  Paul Eggert  <eggert@twinsun.com>
52467
52468         * lib/getusershell.c (setusershell): Use rewind rather than
52469         fseek/fseeko, to avoid configuration hassles with fseeko.
52470         Don't bother opening SHELLS_FILE if shellstream is NULL;
52471         it's not necessary.
52472
52473 2000-11-05  Jim Meyering  <meyering@lucent.com>
52474
52475         * lib/makepath.h (make_dir): Declare.
52476         * lib/makepath.c (make_dir): Remove `static' attribute.
52477         Tweak a comment.
52478
52479 2000-11-04  Jim Meyering  <meyering@lucent.com>
52480
52481         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
52482
52483 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
52484
52485         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
52486         last one in a bucket, advance to the next bucket.
52487
52488 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
52489
52490         * lib/fnmatch.c: Do not comment out all the code if we are using
52491         the GNU C library, because in some cases we are replacing buggy
52492         code in the GNU C library itself.
52493
52494 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
52495
52496         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
52497         (regex_compile): Catch bogus \(\1\).
52498
52499 2000-10-30  Paul Eggert  <eggert@twinsun.com>
52500
52501         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
52502         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
52503         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
52504
52505 2000-10-30  Paul Eggert  <eggert@twinsun.com>
52506
52507         * lib/error.h, getline.h, modechange.h:
52508         Remove "2000" from Copyright line, as the file hasn't been
52509         changed this year other than in the copyright notice.
52510
52511         * lib/xalloc.h: Add "2000" to Copyright line, as this file
52512         was changed this year.
52513
52514 2000-10-29  Jim Meyering  <meyering@lucent.com>
52515
52516         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
52517         renaming.
52518         * m4/ls-mntd-fs.m4: Likewise
52519
52520 2000-10-29  Jim Meyering  <meyering@lucent.com>
52521
52522         * lib/xstat.in: Fix grammar in comment.
52523
52524 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
52525
52526         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
52527         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
52528         doesn't define __restrict_arr.
52529
52530 2000-10-28  Jim Meyering  <meyering@lucent.com>
52531
52532         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
52533         (jm_PREREQ_MEMCHR): New function.
52534
52535 2000-10-28  Jim Meyering  <meyering@lucent.com>
52536
52537         * lib/memchr.c: Update from libc.
52538         Adjust for portability:
52539         [HAVE_STDLIB_H]: Include stdlib.h.
52540         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
52541         Undef __memchr, too.
52542         [!weak_alias]: Define __memchr to memchr.
52543
52544         * lib/regex.c: Update from libc.
52545         * lib/regex.h: Likewise.
52546         * lib/getopt1.c: Likewise.
52547         * lib/memcmp.c: Likewise.
52548
52549         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
52550         Avoid using fseek, when possible -- it's broken by design.
52551         Patch by Ulrich Drepper.
52552
52553 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
52554
52555         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
52556         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
52557         Giving in to popular pressure to shut up the compiler with casts.
52558
52559 2000-10-26  Jim Meyering  <meyering@lucent.com>
52560
52561         * lib/strftime.c: Update from libc.
52562
52563 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
52564
52565         * regex.c: More `unsigned char' -> `re_char' changes.
52566         Also change several `int' into `re_wchar_t'.
52567         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
52568         (PUSH_FAILURE_POINTER): Don't cast any more.
52569         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
52570         We want GCC to complain, since this piece of code makes
52571         re_match non-reentrant, which *should* be fixed.
52572         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
52573         (EXTEND_BUFFER): Use RETALLOC.
52574         (SET_LIST_BIT): Don't cast.
52575         (re_wchar_t): New type.
52576         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
52577         that those two functions will always properly return.
52578         (IMMEDIATE_QUIT_CHECK): Cast to void.
52579         (analyse_first): Use recursion rather than an explicit stack.
52580         (re_compile_fastmap): Can't fail anymore.
52581         (re_search_2): Don't check re_compile_fastmap for failure.
52582         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
52583         Now also sets the new value (passed in a new argument).
52584         (re_match_2_internal): Use it.
52585         Also, use a new var `reg' of type size_t when looping through regs
52586         rather than reuse the inappropriate `mcnt'.
52587
52588 2000-10-25  Jim Meyering  <meyering@lucent.com>
52589
52590         * lib/obstack.c: Update from libc.
52591
52592 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
52593
52594         * regex.c (regex_compile): Change the way of handling a range from
52595         a char less than 256 to a char not less than 256.
52596
52597 2000-10-24  Andrew Innes  <andrewi@gnu.org>
52598
52599         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
52600         NT-Emacs only.
52601         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
52602         so that re_search functions only quit when callers expect them to.
52603
52604 2000-10-23  Jim Meyering  <meyering@lucent.com>
52605
52606         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
52607         wrong.  That set_locale call must not have any side effects.
52608         From Paul Eggert.
52609
52610 2000-10-22  Jim Meyering  <meyering@lucent.com>
52611
52612         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
52613         [CYCLIC]: Remove now-unused definition.
52614
52615         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
52616         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
52617         Suggestion from Ulrich Drepper.
52618
52619 2000-10-21  Jim Meyering  <meyering@lucent.com>
52620
52621         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
52622         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
52623         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
52624
52625 2000-10-21  Jim Meyering  <meyering@lucent.com>
52626
52627         * lib/dirname.c (memrchr): Declare if necessary.
52628         (dir_name): Remove the restriction that there be no
52629         trailing slashes.  Now, this code skips past them, effectively
52630         ignoring them.
52631         [TEST_DIRNAME] (main): New unit tests.
52632
52633         * lib/memrchr.c: New file from GNU libc.
52634         Undef __memrchr, too.
52635         [!weak_alias]: Define __memrchr to memrchr.
52636         Guard weak_alias use with `#ifdef weak_alias'.
52637
52638 2000-10-21  Jim Meyering  <meyering@lucent.com>
52639
52640         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
52641         (dir_name): Use dir_name_r.
52642         * lib/dirname.h (dir_name_r): Declare it.
52643
52644 2000-10-17  Jim Meyering  <meyering@lucent.com>
52645
52646         * lib/quote.h (PARAMS): Define and use.
52647         Reported by Akim Demaille.
52648
52649         * lib/getopt.c: Update from libc.
52650
52651 2000-10-16  Jim Meyering  <meyering@lucent.com>
52652
52653         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
52654         setlocale.
52655         From Jan Fedak.
52656
52657 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
52658
52659         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
52660
52661 2000-09-25  Jim Meyering  <meyering@lucent.com>
52662
52663         * lib/md5.h (rol): Define (from GnuPG).
52664
52665         * lib/sha.c: Give credit (GnuPG) where due.
52666         (M): Use rol rather than open-coding it.
52667         Add a FIXME comment.
52668
52669 2000-09-21  Jim Meyering  <meyering@lucent.com>
52670
52671         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
52672         Reported by Michael Stone.
52673
52674 2000-09-20  Jim Meyering  <meyering@lucent.com>
52675
52676         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
52677         (noinst_HEADERS): Add sha.h.
52678         Based on code from Scott G. Miller and from GnuPG.
52679
52680 2000-09-18  Jim Meyering  <meyering@lucent.com>
52681
52682         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
52683         LIBS. Otherwise, everyone ends up linking with -lelf for some
52684         configurations.
52685         Reported by Mike Stone.
52686
52687 2000-09-15  Jim Meyering  <meyering@lucent.com>
52688
52689         * lib/regex.c: Update from libc.
52690
52691 2000-09-10  Jim Meyering  <meyering@lucent.com>
52692
52693         * lib/getopt.c (_getopt_internal): Update from glibc.
52694
52695 2000-09-09  Jim Meyering  <meyering@lucent.com>
52696
52697         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
52698         think it should be used as a general replacement for isascii.
52699         * lib/fnmatch.c: Likewise.
52700         * lib/mbswidth.c: Likewise
52701         * lib/regex.c: Likewise.
52702
52703         Don't use atoi.
52704         * lib/userspec.c: Include sys/param.h and limits.h.
52705         Include xstrtol.h.
52706         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
52707         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
52708         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
52709         UID, GID.  Check range.
52710
52711 2000-09-06  Jim Meyering  <meyering@lucent.com>
52712
52713         * lib/getopt.c (_getopt_internal): Update from glibc.
52714
52715 2000-08-30  Jim Meyering  <meyering@lucent.com>
52716
52717         * lib/strftime.c: Merge in changes from GNU libc.
52718
52719 2000-08-26  Jim Meyering  <meyering@lucent.com>
52720
52721         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
52722         * m4/fpending.m4: New file.
52723
52724 2000-08-26  Jim Meyering  <meyering@lucent.com>
52725
52726         * lib/closeout.c: Include "__fpending.h".
52727         (close_stdout_status): Return right away if there's nothing to flush.
52728
52729         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
52730         * lib/__fpending.c: New file.
52731         * lib/__fpending.h: New file.
52732
52733 2000-08-20  Jim Meyering  <meyering@lucent.com>
52734
52735         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
52736         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
52737         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
52738
52739 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
52740
52741         Improve fileutils installation on systems where running
52742         programs (like install) can't be unlinked.
52743         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
52744         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
52745
52746 2000-08-07  Paul Eggert  <eggert@twinsun.com>
52747
52748         Standardize on "memory exhausted" instead of "Memory exhausted"
52749         or "virtual memory exhausted".
52750         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
52751         "virtual memory exhausted".
52752         * lib/same.c (same_name): Invoke xalloc_die instead of printing
52753         our own message.
52754         * lib/userspec.c (parse_user_spec): Likewise.
52755         * lib/bumpalloc.h: comment fix
52756         * lib/same.c, userspec.c: Include xalloc.h.
52757
52758         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
52759         not char *const and pointing to a constant array.
52760         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
52761         (xrealloc): Comment fix.
52762
52763         * lib/userspec.c (parse_user_spec):
52764         Don't translate a message until just before returning,
52765         to avoid unnecessary translation.
52766
52767 2000-08-07  Jim Meyering  <meyering@lucent.com>
52768
52769         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
52770         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
52771         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
52772         getgroups.c, gethostname.c, getopt.h, group-member.c,
52773         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
52774         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
52775         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
52776         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
52777         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
52778         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
52779         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
52780         yesno.c: Back out Copyright date changes for each file with no change
52781         this year.  This eases coordination with other programs using the same
52782         source code modules.  From Paul Eggert.
52783
52784 2000-08-06  Paul Eggert  <eggert@twinsun.com>
52785
52786         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
52787         not char, for compatibility with glibc 2.1.3 strftime.c.
52788
52789 2000-08-03  Greg McGary  <greg@mcgary.org>
52790
52791         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
52792         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
52793         (EXTEND_BUFFER): Use them.
52794
52795 2000-08-01  Jim Meyering  <meyering@lucent.com>
52796
52797         * lib/dirname.c (ISSLASH): Define.
52798         (BACKSLASH_IS_PATH_SEPARATOR): Define.
52799         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
52800         both `\' and `/' may be use as path separators.
52801         Based on a patch from Prashant TR.
52802
52803 2000-07-31  Paul Eggert  <eggert@twinsun.com>
52804
52805         * lib/quotearg.c (quotearg_n_options): Don't make the initial
52806         slot vector a constant, since it might get modified.
52807
52808 2000-07-31  Jim Meyering  <meyering@lucent.com>
52809
52810         * lib/xmalloc.c: Use `virtual memory exhausted', not
52811         `Memory exhausted'.
52812         * lib/obstack.c (print_and_abort): Likewise.
52813
52814 2000-07-30  Paul Eggert  <eggert@twinsun.com>
52815
52816         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
52817         buffer, so that the caller can always quote one small
52818         component of a "memory exhausted" message in slot 0.
52819         From a suggestion by Jim Meyering.
52820
52821 2000-07-30  Jim Meyering  <meyering@lucent.com>
52822
52823         * lib/makepath.c (make_path): Quote the other instance, too.
52824
52825         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
52826         (STATIC_BUF_SIZE): Define.
52827         (quotearg_n_options): Use only statically allocated storage when
52828         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
52829         than STATIC_BUF_SIZE.
52830
52831 2000-07-29  Jim Meyering  <meyering@lucent.com>
52832
52833         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
52834         * lib/dirname.c (dir_name): Likewise.
52835
52836         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
52837         `/'.
52838
52839         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
52840         (dir_name): Assert that there are no trailing slashes.
52841
52842 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
52843
52844         * lib/mbswidth.h (mbswidth): Add a flags argument.
52845         (mbswidth): New declaration.
52846         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
52847         * lib/mbswidth.c (mbswidth): Add a flags argument.
52848         (mbsnwidth): New function.
52849
52850 2000-07-24  Jim Meyering  <meyering@lucent.com>
52851
52852         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
52853
52854 2000-07-23  Paul Eggert  <eggert@twinsun.com>
52855
52856         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
52857
52858 2000-07-23  Paul Eggert  <eggert@twinsun.com>
52859
52860         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
52861         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
52862         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
52863         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
52864         invoke multibyte primitives.
52865
52866 2000-07-23  Paul Eggert  <eggert@twinsun.com>
52867
52868         * lib/quotearg.c:
52869         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
52870         so that mbstate_t is always defined.
52871
52872         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
52873         be 1 in at least one GCC installation, and this configuration
52874         error is likely to be common.  Ignoring MB_LEN_MAX hurts
52875         performance on hosts that have mbrtowc but have only unibyte
52876         locales, but I assume these hosts are rare.
52877
52878 2000-07-23  Paul Eggert  <eggert@twinsun.com>
52879
52880         * lib/mbswidth.c (_XOPEN_SOURCE):
52881         Don't define; this causes problems on Solaris 7.
52882         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
52883
52884 2000-07-23  Jim Meyering  <meyering@lucent.com>
52885
52886         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
52887         too: getgrgid, getpwuid, getuid.
52888
52889 2000-07-23  Jim Meyering  <meyering@lucent.com>
52890
52891         * lib/basename.c (base_name): Add an assertion.
52892
52893 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
52894
52895         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
52896         shadow its mbsinit function.
52897
52898 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
52899
52900         * lib/mbswidth.h: New file.
52901         * lib/mbswidth.c: New file.
52902         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
52903         (noinst_HEADERS): Add mbswidth.h.
52904
52905 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
52906
52907         * lib/config.charset: Add support for FreeBSD. Improve support for
52908         HP-UX and IRIX 6.
52909
52910 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
52911
52912         * m4/mbswidth.m4: New file.
52913         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
52914
52915 2000-07-15  Jim Meyering  <meyering@lucent.com>
52916
52917         * lib/makepath.c: Include quote.h.
52918         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
52919         corresponding argument in a `quote (...)' call.
52920         Give better diagnostics.
52921
52922         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
52923         (noinst_HEADERS): Add quote.h.
52924
52925         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
52926         from tar's src/misc.c.
52927         * lib/quote.h: New file.  Prototypes for same.
52928
52929 2000-07-14  Paul Eggert  <eggert@twinsun.com>
52930
52931         From a suggestion by Bruno Haible.
52932         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
52933         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
52934         to decide whether to define the BeOS workaround macro;
52935         this adjusts to the change to AC_MBSTATE_T.
52936
52937 2000-07-14  Jim Meyering  <meyering@lucent.com>
52938
52939         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
52940         jm_AC_TYPE_UINTMAX_T.
52941
52942 2000-07-13  Paul Eggert  <eggert@twinsun.com>
52943
52944         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
52945
52946         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
52947         quotearg_buffer_restyled): Add support for
52948         clocale_quoting_style.  Undo previous change to
52949         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
52950         and "{RIGHT QUOTATION MARK}" msgids.
52951
52952 2000-07-10  Paul Eggert  <eggert@twinsun.com>
52953
52954         From a suggestion by Bruno Haible.
52955         * m4/mbstate_t.m4 (AC_MBSTATE_T):
52956         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
52957         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
52958         and mbstate_t, to a single-part test that simply defines mbstate_t.
52959         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
52960         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
52961
52962 2000-07-10  Jim Meyering  <meyering@lucent.com>
52963
52964         * m4/strerror_r.m4: Mirror the correction made in autoconf.
52965
52966         * m4/gnu-source.m4: Output to confdefs.h directly.
52967         Suggestion from Akim Demaille.
52968
52969 2000-07-09  Paul Eggert  <eggert@twinsun.com>
52970
52971         The old behavior of quoting `like this' doesn't look good with
52972         newer, ISO-style fonts.  See:
52973         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
52974
52975         Instead, quote "like this" by default.  Let the translator
52976         tailor the locale-specific quoting behavior by providing
52977         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
52978
52979         * lib/quotearg.c (N_): New macro.
52980         (gettext_default): New function.
52981         (quotearg_buffer_restyled): Use
52982         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
52983         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
52984
52985 2000-07-09  Jim Meyering  <meyering@lucent.com>
52986
52987         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
52988         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
52989
52990         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
52991         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
52992
52993 2000-07-09  Jim Meyering  <meyering@lucent.com>
52994
52995         * lib/Most files: Update copyright dates to include 2000.
52996
52997 2000-07-08  Jim Meyering  <meyering@lucent.com>
52998
52999         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
53000         if not defined.
53001         (xgethostname): Remove now-unnecessary #ifdef.
53002         Move declaration of `err' into loop where it's used.
53003
53004 2000-07-05  Paul Eggert  <eggert@twinsun.com>
53005         and Bruno Haible  <haible@clisp.cons.org>
53006
53007         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
53008         only if the test for an object-type mbstate_t fails.  This
53009         prevents us from mistakenly reporting that mbstate_t is a
53010         system object type after we "#define mbstate_t int" to work
53011         around its lack.
53012
53013 2000-07-05  Paul Eggert  <eggert@twinsun.com>
53014         and Bruno Haible  <haible@clisp.cons.org>
53015
53016         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
53017
53018 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
53019
53020         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
53021         to strerror_r.
53022         Include <ctype.h> for use of isalpha.
53023
53024 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
53025
53026         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
53027         by allocating a larger buffer. Test the gethostname return value for
53028         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
53029         returns an error and ENAMETOOLONG isn't defined.
53030
53031 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
53032
53033         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
53034         dimension.
53035
53036 2000-07-04  Jim Meyering  <meyering@lucent.com>
53037
53038         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
53039         of the deprecated AC_CHECKING.
53040
53041 2000-07-04  Jim Meyering  <meyering@lucent.com>
53042
53043         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
53044         Reported by Bruno Haible.
53045
53046 2000-07-04  Jim Meyering  <meyering@lucent.com>
53047
53048         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
53049         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
53050         lacks mbrtowc.
53051
53052 2000-07-03  Paul Eggert  <eggert@twinsun.com>
53053
53054         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
53055         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
53056
53057 2000-07-03  Paul Eggert  <eggert@twinsun.com>
53058         and Bruno Haible  <haible@clisp.cons.org>
53059
53060         * lib/quotearg.c (mbrtowc):
53061         Assign to *pwc, and return 1 only if result is nonzero.
53062         (iswprint): Use ISPRINT when substituting our own mbrtowc.
53063
53064 2000-07-03  Jim Meyering  <meyering@lucent.com>
53065
53066         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
53067
53068 2000-07-03  Jim Meyering  <meyering@lucent.com>
53069
53070         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
53071         This is necessary to get a definition of e.g., UTMP_FILE on
53072         HP-UX 10.20.
53073         From Bob Proulx.
53074
53075 2000-07-02  Jim Meyering  <meyering@lucent.com>
53076
53077         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
53078
53079         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
53080         AC_LIBOBJ(function_name).
53081         * m4/chown.m4: Likewise.
53082         * m4/fnmatch.m4: Likewise.
53083         * m4/ftruncate.m4: Likewise.
53084         * m4/getgroups.m4: Likewise.
53085         * m4/getline.m4: Likewise.
53086         * m4/group-member.m4: Likewise.
53087         * m4/jm-macros.m4: Likewise.
53088         * m4/lstat.m4: Likewise.
53089         * m4/malloc.m4: Likewise.
53090         * m4/memcmp.m4: Likewise.
53091         * m4/nanosleep.m4: Likewise.
53092         * m4/putenv.m4: Likewise.
53093         * m4/realloc.m4: Likewise.
53094         * m4/regex.m4: Likewise.
53095         * m4/stat.m4: Likewise.
53096         * m4/strftime.m4: Likewise.
53097
53098 2000-07-02  Jim Meyering  <meyering@lucent.com>
53099
53100         * lib/quotearg.c (mbstate_t): Don't define here.
53101
53102 2000-07-02  Jim Meyering  <meyering@lucent.com>
53103
53104         * lib/nanosleep.c (SIGCONT): Define if not already defined.
53105
53106 2000-07-01  Jim Meyering  <meyering@lucent.com>
53107
53108         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
53109
53110 2000-07-01  Jim Meyering  <meyering@lucent.com>
53111
53112         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
53113         problem.
53114
53115 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
53116
53117         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
53118         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
53119
53120 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
53121
53122         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
53123         per change in ../m4/ls-mntd-fs.m4.
53124         (read_filesystem_list): Ignore symbolic links.
53125
53126 2000-06-29  Jim Meyering  <meyering@lucent.com>
53127
53128         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
53129         for declaration of strcmp.
53130
53131         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
53132
53133         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
53134         Avoid warning by casting result to `char *' to remove `const'.
53135
53136 2000-06-28  Jim Meyering  <meyering@lucent.com>
53137
53138         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
53139         included by quotearg.c, for which we perform this test.  From
53140         Bruno Haible.
53141
53142 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
53143
53144         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
53145         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
53146         <utmpx.h> exists, put readutmp.o into LIBOBJS.
53147
53148 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
53149
53150         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
53151
53152 2000-06-26  Paul Eggert  <eggert@twinsun.com>
53153
53154         savedir now sets errno on failure and invokes xmalloc to get memory.
53155         Fix a couple of other minor bugs while we're at it.
53156
53157         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
53158         (NAMLEN): Remove macro.
53159         (malloc, realloc): Remove decls.
53160         (stpcpy): Likewise.
53161         ("xalloc.h"): Include.
53162         (NAME_SIZE_DEFAULT): New macro.
53163         (savedir): Use xmalloc / xrealloc to allocate memory.
53164         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
53165         Skip "" directory entries.
53166         Use strlen to calculate directory entry length, since the old method
53167         is rarely used these days and isn't worth supporting.
53168         Don't use a pointer after freeing it.
53169         Check for integer overflow when calculating allocation size.
53170         Use memcpy to copy entries, instead of stpcpy.
53171         Set errno properly when returning NULL.
53172         Check for readdir error.
53173
53174 2000-06-26  Jim Meyering  <meyering@lucent.com>
53175
53176         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
53177
53178 2000-06-25  Jim Meyering  <meyering@lucent.com>
53179
53180         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
53181         Linux header bug when _XOPEN_SOURCE is defined to 500.
53182
53183 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
53184
53185         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
53186         deficiency.
53187
53188 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
53189
53190         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
53191         Include xalloc.h.
53192         Don't include <stdlib.h>.  Don't declare malloc, realloc.
53193
53194 2000-06-24  Jim Meyering  <meyering@lucent.com>
53195
53196         * m4/strerror_r.m4: Revive this file -- to try out an experimental
53197         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
53198         for which strerror does return char*, but which lacks a conveniently
53199         accessible declaration of the function.  If the compile-test says
53200         strerror_r doesn't work, then resort to a `run'-test that works on
53201         BeOS and segfaults on DEC Unix.
53202
53203 2000-06-24  Jim Meyering  <meyering@lucent.com>
53204
53205         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
53206
53207 2000-06-23  Paul Eggert  <eggert@twinsun.com>
53208
53209         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
53210         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
53211
53212 2000-06-23  Paul Eggert  <eggert@twinsun.com>
53213
53214         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
53215         (mbrtowc, mbstate_t): Define substitutes if
53216         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
53217         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
53218         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
53219
53220 2000-06-23  Jim Meyering  <meyering@lucent.com>
53221
53222         * m4/afs.m4: Add missing AC_MSG_RESULT.
53223         Reported by Bruno Haible.
53224
53225         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
53226         Suggestion from Bruno Haible.
53227
53228 2000-06-23  Jim Meyering  <meyering@lucent.com>
53229
53230         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
53231
53232 2000-06-21  Jim Meyering  <meyering@lucent.com>
53233
53234         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
53235
53236 2000-06-21  Jim Meyering  <meyering@lucent.com>
53237
53238         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
53239         (noinst_HEADERS): Add getstr.h.
53240
53241         * lib/getline.c (getstr): Move into a separate file.
53242         * lib/getstr.c (getstr): New file, extracted from getline.c, with
53243         the following changes: new parameter, delim2; both delim[12]
53244         parameters have type `int', not `char'.  The latter would lose
53245         with 8-bit delimiters.
53246         * lib/getstr.h: New file.
53247
53248 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
53249
53250         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
53251         than 1024, return a memory chunk of least possible size, instead
53252         of size PATH_MAX + 2. In the loop, increment the size proportionally.
53253         Use free/xmalloc instead of xrealloc to avoid copying for very long
53254         paths.
53255
53256 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
53257
53258         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
53259         the empty string.
53260
53261 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
53262
53263         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
53264         address, not strdup.  Include <stdlib.h> and don't declare free().
53265
53266 2000-06-19  Jim Meyering  <meyering@lucent.com>
53267
53268         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
53269
53270 2000-06-18  Jim Meyering  <meyering@lucent.com>
53271
53272         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
53273
53274         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
53275         `checking whether...' message to be consistent with that of the
53276         lstat test.
53277
53278 2000-06-18  Jim Meyering  <meyering@lucent.com>
53279
53280         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
53281         Besides, these days every porting target provides a mkdir function.
53282
53283         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
53284         needed. (this snippet comes from src/system.h).
53285
53286 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
53287
53288         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
53289
53290 2000-06-15  Paul Eggert  <eggert@twinsun.com>
53291
53292         * lib/human.c (adjust_value): New function.
53293         (human_readable_inexact): Apply rounding style even when
53294         printing approximate values.
53295
53296 2000-06-14  Paul Eggert  <eggert@twinsun.com>
53297
53298         * lib/human.c (human_readable_inexact): Allow an input block
53299         size that is not a multiple of the output block size, and vice versa.
53300         Reported by Piergiorgio Sartor.
53301
53302 2000-06-14  Paul Eggert  <eggert@twinsun.com>
53303
53304         * lib/getdate.y (get_date): Apply relative times after time
53305         zone indicator, not before.  Reported by Todd A. Jacobs.
53306
53307 2000-06-13  Jim Meyering  <meyering@lucent.com>
53308
53309         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
53310
53311         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
53312
53313 2000-06-12  Paul Eggert  <eggert@twinsun.com>
53314
53315         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
53316
53317 2000-06-12  Jim Meyering  <meyering@lucent.com>
53318
53319         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
53320         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
53321         optional argument.
53322         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
53323         the optional argument, `lib'.
53324
53325 2000-06-08  Jim Meyering  <meyering@lucent.com>
53326
53327         * m4/largefile.m4: Remove file (now that it's part of autoconf).
53328
53329 2000-06-04  Paul Eggert  <eggert@twinsun.com>
53330
53331         Rewrite largefile configuration so that we don't need to run
53332         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
53333         AC_CANONICAL_HOST in configure.in -- jmm]
53334
53335         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
53336         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
53337         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
53338         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
53339         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
53340         All uses changed.
53341         Instead of inspecting the output of getconf, try to compile the
53342         test program without and with the macro definition.
53343         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
53344         for getconf.  Instead, check for the needed flags by compiling
53345         test programs.
53346
53347 2000-06-04  Paul Eggert  <eggert@twinsun.com>
53348
53349         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
53350
53351 2000-06-04  Jim Meyering  <meyering@lucent.com>
53352
53353         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
53354         SunOS 4.1.4 for which gid_t is an unsigned type.
53355
53356 2000-06-03  Jim Meyering  <meyering@lucent.com>
53357
53358         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
53359         now that autoconf requires that.
53360
53361         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
53362         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
53363         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
53364
53365 2000-06-03  Jim Meyering  <meyering@lucent.com>
53366
53367         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
53368
53369 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
53370
53371         * m4/glibc21.m4: New file.
53372         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
53373
53374 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
53375
53376         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
53377         newer, don't install charset.alias.
53378         * lib/config.charset: Change the Linux/glibc rules so they become empty
53379         on glibc-2.1 or newer.
53380
53381 2000-06-02  Jim Meyering  <meyering@lucent.com>
53382
53383         * lib/mountlist.c: Back out last change.  Instead, do this...
53384         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
53385         me_dummy member using the same `ignore'-testing code.
53386         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
53387         fs_type strings.
53388         From Mark D. Roth.
53389
53390 2000-05-29  Jim Meyering  <meyering@lucent.com>
53391
53392         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
53393         mounts with the `ignore' attribute.  Based on a patch from
53394         Mark D. Roth.
53395
53396 2000-05-28  Jim Meyering  <meyering@lucent.com>
53397
53398         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
53399         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
53400         * m4/stat.m4: Likewise.
53401         * m4/lstat.m4: Likewise.
53402         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
53403
53404         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
53405         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
53406
53407 2000-05-26  Jim Meyering  <meyering@lucent.com>
53408
53409         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
53410
53411 2000-05-24  Jim Meyering  <meyering@lucent.com>
53412
53413         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
53414         autoconf requires that.
53415         * m4/lib-check.m4: Likewise.
53416         * m4/jm-macros.m4: Likewise.
53417         * m4/strftime.m4: Likewise.
53418
53419         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
53420         AC_CHECK_DECLS, now that autoconf requires that.
53421
53422 2000-05-22  Jim Meyering  <meyering@lucent.com>
53423
53424         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
53425         * m4/lstat.m4: Likewise.
53426
53427 2000-05-22  Jim Meyering  <meyering@lucent.com>
53428
53429         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
53430
53431 2000-05-20  Jim Meyering  <meyering@lucent.com>
53432
53433         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
53434         (jm_PREREQ): Use it.
53435
53436 2000-05-18  Jim Meyering  <meyering@lucent.com>
53437
53438         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
53439         back, too, since it may have been modified by allocate_entry.
53440         (hash_delete): Rewrite to use neither the assignment operator
53441         nor the comma operator in an if-expression.
53442
53443 2000-05-15  Paul Eggert  <eggert@twinsun.com>
53444
53445         * lib/closeout.c:
53446         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
53447         Remove; no longer needed.
53448         "quotearg.h": Add include.
53449         (file_name): Do not bother to explicitly initialize to NULL; it's less
53450         efficient on some hosts.
53451         (close_stdout_status): Remove test as to whether stdout was already
53452         closed; it breaks for the case "echo x | sort >&-".
53453         Quote file name colons.
53454         Do not assume that _("write error") lacks format strings.
53455
53456 2000-05-15  Jim Meyering  <meyering@lucent.com>
53457
53458         * lib/version-etc.c (version_etc_copyright): Update the copyright
53459         string used in all --version output.
53460
53461 2000-05-14  Jim Meyering  <meyering@lucent.com>
53462
53463         * lib/closeout.c (close_stdout_set_file_name): New function.
53464         (close_stdout_status): Use new file-scoped global.
53465         Return right away if fstat says the stdout file descriptor is invalid.
53466         * lib/closeout.h (close_stdout_set_file_name): Declare.
53467
53468 2000-05-10  Jim Meyering  <meyering@lucent.com>
53469
53470         * lib/closeout.c [default_exit_status]: New file-scoped variable.
53471         (close_stdout_set_status): New function.
53472         * lib/closeout.h (close_stdout_set_status): Declare.
53473
53474 2000-05-09  Jim Meyering  <meyering@lucent.com>
53475
53476         * m4/gettext.m4: Rename this...
53477         * m4/libintl.m4: ...to this.
53478
53479 2000-05-08  Jim Meyering  <meyering@lucent.com>
53480
53481         * lib/long-options.c: Don't include closeout.h.
53482         (parse_long_options): Don't call close_stdout for --version.
53483
53484 2000-05-06  Paul Eggert  <eggert@twinsun.com>
53485
53486         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
53487         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
53488         2.1.3 bug.  This avoids a clash when files like regex.c define
53489         _GNU_SOURCE.
53490
53491 2000-05-06  Jim Meyering  <meyering@lucent.com>
53492
53493         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
53494         (AC_REPLACE_FUNCS): Add strnlen.
53495
53496         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
53497         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
53498
53499         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
53500         AC_SEARCH_LIBS call for nanosleep.
53501         (LIB_NANOSLEEP): Set and AC_SUBST.
53502
53503 2000-05-06  Jim Meyering  <meyering@lucent.com>
53504
53505         * lib/strnlen.c: Undefine __strnlen and strnlen.
53506         [!weak_alias]: Define __strnlen to strnlen.
53507
53508         * lib/atexit.c: New file, from libiberty.
53509
53510 2000-05-06  Jim Meyering  <meyering@lucent.com>
53511
53512         * lib/closeout.c (close_stdout_status): Also check for errors on the
53513         stderr stream.
53514
53515 2000-05-05  Jim Meyering  <meyering@lucent.com>
53516
53517         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
53518         AC_SEARCH_LIBS call for clock_gettime.
53519         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
53520
53521         * m4/search-libs.m4: Update from autoconf.
53522
53523         su doesn't work on Solaris 2.6.
53524         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
53525         <shadow.h>.  Reported by Dragos Harabor.
53526
53527 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
53528
53529         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
53530         memcpy instead of xmalloc, xrealloc, path_concat.
53531         (locale_charset): Treat empty environment variables as absent.
53532         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
53533
53534 2000-05-04  Jim Meyering  <meyering@lucent.com>
53535
53536         * lib/getopt.c: Update from glibc.
53537         * lib/obstack.c: Likewise.
53538         * lib/obstack.h: Likewise.
53539         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
53540         file
53541
53542         * lib/regex.h: Likewise.
53543         * lib/strndup.c: Likewise.
53544         * lib/strnlen.c: New file, from glibc.
53545
53546 2000-05-03  Jim Meyering  <meyering@lucent.com>
53547
53548         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
53549
53550 2000-05-02  Paul Eggert  <eggert@twinsun.com>
53551
53552         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
53553         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
53554         compile-time test, rather than inspecting host and OS, to
53555         decide whether to define _LARGEFILE_SOURCE.
53556
53557 2000-05-01  Jim Meyering  <meyering@lucent.com>
53558
53559         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
53560
53561         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
53562         Based on a patch from Bruno Haible.
53563
53564 2000-05-01  Jim Meyering  <meyering@lucent.com>
53565
53566         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
53567
53568 2000-04-29  Jim Meyering  <meyering@lucent.com>
53569
53570         * lib/path-concat.c: Declare strdup only if it's not defined.
53571         * lib/canon-host.c: Likewise.
53572
53573 2000-04-28  Jim Meyering  <meyering@lucent.com>
53574
53575         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
53576         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
53577         is included first, then limits.h is included by locale.h by libintl.h.
53578         From John David Anglin.
53579
53580 2000-04-25  Jim Meyering  <meyering@lucent.com>
53581
53582         * lib/makepath.c (S_IRWXUGO): Define.
53583         (make_path): Always perform explicit chmod if MODE specifies any
53584         of the `special' permission bits.  Prompted by a bug report against
53585         install from Mate Wierdl and Joost van Baal.
53586
53587 2000-04-18  Jim Meyering  <meyering@lucent.com>
53588
53589         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
53590         (jm_PREREQ): Use it.
53591
53592 2000-04-18  Jim Meyering  <meyering@lucent.com>
53593
53594         * lib/README: New file.
53595
53596         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
53597         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
53598
53599 2000-04-17  Jim Meyering  <meyering@lucent.com>
53600
53601         Get it right :-)
53602         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
53603         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
53604         Suggestion from Akim Demaille.
53605
53606 2000-04-17  Jim Meyering  <meyering@lucent.com>
53607
53608         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
53609         the definition of it to rpl_strftime also defined-away the system's
53610         declaration.
53611
53612 2000-04-15  Jim Meyering  <meyering@lucent.com>
53613
53614         Use `C' to denote so-called `contiguous' files, the same way
53615         that tar does.
53616         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
53617         (ftypelet): Use S_ISCTG.
53618         From Michael Deutschmann.
53619
53620 2000-04-14  Jim Meyering  <meyering@lucent.com>
53621
53622         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
53623         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
53624         clobbered.
53625
53626 2000-04-14  Jim Meyering  <meyering@lucent.com>
53627
53628         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
53629
53630 2000-04-13  Jim Meyering  <meyering@lucent.com>
53631
53632         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
53633         AH_VERBATIM to insert required #ifndef into config.h.in.
53634         Suggestion from Akim Demaille.
53635
53636 2000-04-12  Jim Meyering  <meyering@lucent.com>
53637
53638         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
53639         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
53640         Christian Krackowizer.
53641
53642         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
53643         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
53644         (AC_SYS_LARGEFILE): Require.
53645         (AM_C_PROTOTYPES): Require.
53646
53647 2000-04-08  Jim Meyering  <meyering@lucent.com>
53648
53649         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
53650         names don't conflict.  Reported by Eli Zaretskii.
53651
53652 2000-04-07  Jim Meyering  <meyering@lucent.com>
53653
53654         * lib/putenv.c: Move inclusion of errno.h so it follows that of
53655         sys/types.h, to work around system header problems on AIX 3.2.5.
53656         From Bruno Haible.
53657
53658 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
53659
53660         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
53661         bug.  Deal with the different error behavior of Irix iconv.
53662
53663 2000-04-05  Paul Eggert  <eggert@twinsun.com>
53664
53665         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
53666         IRIX if the installer said otherwise.
53667
53668 2000-04-05  Jim Meyering  <meyering@lucent.com>
53669
53670         Portability tweaks required for ultrix4.3.
53671         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
53672         (jm_CHECK_DECLS): Add getutent to the list of functions.
53673         (_jm_DECL_HEADERS): Add utmpx.h.
53674         From John David Anglin.
53675
53676         * m4/strftime.m4: Back out the 2000-04-02 change.
53677         Instead of that change, simply undefine putenv in the test program.
53678
53679 2000-04-05  Jim Meyering  <meyering@lucent.com>
53680
53681         Portability tweaks required for ultrix4.3.
53682         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
53683         getutent.
53684         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
53685         * lib/canon-host.c: Declare strdup.
53686         * lib/path-concat.c: Likewise.
53687         From John David Anglin.
53688
53689 2000-04-04  Jim Meyering  <meyering@lucent.com>
53690
53691         Be more DOS 8.3-friendly.
53692         * lib/ref-add.sin: Renamed from ref-add.sed.in.
53693         * lib/ref-del.sin: Renamed from ref-del.sed.in.
53694         * lib/Makefile.am: Reflect renaming.
53695         Reported by Eli Zaretskii.
53696
53697         Use a temporary file name that won't clash with `charset.alias'
53698         in the DOS 8.3 name space.
53699         * lib/Makefile.am (charset_tmp): Define.
53700         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
53701         (uninstall-local): Likewise.
53702         Reported by Eli Zaretskii.
53703
53704 2000-04-03  Jim Meyering  <meyering@lucent.com>
53705
53706         * m4/gettext.m4: Fix typo in comment.
53707
53708         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
53709         textutils/configure.in).  Suggestion from Paul Eggert.
53710         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
53711
53712 2000-04-02  Paul Eggert  <eggert@twinsun.com>
53713
53714         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
53715         variable in the shell rather than using putenv, which isn't
53716         portable.  This avoids the configure-time inter-test dependency
53717         on the potentially-renamed putenv function.
53718
53719 2000-03-30  Paul Eggert  <eggert@twinsun.com>
53720
53721         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
53722         before checking struct stat.st_blksize, so that
53723         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
53724
53725 2000-03-29  Paul Eggert  <eggert@twinsun.com>
53726
53727         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
53728         since strftime.c uses HAVE_STRFTIME to decide whether to use
53729         the underlying strftime.
53730
53731 2000-03-29  Paul Eggert  <eggert@twinsun.com>
53732
53733         * lib/time/strftime.c (my_strftime): Make sure we call the system
53734         strftime, not ourselves, when invoking the underlying strftime.
53735
53736 2000-03-24  Jim Meyering  <meyering@lucent.com>
53737
53738         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
53739         (charset_alias): Define.
53740         (install-exec-local): Factor out common code.
53741         (uninstall-local): Split lines longer than 80.
53742         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
53743         (SUFFIXES): Define.
53744         (.sed.in.sed): New rule.  Don't redirect directly to $@.
53745         (CLEANFILES): Add ref-add.sed and ref-del.sed.
53746
53747 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
53748
53749         * lib/config.charset: Output a line containing "Packages using this
53750         file".
53751         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
53752         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
53753         ref-del.sed): New rules.
53754
53755 2000-03-17  Jim Meyering  <meyering@lucent.com>
53756
53757         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
53758         Otherwise, include <strings.h>
53759
53760 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
53761
53762         * lib/unicodeio.c (utf8_wctomb): New function.
53763         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
53764         format instead of in UCS-4 with platform dependent endianness.
53765
53766 2000-03-10  Jim Meyering  <meyering@lucent.com>
53767
53768         * m4/lib-check.m4: Look for getspnam in -lgen, too.
53769         From Marco Franzen.
53770
53771 2000-03-07  Paul Eggert  <eggert@twinsun.com>
53772
53773         * lib/savedir.c (savedir): Work even if directory size is
53774         negative; this can happen with some screwy NFS configurations.
53775
53776 2000-03-06  Jim Meyering  <meyering@lucent.com>
53777
53778         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
53779         if it's NULL (because we ran out of memory).  From Bruno Haible.
53780
53781 2000-03-05  Jim Meyering  <meyering@lucent.com>
53782
53783         * lib/localcharset.c ("path-concat.h"): Include.
53784         (get_charset_aliases): Use path_concat instead of ANSI string
53785         concatenation.
53786
53787         * lib/unicodeio.h (PARAMS): Define.
53788         Use it to guard prototype.
53789
53790 2000-03-04  Jim Meyering  <meyering@lucent.com>
53791
53792         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
53793         for lib/localcharset.c.
53794
53795 2000-03-04  Jim Meyering  <meyering@lucent.com>
53796
53797         * lib/Makefile.am (install-exec-local): Create $(libdir) before
53798         installing into it.
53799         (uninstall-local): Uncomment this rule so `make distcheck' works
53800         once again.
53801
53802         * lib/unicodeio.c (<errno.h>): Include it.
53803         (errno): Declare if not defined.
53804
53805         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
53806
53807         * lib/config.charset: New version, incorporating remarks from a linux
53808         i18n mailing list.  From Bruno Haible.
53809
53810 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
53811
53812         * m4/codeset.m4: New file.
53813         * m4/iconv.m4: New file.
53814         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
53815
53816 2000-03-03  Jim Meyering  <meyering@lucent.com>
53817
53818         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
53819
53820 2000-03-02  Jim Meyering  <meyering@lucent.com>
53821
53822         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
53823         the messages come out on separate lines.
53824
53825         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
53826         rather than jm_CHECK_DECLARATIONS.
53827         * m4/decl.m4: Remove now-unused file.
53828
53829         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
53830         geteuid.
53831
53832 2000-03-02  Jim Meyering  <meyering@lucent.com>
53833
53834         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
53835
53836 2000-03-01  Jim Meyering  <meyering@lucent.com>
53837
53838         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
53839         * lib/unicodeio.c: Likewise.
53840
53841 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
53842
53843         * lib/config.charset: New file.
53844         * lib/localcharset.c: New file.
53845         * lib/unicodeio.h, lib/unicodeio.c: New files.
53846         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
53847         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
53848         (noinst_HEADERS): Add unicodeio.h.
53849         (all-local, install-exec-local, charset.alias): New targets.
53850
53851 2000-02-28  Paul Eggert  <eggert@twinsun.com>
53852
53853         * lib/quotearg.c (ALERT_CHAR): New macro.
53854         (quotearg_buffer_restyled): Use it.
53855
53856 2000-02-27  Jim Meyering  <meyering@lucent.com>
53857
53858         * m4/check-decl.m4: Add getenv to the list.
53859
53860 2000-02-27  Jim Meyering  <meyering@lucent.com>
53861
53862         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
53863         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
53864
53865         * lib/backupfile.c: Guard inclusion of stdlib.h with
53866         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
53867         Declare malloc if needed.
53868
53869         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
53870         `#ifndef HAVE_DECL..'
53871         now that autoconf always defines the HAVE_DECL_ symbols.
53872         * lib/human.c: Likewise.
53873         * lib/same.c: Likewise.
53874         * lib/strtoumax.c: Likewise.
53875
53876         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
53877         declaration check was not run.
53878         * lib/hash.c: Likewise.
53879         * lib/human.c: Likewise.
53880         * lib/same.c: Likewise.
53881         * lib/strtoumax.c: Likewise.
53882
53883         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
53884         `.', then first look up the entire `.'-containing string as a login
53885         name.
53886
53887 2000-02-23  Jim Meyering  <meyering@lucent.com>
53888
53889         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
53890         in place of my hack.
53891
53892 2000-02-18  Paul Eggert  <eggert@twinsun.com>
53893
53894         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
53895         (textint): New typedef.
53896         (parser_control): Member year changed from int to textint.
53897         All uses changed.
53898         (YYSTYPE): Removed; replaced by %union with int and textint members.
53899         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
53900         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
53901         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
53902         (tSNUMBER, tUNUMBER): Now of type <textintval>.
53903         (date, number, to_year): Use width of number in digits, not its value,
53904         to determine whether it's a 2-digit year, or a 2-digit time.
53905         (yylex): Store number of digits of numeric tokens.
53906         Reported by John Kendall.
53907
53908         (parser_control): Changed from struct parser_control to typedef (for
53909         consistency).  All uses changed.
53910
53911         (tID): Removed; not used.
53912         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
53913
53914 2000-02-14  Paul Eggert  <eggert@twinsun.com>
53915
53916         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
53917         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
53918
53919 2000-02-12  Jim Meyering  <meyering@lucent.com>
53920
53921         * lib/userspec.c (ISDIGIT): Define it.
53922         (isdigit): Remove definition.
53923         (is_number): Use ISDIGIT, not isdigit.
53924         <libintl.h>: Include.
53925         (_ and N_): Define.
53926         (parse_user_spec): Mark translatable strings.
53927
53928 2000-02-10  Jim Meyering  <meyering@lucent.com>
53929
53930         With these changes, nanosleep.[ch] are finally enough like the other
53931         lib/* replacement files to compile on a few more losing systems.
53932
53933         * lib/nanosleep.h: Don't include config.h.
53934         Remove prototype from declaration of nanosleep.
53935         (PARAMS): Remove now-unneeded definition.
53936         * lib/nanosleep.c: #undef nanosleep.
53937         (rpl_nanosleep): Rename from nanosleep.
53938
53939 2000-02-10  Jim Meyering  <meyering@lucent.com>
53940
53941         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
53942         gnu_nanosleep to rpl_nanosleep.
53943
53944 2000-02-09  Jim Meyering  <meyering@lucent.com>
53945
53946         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
53947         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
53948
53949 2000-02-08  Akim Demaille  <akim@epita.fr>
53950
53951         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
53952         `[' and `]' and remove uses of `changequote'.
53953         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
53954         (AC_SYS_LARGEFILE): Likewise.
53955         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
53956         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
53957         of changequote.
53958         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
53959         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
53960         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
53961         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
53962
53963 2000-02-05  Jim Meyering  <meyering@lucent.com>
53964
53965         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
53966         Remove explicit use of AC_HEADER_TIME.  It is required by
53967         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
53968         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
53969         in autoconf whereby the expansion of the latter ended up preceding
53970         the expansion of its prerequisite, AC_HEADER_TIME.
53971         Reported by Volker Borchert.
53972
53973 2000-02-03  Jim Meyering  <meyering@lucent.com>
53974
53975         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
53976
53977 2000-02-03  Jim Meyering  <meyering@lucent.com>
53978
53979         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
53980         rather than with `#if HAVE_UTMPNAME'.
53981
53982 2000-02-02  Jim Meyering  <meyering@lucent.com>
53983
53984         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
53985         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
53986         Reported by Eli Zaretskii.
53987
53988 2000-02-01  Jim Meyering  <meyering@lucent.com>
53989
53990         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
53991
53992 2000-01-31  Jim Meyering  <meyering@lucent.com>
53993
53994         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
53995         functions.  Add the time.h and sys/time.h headers along with the
53996         AC_REQUIRE'ment of AC_HEADER_TIME.
53997
53998 2000-01-31  Jim Meyering  <meyering@lucent.com>
53999
54000         * lib/nanosleep.h (nanosleep): Guard declaration with
54001         `#if ! HAVE_DECL_NANOSLEEP'.
54002         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
54003         the declaration in that vendor's sys/timers.h.
54004         Reported by Christian Krackowizer.
54005
54006         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
54007         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
54008         (ISPRINT): Likewise.
54009         Reported by Tom Tromey.
54010
54011 2000-01-30  Jim Meyering  <meyering@lucent.com>
54012
54013         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
54014
54015         * m4/prereq.m4 (utmp_includes): Define.
54016         Check for ut_user and ut_name members in both struct utmpx
54017         and struct utmp.
54018
54019 2000-01-30  Jim Meyering  <meyering@lucent.com>
54020
54021         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
54022         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
54023         header files where only utmpx.ut_user is declared.
54024
54025         * lib/readutmp.h (UT_USER): Define.
54026
54027 2000-01-29  Jim Meyering  <meyering@lucent.com>
54028
54029         * m4/lib-check.m4: New file containing library-related checks from
54030         fileutils and sh-utils (textutils had none).
54031
54032 2000-01-28  Jim Meyering  <meyering@lucent.com>
54033
54034         * m4/perl.m4: Change format of warning message to look more like that
54035         from the missing script.  Suggestion from François Pinard.
54036
54037 2000-01-25  Jim Meyering  <meyering@lucent.com>
54038
54039         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
54040         well as time.h in the compile check.
54041         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
54042         Fix typo in cross-compiling case: s/yes/no/.
54043
54044 2000-01-23  Jim Meyering  <meyering@lucent.com>
54045
54046         * m4/jm-macros.m4: Move df-related tests here from
54047         fileutils/configure.in
54048
54049         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
54050         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
54051
54052         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
54053         s/space/ac_fsusage_space/.
54054         (jm_FILE_SYSTEM_USAGE): Take two parameters.
54055
54056         * m4/ftruncate.m4: New file (derived from part of
54057         fileutils/configure.in).
54058         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
54059         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
54060
54061         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
54062         AC_SUBST these here, rather than just in sh-util/configure.in, so
54063         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
54064         all the same.
54065         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
54066         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
54067         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
54068         (AC_SUBST(POW_LIBM)): Likewise.
54069         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
54070
54071 2000-01-23  Jim Meyering  <meyering@lucent.com>
54072
54073         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
54074         obstack.c.
54075
54076 2000-01-22  Jim Meyering  <meyering@lucent.com>
54077
54078         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
54079
54080         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
54081
54082         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
54083         configure.in
54084         (AC_CHECK_HEADERS): Likewise for sh-utils.
54085         (AC_CHECK_HEADERS): Likewise for textutils.
54086         Merge the three lists of headers.
54087
54088         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
54089         from fileutils' configure.in.
54090
54091         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
54092         code. Moved tests into their own function (_jm_DECL_HEADERS) in
54093         check-decl.m4.
54094
54095         * m4/check-decl.m4: Use #if rather than #ifdef.
54096         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
54097         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
54098         (_jm_DECL_HEADERS): Define new function.
54099         (jm_CHECK_DECLARATIONS): Require it.
54100
54101 2000-01-22  Jim Meyering  <meyering@lucent.com>
54102
54103         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
54104         [! HAVE_DECL_STRTOULL]: Declare strtoull.
54105         Required for some AIX systems.  Reported by Christian Krackowizer.
54106         [TESTING] (main): New function.
54107
54108         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
54109         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
54110         letters.
54111
54112         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
54113         iswprint.
54114
54115         * lib/strverscmp.c (ISDIGIT): Define.
54116         (strverscmp): Use ISDIGIT, not isdigit.
54117
54118 2000-01-19  Jim Meyering  <meyering@lucent.com>
54119
54120         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
54121         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
54122         defines `struct timespec' in <sys/time.h>
54123
54124         * m4/c-bs-a.m4: Remove uses of changequote altogether.
54125         Thanks to Akim for explaining.
54126
54127 2000-01-17  Paul Eggert  <eggert@twinsun.com>
54128
54129         * lib/nanosleep.c (nanosleep):
54130         Don't use SA_INTERRUPT to decide whether to call sigaction, as
54131         POSIX.1 doesn't require SA_INTERRUPT and some systems
54132         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
54133         it's been part of POSIX.1 since day 1 (in 1988).
54134
54135 2000-01-17  Jim Meyering  <meyering@lucent.com>
54136
54137         * lib/interlock: Remove unused file.  Reported by François Pinard.
54138
54139 2000-01-16  Paul Eggert  <eggert@twinsun.com>
54140
54141         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
54142         alert, backslash, formfeed, and vertical tab unnecessarily in
54143         shell quoting style.
54144
54145 2000-01-16  Jim Meyering  <meyering@lucent.com>
54146
54147         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
54148         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
54149         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
54150         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
54151
54152 2000-01-16  Jim Meyering  <meyering@lucent.com>
54153
54154         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
54155         because the latter didn't work.
54156
54157 2000-01-15  Jim Meyering  <meyering@lucent.com>
54158
54159         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
54160         (AC_REPLACE_FUNCS): Add memcpy and memset.
54161         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
54162         Add strpbrk.
54163         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
54164
54165 2000-01-12  Jim Meyering  <meyering@lucent.com>
54166
54167         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
54168         (jm_PREREQ): Use it.
54169         (jm_PREREQ_READUTMP): New macro.
54170         (jm_PREREQ): Use it.
54171
54172 2000-01-11  Paul Eggert  <eggert@twinsun.com>
54173
54174         Quote multibyte characters correctly.
54175         * m4/c-bs-a.m4: New file.
54176         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
54177         (jm_PREREQ): Use it.
54178
54179 2000-01-11  Paul Eggert  <eggert@twinsun.com>
54180
54181         * m4/uintmax_t.m4: Port to autoconf 2.13.
54182
54183 2000-01-08  Jim Meyering  <meyering@ascend.com>
54184
54185         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
54186         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
54187
54188 2000-01-04  Jim Meyering  <meyering@ascend.com>
54189
54190         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
54191         jm_STRUCT_DIRENT_D_TYPE.
54192         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
54193         jm_STRUCT_DIRENT_D_INO.
54194         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
54195         jm_STRUCT_UTIMBUF.
54196         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
54197         renamings.
54198         * m4/utime.m4: Likewise.
54199
54200         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
54201         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
54202
54203 2000-01-03  Paul Eggert  <eggert@twinsun.com>
54204
54205         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
54206         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
54207
54208 2000-01-02  Jim Meyering  <meyering@ascend.com>
54209
54210         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
54211         remember if this is necessary.
54212
54213 1999-12-26  Jim Meyering  <meyering@ascend.com>
54214
54215         * m4/jm-macros.m4: Use it here.
54216         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
54217
54218 1999-12-23  Jim Meyering  <meyering@ascend.com>
54219
54220         * m4/jm-macros.m4: Check for clock_gettime (moved from
54221         fileutils/configure.in)
54222         Check for gettimeofday.
54223
54224 1999-12-20  Jim Meyering  <meyering@ascend.com>
54225
54226         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
54227         autoconf-2.14a-1999-12-20.
54228
54229 1999-12-19  Jim Meyering  <meyering@ascend.com>
54230
54231         * m4/lstat-slash.m4: New file.
54232         * m4/jm-macros.m4: Use the new macro:
54233         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54234
54235 1999-12-07  Jim Meyering  <meyering@ascend.com>
54236
54237         * m4/perl.m4: Require that File::Compare be available, too.
54238         Too many systems seem to lack it.
54239
54240         * m4/strftime.m4: Add checks for most of the cpp macros tested in
54241         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
54242
54243 1999-11-18  Paul Eggert  <eggert@twinsun.com>
54244
54245         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
54246         problem with the QNX 4.25 shell, which doesn't propagate exit
54247         status of failed commands inside shell assignments.
54248
54249 1999-11-17  Jim Meyering  <meyering@ascend.com>
54250
54251         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
54252
54253 1999-11-07  Jim Meyering  <meyering@ascend.com>
54254
54255         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
54256
54257 1999-11-06  Jim Meyering  <meyering@ascend.com>
54258
54259         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
54260         * m4/jm-macros.m4 (jm_MACROS): Use it here.
54261
54262 1999-11-05  Jim Meyering  <meyering@ascend.com>
54263
54264         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
54265         configure.in of textutils, fileutils, and sh-utils into this one
54266         (shared between those packages) file.
54267         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
54268         AC_STRUCT_ST_BLKSIZE.
54269
54270 1999-11-03  Jim Meyering  <meyering@ascend.com>
54271
54272         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
54273         of AC_CHECK_TYPE checks includes unistd.h.
54274         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
54275         Suggestion from Akim Demaille.
54276
54277 1999-10-30  Jim Meyering  <meyering@ascend.com>
54278
54279         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
54280         m4-quoted string.
54281         * m4/ls-mntd-fs.m4: Likewise.
54282         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
54283         * m4/jm-winsz1.m4: Likewise.
54284
54285         * m4/const.m4: Remove file, since the fix made it into the experimental
54286         version of autoconf.
54287         * m4/mktime.m4: Likewise.
54288
54289         * m4/check-type.m4: Remove file, now that the latest version of
54290         AC_CHECK_TYPE takes a third arg to specify additional #includes.
54291
54292         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
54293         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
54294         AC_CHECK_TYPE.
54295
54296 1999-10-04  Jim Meyering  <meyering@ascend.com>
54297
54298         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
54299
54300 1999-09-22  Paul Eggert  <eggert@twinsun.com>
54301
54302         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
54303         2.95.1 bug with HP-UX 10.20.
54304
54305 1999-09-17  Jim Meyering  <meyering@ascend.com>
54306
54307         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
54308         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
54309         due to missing strdup (against sh-utils-2.0).
54310
54311 1999-08-29  Jim Meyering  <meyering@ascend.com>
54312
54313         * m4/jm-macros.m4: Require jm_BISON.
54314         * m4/bison.m4: New file.
54315
54316 1999-08-17  Paul Eggert  <eggert@twinsun.com>
54317
54318         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
54319         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
54320
54321 1999-08-05  Jim Meyering  <meyering@ascend.com>
54322
54323         * m4/getline.m4: Rename test file from conftestdata to conftest.data
54324         to avoid conflicts with `conftest' on 8+3 filesystems.
54325         Suggestion from Eli Zaretskii.
54326
54327 1999-08-04  Jim Meyering  <meyering@ascend.com>
54328
54329         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
54330         fileutils and sh-utils (textutils's getline test was inadequate).
54331         (AM_FUNC_GETLINE): Run this test.
54332         (AC_CHECK_FUNCS): Check for getdelim.
54333         Reported by Bob Proulx.
54334
54335 1999-08-02  Jim Meyering  <meyering@ascend.com>
54336
54337         * m4/jm-macros.m4: Add a comment.
54338
54339 1999-08-01  Paul Eggert  <eggert@twinsun.com>
54340
54341         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
54342         <inttypes.h> defines strtoumax as a macro (and not as a
54343         function).
54344
54345 1999-08-01  Paul Eggert  <eggert@twinsun.com>
54346
54347         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
54348         that we can shift, multiply and divide unsigned long long
54349         values; Ultrix cc can't do it.
54350
54351 1999-08-01  Paul Eggert  <eggert@twinsun.com>
54352
54353         * m4/mktime.m4: New file, which is a preview of what should appear
54354         in the next public autoconf release.
54355
54356 1999-08-01  Paul Eggert  <eggert@twinsun.com>
54357
54358         * m4/lfs.m4: Remove this file.
54359         * m4/largefile.m4: New file.  It contains the old contents of
54360         lfs.m4, except that all names with prefix AC_LFS have been
54361         changed to use the prefix AC_SYS_LARGEFILE instead, to be
54362         compatible with future autoconf versions.  Also, some minor m4
54363         quoting problems have been fixed.
54364
54365 1999-08-01  Paul Eggert  <eggert@twinsun.com>
54366
54367         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
54368         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
54369         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
54370         and simplify the shell code.
54371
54372 1999-08-01  Jim Meyering  <meyering@ascend.com>
54373
54374         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
54375         m4.
54376
54377 1999-07-20  Jim Meyering  <meyering@ascend.com>
54378
54379         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
54380
54381 1999-07-15  Jim Meyering  <meyering@ascend.com>
54382
54383         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
54384
54385 1999-05-22  Jim Meyering  <meyering@ascend.com>
54386
54387         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
54388
54389 1999-05-20  Jim Meyering  <meyering@ascend.com>
54390
54391         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
54392         Add a colon after each `then' in case $4 is empty.
54393
54394 1999-05-16  Jim Meyering  <meyering@ascend.com>
54395
54396         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
54397
54398 1999-05-10  Jim Meyering  <meyering@ascend.com>
54399
54400         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
54401
54402         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
54403         AC_FUNC_MKTIME.
54404
54405 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
54406
54407         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
54408
54409 1999-05-04  Paul Eggert  <eggert@twinsun.com>
54410
54411         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
54412         not CPPFLAGS, so that linking works correctly in IRIX.
54413
54414 1999-04-30  Paul Eggert  <eggert@twinsun.com>
54415
54416         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
54417
54418 1999-04-20  Paul Eggert  <eggert@twinsun.com>
54419
54420         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
54421         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
54422         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
54423         jm_AC_TYPE_UNSIGNED_LONG_LONG.
54424         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
54425
54426         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
54427
54428 1999-04-20  Jim Meyering  <meyering@ascend.com>
54429
54430         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
54431         AC_REPLACE xstroull if necessary.  From Paul Eggert.
54432         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
54433
54434 1999-04-18  Jim Meyering  <meyering@ascend.com>
54435
54436         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
54437         * m4/jm-macros.m4: Use it.
54438
54439 1999-04-06  Jim Meyering  <meyering@ascend.com>
54440
54441         * m4/strftime.m4: Remove test for %f.
54442
54443 1999-03-29  Jim Meyering  <meyering@ascend.com>
54444
54445         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
54446         superset of the AC_TYPE_* checks in the textutils, fileutils,
54447         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
54448         AC_TYPE_PID_T.
54449
54450 1999-03-28  Jim Meyering  <meyering@ascend.com>
54451
54452         * m4/jm-macros.m4: Define GNU_PACKAGE here.
54453         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
54454         replaced e.g., in the *.sh files of the sh-utils.
54455
54456 1999-03-20  Jim Meyering  <meyering@ascend.com>
54457
54458         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
54459         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
54460         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
54461
54462 1999-03-19  Jim Meyering  <meyering@ascend.com>
54463
54464         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
54465
54466 1999-03-12  Jim Meyering  <meyering@ascend.com>
54467
54468         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
54469
54470 1999-03-07  Jim Meyering  <meyering@ascend.com>
54471
54472         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
54473         declared.
54474
54475 1999-02-17  Jim Meyering  <meyering@ascend.com>
54476
54477         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
54478         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
54479
54480 1999-02-07  Jim Meyering  <meyering@ascend.com>
54481
54482         * m4/group-member.m4: New file -- extracted from sh-utils'
54483         configure.in.
54484
54485         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
54486         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
54487
54488 1999-02-06  Jim Meyering  <meyering@ascend.com>
54489
54490         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
54491         * m4/fnmatch.m4: Likewise.
54492         * m4/getgroups.m4: Likewise.
54493         * m4/lstat.m4: Likewise.
54494         * m4/malloc.m4: Likewise.
54495         * m4/putenv.m4: Likewise.
54496         * m4/realloc.m4: Likewise.
54497         * m4/regex.m4: Likewise.
54498         * m4/stat.m4: Likewise.
54499         * m4/strftime.m4: Likewise.
54500         Suggestion from Alain Magloire.
54501
54502         * m4/chown.m4: Use `.$ac_objext', not `.o'.
54503         * m4/fnmatch.m4: Likewise.
54504         * m4/getgroups.m4: Likewise.
54505         * m4/getline.m4: Likewise.
54506         * m4/lstat.m4: Likewise.
54507         * m4/malloc.m4: Likewise.
54508         * m4/memcmp.m4: Likewise.
54509         * m4/putenv.m4: Likewise.
54510         * m4/realloc.m4: Likewise.
54511         * m4/regex.m4: Likewise.
54512         * m4/stat.m4: Likewise.
54513         * m4/strftime.m4: Likewise.
54514         Suggestion from Alain Magloire.
54515
54516         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
54517         an argument.
54518
54519         * m4/regex.m4: Add a run-time Test for proper operation of
54520         re_compile_pattern.
54521
54522 1999-01-31  Jim Meyering  <meyering@ascend.com>
54523
54524         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
54525
54526 1999-01-30  Jim Meyering  <meyering@ascend.com>
54527
54528         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
54529
54530         * m4/jm-mktime.m4: Make this a wrapper around the official
54531         AM_FUNC_MKTIME rather than my private copy, now that the official one
54532         is up to date.
54533         * m4/mktime.m4: Remove file.
54534
54535         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
54536         * m4/uptime.m4: Likewise.
54537         * m4/uintmax_t.m4: Likewise.
54538
54539 1999-01-28  Jim Meyering  <meyering@ascend.com>
54540
54541         * m4/jm-macros.m4: Use jm_AFS.
54542         * m4/afs.m4: New file (from fileutils' configure.in).
54543
54544         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
54545         * m4/chown.m4: Likewise.
54546         * m4/d-ino.m4: Likewise.
54547         * m4/d-type.m4: Likewise.
54548         * m4/fnmatch.m4: Likewise.
54549         * m4/getgroups.m4: Likewise.
54550         * m4/gettext.m4: Likewise.
54551         * m4/jm-mktime.m4: Likewise.
54552         * m4/jm-winsz2.m4: Likewise.
54553         * m4/lcmessage.m4: Likewise.
54554         * m4/ls-mntd-fs.m4: Likewise.
54555         * m4/malloc.m4: Likewise.
54556         * m4/memcmp.m4: Likewise.
54557         * m4/putenv.m4: Likewise.
54558         * m4/realloc.m4: Likewise.
54559         * m4/st_mtim.m4: Likewise.
54560         * m4/strftime.m4: Likewise.
54561
54562 1999-01-16  Jim Meyering  <meyering@ascend.com>
54563
54564         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
54565         (ARGMATCH_DIE_DECL): Define.
54566
54567 1999-01-12  Jim Meyering  <meyering@ascend.com>
54568
54569         * m4/Makefile.am.in: Rewrite to avoid using fmt.
54570         Reported by Lars Hecking.
54571
54572 1999-01-10  Jim Meyering  <meyering@ascend.com>
54573
54574         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
54575         gross kludge.
54576         * m4/inttypes_h.m4: Likewise.
54577         * m4/lstat.m4: Likewise.
54578         * m4/malloc.m4: Likewise.
54579         * m4/readdir.m4: Likewise.
54580         * m4/realloc.m4: Likewise.
54581         * m4/st_dm_mode.m4: Likewise.
54582         * m4/stat.m4: Likewise.
54583         * m4/utimbuf.m4: Likewise.
54584         * m4/utimes.m4: Likewise.
54585
54586         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
54587         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
54588         comments in config.h.in are meaningful.
54589
54590         * m4/jm-macros.m4: Require autoconf-2.13 here.
54591
54592         * m4/regex.m4: By default, don't use the included regex.c on systems
54593         with glibc 2.  Suggestion from Uli Drepper.
54594
54595 1999-01-02  Jim Meyering  <meyering@ascend.com>
54596
54597         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
54598
54599 1998-12-18  Jim Meyering  <meyering@ascend.com>
54600
54601         * m4/Makefile.am.in (Makefile.am): Simplify rule.
54602         Based on a suggestion from Lars Hecking.
54603
54604 1998-11-16  Paul Eggert  <eggert@twinsun.com>
54605
54606         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
54607
54608 1998-11-16  Jim Meyering  <meyering@ascend.com>
54609
54610         * m4/lfs.m4: Double-quote the `uname...` expression.
54611
54612 1998-11-14  Jim Meyering  <meyering@ascend.com>
54613
54614         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
54615         * m4/stat.m4: Likewise.
54616
54617 1998-11-03  Jim Meyering  <meyering@ascend.com>
54618
54619         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
54620         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
54621
54622 1998-10-18  Jim Meyering  <meyering@ascend.com>
54623
54624         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
54625
54626 1998-10-17  Jim Meyering  <meyering@ascend.com>
54627
54628         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
54629         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
54630         calls for those previously hard-coded headers.  Instead, take a new
54631         parameter.
54632         (jm_CHECK_DECLARATIONS): Reflect interface change.
54633         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
54634         (jm_CHECK_DECL_LOCALTIME_R): New macro.
54635
54636         * m4/mktime.m4: Test for spring-forward gap before long-running test.
54637
54638 1998-10-14  Jim Meyering  <meyering@ascend.com>
54639
54640         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
54641         instead of "TZ=America/Vancouver".  From Paul Eggert.
54642
54643 1998-10-11  Jim Meyering  <meyering@ascend.com>
54644
54645         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
54646         This adds a test for a recently added compatibility fix for mktime.c.
54647         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
54648
54649 1998-09-27  Jim Meyering  <meyering@ascend.com>
54650
54651         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
54652
54653         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
54654         ../configure.in, including a change from Gordon Matzigkeit to allow
54655         cross-compiling for the Hurd.
54656
54657         * m4/glibc.m4: New file/macro to test for the GNU C Library
54658         versions 1 and 2.  From Gordon Matzigkeit.
54659         Indent.
54660
54661 1998-09-21  Jim Meyering  <meyering@ascend.com>
54662
54663         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
54664
54665 1998-08-18  Paul Eggert  <eggert@twinsun.com>
54666
54667         Port nanosecond-resolution times to UnixWare 2.1.2 and
54668         pedantic Solaris 2.6.
54669
54670         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
54671         AC_STRUCT_ST_MTIM.
54672         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
54673         Generate name of ns member, instead of just 1 or undef.
54674         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
54675
54676 1998-08-15  Jim Meyering  <meyering@ascend.com>
54677
54678         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
54679         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
54680         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
54681         instead of jm_TYPE_SSIZE_T.
54682
54683 1998-08-12  Jim Meyering  <meyering@ascend.com>
54684
54685         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
54686
54687 1998-08-02  Jim Meyering  <meyering@ascend.com>
54688
54689         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
54690         in acconfig.h manually.
54691
54692 1998-07-31  Paul Eggert  <eggert@twinsun.com>
54693
54694         * m4/st_mtim.m4: New file.
54695
54696 1998-07-28  Jim Meyering  <meyering@ascend.com>
54697
54698         * m4/utimes.m4: Undef stat.
54699
54700 1998-07-25  Jim Meyering  <meyering@ascend.com>
54701
54702         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
54703         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
54704
54705 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
54706
54707         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
54708         uid and gid actually remain unchanged.
54709
54710 1998-07-07  Jim Meyering  <meyering@ascend.com>
54711
54712         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
54713
54714 1998-07-04  Jim Meyering  <meyering@ascend.com>
54715
54716         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
54717         to prove that this macro can be used in packages without regex.c.
54718
54719 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
54720
54721         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
54722         is to be used.
54723
54724 1998-07-03  Jim Meyering  <meyering@ascend.com>
54725
54726         * m4/gettext.m4: Add -lintl if it's found to be necessary.
54727
54728         * m4/gettext.m4: New file -- from gettext-0.10.35.
54729         * m4/lcmessage.m4: Likewise.
54730         * m4/progtest.m4: Likewise.
54731
54732         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
54733         * m4/jm-macros.m4: Require the new macro.
54734
54735 1998-06-29  Jim Meyering  <meyering@ascend.com>
54736
54737         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
54738         for the definition of NGROUPS (used in a system header included
54739         by sys/mount.h).
54740
54741 1998-06-28  Jim Meyering  <meyering@ascend.com>
54742
54743         * m4/ls-mntd-fs.m4: New file.
54744         * m4/fstypename.m4: New file.
54745
54746         * m4/jm-macros.m4: Require the new macro.
54747         * m4/jm-glibc-io.m4: New file.
54748
54749 1998-05-19  Jim Meyering  <meyering@ascend.com>
54750
54751         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
54752         * m4/lchown.m4: New file.
54753
54754         * m4/Makefile.am.in: New file.
54755         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
54756
54757 1998-05-14  Jim Meyering  <meyering@ascend.com>
54758
54759         * m4/Makefile.am (EXTRA_DIST): Add them.
54760         * m4/jm-macros.m4: New file.
54761         * m4/utimbuf.m4: New file.
54762
54763 1998-05-12  Jim Meyering  <meyering@ascend.com>
54764
54765         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
54766
54767 1998-05-11  Jim Meyering  <meyering@ascend.com>
54768
54769         * m4/isc-posix.m4: New file.
54770
54771 1998-05-10  Jim Meyering  <meyering@ascend.com>
54772
54773         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
54774
54775 1998-05-09  Jim Meyering  <meyering@ascend.com>
54776
54777         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
54778         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
54779         with automake.
54780
54781         * m4/ssize_t.m4: New file.
54782         * m4/mktime.m4: Remove file -- the new automake has this now.
54783
54784 1998-04-26  Jim Meyering  <meyering@ascend.com>
54785
54786         * m4/assert.m4: New file.
54787         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
54788
54789 1998-04-05  Jim Meyering  <meyering@ascend.com>
54790
54791         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
54792         (jm_PREREQ): Use it here.
54793
54794 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
54795
54796         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
54797         in acconfig.h.
54798
54799 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
54800
54801         * m4/prereq.m4: New file.
54802         * m4/error.m4: New file.
54803         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
54804
54805 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
54806
54807         * m4/getline.m4: Don't set am_cv_func_working_getline before the
54808         cache-check for the same variable -- that defeated the purpose of
54809         the test; the test program was never run.  This was a problem only
54810         on systems with losing getline functions -- HP-UX 10.20 is one.
54811         Reported by Bjorn Helgaas.
54812
54813 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
54814
54815         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
54816
54817 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
54818
54819         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
54820
54821         * m4/const.m4: New file.  Use an initializer in this declaration
54822         typedef int charset[2]; const charset x;
54823         Reported by Bob Glickstein.
54824
54825 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
54826
54827         * m4/chown.m4: Fix reversed types on -1 args to chown.
54828         From Kaveh Ghazi.
54829
54830 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
54831
54832         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
54833         Add lseek and memchr.
54834
54835         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
54836         T.E.Dickey <dickey@clark.net> said that some older preprocessors
54837         have a 20-character limit on names.
54838
54839 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
54840
54841         * m4/inttypes_h.m4: New file.
54842         * m4/uintmax_t.m4: New file.
54843         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
54844
54845
54846         -----
54847
54848         Local Variables:
54849         coding: utf-8
54850         End:
54851
54852         Copyright (C) 1997-2009 Free Software Foundation, Inc.
54853
54854         Copying and distribution of this file, with or without
54855         modification, are permitted provided the copyright notice
54856         and this notice are preserved.