Tweak copyright statements.
[gnulib.git] / ChangeLog
1 2009-09-17  Bruno Haible  <bruno@clisp.org>
2
3         * modules/COPYING: Update copyright years.
4         * modules/README: Likeiwse.
5         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
6         Reported by Ian Beckwith <ianb@erislabs.net>.
7
8 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
9
10         * users.txt: Update references for gnuit package.
11
12 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
13
14         * m4/getdelim.m4: Fix typo in copyright line.
15
16 2009-09-17  Bruno Haible  <bruno@clisp.org>
17
18         * lib/atoll.c: Use the standard header with GPL copyright.
19         * lib/argz.in.h: Likewise.
20         * lib/glob.c: Likewise.
21         * lib/glob-libc.h: Likewise.
22         * lib/random_r.c: Likewise.
23         * lib/siglist.h: Likewise.
24         * lib/strsignal.c: Likewise.
25         Reported by Ian Beckwith <ianb@erislabs.net>.
26
27 2009-09-17  Eric Blake  <ebb9@byu.net>
28
29         rmdir: ensure correct dependency order
30         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
31
32 2009-09-17  Bruno Haible  <bruno@clisp.org>
33
34         Disable assertion that fails on NetBSD 5 / i386.
35         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
36         Reported by Sam Steingold <sds@gnu.org>
37         and Hasso Tepper <hasso@netbsd.org>.
38
39 2009-09-16  Eric Blake  <ebb9@byu.net>
40
41         unlinkdir: port to mingw
42         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
43         that refuse anyone to unlink a directory.
44
45         stdlib: sort witness names
46         * modules/stdlib (Makefile.am): Sort replacements.
47         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
48         * lib/stdlib.in.h: Likewise.
49
50         parse-duration-tests: avoid link failure
51         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
52         LIBINTL.
53         Reported by Tom G. Christensen.
54
55         openat-tests: ensure unlinkat behaves like rmdir
56         * tests/test-rmdir.c (main): Factor guts...
57         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
58         * modules/rmdir-tests (Files): Ship new file.
59         * modules/openat-tests: New test.
60         * tests/test-unlinkat.c: Likewise.
61
62         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
63         * modules/rmdir-errno (Status, Notice): Now obsolete.
64
65         rmdir: work around cygwin 1.5.x and mingw bugs
66         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
67         * lib/rmdir.c (rmdir): Work around it.
68         * modules/rmdir (Status, Notice): No longer obsolete.
69         (Files): Add dos.m4.
70         (Depends-on): Add unistd.
71         (configure.ac): Set witnesses.
72         (License): Relax to LGPLv2+.
73         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
74         * modules/unistd (Makefile.am): Substitute witnesses.
75         * lib/unistd.in.h (rmdir): Declare replacement.
76         * doc/posix-functions/rmdir.texi (rmdir): Document this.
77         * modules/rmdir-tests: New tests.
78         * tests/test-rmdir.c: Likewise.
79
80 2009-09-15  Eric Blake  <ebb9@byu.net>
81
82         fchdir: improve use of replacement functions
83         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
84         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
85         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
86         REPLACE_CLOSEDIR.
87         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
88         * modules/sys_stat (Makefile.am): Substitute correct witness.
89         * modules/dirent (Makefile.am): Likewise.
90         * modules/unistd (Makefile.am): Likewise.
91         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
92         * lib/unistd.in.h (dup): Likewise.
93         * lib/sys_stat.in.h (fstat): Likewise.
94
95         maint: ignore gnulib-tool temp files
96         * .gitignore: Ignore files created during gnulib-tool --test.
97
98 2009-09-13  Jim Meyering  <meyering@redhat.com>
99
100         posixtm: don't reject a time that specify "60" as the number of seconds
101         * lib/posixtm.c (posixtime): The code to reject invalid dates
102         would also reject a time specified with the .60 suffix.
103         But POSIX allows that, in order to accommodate leap seconds.
104         So don't reject it.
105         (main): Adjust tests accordingly.
106         * modules/posixtm (Depends-on): Add stpcpy.
107
108 2009-09-11  Jim Meyering  <meyering@redhat.com>
109
110         announce-gen: include [$release_type] in emitted Subject:
111         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
112         e.g., [stable] in the emitted Subject: line.
113
114 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115
116         Remove obsolete macros from several modules.
117         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
118         obsolete Autoconf macros with their modern counterparts.
119         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
120         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
121         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
122         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
123         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
124         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
125         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
126         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
127         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
128         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
129         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
130         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
131         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
132         * m4/sockets.m4 (gl_SOCKETS): Likewise.
133         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
134         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
135         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
136         * m4/time_r.m4 (gl_TIME_R): Likewise.
137         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
138         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
139         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
140
141         Fix copyright header in build-aux scripts.
142         * build-aux/git-version-gen: Fix copyright header to match GPLv3
143         recommendation.
144         * build-aux/ncftpput-ftp: Likewise.
145         * build-aux/update-copyright: Likewise.
146
147 2009-09-09  Eric Blake  <ebb9@byu.net>
148
149         test-link: allow Linux choice of errno
150         * tests/test-link.c (main): Relax test for alternate error.
151
152         strndup: fix improper m4 caching
153         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
154         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
155         (gl_PREREQ_STRNDUP): Delete.
156         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
157         * modules/string (Makefile.am): Substitute it.
158         * lib/string.in.h (strndup): Modernize prototype.
159
160         getcwd: port to mingw
161         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
162         different from the POSIX assumptions made throughout the getcwd
163         module; fortunately, the mingw getcwd does not need replacement.
164         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
165         * modules/getcwd-tests: New test.
166         * tests/test-getcwd.c: Likewise.
167
168         link: fix platform bugs
169         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
170         * lib/link.c (link): Work around them.  Fix related mingw bug.
171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
172         * modules/unistd (Makefile.am): Substitute it.
173         * lib/unistd.in.h (link): Declare replacement.
174         * doc/posix-functions/link.texi (link): Document this.
175         * modules/link (Depends-on): Add strdup-posix, sys_stat.
176
177         test-link: consolidate into single C program, test more cases
178         * tests/test-link.sh: Delete.
179         * tests/test-link.c: Test more error conditions.  Exposes bugs on
180         at least Cygwin and Solaris.
181         * modules/link-tests (Files): Remove unused file.
182         (Depends-on): Add errno, sys_stat.
183         (Makefile.am): Simplify.
184
185 2009-09-08  Bruno Haible  <bruno@clisp.org>
186
187         Work around towlower, towupper bug on mingw.
188         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
189         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
190         * doc/posix-functions/towlower.texi: Mention the mingw bug.
191         * doc/posix-functions/towupper.texi: Likewise.
192         Reported by Eric Blake.
193
194 2009-09-08  Jim Meyering  <meyering@redhat.com>
195
196         build: don't try to run autoheader if we don't use it
197         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
198         is not used in configure.ac.
199
200 2009-09-08  Eric Blake  <ebb9@byu.net>
201
202         euidaccess: fix compilation error
203         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
204
205         rawmemchr: relax license
206         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
207         okay.
208         Reported by Jim Meyering.
209
210         mkfifoat: new module
211         * modules/mkfifoat: New file.
212         * lib/mkfifoat.c: Likewise.
213         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
214         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
215         * modules/sys_stat (Makefile.am): Use them.
216         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
217         * MODULES.html.sh (File system functions): Mention module.
218         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
219         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
220         * modules/mkfifoat-tests: New test.
221         * tests/test-mkfifoat.c: Likewise.
222
223         strchrnul: relax license
224         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
225         okay.
226         Reported by Jim Meyering.
227
228 2009-09-08  Eric Blake  <ebb9@byu.net>
229
230         fstatat: fix compilation on Solaris
231         * lib/fstatat.c (includes): Add fcntl.h.
232         Reported by Pádraig Brady.
233
234 2009-09-07  Eric Blake  <ebb9@byu.net>
235
236         rename: modernize replacement
237         * modules/rename (Depends-on): Add stdio.
238         (configure.ac): Declare witness.
239         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
240         stdio take care of replacement.
241         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
242         * modules/stdio (Makefile.am): Substitute them.
243         * lib/stdio.in.h (rename): Declare replacement.
244         * lib/rename.c (includes): Allow cross-compilation to non-windows
245         machines.
246         * doc/posix-functions/rename.texi (rename): Improve
247         documentation.
248
249         stdio: sort witness names
250         * modules/stdio (Makefile.am): Sort replacements.
251         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
252         * lib/stdio.in.h: Likewise.
253
254         getcwd: minor cleanups
255         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
256         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
257
258         openat: provide more convenience names
259         * modules/faccessat (configure.ac): Add C witness.
260         * lib/unistd.in.h (readlinkat): Fix typo.
261         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
262         convenience wrappers.
263         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
264         wrappers in syntax checks.
265
266 2009-09-06  Eric Blake  <ebb9@byu.net>
267
268         doc: fix comments in recent patches
269         * lib/faccessat.c: Mention correct function.
270         * lib/fchmodat.c: Likewise.
271         * lib/fchownat.c: Likewise.
272         * lib/symlinkat.c: Likewise.
273         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
274         constants.
275
276         faccessat, symlinkat: continue cleanup of previous patch
277         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
278         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
279         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
280         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
281         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
282         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
283         set.
284
285 2009-09-06  Bruno Haible  <bruno@clisp.org>
286
287         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
288         (fstatat): Declare if GNULIB_FSTATAT is set.
289         (mkdirat): Declare if GNULIB_MKDIRAT is set.
290         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
291         (unlinkat): Declare if GNULIB_UNLINKAT is set.
292         * modules/fcntl-h (Files): Remove m4/openat.m4.
293         * modules/sys_stat (Files): Remove m4/openat.m4.
294         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
295         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
296         * modules/unistd (Files): Remove m4/openat.m4.
297         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
298         GNULIB_OPENAT.
299         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
300         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
301         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
302         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
303         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
304         gl_OPENAT_DEFAULTS.
305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
306         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
307         Don't require gl_OPENAT_DEFAULTS.
308         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
309         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
310         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
311         (gl_OPENAT_DEFAULTS): Remove macro.
312
313 2009-09-06  Bruno Haible  <bruno@clisp.org>
314
315         * modules/openat (configure.ac): Remove unneeded witness.
316
317 2009-09-06  Bruno Haible  <bruno@clisp.org>
318
319         Set errno to ENOSYS when a function is entirely unsupported.
320         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
321         EOPNOTSUPP.
322         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
323         * modules/chown (Depends-on): Remove errno.
324
325 2009-09-06  Bruno Haible  <bruno@clisp.org>
326
327         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
328
329 2009-09-06  Bruno Haible  <bruno@clisp.org>
330
331         * lib/sys_stat.in.h: Fix preprocessor command indentation.
332
333 2009-09-06  Ben Pfaff  <blp@gnu.org>
334             Bruno Haible  <bruno@clisp.org>
335
336         Work around a glibc bug in strtok_r.
337         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
338         Undefine if UNDEFINE_STRTOK_R is set.
339         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
340         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
341         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
342         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
343         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
344         UNDEFINE_STRTOK_R.
345         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
346
347 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
348
349         exclude: minor fix
350         * lib/exclude.c: Include wctype.h
351
352 2009-09-06  Akim Demaille  <demaille@gostai.com>
353
354         bootstrap: improve error message
355         * build-aux/bootstrap (find_tool): Upon failure, report the list
356         of candidates.
357         Honor the initial value of the envvar.
358
359 2009-09-05  Eric Blake  <ebb9@byu.net>
360
361         symlinkat: new module
362         * modules/symlinkat: New file.
363         * lib/symlinkat.c: Likewise.
364         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
366         * modules/unistd (Makefile.am): Use them.
367         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
368         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
369         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
370         * MODULES.html.sh (File system functions): Mention module.
371         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
372         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
373         * modules/symlinkat-tests: New test.
374         * tests/test-symlinkat.c: Likewise.
375
376         test-openat-safer: add more checks
377         * tests/test-openat-safer.c (main): Check more code paths.
378
379 2009-09-05  Jim Meyering  <meyering@redhat.com>
380
381         syntax-check: detect unnecessary inclusion of openat.h
382         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
383
384 2009-09-05  Bruno Haible  <bruno@clisp.org>
385
386         Support towlower, towupper.
387         * doc/posix-functions/towlower.texi: Mention module wctype.
388         * doc/posix-functions/towupper.texi: Likewise.
389         * lib/wctype.in.h (towlower, towupper): New functions.
390         * tests/test-wctype.c: Include stdio.h, stdlib.h.
391         (ASSERT): New macro.
392         (e): New variable.
393         (main): Test also towlower, towupper. Test WEOF argument.
394         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
395
396 2009-09-05  Bruno Haible  <bruno@clisp.org>
397
398         Fix conversion behaviour when the input is invalid.
399         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
400         mark occurring in first pass of indirect conversion.
401         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
402         input.
403         Found by clang's static analyzer.
404
405 2009-09-05  Bruno Haible  <bruno@clisp.org>
406
407         * tests/test-striconveh.c (main): Test indirect conversion on platforms
408         where direct conversion is possible.
409
410 2009-09-04  Eric Blake  <ebb9@byu.net>
411
412         openat: fail with ENOENT on empty name
413         * lib/openat-proc.c (openat_proc_name): Special-case the empty
414         buffer.
415
416         link-follow: fix logic bug in prior patch
417         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
418         reversed sense of yes and no in prior patch.  Avoid confusing
419         compilation failure with desired semantics.
420
421         link-follow: accomodate mingw and cross-compilation
422         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
423         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
424         cross-compilation results to -1, to make linkat easier to
425         implement when cross-compiling.  Trivially support mingw.
426         * modules/link-follow (configure.ac): Call new name.
427         * NEWS: Mention this.
428
429 2009-09-03  Eric Blake  <ebb9@byu.net>
430
431         faccessat: compile replacement
432         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
433         needed.
434
435         fts: fix compilation error
436         * lib/fts.c (includes): Re-add "openat.h", for
437         openat_needs_fchdir.
438
439         faccessat: new module
440         * modules/faccessat: New file.
441         * lib/faccessat.c: Likewise.
442         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
444         * modules/unistd (Makefile.am): Use it.
445         * lib/unistd.in.h (faccessat): Declare it.
446         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
447         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
448         * MODULES.html.sh (File system functions): Mention it.
449         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
450         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
451
452         euidaccess: prefer POSIX over non-standard implementation
453         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
454         * lib/euidaccess.c (euidaccess): Use it if available.
455
456         openat: make template easier to use
457         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
458         AT_FUNC_F2 to be undefined.
459         (VALIDATE_FLAG): New macro; use it to reject bad flags.
460         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
461         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
462         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
463         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
464         Likewise.
465         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
466         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
467         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
468         Likewise.
469
470         openat: declare in POSIX headers
471         * NEWS: Mention this.
472         * modules/openat (configure.ac): Declare witnesses.
473         (Depends-on): Add fcntl-h, sys_stat, unistd.
474         (Include): Mention correct headers.
475         * modules/fcntl-h (Depends-on): Add link-warning.
476         (Files): Add openat.m4.
477         (Makefile.am): Substitute witnesses.
478         * modules/sys_stat (Files, Makefile.am): Likewise.
479         * modules/unistd (Files, Makefile.am): Likewise.
480         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
481         (gl_OPENAT_DEFAULTS): New macro.
482         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
483         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
484         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
485         (SYS_STAT_H): Remove unused variable.
486         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
487         * lib/fcntl--.h (includes): Remove unneeded header.
488         * lib/openat-safer.c (includes): Likewise.
489         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
490         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
491         appropriate headers.
492         (__OPENAT_PREFIX): Delete.
493         * lib/fcntl.in.h (openat): Provide declaration.
494         (AT_FDCWD): Fix Solaris bug.
495         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
496         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
497         * lib/fchmodat.c (includes):  Adjust to find declaration.
498         * lib/fchownat.c (includes): Likewise.
499         * lib/mkdirat.c (includes): Likewise.
500         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
501         still visible.
502
503 2009-09-02  Eric Blake  <ebb9@byu.net>
504
505         errno: use consistently
506         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
507         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
508         * lib/canonicalize.c (ELOOP): Likewise.
509         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
510         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
511         * lib/lchown.c (EOPNOTSUPP): Likewise.
512         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
513         * lib/savewd.c (ESTALE): Likewise.
514         * lib/settime.c (ENOSYS): Likewise.
515         * lib/utimens.c (ENOSYS): Likewise.
516         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
517         * lib/chdir-safer.c (ELOOP): Likewise.
518         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
519         * modules/c-stack (Depends-on): Add errno.
520         * modules/canonicalize (Depends-on): Likewise.
521         * modules/chdir-safer (Depends-on): Likewise.
522         * modules/fdopendir (Depends-on): Likewise.
523         * modules/inet_ntop (Depends-on): Likewise.
524         * modules/inet_pton (Depends-on): Likewise.
525         * modules/lchown (Depends-on): Likewise.
526         * modules/openat (Depends-on): Likewise.
527         * modules/savewd (Depends-on): Likewise.
528         * modules/settime (Depends-on): Likewise.
529         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
530
531         fts: avoid leaking fds
532         * modules/fts (Depends-on): Add cloexec.
533         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
534         flag.
535
536         fts: make directory fds more robust
537         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
538         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
539
540         backupfile, chdir-long, fts, savedir: make safer
541         * lib/backupfile.c (includes): Use "dirent--.h", since
542         numbered_backup can write to stderr during readdir.
543         * lib/savedir.c (includes): Likewise.
544         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
545         emulation can write to stderr on failure.
546         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
547         * lib/getcwd.c: Document why opendir_safer is unused.
548         * lib/glob.c: Likewise.
549         * lib/scandir.c: Likewise.
550         * lib/openat-proc.c: Likewise, for open_safer.
551         * modules/backupfile (Depends-on): Add dirent-safer.
552         * modules/savedir (Depends-on): Likewise.
553         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
554         * modules/chdir-long (Depends-on): Add openat-safer.
555
556         openat-safer: new module
557         * modules/openat-safer: New file.
558         * lib/openat-safer.c: Likewise.
559         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
560         * lib/fcntl-safer.h (openat_safer): Declare.
561         * lib/fcntl--.h (openat): Override.
562         * MODULES.html.sh (File descriptor based I/O): Mention it.
563         * lib/openat.h: Add double-inclusion guards.
564         * lib/openat.c (includes): Only include "fcntl-safer.h", not
565         "fcntl--.h", so we can implement openat.
566         * modules/openat-safer-tests: New test.
567         * tests/test-openat-safer.c: New file.
568
569         dirent-safer: new module
570         * modules/dirent-safer: New file.
571         * lib/dirent--.h: Likewise.
572         * lib/dirent-safer.h: Likewise.
573         * lib/opendir-safer.c: Likewise.
574         * m4/dirent-safer.m4: Likewise.
575         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
576         * modules/dirent-safer-tests: New test.
577         * tests/test-dirent-safer.c: New file.
578         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
579
580         fdopendir: optimize on mingw
581         * lib/unistd.in.h (_gl_directory_name): New prototype.
582         * lib/fchdir.c (_gl_directory_name): Implement it.
583         (fchdir): Use it to simplify implementation.
584         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
585         fchdir, when available, to avoid calling [f]chdir().
586
587         fdopendir: split into its own module
588         * lib/openat.c (fdopendir): Move...
589         * lib/fdopendir.c: ...into new file.
590         * modules/fdopendir: New module.
591         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
592         * modules/openat (Depends-on): Add fdopendir.
593         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
594         fdopendir here.
595         * modules/savedir (Depends-on): Only need fdopendir, not full
596         openat.
597         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
598         * lib/openat.h (fdopendir): Drop prototype.
599         * lib/dirent.in.h (fdopendir): Provide prototype.
600         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
601         * modules/dirent (Makefile.am): Substitute them.
602         * MODULES.html.sh (File system functions): Mention it.
603         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
604         * modules/fdopendir-tests: New file.
605         * tests/test-fdopendir.c: Likewise.
606
607         fchdir: use more consistent macro convention
608         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
609         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
610         REPLACE_FCHDIR, rather than relying on config.h macros.
611         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
612         inside a single make-time REPLACE_FCHDIR block, rather than using
613         the config.h FCHDIR_REPLACEMENT.
614         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
615         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
616         Manage fstat replacement.
617         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
618         REPLACE_FCHDIR.
619         * modules/sys_stat (Files): Add m4/unistd_h.m4.
620         (Makefile.am): Substitute REPLACE_FCHDIR.
621         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
622         FCHDIR_REPLACEMENT.
623         * lib/dup-safer.c (dup_safer): Likewise.
624         * lib/dup2.c (rpl_dup2): Likewise.
625         * lib/dup3.c (rpl_dup3): Likewise.
626         * lib/open.c (rpl_open): Likewise.
627
628         fchdir: simplify error handling, and support dup3
629         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
630         stdbool, malloc-posix, realloc-posix.
631         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
632         (ensure_dirs_slot): Return false on allocation failure.
633         (rpl_dup2): Delete.
634         (_gl_register_dup): New function.
635         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
636         (_gl_register_fd): Close fd on allocation failure.
637         * lib/fcntl.in.h (_gl_register_fd): Update signature.
638         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
639         prototype.
640         (rpl_dup2_fchdir): Delete prototype.
641         * lib/open.c (open): Update caller.
642         * lib/dup2.c (dup2): Track fchdir metadata.
643         * lib/dup3.c (dup3): Likewise.
644         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
645         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
646
647 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
648
649         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
650         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
651         don't pass arguments to AC_OUTPUT.
652
653 2009-09-02  Bruno Haible  <bruno@clisp.org>
654
655         * modules/mkdtemp (License): Relicense under LGPLv2+.
656         Reported by Paolo Bonzini.
657
658 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
659
660         Replace uses of obsolete autoconf macros in Jim's modules.
661         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
662         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
663         can evoke a warning from autoconf when run with -Wobsolete
664         enabled.  They were declared obsolete for good reasons (see
665         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
666         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
667         should not continue using the deprecated macros.
668         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
669         obsolete Autoconf macros with modern counterparts.
670         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
671         * m4/dos.m4 (gl_AC_DOS): Likewise.
672         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
673         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
674         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
675         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
676         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
677         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
678         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
679         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
680         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
681         Likewise.
682         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
683         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
684         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
685         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
686         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
687         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
688
689 2009-09-01  Eric Blake  <ebb9@byu.net>
690
691         fchdir: fix off-by-one bug in previous patch
692         * lib/fchdir.c (rpl_fstat): Use correct bounds.
693         (_gl_unregister_fd): Delete useless if.
694
695 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
696
697         maint.mk: sort the list of syntax-check rules
698         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
699         easier to get a sense of progress when the rules are run sequentially
700         and take a long time.
701
702 2009-09-01  Simon Josefsson  <simon@josefsson.org>
703
704         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
705         * modules/netinet_in: Likewise.
706         * modules/sys_file: Likewise.
707         * modules/sys_ioctl: Likewise.
708         * modules/sys_select: Likewise.
709         * modules/sys_socket: Likewise.
710         * modules/sys_stat: Likewise.
711         * modules/sys_time: Likewise.
712         * modules/sys_times: Likewise.
713         * modules/sys_utsname: Likewise.
714         * modules/sys_wait: Likewise.
715
716 2009-09-01  Jim Meyering  <meyering@redhat.com>
717
718         fts: help ensure that return values are not ignored
719         * lib/fts_.h (__GNUC_PREREQ): Define.
720         (__attribute_warn_unused_result__): Define.
721         (fts_children, fts_close, fts_open, fts_read): Declare with
722         __attribute_warn_unused_result__.
723
724         fts: fts_close now fails also when closing a dir file descriptor fails
725         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
726         and propagate to caller, along with errno.
727
728         announce-gen: correct formatting in --help output
729         * build-aux/announce-gen (usage): Move the one-line description in
730         --help output "up", to where it belongs, just after Usage:.
731
732 2009-08-31  Eric Blake  <ebb9@byu.net>
733
734         fchdir: port to mingw
735         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
736         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
737         opened, then use a substitute.
738         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
739         replacement.
740         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
741         (_gl_register_fd): No need to check stat if open already filters
742         all directories.
743         (fchdir): Fix error condition to match POSIX.
744         * modules/fchdir (Depends-on): Add sys_stat.
745         * doc/posix-functions/open.texi (open): Document the limitation.
746         * modules/fchdir-tests: New file.
747         * tests/test-fchdir.c: Likewise.
748
749         canonicalize: allow cross-testing from cygwin to mingw
750         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
751         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
752         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
753         Likewise.
754         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
755         target does not support symlinks.
756         * tests/test-canonicalize-lgpl.sh: Likewise.
757
758         chown: avoid compilation warning on mingw
759         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
760         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
761         mingw.
762         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
763         * modules/chown (Depends-on): Add errno.
764
765 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
766
767         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
768         command.
769
770 2009-08-31  Jim Meyering  <meyering@redhat.com>
771
772         canonicalize: remove useless initialization
773         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
774         initialization of local, "end".
775
776 2009-08-30  Bruno Haible  <bruno@clisp.org>
777
778         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
779         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
780         ENOSYS.
781
782 2009-08-30  Bruno Haible  <bruno@clisp.org>
783
784         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
785         /usr/xpg4/bin/tr when it exists.
786         * tests/test-pipe-filter-gi1.sh: Likewise.
787
788 2009-08-30  Bruno Haible  <bruno@clisp.org>
789
790         Work around deficient /usr/bin/id program on Solaris.
791         * tests/test-file-has-acl.sh (ID): New variable.
792         * tests/test-set-mode-acl.sh (ID): Likewise.
793         * tests/test-copy-acl.sh (ID): Likewise.
794         * tests/test-copy-file.sh (ID): Likewise.
795
796 2009-08-30  Bruno Haible  <bruno@clisp.org>
797
798         New module 'xstriconveh'.
799         * lib/xstriconveh.h: New file.
800         * lib/xstriconveh.c: New file.
801         * modules/xstriconveh: New file.
802
803 2009-08-30  Bruno Haible  <bruno@clisp.org>
804
805         Make it easier to use mem_cd_iconveh.
806         * lib/striconveh.h (iconveh_t): New type.
807         (iconveh_open, iconveh_close): New declarations.
808         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
809         with a single 'const iconveh_t *' argument.
810         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
811         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
812         with a single 'const iconveh_t *' argument.
813         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
814         * tests/test-striconveh.c (main): Update.
815         * NEWS: Mention the change.
816
817 2009-08-30  Bruno Haible  <bruno@clisp.org>
818
819         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
820         problem.
821
822 2009-08-30  Bruno Haible  <bruno@clisp.org>
823
824         Work around iconv_open problem on Solaris.
825         * lib/iconv_open-solaris.gperf: New file.
826         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
827         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
828         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
829         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
830         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
831         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
832
833 2009-08-29  Jim Meyering  <meyering@redhat.com>
834
835         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
836         * top/maint.mk (cvs-check): Remove target; it was just an alias
837         to the better-named vc-diff-check.
838         (maintainer-distcheck): Remove rule.  It was used only from
839         the (alpha/beta/major) target, and all of its commands but one
840         were coreutils-specific.
841         (vc-dist): Remove rule.
842         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
843         Run vc-diff-check, not vc-dist.
844         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
845
846 2009-08-27  Bruno Haible  <bruno@clisp.org>
847
848         * tests/test-bitrotate.c (main): Remove test that uses a shift count
849         of 0.
850
851 2009-08-27  Bruno Haible  <bruno@clisp.org>
852
853         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
854         compilers.
855         * doc/func.texi: Document the SunPRO C bug.
856
857 2009-08-27  Bruno Haible  <bruno@clisp.org>
858
859         Fix link error on Solaris.
860         * tests/test-parse-duration.c (xstrdup): Remove function.
861
862 2009-08-26  Pádraig Brady  <P@draigbrady.com>
863
864         ignore-value: handle pointer types, too
865         * lib/ignore-value.h (__attribute__): Remove definition.
866         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
867         of a more concise and more-often effective "(void) i" statement.
868         (ignore_ptr): New function to suppress warnings from functions that
869         return pointers, and to make it explicit that one function doesn't
870         handle all cases.
871
872 2009-08-25  Bruno Haible  <bruno@clisp.org>
873
874         dup2: work around a Linux bug.
875         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
876         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
877         * doc/posix-functions/dup2.texi: Mention the Linux bug.
878         Reported by Simon Josefsson.
879
880 2009-08-25  Jim Meyering  <meyering@redhat.com>
881
882         libguestfs uses gnulib
883         * users.txt: Add libguestfs.
884
885 2009-08-24  Eric Blake  <ebb9@byu.net>
886
887         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
888         * lib/pipe2.c (includes): Add binary-io.h.
889         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
890
891 2009-08-24  Bruno Haible  <bruno@clisp.org>
892
893         Tolerate declared but missing accept4 syscall.
894         * lib/accept4.c (accept4): Invoke original accept4 function first, if
895         available.
896         * lib/sys_socket.in.h (accept4): If the function is already present,
897         override it.
898         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
899         * modules/accept4 (Makefile.am): Compile accept4.c always.
900         Reported by Paolo Bonzini and Eric Blake.
901
902 2009-08-23  Bruno Haible  <bruno@clisp.org>
903
904         New module 'accept4'.
905         * lib/sys_socket.in.h (accept4): New declaration.
906         * lib/accept4.c: New file.
907         * m4/accept4.m4: New file.
908         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
909         GNULIB_ACCEPT4, HAVE_ACCEPT4.
910         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
911         HAVE_ACCEPT4.
912         * modules/accept4: New file.
913         * doc/glibc-functions/accept4.texi: Mention the new module.
914
915 2009-08-24  Jim Meyering  <meyering@redhat.com>
916
917         progname: also set global program_invocation_name, when possible
918         Before this change, a libtool-enabled program that calls glibc's
919         error function would report the program name as
920         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
921         * modules/progname (configure.ac): Check for a declaration of
922         program_invocation_name.
923         * lib/progname.c:  Include <errno.h>.
924         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
925         Set program_invocation_name.
926
927 2009-08-23  Bruno Haible  <bruno@clisp.org>
928
929         * lib/dup3.c: Include <string.h>.
930
931 2009-08-23  Bruno Haible  <bruno@clisp.org>
932
933         * lib/dup3.c (dup3): Test only once whether the system actually exists.
934         * lib/pipe2.c (pipe2): Likewise.
935         Suggested by Eric Blake.
936
937 2009-08-23  Bruno Haible  <bruno@clisp.org>
938
939         Tolerate declared but missing dup3 syscall.
940         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
941         * lib/unistd.in.h (dup3): If the function is already present,
942         override it.
943         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
944         * modules/dup3 (Makefile.am): Compile dup3.c always.
945         Reported by Paolo Bonzini.
946
947 2009-08-23  Bruno Haible  <bruno@clisp.org>
948
949         Tolerate declared but missing pipe2 syscall.
950         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
951         available.
952         * lib/unistd.in.h (pipe2): If the function is already present,
953         override it.
954         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
955         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
956         Reported by Paolo Bonzini.
957
958 2009-08-23  Bruno Haible  <bruno@clisp.org>
959
960         * lib/pipe2.c (pipe2): Move #ifs inside function.
961
962 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
963
964         quotearg: document limitations of quote_these_too
965         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
966         those limitations are created.
967         * lib/quotearg.h (set_char_quoting): Document that digits and
968         letters that are special after backslash are not permitted.
969         (quotearg_char): Cross-reference set_char_quoting documentation.
970
971 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
972
973         quotearg: implement custom_quoting_style
974         * lib/quotearg.c: (struct quoting_options): Add left_quote and
975         right_quote fields.
976         (set_custom_quoting): New public function.
977         (quotearg_buffer_restyled): Add left_quote and right_quote
978         arguments, handle them very much like locale quoting, and update
979         all uses.
980         (quotearg_n_custom): New public function.
981         (quotearg_n_custom_mem): New public function.
982         (quotearg_custom): New public function.
983         (quotearg_custom_mem): New public function.
984         * lib/quotearg.h: Prototype and document new public functions.
985         (enum quoting_style): For escape_quoting_style and
986         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
987         ignored even though they're otherwise like c_quoting_style.
988         Add custom_quoting_style member and document with comparison to
989         clocale_quoting_style.
990         * tests/test-quotearg.c (custom_quotes): New array.
991         (custom_results): New array.
992         (main): Extend to test custom quoting.
993
994 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
995
996         quotearg: fix right quote escaping when it's in quote_these_too
997         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
998         quote, be sure to prepend only one backslash.
999         * tests/test-quotearg.c (use_quote_double_quotes): New function.
1000         (main): Test it.
1001
1002 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
1003
1004         quotearg-tests: test escaping of embedded locale quotes
1005         * tests/test-quotearg.c (struct result_strings): Add member for
1006         new input.
1007         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
1008         (inputs): Add new input.
1009         (results_g): Add expected results.
1010         (flag_results): Likewise.
1011         (locale_results): Likewise.
1012         (compare_strings): Check those.
1013
1014 2009-08-23  Bruno Haible  <bruno@clisp.org>
1015
1016         Tests for module 'dup3'.
1017         * modules/dup3-tests: New file.
1018         * tests/test-dup3.c: New file.
1019
1020         New module 'dup3'.
1021         * lib/unistd.in.h (dup3): New declaration.
1022         * lib/dup3.c: New file.
1023         * m4/dup3.m4: New file.
1024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
1025         HAVE_DUP3.
1026         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
1027         * modules/dup3: New file.
1028         * doc/glibc-functions/dup3.texi: Mention the new module.
1029
1030 2009-08-23  Bruno Haible  <bruno@clisp.org>
1031
1032         Tweak the dup2 test.
1033         * tests/test-dup2.c (main): Create the test file empty. Verify that an
1034         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
1035         the test file is still empty. Fix argument order of lseek.
1036
1037 2009-08-23  Bruno Haible  <bruno@clisp.org>
1038
1039         Avoid test link errors when the modules getopt-gnu, gettext are used.
1040         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
1041         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1042
1043 2009-08-23  Bruno Haible  <bruno@clisp.org>
1044
1045         Fix getdtablesize() on mingw.
1046         * lib/getdtablesize.c (getdtablesize): Implement differently.
1047         * lib/unistd.in.h (getdtablesize): Improve comment.
1048
1049 2009-08-23  Bruno Haible  <bruno@clisp.org>
1050
1051         New module 'mkostemp'.
1052         Based on Ulrich Drepper's 2007-08-10 change in glibc.
1053         * lib/stdlib.in.h (mksotemp): New declaration.
1054         * lib/mkostemp.c: New file, from glibc with modifications.
1055         * lib/tempname.h (GT_FILE): Remove outdated comment.
1056         (gen_tempname): Add flags argument.
1057         * lib/tempname.c (__GT_BIGFILE): Remove macro.
1058         (__GT_FILE): Map to 1.
1059         (small_open, large_open): Remove macros.
1060         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
1061         * lib/mkstemp.c (mkstemp): Update.
1062         * lib/mkdtemp.c (mkdtemp): Likewise.
1063         * m4/mkostemp.m4: New file.
1064         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
1065         HAVE_MKOSTEMP.
1066         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
1067         HAVE_MKOSTEMP.
1068         * modules/mkostemp: New file, based on modules/mkstemp.
1069         * doc/glibc-functions/mkostemp.texi: Mention the new module.
1070         * NEWS: Mention the change.
1071
1072 2009-08-23  Bruno Haible  <bruno@clisp.org>
1073
1074         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
1075         Reported by Eric Blake.
1076
1077 2009-08-23  Bruno Haible  <bruno@clisp.org>
1078
1079         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
1080         Reported by Eric Blake.
1081
1082 2009-08-23  Bruno Haible  <bruno@clisp.org>
1083
1084         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
1085         * modules/pipe2 (Depends-on): Likewise.
1086
1087 2009-08-23  Eric Blake  <ebb9@byu.net>
1088
1089         fcntl-h: add O_TTY_INIT support
1090         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
1091         * tests/test-fcntl-h.c (o): Test it.
1092         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
1093
1094         fcntl-h: rename from fcntl, in preparation for fcntl(2)
1095         * modules/fcntl: Move <fcntl.h> header replacement...
1096         * modules/fcntl-h: ...to new name, so as not to collide with
1097         like-named function.
1098         * tests/test-fcntl.c: Rename...
1099         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
1100         * modules/fcntl-tests: Rename...
1101         * modules/fcntl-h-tests: ...to this.  Update test file name.
1102         * modules/chdir-long (Depends-on): Update clients.
1103         * modules/chdir-safer (Depends-on): Likewise.
1104         * modules/fcntl-safer (Depends-on): Likewise.
1105         * modules/fts (Depends-on): Likewise.
1106         * modules/mkancesdirs (Depends-on): Likewise.
1107         * modules/mkdir-p (Depends-on): Likewise.
1108         * modules/open (Depends-on): Likewise.
1109         * modules/savewd (Depends-on): Likewise.
1110         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
1111         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
1112
1113 2009-08-22  Bruno Haible  <bruno@clisp.org>
1114
1115         * modules/binary-io (License): Relicense under LGPL.
1116         * modules/pipe2 (License): Likewise.
1117
1118 2009-08-22  Bruno Haible  <bruno@clisp.org>
1119
1120         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
1121         return value.
1122         * lib/pipe-filter-gi.c (filter_init): Likewise.
1123         Reported by Eric Blake.
1124
1125 2009-08-22  Bruno Haible  <bruno@clisp.org>
1126
1127         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
1128         * modules/pipe (Depends-on): Add pipe2.
1129
1130 2009-08-22  Bruno Haible  <bruno@clisp.org>
1131
1132         Tests for module 'pipe2'.
1133         * modules/pipe2-tests: New file.
1134         * tests/test-pipe2.c: New file.
1135
1136         New module 'pipe2'.
1137         * lib/unistd.in.h (pipe2): New declaration.
1138         * lib/pipe2.c: New file.
1139         * m4/pipe2.m4: New file.
1140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
1141         HAVE_PIPE2.
1142         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
1143         * modules/pipe2: New file.
1144         * doc/glibc-functions/pipe2.texi: Mention the new module.
1145
1146 2009-08-22  Bruno Haible  <bruno@clisp.org>
1147
1148         Reference some new glibc functions.
1149         * doc/glibc-functions/accept4.texi: New file.
1150         * doc/glibc-functions/dup3.texi: New file.
1151         * doc/glibc-functions/mkostemp.texi: New file.
1152         * doc/glibc-functions/pipe2.texi: New file.
1153         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
1154         (Glibc sys/socket.h): Refer to accept4.
1155         (Glibc unistd.h): Refer to dup3, pipe2.
1156         Reported by Eric Blake.
1157
1158 2009-08-22  Jim Meyering  <meyering@redhat.com>
1159             Bruno Haible  <bruno@clisp.org>
1160
1161         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
1162         This makes it so packages using automake-1.11's silent-rules option
1163         can print e.g., a single "GEN    configmake.h" line, rather than
1164         the 30+ statements that perform the job.  If you want to see the
1165         actual commands, you can still run "make V=1".
1166         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
1167         so that make output is abbreviated when those variables are defined
1168         appropriately.
1169         * modules/argz: Likewise.
1170         * modules/arpa_inet: Likewise.
1171         * modules/byteswap: Likewise.
1172         * modules/configmake: Likewise.
1173         * modules/dirent: Likewise.
1174         * modules/errno: Likewise.
1175         * modules/fcntl: Likewise.
1176         * modules/float: Likewise.
1177         * modules/fnmatch: Likewise.
1178         * modules/getopt-posix: Likewise.
1179         * modules/glob: Likewise.
1180         * modules/iconv_open: Likewise.
1181         * modules/inttypes: Likewise.
1182         * modules/localcharset: Likewise.
1183         * modules/locale: Likewise.
1184         * modules/math: Likewise.
1185         * modules/netdb: Likewise.
1186         * modules/netinet_in: Likewise.
1187         * modules/poll: Likewise.
1188         * modules/posix_spawnp-tests: Likewise.
1189         * modules/sched: Likewise.
1190         * modules/search: Likewise.
1191         * modules/selinux-h: Likewise.
1192         * modules/signal: Likewise.
1193         * modules/spawn: Likewise.
1194         * modules/stdarg: Likewise.
1195         * modules/stdbool: Likewise.
1196         * modules/stddef: Likewise.
1197         * modules/stdint: Likewise.
1198         * modules/stdio: Likewise.
1199         * modules/stdlib: Likewise.
1200         * modules/string: Likewise.
1201         * modules/strings: Likewise.
1202         * modules/sys_file: Likewise.
1203         * modules/sys_ioctl: Likewise.
1204         * modules/sys_select: Likewise.
1205         * modules/sys_socket: Likewise.
1206         * modules/sys_stat: Likewise.
1207         * modules/sys_time: Likewise.
1208         * modules/sys_times: Likewise.
1209         * modules/sys_utsname: Likewise.
1210         * modules/sys_wait: Likewise.
1211         * modules/sysexits: Likewise.
1212         * modules/time: Likewise.
1213         * modules/unistd: Likewise.
1214         * modules/wchar: Likewise.
1215         * modules/wctype: Likewise.
1216
1217 2009-08-22  Jim Meyering  <meyering@redhat.com>
1218
1219         announce-gen: detect write failure
1220         * build-aux/announce-gen: Add Coda at end.
1221         Remove equivalent-but-more-verbose block at top.
1222
1223 2009-08-19  Akim Demaille  <demaille@gostai.com>
1224
1225         bootstrap: --help to stdout.
1226         * bootstrap (usage): Don't send --help to stderr.
1227         Use a here doc instead of a long string.
1228
1229 2009-08-21  Eric Blake  <ebb9@byu.net>
1230
1231         test-popen-safer: split from test-popen
1232         * tests/test-popen.c (main): Move...
1233         * tests/test-popen.h: ...into new file.
1234         * tests/test-popen-safer2.c: New file.
1235         * modules/popen-tests (Files): Add test-popen.h.
1236         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
1237         Suggested by Bruno Haible.
1238
1239         test-fcntl-safer: split from test-open
1240         * tests/test-open.c (main): Move...
1241         * tests/test-open.h: ...into new file.
1242         * tests/test-fcntl-safer.c: New file.
1243         * modules/open-tests (Files): Add test-open.h.
1244         * modules/fcntl-safer-tests: New file.
1245         Suggested by Bruno Haible.
1246
1247         test-fopen-safer: split from test-fopen
1248         * tests/test-fopen.c (main): Move...
1249         * tests/test-fopen.h: ...into new file.
1250         * tests/test-fopen-safer.c: New file.
1251         * modules/fopen-tests (Files): Add test-fopen.h.
1252         * modules/fopen-safer-tests: New file.
1253         Suggested by Bruno Haible.
1254
1255 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
1256
1257         popen-safer: test O_CLOEXEC at run-time.
1258         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
1259
1260 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
1261
1262         fcntl: move more flags to the header
1263         * lib/cloexec.c: Do not define FD_CLOEXEC here.
1264         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
1265         * lib/fcntl.in.h: Do both things here.
1266
1267 2009-08-21  Jim Meyering  <meyering@redhat.com>
1268
1269         consistently remove $@-t before redirecting to it
1270         * modules/argz: Remove $@-t and $@ before redirecting to the former.
1271         * modules/alloca-opt: Likewise.
1272         * modules/byteswap: Likewise.
1273         * modules/fnmatch: Likewise.
1274         * modules/getopt-posix: Likewise.
1275         * modules/glob: Likewise.
1276         * modules/poll: Likewise.
1277         * modules/posix_spawnp-tests: Likewise.
1278         * modules/sys_socket: Likewise.
1279         * modules/sysexits: Likewise.
1280
1281 2009-08-21  Eric Blake  <ebb9@byu.net>
1282
1283         popen: simplify access to original popen
1284         * lib/popen.c (rpl_popen): No need to worry about popen being a
1285         macro.
1286         Reported by Bruno Haible.
1287
1288 2009-08-20  Eric Blake  <ebb9@byu.net>
1289
1290         build: avoid some compiler warnings
1291         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
1292         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
1293         type.
1294         (new_exclude_segment, excluded_file_pattern_p)
1295         (excluded_file_name_p): Reduce scope.
1296         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
1297         old-style declaration.
1298
1299 2009-08-20  Simon Josefsson  <simon@josefsson.org>
1300
1301         * tests/test-exclude1.sh: Handle Windows EOL.
1302         * tests/test-exclude2.sh: Likewise.
1303         * tests/test-exclude3.sh: Likewise.
1304         * tests/test-exclude4.sh: Likewise.
1305         * tests/test-exclude5.sh: Likewise.
1306         * tests/test-exclude6.sh: Likewise.
1307         * tests/test-exclude7.sh: Likewise.
1308
1309 2009-08-19  Akim Demaille  <demaille@gostai.com>
1310
1311         bootstrap: find sha1sum when named gsha1sum.
1312         * bootstrap (find_tool): New.
1313         ($SHA1SUM): New.
1314         Use it.
1315
1316 2009-08-20  Jim Meyering  <meyering@redhat.com>
1317
1318         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
1319         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
1320         expression that converts "." in a file name to "\." in the resulting
1321         regexp.  Start with a dummy statement, so that prior shell variable
1322         definitions are expanded portably.  Reported by Simon Josefsson.
1323
1324 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
1325
1326         Fix polling for writeability of a screen buffer.
1327         * lib/poll.c: Distinguish input and screen buffers for the
1328         Win32 implementation.
1329         * lib/select.c: Likewise.
1330
1331 2009-08-19  Eric Blake  <ebb9@byu.net>
1332
1333         popen-safer: prevent popen from clobbering std descriptors
1334         * modules/popen-safer: New file.
1335         * lib/popen-safer.c: Likewise.
1336         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
1337         * lib/stdio--.h (popen): Provide override.
1338         * lib/stdio-safer.h (popen_safer): Provide declaration.
1339         * tests/test-popen.c (includes): Partially test this.
1340         * modules/popen-safer-tests: New file, for more tests.
1341         * tests/test-popen-safer.c: Likewise.
1342         * MODULES.html.sh (file stream based Input/Output): Mention it.
1343
1344         tests: test some of the *-safer modules
1345         * modules/fopen-safer (Depends-on): Add fopen.
1346         * modules/fcntl-safer (Depends-on): Add fcntl.
1347         * modules/stdlib-safer (Depends-on): Add stdlib.
1348         (configure.ac): Set indicator.
1349         * modules/unistd-safer (configure.ac): Likewise.
1350         * modules/tmpfile-safer (configure.ac): Likewise.
1351         (Depends-on): Add tmpfile.
1352         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
1353         active.
1354         * tests/test-fopen.c (includes): Test safer versions when they are
1355         in use.
1356         * tests/test-open.c (includes): Likewise.
1357
1358         popen: fix cygwin 1.5 bug when stdin closed
1359         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
1360         * modules/popen: New file.
1361         * modules/popen-tests: Likewise.
1362         * tests/test-popen.c: Likewise.
1363         * m4/popen.m4: Likewise.
1364         * lib/popen.c: Likewise.
1365         * lib/stdio.in.h (popen): New declaration.
1366         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
1367         * modules/stdio (Makefile.am): Likewise.
1368         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
1369
1370 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
1371
1372         maint.mk: give full control over update-copyright exclusions
1373         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
1374         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
1375         (update-copyright): Don't force inclusion of top-level
1376         ChangeLog.  Don't force exclusion of all COPYING files, but make
1377         them the default exclusion instead.
1378
1379 2009-08-16  Bruno Haible  <bruno@clisp.org>
1380
1381         Fix test failures on Solaris 10.
1382         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
1383         tests when Solaris iconv() is used.
1384         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
1385         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
1386         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
1387         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
1388         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
1389
1390 2009-08-16  Bruno Haible  <bruno@clisp.org>
1391
1392         Fix test failures on Solaris 10.
1393         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
1394         'tr' program and pass it as first argument.
1395         * tests/test-pipe-filter-gi1.sh: Likewise.
1396         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
1397         program as first argument.
1398         * tests/test-pipe-filter-gi1.c (main): Likewise.
1399
1400 2009-08-16  Eric Blake  <ebb9@byu.net>
1401
1402         fpurge: fix previous commits
1403         * modules/fpurge (Makefile.am): Make replacement conditional,
1404         partially reverting 2007-04-29 change; missed in previous
1405         attempt.
1406         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
1407         is missing.
1408
1409 2009-08-16  Bruno Haible  <bruno@clisp.org>
1410
1411         Clarify fpurge's effect on the file position.
1412         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
1413         * tests/test-fpurge.c (main): Make a second pass for checking the file
1414         position.
1415
1416 2009-08-16  Bruno Haible  <bruno@clisp.org>
1417
1418         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
1419         declaration of fpurge is missing.
1420         * tests/test-fpurge.c (main): Check that the file has not more contents
1421         than expected. Close the file before removing it.
1422
1423 2009-08-15  Eric Blake  <ebb9@byu.net>
1424
1425         fpurge: don't wrap working cygwin implementation
1426         * lib/fpurge.c (fpurge): Fix comment typo.
1427         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
1428         1.7 to avoid replacement.
1429         * tests/test-fpurge.c (main): Enhance test.
1430
1431 2009-08-15  Eric Blake  <ebb9@byu.net>
1432         and Jim Meyering  <meyering@redhat.com>
1433
1434         test-update-copyright: skip if perl is insufficient
1435         * tests/test-update-copyright.sh: Failure to run maintainer tool
1436         should not cause testsuite failure on cygwin 1.5.
1437
1438 2009-08-14  Eric Blake  <ebb9@byu.net>
1439
1440         doc: mention more functions added in cygwin 1.7.0
1441         * doc/posix-headers/limits.texi (limits.h): Update for recent
1442         cygwin additions.
1443         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
1444         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
1445         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
1446         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
1447         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
1448
1449 2009-08-14  Eric Blake  <ebb9@byu.net>
1450
1451         maint.mk: simplify update-copyright rule
1452         * top/maint.mk (update-copyright-local): Delete, and document how
1453         to do it in cfg.mk instead.
1454         (update-copyright-exclude-regexp): Delete, and document how to do
1455         it in .x-update-copyright instead.
1456         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
1457         exclude ChangeLog.
1458
1459 2009-08-14  Bruno Haible  <bruno@clisp.org>
1460
1461         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
1462
1463 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
1464
1465         maint.mk: support update-copyright-env
1466         * top/maint.mk (update-copyright-env): Define place-holder.
1467         (update-copyright): Expand $(update-copyright-env) before
1468         invoking update-copyright.
1469
1470 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
1471
1472         update-copyright: implement forced reformatting
1473         * build-aux/update-copyright: Implement and document
1474         UPDATE_COPYRIGHT_FORCE.
1475         * tests/test-update-copyright.sh: Test it.
1476
1477 2009-08-14  Eric Blake  <ebb9@byu.net>
1478         and Bruno Haible  <bruno@clisp.org>
1479
1480         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
1481         * tests/test-locale.c: Revert previous patch related to NULL.
1482         * tests/test-stdio.c: Likewise.
1483         * tests/test-stdlib.c: Likewise.
1484         * tests/test-string.c: Likewise.
1485         * tests/test-unistd.c: Likewise.
1486         * modules/time-tests (Depends-on): Add verify.
1487         * modules/wchar-tests (Depends-on): Likewise.
1488         * tests/test-time.c: Test for NULL compliance.
1489         * tests/test-wchar.c: Likewise.
1490         * modules/locale (Depends-on): Add stddef.
1491         * modules/stdio (Depends-on): Likewise.
1492         * modules/stdlib (Depends-on): Likewise.
1493         * modules/string (Depends-on): Likewise.
1494         * modules/time (Depends-on): Likewise.
1495         * modules/unistd (Depends-on): Likewise.
1496         * modules/wchar (Depends-on): Likewise.
1497         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
1498         * lib/stdlib.in.h (includes): Likewise.
1499         * lib/string.in.h (includes): Likewise.
1500         * lib/time.in.h (includes): Likewise.
1501         * lib/unistd.in.h (includes): Likewise.
1502         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
1503         replaced.
1504         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
1505         * m4/stddef_h.m4: New file.
1506         * modules/stddef: Likewise.
1507         * lib/stddef.in.h: Likewise.
1508         * modules/stddef-tests: Likewise.
1509         * tests/test-stddef.c: Likewise.
1510         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
1511         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
1512         * doc/posix-headers/locale.texi (locale.h): Likewise.
1513         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
1514         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
1515         * doc/posix-headers/string.texi (string.h): Likewise.
1516         * doc/posix-headers/time.texi (time.h): Likewise.
1517         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
1518         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
1519
1520 2009-08-14  Eric Blake  <ebb9@byu.net>
1521
1522         doc: improve git diff of texinfo files
1523         * .gitattributes: Add rule for *.texi files, with hint on how to
1524         use it.
1525         Copied from m4, and based on a report by Bruno Haible.
1526
1527 2009-08-14  Bruno Haible  <bruno@clisp.org>
1528
1529         Disable multithread support by default on Cygwin 1.5.x for real.
1530         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
1531
1532 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
1533
1534         update-copyright: much ado about intervals
1535         * build-aux/update-copyright: Implement and document
1536         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
1537         of copyright year intervals.
1538         Also, document UPDATE_COPYRIGHT_YEAR.
1539         * tests/test-update-copyright.sh: Test it.
1540
1541         update-copyright: convert 2-digit to 4-digit years
1542         * build-aux/update-copyright: Implement and document.
1543         * tests/test-update-copyright.sh: Update.
1544
1545 2009-08-14  Jim Meyering  <meyering@redhat.com>
1546
1547         test-exclude: avoid coreutils "make check" failure
1548         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
1549         just as in test-argmatch.c.
1550
1551 2009-08-13  Eric Blake  <ebb9@byu.net>
1552
1553         test-dup2: fix bad assumption
1554         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
1555         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
1556
1557         test-version-etc: fix CRLF portability issue
1558         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
1559         recognize \r.
1560         * tests/test-argp-version-etc-1.sh: Likewise.
1561
1562         getopt: update client modules
1563         * modules/argp (Depends-on): Use getopt-gnu.
1564         * modules/git-merge-changelog (Depends-on): Likewise.
1565         * modules/long-options (Depends-on): Likewise.
1566         * modules/xstrtol (Depends-on): Likewise.
1567
1568 2009-08-13  Simon Josefsson  <simon@josefsson.org>
1569
1570         * tests/test-version-etc.sh: Don't fail on different
1571         project/version.  Don't fail on CRLF differences.  Rewrite to use
1572         multiple -e instead of multiple sed forks, suggested by Eric Blake
1573         <ebb9@byu.net>.
1574         * tests/test-argp-version-etc-1.sh: Likewise.
1575
1576 2009-08-13  Simon Josefsson  <simon@josefsson.org>
1577
1578         * tests/test-version-etc.sh: Don't fail on different
1579         project/version.
1580
1581 2009-08-12  Bruno Haible  <bruno@clisp.org>
1582
1583         Tests for modules 'getopt-posix', 'getopt-gnu'.
1584         * modules/getopt-posix-tests: New file.
1585         * tests/test-getopt.c: New file.
1586         * tests/test-getopt.h: New file.
1587         * tests/test-getopt_long.h: New file.
1588
1589         New modules 'getopt-posix', 'getopt-gnu'.
1590         * modules/getopt-gnu: New file, renamed from modules/getopt.
1591         * modules/getopt-posix: New file.
1592         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
1593         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
1594         (gl_GETOPT): Remove macro.
1595         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
1596         Disable the test against BSD systems that declare optreset. Test
1597         against mingw bug. Test against lack of support of optional arguments
1598         on many platforms.
1599         * doc/glibc-headers/getopt.texi: Update module name and list of
1600         relevant platforms.
1601         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
1602         'getopt-gnu' and more portability problems.
1603         * NEWS: Mention the changes.
1604
1605 2009-08-12  Bruno Haible  <bruno@clisp.org>
1606
1607         Ensure that optarg etc. get declared by <unistd.h>.
1608         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
1609         AC_USE_SYSTEM_EXTENSIONS.
1610         * modules/getopt (Depends-on): Add 'extensions'.
1611
1612 2009-08-12  Bruno Haible  <bruno@clisp.org>
1613
1614         Avoid test link errors.
1615         * modules/pipe-filter-ii-tests (Makefile.am): Define
1616         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
1617         * modules/pipe-filter-gi-tests (Makefile.am): Define
1618         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
1619         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1620
1621 2009-08-12  Bruno Haible  <bruno@clisp.org>
1622
1623         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
1624         gl_GETOPT_SUBSTITUTE before.
1625         (gl_GETOPT): Use it.
1626         * m4/argp.m4 (gl_ARGP): Update.
1627         Reported by Sergey Poznyakoff.
1628
1629         * m4/getopt.m4: Reorder macros.
1630         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
1631         (gl_GETOPT_SUBSTITUTE): Remove macro.
1632
1633 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
1634
1635         Minor improvement in gitlog-to-changelog
1636
1637         * build-aux/gitlog-to-changelog: New option `--format' makes
1638         output format string configurable.
1639
1640 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
1641
1642         Optimize exclude: use hash tables for non-wildcard patterns.
1643
1644         * lib/exclude.c: Include hash.h and mbuiter.h
1645         (struct exclude_pattern, exclude_segment): New data types.
1646         (struct exclude): Rewrite.
1647         (fnmatch_pattern_has_wildcards): New function.
1648         (new_exclude_segment, free_exclude_segment): New functions.
1649         (excluded_file_pattern_p, excluded_file_name_p): New functions.
1650         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
1651         * lib/exclude.h (is_fnmatch_pattern): New prototype.
1652         * modules/exclude: Depend on hash and mbuiter.
1653
1654         * modules/exclude-tests: New file.
1655         * tests/test-exclude.c: New file.
1656         * tests/test-exclude1.sh: New file.
1657         * tests/test-exclude2.sh: New file.
1658         * tests/test-exclude3.sh: New file.
1659         * tests/test-exclude4.sh: New file.
1660         * tests/test-exclude5.sh: New file.
1661         * tests/test-exclude6.sh: New file.
1662         * tests/test-exclude7.sh: New file.
1663
1664 2009-08-12  Bruno Haible  <bruno@clisp.org>
1665
1666         Ensure that getopt() gets declared by <unistd.h>.
1667         * lib/unistd.in.h: Conditionally include getopt.h.
1668         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
1669         Set GNULIB_UNISTD_H_GETOPT.
1670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1671         GNULIB_UNISTD_H_GETOPT.
1672         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
1673
1674 2009-08-12  Bruno Haible  <bruno@clisp.org>
1675
1676         Clarify logic.
1677         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
1678         gl_replace_getopt instead of GETOPT_H.
1679
1680 2009-08-12  Bruno Haible  <bruno@clisp.org>
1681
1682         * m4/getopt.m4: Add comments.
1683
1684 2009-08-12  Bruno Haible  <bruno@clisp.org>
1685
1686         Disable multithread support by default on Cygwin 1.5.x.
1687         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
1688         set gl_use_threads=no if not specified otherwise.
1689
1690 2009-08-11  Bruno Haible  <bruno@clisp.org>
1691
1692         Avoid compilation error on NetBSD 5.0.
1693         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
1694         * tests/test-stdio.c: Likewise.
1695         * tests/test-stdlib.c: Likewise.
1696         * tests/test-string.c: Likewise.
1697         * tests/test-unistd.c: Likewise.
1698         Reported by Greg Troxel <gdt@ir.bbn.com>
1699         at <https://savannah.gnu.org/support/?106973>.
1700
1701 2009-08-11  Bruno Haible  <bruno@clisp.org>
1702
1703         * modules/dup2-tests (Depends-on): Remove close.
1704
1705         Undo 2009-07-19 commit.
1706         * modules/acl-tests (Depends-on): Remove close.
1707         * modules/binary-io-tests (Depends-on): Likewise.
1708         * modules/closein-tests (Depends-on): Likewise.
1709         * modules/flock-tests (Depends-on): Likewise.
1710         * modules/fsync-tests (Depends-on): Likewise.
1711         * modules/lseek-tests (Depends-on): Likewise.
1712         * modules/pipe-tests (Depends-on): Likewise.
1713         * modules/posix_spawn-tests (Depends-on): Likewise.
1714         * modules/posix_spawnp-tests (Depends-on): Likewise.
1715         * modules/stat-time-tests (Depends-on): Likewise.
1716         * modules/yesno-tests (Depends-on): Likewise.
1717
1718 2009-08-10  Bruno Haible  <bruno@clisp.org>
1719
1720         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
1721
1722 2009-08-10  Bruno Haible  <bruno@clisp.org>
1723
1724         Fix a gcc warning.
1725         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
1726
1727 2009-08-10  Bruno Haible  <bruno@clisp.org>
1728
1729         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
1730         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
1731         not only the first time.
1732         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
1733         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
1734         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
1735         is 1, not only the the first time.
1736
1737 2009-08-10  Bruno Haible  <bruno@clisp.org>
1738
1739         Make it possible to use module 'gethostname' without module 'close'.
1740         * lib/unistd.in.h (close): Evoke a link error only if
1741         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
1742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1743         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
1744         * modules/unistd (Makefile.am): Substitute
1745         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
1746         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
1747         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
1748         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
1749         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
1750         * modules/sys_ioctl (Makefile.am): Substitute
1751         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
1752         * modules/socket (configure.ac): On native Windows, set
1753         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
1754         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
1755         Reported by Sam Steingold <sds@gnu.org>.
1756
1757 2009-08-10  Bruno Haible  <bruno@clisp.org>
1758
1759         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
1760         * modules/ioctl (configure.ac): Likewise.
1761
1762 2009-08-10  Bruno Haible  <bruno@clisp.org>
1763
1764         Avoid collision between gnulib wrapper and libintl wrapper.
1765         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
1766         already defined in intl/printf.c.
1767         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
1768         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
1769
1770 2009-08-09  Bruno Haible  <bruno@clisp.org>
1771
1772         Make <sys/select.h> really self-contained, also on Solaris 10.
1773         * lib/sys_select.in.h: Include <string.h>.
1774         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
1775         Solaris 10 problem.
1776         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
1777         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
1778         Reported by Jim Meyering.
1779
1780 2009-08-09  Bruno Haible  <bruno@clisp.org>
1781
1782         Avoid warnings from 'aclocal' that are due to a use of macro name
1783         AM_XGETTEXT_OPTION that is not defined in automake.
1784         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
1785         automake.
1786         * modules/error (configure.ac): Likewise.
1787         * modules/propername (configure.ac): Likewise.
1788         * modules/vasprintf (configure.ac): Likewise.
1789         * modules/verror (configure.ac): Likewise.
1790         * modules/xprintf (configure.ac): Likewise.
1791         * modules/xvasprintf (configure.ac): Likewise.
1792
1793 2009-08-08  Bruno Haible  <bruno@clisp.org>
1794
1795         Avoid compilation error in C++ mode.
1796         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
1797         Reported by Sam Steingold <sds@gnu.org>.
1798
1799 2009-08-08  Bruno Haible  <bruno@clisp.org>
1800
1801         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
1802         for the various Unix platforms.
1803         * doc/posix-headers/limits.texi: Update platforms list regarding
1804         HOST_NAME_MAX.
1805         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1806
1807 2009-08-07  Jim Meyering  <meyering@redhat.com>
1808
1809         selinux-at: fix typo in a comment
1810         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
1811         Spotted by Paolo Bonzini.
1812
1813         selinux-at: remove redundant m4 code, add documentation
1814         * modules/selinux-at (configure.ac): Remove redundant code.
1815         LIB_SELINUX is already set via the dependent module, selinux-h.
1816         (Include): Add quotes around selinux-at.h.
1817         * lib/selinux-at.h: Add documentation.
1818         Reported by Bruno Haible in
1819         http://marc.info/?l=gnulib-bug&m=124958988300749
1820
1821 2009-08-07  Bruno Haible  <bruno@clisp.org>
1822
1823         Avoid link error on MacOS X 10.3 and 10.4.
1824         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
1825         on non-ELF systems.
1826         * lib/argp-pv.c (argp_program_version): Likewise.
1827         Reported by Simon Josefsson.
1828
1829 2009-08-07  Simon Josefsson  <simon@josefsson.org>
1830
1831         * tests/test-version-etc.sh: Use $EXEEXT.
1832
1833 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
1834
1835         update-copyright: update documentation to point to maint.mk
1836         * build-aux/update-copyright: Here.
1837
1838 2009-08-06  Jim Meyering  <meyering@redhat.com>
1839
1840         maint.mk: support update-copyright-local
1841         * top/maint.mk (update-copyright-local): Define place-holder.
1842         (update-copyright): Depend on $(update-copyright-local).
1843
1844 2009-08-06  Jim Meyering  <meyering@redhat.com>
1845
1846         selinux-at: new module
1847         Initially written for coreutils, this module will soon be
1848         used by findutils, too.
1849         * MODULES.html.sh [Misc]: Add selinux-at.
1850         * lib/selinux-at.h: New file, from coreutils.
1851         * lib/selinux-at.c: Likewise.
1852         * modules/selinux-at: Likewise.
1853         (License): Change from LGPL to GPL, since it depends
1854         on the GPL'd openat module.
1855
1856         doc: update README
1857         * README: Remove references to cogito.
1858         Remove cvs-repo-updating instructions from 2007.
1859         Don't imply that CVS is better if you have limited disk space.
1860
1861 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
1862
1863         update-copyright: support C-style comments
1864         * build-aux/update-copyright: Implement and document.
1865         * tests/test-update-copyright.sh: Test.
1866
1867 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
1868
1869         update-copyright: support omitted "(C)"
1870         * build-aux/update-copyright: Implement and document.  Also,
1871         allow variable whitespace before "(C)".
1872         * tests/test-update-copyright.sh: Test.
1873
1874 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
1875
1876         update-copyright: don't trip on non-FSF copyright statements
1877         * build-aux/update-copyright: Fix so that the first correctly
1878         formatted FSF copyright statement is recognized no matter what
1879         appears before it.  Update documentation.
1880         * tests/test-update-copyright.sh: Test that.
1881
1882 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
1883
1884         update-copyright: clean up code a little
1885         * build-aux/update-copyright: Append "_re" to the name of any
1886         variable holding a regular expression.
1887         Replace "old" and "new" with "stmt" in variable names.
1888         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
1889         handled correctly.
1890         Format code more consistently.
1891
1892 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
1893
1894         update-copyright-tests: improve portability
1895         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
1896         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
1897
1898 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
1899
1900         update-copyright: support @copyright{} and &copy;
1901         * build-aux/update-copyright: Implement and document.
1902         * tests/test-update-copyright.sh: Test.
1903
1904 2009-08-04  Jim Meyering  <meyering@redhat.com>
1905
1906         update-copyright-tests: correctly test EOL=\r\n handling
1907         * tests/test-update-copyright.sh: Put \r at the end of some lines
1908         for the dos-eol tests.  Based on a patch by Joel E. Denny.
1909
1910         maint.mk: make update-copyright exclusion list more configurable
1911         * top/maint.mk (update-copyright): Default to excluding COPYING,
1912         but allow an override, in case someone does want to update that file.
1913
1914         maint.mk: don't update copyright date in COPYING
1915         * top/maint.mk (update-copyright): Exclude COPYING.
1916
1917         maint.mk: add a copyright-updating rule
1918         * top/maint.mk (update-copyright): New rule.
1919         Derived from coreutils/Makefile.am.
1920
1921         update-copyright: rename some variables
1922         * build-aux/update-copyright: Rename a few variables for clarity.
1923         Tweak syntax.  List Joel E. Denny as coauthor.
1924
1925 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
1926
1927         update-copyright: fix bug for 2-digit last year and add tests
1928         * build-aux/update-copyright: Fix bug.
1929         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
1930         specified.
1931         * modules/update-copyright-tests: New
1932         * tests/test-update-copyright.sh: New.
1933
1934 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
1935
1936         update-copyright: handle leading tabs in line prefix
1937         * build-aux/update-copyright: Count leading tabs as 8 spaces
1938         when computing margin.  This helps with the formatting of
1939         ChangeLogs, for example.
1940         Fix documentation a little.
1941
1942 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
1943
1944         update-copyright: support EOL=\r\n
1945         * build-aux/update-copyright: Implement that.
1946
1947 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
1948
1949         update-copyright: automatically format copyright statements
1950         * build-aux/update-copyright: Implement that.
1951         Also, be a little more predictable and safer by always failing
1952         when the full copyright format is not perfectly recognized as an
1953         unbroken whole.  Discussed at
1954         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
1955         Rewrite documentation.
1956
1957 2009-08-03  Bruno Haible  <bruno@clisp.org>
1958
1959         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
1960
1961 2009-08-02  Bruno Haible  <bruno@clisp.org>
1962
1963         Tests for module 'uname'.
1964         * modules/uname-tests: New file.
1965         * tests/test-uname.c: New file.
1966
1967         New module 'uname'.
1968         * lib/uname.c: New file.
1969         * m4/uname.m4: New file.
1970         * modules/uname: New file.
1971         * doc/posix-functions/uname.texi: Mention the new module.
1972
1973 2009-08-02  Bruno Haible  <bruno@clisp.org>
1974
1975         Tests for module 'sys_utsname'.
1976         * modules/sys_utsname-tests: New file.
1977         * tests/test-sys_utsname.c: New file.
1978
1979         New module 'sys_utsname'.
1980         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
1981         * m4/sys_utsname_h.m4: New file.
1982         * modules/sys_utsname: New file.
1983         * doc/posix-headers/sys_utsname.texi: Mention the new module.
1984
1985 2009-08-02  Bruno Haible  <bruno@clisp.org>
1986
1987         Implicitly initialize the sockets library.
1988         * lib/gethostname.c: Include sockets.h.
1989         (rpl_gethostname): Invoke gl_sockets_startup.
1990         * lib/socket.c: Include sockets.h.
1991         (rpl_socket): Invoke gl_sockets_startup.
1992         * modules/gethostname (Depends-on): Add sockets.
1993         * modules/socket (Depends-on): Likewise.
1994         * tests/test-poll.c: Don't include sockets.h.
1995         (main): Don't invoke gl_sockets_startup.
1996         * tests/test-select.c: Don't include sockets.h.
1997         (main): Don't invoke gl_sockets_startup.
1998
1999 2009-08-02  Bruno Haible  <bruno@clisp.org>
2000
2001         Allow multiple calls to gl_sockets_startup.
2002         * lib/sockets.c (initialized_sockets_version): New variable.
2003         (gl_sockets_startup): Do nothing if already called for this or a higher
2004         version.
2005         (gl_sockets_cleanup): Reset initialized_sockets_version.
2006
2007 2009-08-03  Simon Josefsson  <simon@josefsson.org>
2008
2009         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
2010         different project/version.
2011
2012 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
2013             Bruno Haible  <bruno@clisp.org>
2014
2015         Tests for module 'pipe-filter-gi'.
2016         * modules/pipe-filter-gi-tests: New file.
2017         * tests/test-pipe-filter-gi1.sh: New file.
2018         * tests/test-pipe-filter-gi1.c: New file.
2019         * tests/test-pipe-filter-gi2.sh: New file.
2020         * tests/test-pipe-filter-gi2-main.c: New file.
2021         * tests/test-pipe-filter-gi2-child.c: New file.
2022
2023         New module 'pipe-filter-gi'.
2024         * lib/pipe-filter-gi.c: New file.
2025         * modules/pipe-filter-gi: New file.
2026
2027 2009-08-02  Bruno Haible  <bruno@clisp.org>
2028             Paolo Bonzini  <bonzini@gnu.org>
2029
2030         Tests for module 'pipe-filter-ii'.
2031         * modules/pipe-filter-ii-tests: New file.
2032         * tests/test-pipe-filter-ii1.sh: New file.
2033         * tests/test-pipe-filter-ii1.c: New file.
2034         * tests/test-pipe-filter-ii2.sh: New file.
2035         * tests/test-pipe-filter-ii2-main.c: New file.
2036         * tests/test-pipe-filter-ii2-child.c: New file.
2037
2038         New module 'pipe-filter-ii'.
2039         * lib/pipe-filter.h: New file.
2040         * lib/pipe-filter-ii.c: New file.
2041         * lib/pipe-filter-aux.h: New file.
2042         * modules/pipe-filter-ii: New file.
2043
2044 2009-08-02  Simon Josefsson  <simon@josefsson.org>
2045
2046         * lib/gc-libgcrypt.c: Change copyright to FSF.
2047         * lib/gc-gnulib.c: Likewise.
2048
2049 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
2050
2051         * lib/gethostname.c: Include limits.h.
2052
2053 2009-08-02  Simon Josefsson  <simon@josefsson.org>
2054             Bruno Haible  <bruno@clisp.org>
2055
2056         Ensure HOST_NAME_MAX as part of the gethostname module.
2057         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
2058         define also HOST_NAME_MAX.
2059         * tests/test-gethostname.c: Include <limits.h>.
2060         (main): Check also HOST_NAME_MAX.
2061         * doc/posix-headers/limits.texi: Document the mingw problem.
2062
2063 2009-08-02  Bruno Haible  <bruno@clisp.org>
2064
2065         * lib/gethostname.c (gethostname): Fix handling of large len argument.
2066         Add comments.
2067
2068 2009-03-31  Simon Josefsson  <simon@josefsson.org>
2069
2070         * lib/gethostname.c: Add Windows wrapper.
2071         * m4/gethostname.m4: Look for gethostname in -lws2_32.
2072         * modules/gethostname: Depend on sys_socket & errno, for also
2073         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
2074         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
2075
2076 2009-07-31  Jim Meyering  <meyering@redhat.com>
2077
2078         getloadavg: fix symbol name in comment
2079         * lib/getloadavg.c: Correct a typo I introduced when adding
2080         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
2081         Matt Kraai spotted the problem.
2082
2083 2009-07-29  Matt Kraai  <mkraai@beckman.com>
2084
2085         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
2086         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
2087         code also if ! defined N_NAME_POINTER.
2088         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
2089         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
2090         but the n_name member is a 12-byte array.
2091
2092 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
2093
2094         update-copyright: generalize comment handling
2095         * build-aux/update-copyright: Handle copyright statements
2096         within more comment styles.
2097         Document usage.
2098         Report any file with an external copyright holder or parse failure.
2099
2100 2009-07-29  Jim Meyering  <meyering@redhat.com>
2101
2102         mktime: correct setting of REPLACE_MKTIME
2103         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
2104
2105         update-copyright: new module
2106         * modules/update-copyright: New file.
2107         * build-aux/update-copyright: New file.
2108         * MODULES.html.sh (maint+release support): Add update-copyright.
2109
2110 2009-07-27  Bruno Haible  <bruno@clisp.org>
2111
2112         Fix compilation error when <ctime> is used and mktime is replaced.
2113         * lib/time.in.h (mktime): New declaration.
2114         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
2115         REPLACE_MKTIME instead of defining mktime in config.h.
2116         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
2117         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
2118         Reported by Ross McFarland <rwmcfa1@neces.com>.
2119
2120 2009-07-27  Bruno Haible  <bruno@clisp.org>
2121
2122         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
2123         Reported by Matt Kraai <mkraai@beckman.com>.
2124
2125 2009-07-25  Jim Meyering  <meyering@redhat.com>
2126
2127         maint.mk: avoid warnings about missing files
2128         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
2129         diagnostic when .prev-version does not exist.
2130         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
2131         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
2132         nonexistent cfg.mk.
2133         Suggestions from Simon Josefsson.
2134
2135 2009-07-25  Bruno Haible  <bruno@clisp.org>
2136
2137         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
2138         defined as macros. Needed on QNX 6.4.1.
2139         Reported by Matt Kraai <mkraai@beckman.com>.
2140
2141 2009-07-23  Jim Meyering  <meyering@redhat.com>
2142
2143         maint.mk: invoke "make dist" with a working value of XZ_OPT
2144         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
2145
2146 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
2147
2148         Make fseeko.c compile on QNX.
2149         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
2150
2151 2009-07-22  Peter Simons  <simons@cryp.to>
2152
2153         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
2154         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
2155         * lib/md4.h: Likewise.
2156         * lib/md5.h: Likewise.
2157         * lib/sha1.h: Likewise.
2158         * lib/sha256.h: Likewise.
2159         * lib/sha512.h: Likewise.
2160
2161         tests-sha1: don't assign literal string to 'char *' variable
2162         * tests/test-sha1.c (main): Declare locals with "const" to match
2163         attributes of the right hand side.
2164
2165 2009-07-21  Eric Blake  <ebb9@byu.net>
2166
2167         dup2: fix more mingw problems
2168         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
2169         fd to itself.
2170         * doc/posix-functions/dup2.texi (dup2): Document the bug.
2171         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
2172         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
2173         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
2174         care of mingw bugs.
2175
2176 2009-07-21  Jim Meyering  <meyering@redhat.com>
2177
2178         vc-list-files: avoid failure when /bin/sh is dash
2179         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
2180         On some Debian based systems, /bin/sh is a symlink to dash, and running
2181         this command would omit the "/" following each 'tests' prefix:
2182           dash -x build-aux/vc-list-files -C . tests
2183         That is because bash and dash work differently:
2184           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
2185           bash ok
2186           dash odd
2187
2188 2009-07-21  Eric Blake  <ebb9@byu.net>
2189
2190         dup2-tests: test previous patch
2191         * modules/dup2-tests: New file.
2192         * tests/test-dup2.c: Likewise.
2193         * tests/test-open.c (main): Avoid unspecified behavior.
2194         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
2195         test.
2196
2197         dup2: work around mingw and cygwin 1.5 bug
2198         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
2199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
2200         * modules/unistd (Makefile.am): Substitute it.
2201         * lib/unistd.in.h (dup2): Declare the replacement.
2202         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
2203         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
2204         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
2205         * modules/execute (Depends-on): Add dup2.
2206         * modules/fseterr (Depends-on): Likewise.
2207         * modules/pipe (Depends-on): Likewise.
2208         * modules/posix_spawn-internal (Depends-on): Likewise.
2209
2210 2009-07-21  Bruno Haible  <bruno@clisp.org>
2211
2212         * modules/.gitattributes: New file.
2213
2214 2009-07-20  Bruno Haible  <bruno@clisp.org>
2215
2216         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
2217         (main): Use it.
2218
2219 2009-07-20  Eric Blake  <ebb9@byu.net>
2220
2221         test-pipe: make a bit more robust.
2222         * tests/test-pipe.c (myerr): Allow error messages regardless of
2223         what we do to stderr.
2224         (test_pipe): Rearrange to avoid deadlock.
2225         (child_main): Try a larger read, to ensure we avoided deadlock.
2226         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
2227         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
2228         if misused.
2229
2230 2009-07-19  Jim Meyering  <meyering@redhat.com>
2231
2232         fts: avoid false-positive cycle-detection
2233         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
2234         for each new command line argument.
2235
2236 2009-07-19  Bruno Haible  <bruno@clisp.org>
2237
2238         Fix build error on mingw with the modules sys_select and unistd.
2239         * modules/acl-tests (Depends-on): Add close.
2240         * modules/binary-io-tests (Depends-on): Likewise.
2241         * modules/closein-tests (Depends-on): Likewise.
2242         * modules/flock-tests (Depends-on): Likewise.
2243         * modules/fsync-tests (Depends-on): Likewise.
2244         * modules/lseek-tests (Depends-on): Likewise.
2245         * modules/pipe-tests (Depends-on): Likewise.
2246         * modules/posix_spawn-tests (Depends-on): Likewise.
2247         * modules/posix_spawnp-tests (Depends-on): Likewise.
2248         * modules/stat-time-tests (Depends-on): Likewise.
2249         * modules/yesno-tests (Depends-on): Likewise.
2250
2251 2009-07-19  Bruno Haible  <bruno@clisp.org>
2252
2253         Unify conditionals.
2254         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
2255         macros, not at the compiler macros.
2256         * lib/pipe.c: Likewise.
2257         * lib/execute.c: Likewise.
2258         * lib/spawni.c: Likewise.
2259
2260 2009-07-19  Bruno Haible  <bruno@clisp.org>
2261
2262         Fix handling of closed stdin/stdout/stderr on mingw.
2263         * lib/w32spawn.h: Include unistd.h.
2264         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
2265         file descriptor with O_NOINHERIT flag.
2266         (fd_safer_noinherit): New function, based on fd-safer.c.
2267         (dup_safer_noinherit): New function, based on dup-safer.c.
2268         (undup_safer_noinherit): New function.
2269         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
2270         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
2271         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
2272         instead of fd_safer.
2273         * tests/test-pipe.c: Include <windows.h>.
2274         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
2275
2276         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
2277         from main.
2278         (test_pipe): Pass an extra argument for disambiguation.
2279         (main): Invoke parent_main or child_main.
2280
2281         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
2282         consistently.
2283
2284 2009-07-18  Eric Blake  <ebb9@byu.net>
2285
2286         test-pipe: fix mingw build
2287         * tests/test-pipe.c (main): Avoid fcntl on mingw.
2288
2289 2009-07-18  Bruno Haible  <bruno@clisp.org>
2290
2291         * modules/pipe-tests (Makefile.am): Fix typo.
2292
2293 2009-07-18  Eric Blake  <ebb9@byu.net>
2294
2295         error: fix mingw build
2296         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
2297         Reported by Bruno Haible.
2298
2299         error: avoid undefined use of stdout
2300         * lib/error.c (error, error_at_line): Check that fd 1 is open
2301         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
2302         is handling faults and the close_stdout module wants to report the
2303         detection of closed stdout as an error.
2304
2305 2009-07-17  Eric Blake  <ebb9@byu.net>
2306
2307         pipe: be robust in face of closed fds
2308         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
2309         should cause child to misbehave.
2310         * modules/pipe-tests: New module.
2311         * tests/test-pipe.c: New file.
2312         * tests/test-pipe.sh: New file.
2313         Reported by Akim Demaille.
2314
2315 2009-07-14  Bruno Haible  <bruno@clisp.org>
2316
2317         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
2318         Reported by anonymous kc.
2319
2320 2009-07-07  Jim Meyering  <meyering@redhat.com>
2321
2322         maint.mk: don't look for translatable strings in *.m4 or *.mk
2323         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
2324         when searching for translatable strings.
2325
2326 2009-07-05  Jim Meyering  <meyering@redhat.com>
2327
2328         remove superfluous parentheses in STREQ definition
2329         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
2330         * lib/getugroups.c (STREQ): Likewise.
2331         * lib/fnmatch.c (STREQ): Likewise.
2332         Spotted by Bruno Haible.
2333
2334 2009-07-04  Jim Meyering  <meyering@redhat.com>
2335
2336         argv-iter: new module
2337         * MODULES.html.sh: Add argv-iter.
2338         * lib/argv-iter.c, lib/argv-iter.h: New files.
2339         * modules/argv-iter: New file.
2340         * modules/argv-iter-tests: New file.
2341         * tests/test-argv-iter.c: Test it.
2342
2343 2009-07-04  Bruno Haible  <bruno@clisp.org>
2344
2345         Fix assertion.
2346         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
2347         contains more exact copies of a given entry than file2, leave the extra
2348         copies unpaired rather than aborting.
2349         Reported by Eric Blake.
2350
2351 2009-07-02  Bruno Haible  <bruno@clisp.org>
2352
2353         Speedup git-merge-changelog for git cherry-pick.
2354         * lib/git-merge-changelog.c (struct entries_mapping): New type.
2355         (entries_mapping_get): New function, extracted from compute_mapping.
2356         (entries_mapping_reverse_get): New function.
2357         (compute_mapping): Add a 'full' argument. Return the result in a
2358         'struct entries_mapping'.
2359         (main): Update. Access the mappings through entries_mapping_get.
2360         Reported by Eric Blake.
2361
2362 2009-07-02  Bruno Haible  <bruno@clisp.org>
2363
2364         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
2365         best_i.
2366
2367 2009-07-02  Bruno Haible  <bruno@clisp.org>
2368
2369         Speed up approximate search for matching ChangeLog entries.
2370         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
2371         argument. Call fstrcmp_bounded instead of fstrcmp.
2372         (compute_mapping, try_split_merged_entry, main): Update callers.
2373
2374 2009-07-02  Bruno Haible  <bruno@clisp.org>
2375
2376         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
2377
2378 2009-06-30  Bruno Haible  <bruno@clisp.org>
2379
2380         Reduce the number of uc_is_cased calls.
2381         * lib/unicase.h (casing_suffix_context_t): Add
2382         'first_char_except_ignorable' field.
2383         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
2384         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
2385         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
2386         Update initializer.
2387         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
2388         case-ignorable characters.
2389         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
2390         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
2391         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
2392         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
2393         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
2394
2395 2009-06-30  Bruno Haible  <bruno@clisp.org>
2396
2397         Tests for module 'unicase/ignorable'.
2398         * modules/unicase/ignorable-tests: New file.
2399         * tests/unicase/test-ignorable.c: New file, generated by
2400         gen-uni-tables.
2401
2402         Tests for module 'unicase/cased'.
2403         * modules/unicase/cased-tests: New file.
2404         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
2405         * tests/unicase/test-predicate-part1.h: New file, derived from
2406         tests/unictype/test-predicate-part1.h.
2407         * tests/unicase/test-predicate-part2.h: New file, same as
2408         tests/unictype/test-predicate-part2.h.
2409
2410         Fix evaluation of "Before C" condition of FINAL_SIGMA.
2411         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
2412         (output_casing_properties): New function.
2413         (main): Call it.
2414         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
2415         * lib/unicase/cased.c: Include unictype/bitmap.h.
2416         (uc_is_cased): Define through a bitmap lookup.
2417         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
2418         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
2419         (uc_is_case_ignorable): Define through a bitmap lookup.
2420         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
2421         lib/unictype/bitmap.h.
2422         (Depends-on): Add inline. Clean up.
2423         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
2424         lib/unictype/bitmap.h.
2425         (Depends-on): Add inline. Clean up.
2426         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
2427         recognition.
2428         * tests/unicase/test-u16-tolower.c (main): Likewise.
2429         * tests/unicase/test-u32-tolower.c (main): Likewise.
2430
2431 2009-06-30  Bruno Haible  <bruno@clisp.org>
2432
2433         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
2434         * lib/unicase/u16-casemap.c: Likewise.
2435         * lib/unicase/u32-casemap.c: Likewise.
2436
2437 2009-06-29  Bruno Haible  <bruno@clisp.org>
2438
2439         Define u32_casefold as a wrapper around u32_ct_casefold.
2440         * lib/unicase/u32-casefold.c: Update.
2441         * modules/unicase/u32-casefold (Depends-on): Add
2442         unicase/u32-ct-casefold, unicase/empty-prefix-context,
2443         unicase/empty-suffix-context. Clean up.
2444
2445         Define u16_casefold as a wrapper around u16_ct_casefold.
2446         * lib/unicase/u16-casefold.c: Update.
2447         * modules/unicase/u16-casefold (Depends-on): Add
2448         unicase/u16-ct-casefold, unicase/empty-prefix-context,
2449         unicase/empty-suffix-context. Clean up.
2450
2451         Define u8_casefold as a wrapper around u8_ct_casefold.
2452         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
2453         * lib/unicase/u8-casefold.c: Update.
2454         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
2455         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
2456
2457         Define u32_totitle as a wrapper around u32_ct_totitle.
2458         * lib/unicase/u32-totitle.c: Update.
2459         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
2460         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
2461
2462         Define u16_totitle as a wrapper around u16_ct_totitle.
2463         * lib/unicase/u16-totitle.c: Update.
2464         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
2465         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
2466
2467         Define u8_totitle as a wrapper around u8_ct_totitle.
2468         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
2469         functions.
2470         (FUNC): Delegate to U_CT_TOTITLE.
2471         * lib/unicase/u8-totitle.c: Update.
2472         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
2473         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
2474
2475         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
2476         invocation.
2477         * modules/unicase/u32-tolower (Depends-on): Add
2478         unicase/empty-prefix-context, unicase/empty-suffix-context.
2479
2480         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
2481         invocation.
2482         * modules/unicase/u16-tolower (Depends-on): Add
2483         unicase/empty-prefix-context, unicase/empty-suffix-context.
2484
2485         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
2486         * modules/unicase/u8-tolower (Depends-on): Add
2487         unicase/empty-prefix-context, unicase/empty-suffix-context.
2488
2489         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
2490         invocation.
2491         * modules/unicase/u32-toupper (Depends-on): Add
2492         unicase/empty-prefix-context, unicase/empty-suffix-context.
2493
2494         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
2495         invocation.
2496         * modules/unicase/u16-toupper (Depends-on): Add
2497         unicase/empty-prefix-context, unicase/empty-suffix-context.
2498
2499         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
2500         * modules/unicase/u8-toupper (Depends-on): Add
2501         unicase/empty-prefix-context, unicase/empty-suffix-context.
2502
2503         New module 'unicase/u32-ct-casefold'.
2504         * lib/unicase/u32-ct-casefold.c: New file.
2505         * modules/unicase/u32-ct-casefold: New file.
2506
2507         New module 'unicase/u16-ct-casefold'.
2508         * lib/unicase/u16-ct-casefold.c: New file.
2509         * modules/unicase/u16-ct-casefold: New file.
2510
2511         New module 'unicase/u8-ct-casefold'.
2512         * lib/unicase/u8-ct-casefold.c: New file.
2513         * lib/unicase/u-ct-casefold.h: New file, derived from
2514         lib/unicase/u-casefold.h.
2515         * modules/unicase/u8-ct-casefold: New file.
2516
2517         New module 'unicase/u32-ct-totitle'.
2518         * lib/unicase/u32-ct-totitle.c: New file.
2519         * modules/unicase/u32-ct-totitle: New file.
2520
2521         New module 'unicase/u16-ct-totitle'.
2522         * lib/unicase/u16-ct-totitle.c: New file.
2523         * modules/unicase/u16-ct-totitle: New file.
2524
2525         New module 'unicase/u8-ct-totitle'.
2526         * lib/unicase/u8-ct-totitle.c: New file.
2527         * lib/unicase/u-ct-totitle.h: New file, derived from
2528         lib/unicase/u-totitle.h.
2529         * modules/unicase/u8-ct-totitle: New file.
2530
2531         New module 'unicase/u32-ct-tolower'.
2532         * lib/unicase/u32-ct-tolower.c: New file.
2533         * modules/unicase/u32-ct-tolower: New file.
2534
2535         New module 'unicase/u16-ct-tolower'.
2536         * lib/unicase/u16-ct-tolower.c: New file.
2537         * modules/unicase/u16-ct-tolower: New file.
2538
2539         New module 'unicase/u8-ct-tolower'.
2540         * lib/unicase/u8-ct-tolower.c: New file.
2541         * modules/unicase/u8-ct-tolower: New file.
2542
2543         New module 'unicase/u32-ct-toupper'.
2544         * lib/unicase/u32-ct-toupper.c: New file.
2545         * modules/unicase/u32-ct-toupper: New file.
2546
2547         New module 'unicase/u16-ct-toupper'.
2548         * lib/unicase/u16-ct-toupper.c: New file.
2549         * modules/unicase/u16-ct-toupper: New file.
2550
2551         New module 'unicase/u8-ct-toupper'.
2552         * lib/unicase/u8-ct-toupper.c: New file.
2553         * modules/unicase/u8-ct-toupper: New file.
2554
2555         Add context arguments to u*_casemap functions.
2556         * lib/unicase/unicasemap.h: Include unicase.h.
2557         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
2558         suffix_context arguments.
2559         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
2560         functions.
2561         (FUNC): Add prefix_context and suffix_context arguments. Use
2562         uc_is_cased and uc_is_case_ignorable.
2563         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
2564         * lib/unicase/u16-casemap.c: Likewise.
2565         * lib/unicase/u32-casemap.c: Likewise.
2566         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
2567         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
2568         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
2569         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
2570         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
2571         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
2572
2573         New module 'unicase/u32-suffix-context'.
2574         * lib/unicase/u32-suffix-context.c: New file.
2575         * modules/unicase/u32-suffix-context: New file.
2576
2577         New module 'unicase/u16-suffix-context'.
2578         * lib/unicase/u16-suffix-context.c: New file.
2579         * modules/unicase/u16-suffix-context: New file.
2580
2581         New module 'unicase/u8-suffix-context'.
2582         * lib/unicase/u8-suffix-context.c: New file.
2583         * lib/unicase/u-suffix-context.h: New file.
2584         * modules/unicase/u8-suffix-context: New file.
2585
2586         New module 'unicase/empty-suffix-context'.
2587         * lib/unicase/empty-suffix-context.c: New file.
2588         * modules/unicase/empty-suffix-context: New file.
2589
2590         New module 'unicase/u32-prefix-context'.
2591         * lib/unicase/u32-prefix-context.c: New file.
2592         * modules/unicase/u32-prefix-context: New file.
2593
2594         New module 'unicase/u16-prefix-context'.
2595         * lib/unicase/u16-prefix-context.c: New file.
2596         * modules/unicase/u16-prefix-context: New file.
2597
2598         New module 'unicase/u8-prefix-context'.
2599         * lib/unicase/u8-prefix-context.c: New file.
2600         * lib/unicase/u-prefix-context.h: New file.
2601         * lib/unicase/context.h: New file.
2602         * modules/unicase/u8-prefix-context: New file.
2603
2604         New module 'unicase/empty-prefix-context'.
2605         * lib/unicase/empty-prefix-context.c: New file.
2606         * modules/unicase/empty-prefix-context: New file.
2607
2608         New module 'unicase/ignorable'.
2609         * lib/unicase/ignorable.c: New file.
2610         * modules/unicase/ignorable: New file.
2611
2612         New module 'unicase/cased'.
2613         * lib/unicase/caseprop.h: New file.
2614         * lib/unicase/cased.c: New file.
2615         * modules/unicase/cased: New file.
2616
2617         New functions for case mapping of substrings.
2618         * lib/unicase.h (casing_prefix_context_t): New type.
2619         (unicase_empty_prefix_context): New variable.
2620         (u8_casing_prefix_context, u16_casing_prefix_context,
2621         u32_casing_prefix_context, u8_casing_prefixes_context,
2622         u16_casing_prefixes_context, u32_casing_prefixes_context): New
2623         declarations.
2624         (casing_suffix_context_t): New type.
2625         (unicase_empty_suffix_context): New variable.
2626         (u8_casing_suffix_context, u16_casing_suffix_context,
2627         u32_casing_suffix_context, u8_casing_suffixes_context,
2628         u16_casing_suffixes_context, u32_casing_suffixes_context,
2629         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
2630         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
2631         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
2632         declarations.
2633
2634 2009-06-28  Jim Meyering  <meyering@redhat.com>
2635
2636         boostrap: indent only with spaces
2637         * build-aux/bootstrap: Indent only with spaces, never TABs.
2638
2639         bootstrap: split long lines
2640         * build-aux/bootstrap: Keep line length < 80.
2641
2642         bootstrap: sync from coreutils
2643         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
2644         just as autoreconf does.  Verify a list of prerequisite
2645         package-name,version-number pairs if defined in bootstrap.conf.
2646         Refer to README-prereq, if prerequisites are not satisfied.
2647
2648 2009-06-27  Eric Blake  <ebb9@byu.net>
2649
2650         tests: add test for bogus NULL definition
2651         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
2652         * tests/test-stdlib.c: Likewise.
2653         * tests/test-string.c: Likewise.
2654         * tests/test-locale.c: Likewise.
2655         * tests/test-unistd.c: Likewise.
2656         * modules/stdio-tests (Depends-on): Add verify.
2657         * modules/stdlib-tests (Depends-on): Likewise.
2658         * modules/string-tests (Depends-on): Likewise.
2659         * modules/locale-tests (Depends-on): Likewise.
2660         * modules/unistd-tests (Depends-on): Likewise.
2661
2662 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
2663
2664         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
2665         self-explaining comment.
2666         * m4/selinux-selinux-h: Update serial.
2667         (gl_LIBSELINUX): New macro, adding a warning for missing development
2668         packages to code extracted from...
2669         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
2670         Add warning for missing development packages here, too.
2671
2672 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
2673
2674         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
2675
2676 2009-06-25  Eric Blake  <ebb9@byu.net>
2677
2678         version-etc: fix regression
2679         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
2680         gcc.
2681         (version_etc): Use it, to catch bugs with trailing NULL.
2682         * lib/version-etc.c (version_etc_arn): Delete unused argument.
2683         (version_etc_va): Fix logic bug.
2684         * modules/version-etc-tests: Add test.
2685         * tests/test-version-etc.c: New file.
2686         * tests/test-version-etc.sh: Likewise.
2687
2688 2009-06-25  Sam Steingold  <sds@gnu.org>
2689
2690         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
2691         mbtowc declaration.
2692
2693 2009-06-25  Eric Blake  <ebb9@byu.net>
2694
2695         fpurge: migrate into <stdio.h>
2696         * lib/fpurge.h: Delete...
2697         * lib/stdio.in.h (fpurge): ...and declare here, instead.
2698         * lib/fpurge.c (fpurge): Change declaring header.
2699         * modules/fpurge (Files): Drop deleted file.
2700         (Depends-on): Add stdio.
2701         (configure.ac): Set witness.
2702         * modules/stdio (Makefile.am): Support fpurge macros.
2703         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
2704         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
2705         * lib/fflush.c: Update client.
2706         * tests/test-fpurge.c: Likewise.
2707         * NEWS: Mention the change.
2708
2709 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
2710
2711        * lib/argp-version-etc.c (program_authors): Add const
2712        qualifier.
2713        * lib/version-etc.c: Fix typos in the comments.
2714        * modules/argp-version-etc: Depends on version-etc.
2715
2716 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
2717
2718         argp-version-etc: new module.
2719
2720         * lib/argp-version-etc.c: New file.
2721         * lib/argp-version-etc.h: New file.
2722         * modules/argp-version-etc: New file.
2723         * modules/argp-version-etc-tests: New file.
2724         * tests/test-argp-version-etc.c: New test.
2725         * tests/test-argp-version-etc-1.sh: New test.
2726
2727 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
2728
2729         Provide additional interfaces and documentation for version-etc
2730         module.
2731
2732         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
2733         interfaces.
2734         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
2735         prototypes.
2736
2737 2009-06-24  Bruno Haible  <bruno@clisp.org>
2738
2739         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
2740         HAVE_LIB${NAME} macro.
2741         Reported by Sam Steingold <sds@gnu.org>.
2742
2743 2009-06-23  Simon Josefsson  <simon@josefsson.org>
2744
2745         * modules/hash-tests (test_hash_LDADD): Link to libintl when
2746         needed.
2747
2748 2009-06-21  Bruno Haible  <bruno@clisp.org>
2749
2750         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
2751         work.
2752         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
2753         together with LIB${NAME}, LTLIB${NAME}.
2754         Reported by Sam Steingold <sds@gnu.org>.
2755
2756 2009-06-20  Jim Meyering  <meyering@redhat.com>
2757
2758         tests: make sc_require_test_exit_idiom more generic
2759         * top/maint.mk (Exit_witness_file): New overridable variable.
2760         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
2761         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
2762
2763 2009-06-19  Jim Meyering  <meyering@redhat.com>
2764
2765         hash: reverse order of src/dst parameters in an internal interface
2766         * lib/hash.c (transfer_entries): Reverse order of parameters to
2767         put DST before SRC.  Adjust callers.
2768
2769         tests: test-hash: avoid wholesale duplication
2770         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
2771         Instead, use a loop and add a single conditional.
2772
2773         tests: test-hash: allow seed selection via a command line argument
2774         * tests/test-hash.c (get_seed): New function.
2775         (main): Use it.
2776
2777 2009-06-19  Eric Blake  <ebb9@byu.net>
2778
2779         hash: avoid memory leak on allocation failure
2780         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
2781         failure.  Factor repeated algorithm...
2782         (transfer_entries): ...into new helper routine.
2783         (hash_delete): React to hash_rehash return value.
2784
2785         hash: reduce memory pressure in hash_rehash no-op case
2786         * lib/hash.c (next_prime): Avoid overflow.
2787         (hash_initialize): Factor bucket size computation...
2788         (compute_bucket_size): ...into new helper function.
2789         (hash_rehash): Use new function and open coding to reduce memory
2790         pressure, and avoid a memory leak in USE_OBSTACK code.
2791         Reported by Jim Meyering.
2792
2793 2009-06-18  Eric Blake  <ebb9@byu.net>
2794
2795         hash: make rotation more obvious
2796         * modules/hash (Depends-on): Add bitrotate and stdint.
2797         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
2798         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
2799         (SIZE_MAX): Rely on headers for definition.
2800         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
2801         (raw_hasher): Use rotr_sz.
2802         Suggested by Jim Meyering.
2803
2804         hash: fix memory leak in last patch
2805         * lib/hash.c (hash_rehash): Avoid memory leak.
2806
2807         hash: avoid no-op rehashing
2808         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
2809
2810         hash: provide default callback functions
2811         * lib/hash.c (raw_hasher, raw_comparator): New functions.
2812         (hash_initialize): Use them as defaults.
2813         * tests/test-hash.c (main): Test this.
2814
2815         hash: minor optimization
2816         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
2817         when possible.
2818         (hash_initialize): Document this promise.
2819         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
2820         * tests/test-hash.c (hash_compare_strings): Test this.
2821
2822 2009-06-18  Bruno Haible  <bruno@clisp.org>
2823
2824         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
2825         going to be replaced anyway.
2826
2827 2009-06-18  Bruno Haible  <bruno@clisp.org>
2828
2829         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
2830         in one place.
2831         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
2832         be replaced anyway.
2833
2834 2009-06-18  Eric Blake  <ebb9@byu.net>
2835
2836         hash: check for resize before insertion
2837         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
2838         threshold before insertion, so that a pathological hash_rehash
2839         that fills every bucket can still trigger another rehash.
2840
2841 2009-06-18  Jim Meyering  <meyering@redhat.com>
2842
2843         hash-tests: add a loop around the small tests
2844         * tests/test-hash.c (main): Repeat small tests with selected
2845         small initial table sizes.
2846
2847 2009-06-17  Eric Blake  <ebb9@byu.net>
2848
2849         hash: minor cleanups
2850         * lib/hash.h (hash_entry): Make opaque, by moving...
2851         * lib/hash.c (hash_entry): ...here.
2852         (hash_insert): Clarify restrictions on what can be inserted.
2853         (hash_get_next): Clarify when it is safe to remove an element
2854         during traversal.
2855         (check_tuning): Skip verification when tuning is known safe.
2856         (hash_initialize): Clarify restrictions on tuning.
2857
2858 2009-06-17  Jim Meyering  <jim@meyering.net>
2859         and Eric Blake  <ebb9@byu.net>
2860
2861         hash-tests: new module
2862         * modules/hash-tests: New file.
2863         * tests/test-hash.c: New file.
2864
2865 2009-06-17  Eric Blake  <ebb9@byu.net>
2866
2867         strstr-simple: document new module
2868         * MODULES.html.sh: Document new module.
2869
2870         strstr, strcasestr: replace on platforms with broken memchr
2871         * modules/strstr: Split into...
2872         * modules/strstr-simple: ...new module that does not care about
2873         performance, but does care about glibc bug.
2874         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
2875         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
2876         if platform memchr is broken, per Debian bug 521737.
2877         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
2878         memchr.
2879         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
2880         * doc/posix-functions/strstr.texi (strstr): Document the fix.
2881         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
2882         * modules/mountlist (Depends-on): Add strstr-simple.
2883         * modules/gen-uni-tables (Depends-on): Likewise.
2884         * modules/argz (Depends-on): Add strstr.
2885
2886 2009-06-17  Bruno Haible  <bruno@clisp.org>
2887
2888         * modules/posix_spawn-internal (Depends-on): Add errno.
2889
2890 2009-06-17  Bruno Haible  <bruno@clisp.org>
2891
2892         Define missing ESTALE on Interix 3.5.
2893         * lib/errno.in.h (ESTALE): Assign a value if missing.
2894         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
2895         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
2896         missing.
2897         * doc/posix-headers/errno.texi: Mention the Interix bug.
2898         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
2899
2900 2009-06-15  Eric Blake  <ebb9@byu.net>
2901
2902         memchr, memchr2: add valgrind exception
2903         * lib/memchr.valgrind: New file.
2904         * lib/memchr2.valgrind: New file.
2905         * modules/memchr (Files): Distribute valgrind file.
2906         * modules/memchr2 (Files): Likewise.
2907
2908         docs: memchr is no longer obsolete
2909         * MODULES.html.sh: Move memchr from obsolete to string.h section.
2910         * lib/string.in.h (memchr): Simplify logic.
2911
2912 2009-06-14  Jim Meyering  <meyering@redhat.com>
2913
2914         link-follow: fix the "checking..." message to not mention trailing slash
2915         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
2916         never considered trailing slashes.
2917
2918 2009-06-14  Bruno Haible  <bruno@clisp.org>
2919
2920         * m4/memchr.m4: Mention also the bug on IA-64.
2921         * doc/posix-functions/memchr.texi: Likewise.
2922
2923 2009-06-12  Eric Blake  <ebb9@byu.net>
2924
2925         memchr: detect broken x86_64 and alpha implementations
2926         * modules/memchr-tests (Depends-on): Move mmap detection...
2927         * modules/memchr (Depends-on): ...here.
2928         (configure.ac): Set indicator.
2929         * lib/string.in.h (memchr): Declare replacement.
2930         * modules/string (Makefile.am): Trigger replacement.
2931         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
2932         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
2933         bugs.
2934         * doc/posix-functions/memchr.texi (memchr): Document the bug.
2935         * modules/getpagesize (License): Relax license.
2936
2937 2009-06-11  Bruno Haible  <bruno@clisp.org>
2938
2939         * lib/idpriv.h: Add more references.
2940
2941 2009-06-08  Bruno Haible  <bruno@clisp.org>
2942
2943         Tests for module 'idpriv-droptemp'.
2944         * modules/idpriv-droptemp-tests: New file.
2945         * tests/test-idpriv-droptemp.sh: New file.
2946         * tests/test-idpriv-droptemp.su.sh: New file.
2947         * tests/test-idpriv-droptemp.c: New file.
2948
2949         New module 'idpriv-droptemp'.
2950         * lib/idpriv-droptemp.c: New file.
2951         * modules/idpriv-droptemp: New file.
2952
2953 2009-06-08  Bruno Haible  <bruno@clisp.org>
2954
2955         Tests for module 'idpriv-drop'.
2956         * modules/idpriv-drop-tests: New file.
2957         * tests/test-idpriv-drop.sh: New file.
2958         * tests/test-idpriv-drop.su.sh: New file.
2959         * tests/test-idpriv-drop.c: New file.
2960
2961         New module 'idpriv-drop'.
2962         * lib/idpriv.h: New file.
2963         * lib-idpriv-drop.c: New file.
2964         * m4/idpriv.m4: New file.
2965         * modules/idpriv-drop: New file.
2966
2967 2009-06-08  Bruno Haible  <bruno@clisp.org>
2968
2969         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
2970         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
2971         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
2972         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
2973         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
2974         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
2975         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
2976
2977 2009-06-08  Eric Blake  <ebb9@byu.net>
2978
2979         test-strstr: use memory fence, when possible
2980         * tests/test-strstr.c (main): Use memory fence, in order to be
2981         more likely to trigger Debian bug 521737.
2982         * modules/strstr-tests (Files): Pull in additional files.
2983
2984         memchr: no longer obsolete, for wider field testing
2985         * modules/memchr (Status, Notice): Delete, this module is no
2986         longer obsolete.
2987         * modules/vasnprintf (Depends-on): Add memchr.
2988
2989 2009-06-07  Jim Meyering  <meyering@redhat.com>
2990
2991         hash: declare some functions with the warn_unused_result attribute
2992         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
2993
2994 2009-06-07  Bruno Haible  <bruno@clisp.org>
2995
2996         * tests/test-alignof.c: Don't test int64_t if it does not exist.
2997         Reported by Eric Blake.
2998
2999 2009-06-06  Eric Blake  <ebb9@byu.net>
3000
3001         test-alignof: fix typo with long double
3002         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
3003         compiler error.
3004
3005 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
3006
3007         Escape non-texinfo { and }s.
3008         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
3009         markup error.
3010
3011 2009-06-04  Jim Meyering  <meyering@redhat.com>
3012
3013         gitlog-to-changelog: don't infloop on an empty commit log
3014         * build-aux/gitlog-to-changelog: Warn about an empty log message.
3015         Reported by Boris Petersen <transacid@centerim.org>.
3016
3017 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
3018
3019         version-etc: extend for packagers
3020         Add three new configure options, intended for packagers:
3021           --with-packager="packager name"
3022           --with-packager-version="packager-specific version"
3023           --with-packager-bug-reports="packager bug reporting"
3024         An example with coreutils:
3025           $ ./configure \
3026             --with-packager=Gentoo \
3027             --with-packager-bug-report=http://bugs.gentoo.org/ \
3028             --with-packager-version="patchset 1.6"
3029           $ ./src/ls --version | head -n3
3030           ls (GNU coreutils) 7.1-dirty
3031           Packaged by Gentoo (patchset 1.6)
3032           Copyright (C) 2009 Free Software Foundation, Inc.
3033         Note that the bug reporting info via --help doesn't show up because
3034         coreutils uses its own custom emit_bug_reporting_address() implementation
3035         in src/system.h.  If it didn't, it'd look like:
3036           $ ./src/ls --help | tail -n4
3037           Report bugs to <bug-coreutils@gnu.org>.
3038           Report Gentoo bugs to <http://bugs.gentoo.org/>.
3039           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
3040           General help using GNU software: <http://www.gnu.org/gethelp/>.
3041         * lib/version-etc.c: Print new information, if provided.
3042         * m4/version-etc.m4: New file.
3043         * modules/version-etc (Files): Add m4/version-etc.m4.
3044         (configure.ac): Add gl_VERSION_ETC.
3045
3046 2009-05-31  Bruno Haible  <bruno@clisp.org>
3047
3048         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
3049         and 'int64_t'.
3050         * modules/alignof-tests (Dependencies): Add stdint.
3051         Reported by Eric Blake.
3052
3053 2009-05-31  Bruno Haible  <bruno@clisp.org>
3054
3055         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
3056         restriction due to compiler bugs.
3057         Reported by Eric Blake.
3058
3059 2009-05-31  Simon Josefsson  <simon@josefsson.org>
3060             Bruno Haible  <bruno@clisp.org>
3061
3062         Fix test-alignof failure.
3063         * lib/alignof.h (alignof_slot): New macro.
3064         (alignof_type): New macro, with the same semantics as the previous
3065         'alignof'.
3066         (alignof): Alias to alignof_slot.
3067         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
3068         check that the results are usable as constant expressions.
3069
3070 2009-05-31  Bruno Haible  <bruno@clisp.org>
3071
3072         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
3073         * tests/test-memchr.c (main): Check that memchr does not read past the
3074         first occurrence of the byte.
3075         * tests/test-strstr.c (main): Update comment.
3076         Suggested by Eric Blake.
3077
3078 2009-05-30  Bruno Haible  <bruno@clisp.org>
3079
3080         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
3081         detail how to use dumpbin.
3082         Reported by David Byron <dbyron@dbyron.com>.
3083
3084 2009-06-02  Simon Josefsson  <simon@josefsson.org>
3085
3086         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
3087
3088 2009-06-02  Simon Josefsson  <simon@josefsson.org>
3089
3090         * m4/manywarnings.m4: Add GCC 4.4 warnings.
3091
3092 2009-05-28  Bruno Haible  <bruno@clisp.org>
3093
3094         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
3095         build-aux/ files.
3096
3097 2009-05-28  Simon Josefsson  <simon@josefsson.org>
3098
3099         * gnulib-tool (func_import): Transform license on build-aux/ files too.
3100
3101 2009-05-27  Simon Josefsson  <simon@josefsson.org>
3102
3103         * gnulib-tool (sed_transform_main_lib_file)
3104         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
3105         regexps.
3106
3107 2009-05-26  Simon Josefsson  <simon@josefsson.org>
3108
3109         * tests/test-strstr.c: Add another self-test.
3110         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
3111         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
3112
3113 2009-05-23  Bruno Haible  <bruno@clisp.org>
3114
3115         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
3116         change.
3117
3118 2009-05-21  Bruno Haible  <bruno@clisp.org>
3119
3120         Simplify use of mode_t varargs.
3121         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
3122         uses 'mode_t' or 'int'.
3123         * lib/openat.c (openat): Likewise.
3124         * lib/open-safer.c (open_safer): Likewise.
3125         * m4/mode_t.m4: New file.
3126         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
3127         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
3128         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
3129         * modules/open (Files): Add m4/mode_t.m4.
3130         * modules/openat (Files): Likewise.
3131         * modules/fcntl-safer (Files): Likewise.
3132         Suggested by Eric Blake.
3133
3134 2009-05-21  Pádraig Brady  <P@draigbrady.com>
3135
3136         * doc/glibc-functions/fallocate.texi: New file.
3137         * doc/gnulib.texi: Include it.
3138
3139 2009-05-21  Eric Blake  <ebb9@byu.net>
3140             Bruno Haible  <bruno@clisp.org>
3141
3142         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
3143         invocations.
3144         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
3145
3146 2009-05-21  Eric Blake  <ebb9@byu.net>
3147             Bruno Haible  <bruno@clisp.org>
3148
3149         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
3150         include_next. Fix of 2008-11-20 commit.
3151         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
3152         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
3153         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
3154         NEXT_MATH_H.
3155         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
3156         instead of NEXT_MATH_H.
3157
3158 2009-05-21  Bruno Haible  <bruno@clisp.org>
3159
3160         Avoid redefinition warnings for SIZE_MAX.
3161         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
3162         Reported by Simon Josefsson.
3163
3164 2009-05-21  Bruno Haible  <bruno@clisp.org>
3165
3166         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
3167         AC_CACHE_VAL.
3168
3169 2009-05-20  Bruno Haible  <bruno@clisp.org>
3170
3171         Make zeroptr.h work on mingw.
3172         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
3173         mprotect.
3174         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
3175         * modules/memchr2-tests (configure.ac): Likewise.
3176         * modules/memcmp-tests (configure.ac): Likewise.
3177         * modules/memmem-tests (configure.ac): Likewise.
3178         * modules/memrchr-tests (configure.ac): Likewise.
3179         Reported by Simon Josefsson.
3180
3181 2009-05-20  Simon Josefsson  <simon@josefsson.org>
3182
3183         * tests/test-glob.c: Include string.h for strcmp prototype.
3184
3185 2009-05-20  Simon Josefsson  <simon@josefsson.org>
3186
3187         * modules/getdelim (Depends-on): Add explicit stdint, although it
3188         was implicitly already pulled in via realloc-posix.
3189         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
3190
3191 2009-05-20  Simon Josefsson  <simon@josefsson.org>
3192
3193         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
3194         G. Christensen" <tgc@jupiterrise.com>.
3195         * m4/sys_socket_h.m4: Check for sa_family_t.
3196         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
3197         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
3198         * tests/test-sys_socket.c: Check that sa_family_t works.
3199
3200 2009-05-18  Eric Blake  <ebb9@byu.net>
3201
3202         maint.mk: allow gnulib_dir in VPATH build
3203         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
3204
3205 2009-05-15  Jim Meyering  <meyering@redhat.com>
3206
3207         maint.mk: Give gnulib_dir a default definition.
3208         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
3209         Thus, most packages no longer need to specify this variable in cfg.mk
3210
3211 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
3212
3213         rename.m4: fix typos that would make non-mingw cross-configure fail
3214         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
3215
3216 2009-05-13  Eric Blake  <ebb9@byu.net>
3217
3218         mmap-anon: avoid out-of-order autoconf expansion
3219         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
3220         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
3221         * modules/memchr-tests (Depends-on): Add extensions.
3222         * modules/memchr2-tests (Depends-on): Add extensions.
3223         * modules/memcmp-tests (Depends-on): Add extensions.
3224         * modules/memmem-tests (Depends-on): Add extensions.
3225         * modules/memrchr-tests (Depends-on): Add extensions.
3226
3227 2009-05-13  Bruno Haible  <bruno@clisp.org>
3228
3229         Make some tests ISO C 99 compliant.
3230         * tests/zerosize-ptr.h: New file.
3231         * tests/test-memchr.c: Include zerosize-ptr.h.
3232         (main): Use a zero-size object pointer instead of NULL.
3233         * tests/test-memchr2.c: Include zerosize-ptr.h.
3234         (main): Use a zero-size object pointer instead of NULL.
3235         * tests/test-memcmp.c: Include zerosize-ptr.h.
3236         (main): Use a zero-size object pointer instead of NULL.
3237         * tests/test-memmem.c: Include zerosize-ptr.h.
3238         (main): Use a zero-size object pointer instead of NULL.
3239         * tests/test-memrchr.c: Include zerosize-ptr.h.
3240         (main): Use a zero-size object pointer instead of NULL.
3241         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
3242         m4/mmap-anon.m4.
3243         (Depends-on): Add getpagesize.
3244         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
3245         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
3246         m4/mmap-anon.m4.
3247         (Depends-on): Add getpagesize.
3248         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
3249         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
3250         m4/mmap-anon.m4.
3251         (Depends-on): Add getpagesize.
3252         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
3253         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
3254         m4/mmap-anon.m4.
3255         (Depends-on): Add getpagesize.
3256         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
3257         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
3258         m4/mmap-anon.m4.
3259         (Depends-on): Add getpagesize.
3260         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
3261
3262 2009-05-12  Bruno Haible  <bruno@clisp.org>
3263
3264         Tests for module 'alignof'.
3265         * modules/alignof-tests: New file.
3266         * tests/test-alignof.c: New file.
3267
3268 2009-05-12  Bruno Haible  <bruno@clisp.org>
3269
3270         Fix alignof macro.
3271         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
3272         vendor compilers that are always correct.
3273
3274 2009-05-12  Bruno Haible  <bruno@clisp.org>
3275
3276         Make the MAP_ANONYMOUS detection work on HP-UX 11.
3277         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
3278         not whether its fully works.
3279
3280 2009-05-12  Bruno Haible  <bruno@clisp.org>
3281
3282         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
3283
3284 2009-05-12  Jim Meyering  <meyering@redhat.com>
3285
3286         * top/maint.mk: Adjust backslash alignment.
3287
3288 2009-05-11  Simon Josefsson  <simon@josefsson.org>
3289
3290         * top/maint.mk: Make $(srcdir)/build-aux configurable.
3291
3292 2009-05-11  Eric Blake  <ebb9@byu.net>
3293
3294         argp: avoid undefined behavior
3295         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
3296         macros.
3297
3298 2009-05-08  Simon Josefsson  <simon@josefsson.org>
3299
3300         * tests/test-vc-list-files-git.sh: Do git config of user.email and
3301         user.name to prevent git commit from complaining.
3302
3303 2009-05-10  Bruno Haible  <bruno@clisp.org>
3304
3305         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
3306         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
3307         it rewrites every file name only once.
3308         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
3309
3310 2009-05-08  Bruno Haible  <bruno@clisp.org>
3311
3312         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
3313         instead of 'max'.
3314
3315 2009-05-08  Simon Josefsson  <simon@josefsson.org>
3316
3317         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
3318         sockaddr_storage test.
3319
3320 2009-05-07  Simon Josefsson  <simon@josefsson.org>
3321
3322         * modules/sys_socket (Makefile.am): Substitute
3323         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
3324         * m4/sys_socket_h.m4: Check for sockaddr_storage.
3325         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
3326         * tests/test-sys_socket.c: Check sockaddr_storage.
3327
3328 2009-05-08  Bruno Haible  <bruno@clisp.org>
3329
3330         New module 'alignof'.
3331         * lib/alignof.h: New file.
3332         * modules/alignof: New file.
3333
3334 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
3335             Bruno Haible  <bruno@clisp.org>
3336
3337         Fix test-file-has-acl on FreeBSD.
3338         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
3339         mask is implicitly added.
3340         * tests/test-file-has-acl.c: Include <signal.h>.
3341         (main): Terminate the test after 5 seconds.
3342         * modules/acl-tests (configure.ac): Check for alarm function.
3343
3344 2009-05-04  Bruno Haible  <bruno@clisp.org>
3345
3346         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
3347         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
3348         * modules/errno (configure.ac): Drop AC_REQUIRE.
3349         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
3350         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
3351
3352 2009-05-04  Simon Josefsson  <simon@josefsson.org>
3353
3354         * modules/glob-tests: New module.
3355         * tests/test-glob.c: Add.
3356
3357 2009-05-04  Simon Josefsson  <simon@josefsson.org>
3358
3359         * modules/fnmatch-tests: New module.
3360         * tests/test-fnmatch.c: Add.
3361
3362 2009-05-04  Eric Blake  <ebb9@byu.net>
3363
3364         maint: make the new no-submodule-changes rule VPATH-safe
3365         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
3366
3367 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
3368             Bruno Haible  <bruno@clisp.org>
3369
3370         acl: Fix infinite loop on FreeBSD.
3371         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
3372         of return value from acl_get_entry.
3373         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
3374         Likewise.
3375
3376 2009-05-03  Bruno Haible  <bruno@clisp.org>
3377
3378         * lib/acl-internal.h (acl_entries): Clarify return value.
3379         * lib/acl_entries.c (acl_entries): Likewise.
3380
3381 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
3382
3383         Bug fix in acl module.
3384         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
3385
3386 2009-05-03  Bruno Haible  <bruno@clisp.org>
3387
3388         Create gperf-generated file in the source dir, not in the build dir.
3389         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
3390         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
3391         * modules/unicase/locale-language (unicase/locale-languages.h):
3392         Likewise.
3393         * modules/unicase/special-casing (unicase/special-casing-table.h):
3394         Likewise.
3395         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
3396         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
3397         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
3398         Reported by Ralf Wildenhues.
3399
3400 2009-05-03  Bruno Haible  <bruno@clisp.org>
3401
3402         * modules/fnmatch (Description, configure.ac): Taken from
3403         fnmatch-posix.
3404         * modules/fnmatch-posix: Turn into a symbolic reference to the
3405         'fnmatch' module, and deprecate.
3406         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
3407
3408 2009-05-03  Bruno Haible  <bruno@clisp.org>
3409
3410         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
3411         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
3412         Reported by Ralf Wildenhues.
3413
3414 2009-05-04  Simon Josefsson  <simon@josefsson.org>
3415
3416         * m4/fnmatch.m4: Fix fnmatch re-define.
3417
3418 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
3419
3420         priv-set: new module and tests; adapt write-any-file
3421         * lib/priv-set.c: New file.
3422         * lib/priv-set.h: New file.
3423         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
3424         * lib/write-any-file.c: Simplify by using priv-set module.
3425         * m4/priv-set.m4: New file.
3426         * modules/priv-set: New file.
3427         * modules/unlinkdir: Add dependency on priv-set module.
3428         * modules/write-any-file: Likewise.
3429
3430         Tests for module 'priv-set'.
3431         * modules/priv-set-tests: New file.
3432         * tests/test-priv-set.c: New file.
3433
3434 2009-05-03  Jim Meyering  <meyering@redhat.com>
3435             Bruno Haible  <bruno@clisp.org>
3436
3437         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
3438         use the converted UTF-8 variant of the name instead.
3439
3440 2009-05-03  Jim Meyering  <meyering@redhat.com>
3441
3442         tests: tighten some getdate tests
3443         * tests/test-getdate.c (main): Tighten tests: require equality,
3444         not just greater than.  Set TZ envvar to UTC0.
3445
3446 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
3447
3448         getdate: correctly interpret "next monday" when run on a Monday
3449         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
3450         that e.g., "next tues" (when run on a tuesday) results in a date
3451         that is one week in the future, and not today's date.
3452         I.e., add a week when the wday is the same as the current one.
3453         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
3454         and earlier by Martin Bernreuther and Jan Minář.
3455         * tests/test-getdate.c (main): Check that "next DAY" is always in
3456         the future and that "last DAY" is always in the past.
3457
3458 2009-05-02  Jim Meyering  <meyering@redhat.com>
3459
3460         build: ensure that a release build fails when a submodule is unclean
3461         * top/maint.mk (no-submodule-changes): New rule.
3462         (alpha beta major): Depend on it.
3463
3464 2009-05-02  Bruno Haible  <bruno@clisp.org>
3465
3466         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
3467         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
3468         shell variable gl_fnmatch_required to detect which variant is
3469         requested.
3470         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
3471         gl_FUNC_FNMATCH_POSIX.
3472         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
3473         exclude fnmatch-posix.
3474
3475 2009-05-02  Bruno Haible  <bruno@clisp.org>
3476
3477         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
3478         * modules/mbsrtowcs (License): Change to LGPLv2+.
3479         * modules/strnlen1 (License): Likewise.
3480         Reported by Simon Josefsson.
3481
3482 2009-05-02  Bruno Haible  <bruno@clisp.org>
3483
3484         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
3485         "cross".
3486         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
3487         gnulib-tool was called with option --source-base=lib.
3488
3489 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3490
3491         Use automake *-local hooks without commands, for extensibility.
3492         * modules/localcharset (Makefile.am): Rename install-exec-local
3493         rule to install-exec-localcharset, and make it a prerequisite of
3494         install-exec-local.  Likewise, rename the uninstall-local rule to
3495         uninstall-localcharset, and make it a prerequisite of the former.
3496
3497 2009-05-01  Bruno Haible  <bruno@clisp.org>
3498
3499         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
3500         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
3501         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
3502         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
3503         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
3504         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
3505         m4/locale-zh.m4, m4/codeset.m4.
3506
3507         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
3508         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
3509         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
3510         m4/locale-zh.m4.
3511
3512         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
3513         REPLACE_WCRTOMB if mbstate_t must be replaced.
3514         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
3515         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
3516
3517 2009-05-01  Bruno Haible  <bruno@clisp.org>
3518
3519         Avoid compiler warnings when redefining macros defined by <libintl.h>.
3520         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
3521         dngettext, dcngettext, textdomain, bindtextdomain,
3522         bind_textdomain_codeset): Undefine before redefining.
3523
3524 2009-04-30  Bruno Haible  <bruno@clisp.org>
3525
3526         Fix bug introduced on 2009-04-25.
3527         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
3528         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
3529         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
3530         is defined.
3531         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
3532         is defined.
3533         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
3534         is defined.
3535         Reported by Elbert_Pol <elbert.pol@gmail.com>.
3536
3537 2009-04-28  Bruno Haible  <bruno@clisp.org>
3538
3539         Comment tweaks.
3540         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
3541         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
3542         * lib/unicase.h (u*_casexfrm): Likewise.
3543         Reported by Paolo Bonzini.
3544
3545 2009-04-28  Bruno Haible  <bruno@clisp.org>
3546
3547         Fix a compilation error.
3548         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
3549         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
3550         Reported by Jim Meyering.
3551
3552 2009-04-27  Bruno Haible  <bruno@clisp.org>
3553
3554         New module 'libunistring'.
3555         * modules/libunistring: New file.
3556         * m4/libunistring.m4: New file.
3557         * MODULES.html.sh (Unicode string functions): Add it.
3558
3559 2009-04-27  Eric Blake  <ebb9@byu.net>
3560
3561         maint.mk: allow package-specific header to provide <config.h>
3562         * top/maint.mk (sc_require_config_h): New variable.
3563         (sc_require_config_h, sc_require_config_h_first): Use it.
3564
3565 2009-04-27  Simon Josefsson  <simon@josefsson.org>
3566
3567         * top/maint.mk (sc_avoid_if_before_free): Except
3568         useless-if-before-free script.
3569
3570 2009-04-27  Eric Blake  <ebb9@byu.net>
3571
3572         maintainer-makefile: depend on all required helper scripts
3573         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
3574         useless-if-before-free.
3575         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
3576         version, rather than assuming gnulib checkout is available.
3577         Reported by Simen Josefsson.
3578
3579 2009-04-26  Bruno Haible  <bruno@clisp.org>
3580
3581         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
3582         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
3583         "../" or "..".
3584
3585 2009-04-26  Bruno Haible  <bruno@clisp.org>
3586
3587         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
3588         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
3589         AC_LIB_HAVE_LINKFLAGS.
3590
3591 2009-04-26  Bruno Haible  <bruno@clisp.org>
3592
3593         Simplify calling convention of u*_conv_from_encoding.
3594         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
3595         u32_conv_from_encoding): Expect a resultbuf argument and return the
3596         result directly as a pointer.
3597         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
3598         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
3599         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
3600         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
3601         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
3602         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
3603         Update.
3604         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
3605         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
3606         * lib/vasnprintf.c (VASNPRINTF): Update.
3607         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
3608         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
3609         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
3610         * NEWS: Mention the change.
3611
3612 2009-04-26  Bruno Haible  <bruno@clisp.org>
3613
3614         Simplify calling convention of u*_conv_to_encoding.
3615         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
3616         u32_conv_to_encoding): Expect a resultbuf argument and return the
3617         result directly as a pointer.
3618         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
3619         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
3620         freeing scaled_offsets if mem_iconveha failed.
3621         * lib/unicase/u-casexfrm.h (FUNC): Update.
3622         * lib/uninorm/u-normxfrm.h (FUNC): Update.
3623         * lib/vasnprintf.c (VASNPRINTF): Update.
3624         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
3625         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
3626         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
3627         * NEWS: Mention the change.
3628
3629 2009-04-26  Bruno Haible  <bruno@clisp.org>
3630
3631         Avoid test failures on AIX and OSF/1.
3632         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
3633         malloc(0).
3634         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
3635         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
3636         Likewise.
3637         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
3638         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
3639         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
3640         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
3641         * doc/posix-functions/malloc.texi: Document the portability problem
3642         related to malloc(0).
3643
3644 2009-04-26  Bruno Haible  <bruno@clisp.org>
3645
3646         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
3647         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
3648         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
3649
3650 2009-04-25  Bruno Haible  <bruno@clisp.org>
3651
3652         Avoid link error when creating a namespace clean library.
3653         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
3654         as macro with arguments if already defined as an alias.
3655         * lib/signbitf.c (gl_signbitf): Don't undefine.
3656         * lib/signbitd.c (gl_signbitd): Don't undefine.
3657         * lib/signbitl.c (gl_signbitl): Don't undefine.
3658
3659 2009-04-25  Jim Meyering  <meyering@redhat.com>
3660
3661         vc-list-files: fix another quoting bug
3662         * build-aux/vc-list-files: Avoid sed backslash expansion
3663         of pathological directory names.
3664
3665 2009-04-25  Eric Blake  <ebb9@byu.net>
3666
3667         vc-list-files: fix shell quoting error
3668         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
3669         timestamp.
3670
3671 2009-04-25  Jim Meyering  <meyering@redhat.com>
3672
3673         vc-list-files: restore lost functionality with subdir argument
3674         * build-aux/vc-list-files: When given a non-"." sub-directory
3675         argument, substitute the $dir/ prefix back onto each resulting name.
3676         Otherwise, coreutils' root_tests check would fail.
3677
3678 2009-04-24  Eric Blake  <ebb9@byu.net>
3679
3680         vc-list-files: ignore git symlinks
3681         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
3682         than ls-files, to ignore git symlinks.
3683
3684         maint.mk: import improvements from m4
3685         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
3686         (move_if_change): Delete unused macro.
3687         (news-date-check, vc-diff-check): Support VPATH builds.
3688         (announcement): Likewise.  Split --bootstrap-tools list...
3689         (boostrap-tools): ...into separate list, which can be overridden
3690         in cfg.mk.
3691         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
3692         requiring dependency on useless-if-before-free module.
3693         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
3694         Support VPATH builds.
3695
3696 2009-04-24  Jim Meyering  <meyering@redhat.com>
3697
3698         maint.mk: remove coreutils-specific rules and variables
3699         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
3700         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
3701         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
3702
3703         maint.mk: remove obsolete rule
3704         * top/maint.mk (rel-check): Remove rule.
3705         (WGET, WGETFLAGS): Remove now-unused variables.
3706
3707 2009-04-24  Simon Josefsson  <simon@josefsson.org>
3708
3709         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
3710         consistency.
3711
3712         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
3713         '$(PATH_SEPARATOR)' instead of ':'.
3714
3715 2009-04-24  Simon Josefsson  <simon@josefsson.org>
3716
3717         * lib/getopt1.c (main): Use 'const' for static array.
3718
3719 2009-04-24  Simon Josefsson  <simon@josefsson.org>
3720
3721         * top/maint.mk: Sync with coreutils.
3722         * NEWS: Explain incompatibilities.
3723
3724 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3725             Bruno Haible  <bruno@clisp.org>
3726
3727         Fix cross-compilation results.
3728         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
3729         statement, as third argument of AC_TRY_RUN.
3730         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
3731         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
3732         Likewise.
3733         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
3734         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
3735         Likewise.
3736         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3737         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
3738         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
3739
3740 2009-04-20  Bruno Haible  <bruno@clisp.org>
3741
3742         Avoid test failure on mingw.
3743         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
3744
3745 2009-04-20  Bruno Haible  <bruno@clisp.org>
3746
3747         Avoid compilation error on mingw.
3748         * modules/localename-tests (Depends-on): Add locale.
3749
3750 2009-04-19  Bruno Haible  <bruno@clisp.org>
3751
3752         Support for building a shared library on Windows platforms.
3753         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
3754         (main): Test the presence of UNINORM_NFC here.
3755         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
3756         (main): Test the presence of UNINORM_NFD here.
3757         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
3758         (main): Test the presence of UNINORM_NFKC here.
3759         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
3760         (main): Test the presence of UNINORM_NFKD here.
3761
3762 2009-04-19  Bruno Haible  <bruno@clisp.org>
3763
3764         Avoid a compiler warning.
3765         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
3766         Change type of variable 'sequence'.
3767
3768 2009-04-19  Bruno Haible  <bruno@clisp.org>
3769
3770         * modules/configmake (Makefile.am): When the contents of configmake.h
3771         does not change, arrange to preserve its modification time.
3772
3773 2009-04-17  Simon Josefsson  <simon@josefsson.org>
3774
3775         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
3776         gettext domain.
3777
3778 2009-04-16  Jim Meyering  <meyering@redhat.com>
3779
3780         useless-if-before-free: improve conversion code
3781         * build-aux/useless-if-before-free: Adjust code-in-comment to match
3782         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
3783
3784 2009-04-14  Bruno Haible  <bruno@clisp.org>
3785
3786         * modules/fcntl (Depends-on): Add extensions.
3787         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
3788
3789 2009-04-12  Ben Pfaff  <blp@gnu.org>
3790
3791         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
3792         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
3793
3794 2009-03-20  Ben Pfaff  <blp@gnu.org>
3795
3796         Make rename replace existing destinations on Windows.
3797         * m4/rename.m4: Add test for Mingw.
3798         * lib/rename.c: Add rename replacement that uses MoveFileEx with
3799         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
3800         * doc/posix-functions/rename.texi: Document.
3801
3802 2009-04-10  Bruno Haible  <bruno@clisp.org>
3803
3804         New include file "iconveh.h".
3805         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
3806         * lib/striconveh.h: Include it.
3807         (enum iconv_ilseq_handler): Remove definition.
3808         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
3809         striconveh.h.
3810         * lib/striconveha.c: Include striconveh.h.
3811         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
3812         * modules/striconveh (Files): Add lib/iconveh.h.
3813         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
3814         lib/striconveh.h.
3815
3816 2009-04-10  Bruno Haible  <bruno@clisp.org>
3817
3818         * lib/uniconv.h: Update comment.
3819
3820 2009-04-10  Bruno Haible  <bruno@clisp.org>
3821
3822         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
3823         always.
3824         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
3825         * lib/unistr/u16-mbtouc-aux.c: Likewise.
3826         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
3827         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
3828         "unistring-notinline.h", so that the function gets defined always.
3829         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
3830         * lib/unistr/u8-uctomb.c: Likewise.
3831         * lib/unistr/u16-mbtouc.c: Likewise.
3832         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
3833         * lib/unistr/u16-uctomb.c: Likewise.
3834         * lib/unistr/u32-mbtouc.c: Likewise.
3835         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
3836         * lib/unistr/u32-uctomb.c: Likewise.
3837
3838 2009-04-10  Bruno Haible  <bruno@clisp.org>
3839
3840         Mark 'utime' obsolete.
3841         * modules/utime (Status, Notice): New sections.
3842         Suggested by Jim Meyering.
3843
3844         Fix cross-compile guess for utime test.
3845         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
3846         autoconf.
3847         * doc/posix-functions/utime.texi: Give more precisions.
3848         Reported by Jan <ipif@ymail.com>.
3849
3850 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
3851
3852         filevercmp: correct today's change
3853         * lib/filevercmp.c: Also handle coreutils' test inputs.
3854         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
3855
3856         Fix regression in 'filevercmp' module. Thanks Sven Joachim
3857         for reporting it.
3858         * lib/filevercmp.c: Special handle for "", "." and "..".
3859         * tests/test-filevercmp.c: Enlarge the set suite.
3860
3861 2009-04-07  Jim Meyering  <meyering@redhat.com>
3862
3863         useless-if-before-free: show how to remove braced useless free, too
3864         * build-aux/useless-if-before-free: still only in a comment, though.
3865
3866 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
3867
3868         maint.mk: import changes to syntax-check macros from coreutils
3869         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
3870         Use them in the relevant macros.
3871
3872 2009-04-06  Bruno Haible  <bruno@clisp.org>
3873
3874         Fix unportable use of bit-fields.
3875         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
3876         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
3877         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
3878
3879 2009-04-06  Bruno Haible  <bruno@clisp.org>
3880
3881         Avoid test failures on AIX and OSF/1.
3882         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
3883         that malloc(0) = NULL.
3884         * tests/unicase/test-u8-tolower.c (check): Likewise.
3885         * tests/unicase/test-u8-totitle.c (check): Likewise.
3886         * tests/unicase/test-u8-toupper.c (check): Likewise.
3887         * tests/unicase/test-u16-casefold.c (check): Likewise.
3888         * tests/unicase/test-u16-tolower.c (check): Likewise.
3889         * tests/unicase/test-u16-totitle.c (check): Likewise.
3890         * tests/unicase/test-u16-toupper.c (check): Likewise.
3891         * tests/unicase/test-u32-casefold.c (check): Likewise.
3892         * tests/unicase/test-u32-tolower.c (check): Likewise.
3893         * tests/unicase/test-u32-totitle.c (check): Likewise.
3894         * tests/unicase/test-u32-toupper.c (check): Likewise.
3895         * tests/uninorm/test-u8-nfc.c (check): Likewise.
3896         * tests/uninorm/test-u8-nfd.c (check): Likewise.
3897         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
3898         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
3899         * tests/uninorm/test-u16-nfc.c (check): Likewise.
3900         * tests/uninorm/test-u16-nfd.c (check): Likewise.
3901         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
3902         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
3903         * tests/uninorm/test-u32-nfc.c (check): Likewise.
3904         * tests/uninorm/test-u32-nfd.c (check): Likewise.
3905         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
3906         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
3907
3908 2009-04-05  Bruno Haible  <bruno@clisp.org>
3909
3910         Work around an autoconf limitation.
3911         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
3912         comment line if it would be longer than 3 KB.
3913
3914 2009-04-05  Bruno Haible  <bruno@clisp.org>
3915
3916         Avoid test failure with libiconv-1.13.
3917         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
3918         of the expected test results.
3919
3920 2009-04-05  Bruno Haible  <bruno@clisp.org>
3921
3922         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
3923         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
3924         that it should be installed.
3925
3926 2009-04-05  Bruno Haible  <bruno@clisp.org>
3927
3928         * gnulib-tool: New option --copy-file.
3929         (func_usage): Document it.
3930         (func_dest_tmpfilename): Moved out of func_import.
3931         (func_add_file, func_update_file): New functions, extracted from
3932         func_import.
3933         (func_import): Update.
3934
3935 2009-04-05  Karl Berry  <karl@gnu.org>
3936
3937         * README: prominently mention gnulib-tool.
3938         Rearrange sections so getting the code is near the top.
3939
3940 2009-04-05  Bruno Haible  <bruno@clisp.org>
3941
3942         * lib/unicase.h: Mention u*_cmp2.
3943         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
3944         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
3945         * lib/unicase/ulc-casecmp.c: Likewise.
3946         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
3947         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
3948         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
3949         unistr/u8-cmp.
3950         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
3951         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
3952         unistr/u16-cmp.
3953         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
3954         unistr/u32-cmp.
3955
3956         * lib/uninorm.h: Mention u*_cmp2.
3957         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
3958         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
3959         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
3960         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
3961         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
3962         unistr/u8-cmp.
3963         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
3964         unistr/u16-cmp.
3965         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
3966         unistr/u32-cmp.
3967
3968         New module 'unistr/u32-cmp2'.
3969         * lib/unistr/u32-cmp2.c: New file.
3970         * modules/unistr/u32-cmp2: New file.
3971
3972         New module 'unistr/u16-cmp2'.
3973         * lib/unistr/u16-cmp2.c: New file.
3974         * modules/unistr/u16-cmp2: New file.
3975
3976         New module 'unistr/u8-cmp2'.
3977         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
3978         * lib/unistr/u8-cmp2.c: New file.
3979         * lib/unistr/u-cmp2.h: New file.
3980         * modules/unistr/u8-cmp2: New file.
3981
3982 2009-04-05  Bruno Haible  <bruno@clisp.org>
3983
3984         * lib/unictype.h (uc_property_is_valid): New macro.
3985         * tests/unictype/test-pr_byname.c (main): Use it.
3986
3987         * lib/unistr.h: Doc fixes.
3988         * lib/uniconv.h: Doc fixes.
3989         * lib/unictype.h: Doc fixes.
3990
3991 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
3992
3993         Port coreutils 7.2 to Solaris 8.
3994
3995         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
3996         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
3997         for Solaris 8.  This is a bit of a hack, as it means it's the
3998         caller's responsibility to add -lnsl if needed, but most likely it
3999         won't be needed since only getaddrinfo uses this and getaddrinfo
4000         isn't needed on Solaris 8.
4001
4002         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
4003         problem to Solaris 8 encountered with coreutils 7.2, which
4004         resulted in a message "fnmatch.c:292: warning: passing argument 4
4005         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
4006         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
4007
4008 2009-04-03  Simon Josefsson  <simon@josefsson.org>
4009
4010         * m4/ld-version-script.m4: Add FIXME comment.
4011
4012 2009-04-02  Simon Josefsson  <simon@josefsson.org>
4013
4014         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
4015         SOVERSION variable.
4016
4017 2009-04-02  Bruno Haible  <bruno@clisp.org>
4018
4019         * Makefile (info, html, dvi, pdf): Combine the rules.
4020         Suggested by Jim Meyering.
4021
4022 2009-04-01  Bruno Haible  <bruno@clisp.org>
4023
4024         * Makefile (info, html, dvi, pdf): New targets.
4025         Reported by Reuben Thomas <rrt@sc3d.org>.
4026
4027 2009-04-01  Bruno Haible  <bruno@clisp.org>
4028
4029         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
4030         can be put into PATH.
4031         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
4032
4033 2009-04-01  Bruno Haible  <bruno@clisp.org>
4034
4035         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
4036
4037 2009-04-01  Bruno Haible  <bruno@clisp.org>
4038
4039         Rename module 'visibility'.
4040         * modules/lib-symbol-visibility: Renamed from modules/visibility.
4041         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
4042         * doc/gnulib.texi: Update.
4043         * MODULES.html.sh (Misc): Update.
4044         * NEWS: Mention the change.
4045
4046 2009-04-01  Simon Josefsson  <simon@josefsson.org>
4047
4048         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
4049         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
4050         Eric Blake <ebb9@byu.net> for review.
4051         * MODULES.html.sh: Add lib-msvc-compat.
4052         * doc/gnulib.texi: Link to new section.
4053         * m4/ld-output-def.m4: New file.
4054         * doc/ld-output-def.texi: New file.
4055
4056 2009-04-01  Simon Josefsson  <simon@josefsson.org>
4057
4058         Rename ld-version-script to lib-symbol-versions.  Suggested by
4059         Bruno Haible <bruno@clisp.org>.
4060         * modules/ld-version-script: Renamed to lib-symbol-versions.
4061         * doc/ld-version-script.texi: Fix module name.
4062         * MODULES.html.sh: Add lib-symbol-versions.
4063
4064 2009-03-31  Simon Josefsson  <simon@josefsson.org>
4065
4066         * modules/u64-tests: New file.
4067         * tests/test-u64.c: New file.
4068
4069 2009-03-04  Simon Josefsson  <simon@josefsson.org>
4070
4071         * MODULES.html.sh: Mention u64.
4072         * modules/u64: New module.
4073         * modules/crypto/sha512: Depend on u64 module instead of providing
4074         u64.h.
4075
4076 2009-03-27  Eric Blake  <ebb9@byu.net>
4077
4078         test-strerror: make debugging EAI_SYSTEM easier
4079         * modules/getaddrinfo-tests (Depends-on): Add strerror.
4080         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
4081         failure was EAI_SYSTEM.
4082
4083 2009-03-25  Bruno Haible  <bruno@clisp.org>
4084
4085         Fix a problem with --enable-relocatable on Solaris 7.
4086         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
4087         since 2008-02-24.
4088
4089 2009-03-25  Eric Blake  <ebb9@byu.net>
4090
4091         test-sockets: avoid gcc warning
4092         * tests/test-sockets.c (main): Silence compiler warning.
4093
4094 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
4095
4096         New modules nproc, pthread, contributed by Glen Lenker.
4097
4098         * MODULES.html.sh: Add pthread, nproc.
4099         * lib/nproc.c: New file.
4100         * lib/nproc.h: New file.
4101         * lib/pthread.in.h: New file.
4102         * m4/pthread.m4: New file.
4103         * modules/nproc: New file.
4104         * modules/pthread: New file.
4105
4106 2009-03-24  Simon Josefsson  <simon@josefsson.org>
4107
4108         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
4109         New variable.
4110
4111 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
4112
4113         filevercmp: handle simple~ and numbered.~3~ backup suffixes
4114         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
4115         * tests/test-filevercmp.c: Add tests for backup suffixes.
4116
4117 2009-03-24  Simon Josefsson  <simon@josefsson.org>
4118
4119         * modules/stdlib (Depends-on): Add stdint, needed when defining
4120         struct random_data on, for example, HP-UX 10.20.  Reported by
4121         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4122
4123 2009-03-24  Simon Josefsson  <simon@josefsson.org>
4124
4125         * lib/readline.c (readline): Call fflush on stdout after printing
4126         prompt.
4127
4128 2009-03-20  Bruno Haible  <bruno@clisp.org>
4129
4130         Remove dependency from 'close' module to -lws2_32 on native Windows.
4131         * lib/close-hook.h: New file.
4132         * lib/close-hook.c: New file.
4133         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
4134         w32sock.h.
4135         (_gl_close_fd_maybe_socket): Remove function.
4136         (rpl_close): Invoke execute_all_close_hooks instead of
4137         _gl_close_fd_maybe_socket.
4138         * lib/sockets.c: Include close-hook.h, w32sock.h.
4139         (close_fd_maybe_socket): New function, essentially from lib/close.c.
4140         (close_sockets_hook): New variable.
4141         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
4142         (gl_sockets_cleanup): Unregister it.
4143         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
4144         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
4145         * modules/close-hook: New file.
4146         * modules/close (Files): Remove lib/w32sock.h.
4147         (Depends-on): Add close-hook.
4148         (Link): Remove section.
4149         * modules/sockets (Files): Add lib/w32sock.h.
4150         (Depends-on): Add close-hook.
4151         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
4152         invocation.
4153         * NEWS: Mention that LIB_CLOSE is gone.
4154
4155 2009-03-23  Eric Blake  <ebb9@byu.net>
4156
4157         signal-tests: test previous patch
4158         * tests/test-signal.c: New file.
4159         * modules/signal-tests: Likewise.
4160
4161         signal.h: always support 'volatile sig_atomic_t'
4162         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
4163         (gl_SIGNAL_H_DEFAULTS): Add a default.
4164         * modules/signal (Makefile.am): Substitute if needed.
4165         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
4166         users can blindly add volatile.
4167         * doc/posix-headers/signal.texi (signal.h): Document it.
4168         Reported by Matthew Woehlke.
4169
4170 2009-03-23  Jim Meyering  <meyering@redhat.com>
4171
4172         pathmax: PATH_MAX: use pathconf only when available
4173         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
4174         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
4175         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
4176         This avoids a link failure in a PSP cross-compilation environment
4177         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
4178
4179         * lib/vasnprintf.c (divide): Fix typo in comment.
4180
4181 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4182
4183         * gnulib-tool (func_filter_filelist): Fix comment.
4184
4185 2009-03-20  Bruno Haible  <bruno@clisp.org>
4186
4187         Make sockets.h self-contained.
4188         * lib/sockets.c: Include sockets.h first.
4189         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
4190
4191 2009-03-19  Eric Blake  <ebb9@byu.net>
4192
4193         doc: mention more functions added in cygwin 1.7.0
4194         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
4195         addition.
4196         * doc/posix-functions/log2f.texi: Likewise.
4197
4198 2009-03-19  Jim Meyering  <meyering@redhat.com>
4199
4200         fsusage: avoid syntax error due to statement-before-declaration
4201         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
4202         after all declarations.  Reported by Matthew Woehlke in
4203         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
4204
4205 2009-03-18  Eric Blake  <ebb9@byu.net>
4206
4207         build-aux/compile: sync from automake
4208         * build-aux/compile: New file, from automake.
4209         * config/srclist.txt: Mention build-aux/compile.
4210
4211 2009-03-17  Bruno Haible  <bruno@clisp.org>
4212
4213         * lib/git-merge-changelog.c: Fix typo in comment.
4214         Reported by Reuben Thomas <rrt@sc3d.org>.
4215
4216 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
4217
4218         * m4/regex.m4: update and improve help for
4219         --without-included-regex.
4220
4221 2009-03-17  Simon Josefsson  <simon@josefsson.org>
4222
4223         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
4224         failure on missing include files.
4225
4226 2009-03-17  Eric Blake  <ebb9@byu.net>
4227
4228         doc: mention more functions added in cygwin 1.7.0
4229         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
4230         addition.
4231         * doc/posix-functions/fwscanf.texi: Likewise.
4232         * doc/posix-functions/swprintf.texi: Likewise.
4233         * doc/posix-functions/swscanf.texi: Likewise.
4234         * doc/posix-functions/vfwprintf.texi: Likewise.
4235         * doc/posix-functions/vfwscanf.texi: Likewise.
4236         * doc/posix-functions/vswprintf.texi: Likewise.
4237         * doc/posix-functions/vswscanf.texi: Likewise.
4238         * doc/posix-functions/vwprintf.texi: Likewise.
4239         * doc/posix-functions/vwscanf.texi: Likewise.
4240         * doc/posix-functions/wcscasecmp.texi: Likewise.
4241         * doc/posix-functions/wcsdup.texi: Likewise.
4242         * doc/posix-functions/wcsftime.texi: Likewise.
4243         * doc/posix-functions/wcsncasecmp.texi: Likewise.
4244         * doc/posix-functions/wprintf.texi: Likewise.
4245         * doc/posix-functions/wscanf.texi: Likewise.
4246         * doc/glibc-functions/gethostbyname2.texi: Likewise.
4247
4248 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4249
4250         maint.mk: really add $(AM_MAKEFLAGS)
4251         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
4252         was inadvertently omitted in the last commit.
4253         Spotted by Bruno Haible.
4254
4255         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
4256         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
4257         $(AM_MAKEFLAGS)' rather than plain `make'.
4258
4259         gnulib-tool: execute $MAKE not make
4260         * gnulib-tool: Default $MAKE to 'make'.
4261         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
4262         than make.  Initialize $MAKE in the do-autobuild script.
4263
4264         gnulib-tool: use $MAKE not make in generated files
4265         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
4266         make, in generated files.  Initialize $MAKE in the do-autobuild
4267         script.
4268
4269         * top/GNUmakefile (_have-git-version-gen): Fix typo.
4270
4271         GNUmakefile: disable parallelism only for multiple, recursive targets
4272         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
4273         additions in the Makefile.
4274         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
4275         by Automake.
4276         (.NOTPARALLEL): Only disable parallel builds if multiple targets
4277         are listed on the command line and at least one of them is
4278         listed in $(ALL_RECURSIVE_TARGETS).
4279
4280 2009-03-14  Bruno Haible  <bruno@clisp.org>
4281
4282         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
4283         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
4284         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
4285         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
4286         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
4287         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
4288         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
4289         unistr/u8-uctomb.
4290         * modules/unistr/u8-strchr (Depends-on): Likewise.
4291         * modules/unistr/u8-strrchr (Depends-on): Likewise.
4292         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
4293         unistr/u16-uctomb.
4294         * modules/unistr/u16-strchr (Depends-on): Likewise.
4295         * modules/unistr/u16-strrchr (Depends-on): Likewise.
4296
4297 2009-03-12  Bruno Haible  <bruno@clisp.org>
4298
4299         Work around select() bug on Interix 3.5.
4300         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
4301         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
4302         * m4/select.m4: New file.
4303         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
4304         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
4305         * modules/select (Files): Add m4/select.m4.
4306         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
4307         * modules/nanosleep (Depends-on): Add select.
4308         * modules/poll (Depends-on): Likewise.
4309         * doc/posix-functions/select.texi: Mention the Interix bug.
4310         Reported by Markus Duft <mduft@gentoo.org>.
4311
4312         * lib/select.c: Renamed from lib/winsock-select.c.
4313         * modules/select (Files): Add lib/select.c, remove
4314         lib/winsock-select.c.
4315         (configure.ac): Update.
4316
4317 2009-03-12  Jim Meyering  <meyering@redhat.com>
4318
4319         avoid gcc warnings about unused macro definitions
4320         * lib/readtokens.c (STREQ): Remove unused definition.
4321         * lib/xmalloc.c (SIZE_MAX): Likewise.
4322         * lib/openat-die.c (N_): Likewise.
4323         * lib/mountlist.c (SIZE_MAX): Remove definition.
4324         Instead, include <stdint.h>.
4325         * lib/readutmp.c: Likewise.
4326         * modules/readutmp (Depends-on): Add stdint.
4327         * modules/mountlist (Depends-on): Add stdint.
4328         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
4329
4330 2009-03-10  Bruno Haible  <bruno@clisp.org>
4331
4332         Tests for module 'mbmemcasecoll'.
4333         * modules/mbmemcasecoll-tests: New file.
4334         * tests/test-mbmemcasecoll1.sh: New file.
4335         * tests/test-mbmemcasecoll2.sh: New file.
4336         * tests/test-mbmemcasecoll3.sh: New file.
4337         * tests/test-mbmemcasecoll.c: New file.
4338
4339         New module 'mbmemcasecoll'.
4340         * lib/mbmemcasecoll.h: New file.
4341         * lib/mbmemcasecoll.c: New file.
4342         * modules/mbmemcasecoll: New file.
4343
4344         * tests/test-mbmemcasecmp.h: New file, extracted from
4345         tests/test-mbmemcasecmp.c.
4346         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
4347         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
4348         (main): Update.
4349         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
4350
4351 2009-03-09  Bruno Haible  <bruno@clisp.org>
4352
4353         Tests for module 'mbmemcasecmp'.
4354         * modules/mbmemcasecmp-tests: New file.
4355         * tests/test-mbmemcasecmp1.sh: New file.
4356         * tests/test-mbmemcasecmp2.sh: New file.
4357         * tests/test-mbmemcasecmp3.sh: New file.
4358         * tests/test-mbmemcasecmp.c: New file.
4359
4360         New module 'mbmemcasecmp'.
4361         * lib/mbmemcasecmp.h: New file.
4362         * lib/mbmemcasecmp.c: New file.
4363         * modules/mbmemcasecmp: New file.
4364
4365 2009-03-09  Bruno Haible  <bruno@clisp.org>
4366
4367         Tests for module 'unicase/ulc-casecoll'.
4368         * modules/unicase/ulc-casecoll-tests: New file.
4369         * tests/unicase/test-ulc-casecoll1.sh: New file.
4370         * tests/unicase/test-ulc-casecoll2.sh: New file.
4371         * tests/unicase/test-ulc-casecoll.c: New file.
4372
4373         New module 'unicase/ulc-casecoll'.
4374         * lib/unicase.h (ulc_casecoll): New declaration.
4375         * lib/unicase/ulc-casecoll.c: New file.
4376         * modules/unicase/ulc-casecoll: New file.
4377
4378         New module 'unicase/ulc-casexfrm'.
4379         * lib/unicase.h (ulc_casexfrm): New declaration.
4380         * lib/unicase/ulc-casexfrm.c: New file.
4381         * modules/unicase/ulc-casexfrm: New file.
4382
4383 2009-03-09  Bruno Haible  <bruno@clisp.org>
4384
4385         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
4386         invocations.
4387
4388         * m4/mbscasecmp.m4: Remove file.
4389         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
4390         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
4391
4392         * m4/mbscasestr.m4: Remove file.
4393         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
4394         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
4395
4396         * m4/mbschr.m4: Remove file.
4397         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
4398         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
4399
4400         * m4/mbscspn.m4: Remove file.
4401         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
4402         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
4403
4404         * m4/mbslen.m4: Remove file.
4405         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
4406         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
4407
4408         * m4/mbsncasecmp.m4: Remove file.
4409         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
4410         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
4411
4412         * m4/mbsnlen.m4: Remove file.
4413         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
4414         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
4415
4416         * m4/mbspbrk.m4: Remove file.
4417         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
4418         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
4419
4420         * m4/mbspcasecmp.m4: Remove file.
4421         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
4422         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
4423
4424         * m4/mbsrchr.m4: Remove file.
4425         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
4426         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
4427
4428         * m4/mbssep.m4: Remove file.
4429         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
4430         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
4431
4432         * m4/mbsspn.m4: Remove file.
4433         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
4434         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
4435
4436         * m4/mbsstr.m4: Remove file.
4437         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
4438         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
4439
4440         * m4/mbstok_r.m4: Remove file.
4441         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
4442         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
4443
4444         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
4445
4446         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
4447         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
4448
4449         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
4450
4451 2009-03-08  Bruno Haible  <bruno@clisp.org>
4452
4453         Tests for module 'unicase/ulc-casecmp'.
4454         * modules/unicase/ulc-casecmp-tests: New file.
4455         * tests/unicase/test-ulc-casecmp1.sh: New file.
4456         * tests/unicase/test-ulc-casecmp2.sh: New file.
4457         * tests/unicase/test-ulc-casecmp.c: New file.
4458
4459         New module 'unicase/ulc-casecmp'.
4460         * lib/unicase.h (ulc_casecmp): New declaration.
4461         * lib/unicase/ulc-casecmp.c: New file.
4462         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
4463         'const SRC_UNIT *'.
4464         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
4465         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
4466         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
4467         * modules/unicase/ulc-casecmp: New file.
4468
4469         Tests for module 'unicase/u32-is-cased'.
4470         * modules/unicase/u32-is-cased-tests: New file.
4471         * tests/unicase/test-u32-is-cased.c: New file.
4472
4473         Tests for module 'unicase/u16-is-cased'.
4474         * modules/unicase/u16-is-cased-tests: New file.
4475         * tests/unicase/test-u16-is-cased.c: New file.
4476
4477         Tests for module 'unicase/u8-is-cased'.
4478         * modules/unicase/u8-is-cased-tests: New file.
4479         * tests/unicase/test-u8-is-cased.c: New file.
4480         * tests/unicase/test-is-cased.h: New file.
4481
4482         New module 'unicase/u32-is-cased'.
4483         * lib/unicase/u32-is-cased.c: New file.
4484         * modules/unicase/u32-is-cased: New file.
4485
4486         New module 'unicase/u16-is-cased'.
4487         * lib/unicase/u16-is-cased.c: New file.
4488         * modules/unicase/u16-is-cased: New file.
4489
4490         New module 'unicase/u8-is-cased'.
4491         * lib/unicase/u8-is-cased.c: New file.
4492         * lib/unicase/u-is-cased.h: New file.
4493         * modules/unicase/u8-is-cased: New file.
4494
4495         Tests for module 'unicase/u32-is-casefolded'.
4496         * modules/unicase/u32-is-casefolded-tests: New file.
4497         * tests/unicase/test-u32-is-casefolded.c: New file.
4498
4499         Tests for module 'unicase/u16-is-casefolded'.
4500         * modules/unicase/u16-is-casefolded-tests: New file.
4501         * tests/unicase/test-u16-is-casefolded.c: New file.
4502
4503         Tests for module 'unicase/u8-is-casefolded'.
4504         * modules/unicase/u8-is-casefolded-tests: New file.
4505         * tests/unicase/test-u8-is-casefolded.c: New file.
4506         * tests/unicase/test-is-casefolded.h: New file.
4507
4508         New module 'unicase/u32-is-casefolded'.
4509         * lib/unicase/u32-is-casefolded.c: New file.
4510         * modules/unicase/u32-is-casefolded: New file.
4511
4512         New module 'unicase/u16-is-casefolded'.
4513         * lib/unicase/u16-is-casefolded.c: New file.
4514         * modules/unicase/u16-is-casefolded: New file.
4515
4516         New module 'unicase/u8-is-casefolded'.
4517         * lib/unicase/u8-is-casefolded.c: New file.
4518         * modules/unicase/u8-is-casefolded: New file.
4519
4520         Tests for module 'unicase/u32-is-titlecase'.
4521         * modules/unicase/u32-is-titlecase-tests: New file.
4522         * tests/unicase/test-u32-is-titlecase.c: New file.
4523
4524         Tests for module 'unicase/u16-is-titlecase'.
4525         * modules/unicase/u16-is-titlecase-tests: New file.
4526         * tests/unicase/test-u16-is-titlecase.c: New file.
4527
4528         Tests for module 'unicase/u8-is-titlecase'.
4529         * modules/unicase/u8-is-titlecase-tests: New file.
4530         * tests/unicase/test-u8-is-titlecase.c: New file.
4531         * tests/unicase/test-is-titlecase.h: New file.
4532
4533         New module 'unicase/u32-is-titlecase'.
4534         * lib/unicase/u32-is-titlecase.c: New file.
4535         * modules/unicase/u32-is-titlecase: New file.
4536
4537         New module 'unicase/u16-is-titlecase'.
4538         * lib/unicase/u16-is-titlecase.c: New file.
4539         * modules/unicase/u16-is-titlecase: New file.
4540
4541         New module 'unicase/u8-is-titlecase'.
4542         * lib/unicase/u8-is-titlecase.c: New file.
4543         * modules/unicase/u8-is-titlecase: New file.
4544
4545         Tests for module 'unicase/u32-is-lowercase'.
4546         * modules/unicase/u32-is-lowercase-tests: New file.
4547         * tests/unicase/test-u32-is-lowercase.c: New file.
4548
4549         Tests for module 'unicase/u16-is-lowercase'.
4550         * modules/unicase/u16-is-lowercase-tests: New file.
4551         * tests/unicase/test-u16-is-lowercase.c: New file.
4552
4553         Tests for module 'unicase/u8-is-lowercase'.
4554         * modules/unicase/u8-is-lowercase-tests: New file.
4555         * tests/unicase/test-u8-is-lowercase.c: New file.
4556         * tests/unicase/test-is-lowercase.h: New file.
4557
4558         New module 'unicase/u32-is-lowercase'.
4559         * lib/unicase/u32-is-lowercase.c: New file.
4560         * modules/unicase/u32-is-lowercase: New file.
4561
4562         New module 'unicase/u16-is-lowercase'.
4563         * lib/unicase/u16-is-lowercase.c: New file.
4564         * modules/unicase/u16-is-lowercase: New file.
4565
4566         New module 'unicase/u8-is-lowercase'.
4567         * lib/unicase/u8-is-lowercase.c: New file.
4568         * modules/unicase/u8-is-lowercase: New file.
4569
4570         Tests for module 'unicase/u32-is-uppercase'.
4571         * modules/unicase/u32-is-uppercase-tests: New file.
4572         * tests/unicase/test-u32-is-uppercase.c: New file.
4573
4574         Tests for module 'unicase/u16-is-uppercase'.
4575         * modules/unicase/u16-is-uppercase-tests: New file.
4576         * tests/unicase/test-u16-is-uppercase.c: New file.
4577
4578         Tests for module 'unicase/u8-is-uppercase'.
4579         * modules/unicase/u8-is-uppercase-tests: New file.
4580         * tests/unicase/test-u8-is-uppercase.c: New file.
4581         * tests/unicase/test-is-uppercase.h: New file.
4582
4583         New module 'unicase/u32-is-uppercase'.
4584         * lib/unicase/u32-is-uppercase.c: New file.
4585         * modules/unicase/u32-is-uppercase: New file.
4586
4587         New module 'unicase/u16-is-uppercase'.
4588         * lib/unicase/u16-is-uppercase.c: New file.
4589         * modules/unicase/u16-is-uppercase: New file.
4590
4591         New module 'unicase/u8-is-uppercase'.
4592         * lib/unicase/u8-is-uppercase.c: New file.
4593         * modules/unicase/u8-is-uppercase: New file.
4594
4595         New module 'unicase/u32-is-invariant'.
4596         * lib/unicase/u32-is-invariant.c: New file.
4597         * modules/unicase/u32-is-invariant: New file.
4598
4599         New module 'unicase/u16-is-invariant'.
4600         * lib/unicase/u16-is-invariant.c: New file.
4601         * modules/unicase/u16-is-invariant: New file.
4602
4603         New module 'unicase/u8-is-invariant'.
4604         * lib/unicase/u8-is-invariant.c: New file.
4605         * lib/unicase/invariant.h: New file.
4606         * lib/unicase/u-is-invariant.h: New file.
4607         * modules/unicase/u8-is-invariant: New file.
4608
4609         Tests for module 'unicase/u32-casecoll'.
4610         * modules/unicase/u32-casecoll-tests: New file.
4611         * tests/unicase/test-u32-casecoll.c: New file.
4612
4613         Tests for module 'unicase/u16-casecoll'.
4614         * modules/unicase/u16-casecoll-tests: New file.
4615         * tests/unicase/test-u16-casecoll.c: New file.
4616
4617         Tests for module 'unicase/u8-casecoll'.
4618         * modules/unicase/u8-casecoll-tests: New file.
4619         * tests/unicase/test-u8-casecoll.c: New file.
4620
4621         New module 'unicase/u32-casecoll'.
4622         * lib/unicase/u32-casecoll.c: New file.
4623         * modules/unicase/u32-casecoll: New file.
4624
4625         New module 'unicase/u16-casecoll'.
4626         * lib/unicase/u16-casecoll.c: New file.
4627         * modules/unicase/u16-casecoll: New file.
4628
4629         New module 'unicase/u8-casecoll'.
4630         * lib/unicase/u8-casecoll.c: New file.
4631         * lib/unicase/u-casecoll.h: New file.
4632         * modules/unicase/u8-casecoll: New file.
4633
4634         New module 'unicase/u32-casexfrm'.
4635         * lib/unicase/u32-casexfrm.c: New file.
4636         * modules/unicase/u32-casexfrm: New file.
4637
4638         New module 'unicase/u16-casexfrm'.
4639         * lib/unicase/u16-casexfrm.c: New file.
4640         * modules/unicase/u16-casexfrm: New file.
4641
4642         New module 'unicase/u8-casexfrm'.
4643         * lib/unicase/u8-casexfrm.c: New file.
4644         * lib/unicase/u-casexfrm.h: New file.
4645         * modules/unicase/u8-casexfrm: New file.
4646
4647         Tests for module 'unicase/u32-casecmp'.
4648         * modules/unicase/u32-casecmp-tests: New file.
4649         * tests/unicase/test-u32-casecmp.c: New file.
4650
4651         Tests for module 'unicase/u16-casecmp'.
4652         * modules/unicase/u16-casecmp-tests: New file.
4653         * tests/unicase/test-u16-casecmp.c: New file.
4654
4655         Tests for module 'unicase/u8-casecmp'.
4656         * modules/unicase/u8-casecmp-tests: New file.
4657         * tests/unicase/test-u8-casecmp.c: New file.
4658         * tests/unicase/test-casecmp.h: New file.
4659
4660         New module 'unicase/u32-casecmp'.
4661         * lib/unicase/u32-casecmp.c: New file.
4662         * modules/unicase/u32-casecmp: New file.
4663
4664         New module 'unicase/u16-casecmp'.
4665         * lib/unicase/u16-casecmp.c: New file.
4666         * modules/unicase/u16-casecmp: New file.
4667
4668         New module 'unicase/u8-casecmp'.
4669         * lib/unicase/u8-casecmp.c: New file.
4670         * lib/unicase/u-casecmp.h: New file.
4671         * modules/unicase/u8-casecmp: New file.
4672
4673         Tests for module 'unicase/u32-casefold'.
4674         * modules/unicase/u32-casefold-tests: New file.
4675         * tests/unicase/test-u32-casefold.c: New file.
4676
4677         Tests for module 'unicase/u16-casefold'.
4678         * modules/unicase/u16-casefold-tests: New file.
4679         * tests/unicase/test-u16-casefold.c: New file.
4680
4681         Tests for module 'unicase/u8-casefold'.
4682         * modules/unicase/u8-casefold-tests: New file.
4683         * tests/unicase/test-u8-casefold.c: New file.
4684
4685         New module 'unicase/u32-casefold'.
4686         * lib/unicase/u32-casefold.c: New file.
4687         * modules/unicase/u32-casefold: New file.
4688
4689         New module 'unicase/u16-casefold'.
4690         * lib/unicase/u16-casefold.c: New file.
4691         * modules/unicase/u16-casefold: New file.
4692
4693         New module 'unicase/u8-casefold'.
4694         * lib/unicase/u8-casefold.c: New file.
4695         * lib/unicase/u-casefold.h: New file.
4696         * modules/unicase/u8-casefold: New file.
4697
4698         New module 'unicase/tocasefold'.
4699         * lib/unicase/casefold.h: New file.
4700         * lib/unicase/tocasefold.c: New file.
4701         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
4702         * modules/unicase/tocasefold: New file.
4703
4704         Tests for module 'unicase/u32-totitle'.
4705         * modules/unicase/u32-totitle-tests: New file.
4706         * tests/unicase/test-u32-totitle.c: New file.
4707
4708         Tests for module 'unicase/u16-totitle'.
4709         * modules/unicase/u16-totitle-tests: New file.
4710         * tests/unicase/test-u16-totitle.c: New file.
4711
4712         Tests for module 'unicase/u8-totitle'.
4713         * modules/unicase/u8-totitle-tests: New file.
4714         * tests/unicase/test-u8-totitle.c: New file.
4715
4716         New module 'unicase/u32-totitle'.
4717         * lib/unicase/u32-totitle.c: New file.
4718         * modules/unicase/u32-totitle: New file.
4719
4720         New module 'unicase/u16-totitle'.
4721         * lib/unicase/u16-totitle.c: New file.
4722         * modules/unicase/u16-totitle: New file.
4723
4724         New module 'unicase/u8-totitle'.
4725         * lib/unicase/u8-totitle.c: New file.
4726         * lib/unicase/u-totitle.h: New file.
4727         * modules/unicase/u8-totitle: New file.
4728
4729         Tests for module 'unicase/u32-tolower'.
4730         * modules/unicase/u32-tolower-tests: New file.
4731         * tests/unicase/test-u32-tolower.c: New file.
4732
4733         Tests for module 'unicase/u16-tolower'.
4734         * modules/unicase/u16-tolower-tests: New file.
4735         * tests/unicase/test-u16-tolower.c: New file.
4736
4737         Tests for module 'unicase/u8-tolower'.
4738         * modules/unicase/u8-tolower-tests: New file.
4739         * tests/unicase/test-u8-tolower.c: New file.
4740
4741         New module 'unicase/u32-tolower'.
4742         * lib/unicase/u32-tolower.c: New file.
4743         * modules/unicase/u32-tolower: New file.
4744
4745         New module 'unicase/u16-tolower'.
4746         * lib/unicase/u16-tolower.c: New file.
4747         * modules/unicase/u16-tolower: New file.
4748
4749         New module 'unicase/u8-tolower'.
4750         * lib/unicase/u8-tolower.c: New file.
4751         * modules/unicase/u8-tolower: New file.
4752
4753         Tests for module 'unicase/u32-toupper'.
4754         * modules/unicase/u32-toupper-tests: New file.
4755         * tests/unicase/test-u32-toupper.c: New file.
4756
4757         Tests for module 'unicase/u16-toupper'.
4758         * modules/unicase/u16-toupper-tests: New file.
4759         * tests/unicase/test-u16-toupper.c: New file.
4760
4761         Tests for module 'unicase/u8-toupper'.
4762         * modules/unicase/u8-toupper-tests: New file.
4763         * tests/unicase/test-u8-toupper.c: New file.
4764
4765         New module 'unicase/u32-toupper'.
4766         * lib/unicase/u32-toupper.c: New file.
4767         * modules/unicase/u32-toupper: New file.
4768
4769         New module 'unicase/u16-toupper'.
4770         * lib/unicase/u16-toupper.c: New file.
4771         * modules/unicase/u16-toupper: New file.
4772
4773         New module 'unicase/u8-toupper'.
4774         * lib/unicase/u8-toupper.c: New file.
4775         * modules/unicase/u8-toupper: New file.
4776
4777         New module 'unicase/u32-casemap'.
4778         * lib/unicase/u32-casemap.c: New file.
4779         * modules/unicase/u32-casemap: New file.
4780
4781         New module 'unicase/u16-casemap'.
4782         * lib/unicase/u16-casemap.c: New file.
4783         * modules/unicase/u16-casemap: New file.
4784
4785         New module 'unicase/u8-casemap'.
4786         * lib/unicase/unicasemap.h: New file.
4787         * lib/unicase/u8-casemap.c: New file.
4788         * lib/unicase/u-casemap.h: New file.
4789         * modules/unicase/u8-casemap: New file.
4790
4791         New module 'unicase/special-casing'.
4792         * lib/unicase/special-casing.h: New file.
4793         * lib/unicase/special-casing.c: New file.
4794         * lib/unicase/special-casing-table.gperf: New file, generated by
4795         gen-uni-tables.c.
4796         * modules/unicase/special-casing: New file.
4797
4798         Tests for module 'unicase/locale-language'.
4799         * modules/unicase/locale-language-tests: New file.
4800         * tests/unicase/test-locale-language.sh: New file.
4801         * tests/unicase/test-locale-language.c: New file.
4802
4803         New module 'unicase/locale-language'.
4804         * lib/unicase/locale-language.c: New file.
4805         * lib/unicase/locale-languages.gperf: New file.
4806         * modules/unicase/locale-language: New file.
4807
4808         Generate more tables for case conversion and case folding.
4809         * lib/gen-uni-tables.c (SCC_*): New enum items.
4810         (struct special_casing_rule): New type.
4811         (casing_rules, num_casing_rules, allocated_casing_rules): New
4812         variables.
4813         (add_casing_rule, fill_casing_rules): New functions.
4814         (struct casefold_rule): New type.
4815         (casefolding_rules, num_casefolding_rules,
4816         allocated_casefolding_rules): New variables.
4817         (fill_casefolding_rules): New function.
4818         (unicode_casefold): New variable.
4819         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
4820         sort_casing_rules, output_casing_rules): New functions.
4821         (main): Accept to more arguments: SpecialCasing.txt and
4822         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
4823         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
4824         Output mapping for casefolding.
4825
4826         * lib/unicase.h: Include stdbool.h, uninorm.h.
4827         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
4828         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
4829         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
4830         arguments.
4831         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
4832         resultp arguments.
4833         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
4834         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
4835         resultp arguments.
4836         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
4837         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
4838         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
4839         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
4840         declarations.
4841         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
4842
4843 2009-03-08  Bruno Haible  <bruno@clisp.org>
4844
4845         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
4846         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
4847         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
4848         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
4849
4850 2009-03-07  Bruno Haible  <bruno@clisp.org>
4851
4852         Adjust u*_normcmp, u*_normcoll API.
4853         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
4854         u16_normcoll, u32_normcoll): Change failure conventions.
4855         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
4856         errno and return -1.
4857         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
4858
4859 2009-03-07  Bruno Haible  <bruno@clisp.org>
4860
4861         Tests for module 'uninorm/u32-normcoll'.
4862         * modules/uninorm/u32-normcoll-tests: New file.
4863         * tests/uninorm/test-u32-normcoll.c: New file.
4864
4865         Tests for module 'uninorm/u16-normcoll'.
4866         * modules/uninorm/u16-normcoll-tests: New file.
4867         * tests/uninorm/test-u16-normcoll.c: New file.
4868
4869         Tests for module 'uninorm/u8-normcoll'.
4870         * modules/uninorm/u8-normcoll-tests: New file.
4871         * tests/uninorm/test-u8-normcoll.c: New file.
4872
4873 2009-03-07  Bruno Haible  <bruno@clisp.org>
4874
4875         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
4876         tests/uninorm/test-u32-normcmp.c.
4877         * tests/uninorm/test-u32-normcmp.c: Include it.
4878         (test_nonascii): New function, extracted from main. Add some more
4879         tests.
4880         (main): Invoke test_ascii and test_nonascii.
4881         * modules/uninorm/u32-normcmp-tests (Files): Add
4882         tests/uninorm/test-u32-normcmp.h.
4883         (Depends-on): Remove uninorm/u32-normcmp.
4884
4885         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
4886         tests/uninorm/test-u16-normcmp.c.
4887         * tests/uninorm/test-u16-normcmp.c: Include it.
4888         (test_nonascii): New function, extracted from main. Add some more
4889         tests.
4890         (main): Invoke test_ascii and test_nonascii.
4891         * modules/uninorm/u16-normcmp-tests (Files): Add
4892         tests/uninorm/test-u16-normcmp.h.
4893         (Depends-on): Remove uninorm/u16-normcmp.
4894
4895         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
4896         tests/uninorm/test-u8-normcmp.c.
4897         * tests/uninorm/test-u8-normcmp.c: Include it.
4898         (test_nonascii): New function, extracted from main. Add some more
4899         tests.
4900         (main): Invoke test_ascii and test_nonascii.
4901         * modules/uninorm/u8-normcmp-tests (Files): Add
4902         tests/uninorm/test-u8-normcmp.h.
4903         (Depends-on): Remove uninorm/u8-normcmp.
4904
4905 2009-03-07  Bruno Haible  <bruno@clisp.org>
4906
4907         New module 'uninorm/u32-normcoll'.
4908         * lib/uninorm/u32-normcoll.c: New file.
4909         * modules/uninorm/u32-normcoll: New file.
4910
4911         New module 'uninorm/u16-normcoll'.
4912         * lib/uninorm/u16-normcoll.c: New file.
4913         * modules/uninorm/u16-normcoll: New file.
4914
4915         New module 'uninorm/u8-normcoll'.
4916         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
4917         declarations.
4918         * lib/uninorm/u8-normcoll.c: New file.
4919         * lib/uninorm/u-normcoll.h: New file.
4920         * modules/uninorm/u8-normcoll: New file.
4921
4922         New module 'uninorm/u32-normxfrm'.
4923         * lib/uninorm/u32-normxfrm.c: New file.
4924         * modules/uninorm/u32-normxfrm: New file.
4925
4926         New module 'uninorm/u16-normxfrm'.
4927         * lib/uninorm/u16-normxfrm.c: New file.
4928         * modules/uninorm/u16-normxfrm: New file.
4929
4930         New module 'uninorm/u8-normxfrm'.
4931         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
4932         declarations.
4933         * lib/uninorm/u8-normxfrm.c: New file.
4934         * lib/uninorm/u-normxfrm.h: New file.
4935         * modules/uninorm/u8-normxfrm: New file.
4936
4937 2009-03-07  Bruno Haible  <bruno@clisp.org>
4938
4939         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
4940         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
4941         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
4942
4943 2009-03-07  Bruno Haible  <bruno@clisp.org>
4944
4945         New module 'memxfrm'.
4946         * lib/memxfrm.h: New file.
4947         * lib/memxfrm.c: New file.
4948         * modules/memxfrm: New file.
4949
4950 2009-03-07  Bruno Haible  <bruno@clisp.org>
4951
4952         New module 'memcmp2'.
4953         * lib/memcmp2.h: New file.
4954         * lib/memcmp2.c: New file.
4955         * modules/memcmp2: New file.
4956
4957 2009-03-07  Bruno Haible  <bruno@clisp.org>
4958
4959         Tests for module 'uninorm/decomposing-form'.
4960         * modules/uninorm/decomposing-form-tests: New file.
4961         * tests/uninorm/test-decomposing-form.c: New file.
4962
4963         New module 'uninorm/decomposing-form'.
4964         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
4965         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
4966         Add 'decomposing_variant' field.
4967         * lib/uninorm/decomposing-form.c: New file.
4968         * lib/uninorm/nfc.c (uninorm_nfc): Update.
4969         * lib/uninorm/nfd.c (uninorm_nfd): Update.
4970         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
4971         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
4972         * modules/uninorm/decomposing-form: New file.
4973         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
4974         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
4975
4976 2009-03-07  Bruno Haible  <bruno@clisp.org>
4977
4978         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
4979         strings.
4980
4981 2009-03-06  Bruno Haible  <bruno@clisp.org>
4982
4983         Tests for module 'uninorm/u32-normcmp'.
4984         * tests/uninorm/test-u32-normcmp.c: New file.
4985         * modules/uninorm/u32-normcmp-tests: New file.
4986
4987         Tests for module 'uninorm/u16-normcmp'.
4988         * tests/uninorm/test-u16-normcmp.c: New file.
4989         * modules/uninorm/u16-normcmp-tests: New file.
4990
4991         Tests for module 'uninorm/u8-normcmp'.
4992         * tests/uninorm/test-u8-normcmp.c: New file.
4993         * modules/uninorm/u8-normcmp-tests: New file.
4994
4995         New module 'uninorm/u32-normcmp'.
4996         * lib/uninorm/u32-normcmp.c: New file.
4997         * modules/uninorm/u32-normcmp: New file.
4998
4999         New module 'uninorm/u16-normcmp'.
5000         * lib/uninorm/u16-normcmp.c: New file.
5001         * modules/uninorm/u16-normcmp: New file.
5002
5003         New module 'uninorm/u8-normcmp'.
5004         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
5005         declarations.
5006         * lib/uninorm/u8-normcmp.c: New file.
5007         * lib/uninorm/u-normcmp.h: New file.
5008         * modules/uninorm/u8-normcmp: New file.
5009
5010 2009-03-06  Bruno Haible  <bruno@clisp.org>
5011
5012         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
5013         Reported by Eric Blake.
5014
5015 2009-03-06  Eric Blake  <ebb9@byu.net>
5016             Bruno Haible  <bruno@clisp.org>
5017
5018         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
5019         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
5020         condition.
5021         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
5022         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
5023         condition.
5024         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
5025
5026 2009-03-06  Eric Blake  <ebb9@byu.net>
5027
5028         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
5029         to avoid compiler warnings.
5030         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
5031
5032 2009-03-05  Bruno Haible  <bruno@clisp.org>
5033
5034         * tests/test-ftell.c (main): Disable test beyond end of file on
5035         FreeMiNT.
5036         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
5037
5038 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
5039
5040         * lib/filevercmp.c: Move hidden files up in ordering.
5041         * tests/test-filevercmp.c: Add tests for hidden files.
5042
5043 2009-03-04  Bruno Haible  <bruno@clisp.org>
5044
5045         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
5046         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
5047         AM_CFLAGS.
5048         Reported by Simon Josefsson.
5049
5050 2009-03-03  Bruno Haible  <bruno@clisp.org>
5051
5052         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
5053         Reported by Simon Josefsson.
5054
5055         * doc/ld-version-script.texi: Update node reference.
5056
5057 2009-03-03  Bruno Haible  <bruno@clisp.org>
5058
5059         * modules/visibility (License): Change to 'unlimited'.
5060         Suggested by Simon Josefsson.
5061
5062 2009-03-03  Jim Meyering  <meyering@redhat.com>
5063
5064         unlinkdir: cannot_unlink_dir may modify process state
5065         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
5066         it's neither thread-safe nor appropriate for use in a library.
5067
5068 2009-03-03  Eric Blake  <ebb9@byu.net>
5069
5070         test-closein: silence test under Darwin
5071         * tests/test-closein.sh: Ignore stderr from cat, since we don't
5072         care if it dies from EPIPE or EBADF.
5073
5074 2009-03-03  Bruno Haible  <bruno@clisp.org>
5075
5076         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
5077         earlier.
5078         * doc/visibility.texi: Fix @node and @section.
5079
5080 2009-03-03  Simon Josefsson  <simon@josefsson.org>
5081
5082         * doc/gnulib.texi: Link to sections for ld version script and
5083         visibility.
5084         * doc/visibility.texi: Add @node and @section.
5085         * modules/ld-version-script: New module.
5086         * m4/ld-version-script.m4: New file.
5087         * doc/ld-version-script.texi: New file.
5088
5089 2009-03-02  David Lutterkort  <lutter@redhat.com>
5090
5091         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
5092         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5093
5094 2009-03-02  Bruno Haible  <bruno@clisp.org>
5095
5096         * doc/visibility.texi: Mention libtool's -export-symbols option.
5097
5098 2009-03-02  Jim Meyering  <meyering@redhat.com>
5099
5100         announce-gen: new option: --no-print-checksums
5101         * build-aux/announce-gen (usage): Describe it.
5102         (print_checksums): Print a newline here, not in the [*] footnote.
5103         (main): Honor it.
5104
5105 2009-03-01  Bruno Haible  <bruno@clisp.org>
5106
5107         Use socklen_t in the native Windows replacements prototypes.
5108         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
5109         instead of 'int'.
5110         * lib/getsockopt.c (rpl_getsockopt): Likewise.
5111         * lib/setsockopt.c (rpl_setsockopt): Likewise.
5112         * modules/getsockopt (Depends-on): Add socklen.
5113         * modules/setsockopt (Depends-on): Add socklen.
5114
5115 2009-03-01  Bruno Haible  <bruno@clisp.org>
5116
5117         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
5118         least 4.2.
5119
5120 2009-03-01  Eric Blake  <ebb9@byu.net>
5121             Bruno Haible  <bruno@clisp.org>
5122
5123         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
5124         error messages.
5125         * lib/wait-process.c (wait_subprocess): Omit error message about
5126         deadly signal sent to the child of termsigp != NULL.
5127
5128 2009-03-01  Eric Blake  <ebb9@byu.net>
5129
5130         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
5131
5132 2009-03-01  Bruno Haible  <bruno@clisp.org>
5133
5134         Avoid a gcc warning.
5135         * tests/test-sched.c (b): Make global.
5136         Reported by Eric Blake.
5137
5138 2009-01-19  Martin Lambers  <marlam@marlam.de>
5139
5140         Provide POSIX semantics for socket timeout options on W32.
5141         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
5142         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
5143         * modules/setsockopt: Depend on sys_time module for struct timeval.
5144         * modules/getsockopt: Depend on sys_time module for struct timeval.
5145
5146 2009-03-01  Simon Josefsson  <simon@josefsson.org>
5147
5148         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
5149         __USE_GNU, for consistency with netdb.in.h.
5150         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
5151
5152 2009-03-01  Bruno Haible  <bruno@clisp.org>
5153
5154         More support for FreeMiNT.
5155         * lib/fseeko.c (rpl_fseeko): Complete last commit.
5156         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
5157
5158 2009-03-01  Bruno Haible  <bruno@clisp.org>
5159
5160         More support for FreeMiNT.
5161         * lib/fpurge.c (fpurge): Correct last commit.
5162         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
5163
5164 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5165
5166         Fix unportable awk script in vc-list-files.
5167         * build-aux/vc-list-files: In the replacement awk script, use
5168         substr with a second argument of 1, not zero.
5169         Report by Simon Josefsson.
5170
5171 2009-02-28  Bruno Haible  <bruno@clisp.org>
5172
5173         More support for FreeMiNT.
5174         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
5175         to FreeMiNT today.
5176         * lib/fwriting.c (fwriting): Likewise.
5177         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
5178
5179 2009-02-28  Bruno Haible  <bruno@clisp.org>
5180
5181         * tests/test-freadseek.c (main): Disable test beyond end of file on
5182         FreeMiNT.
5183         * tests/test-ftello.c (main): Likewise.
5184         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
5185
5186 2009-02-28  Bruno Haible  <bruno@clisp.org>
5187
5188         Add tentative support for FreeMiNT.
5189         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
5190         * lib/fpurge.c (fpurge): Likewise.
5191         * lib/freadable.c (freadable): Likewise.
5192         * lib/freading.c (freading): Likewise.
5193         * lib/freadptr.c (freadptr): Likewise.
5194         * lib/freadseek.c (freadptrinc): Likewise.
5195         * lib/fseeko.c (rpl_fseeko): Likewise.
5196         * lib/fseterr.c (fseterr): Likewise.
5197         * lib/fwritable.c (fwritable): Likewise.
5198         * lib/fwriting.c (fwriting): Likewise.
5199         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
5200         Hourihane.
5201         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
5202
5203 2009-02-28  Bruno Haible  <bruno@clisp.org>
5204
5205         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
5206         SIGCHLD.
5207         Reported by Jim Meyering.
5208
5209 2009-02-28  Bruno Haible  <bruno@clisp.org>
5210
5211         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
5212         Mention the results of these tests on various platforms.
5213         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
5214         order.
5215         * doc/posix-functions/printf.texi: Likewise.
5216         * doc/posix-functions/snprintf.texi: Likewise.
5217         * doc/posix-functions/sprintf.texi: Likewise.
5218         * doc/posix-functions/vfprintf.texi: Likewise.
5219         * doc/posix-functions/vprintf.texi: Likewise.
5220         * doc/posix-functions/vsnprintf.texi: Likewise.
5221         * doc/posix-functions/vsprintf.texi: Likewise.
5222         * doc/glibc-functions/obstack_printf.texi: Likewise.
5223         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
5224
5225 2009-02-28  Bruno Haible  <bruno@clisp.org>
5226
5227         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
5228         Reported by Loïc Minier <lool@dooz.org>.
5229
5230 2009-02-27  Bruno Haible  <bruno@clisp.org>
5231
5232         * gnulib-tool (func_import): Make the sed expression used to create the
5233         sed script for updating the .gitignore file POSIX compliant.
5234         Reported by Eric Blake.
5235
5236 2009-02-27  Bruno Haible  <bruno@clisp.org>
5237
5238         * gnulib-tool (sed): Don't alias as "sed --posix".
5239         Reported by Eric Blake.
5240
5241 2009-02-27  Bruno Haible  <bruno@clisp.org>
5242
5243         Avoid test link errors.
5244         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
5245         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
5246         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
5247         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
5248         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5249
5250 2009-02-27  Bruno Haible  <bruno@clisp.org>
5251
5252         Avoid spurious "(cached)" in configure output.
5253         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
5254         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
5255         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
5256         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
5257         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
5258         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
5259         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
5260         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
5261         Reported by Eric Blake.
5262
5263 2009-02-27  Eric Blake  <ebb9@byu.net>
5264
5265         printf: fix regression in previous patch
5266         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
5267
5268 2009-02-27  Bruno Haible  <bruno@clisp.org>
5269
5270         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
5271         value.
5272         * lib/stdint.in.h: Likewise.
5273         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
5274
5275 2009-02-27  Eric Blake  <ebb9@byu.net>
5276
5277         doc: mention more functions added in cygwin 1.7.0
5278         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
5279         addition.
5280         * doc/posix-functions/open_wmemstream.texi: Likewise.
5281         * doc/posix-functions/wcsnlen.texi: Likewise.
5282         * doc/posix-functions/wcsnrtombs.texi: Likewise.
5283         * doc/posix-functions/wcstod.texi: Likewise.
5284         * doc/posix-functions/wcstof.texi: Likewise.
5285         * doc/posix-functions/wcstoimax.texi: Likewise.
5286         * doc/posix-functions/wcstok.texi: Likewise.
5287         * doc/posix-functions/wcstoumax.texi: Likewise.
5288
5289         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
5290         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
5291         * doc/posix-functions/fprintf.texi: Update.
5292         * doc/posix-functions/printf.texi: Update.
5293         * doc/posix-functions/snprintf.texi: Update.
5294         * doc/posix-functions/sprintf.texi: Update.
5295         * doc/posix-functions/vfprintf.texi: Update.
5296         * doc/posix-functions/vprintf.texi: Update.
5297         * doc/posix-functions/vsnprintf.texi: Update.
5298         * doc/posix-functions/vsprintf.texi: Update.
5299         * doc/glibc-functions/obstack_printf.texi: Update.
5300         * doc/glibc-functions/obstack_vprintf.texi: Update.
5301
5302 2009-02-26  Eric Blake  <ebb9@byu.net>
5303
5304         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
5305         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
5306         compilation bug by using runtime conversion.
5307         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
5308         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
5309         * modules/ceill-tests (Files): Use nan.h.
5310         * modules/floorl-tests (Files): Likewise.
5311         * modules/frexpl-tests (Files): Likewise.
5312         * modules/isnanl-tests (Files): Likewise.
5313         * modules/ldexpl-tests (Files): Likewise.
5314         * modules/roundl-tests (Files): Likewise.
5315         * modules/truncl-tests (Files): Likewise.
5316         * tests/test-ceill.c (main): Use a working NaN.
5317         * tests/test-floorl.c (main): Likewise.
5318         * tests/test-frexpl.c (main): Likewise.
5319         * tests/test-isnan.c (test_long_double): Likewise.
5320         * tests/test-isnanl.h (main): Likewise.
5321         * tests/test-ldexpl.h (main): Likewise.
5322         * tests/test-roundl.h (main): Likewise.
5323         * tests/test-truncl.h (main): Likewise.
5324         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
5325
5326 2009-02-26  Eric Blake  <ebb9@byu.net>
5327             Bruno Haible  <bruno@clisp.org>
5328
5329         Work around a *printf bug with %ls on Solaris.
5330         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
5331         precision is specified, sprintf stops converting the wide string
5332         argument when the number of bytes that have been produced by this
5333         conversion equals or exceeds the precision.
5334         * doc/posix-functions/fprintf.texi: Update.
5335         * doc/posix-functions/printf.texi: Update.
5336         * doc/posix-functions/snprintf.texi: Update.
5337         * doc/posix-functions/sprintf.texi: Update.
5338         * doc/posix-functions/vfprintf.texi: Update.
5339         * doc/posix-functions/vprintf.texi: Update.
5340         * doc/posix-functions/vsnprintf.texi: Update.
5341         * doc/posix-functions/vsprintf.texi: Update.
5342         * doc/glibc-functions/obstack_printf.texi: Update.
5343         * doc/glibc-functions/obstack_vprintf.texi: Update.
5344
5345 2009-02-26  Eric Blake  <ebb9@byu.net>
5346
5347         stdlib: favor compiler check of random.h
5348         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
5349         to avoid an ObjC random.h installed by Swarm.
5350
5351 2009-02-26  Bruno Haible  <bruno@clisp.org>
5352
5353         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
5354         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
5355         Reported by Gary V. Vaughan <gary@gnu.org>.
5356
5357 2009-02-26  Bruno Haible  <bruno@clisp.org>
5358
5359         Fix *printf behaviour regarding the %ls directive.
5360         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
5361         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
5362         NEED_PRINTF_DIRECTIVE_LS.
5363         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
5364         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
5365         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5366         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
5367         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
5368         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
5369         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
5370         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5371         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5372         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5373         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5374         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
5375         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5376         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5377         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5378         * doc/posix-functions/fprintf.texi: Update.
5379         * doc/posix-functions/printf.texi: Update.
5380         * doc/posix-functions/snprintf.texi: Update.
5381         * doc/posix-functions/sprintf.texi: Update.
5382         * doc/posix-functions/vfprintf.texi: Update.
5383         * doc/posix-functions/vprintf.texi: Update.
5384         * doc/posix-functions/vsnprintf.texi: Update.
5385         * doc/posix-functions/vsprintf.texi: Update.
5386         * doc/glibc-functions/obstack_printf.texi: Update.
5387         * doc/glibc-functions/obstack_vprintf.texi: Update.
5388         Reported by Eric Blake.
5389
5390 2009-02-25  Bruno Haible  <bruno@clisp.org>
5391
5392         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
5393         with known value.
5394         Reported by Gary V. Vaughan <gary@gnu.org>.
5395
5396 2009-02-25  Bruno Haible  <bruno@clisp.org>
5397
5398         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
5399         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
5400         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
5401         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
5402         Reported by Gary V. Vaughan <gary@gnu.org>.
5403
5404 2009-02-25  Bruno Haible  <bruno@clisp.org>
5405
5406         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
5407         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
5408         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
5409         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
5410         Reported by Gary V. Vaughan <gary@gnu.org>.
5411
5412 2009-02-25  Eric Blake  <ebb9@byu.net>
5413
5414         tests: skip fseek/ftell tests if ungetc is broken
5415         * m4/ungetc.m4: New file.
5416         * modules/fseek-tests: Split test, so ungetc dependency is
5417         separate from rest of test.
5418         * modules/fseeko-tests: Likewise.
5419         * modules/ftell-tests: Likewise.
5420         * modules/ftello-tests: Likewise.
5421         * tests/test-fseek.c (main): Isolate ungetc dependency.
5422         * tests/test-fseeko.c (main): Likewise.
5423         * tests/test-ftell.c (main): Likewise.
5424         * tests/test-ftello.c (main): Likewise.
5425         * tests/test-fseek2.sh: New file.
5426         * tests/test-fseeko2.sh: Likewise.
5427         * tests/test-ftell2.sh: Likewise.
5428         * tests/test-ftello2.sh: Likewise.
5429
5430 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
5431
5432         test-getaddrinfo: fix usage of skip return code 77
5433         * tests/test-gettaddrinfo.c: Return skip code 77 only
5434         for first occurance of skip (4x77 is not 77)
5435
5436 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
5437
5438         strtod: avoid C99 decl-after-statement
5439         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
5440
5441 2009-02-24  Eric Blake  <ebb9@byu.net>
5442
5443         strtod: detect HP-UX 11.31 bug
5444         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
5445         Reported by Gary V. Vaughan.
5446
5447 2009-02-23  Bruno Haible  <bruno@clisp.org>
5448
5449         Fix invalid read past end of memory block.
5450         * lib/vasnprintf.c (DCHAR_SET): Define.
5451         (local_wcslen): Define only when needed.
5452         (local_strnlen, local_wcsnlen): New functions.
5453         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
5454         directives that involve a conversion ourselves.
5455         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
5456         wcsnlen, mbrtowc, wcrtomb.
5457         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
5458         * tests/test-vasprintf-posix.c (test_function): Likewise.
5459         * tests/test-snprintf-posix.h (test_function): Likewise.
5460         * tests/test-sprintf-posix.h (test_function): Likewise.
5461         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5462
5463 2009-02-22  Bruno Haible  <bruno@clisp.org>
5464
5465         Implement new clarified decomposition of Hangul syllables.
5466         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
5467         of type LTV, return only a pairwise decomposition.
5468         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
5469         Likewise.
5470         * tests/uninorm/test-decomposition.c (main): Updated expected result.
5471         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
5472         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
5473
5474 2009-02-22  Bruno Haible  <bruno@clisp.org>
5475
5476         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
5477         zero-length results and shrink excess allocated memory.
5478         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
5479         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
5480         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
5481         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
5482         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
5483         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
5484         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
5485         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
5486         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
5487         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
5488         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
5489         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
5490
5491 2009-02-21  Bruno Haible  <bruno@clisp.org>
5492
5493         * doc/gnulib.texi: Include safe-alloc.texi earlier.
5494         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
5495         spaces after a period. Put a space between a macro name and its
5496         argument list. Trivial rewordings.
5497         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
5498         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
5499         (main): Return 0 explicitly.
5500
5501 2009-02-21  Bruno Haible  <bruno@clisp.org>
5502
5503         Tests for module 'uninorm/filter'.
5504         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
5505         * modules/uninorm/filter-tests: New file.
5506
5507         New module 'uninorm/filter'.
5508         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
5509         uninorm_filter_flush, uninorm_filter_free): New declarations.
5510         * lib/uninorm/uninorm-filter.c: New file.
5511         * modules/uninorm/filter: New file.
5512
5513 2009-02-21  Bruno Haible  <bruno@clisp.org>
5514
5515         Tests for module 'uninorm/nfkc'.
5516         * tests/uninorm/test-nfkc.c: New file.
5517         * tests/uninorm/test-u8-nfkc.c: New file.
5518         * tests/uninorm/test-u16-nfkc.c: New file.
5519         * tests/uninorm/test-u32-nfkc.c: New file.
5520         * tests/uninorm/test-u32-nfkc-big.sh: New file.
5521         * tests/uninorm/test-u32-nfkc-big.c: New file.
5522         * modules/uninorm/nfkc-tests: New file.
5523
5524         New module 'uninorm/nfkc'.
5525         * lib/uninorm/nfkc.c: New file.
5526         * modules/uninorm/nfkc: New file.
5527
5528         Tests for module 'uninorm/nfkd'.
5529         * tests/uninorm/test-nfkd.c: New file.
5530         * tests/uninorm/test-u8-nfkd.c: New file.
5531         * tests/uninorm/test-u16-nfkd.c: New file.
5532         * tests/uninorm/test-u32-nfkd.c: New file.
5533         * tests/uninorm/test-u32-nfkd-big.sh: New file.
5534         * tests/uninorm/test-u32-nfkd-big.c: New file.
5535         * modules/uninorm/nfkd-tests: New file.
5536
5537         New module 'uninorm/nfkd'.
5538         * lib/uninorm/nfkd.c: New file.
5539         * modules/uninorm/nfkd: New file.
5540
5541         Tests for module 'uninorm/nfc'.
5542         * tests/uninorm/test-nfc.c: New file.
5543         * tests/uninorm/test-u8-nfc.c: New file.
5544         * tests/uninorm/test-u16-nfc.c: New file.
5545         * tests/uninorm/test-u32-nfc.c: New file.
5546         * tests/uninorm/test-u32-nfc-big.sh: New file.
5547         * tests/uninorm/test-u32-nfc-big.c: New file.
5548         * modules/uninorm/nfc-tests: New file.
5549
5550         New module 'uninorm/nfc'.
5551         * lib/uninorm/nfc.c: New file.
5552         * modules/uninorm/nfc: New file.
5553
5554         Tests for module 'uninorm/nfd'.
5555         * tests/uninorm/test-nfd.c: New file.
5556         * tests/uninorm/test-u8-nfd.c: New file.
5557         * tests/uninorm/test-u16-nfd.c: New file.
5558         * tests/uninorm/test-u32-nfd.c: New file.
5559         * tests/uninorm/test-u32-nfd-big.sh: New file.
5560         * tests/uninorm/test-u32-nfd-big.c: New file.
5561         * tests/uninorm/test-u32-normalize-big.h: New file.
5562         * tests/uninorm/test-u32-normalize-big.c: New file.
5563         * tests/uninorm/NormalizationTest.txt: New file, created from
5564         Unicode 5.1.0 NormalizationTest.txt.
5565         * modules/uninorm/nfd-tests: New file.
5566
5567         New module 'uninorm/nfd'.
5568         * lib/uninorm/nfd.c: New file.
5569         * modules/uninorm/nfd: New file.
5570
5571         New module 'uninorm/u32-normalize'.
5572         * lib/uninorm/u32-normalize.c: New file.
5573         * modules/uninorm/u32-normalize: New file.
5574
5575         New module 'uninorm/u16-normalize'.
5576         * lib/uninorm/u16-normalize.c: New file.
5577         * modules/uninorm/u16-normalize: New file.
5578
5579         New module 'uninorm/u8-normalize'.
5580         * lib/uninorm/u8-normalize.c: New file.
5581         * lib/uninorm/normalize-internal.h: New file.
5582         * lib/uninorm/u-normalize-internal.h: New file.
5583         * modules/uninorm/u8-normalize: New file.
5584
5585         New module 'uninorm/decompose-internal'.
5586         * lib/uninorm/decompose-internal.c: New file.
5587         * modules/uninorm/decompose-internal: New file.
5588
5589         Tests for module 'uninorm/composition'.
5590         * tests/uninorm/test-composition.c: New file.
5591         * modules/uninorm/composition-tests: New file.
5592
5593         New module 'uninorm/composition'.
5594         * lib/uninorm/composition.c: New file.
5595         * lib/uninorm/composition-table.gperf: New file, generated by
5596         gen-uni-tables.
5597         * modules/uninorm/composition: New file.
5598
5599         Tests for module 'uninorm/compat-decomposition'.
5600         * tests/uninorm/test-compat-decomposition.c: New file.
5601         * modules/uninorm/compat-decomposition-tests: New file.
5602
5603         New module 'uninorm/compat-decomposition'.
5604         * lib/uninorm/decompose-internal.h: New file.
5605         * lib/uninorm/compat-decomposition.c: New file.
5606         * modules/uninorm/compat-decomposition: New file.
5607
5608         Tests for module 'uninorm/canonical-decomposition'.
5609         * tests/uninorm/test-canonical-decomposition.c: New file.
5610         * modules/uninorm/canonical-decomposition-tests: New file.
5611
5612         New module 'uninorm/canonical-decomposition'.
5613         * lib/uninorm/canonical-decomposition.c: New file.
5614         * modules/uninorm/canonical-decomposition: New file.
5615
5616         Tests for module 'uninorm/decomposition'.
5617         * tests/uninorm/test-decomposition.c: New file.
5618         * modules/uninorm/decomposition-tests: New file.
5619
5620         New module 'uninorm/decomposition'.
5621         * lib/uninorm/decomposition.c: New file.
5622         * modules/uninorm/decomposition: New file.
5623
5624         New module 'uninorm/decomposition-table'.
5625         * lib/uninorm/decomposition-table.h: New file.
5626         * lib/uninorm/decomposition-table.c: New file.
5627         * lib/uninorm/decomposition-table1.h: New file, generated by
5628         gen-uni-tables.
5629         * lib/uninorm/decomposition-table2.h: New file, generated by
5630         gen-uni-tables.
5631         * modules/uninorm/decomposition-table: New file.
5632
5633         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
5634         (UC_DECOMP_*): New enumeration items.
5635         (get_decomposition): New function.
5636         (struct decomp_table): New type.
5637         (output_decomposition, output_decomposition_tables): New functions.
5638         (unicode_composition_exclusions): New variable.
5639         (fill_composition_exclusions, debug_output_composition_tables): New
5640         functions.
5641         (main): Accept one more argument. Invoke fill_composition_exclusions.
5642         Output decomposition and composition tables.
5643
5644         New module 'uninorm/base'.
5645         * lib/uninorm.h: New file.
5646         * lib/unictype.h: Update comment.
5647         * modules/uninorm/base: New file.
5648
5649 2009-02-21  David Lutterkort  <lutter@redhat.com>
5650
5651         Tests for module 'safe-alloc'.
5652         * tests/test-safe-alloc.c: New file.
5653         * modules/safe-alloc-tests: New file.
5654
5655         New module 'safe-alloc'.
5656         * lib/safe-alloc.h: New file.
5657         * lib/safe-alloc.c: New file.
5658         * m4/safe-alloc.m4: New file.
5659         * modules/safe-alloc: New file.
5660         * doc/safe-alloc.texi: New file.
5661         * doc/gnulib.texi: Include it.
5662         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
5663         safe-alloc.
5664
5665 2009-02-18  Bruno Haible  <bruno@clisp.org>
5666
5667         Fix link error on non-glibc systems.
5668         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
5669         variable.
5670         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5671
5672 2009-02-18  Jim Meyering  <meyering@redhat.com>
5673
5674         fts: avoid used-uninitialized error due to recent change
5675         * lib/fts.c (fts_read): Guard uses of the new member,
5676         parent->fts_n_dirs_remaining, since it's not relevant for
5677         the parent of a directory specified on the command-line.
5678
5679 2009-02-17  James Youngman  <jay@gnu.org>
5680             Bruno Haible  <bruno@clisp.org>
5681
5682         * m4/include_next.m4: Reformulate comment.
5683
5684 2009-02-16  Jim Meyering  <meyering@redhat.com>
5685
5686         fts: add #if guards so that the fts_lgpl module still builds
5687         * lib/fts.c: Guard just-added hash-table-using parts with
5688         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
5689         Reported by Simon Josefsson.
5690
5691 2009-02-15  Bruno Haible  <bruno@clisp.org>
5692
5693         * modules/array-mergesort-tests: New file.
5694         * tests/test-array-mergesort.c: New file.
5695
5696         New module 'array-mergesort'.
5697         * modules/array-mergesort: New file.
5698         * lib/array-mergesort.h: New file.
5699
5700 2009-02-15  Bruno Haible  <bruno@clisp.org>
5701
5702         Fix 2009-02-07 commit.
5703         * lib/gen-uni-tables.c (output_predicate, output_category,
5704         output_combclass, output_bidi_category, output_decimal_digit,
5705         output_digit, output_numeric, output_mirror, output_scripts,
5706         output_ident_category, output_simple_mapping): Fix format directives.
5707         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
5708
5709 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
5710
5711         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
5712         fixes are available from IBM.
5713
5714 2009-02-13  Jim Meyering  <meyering@redhat.com>
5715
5716         fts: arrange not to stat non-directories in more cases
5717         This makes GNU find (when it doesn't need to stat each file)
5718         *much* more efficient at traversing reiserfs file systems.
5719         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
5720         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
5721         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
5722         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
5723         (leaf_optimization_applies): New function.
5724         (LCO_hash, LCO_compare): New helper functions.
5725         (link_count_optimize_ok): New function.
5726         (fts_stat): Initialize new member (if dir).
5727         (fts_read): Decrement parent's fts_n_dirs_remaining count if
5728         we've just stat'ed a directory.  Skip the stat call when possible.
5729         ---
5730         Note this AFS-related exchange:
5731         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
5732         and note find's pioctl call in find/fstype.c.
5733         But that is necessary only if you want to enable the
5734         optimization for AFS, and for now, I don't.
5735
5736         fts: move a function definition "up" (no semantic change)
5737         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
5738         "up" to precede upcoming use of a related function.
5739
5740 2009-02-11  Jim Meyering  <meyering@redhat.com>
5741
5742         fts: correct internal computation of nlinks (optimization-related)
5743         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
5744         whether the current entry is a directory, so don't test it.
5745
5746 2009-02-10  Bruno Haible  <bruno@clisp.org>
5747
5748         Tests for module 'uniwbrk/ulc-wordbreaks'.
5749         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
5750         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
5751         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
5752
5753         Tests for module 'uniwbrk/u32-wordbreaks'.
5754         * modules/uniwbrk/u32-wordbreaks-tests: New file.
5755         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
5756
5757         Tests for module 'uniwbrk/u16-wordbreaks'.
5758         * modules/uniwbrk/u16-wordbreaks-tests: New file.
5759         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
5760
5761         Tests for module 'uniwbrk/u8-wordbreaks'.
5762         * modules/uniwbrk/u8-wordbreaks-tests: New file.
5763         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
5764
5765 2009-02-10  Bruno Haible  <bruno@clisp.org>
5766
5767         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
5768         property.
5769         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
5770         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
5771         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
5772
5773 2009-02-10  Simon Josefsson  <simon@josefsson.org>
5774
5775         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
5776         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
5777
5778 2009-02-10  Bruno Haible  <bruno@clisp.org>
5779
5780         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
5781         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
5782         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
5783         * lib/unilbrk/u8-possible-linebreaks.c: Update.
5784         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
5785         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
5786
5787 2009-02-09  Simon Josefsson  <simon@josefsson.org>
5788
5789         * lib/sockets.h (gl_fd_to_handle): New function.
5790
5791         * tests/test-sockets.c: Call gl_fd_to_handle.
5792
5793 2009-02-09  Bruno Haible  <bruno@clisp.org>
5794
5795         * doc/havelib.texi: Document the conventions on bi-arch systems.
5796
5797 2009-02-08  Bruno Haible  <bruno@clisp.org>
5798
5799         Document the AC_LIB_LINKFLAGS macro.
5800         * doc/havelib.texi: New file, mostly written on 2005-05-24.
5801         * doc/gnulib.texi: Include it.
5802
5803 2009-02-08  Bruno Haible  <bruno@clisp.org>
5804
5805         Fix wrong order of sections, compared to TOC.
5806         * doc/gnulib.texi: Include relocatable-maint.texi after the
5807         "Regular expressions" node, not before.
5808
5809 2009-02-08  Bruno Haible  <bruno@clisp.org>
5810
5811         Tests for module 'unicase/totitle'.
5812         * modules/unicase/totitle-tests: New file.
5813
5814         Tests for module 'unicase/tolower'.
5815         * modules/unicase/tolower-tests: New file.
5816
5817         Tests for module 'unicase/toupper'.
5818         * modules/unicase/toupper-tests: New file.
5819         * tests/unicase/test-mapping-part1.h: New file.
5820         * tests/unicase/test-mapping-part2.h: New file.
5821
5822         New module 'unicase/totitle'.
5823         * modules/unicase/totitle: New file.
5824         * lib/unicase/totitle.c: New file.
5825
5826         New module 'unicase/tolower'.
5827         * modules/unicase/tolower: New file.
5828         * lib/unicase/tolower.c: New file.
5829
5830         New module 'unicase/toupper'.
5831         * modules/unicase/toupper: New file.
5832         * lib/unicase/toupper.c: New file.
5833         * lib/unicase/simple-mapping.h: New file.
5834
5835         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
5836         (mapping_table): New structure.
5837         (output_simple_mapping): New function.
5838         (main): Invoke output_simple_mapping_test and output_simple_mapping.
5839         * modules/gen-uni-tables (Description): Update.
5840         * lib/unicase/toupper.h: New file, automatically generated by
5841         gen-uni-tables.
5842         * lib/unicase/tolower.h: New file, automatically generated by
5843         gen-uni-tables.
5844         * lib/unicase/totitle.h: New file, automatically generated by
5845         gen-uni-tables.
5846         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
5847         gen-uni-tables.
5848         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
5849         gen-uni-tables.
5850         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
5851         gen-uni-tables.
5852
5853         New module 'unicase/base'.
5854         * modules/unicase/base: New file.
5855         * lib/unicase.h: New file.
5856
5857 2009-02-08  Bruno Haible  <bruno@clisp.org>
5858
5859         New module 'uniwbrk/ulc-wordbreaks'.
5860         * modules/uniwbrk/ulc-wordbreaks: New file.
5861         * lib/uniwbrk/ulc-wordbreaks.c: New file.
5862
5863         New module 'uniwbrk/u32-wordbreaks'.
5864         * modules/uniwbrk/u32-wordbreaks: New file.
5865         * lib/uniwbrk/u32-wordbreaks.c: New file.
5866
5867         New module 'uniwbrk/u16-wordbreaks'.
5868         * modules/uniwbrk/u16-wordbreaks: New file.
5869         * lib/uniwbrk/u16-wordbreaks.c: New file.
5870
5871         New module 'uniwbrk/u8-wordbreaks'.
5872         * modules/uniwbrk/u8-wordbreaks: New file.
5873         * lib/uniwbrk/u8-wordbreaks.c: New file.
5874         * lib/uniwbrk/u-wordbreaks.h: New file.
5875
5876         New module 'uniwbrk/table'.
5877         * modules/uniwbrk/table: New file.
5878         * lib/uniwbrk/wbrktable.h: New file.
5879         * lib/uniwbrk/wbrktable.c: New file.
5880
5881         New module 'uniwbrk/wordbreak-property'.
5882         * modules/uniwbrk/wordbreak-property: New file.
5883         * lib/uniwbrk/wordbreak-property.c: New file.
5884
5885         * lib/gen-uni-tables.c (WBP_*): New enum items.
5886         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
5887         (unicode_org_wbp): New variable.
5888         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
5889         New functions.
5890         (wbp_table): New structure.
5891         (output_wbp, output_wbrk_tables): New functions.
5892         (main): Accept additional argument. Invoke fill_org_wbp,
5893         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
5894         output_wbrk_tables.
5895         * modules/gen-uni-tables (Description): Update.
5896         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
5897         gen-uni-tables.
5898
5899         New module 'uniwbrk/base'.
5900         * modules/uniwbrk/base: New file.
5901         * lib/uniwbrk.h: New file.
5902
5903 2009-02-08  Bruno Haible  <bruno@clisp.org>
5904
5905         Update to Unicode 5.1.0.
5906         * lib/gen-uni-tables.c (is_property_alphabetic): Include
5907         U+2185..U+2188.
5908         (is_property_default_ignorable_code_point): Don't include characters
5909         of category Cc or Cs and not-a-characters.
5910         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
5911         U+0D79, U+109E, U+109F, U+A60C.
5912         * lib/unictype/bidi_of.h: Regenerated.
5913         * lib/unictype/blocks.h: Regenerated.
5914         * lib/unictype/categ_C.h: Regenerated.
5915         * lib/unictype/categ_Cf.h: Regenerated.
5916         * lib/unictype/categ_Cn.h: Regenerated.
5917         * lib/unictype/categ_L.h: Regenerated.
5918         * lib/unictype/categ_Ll.h: Regenerated.
5919         * lib/unictype/categ_Lm.h: Regenerated.
5920         * lib/unictype/categ_Lo.h: Regenerated.
5921         * lib/unictype/categ_Lu.h: Regenerated.
5922         * lib/unictype/categ_M.h: Regenerated.
5923         * lib/unictype/categ_Mc.h: Regenerated.
5924         * lib/unictype/categ_Me.h: Regenerated.
5925         * lib/unictype/categ_Mn.h: Regenerated.
5926         * lib/unictype/categ_N.h: Regenerated.
5927         * lib/unictype/categ_Nd.h: Regenerated.
5928         * lib/unictype/categ_Nl.h: Regenerated.
5929         * lib/unictype/categ_No.h: Regenerated.
5930         * lib/unictype/categ_P.h: Regenerated.
5931         * lib/unictype/categ_Pd.h: Regenerated.
5932         * lib/unictype/categ_Pe.h: Regenerated.
5933         * lib/unictype/categ_Pf.h: Regenerated.
5934         * lib/unictype/categ_Pi.h: Regenerated.
5935         * lib/unictype/categ_Po.h: Regenerated.
5936         * lib/unictype/categ_Ps.h: Regenerated.
5937         * lib/unictype/categ_S.h: Regenerated.
5938         * lib/unictype/categ_Sk.h: Regenerated.
5939         * lib/unictype/categ_Sm.h: Regenerated.
5940         * lib/unictype/categ_So.h: Regenerated.
5941         * lib/unictype/categ_of.h: Regenerated.
5942         * lib/unictype/combining.h: Regenerated.
5943         * lib/unictype/ctype_alnum.h: Regenerated.
5944         * lib/unictype/ctype_alpha.h: Regenerated.
5945         * lib/unictype/ctype_graph.h: Regenerated.
5946         * lib/unictype/ctype_lower.h: Regenerated.
5947         * lib/unictype/ctype_print.h: Regenerated.
5948         * lib/unictype/ctype_punct.h: Regenerated.
5949         * lib/unictype/ctype_upper.h: Regenerated.
5950         * lib/unictype/decdigit.h: Regenerated.
5951         * lib/unictype/digit.h: Regenerated.
5952         * lib/unictype/mirror.h: Regenerated.
5953         * lib/unictype/numeric.h: Regenerated.
5954         * lib/unictype/pr_alphabetic.h: Regenerated.
5955         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
5956         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
5957         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
5958         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
5959         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
5960         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
5961         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
5962         * lib/unictype/pr_combining.h: Regenerated.
5963         * lib/unictype/pr_dash.h: Regenerated.
5964         * lib/unictype/pr_decimal_digit.h: Regenerated.
5965         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
5966         * lib/unictype/pr_deprecated.h: Regenerated.
5967         * lib/unictype/pr_diacritic.h: Regenerated.
5968         * lib/unictype/pr_extender.h: Regenerated.
5969         * lib/unictype/pr_format_control.h: Regenerated.
5970         * lib/unictype/pr_grapheme_base.h: Regenerated.
5971         * lib/unictype/pr_grapheme_extend.h: Regenerated.
5972         * lib/unictype/pr_grapheme_link.h: Regenerated.
5973         * lib/unictype/pr_id_continue.h: Regenerated.
5974         * lib/unictype/pr_id_start.h: Regenerated.
5975         * lib/unictype/pr_ideographic.h: Regenerated.
5976         * lib/unictype/pr_ignorable_control.h: Regenerated.
5977         * lib/unictype/pr_lowercase.h: Regenerated.
5978         * lib/unictype/pr_math.h: Regenerated.
5979         * lib/unictype/pr_numeric.h: Regenerated.
5980         * lib/unictype/pr_other_alphabetic.h: Regenerated.
5981         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
5982         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
5983         * lib/unictype/pr_other_id_continue.h: Regenerated.
5984         * lib/unictype/pr_other_lowercase.h: Regenerated.
5985         * lib/unictype/pr_other_math.h: Regenerated.
5986         * lib/unictype/pr_punctuation.h: Regenerated.
5987         * lib/unictype/pr_sentence_terminal.h: Regenerated.
5988         * lib/unictype/pr_soft_dotted.h: Regenerated.
5989         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
5990         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
5991         * lib/unictype/pr_unified_ideograph.h: Regenerated.
5992         * lib/unictype/pr_uppercase.h: Regenerated.
5993         * lib/unictype/pr_xid_continue.h: Regenerated.
5994         * lib/unictype/pr_xid_start.h: Regenerated.
5995         * lib/unictype/pr_zero_width.h: Regenerated.
5996         * lib/unictype/scripts.h: Regenerated.
5997         * lib/unictype/scripts_byname.gperf: Regenerated.
5998         * lib/unictype/sy_java_ident.h: Regenerated.
5999         * lib/unilbrk/lbrkprop1.h: Regenerated.
6000         * lib/unilbrk/lbrkprop2.h: Regenerated.
6001         * tests/unictype/test-categ_C.c: Regenerated.
6002         * tests/unictype/test-categ_Cf.c: Regenerated.
6003         * tests/unictype/test-categ_Cn.c: Regenerated.
6004         * tests/unictype/test-categ_L.c: Regenerated.
6005         * tests/unictype/test-categ_Ll.c: Regenerated.
6006         * tests/unictype/test-categ_Lm.c: Regenerated.
6007         * tests/unictype/test-categ_Lo.c: Regenerated.
6008         * tests/unictype/test-categ_Lu.c: Regenerated.
6009         * tests/unictype/test-categ_M.c: Regenerated.
6010         * tests/unictype/test-categ_Mc.c: Regenerated.
6011         * tests/unictype/test-categ_Me.c: Regenerated.
6012         * tests/unictype/test-categ_Mn.c: Regenerated.
6013         * tests/unictype/test-categ_N.c: Regenerated.
6014         * tests/unictype/test-categ_Nd.c: Regenerated.
6015         * tests/unictype/test-categ_Nl.c: Regenerated.
6016         * tests/unictype/test-categ_No.c: Regenerated.
6017         * tests/unictype/test-categ_P.c: Regenerated.
6018         * tests/unictype/test-categ_Pd.c: Regenerated.
6019         * tests/unictype/test-categ_Pe.c: Regenerated.
6020         * tests/unictype/test-categ_Pf.c: Regenerated.
6021         * tests/unictype/test-categ_Pi.c: Regenerated.
6022         * tests/unictype/test-categ_Po.c: Regenerated.
6023         * tests/unictype/test-categ_Ps.c: Regenerated.
6024         * tests/unictype/test-categ_S.c: Regenerated.
6025         * tests/unictype/test-categ_Sk.c: Regenerated.
6026         * tests/unictype/test-categ_Sm.c: Regenerated.
6027         * tests/unictype/test-categ_So.c: Regenerated.
6028         * tests/unictype/test-ctype_alnum.c: Regenerated.
6029         * tests/unictype/test-ctype_alpha.c: Regenerated.
6030         * tests/unictype/test-ctype_graph.c: Regenerated.
6031         * tests/unictype/test-ctype_lower.c: Regenerated.
6032         * tests/unictype/test-ctype_print.c: Regenerated.
6033         * tests/unictype/test-ctype_punct.c: Regenerated.
6034         * tests/unictype/test-ctype_upper.c: Regenerated.
6035         * tests/unictype/test-decdigit.h: Regenerated.
6036         * tests/unictype/test-digit.h: Regenerated.
6037         * tests/unictype/test-numeric.h: Regenerated.
6038         * tests/unictype/test-pr_alphabetic.c: Regenerated.
6039         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
6040         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
6041         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
6042         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
6043         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
6044         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
6045         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
6046         * tests/unictype/test-pr_combining.c: Regenerated.
6047         * tests/unictype/test-pr_dash.c: Regenerated.
6048         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
6049         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
6050         * tests/unictype/test-pr_deprecated.c: Regenerated.
6051         * tests/unictype/test-pr_diacritic.c: Regenerated.
6052         * tests/unictype/test-pr_extender.c: Regenerated.
6053         * tests/unictype/test-pr_format_control.c: Regenerated.
6054         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
6055         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
6056         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
6057         * tests/unictype/test-pr_id_continue.c: Regenerated.
6058         * tests/unictype/test-pr_id_start.c: Regenerated.
6059         * tests/unictype/test-pr_ideographic.c: Regenerated.
6060         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
6061         * tests/unictype/test-pr_lowercase.c: Regenerated.
6062         * tests/unictype/test-pr_math.c: Regenerated.
6063         * tests/unictype/test-pr_numeric.c: Regenerated.
6064         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
6065         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
6066         Regenerated.
6067         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
6068         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
6069         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
6070         * tests/unictype/test-pr_other_math.c: Regenerated.
6071         * tests/unictype/test-pr_punctuation.c: Regenerated.
6072         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
6073         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
6074         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
6075         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
6076         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
6077         * tests/unictype/test-pr_uppercase.c: Regenerated.
6078         * tests/unictype/test-pr_xid_continue.c: Regenerated.
6079         * tests/unictype/test-pr_xid_start.c: Regenerated.
6080         * tests/unictype/test-pr_zero_width.c: Regenerated.
6081
6082         Update to Unicode 5.1.0.
6083         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
6084         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
6085         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
6086         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
6087         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
6088         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
6089         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
6090         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
6091         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
6092         (nonspacing_table_ind): Update.
6093         * tests/uniwidth/test-uc_width2.sh: Update expected result.
6094
6095         Update to Unicode 5.1.0.
6096         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
6097         code transform.
6098         * lib/uniname/uniname.c (unicode_character_name,
6099         unicode_name_character): Add the range 0x1Fxxx to the code transform.
6100         * lib/uniname/uninames.h: Regenerated.
6101         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
6102
6103 2009-02-07  Bruno Haible  <bruno@clisp.org>
6104
6105         Merge gen-ctype and gen-lbrk into a single program.
6106         * lib/gen-uni-tables.c: New file, incorporating
6107         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
6108         Add directory prefixes to the names of the generated files.
6109         * lib/unictype/gen-ctype.c: Remove file.
6110         * lib/unilbrk/gen-lbrk.c: Remove file.
6111         * modules/gen-uni-tables: New file.
6112         * modules/unictype/gen-ctype: Remove file.
6113         * modules/unilbrk/gen-lbrk: Remove file.
6114
6115 2009-02-07  Bruno Haible  <bruno@clisp.org>
6116
6117         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
6118
6119         New module 'unistr/u32-strcoll'.
6120         * modules/unistr/u32-strcoll: New file.
6121         * lib/unistr/u32-strcoll.c: New file.
6122
6123         New module 'unistr/u16-strcoll'.
6124         * modules/unistr/u16-strcoll: New file.
6125         * lib/unistr/u16-strcoll.c: New file.
6126
6127         New module 'unistr/u8-strcoll'.
6128         * modules/unistr/u8-strcoll: New file.
6129         * lib/unistr/u8-strcoll.c: New file.
6130         * lib/unistr/u-strcoll.h: New file.
6131
6132 2009-02-07  Bruno Haible  <bruno@clisp.org>
6133
6134         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
6135         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
6136         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
6137         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
6138         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
6139         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
6140
6141 2009-02-07  Bruno Haible  <bruno@clisp.org>
6142
6143         Make 64-bit clean.
6144         * lib/unictype/gen-ctype.c (output_predicate, output_category,
6145         output_combclass, output_bidi_category, output_decimal_digit,
6146         output_digit, output_numeric, output_mirror, output_scripts,
6147         output_ident_category): Use proper width specifier in format strings.
6148
6149 2009-02-07  Bruno Haible  <bruno@clisp.org>
6150
6151         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
6152         failure behaviour.
6153
6154 2009-02-07  Jim Meyering  <meyering@redhat.com>
6155
6156         regex: avoid compilation failure with upcoming gcc-4.4
6157         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
6158         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
6159         "... error: integer overflow in preprocessor expression".
6160
6161 2009-02-05  Ben Pfaff  <blp@gnu.org>
6162
6163         Fix link errors on Windows when close module is used.
6164         * modules/close: Add $(LIB_CLOSE) to Link section.
6165         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
6166         $(LIB_CLOSE) on Windows.
6167
6168 2009-02-05  Jim Meyering  <meyering@redhat.com>
6169
6170         still avoid unused-parameter warnings, but do it cleanly
6171         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
6172         (get_fs_usage): Cast to void instead.
6173         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
6174         (dev_from_mount_options, read_file_system_list): Cast to void.
6175         Prompted by Bruno Haible.
6176
6177 2009-02-04  Jim Meyering  <meyering@redhat.com>
6178
6179         fsusage.c: correct copyright year
6180         * lib/fsusage.c: Reflect year in which the change is pushed into
6181
6182         avoid misc. warnings
6183         * lib/fsusage.c (UNUSED_PARAM): Define.
6184         (get_fs_usage): Mark parameter "disk" as unused.
6185         * lib/getugroups.c (getgrent): Use "void" in prototype.
6186         * lib/mountlist.c: Mark unused parameters.
6187         (read_file_system_list): Declare a local with "const".
6188         * lib/nanosleep.c (getnow): Declare static.
6189         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
6190
6191         dirfd: set errno upon failure
6192         * lib/dirfd.c: Include <errno.h>.
6193         Set errno to ENOTSUP when returning -1.
6194         * modules/dirfd (Depends-on): Add errno.
6195         Suggested by John Kodis <kodis@comcast.net>.
6196
6197 2009-02-01  Bruno Haible  <bruno@clisp.org>
6198
6199         Don't assume sizeof (long) >= sizeof (void *).
6200         * lib/memcmp.c: Include stdint.h.
6201         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
6202         srcp2 to 'const byte *'.
6203         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
6204         types to uintptr_t.
6205         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
6206         * modules/memcmp (Depends-on): Add stdint.
6207         Reported by Ozkan Sezer <sezeroz@gmail.com>.
6208
6209 2009-01-30  Eric Blake  <ebb9@byu.net>
6210
6211         fix more require-before-expand issues
6212         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
6213         expand, AC_PROG_AWK.
6214         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
6215
6216 2009-01-28  Eric Blake  <ebb9@byu.net>
6217
6218         version-etc: use consistent URL formatting
6219         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
6220         Improve formatting.  Use fputs for string without %.
6221
6222 2009-01-28  Jim Meyering  <meyering@redhat.com>
6223
6224         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
6225         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
6226         "underquoted definition of NAME" from autoconf-2.59.
6227
6228 2009-01-28  Bruno Haible  <bruno@clisp.org>
6229
6230         * doc/gnulib.texi: Add "Obsolete modules" to index.
6231
6232 2009-01-28  Jim Meyering  <meyering@redhat.com>
6233
6234         useless-if-before-free: recognize more variants
6235         * build-aux/useless-if-before-free: Also recognize e.g.,
6236         if (NULL != p) free (p);
6237
6238 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
6239
6240         test-getaddrinfo: skip (don't fail) this test when there's no network
6241         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
6242         on the presumption that it means you lack network access.
6243
6244 2009-01-26  Jim Meyering  <meyering@redhat.com>
6245
6246         fflush: avoid warnings on modern systems
6247         * lib/fflush.c (rpl_fflush): Move declarations of locals,
6248         pos and result, into scopes where they're used.
6249
6250 2009-01-26  Eric Blake  <ebb9@byu.net>
6251
6252         Silence warning reintroduced by recent extensions patch.
6253         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
6254         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
6255         autoconf.
6256
6257         Backport improved autoconf semantics of AC_DEFUN_ONCE.
6258         * m4/00gnulib.m4: New file.
6259         * gnulib-tool (func_get_filelist): Always use it.
6260         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
6261         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
6262
6263 2009-01-25  Bruno Haible  <bruno@clisp.org>
6264
6265         Make test-quotearg work on MacOS X and AIX.
6266         * tests/test-quotearg.sh: New file.
6267         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
6268         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
6269         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
6270         include <libintl.h>.
6271         (fake_locale): Remove variable.
6272         (gettext, dgettext, dcgettext): Remove functions.
6273         (main): Instead of setting a fake locale, set a real locale. Call
6274         textdomain and bindtextdomain.
6275         * modules/quotearg-tests (Files): Add the new files.
6276         (Depends-on): Add gettext, setenv, unsetenv.
6277         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
6278         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
6279         Augment TESTS_ENVIRONMENT.
6280
6281 2009-01-25  Bruno Haible  <bruno@clisp.org>
6282
6283         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
6284         fr_FR.ISO8859-1 locale on MacOS X.
6285         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
6286         ja_JP.eucJP locale on MacOS X.
6287         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
6288         zh_CN.GB18030 locale on MacOS X.
6289
6290 2009-01-25  Bruno Haible  <bruno@clisp.org>
6291
6292         Avoid link errors on MacOS X 10.3.
6293         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
6294         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
6295
6296 2009-01-25  Bruno Haible  <bruno@clisp.org>
6297
6298         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
6299         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
6300         * modules/pipe (Files): Remove m4/posix_spawn.m4.
6301         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
6302         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
6303         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
6304         posix_spawnattr_init, posix_spawnattr_setsigmask,
6305         posix_spawnattr_setflags, posix_spawnattr_destroy.
6306
6307         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
6308         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
6309         * modules/execute (Files): Remove m4/posix_spawn.m4.
6310         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
6311         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
6312         posix_spawnattr_init, posix_spawnattr_setsigmask,
6313         posix_spawnattr_setflags, posix_spawnattr_destroy.
6314
6315 2009-01-25  Bruno Haible  <bruno@clisp.org>
6316
6317         * lib/glthread/threadlib.c: Include <stdlib.h>.
6318
6319 2009-01-25  Bruno Haible  <bruno@clisp.org>
6320
6321         * lib/glthread/threadlib.c (dummy): New declaration.
6322
6323 2009-01-25  Bruno Haible  <bruno@clisp.org>
6324
6325         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
6326         multibyte characters also for the GB18030 encoding. Don't crash when
6327         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
6328
6329 2009-01-25  Bruno Haible  <bruno@clisp.org>
6330
6331         Avoid redefining 'struct random_data' on OSF/1 5.1.
6332         * lib/stdlib.in.h: Include <random.h> if it exists.
6333         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
6334         HAVE_RANDOM_H. Include <random.h> when testing whether
6335         'struct random_data' exists.
6336         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
6337
6338 2009-01-25  Bruno Haible  <bruno@clisp.org>
6339
6340         Don't install charset.alias on MacOS X >= 10.3.
6341         * lib/localcharset.c (DARWIN7): New macro.
6342         (get_charset_aliases): Hardcode the result for Darwin7.
6343         * modules/localcharset (install-exec-local): Don't install
6344         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
6345
6346 2009-01-25  Bruno Haible  <bruno@clisp.org>
6347
6348         Don't install charset.alias on mingw and Cygwin.
6349         * modules/localcharset (install-exec-local): Don't install
6350         charset.alias on mingw and Cygwin, if the file does not yet exist.
6351         The result for these platforms is hardcoded in localcharset.c.
6352
6353 2009-01-25  Bruno Haible  <bruno@clisp.org>
6354
6355         Make it possible again to use AC_GNU_SOURCE together with gnulib.
6356         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
6357         before requiring AC_USE_SYSTEM_EXTENSIONS.
6358
6359 2009-01-25  Jim Meyering  <meyering@redhat.com>
6360
6361         c-strtod: avoid warnings
6362         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
6363         "assignment discards qualifiers from pointer target type" warnings.
6364
6365 2009-01-24  Bruno Haible  <bruno@clisp.org>
6366
6367         Add support for non-UTF-8 locales on MacOS X.
6368         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
6369         canonical encodings. For Darwin 7 and newer, don't map traditional
6370         encodings to UTF-8.
6371         Reported by Vincent Lefevre <vincent@vinc17.org>
6372         at <http://savannah.gnu.org/bugs/?25235>.
6373
6374 2009-01-24  Bruno Haible  <bruno@clisp.org>
6375
6376         * doc/gnulib.texi (Obsolete modules): New section.
6377         Reported by Mike Frysinger <vapier@gentoo.org>.
6378
6379 2009-01-24  Bruno Haible  <bruno@clisp.org>
6380
6381         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
6382         (%.dvi): New rule.
6383
6384 2009-01-24  Bruno Haible  <bruno@clisp.org>
6385
6386         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
6387         Reported by Eric Blake.
6388
6389 2009-01-24  Bruno Haible  <bruno@clisp.org>
6390
6391         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
6392         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
6393         Reported by Gary V. Vaughan <gary@gnu.org>.
6394
6395 2009-01-24  Bruno Haible  <bruno@clisp.org>
6396
6397         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
6398
6399 2009-01-23  Bruno Haible  <bruno@clisp.org>
6400
6401         Make c-strtod, c-strtold usable in libraries.
6402         * lib/c-strtod.c: Include string.h instead of xalloc.h.
6403         (C_STRTOD): Call strdup instead of xstrdup.
6404         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
6405         * modules/c-strtold (Depends-on): Likewise.
6406         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
6407         * NEWS: Mention the change.
6408         Reported by Michael Gold <mgold@ncf.ca>.
6409
6410 2009-01-23  Jim Meyering  <meyering@redhat.com>
6411
6412         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
6413         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
6414         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
6415
6416 2009-01-23  Simon Josefsson  <simon@josefsson.org>
6417
6418         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
6419         GNU CoreUtils.
6420         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
6421         * modules/version-etc (Description): Update.
6422
6423 2009-01-22  Bruno Haible  <bruno@clisp.org>
6424
6425         Cache the C locale object.
6426         * lib/c-strtod.c (c_locale_cache): New variable.
6427         (c_locale): New function.
6428         (C_STRTOD): Use it, and don't call freelocale.
6429         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
6430         Suggested by Paolo Bonzini.
6431
6432 2009-01-21  Bruno Haible  <bruno@clisp.org>
6433
6434         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
6435         conditions other than overflow.
6436
6437 2009-01-21  Bruno Haible  <bruno@clisp.org>
6438
6439         * lib/c-strtod.c: Include errno.h.
6440         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
6441         value from STRTOD_L and STRTOD.
6442
6443 2009-01-21  Bruno Haible  <bruno@clisp.org>
6444         and Jim Meyering  <meyering@redhat.com>
6445
6446         nanosleep: skip configure test (fail it) for apple universal builds
6447         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
6448         universal builds, assume that nanosleep does not work.
6449         * modules/nanosleep (Depends-on): Add multiarch.
6450
6451         mktime: skip configure test (fail it) for apple universal builds
6452         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
6453         universal builds, assume that mktime does not work.
6454         * modules/mktime (Depends-on): Add multiarch.
6455
6456 2009-01-21  Eric Blake  <ebb9@byu.net>
6457
6458         multiarch: avoid expand-before-require warning
6459         * modules/multiarch (configure.ac): Require, rather than expand,
6460         gl_MULTIARCH.
6461         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
6462         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
6463         enforce that all clients require it.  Partial reversion of
6464         2008-12-29 patch.
6465
6466         error: avoid expand-before-require warning
6467         * modules/errno (configure.ac): Require, rather than expand,
6468         gl_HEADER_ERRNO_H.
6469         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
6470         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
6471         enforce that all clients require it.
6472
6473         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
6474         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
6475         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
6476         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
6477
6478 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
6479
6480         Revert:
6481         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
6482
6483         regex: do not depend on obsolete modules.
6484         * modules/regex: Remove memcmp and memmove.
6485
6486 2009-01-20  Bruno Haible  <bruno@clisp.org>
6487
6488         Make the 'link' module link on Windows NT 4.
6489         * lib/link.c (_WIN32_WINNT): Don't define.
6490         (CreateHardLinkFuncType): New type.
6491         (CreateHardLinkFunc, initialized): New variables.
6492         (initialize): New function.
6493         (link): Invoke CreateHardLink indirectly through the function pointer.
6494
6495 2009-01-20  Bruno Haible  <bruno@clisp.org>
6496
6497         Fix compilation failure on mingw.
6498         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
6499
6500 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
6501
6502         * doc/c-strtod.texi: Mention a couple of restrictions.
6503
6504 2009-01-20  Jim Meyering  <meyering@redhat.com>
6505
6506         gettimeofday: move more declarations out of functions
6507         * lib/gettimeofday.c: Move extern declarations of tzset and
6508         gmtime out of containing functions.  Prompted by Bruno Haible.
6509
6510 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
6511
6512         regex: do not depend on obsolete modules.
6513         * modules/regex: Remove memcmp and memmove.
6514
6515 2009-01-19  Bruno Haible  <bruno@clisp.org>
6516
6517         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
6518         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
6519         gl_BIGENDIAN, not AC_C_BIGENDIAN.
6520         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
6521         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
6522
6523 2009-01-19  Bruno Haible  <bruno@clisp.org>
6524
6525         * tests/test-link.c: Include <errno.h>.
6526         (main): Exit with code 77 when a hard link cannot be created due to
6527         the file system.
6528         * tests/test-link.sh: Skip test when a hard link cannot be created due
6529         to the file system.
6530         Suggested by Eric Blake.
6531
6532 2009-01-19  Martin Lambers  <marlam@marlam.de>
6533
6534         * modules/link-tests: New file.
6535         * tests/test-link.sh: New file.
6536         * tests/test-link.c: New file.
6537
6538 2009-01-19  Eric Blake  <ebb9@byu.net>
6539
6540         doc: mention another function added in cygwin 1.7.0
6541         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
6542         Another new function in cygwin 1.7.
6543
6544 2009-01-19  Bruno Haible  <bruno@clisp.org>
6545
6546         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
6547         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
6548         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
6549         gl_BIGENDIAN, not AC_C_BIGENDIAN.
6550         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
6551         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
6552         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6553         * m4/md4.m4 (gl_MD4): Likewise.
6554         * m4/md5.m4 (gl_MD5): Likewise.
6555         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
6556         * m4/sha1.m4 (gl_SHA1): Likewise.
6557         * m4/sha256.m4 (gl_SHA256): Likewise.
6558         * m4/sha512.m4 (gl_SHA512): Likewise.
6559
6560 2009-01-19  Bruno Haible  <bruno@clisp.org>
6561
6562         * modules/uniname/uniname-tests (Depends-on): Add progname.
6563         * tests/uniname/test-uninames.c: Include progname.h.
6564         (main): Call set_program_name.
6565
6566         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
6567         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
6568         (main): Call set_program_name.
6569
6570         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
6571         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
6572         (main): Call set_program_name.
6573
6574         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
6575         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
6576         (main): Call set_program_name.
6577
6578         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
6579         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
6580         (main): Call set_program_name.
6581
6582         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
6583         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
6584         (main): Call set_program_name.
6585
6586         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
6587         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
6588         (main): Call set_program_name.
6589
6590         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
6591         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
6592         (main): Call set_program_name.
6593
6594         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
6595         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
6596         (main): Call set_program_name.
6597
6598 2009-01-19  Eric Blake  <ebb9@byu.net>
6599
6600         test-unistd: test previous patch
6601         * tests/test-unistd.c: Test *_FILENO macros.
6602
6603         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
6604         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
6605         Guarantee a definition.
6606         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
6607         * modules/unistd-safer (Depends-on): Add dependency on unistd.
6608         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
6609         * lib/dup-safer.c (STDERR_FILENO): Likewise.
6610         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
6611         Likewise.
6612         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
6613         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
6614         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
6615         Likewise.
6616         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
6617         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
6618         (STDERR_FILENO): Likewise.
6619         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
6620         (STDERR_FILENO): Likewise.
6621         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
6622         (STDERR_FILENO): Likewise.
6623         Reported by Elbert Pol.
6624
6625 2009-01-19  Eric Blake  <ebb9@byu.net>
6626
6627         doc: mention more functions added in cygwin 1.7.0
6628         * doc/posix-functions/abort.texi (abort): Update wording related
6629         to cygwin.
6630         * doc/posix-functions/daylight.texi (daylight): Likewise.
6631         * doc/posix-functions/optarg.texi (optarg): Likewise.
6632         * doc/posix-functions/optarg.texi (opterr): Likewise.
6633         * doc/posix-functions/optarg.texi (optind): Likewise.
6634         * doc/posix-functions/optarg.texi (optopt): Likewise.
6635         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
6636         worked in 1.5.x, and was withdrawn in 1.7.
6637         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
6638         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
6639         cygwin versions.
6640         * doc/posix-functions/perror.texi (perror): Likewise.
6641         * doc/posix-functions/printf.texi (printf): Likewise.
6642         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
6643         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
6644         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6645         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6646         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6647         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
6648         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
6649         Likewise.
6650         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
6651         Likewise.
6652         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
6653         this function.
6654         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
6655         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
6656         Likewise.
6657         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
6658         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
6659         * doc/posix-functions/confstr.texi (confstr): Likewise.
6660         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
6661         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
6662         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
6663         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
6664         * doc/posix-functions/fputws.texi (fputws): Likewise.
6665         * doc/posix-functions/fwide.texi (fwide): Likewise.
6666         * doc/posix-functions/getwc.texi (getwc): Likewise.
6667         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
6668         * doc/posix-functions/putwc.texi (putwc): Likewise.
6669         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
6670         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
6671         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
6672         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
6673         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
6674         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
6675         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
6676         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
6677         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
6678         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
6679         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
6680
6681 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
6682
6683         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
6684         * lib/ioctl.c: Include <sys/ioctl.h>.
6685
6686 2009-01-19  Simon Josefsson  <simon@josefsson.org>
6687
6688         * modules/getdate-tests (Depends-on): Add progname.
6689         * tests/test-getdate.c: Use progname module, to avoid link errors
6690         on non-glibc systems.
6691
6692 2009-01-18  Simon Josefsson  <simon@josefsson.org>
6693
6694         * modules/filenamecat-tests (Depends-on): Add progname.
6695         * modules/fstrcmp-tests (Depends-on): Likewise.
6696
6697         * tests/test-filenamecat.c: Use progname module, to avoid link
6698         errors on non-glibc systems.
6699         * tests/test-fstrcmp.c: Likewise.
6700
6701 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
6702
6703         gettimeofday: avoid warning: nested extern declaration of 'localtime'
6704         * lib/gettimeofday.c: Move extern declaration out of function.
6705
6706 2009-01-18  Bruno Haible  <bruno@clisp.org>
6707
6708         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
6709         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
6710         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
6711
6712 2009-01-18  Bruno Haible  <bruno@clisp.org>
6713
6714         * lib/strftime.c (MEMPCPY): Remove unused macro.
6715         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
6716
6717 2009-01-18  Martin Lambers  <marlam@marlam.de>
6718
6719         New module 'link'.
6720         * lib/unistd.in.h (link): New declaration.
6721         * lib/link.c: New file.
6722         * m4/link.m4: New file.
6723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
6724         HAVE_LINK.
6725         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
6726         * modules/link: New file.
6727         * doc/posix-functions/link.texi: Mention the new module.
6728
6729 2009-01-18  Bruno Haible  <bruno@clisp.org>
6730
6731         * tests/test-avltree_list.c (main): Call set_program_name.
6732         * tests/test-avltree_oset.c (main): Likewise.
6733         * tests/test-obstack-printf.c: Include progname.h.
6734         (main): Call set_program_name.
6735         * tests/test-quotearg.c: Include progname.h.
6736         (main): Call set_program_name.
6737         * tests/test-xmemdup0.c: Include progname.h.
6738         (main): Call set_program_name.
6739
6740 2009-01-18  Bruno Haible  <bruno@clisp.org>
6741
6742         New module 'alphasort'.
6743         * lib/dirent.in.h (alphasort): New declaration.
6744         * lib/alphasort.c: New file, from glibc with modifications.
6745         * m4/alphasort.m4: New file.
6746         * modules/alphasort: New file.
6747         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
6748         HAVE_ALPHASORT.
6749         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
6750         HAVE_ALPHASORT.
6751         * doc/posix-functions/alphasort.texi: Mention the new module and the
6752         portability problems.
6753
6754 2009-01-18  Bruno Haible  <bruno@clisp.org>
6755
6756         New module 'scandir'.
6757         * lib/dirent.in.h (scandir): New declaration.
6758         * lib/scandir.c: New file, from glibc with modifications.
6759         * m4/scandir.m4: New file.
6760         * modules/scandir: New file.
6761         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
6762         HAVE_SCANDIR.
6763         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
6764         HAVE_SCANDIR.
6765         * doc/posix-functions/scandir.texi: Mention the new module and the
6766         portability problems.
6767
6768 2009-01-17  Bruno Haible  <bruno@clisp.org>
6769
6770         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
6771         Update documentation.
6772         (func_remove_suffix): Escape all dots in the suffix. Update
6773         documentation.
6774         (func_filter_filelist): Update documentation.
6775         Reported by Ralf Wildenhues.
6776
6777 2009-01-17  Bruno Haible  <bruno@clisp.org>
6778
6779         * modules/dprintf-posix-tests: New file.
6780         * tests/test-dprintf-posix.sh: New file.
6781         * tests/test-dprintf-posix.c: New file.
6782
6783         New modules 'dprintf', 'dprintf-posix'.
6784         * lib/stdio.in.h (dprintf): New declaration.
6785         * lib/dprintf.c: New file.
6786         * m4/dprintf.m4: New file.
6787         * m4/dprintf-posix.m4: New file.
6788         * modules/dprintf: New file.
6789         * modules/dprintf-posix: New file.
6790         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
6791         HAVE_DPRINTF, REPLACE_DPRINTF.
6792         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
6793         HAVE_DPRINTF, REPLACE_DPRINTF.
6794         * doc/posix-functions/dprintf.texi: Mention the new modules.
6795
6796 2009-01-17  Bruno Haible  <bruno@clisp.org>
6797
6798         * modules/vdprintf-posix-tests: New file.
6799         * tests/test-vdprintf-posix.sh: New file.
6800         * tests/test-vdprintf-posix.c: New file.
6801
6802         New modules 'vdprintf', 'vdprintf-posix'.
6803         * lib/stdio.in.h (vdprintf): New declaration.
6804         * lib/vdprintf.c: New file.
6805         * m4/vdprintf.m4: New file.
6806         * m4/vdprintf-posix.m4: New file.
6807         * modules/vdprintf: New file.
6808         * modules/vdprintf-posix: New file.
6809         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
6810         HAVE_VDPRINTF, REPLACE_VDPRINTF.
6811         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
6812         HAVE_VDPRINTF, REPLACE_VDPRINTF.
6813         * doc/posix-functions/vdprintf.texi: Mention the new modules.
6814
6815 2009-01-17  Bruno Haible  <bruno@clisp.org>
6816
6817         Fix replacement of fopen on mingw.
6818         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
6819         mingw.
6820
6821 2009-01-17  Bruno Haible  <bruno@clisp.org>
6822
6823         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
6824         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
6825
6826 2009-01-17  Bruno Haible  <bruno@clisp.org>
6827
6828         Avoid test-fflush2.sh failure on mingw.
6829         * tests/test-fflush2.c: Include binary-io.h.
6830         (main): Put standard input into binary mode.
6831         * modules/fflush-tests (Depends-on): Add binary-io.
6832
6833 2009-01-17  Bruno Haible  <bruno@clisp.org>
6834
6835         * lib/wchar.in.h: In another particular situation, include only the
6836         system's <wchar.h> file.
6837         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
6838         Reported by Albert Chin-A-Young <china@thewrittenword.com>
6839         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
6840
6841 2009-01-17  Bruno Haible  <bruno@clisp.org>
6842
6843         Support for stripping executables in --enable-relocatable.
6844         * build-aux/install-reloc: Expect one more argument, or an environment
6845         variable RELOC_STRIP_PROG. If set, strip the destination program and
6846         its wrapper.
6847         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
6848         RELOC_STRIP_PROG.
6849         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
6850         to set RELOCATABLE_STRIP.
6851         * NEWS: Mention the new Makefile requirement.
6852
6853 2009-01-17  Bruno Haible  <bruno@clisp.org>
6854
6855         * build-aux/install-reloc: Remove debugging information left over by
6856         C compiler on MacOS X.
6857
6858 2009-01-17  Bruno Haible  <bruno@clisp.org>
6859
6860         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
6861         * lib/progreloc.c (find_executable): Fix type of pointer passed to
6862         _NSGetExecutablePath.
6863
6864 2009-01-16  Jim Meyering  <meyering@redhat.com>
6865
6866         strerror: avoid warnings about discarding "const"
6867         * lib/strerror.c (rpl_strerror): Instead of returning a const
6868         string from each and every "case", use a variable, and add a single
6869         cast after the switch.
6870
6871 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
6872
6873         * lib/arpa_inet.in.h: Add extern "C" block for C++.
6874
6875 2009-01-16  Bruno Haible  <bruno@clisp.org>
6876
6877         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
6878         array initializer syntax that also works in C++ mode.
6879         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6880
6881 2009-01-16  Jim Meyering  <meyering@redhat.com>
6882
6883         poll: suppress a warning
6884         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
6885         to ignore "...unsigned expression < 0 is always false" warnings.
6886
6887 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
6888
6889         poll: remove declarations of unused variables
6890         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
6891         sockbuf and optlen.
6892
6893 2009-01-15  Bruno Haible  <bruno@clisp.org>
6894
6895         Make fflush-after-ungetc POSIX compliant on BSD systems.
6896         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
6897         (clear_ungetc_buffer): Implement also for other systems.
6898         (rpl_fflush): On glibc systems, invoke
6899         clear_ungetc_buffer_preserving_position. Otherwise, invoke
6900         clear_ungetc_buffer after fetching the stream's position, not before.
6901
6902 2009-01-15  Bruno Haible  <bruno@clisp.org>
6903
6904         Make fflush-after-ungetc POSIX compliant on glibc systems.
6905         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
6906         after ungetc.
6907         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
6908         (rpl_fflush): On glibc systems, simply call the system's fflush
6909         function after clearing the ungetc buffer.
6910         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
6911         Instead, lseek only to the end of file, then use the system's fseeko
6912         for the rest. On glibc systems, reset the EOF indicator bit.
6913
6914 2009-01-15  Jim Meyering  <meyering@redhat.com>
6915
6916         openmp.m4: revert quote-adding change, for portability to older autoconf
6917         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
6918         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
6919         Simon Josefsson noticed the problem when using autoconf-2.61.
6920
6921 2009-01-15  Bruno Haible  <bruno@clisp.org>
6922
6923         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
6924         * tests/test-fflush2.c (ASSERT): Always fail.
6925         (main): Add two tests for fflush() after ungetc(), taking into account
6926         the Austin Group's clarification.
6927         Suggested by Eric Blake.
6928
6929 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
6930
6931         mktime.m4: remove K&R-style function prototypes
6932         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
6933         for the Sun C++ compiler.
6934
6935 2009-01-14  Bruno Haible  <bruno@clisp.org>
6936
6937         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
6938         while including <wchar.h>.
6939         * lib/wchar.in.h: In two particular situations on HP-UX, include only
6940         the system's <wchar.h> file.
6941         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6942
6943 2009-01-14  Bruno Haible  <bruno@clisp.org>
6944
6945         * m4/csharp.m4: Don't mention gettext on the serial number line.
6946         * m4/csharpexec.m4: Likewise.
6947         * m4/eaccess.m4: Likewise.
6948         * m4/javaexec.m4: Likewise.
6949         * m4/sig_atomic_t.m4: Likewise.
6950         * m4/tmpdir.m4: Likewise.
6951         * m4/intldir.m4: Bump gettext version.
6952         * m4/lib-ld.m4: Likewise.
6953
6954 2009-01-14  Bruno Haible  <bruno@clisp.org>
6955
6956         * lib/progname.c (set_program_name): Add more comments.
6957         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
6958
6959 2009-01-14  Simon Josefsson  <simon@josefsson.org>
6960
6961         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
6962         were sys/stat.h does not define it.
6963
6964 2009-01-14  Jim Meyering  <meyering@redhat.com>
6965
6966         many *.m4 files: improve m4 quoting
6967         99% of this change was performed by running the following commands:
6968         git ls-files | grep '\.m4$' | xargs perl -pi \
6969           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
6970           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
6971           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
6972           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
6973         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
6974         The remainder were to add Copyright dates, increment serial numbers,
6975         undo some changes in comments, exclude m4/intl.m4, and add quotes
6976         around the "1" in ",1" where the unusual spacing prohibited the
6977         above regexps from doing the job.  For more details, see
6978         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
6979         * m4/acl.m4: Modified.
6980         * m4/afs.m4: Likewise.
6981         * m4/alloca.m4: Likewise.
6982         * m4/argp.m4: Likewise.
6983         * m4/argz.m4: Likewise.
6984         * m4/atexit.m4: Likewise.
6985         * m4/bison-i18n.m4: Likewise.
6986         * m4/bison.m4: Likewise.
6987         * m4/byteswap.m4: Likewise.
6988         * m4/c-stack.m4: Likewise.
6989         * m4/c-strtod.m4: Likewise.
6990         * m4/calloc.m4: Likewise.
6991         * m4/canonicalize-lgpl.m4: Likewise.
6992         * m4/chown.m4: Likewise.
6993         * m4/clock_time.m4: Likewise.
6994         * m4/codeset.m4: Likewise.
6995         * m4/copy-file.m4: Likewise.
6996         * m4/csharp.m4: Likewise.
6997         * m4/csharpcomp.m4: Likewise.
6998         * m4/csharpexec.m4: Likewise.
6999         * m4/d-ino.m4: Likewise.
7000         * m4/d-type.m4: Likewise.
7001         * m4/dirfd.m4: Likewise.
7002         * m4/double-slash-root.m4: Likewise.
7003         * m4/eaccess.m4: Likewise.
7004         * m4/eealloc.m4: Likewise.
7005         * m4/environ.m4: Likewise.
7006         * m4/errno_h.m4: Likewise.
7007         * m4/euidaccess.m4: Likewise.
7008         * m4/execute.m4: Likewise.
7009         * m4/fatal-signal.m4: Likewise.
7010         * m4/fchdir.m4: Likewise.
7011         * m4/fcntl_h.m4: Likewise.
7012         * m4/fileblocks.m4: Likewise.
7013         * m4/filenamecat.m4: Likewise.
7014         * m4/findprog.m4: Likewise.
7015         * m4/flexmember.m4: Likewise.
7016         * m4/fnmatch.m4: Likewise.
7017         * m4/fopen.m4: Likewise.
7018         * m4/fpending.m4: Likewise.
7019         * m4/fprintf-posix.m4: Likewise.
7020         * m4/free.m4: Likewise.
7021         * m4/frexp.m4: Likewise.
7022         * m4/frexpl.m4: Likewise.
7023         * m4/fsusage.m4: Likewise.
7024         * m4/ftruncate.m4: Likewise.
7025         * m4/gc-camellia.m4: Likewise.
7026         * m4/gc-random.m4: Likewise.
7027         * m4/gc.m4: Likewise.
7028         * m4/getaddrinfo.m4: Likewise.
7029         * m4/getcwd-abort-bug.m4: Likewise.
7030         * m4/getcwd-path-max.m4: Likewise.
7031         * m4/getdate.m4: Likewise.
7032         * m4/getdomainname.m4: Likewise.
7033         * m4/getgroups.m4: Likewise.
7034         * m4/gethostname.m4: Likewise.
7035         * m4/gethrxtime.m4: Likewise.
7036         * m4/getline.m4: Likewise.
7037         * m4/getloadavg.m4: Likewise.
7038         * m4/getndelim2.m4: Likewise.
7039         * m4/getpass.m4: Likewise.
7040         * m4/gettext.m4: Likewise.
7041         * m4/gettime.m4: Likewise.
7042         * m4/gettimeofday.m4: Likewise.
7043         * m4/gnulib-common.m4: Likewise.
7044         * m4/group-member.m4: Likewise.
7045         * m4/host-os.m4: Likewise.
7046         * m4/iconv.m4: Likewise.
7047         * m4/iconv_open.m4: Likewise.
7048         * m4/inet_ntop.m4: Likewise.
7049         * m4/inet_pton.m4: Likewise.
7050         * m4/inline.m4: Likewise.
7051         * m4/intldir.m4: Likewise.
7052         * m4/intlmacosx.m4: Likewise.
7053         * m4/intmax.m4: Likewise.
7054         * m4/intmax_t.m4: Likewise.
7055         * m4/inttypes.m4: Likewise.
7056         * m4/inttypes_h.m4: Likewise.
7057         * m4/inttypes-pri.m4: Likewise.
7058         * m4/isapipe.m4: Likewise.
7059         * m4/isnand.m4: Likewise.
7060         * m4/isnanf.m4: Likewise.
7061         * m4/isnanl.m4: Likewise.
7062         * m4/javacomp.m4: Likewise.
7063         * m4/javaexec.m4: Likewise.
7064         * m4/jm-winsz1.m4: Likewise.
7065         * m4/jm-winsz2.m4: Likewise.
7066         * m4/lchown.m4: Likewise.
7067         * m4/lcmessage.m4: Likewise.
7068         * m4/ldexpl.m4: Likewise.
7069         * m4/lib-ld.m4: Likewise.
7070         * m4/lib-link.m4: Likewise.
7071         * m4/libsigsegv.m4: Likewise.
7072         * m4/link-follow.m4: Likewise.
7073         * m4/localcharset.m4: Likewise.
7074         * m4/locale-fr.m4: Likewise.
7075         * m4/locale-ja.m4: Likewise.
7076         * m4/locale-tr.m4: Likewise.
7077         * m4/locale-zh.m4: Likewise.
7078         * m4/lock.m4: Likewise.
7079         * m4/longlong.m4: Likewise.
7080         * m4/ls-mntd-fs.m4: Likewise.
7081         * m4/lstat.m4: Likewise.
7082         * m4/malloc.m4: Likewise.
7083         * m4/mathl.m4: Likewise.
7084         * m4/mbrtowc.m4: Likewise.
7085         * m4/mbstate_t.m4: Likewise.
7086         * m4/mbswidth.m4: Likewise.
7087         * m4/memchr.m4: Likewise.
7088         * m4/memcmp.m4: Likewise.
7089         * m4/memcpy.m4: Likewise.
7090         * m4/memmem.m4: Likewise.
7091         * m4/memmove.m4: Likewise.
7092         * m4/mempcpy.m4: Likewise.
7093         * m4/memrchr.m4: Likewise.
7094         * m4/memset.m4: Likewise.
7095         * m4/minmax.m4: Likewise.
7096         * m4/mkdir-slash.m4: Likewise.
7097         * m4/mkdtemp.m4: Likewise.
7098         * m4/mktime.m4: Likewise.
7099         * m4/mmap-anon.m4: Likewise.
7100         * m4/mountlist.m4: Likewise.
7101         * m4/nanosleep.m4: Likewise.
7102         * m4/nls.m4: Likewise.
7103         * m4/nocrash.m4: Likewise.
7104         * m4/open.m4: Likewise.
7105         * m4/openat.m4: Likewise.
7106         * m4/openmp.m4: Likewise.
7107         * m4/pathmax.m4: Likewise.
7108         * m4/perl.m4: Likewise.
7109         * m4/physmem.m4: Likewise.
7110         * m4/pipe.m4: Likewise.
7111         * m4/po.m4: Likewise.
7112         * m4/poll.m4: Likewise.
7113         * m4/posixtm.m4: Likewise.
7114         * m4/posixver.m4: Likewise.
7115         * m4/printf-frexp.m4: Likewise.
7116         * m4/printf-frexpl.m4: Likewise.
7117         * m4/printf-posix.m4: Likewise.
7118         * m4/printf-posix-rpl.m4: Likewise.
7119         * m4/printf.m4: Likewise.
7120         * m4/progtest.m4: Likewise.
7121         * m4/putenv.m4: Likewise.
7122         * m4/readline.m4: Likewise.
7123         * m4/readlink.m4: Likewise.
7124         * m4/readutmp.m4: Likewise.
7125         * m4/realloc.m4: Likewise.
7126         * m4/regex.m4: Likewise.
7127         * m4/relocatable.m4: Likewise.
7128         * m4/relocatable-lib.m4: Likewise.
7129         * m4/rename-dest-slash.m4: Likewise.
7130         * m4/rename.m4: Likewise.
7131         * m4/rmdir-errno.m4: Likewise.
7132         * m4/rmdir.m4: Likewise.
7133         * m4/roundf.m4: Likewise.
7134         * m4/roundl.m4: Likewise.
7135         * m4/rpmatch.m4: Likewise.
7136         * m4/save-cwd.m4: Likewise.
7137         * m4/selinux-selinux-h.m4: Likewise.
7138         * m4/setenv.m4: Likewise.
7139         * m4/settime.m4: Likewise.
7140         * m4/sig2str.m4: Likewise.
7141         * m4/sig_atomic_t.m4: Likewise.
7142         * m4/signalblocking.m4: Likewise.
7143         * m4/signbit.m4: Likewise.
7144         * m4/sigpipe.m4: Likewise.
7145         * m4/sockets.m4: Likewise.
7146         * m4/sockpfaf.m4: Likewise.
7147         * m4/st_dm_mode.m4: Likewise.
7148         * m4/stat-time.m4: Likewise.
7149         * m4/stdbool.m4: Likewise.
7150         * m4/stdint.m4: Likewise.
7151         * m4/stdint_h.m4: Likewise.
7152         * m4/stpcpy.m4: Likewise.
7153         * m4/stpncpy.m4: Likewise.
7154         * m4/strcase.m4: Likewise.
7155         * m4/strchrnul.m4: Likewise.
7156         * m4/strcspn.m4: Likewise.
7157         * m4/strdup.m4: Likewise.
7158         * m4/strftime.m4: Likewise.
7159         * m4/strndup.m4: Likewise.
7160         * m4/strnlen.m4: Likewise.
7161         * m4/strpbrk.m4: Likewise.
7162         * m4/strptime.m4: Likewise.
7163         * m4/strsep.m4: Likewise.
7164         * m4/strtod.m4: Likewise.
7165         * m4/strtoimax.m4: Likewise.
7166         * m4/strtok_r.m4: Likewise.
7167         * m4/strtol.m4: Likewise.
7168         * m4/strtoll.m4: Likewise.
7169         * m4/strtoul.m4: Likewise.
7170         * m4/strtoull.m4: Likewise.
7171         * m4/strtoumax.m4: Likewise.
7172         * m4/strverscmp.m4: Likewise.
7173         * m4/threadlib.m4: Likewise.
7174         * m4/timegm.m4: Likewise.
7175         * m4/tm_gmtoff.m4: Likewise.
7176         * m4/tmpdir.m4: Likewise.
7177         * m4/tmpfile.m4: Likewise.
7178         * m4/tzset.m4: Likewise.
7179         * m4/uintmax_t.m4: Likewise.
7180         * m4/unlinkdir.m4: Likewise.
7181         * m4/unlocked-io.m4: Likewise.
7182         * m4/uptime.m4: Likewise.
7183         * m4/userspec.m4: Likewise.
7184         * m4/utimbuf.m4: Likewise.
7185         * m4/utime.m4: Likewise.
7186         * m4/utimes-null.m4: Likewise.
7187         * m4/utimes.m4: Likewise.
7188         * m4/vararrays.m4: Likewise.
7189         * m4/vasnprintf.m4: Likewise.
7190         * m4/vfprintf-posix.m4: Likewise.
7191         * m4/vprintf-posix.m4: Likewise.
7192         * m4/wait-process.m4: Likewise.
7193         * m4/wchar_t.m4: Likewise.
7194         * m4/wint_t.m4: Likewise.
7195         * m4/write-any-file.m4: Likewise.
7196         * m4/yield.m4: Likewise.
7197
7198 2009-01-13  Bruno Haible  <bruno@clisp.org>
7199
7200         Avoid test-copy-file.sh failures when ACL support insufficient.
7201         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
7202         TESTS_ENVIRONMENT.
7203         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
7204         Reported by Jim Meyering.
7205
7206 2009-01-13  Bruno Haible  <bruno@clisp.org>
7207
7208         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
7209         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
7210         * modules/unistdio/u8-printf-parse (Files): Likewise.
7211         * modules/unistdio/u32-printf-parse (Files): Likewise.
7212         * modules/unistdio/ulc-printf-parse (Files): Likewise.
7213
7214 2009-01-13  Simon Josefsson  <simon@josefsson.org>
7215
7216         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
7217         and m4/inttypes_h.m4 too.
7218
7219 2009-01-12  Eric Blake  <ebb9@byu.net>
7220
7221         tests: IRIX 6.2 cc can't compile -0.0 into .data
7222         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
7223         rather than at compile-time.
7224         * tests/test-floorl.c (minus_zero): Likewise.
7225         * tests/test-frexpl.c (minus_zero): Likewise.
7226         * tests/test-isnan.c (minus_zerol): Likewise.
7227         * tests/test-isnanl.h (minus_zero): Likewise.
7228         * tests/test-ldexpl.c (minus_zero): Likewise.
7229         * tests/test-roundl.c (minus_zero): Likewise.
7230         * tests/test-signbit.c (minus_zerol): Likewise.
7231         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
7232         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
7233         * tests/test-truncl.c (minus_zero): Likewise.
7234         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
7235         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
7236         Reported by Tom G. Christensen and Nelson H. F. Beebe.
7237
7238 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
7239
7240         regex: fix glibc bug 9697
7241         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
7242         handling.
7243
7244 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
7245
7246         regex: fix glibc bug 697
7247         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
7248         being NULL also if there are no backreferences.
7249
7250 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
7251
7252         regex: merge glibc changes
7253         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
7254         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
7255         re_string_skip_chars, re_string_reconstruct): Likewise.
7256         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
7257
7258 2009-01-07  Jim Meyering  <meyering@redhat.com>
7259
7260         poll: filter through cppi
7261         * lib/poll.c: Indent cpp directives to reflect nesting.
7262
7263 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
7264
7265         poll: don't return uninitialized
7266         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
7267
7268 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
7269
7270         avoid compile failure on AIX 6.1
7271         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
7272         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
7273
7274 2009-01-04  Jim Meyering  <meyering@redhat.com>
7275
7276         remove duplicate inclusion of <stdio.h>
7277         * tests/test-fprintf-posix.c: Likewise.
7278         * tests/test-printf-posix.c: Likewise.
7279         * tests/test-snprintf-posix.c: Likewise.
7280         * tests/test-sprintf-posix.c: Likewise.
7281         * tests/test-vasprintf-posix.c: Likewise.
7282         * tests/test-vfprintf-posix.c: Likewise.
7283         * tests/test-vprintf-posix.c: Likewise.
7284         * tests/test-vsnprintf-posix.c: Likewise.
7285         * tests/test-vsprintf-posix.c: Likewise.
7286
7287 2009-01-03  Jim Meyering  <meyering@redhat.com>
7288
7289         gnulib-tool: fix sed-based filtering
7290         * gnulib-tool (func_filter_filelist): Remove extra backslash
7291         in sed_fff_filter definition.
7292
7293 2009-01-02  Jim Meyering  <meyering@redhat.com>
7294
7295         strftime: avoid compilation failure on Solaris 2.6
7296         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
7297         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
7298         Don't #define mbrlen or mbsinit, since now they're guaranteed to
7299         be available.  Reported by Tom G. Christensen.  Details in
7300         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
7301
7302 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7303             Bruno Haible  <bruno@clisp.org>
7304
7305         Speed up gnulib-tool by doing more string processing through shell
7306         built-ins.
7307         * gnulib-tool (fast_func_append): New variable.
7308         (func_remove_prefix, func_remove_suffix): New functions.
7309         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
7310         (func_filter_filelist): New function.
7311         (func_get_dependencies): Use func_remove_suffix instead of sed.
7312         (func_get_automake_snippet): Use func_filter_filelist instead of a
7313         subshell and sed invocation.
7314
7315 2009-01-01  Bruno Haible  <bruno@clisp.org>
7316
7317         Fix a security bug.
7318         * gnulib-tool (func_import, import, update): Don't allow the characters
7319         '"', '$', '`', '\' in macro arguments that become part of commands that
7320         are evaluated.
7321
7322 2009-01-01  Bruno Haible  <bruno@clisp.org>
7323
7324         * gnulib-tool (func_reset_sigpipe): Add more comments.
7325
7326 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7327
7328         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
7329         func_emit_tests_Makefile_am, func_import): Abort loops early if we
7330         already know the answer.
7331
7332 2009-01-01  Jim Meyering  <meyering@redhat.com>
7333
7334         * lib/version-etc.c (version_etc_va): Update copyright year.
7335
7336 2008-12-30  Bruno Haible  <bruno@clisp.org>
7337
7338         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
7339         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
7340         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
7341
7342 2008-12-29  Eric Blake  <ebb9@byu.net>
7343
7344         multiarch: avoid autoconf AC_REQUIRE bug
7345         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
7346         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
7347         2.63 and older.
7348         Reported by Bruno Haible, and analyzed in
7349         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
7350
7351 2008-12-29  Bruno Haible  <bruno@clisp.org>
7352
7353         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
7354         files in subdirectories correctly.
7355         Reported by Ralf Wildenhues.
7356
7357 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7358
7359         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
7360         rather than 'join FILE -', for Solaris join.
7361
7362 2008-12-29  Bruno Haible  <bruno@clisp.org>
7363
7364         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
7365         quoting.
7366         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
7367         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
7368         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
7369         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
7370         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
7371         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
7372         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
7373         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
7374         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
7375         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
7376         * m4/nls.m4 (AM_NLS): Likewise.
7377         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
7378         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
7379         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
7380         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
7381         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
7382         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
7383         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
7384         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
7385         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
7386         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
7387         * m4/xsize.m4 (gl_XSIZE): Likewise.
7388         Suggested by Jim Meyering.
7389
7390 2008-11-17  Bruce Korb  <bkorb@gnu.org>
7391
7392         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
7393         * lib/parse-duration.c: use a switch instead of cascading if's.
7394
7395 2008-12-29  Eric Blake  <ebb9@byu.net>
7396
7397         wchar.h: supply WEOF on Irix 5.3
7398         * lib/wchar.in.h (wint_t): Also supply WEOF.
7399         * lib/wctype.in.h (wint_t): Likewise.
7400         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
7401         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
7402         Reported by Tom G. Christensen.
7403
7404 2008-12-26  Bruno Haible  <bruno@clisp.org>
7405
7406         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
7407         i486, i586, i686.
7408
7409 2008-12-26  Bruno Haible  <bruno@clisp.org>
7410
7411         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
7412
7413 2008-12-26  Bruno Haible  <bruno@clisp.org>
7414
7415         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
7416         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
7417         not __STDC_CONSTANT_MACROS.
7418         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
7419
7420 2008-12-25  Bruno Haible  <bruno@clisp.org>
7421
7422         Add support for universal builds to vasnprintf.
7423         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
7424         universal builds, guess no.
7425         * modules/vasnprintf-posix (Depends-on): Add multiarch.
7426         * modules/vasprintf-posix (Depends-on): Likewise.
7427         * modules/fprintf-posix (Depends-on): Likewise.
7428         * modules/vfprintf-posix (Depends-on): Likewise.
7429         * modules/snprintf-posix (Depends-on): Likewise.
7430         * modules/vsnprintf-posix (Depends-on): Likewise.
7431         * modules/sprintf-posix (Depends-on): Likewise.
7432         * modules/vsprintf-posix (Depends-on): Likewise.
7433         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7434         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7435         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7436         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7437         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7438         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7439         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7440
7441         Add support for universal builds to <inttypes.h>.
7442         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
7443         _SCNu64_PREFIX): In Apple
7444         universal builds, define directly, using _LP64.
7445         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
7446         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
7447         * modules/inttypes (Depends-on): Add multiarch.
7448         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
7449
7450         Add support for universal builds to <stdint.h>.
7451         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
7452         universal builds, define directly, using _LP64.
7453         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
7454         Apple universal builds, don't test for the size and suffix of ptrdiff_t
7455         and size_t.
7456         * modules/stdint (Depends-on): Add multiarch.
7457         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
7458
7459         New module 'multiarch'.
7460         * modules/multiarch: New file.
7461         * m4/multiarch.m4: New file.
7462
7463 2008-12-25  Bruno Haible  <bruno@clisp.org>
7464
7465         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
7466
7467 2008-12-25  Bruno Haible  <bruno@clisp.org>
7468
7469         * modules/btowc (License): Relicense under LGPLv2+.
7470         * modules/mbsinit (License): Likewise.
7471         * modules/mbrtowc (License): Likewise.
7472         * modules/wcrtomb (License): Likewise.
7473         * modules/streq (License): Likewise.
7474         Reported by David Lutterkort <lutter@redhat.com>.
7475
7476 2008-12-23  Bruno Haible  <bruno@clisp.org>
7477
7478         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
7479
7480 2008-12-23  Bruno Haible  <bruno@clisp.org>
7481
7482         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
7483         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
7484         GETADDRINFO_LIB, not in LIBS.
7485         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
7486         * modules/canon-host (Link): Likewise.
7487         * NEWS: Mention the change.
7488         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
7489         GETADDRINFO_LIB.
7490
7491 2008-12-22  Bruno Haible  <bruno@clisp.org>
7492
7493         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
7494         * doc/posix-functions/iswalpha_l.texi: Likewise.
7495         * doc/posix-functions/iswblank_l.texi: Likewise.
7496         * doc/posix-functions/iswcntrl_l.texi: Likewise.
7497         * doc/posix-functions/iswctype_l.texi: Likewise.
7498         * doc/posix-functions/iswdigit_l.texi: Likewise.
7499         * doc/posix-functions/iswgraph_l.texi: Likewise.
7500         * doc/posix-functions/iswlower_l.texi: Likewise.
7501         * doc/posix-functions/iswprint_l.texi: Likewise.
7502         * doc/posix-functions/iswpunct_l.texi: Likewise.
7503         * doc/posix-functions/iswspace_l.texi: Likewise.
7504         * doc/posix-functions/iswupper_l.texi: Likewise.
7505         * doc/posix-functions/iswxdigit_l.texi: Likewise.
7506         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
7507         * doc/posix-functions/open_wmemstream.texi: Likewise.
7508         * doc/posix-functions/swscanf.texi: Likewise.
7509         * doc/posix-functions/towctrans_l.texi: Likewise.
7510         * doc/posix-functions/towlower.texi: Likewise.
7511         * doc/posix-functions/towlower_l.texi: Likewise.
7512         * doc/posix-functions/towupper.texi: Likewise.
7513         * doc/posix-functions/towupper_l.texi: Likewise.
7514         * doc/posix-functions/vfwprintf.texi: Likewise.
7515         * doc/posix-functions/vfwscanf.texi: Likewise.
7516         * doc/posix-functions/vswscanf.texi: Likewise.
7517         * doc/posix-functions/vwprintf.texi: Likewise.
7518         * doc/posix-functions/vwscanf.texi: Likewise.
7519         * doc/posix-functions/wcpcpy.texi: Likewise.
7520         * doc/posix-functions/wcpncpy.texi: Likewise.
7521         * doc/posix-functions/wcscasecmp.texi: Likewise.
7522         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
7523         * doc/posix-functions/wcscoll_l.texi: Likewise.
7524         * doc/posix-functions/wcsdup.texi: Likewise.
7525         * doc/posix-functions/wcsncasecmp.texi: Likewise.
7526         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
7527         * doc/posix-functions/wcsnlen.texi: Likewise.
7528         * doc/posix-functions/wcsnrtombs.texi: Likewise.
7529         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
7530         * doc/posix-functions/wctrans_l.texi: Likewise.
7531         * doc/posix-functions/wctype_l.texi: Likewise.
7532         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
7533         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
7534         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
7535         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
7536         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
7537         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
7538         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
7539         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
7540         * doc/glibc-functions/wcschrnul.texi: Likewise.
7541         * doc/glibc-functions/wcsftime_l.texi: Likewise.
7542         * doc/glibc-functions/wcstod_l.texi: Likewise.
7543         * doc/glibc-functions/wcstof_l.texi: Likewise.
7544         * doc/glibc-functions/wcstol_l.texi: Likewise.
7545         * doc/glibc-functions/wcstold_l.texi: Likewise.
7546         * doc/glibc-functions/wcstoll_l.texi: Likewise.
7547         * doc/glibc-functions/wcstoq.texi: Likewise.
7548         * doc/glibc-functions/wcstoul_l.texi: Likewise.
7549         * doc/glibc-functions/wcstoull_l.texi: Likewise.
7550         * doc/glibc-functions/wcstouq.texi: Likewise.
7551         * doc/glibc-functions/wmempcpy.texi: Likewise.
7552
7553 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
7554             Eric Blake  <ebb9@byu.net>
7555             Paolo Bonzini  <bonzini@gnu.org>
7556             Bruno Haible  <bruno@clisp.org>
7557
7558         Make c-stack work on Haiku.
7559         * lib/c-stack.c (SA_ONSTACK): Define fallback.
7560         (c_stack_action): Use SA_ONSTACK flag.
7561
7562 2008-12-22  Bruno Haible  <bruno@clisp.org>
7563
7564         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
7565
7566 2008-12-22  Bruno Haible  <bruno@clisp.org>
7567
7568         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
7569         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
7570         being overridden.
7571         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
7572         New macros.
7573         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
7574         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
7575         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
7576         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
7577
7578 2008-12-22  Bruno Haible  <bruno@clisp.org>
7579
7580         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
7581         from test code.
7582
7583 2008-12-22  Eric Blake  <ebb9@byu.net>
7584
7585         Avoid gcc warnings on cygwin.
7586         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
7587         Avoid unused variable.
7588         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
7589         Likewise.
7590
7591 2008-12-22  Bruno Haible  <bruno@clisp.org>
7592
7593         Remove HAVE_MBRTOWC conditionals.
7594         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
7595         (mbscasecmp): Assume mbrtowc function.
7596         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
7597         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
7598         * lib/mbschr.c: Include mbuiter.h unconditionally.
7599         (mbschr): Assume mbrtowc function.
7600         * lib/mbscspn.c: Include mbuiter.h unconditionally.
7601         (mbscspn): Assume mbrtowc function.
7602         * lib/mbslen.c: Include mbuiter.h unconditionally.
7603         (mbslen): Assume mbrtowc function.
7604         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
7605         (mbsncasecmp): Assume mbrtowc function.
7606         * lib/mbsnlen.c: Include mbiter.h unconditionally.
7607         (mbsnlen): Assume mbrtowc function.
7608         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
7609         (mbspbrk): Assume mbrtowc function.
7610         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
7611         (mbspcasecmp): Assume mbrtowc function.
7612         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
7613         (mbsrchr): Assume mbrtowc function.
7614         * lib/mbssep.c: Include mbuiter.h unconditionally.
7615         (mbssep): Assume mbrtowc function.
7616         * lib/mbsspn.c: Include mbuiter.h unconditionally.
7617         (mbsspn): Assume mbrtowc function.
7618         * lib/mbsstr.c: Include mbuiter.h unconditionally.
7619         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
7620         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
7621         (mbstok_r): Assume mbrtowc function.
7622         * lib/propername.c: Include mbuiter.h unconditionally.
7623         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
7624         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
7625         (trim2): Assume mbrtowc function.
7626         * lib/mbswidth.c (mbsinit): Remove fallback definition.
7627         (mbsnwidth): Assume mbrtowc function.
7628         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
7629         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
7630         fallback definitions.
7631         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
7632
7633 2008-12-22  Bruno Haible  <bruno@clisp.org>
7634
7635         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
7636
7637 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
7638
7639         * modules/regex: Request emulations for the mb*/wc* functions we need.
7640         * m4/regex.m4: Don't look for those functions here.
7641         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
7642
7643 2008-12-22  Bruno Haible  <bruno@clisp.org>
7644
7645         * modules/fnmatch (Depends-on): Remove duplicated dependency.
7646
7647 2008-12-21  Bruno Haible  <bruno@clisp.org>
7648
7649         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
7650         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
7651         (Include): Remove conditionalization.
7652         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
7653         (Include): Remove conditionalization.
7654         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
7655         (Include): Remove conditionalization.
7656         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
7657         * m4/mbfile.m4 (gl_MBFILE): Likewise.
7658         * NEWS: Mention the change.
7659         Reported by Alan Hourihane <alanh@fairlite.co.uk>
7660         via Sergey Poznyakoff <gray@gnu.org.ua>.
7661
7662 2008-12-21  Bruno Haible  <bruno@clisp.org>
7663
7664         * MODULES.html.sh (Extended multibyte and wide character utilities
7665         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
7666         wcrtomb, wcsrtombs.
7667         (Support for systems lacking POSIX:2008): Add accept, bind, close,
7668         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
7669         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
7670         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
7671
7672 2008-12-21  Bruno Haible  <bruno@clisp.org>
7673
7674         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
7675
7676 2008-12-21  Bruno Haible  <bruno@clisp.org>
7677
7678         * modules/wcsnrtombs-tests: New file.
7679         * tests/test-wcsnrtombs1.sh: New file.
7680         * tests/test-wcsnrtombs2.sh: New file.
7681         * tests/test-wcsnrtombs3.sh: New file.
7682         * tests/test-wcsnrtombs4.sh: New file.
7683         * tests/test-wcsnrtombs.c: New file.
7684
7685         New module 'wcsnrtombs'.
7686         * lib/wchar.in.h (wcsnrtombs): New declaration.
7687         * lib/wcsnrtombs.c: New file.
7688         * lib/wcsrtombs-state.c: New file.
7689         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
7690         (internal_state): Remove variable.
7691         * m4/wcsnrtombs.m4: New file.
7692         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
7693         compilation units.
7694         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
7695         HAVE_WCSNRTOMBS.
7696         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
7697         HAVE_WCSNRTOMBS.
7698         * modules/wcsnrtombs: New file.
7699         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
7700         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
7701
7702 2008-12-21  Bruno Haible  <bruno@clisp.org>
7703
7704         * modules/wcsrtombs-tests: New file.
7705         * tests/test-wcsrtombs1.sh: New file.
7706         * tests/test-wcsrtombs2.sh: New file.
7707         * tests/test-wcsrtombs3.sh: New file.
7708         * tests/test-wcsrtombs4.sh: New file.
7709         * tests/test-wcsrtombs.c: New file.
7710
7711         New module 'wcsrtombs'.
7712         * lib/wchar.in.h (wcsrtombs): New declaration.
7713         * lib/wcsrtombs.c: New file.
7714         * m4/wcsrtombs.m4: New file.
7715         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
7716         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
7717         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
7718         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
7719         * modules/wcsrtombs: New file.
7720         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
7721         bugs.
7722
7723 2008-12-21  Bruno Haible  <bruno@clisp.org>
7724
7725         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
7726         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
7727         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
7728         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
7729         if not correct.
7730         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
7731         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
7732         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
7733         m4/locale-zh.m4, m4/codeset.m4.
7734         * doc/posix-functions/wcrtomb.texi: Document the bug.
7735
7736 2008-12-21  Bruno Haible  <bruno@clisp.org>
7737
7738         Work around a btowc() bug on IRIX 6.5.
7739         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
7740         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
7741         REPLACE_WTOBC if not.
7742         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
7743         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
7744         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
7745
7746 2008-12-21  Bruno Haible  <bruno@clisp.org>
7747
7748         * modules/wcrtomb-tests: New file.
7749         * tests/test-wcrtomb.sh: New file.
7750         * tests/test-wcrtomb.c: New file.
7751
7752         New module 'wcrtomb'.
7753         * lib/wchar.in.h (wcrtomb): New declaration.
7754         * lib/wcrtomb.c: New file.
7755         * m4/wcrtomb.m4: New file.
7756         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
7757         HAVE_WCRTOMB.
7758         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
7759         HAVE_WCRTOMB.
7760         * modules/wcrtomb: New file.
7761         * doc/posix-functions/wcrtomb.texi: Mention the new module.
7762
7763 2008-12-21  Bruno Haible  <bruno@clisp.org>
7764
7765         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
7766         * modules/mbsrtowcs (Files): Likewise.
7767         * modules/wctob (Files): Likewise.
7768         * modules/c-strcase-tests (Files): Likewise.
7769         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
7770         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
7771         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
7772         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
7773         * modules/vasnprintf-posix-tests (Files): Likewise.
7774
7775 2008-12-21  William Pursell  <bill.pursell@gmail.com>
7776
7777         gitlog-to-changelog: pass all command-line arguments to git-log
7778         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
7779         it is sometimes convenient to filter the commits in various ways.
7780         gitlog-to-changelog only allows --since to specify a start date,
7781         but git-log itself supports many other filtering mechanisms.
7782         At the moment, I want to filter by branch name.  Rather than
7783         adding a --branch option to gitlog-to-changelog, it seems more
7784         flexible to simply pass all options directly to git-log and let
7785         git do the work.  Notice that this effectively makes --since a
7786         redundant option for gitlog-to-changelog, but removing it would
7787         require current usage to change since calls would then require
7788         an additional '--'.
7789
7790 2008-12-21  Bruno Haible  <bruno@clisp.org>
7791
7792         * modules/mbsnrtowcs-tests: New file.
7793         * tests/test-mbsnrtowcs1.sh: New file.
7794         * tests/test-mbsnrtowcs2.sh: New file.
7795         * tests/test-mbsnrtowcs3.sh: New file.
7796         * tests/test-mbsnrtowcs4.sh: New file.
7797         * tests/test-mbsnrtowcs.c: New file.
7798
7799         New module 'mbsnrtowcs'.
7800         * lib/wchar.in.h (mbsnrtowcs): New declaration.
7801         * lib/mbsnrtowcs.c: New file.
7802         * lib/mbsrtowcs-state.c: New file.
7803         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
7804         (internal_state): Remove variable.
7805         * m4/mbsnrtowcs.m4: New file.
7806         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
7807         compilation units.
7808         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
7809         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
7810         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
7811         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
7812         * modules/mbsnrtowcs: New file.
7813         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
7814         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
7815         portability problem.
7816
7817 2008-12-21  Bruno Haible  <bruno@clisp.org>
7818
7819         Work around mbsrtowcs bug.
7820         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
7821         (gl_FUNC_MBSRTOWCS): Invoke it.
7822         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
7823         m4/locale-zh.m4.
7824         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
7825
7826 2008-12-21  Bruno Haible  <bruno@clisp.org>
7827
7828         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
7829
7830 2008-12-21  Bruno Haible  <bruno@clisp.org>
7831
7832         Update doc for AIX.
7833         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
7834         16-bit wchar_t type.
7835         * doc/posix-functions/btowc.texi: Likewise.
7836         * doc/posix-functions/fgetwc.texi: Likewise.
7837         * doc/posix-functions/fgetws.texi: Likewise.
7838         * doc/posix-functions/fputwc.texi: Likewise.
7839         * doc/posix-functions/fputws.texi: Likewise.
7840         * doc/posix-functions/fwide.texi: Likewise.
7841         * doc/posix-functions/fwprintf.texi: Likewise.
7842         * doc/posix-functions/fwscanf.texi: Likewise.
7843         * doc/posix-functions/getwchar.texi: Likewise.
7844         * doc/posix-functions/getwc.texi: Likewise.
7845         * doc/posix-functions/iswalnum.texi: Likewise.
7846         * doc/posix-functions/iswalpha.texi: Likewise.
7847         * doc/posix-functions/iswblank.texi: Likewise.
7848         * doc/posix-functions/iswcntrl.texi: Likewise.
7849         * doc/posix-functions/iswctype.texi: Likewise.
7850         * doc/posix-functions/iswdigit.texi: Likewise.
7851         * doc/posix-functions/iswgraph.texi: Likewise.
7852         * doc/posix-functions/iswlower.texi: Likewise.
7853         * doc/posix-functions/iswprint.texi: Likewise.
7854         * doc/posix-functions/iswpunct.texi: Likewise.
7855         * doc/posix-functions/iswspace.texi: Likewise.
7856         * doc/posix-functions/iswupper.texi: Likewise.
7857         * doc/posix-functions/iswxdigit.texi: Likewise.
7858         * doc/posix-functions/mbrtowc.texi: Likewise.
7859         * doc/posix-functions/mbsrtowcs.texi: Likewise.
7860         * doc/posix-functions/mbstowcs.texi: Likewise.
7861         * doc/posix-functions/mbtowc.texi: Likewise.
7862         * doc/posix-functions/putwchar.texi: Likewise.
7863         * doc/posix-functions/putwc.texi: Likewise.
7864         * doc/posix-functions/swprintf.texi: Likewise.
7865         * doc/posix-functions/tolower.texi: Likewise.
7866         * doc/posix-functions/toupper.texi: Likewise.
7867         * doc/posix-functions/towctrans.texi: Likewise.
7868         * doc/posix-functions/ungetwc.texi: Likewise.
7869         * doc/posix-functions/vswprintf.texi: Likewise.
7870         * doc/posix-functions/wcrtomb.texi: Likewise.
7871         * doc/posix-functions/wcscat.texi: Likewise.
7872         * doc/posix-functions/wcschr.texi: Likewise.
7873         * doc/posix-functions/wcscmp.texi: Likewise.
7874         * doc/posix-functions/wcscoll.texi: Likewise.
7875         * doc/posix-functions/wcscpy.texi: Likewise.
7876         * doc/posix-functions/wcscspn.texi: Likewise.
7877         * doc/posix-functions/wcsftime.texi: Likewise.
7878         * doc/posix-functions/wcslen.texi: Likewise.
7879         * doc/posix-functions/wcsncat.texi: Likewise.
7880         * doc/posix-functions/wcsncmp.texi: Likewise.
7881         * doc/posix-functions/wcsncpy.texi: Likewise.
7882         * doc/posix-functions/wcspbrk.texi: Likewise.
7883         * doc/posix-functions/wcsrchr.texi: Likewise.
7884         * doc/posix-functions/wcsrtombs.texi: Likewise.
7885         * doc/posix-functions/wcsspn.texi: Likewise.
7886         * doc/posix-functions/wcsstr.texi: Likewise.
7887         * doc/posix-functions/wcstod.texi: Likewise.
7888         * doc/posix-functions/wcstof.texi: Likewise.
7889         * doc/posix-functions/wcstoimax.texi: Likewise.
7890         * doc/posix-functions/wcstok.texi: Likewise.
7891         * doc/posix-functions/wcstold.texi: Likewise.
7892         * doc/posix-functions/wcstoll.texi: Likewise.
7893         * doc/posix-functions/wcstol.texi: Likewise.
7894         * doc/posix-functions/wcstombs.texi: Likewise.
7895         * doc/posix-functions/wcstoull.texi: Likewise.
7896         * doc/posix-functions/wcstoul.texi: Likewise.
7897         * doc/posix-functions/wcstoumax.texi: Likewise.
7898         * doc/posix-functions/wcswidth.texi: Likewise.
7899         * doc/posix-functions/wcsxfrm.texi: Likewise.
7900         * doc/posix-functions/wctob.texi: Likewise.
7901         * doc/posix-functions/wctomb.texi: Likewise.
7902         * doc/posix-functions/wctrans.texi: Likewise.
7903         * doc/posix-functions/wctype.texi: Likewise.
7904         * doc/posix-functions/wcwidth.texi: Likewise.
7905         * doc/posix-functions/wmemchr.texi: Likewise.
7906         * doc/posix-functions/wmemcmp.texi: Likewise.
7907         * doc/posix-functions/wmemcpy.texi: Likewise.
7908         * doc/posix-functions/wmemmove.texi: Likewise.
7909         * doc/posix-functions/wmemset.texi: Likewise.
7910         * doc/posix-functions/wprintf.texi: Likewise.
7911         * doc/posix-functions/wscanf.texi: Likewise.
7912
7913 2008-12-21  Bruno Haible  <bruno@clisp.org>
7914
7915         Update doc for HP-UX 11.11.
7916         * doc/posix-functions/btowc.texi: Clarify that the function is missing
7917         in HP-UX version 11.00, not in all versions of HP-UX 11.
7918         * doc/posix-functions/fwide.texi: Likewise.
7919         * doc/posix-functions/fwprintf.texi: Likewise.
7920         * doc/posix-functions/fwscanf.texi: Likewise.
7921         * doc/posix-functions/inet_ntop.texi: Likewise.
7922         * doc/posix-functions/inet_pton.texi: Likewise.
7923         * doc/posix-functions/mbrlen.texi: Likewise.
7924         * doc/posix-functions/mbrtowc.texi: Likewise.
7925         * doc/posix-functions/mbsinit.texi: Likewise.
7926         * doc/posix-functions/mbsrtowcs.texi: Likewise.
7927         * doc/posix-functions/swprintf.texi: Likewise.
7928         * doc/posix-functions/swscanf.texi: Likewise.
7929         * doc/posix-functions/towctrans.texi: Likewise.
7930         * doc/posix-functions/vfwprintf.texi: Likewise.
7931         * doc/posix-functions/vswprintf.texi: Likewise.
7932         * doc/posix-functions/vwprintf.texi: Likewise.
7933         * doc/posix-functions/wcrtomb.texi: Likewise.
7934         * doc/posix-functions/wcsrtombs.texi: Likewise.
7935         * doc/posix-functions/wcsstr.texi: Likewise.
7936         * doc/posix-functions/wctob.texi: Likewise.
7937         * doc/posix-functions/wctrans.texi: Likewise.
7938         * doc/posix-functions/wmemchr.texi: Likewise.
7939         * doc/posix-functions/wmemcmp.texi: Likewise.
7940         * doc/posix-functions/wmemcpy.texi: Likewise.
7941         * doc/posix-functions/wmemmove.texi: Likewise.
7942         * doc/posix-functions/wmemset.texi: Likewise.
7943         * doc/posix-functions/wprintf.texi: Likewise.
7944         * doc/posix-functions/wscanf.texi: Likewise.
7945
7946 2008-12-21  Bruno Haible  <bruno@clisp.org>
7947
7948         Work around a portability problem.
7949         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
7950         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
7951
7952 2008-12-20  Bruno Haible  <bruno@clisp.org>
7953
7954         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
7955         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
7956         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
7957         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
7958         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
7959
7960         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
7961         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
7962         set.
7963         (GNULIB_defined_mbstate_t): New macro.
7964         (mbsinit): Redefine if REPLACE_MBSINIT is set.
7965         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
7966         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
7967         reuses the system's mbrtowc function but works around the bugs.
7968         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
7969         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
7970         macros.
7971         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
7972         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
7973         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
7974         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
7975         REPLACE_MBSINIT if mbsinit needs to be overridden.
7976         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
7977         REPLACE_MBSINIT, REPLACE_MBRTOWC.
7978         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
7979         REPLACE_MBSINIT, REPLACE_MBRTOWC.
7980         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
7981         m4/locale-zh.m4.
7982         (Depends): Add mbsinit.
7983         * modules/mbsinit (Depends): Add mbrtowc.
7984         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
7985
7986 2008-12-20  Bruno Haible  <bruno@clisp.org>
7987
7988         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
7989         so that there are no conversion errors on AIX.
7990         * tests/test-mbsrtowcs.c (main): LIkewise.
7991
7992 2008-12-20  Bruno Haible  <bruno@clisp.org>
7993
7994         Work around wctob bug on Solaris <= 9.
7995         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
7996         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
7997         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
7998         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
7999         * modules/wctob (Files): Add m4/locale-fr.m4.
8000         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
8001
8002 2008-12-20  Bruno Haible  <bruno@clisp.org>
8003
8004         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
8005         /dev/null.
8006         * tests/test-select-in.sh: Likewise.
8007         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8008
8009 2008-12-20  Bruno Haible  <bruno@clisp.org>
8010
8011         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
8012         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
8013         Cygwin 1.5.x.
8014
8015 2008-12-20  Bruno Haible  <bruno@clisp.org>
8016
8017         Ensure mbstate_t is defined on HP-UX 11.11.
8018         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
8019         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
8020         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
8021         AC_USE_SYSTEM_EXTENSIONS.
8022         * modules/fnmatch (Depends-on): Add extensions.
8023         * modules/mbrlen (Depends-on): Likewise.
8024         * modules/mbrtowc (Depends-on): Likewise.
8025         * modules/mbsinit (Depends-on): Likewise.
8026         * modules/mbsrtowcs (Depends-on): Likewise.
8027         * modules/mbswidth (Depends-on): Likewise.
8028         * modules/quotearg (Depends-on): Likewise.
8029         * modules/strftime (Depends-on): Likewise.
8030
8031 2008-12-20  Bruno Haible  <bruno@clisp.org>
8032
8033         Ensure wctob is declared on IRIX 6.5.
8034         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
8035         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
8036         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
8037         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
8038         of HAVE_WCTOB.
8039         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
8040         HAVE_WCTOB.
8041         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
8042
8043 2008-12-19  Bruno Haible  <bruno@clisp.org>
8044
8045         * modules/mbsrtowcs-tests: New file.
8046         * tests/test-mbsrtowcs1.sh: New file.
8047         * tests/test-mbsrtowcs2.sh: New file.
8048         * tests/test-mbsrtowcs3.sh: New file.
8049         * tests/test-mbsrtowcs4.sh: New file.
8050         * tests/test-mbsrtowcs.c: New file.
8051
8052         New module 'mbsrtowcs'.
8053         * lib/wchar.in.h (mbsrtowcs): New declaration.
8054         * lib/mbsrtowcs.c: New file.
8055         * m4/mbsrtowcs.m4: New file.
8056         * modules/mbsrtowcs: New file.
8057         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
8058         HAVE_MBSRTOWCS.
8059         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
8060         HAVE_MBSRTOWCS.
8061         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
8062
8063 2008-12-19  Bruno Haible  <bruno@clisp.org>
8064
8065         New module 'mbrlen'.
8066         * lib/wchar.in.h (mbrlen): New declaration.
8067         * lib/mbrlen.c: New file.
8068         * m4/mbrlen.m4: New file.
8069         * modules/mbrlen: New file.
8070         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
8071         HAVE_MBRLEN.
8072         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
8073         HAVE_MBRLEN.
8074         * doc/posix-functions/mbrlen.texi: Document the new module.
8075
8076 2008-12-19  Bruno Haible  <bruno@clisp.org>
8077
8078         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
8079         * modules/mbrtowc (Depends-on): Add verify.
8080         Suggested by Paul Eggert.
8081
8082 2008-12-18  Bruno Haible  <bruno@clisp.org>
8083
8084         * modules/mbsinit-tests: New file.
8085         * tests/test-mbsinit.sh: New file.
8086         * tests/test-mbsinit.c: New file.
8087
8088 2008-12-18  Bruno Haible  <bruno@clisp.org>
8089
8090         * modules/mbrtowc-tests: New file.
8091         * tests/test-mbrtowc1.sh: New file.
8092         * tests/test-mbrtowc2.sh: New file.
8093         * tests/test-mbrtowc3.sh: New file.
8094         * tests/test-mbrtowc4.sh: New file.
8095         * tests/test-mbrtowc.c: New file.
8096
8097         New module 'mbrtowc'.
8098         * lib/wchar.in.h (mbstate_t): Override when the system does not have
8099         mbsinit and mbrtowc.
8100         (mbrtowc): New declaration.
8101         * lib/mbrtowc.c: New file.
8102         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
8103         * modules/mbrtowc: New file.
8104         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
8105         HAVE_MBRTOWC.
8106         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
8107         HAVE_MBRTOWC.
8108         * doc/posix-functions/mbrtowc.texi: Document the new module.
8109
8110 2008-12-18  Bruno Haible  <bruno@clisp.org>
8111
8112         New module 'wctob'.
8113         * lib/wchar.in.h (wctob): New declaration.
8114         * lib/wctob.c: New file.
8115         * m4/wctob.m4: New file.
8116         * modules/wctob: New file.
8117         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
8118         HAVE_WCTOB.
8119         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
8120         * doc/posix-functions/wctob.texi: Document the new module.
8121
8122 2008-12-18  Bruno Haible  <bruno@clisp.org>
8123
8124         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
8125         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
8126
8127 2008-12-18  Simon Josefsson  <simon@josefsson.org>
8128
8129         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
8130         G. Christensen" <tgc@jupiterrise.com>.
8131
8132         * lib/flock.c: Need to include errno.h.  Reported by "Tom
8133         G. Christensen" <tgc@jupiterrise.com>.
8134
8135         * lib/flock.c: Need to include string.h.  Reported by "Tom
8136         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
8137         <ebb9@byu.net>.
8138
8139 2008-12-18  Bruno Haible  <bruno@clisp.org>
8140
8141         * m4/locale-ja.m4: New file, from GNU gettext.
8142
8143 2008-12-17  Bruno Haible  <bruno@clisp.org>
8144
8145         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
8146         Suggested by Eric Blake.
8147
8148 2008-12-17  Bruno Haible  <bruno@clisp.org>
8149
8150         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
8151
8152 2008-12-17  Bruno Haible  <bruno@clisp.org>
8153
8154         * lib/mbsinit.c: Include verify.h. Verify an assumption.
8155         * modules/mbsinit (Depends-on): Add verify.
8156         Suggested by Paul Eggert.
8157
8158 2008-12-17  Bruno Haible  <bruno@clisp.org>
8159
8160         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
8161         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
8162         gl_FUNC_MBRTOWC.
8163         * m4/mbiter.m4 (gl_MBITER): LIkewise.
8164         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
8165         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
8166         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
8167         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
8168         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
8169         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
8170         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
8171         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
8172         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
8173         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
8174         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
8175         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
8176         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
8177         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
8178         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
8179         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
8180         * modules/trim (configure.ac): Likewise.
8181
8182 2008-12-17  Bruno Haible  <bruno@clisp.org>
8183
8184         * modules/btowc-tests: New file.
8185         * tests/test-btowc1.sh: New file.
8186         * tests/test-btowc2.sh: New file.
8187         * tests/test-btowc.c: New file.
8188
8189         New module 'btowc'.
8190         * lib/wchar.in.h (btowc): New declaration.
8191         * lib/btowc.c: New file.
8192         * m4/btowc.m4: New file.
8193         * modules/btowc: New file.
8194         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
8195         HAVE_BTOWC.
8196         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
8197         * doc/posix-functions/btowc.texi: Document the new module.
8198
8199 2008-12-17  Bruno Haible  <bruno@clisp.org>
8200
8201         New module 'mbsinit'.
8202         * lib/wchar.in.h (mbsinit): New declaration.
8203         * lib/mbsinit.c: New file.
8204         * m4/mbsinit.m4: New file.
8205         * modules/mbsinit: New file.
8206         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
8207         HAVE_MBSINIT.
8208         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
8209         HAVE_MBSINIT.
8210         * doc/posix-functions/mbsinit.texi: Document the new module.
8211
8212 2008-12-16  Bruno Haible  <bruno@clisp.org>
8213
8214         * lib/unistd.in.h: Add comment.
8215         * tests/test-environ.c: Don't include <stdlib.h>.
8216
8217 2008-12-16  Bruno Haible  <bruno@clisp.org>
8218
8219         * lib/parse-duration.h (parse_duration): Document return value
8220         convention.
8221         * lib/parse-duration.c: Include specification header first. Add
8222         comments.
8223         (_): Remove macro.
8224         (parse_year_month_day, parse_hour_minute_second): Move side effects
8225         outside of strchr call.
8226         (parse_non_iso8601): Move side effects outside of isspace call.
8227         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
8228         call.
8229
8230 2008-12-16  Bruno Haible  <bruno@clisp.org>
8231
8232         * tests/test-parse-duration.sh: Produce no output when the test
8233         succeeds.
8234
8235 2008-12-16  Bruno Haible  <bruno@clisp.org>
8236
8237         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
8238         expressions.
8239
8240 2008-12-15  Bruno Haible  <bruno@clisp.org>
8241
8242         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
8243         * doc/glibc-functions/flistxattr.texi: Likewise.
8244         * doc/glibc-functions/fopencookie.texi: Likewise.
8245         * doc/glibc-functions/fremovexattr.texi: Likewise.
8246         * doc/glibc-functions/fsetxattr.texi: Likewise.
8247         * doc/glibc-functions/getxattr.texi: Likewise.
8248         * doc/glibc-functions/lgetxattr.texi: Likewise.
8249         * doc/glibc-functions/listxattr.texi: Likewise.
8250         * doc/glibc-functions/llistxattr.texi: Likewise.
8251         * doc/glibc-functions/lremovexattr.texi: Likewise.
8252         * doc/glibc-functions/lsetxattr.texi: Likewise.
8253         * doc/glibc-functions/removexattr.texi: Likewise.
8254         * doc/glibc-functions/setxattr.texi: Likewise.
8255         * doc/posix-functions/open_memstream.texi: Likewise.
8256
8257 2008-12-15  Eric Blake  <ebb9@byu.net>
8258
8259         Update doc for cygwin 1.7.
8260         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
8261         functions.
8262         * doc/posix-functions/fchmodat.texi: Likewise.
8263         * doc/posix-functions/fchownat.texi: Likewise.
8264         * doc/posix-functions/fdopendir.texi: Likewise.
8265         * doc/posix-functions/fmemopen.texi: Likewise.
8266         * doc/posix-functions/freeaddrinfo.texi: Likewise.
8267         * doc/posix-functions/fstatat.texi: Likewise.
8268         * doc/posix-functions/futimens.texi: Likewise.
8269         * doc/posix-functions/gai_strerror.texi: Likewise.
8270         * doc/posix-functions/getaddrinfo.texi: Likewise.
8271         * doc/posix-functions/getnameinfo.texi: Likewise.
8272         * doc/posix-functions/if_freenameindex.texi: Likewise.
8273         * doc/posix-functions/if_indextoname.texi: Likewise.
8274         * doc/posix-functions/if_nameindex.texi: Likewise.
8275         * doc/posix-functions/if_nametoindex.texi: Likewise.
8276         * doc/posix-functions/insque.texi: Likewise.
8277         * doc/posix-functions/linkat.texi: Likewise.
8278         * doc/posix-functions/llrint.texi: Likewise.
8279         * doc/posix-functions/llrintf.texi: Likewise.
8280         * doc/posix-functions/llrintl.texi: Likewise.
8281         * doc/posix-functions/lockf.texi: Likewise.
8282         * doc/posix-functions/lrintl.texi: Likewise.
8283         * doc/posix-functions/mkdirat.texi: Likewise.
8284         * doc/posix-functions/mkfifoat.texi: Likewise.
8285         * doc/posix-functions/mknodat.texi: Likewise.
8286         * doc/posix-functions/mq_close.texi: Likewise.
8287         * doc/posix-functions/mq_getattr.texi: Likewise.
8288         * doc/posix-functions/mq_notify.texi: Likewise.
8289         * doc/posix-functions/mq_open.texi: Likewise.
8290         * doc/posix-functions/mq_receive.texi: Likewise.
8291         * doc/posix-functions/mq_send.texi: Likewise.
8292         * doc/posix-functions/mq_setattr.texi: Likewise.
8293         * doc/posix-functions/mq_timedreceive.texi: Likewise.
8294         * doc/posix-functions/mq_timedsend.texi: Likewise.
8295         * doc/posix-functions/mq_unlink.texi: Likewise.
8296         * doc/posix-functions/open_memstream.texi: Likewise.
8297         * doc/posix-functions/openat.texi: Likewise.
8298         * doc/posix-functions/posix_fadvise.texi: Likewise.
8299         * doc/posix-functions/posix_fallocate.texi: Likewise.
8300         * doc/posix-functions/posix_madvise.texi: Likewise.
8301         * doc/posix-functions/posix_memalign.texi: Likewise.
8302         * doc/posix-functions/posix_openpt.texi: Likewise.
8303         * doc/posix-functions/readlinkat.texi: Likewise.
8304         * doc/posix-functions/remque.texi: Likewise.
8305         * doc/posix-functions/renameat.texi: Likewise.
8306         * doc/posix-functions/rintl.texi: Likewise.
8307         * doc/posix-functions/sem_unlink.texi: Likewise.
8308         * doc/posix-functions/shm_open.texi: Likewise.
8309         * doc/posix-functions/shm_unlink.texi: Likewise.
8310         * doc/posix-functions/signgam.texi: Likewise.
8311         * doc/posix-functions/sigset.texi: Likewise.
8312         * doc/posix-functions/stpcpy.texi: Likewise.
8313         * doc/posix-functions/stpncpy.texi: Likewise.
8314         * doc/posix-functions/strerror.texi: Likewise.
8315         * doc/posix-functions/strtod.texi: Likewise.
8316         * doc/posix-functions/symlinkat.texi: Likewise.
8317         * doc/posix-functions/unlinkat.texi: Likewise.
8318         * doc/posix-functions/utimensat.texi: Likewise.
8319         * doc/glibc-functions/bindresvport.texi: Likewise.
8320         * doc/glibc-functions/dn_expand.texi: Likewise.
8321         * doc/glibc-functions/exp10.texi: Likewise.
8322         * doc/glibc-functions/exp10f.texi: Likewise.
8323         * doc/glibc-functions/fgetxattr.texi: Likewise.
8324         * doc/glibc-functions/flistxattr.texi: Likewise.
8325         * doc/glibc-functions/fopencookie.texi: Likewise.
8326         * doc/glibc-functions/freeifaddrs.texi: Likewise.
8327         * doc/glibc-functions/fremovexattr.texi: Likewise.
8328         * doc/glibc-functions/fsetxattr.texi: Likewise.
8329         * doc/glibc-functions/getifaddrs.texi: Likewise.
8330         * doc/glibc-functions/getxattr.texi: Likewise.
8331         * doc/glibc-functions/lgetxattr.texi: Likewise.
8332         * doc/glibc-functions/listxattr.texi: Likewise.
8333         * doc/glibc-functions/llistxattr.texi: Likewise.
8334         * doc/glibc-functions/lremovexattr.texi: Likewise.
8335         * doc/glibc-functions/lsetxattr.texi: Likewise.
8336         * doc/glibc-functions/pow10.texi: Likewise.
8337         * doc/glibc-functions/pow10f.texi: Likewise.
8338         * doc/glibc-functions/rcmd_af.texi: Likewise.
8339         * doc/glibc-functions/removexattr.texi: Likewise.
8340         * doc/glibc-functions/res_init.texi: Likewise.
8341         * doc/glibc-functions/res_mkquery.texi: Likewise.
8342         * doc/glibc-functions/res_query.texi: Likewise.
8343         * doc/glibc-functions/res_querydomain.texi: Likewise.
8344         * doc/glibc-functions/res_send.texi: Likewise.
8345         * doc/glibc-functions/rresvport_af.texi: Likewise.
8346         * doc/glibc-functions/setxattr.texi: Likewise.
8347         * doc/glibc-functions/strcasestr.texi: Likewise.
8348
8349 2008-12-15  Bruno Haible  <bruno@clisp.org>
8350
8351         Fix compilation error on OSF/1 4.0.
8352         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
8353         <sys/time.h>, simply delegate to the system header.
8354         Reported by Daniel Richard G. <oss@teragram.com>.
8355
8356 2008-12-15  Bruno Haible  <bruno@clisp.org>
8357
8358         * doc/posix-functions/openat.texi: Mention the 'openat' module.
8359         * doc/posix-functions/fchmodat.texi: Likewise.
8360         * doc/posix-functions/fchownat.texi: Likewise.
8361         * doc/posix-functions/fdopendir.texi: Likewise.
8362         * doc/posix-functions/fstatat.texi: Likewise.
8363         * doc/posix-functions/mkdirat.texi: Likewise.
8364         * doc/posix-functions/unlinkat.texi: Likewise.
8365
8366 2008-12-14  Bruno Haible  <bruno@clisp.org>
8367
8368         Update doc for POSIX:2008.
8369         * doc/posix-functions/faccessat.texi: New file.
8370         * doc/posix-functions/fchmodat.texi: New file.
8371         * doc/posix-functions/fchownat.texi: New file.
8372         * doc/posix-functions/fdopendir.texi: New file.
8373         * doc/posix-functions/fstatat.texi: New file.
8374         * doc/posix-functions/futimens.texi: New file.
8375         * doc/posix-functions/linkat.texi: New file.
8376         * doc/posix-functions/mkdirat.texi: New file.
8377         * doc/posix-functions/mkfifoat.texi: New file.
8378         * doc/posix-functions/mknodat.texi: New file.
8379         * doc/posix-functions/open_wmemstream.texi: New file.
8380         * doc/posix-functions/openat.texi: New file.
8381         * doc/posix-functions/psiginfo.texi: New file.
8382         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
8383         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
8384         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
8385         * doc/posix-functions/readlinkat.texi: New file.
8386         * doc/posix-functions/renameat.texi: New file.
8387         * doc/posix-functions/strerror_l.texi: New file.
8388         * doc/posix-functions/symlinkat.texi: New file.
8389         * doc/posix-functions/unlinkat.texi: New file.
8390         * doc/posix-functions/utimensat.texi: New file.
8391         * doc/gnulib.texi (Function Substitutes): Add these subsections.
8392
8393 2008-12-14  Bruno Haible  <bruno@clisp.org>
8394
8395         Update doc for POSIX:2008.
8396         * doc/posix-functions/alphasort.texi: Renamed from
8397         doc/glibc-functions/alphasort.texi.
8398         * doc/posix-functions/dirfd.texi: Renamed from
8399         doc/glibc-functions/dirfd.texi.
8400         * doc/posix-functions/dprintf.texi: Renamed from
8401         doc/glibc-functions/dprintf.texi.
8402         * doc/posix-functions/duplocale.texi: Renamed from
8403         doc/glibc-functions/duplocale.texi.
8404         * doc/posix-functions/fexecve.texi: Renamed from
8405         doc/glibc-functions/fexecve.texi.
8406         * doc/posix-functions/fmemopen.texi: Renamed from
8407         doc/glibc-functions/fmemopen.texi.
8408         * doc/posix-functions/freelocale.texi: Renamed from
8409         doc/glibc-functions/freelocale.texi.
8410         * doc/posix-functions/getdate_err.texi: Renamed from
8411         doc/glibc-functions/getdate_err.texi.
8412         * doc/posix-functions/isalnum_l.texi: Renamed from
8413         doc/glibc-functions/isalnum_l.texi.
8414         * doc/posix-functions/isalpha_l.texi: Renamed from
8415         doc/glibc-functions/isalpha_l.texi.
8416         * doc/posix-functions/isblank_l.texi: Renamed from
8417         doc/glibc-functions/isblank_l.texi.
8418         * doc/posix-functions/iscntrl_l.texi: Renamed from
8419         doc/glibc-functions/iscntrl_l.texi.
8420         * doc/posix-functions/isdigit_l.texi: Renamed from
8421         doc/glibc-functions/isdigit_l.texi.
8422         * doc/posix-functions/isgraph_l.texi: Renamed from
8423         doc/glibc-functions/isgraph_l.texi.
8424         * doc/posix-functions/islower_l.texi: Renamed from
8425         doc/glibc-functions/islower_l.texi.
8426         * doc/posix-functions/isprint_l.texi: Renamed from
8427         doc/glibc-functions/isprint_l.texi.
8428         * doc/posix-functions/ispunct_l.texi: Renamed from
8429         doc/glibc-functions/ispunct_l.texi.
8430         * doc/posix-functions/isspace_l.texi: Renamed from
8431         doc/glibc-functions/isspace_l.texi.
8432         * doc/posix-functions/isupper_l.texi: Renamed from
8433         doc/glibc-functions/isupper_l.texi.
8434         * doc/posix-functions/iswalnum_l.texi: Renamed from
8435         doc/glibc-functions/iswalnum_l.texi.
8436         * doc/posix-functions/iswalpha_l.texi: Renamed from
8437         doc/glibc-functions/iswalpha_l.texi.
8438         * doc/posix-functions/iswblank_l.texi: Renamed from
8439         doc/glibc-functions/iswblank_l.texi.
8440         * doc/posix-functions/iswcntrl_l.texi: Renamed from
8441         doc/glibc-functions/iswcntrl_l.texi.
8442         * doc/posix-functions/iswctype_l.texi: Renamed from
8443         doc/glibc-functions/iswctype_l.texi.
8444         * doc/posix-functions/iswdigit_l.texi: Renamed from
8445         doc/glibc-functions/iswdigit_l.texi.
8446         * doc/posix-functions/iswgraph_l.texi: Renamed from
8447         doc/glibc-functions/iswgraph_l.texi.
8448         * doc/posix-functions/iswlower_l.texi: Renamed from
8449         doc/glibc-functions/iswlower_l.texi.
8450         * doc/posix-functions/iswprint_l.texi: Renamed from
8451         doc/glibc-functions/iswprint_l.texi.
8452         * doc/posix-functions/iswpunct_l.texi: Renamed from
8453         doc/glibc-functions/iswpunct_l.texi.
8454         * doc/posix-functions/iswspace_l.texi: Renamed from
8455         doc/glibc-functions/iswspace_l.texi.
8456         * doc/posix-functions/iswupper_l.texi: Renamed from
8457         doc/glibc-functions/iswupper_l.texi.
8458         * doc/posix-functions/iswxdigit_l.texi: Renamed from
8459         doc/glibc-functions/iswxdigit_l.texi.
8460         * doc/posix-functions/isxdigit_l.texi: Renamed from
8461         doc/glibc-functions/isxdigit_l.texi.
8462         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
8463         doc/glibc-functions/mbsnrtowcs.texi.
8464         * doc/posix-functions/mkdtemp.texi: Renamed from
8465         doc/glibc-functions/mkdtemp.texi.
8466         * doc/posix-functions/newlocale.texi: Renamed from
8467         doc/glibc-functions/newlocale.texi.
8468         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
8469         doc/glibc-functions/nl_langinfo_l.texi.
8470         * doc/posix-functions/open_memstream.texi: Renamed from
8471         doc/glibc-functions/open_memstream.texi.
8472         * doc/posix-functions/opterr.texi: Renamed from
8473         doc/glibc-functions/opterr.texi.
8474         * doc/posix-functions/optind.texi: Renamed from
8475         doc/glibc-functions/optind.texi.
8476         * doc/posix-functions/optopt.texi: Renamed from
8477         doc/glibc-functions/optopt.texi.
8478         * doc/posix-functions/psignal.texi: Renamed from
8479         doc/glibc-functions/psignal.texi.
8480         * doc/posix-functions/scandir.texi: Renamed from
8481         doc/glibc-functions/scandir.texi.
8482         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
8483         doc/glibc-functions/sched_get_priority_min.texi.
8484         * doc/posix-functions/signgam.texi: Renamed from
8485         doc/glibc-functions/signgam.texi.
8486         * doc/posix-functions/stpcpy.texi: Renamed from
8487         doc/glibc-functions/stpcpy.texi.
8488         * doc/posix-functions/stpncpy.texi: Renamed from
8489         doc/glibc-functions/stpncpy.texi.
8490         * doc/posix-functions/strcasecmp_l.texi: Renamed from
8491         doc/glibc-functions/strcasecmp_l.texi.
8492         * doc/posix-functions/strcoll_l.texi: Renamed from
8493         doc/glibc-functions/strcoll_l.texi.
8494         * doc/posix-functions/strfmon_l.texi: Renamed from
8495         doc/glibc-functions/strfmon_l.texi.
8496         * doc/posix-functions/strftime_l.texi: Renamed from
8497         doc/glibc-functions/strftime_l.texi.
8498         * doc/posix-functions/strncasecmp_l.texi: Renamed from
8499         doc/glibc-functions/strncasecmp_l.texi.
8500         * doc/posix-functions/strndup.texi: Renamed from
8501         doc/glibc-functions/strndup.texi.
8502         * doc/posix-functions/strnlen.texi: Renamed from
8503         doc/glibc-functions/strnlen.texi.
8504         * doc/posix-functions/strsignal.texi: Renamed from
8505         doc/glibc-functions/strsignal.texi.
8506         * doc/posix-functions/strxfrm_l.texi: Renamed from
8507         doc/glibc-functions/strxfrm_l.texi.
8508         * doc/posix-functions/timer_gettime.texi: Renamed from
8509         doc/glibc-functions/timer_gettime.texi.
8510         * doc/posix-functions/tolower_l.texi: Renamed from
8511         doc/glibc-functions/tolower_l.texi.
8512         * doc/posix-functions/toupper_l.texi: Renamed from
8513         doc/glibc-functions/toupper_l.texi.
8514         * doc/posix-functions/towctrans_l.texi: Renamed from
8515         doc/glibc-functions/towctrans_l.texi.
8516         * doc/posix-functions/towlower_l.texi: Renamed from
8517         doc/glibc-functions/towlower_l.texi.
8518         * doc/posix-functions/towupper_l.texi: Renamed from
8519         doc/glibc-functions/towupper_l.texi.
8520         * doc/posix-functions/uselocale.texi: Renamed from
8521         doc/glibc-functions/uselocale.texi.
8522         * doc/posix-functions/vdprintf.texi: Renamed from
8523         doc/glibc-functions/vdprintf.texi.
8524         * doc/posix-functions/wcpcpy.texi:
8525         Renamed from doc/glibc-functions/wcpcpy.texi.
8526         * doc/posix-functions/wcpncpy.texi: Renamed from
8527         doc/glibc-functions/wcpncpy.texi.
8528         * doc/posix-functions/wcscasecmp.texi: Renamed from
8529         doc/glibc-functions/wcscasecmp.texi.
8530         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
8531         doc/glibc-functions/wcscasecmp_l.texi.
8532         * doc/posix-functions/wcscoll_l.texi: Renamed from
8533         doc/glibc-functions/wcscoll_l.texi.
8534         * doc/posix-functions/wcsdup.texi: Renamed from
8535         doc/glibc-functions/wcsdup.texi.
8536         * doc/posix-functions/wcsncasecmp.texi: Renamed from
8537         doc/glibc-functions/wcsncasecmp.texi.
8538         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
8539         doc/glibc-functions/wcsncasecmp_l.texi.
8540         * doc/posix-functions/wcsnlen.texi: Renamed from
8541         doc/glibc-functions/wcsnlen.texi.
8542         * doc/posix-functions/wcsnrtombs.texi: Renamed from
8543         doc/glibc-functions/wcsnrtombs.texi.
8544         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
8545         doc/glibc-functions/wcsxfrm_l.texi.
8546         * doc/posix-functions/wctrans_l.texi: Renamed from
8547         doc/glibc-functions/wctrans_l.texi.
8548         * doc/posix-functions/wctype_l.texi: Renamed from
8549         doc/glibc-functions/wctype_l.texi.
8550         * doc/gnulib.texi (Function Substitutes): Add these subsections.
8551         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
8552         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
8553         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
8554         these subsections.
8555         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
8556         Remove sections.
8557
8558 2008-12-14  Bruno Haible  <bruno@clisp.org>
8559
8560         Update doc for POSIX:2008.
8561         * doc/posix-functions/*.texi: Update URL of POSIX specification.
8562
8563 2008-12-14  Bruno Haible  <bruno@clisp.org>
8564
8565         Update doc for POSIX:2008.
8566         * doc/pastposix-functions/bcmp.texi: Renamed from
8567         doc/posix-functions/bcmp.texi.
8568         * doc/pastposix-functions/bcopy.texi: Renamed from
8569         doc/posix-functions/bcopy.texi.
8570         * doc/pastposix-functions/bsd_signal.texi: Renamed from
8571         doc/posix-functions/bsd_signal.texi.
8572         * doc/pastposix-functions/bzero.texi: Renamed from
8573         doc/posix-functions/bzero.texi.
8574         * doc/pastposix-functions/ecvt.texi: Renamed from
8575         doc/posix-functions/ecvt.texi.
8576         * doc/pastposix-functions/fcvt.texi: Renamed from
8577         doc/posix-functions/fcvt.texi.
8578         * doc/pastposix-functions/ftime.texi: Renamed from
8579         doc/posix-functions/ftime.texi.
8580         * doc/pastposix-functions/gcvt.texi: Renamed from
8581         doc/posix-functions/gcvt.texi.
8582         * doc/pastposix-functions/getcontext.texi: Renamed from
8583         doc/posix-functions/getcontext.texi.
8584         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
8585         doc/posix-functions/gethostbyaddr.texi.
8586         * doc/pastposix-functions/gethostbyname.texi: Renamed from
8587         doc/posix-functions/gethostbyname.texi.
8588         * doc/pastposix-functions/getwd.texi: Renamed from
8589         doc/posix-functions/getwd.texi.
8590         * doc/pastposix-functions/h_errno.texi: Renamed from
8591         doc/posix-functions/h_errno.texi.
8592         * doc/pastposix-functions/index.texi: Renamed from
8593         doc/posix-functions/index.texi.
8594         * doc/pastposix-functions/makecontext.texi: Renamed from
8595         doc/posix-functions/makecontext.texi.
8596         * doc/pastposix-functions/mktemp.texi: Renamed from
8597         doc/posix-functions/mktemp.texi.
8598         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
8599         doc/posix-functions/pthread_attr_getstackaddr.texi.
8600         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
8601         doc/posix-functions/pthread_attr_setstackaddr.texi.
8602         * doc/pastposix-functions/rindex.texi: Renamed from
8603         doc/posix-functions/rindex.texi.
8604         * doc/pastposix-functions/scalb.texi: Renamed from
8605         doc/posix-functions/scalb.texi.
8606         * doc/pastposix-functions/setcontext.texi: Renamed from
8607         doc/posix-functions/setcontext.texi.
8608         * doc/pastposix-functions/swapcontext.texi: Renamed from
8609         doc/posix-functions/swapcontext.texi.
8610         * doc/pastposix-functions/ualarm.texi: Renamed from
8611         doc/posix-functions/ualarm.texi.
8612         * doc/pastposix-functions/usleep.texi: Renamed from
8613         doc/posix-functions/usleep.texi.
8614         * doc/pastposix-functions/vfork.texi: Renamed from
8615         doc/posix-functions/vfork.texi.
8616         * doc/pastposix-functions/wcswcs.texi: Renamed from
8617         doc/posix-functions/wcswcs.texi.
8618         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
8619         (Function Substitutes): Update.
8620
8621 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8622
8623         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
8624         m4/strerror.m4.
8625
8626 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8627             Bruno Haible  <bruno@clisp.org>
8628
8629         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
8630
8631 2008-12-13  Bruno Haible  <bruno@clisp.org>
8632
8633         * modules/strtoull (Depends-on): Remove unistd.
8634
8635 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8636
8637         * modules/strtoull (Depends-on): Add stdlib.
8638
8639 2008-12-11  Simon Josefsson  <simon@josefsson.org>
8640
8641         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
8642
8643 2008-12-10  Jim Meyering  <meyering@redhat.com>
8644
8645         gl_ASSERT: don't say assertions are disabled when they're not
8646         * m4/assert.m4 (gl_ASSERT): Do not make configure report
8647         "checking whether to enable assertions... no", when they are in
8648         fact enabled.  This is solely a bug in the output of configure.
8649         In spite of saying "no", NDEBUG was not defined in that case.
8650         Also, as noted by Eric Blake, leave assertions enabled upon
8651         --enable-assert=INVALID.
8652
8653 2008-12-10  Bruno Haible  <bruno@clisp.org>
8654
8655         Change MODULES.html to refer to POSIX:2008 where possible.
8656         * MODULES.html.sh (POSIX2008_URL): New variable.
8657         (posix_headers): Remove sys/timeb, ucontext.
8658         (posix2001_headers): New variable.
8659         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
8660         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
8661         index, makecontext, mktemp, pthread_attr_getstackaddr,
8662         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
8663         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
8664         (posix2001_functions): New variable.
8665         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
8666         otherwise.
8667
8668 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8669
8670         add missing include to parse-duration.c
8671         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
8672         * modules/parse-duration (Depends-on): Add xalloc.
8673
8674         fix sed script reading maint.mk
8675         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
8676         (syntax-check-rules): Use it.
8677
8678 2008-12-09  Bruno Haible  <bruno@clisp.org>
8679
8680         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
8681         MacOS X 10.4/PowerPC.
8682         Reported by Simon Josefsson.
8683
8684 2008-12-08  Jim Meyering  <meyering@redhat.com>
8685
8686         work around mingw's lack of some S_IF definitions
8687         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
8688         Reported by Simon Josefsson.
8689
8690 2008-12-08  Bruno Haible  <bruno@clisp.org>
8691
8692         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
8693         applied to variables. Needed on MacOS X 10.4/PowerPC.
8694         Reported by Simon Josefsson.
8695
8696 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
8697         and Eric Blake  <ebb9@byu.net>
8698
8699         assert: honor --enable-assert
8700         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
8701         order to honor --enable-assert, rather than treating it as a
8702         synonym for --disable-assert.
8703
8704 2008-12-08  Jim Meyering  <meyering@redhat.com>
8705
8706         * lib/posixtm.c: Remove now-useless declaration of mktime.
8707
8708         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
8709
8710 2008-12-07  Bruno Haible  <bruno@clisp.org>
8711
8712         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
8713         test_once): Mark functions as static.
8714         * tests/test-tls.c (test_tls): Likewise.
8715
8716 2008-12-07  Bruno Haible  <bruno@clisp.org>
8717
8718         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
8719         iconv_register_autodetect.
8720
8721 2008-12-07  Jim Meyering  <meyering@redhat.com>
8722
8723         posixtm.c: avoid a warning
8724         * lib/posixtm.c (posixtime): Don't initialize tm0.
8725         It's no longer needed to placate gcc4's -Wuninitialized,
8726         and the attempt to placate would elicit a new warning.
8727
8728         unicodeio.c: mark unused parameters
8729         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
8730         (fallback_failure_callback): Likewise.
8731
8732 2008-12-07  Bruno Haible  <bruno@clisp.org>
8733
8734         * gnulib-tool (func_create_testdir): When building the tests
8735         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
8736         Reported by Simon Josefsson.
8737
8738 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8739
8740         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
8741
8742 2008-12-06  Bruno Haible  <bruno@clisp.org>
8743
8744         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
8745         Suggested by Eric Blake.
8746
8747 2008-12-06  Bruno Haible  <bruno@clisp.org>
8748
8749         Fix a c-stack test failure on MacOS X.
8750         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
8751         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
8752         handler for SIGBUS as well.
8753         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
8754         install a signal handler for SIGBUS as well.
8755         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
8756
8757 2008-12-06  Bruno Haible  <bruno@clisp.org>
8758
8759         Advocacy documentation.
8760         * doc/gnulib-intro.texi (Benefits): New section.
8761         * doc/gnulib.texi: Update.
8762
8763 2008-12-06  Bruno Haible  <bruno@clisp.org>
8764
8765         Document the 'manywarnings' module.
8766         * doc/manywarnings.texi: New file.
8767         * doc/gnulib.texi: Include it.
8768
8769 2008-12-05  Eric Blake  <ebb9@byu.net>
8770
8771         tests: silence some gcc warnings
8772         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
8773         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
8774         type mismatches.
8775
8776 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8777             Bruno Haible  <bruno@clisp.org>
8778
8779         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
8780
8781 2008-11-29  Jim Meyering  <meyering@redhat.com>
8782
8783         unicodeio.c: mark unused parameters
8784         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
8785         (fallback_failure_callback): Likewise.
8786
8787         fts: fix a thinko
8788         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
8789         (set_stat_type): Return S_IF*-valued "type" directly.
8790         Prompted by James Youngman's spotting a related bug.
8791         Confirmed by further testing through find.
8792
8793         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
8794         * lib/fts.c (D_TYPE): Define.
8795         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
8796         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
8797         (s_ifmt_shift_bits): New function.
8798         (set_stat_type): New function.
8799         (fts_build): When not calling fts_stat, call set_stat_type
8800         to propagate dirent.d_type info to fts_read caller.
8801         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
8802         fts_statp->st_mode type information may be valid.
8803
8804 2008-11-28  Simon Josefsson  <simon@josefsson.org>
8805
8806         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
8807         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
8808         <sds@gnu.org>.
8809
8810 2008-11-20  Bruno Haible  <bruno@clisp.org>
8811
8812         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
8813         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
8814         INCLUDE_NEXT.
8815         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
8816         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
8817         * modules/math (Makefile.am): Substitute
8818         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
8819         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8820
8821 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
8822             Bruno Haible  <bruno@clisp.org>
8823
8824         * lib/stdint.in.h: Define all type macros so that their expansion is
8825         a single typedef'ed token. Fixes a compilation failure in Boost which
8826         does "using ::int8_t;".
8827
8828 2008-11-18  Simon Josefsson  <simon@josefsson.org>
8829
8830         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
8831         gl_MANYWARN_ALL_GCC.
8832         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
8833         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
8834         * modules/manywarnings: New file.
8835         * MODULES.html.sh: Mention manywarnings module.
8836
8837 2008-11-18  Bruno Haible  <bruno@clisp.org>
8838
8839         * doc/gnulib-tool.texi (Unit tests): New section.
8840
8841 2008-11-18  Simon Josefsson  <simon@josefsson.org>
8842
8843         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
8844         paths like 'lib/po/foo.po'.
8845
8846 2008-11-17  Simon Josefsson  <simon@josefsson.org>
8847
8848         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
8849         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
8850
8851 2008-11-17  Simon Josefsson  <simon@josefsson.org>
8852
8853         * m4/warnings.m4: Use CPPFLAGS to really check whether the
8854         parameter works.
8855
8856 2008-11-17  Simon Josefsson  <simon@josefsson.org>
8857
8858         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
8859
8860 2008-11-17  Bruce Korb  <bkorb@gnu.org>
8861
8862         * modules/parse-duration-tests: New file.
8863         * tests/test-parse-duration.sh: New file.
8864         * tests/test-parse-duration.c: New file.
8865
8866         New module 'parse-duration'.
8867         * lib/parse-duration.h: New file.
8868         * lib/parse-duration.c: New file.
8869         * modules/parse-duration: New file.
8870
8871 2008-11-17  Bruno Haible  <bruno@clisp.org>
8872
8873         * tests/test-select-out.sh: Comment out the first pipe test.
8874         Reported by Simon Josefsson.
8875
8876 2008-11-17  Bruno Haible  <bruno@clisp.org>
8877
8878         * modules/getaddrinfo (Depends-on): Add servent, hostent.
8879         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
8880         gl_HOSTENT.
8881
8882 2008-11-17  Bruno Haible  <bruno@clisp.org>
8883
8884         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
8885         -lnetwork and -lnet. Needed for Haiku and BeOS.
8886
8887 2008-11-16  Bruno Haible  <bruno@clisp.org>
8888
8889         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
8890
8891 2008-11-16  Bruno Haible  <bruno@clisp.org>
8892
8893         Avoid test failure on Haiku.
8894         * tests/test-fsync.c: Include <errno.h>.
8895         (main): Don't require that fsync (0) fails.
8896
8897 2008-11-15  Bruno Haible  <bruno@clisp.org>
8898
8899         New module 'hostent'.
8900         * modules/hostent: New file.
8901         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
8902
8903 2008-11-15  Bruno Haible  <bruno@clisp.org>
8904
8905         New module 'servent'.
8906         * modules/servent: New file.
8907         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
8908
8909 2008-11-15  Bruno Haible  <bruno@clisp.org>
8910
8911         Avoid generating same test program with two different rules.
8912         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
8913         test-frexp to test-frexp-nolibm.
8914         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
8915         test-frexpl to test-frexpl-nolibm.
8916
8917 2008-11-15  Bruno Haible  <bruno@clisp.org>
8918
8919         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
8920         $(FREXPL_LIBM).
8921
8922 2008-11-15  Bruno Haible  <bruno@clisp.org>
8923
8924         * lib/netdb.in.h: Activate the definitions also when the system's
8925         <netdb.h> has 'struct addrinfo'.
8926         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
8927         EAI_OVERFLOW or AI_NUMERICSERV.
8928         * doc/posix-headers/netdb.texi: Document the problem.
8929
8930 2008-11-15  Bruno Haible  <bruno@clisp.org>
8931
8932         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
8933
8934         Make the 'sched' module work on platforms where <sched.h> exists but
8935         is incomplete (such as Haiku).
8936         * lib/sched.in.h; Include the system's <sched.h> if it exists.
8937         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
8938         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
8939         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
8940         HAVE_STRUCT_SCHED_PARAM.
8941         * modules/sched (Depends-on): Add include_next.
8942         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
8943         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
8944         * doc/posix-headers/sched.texi: Document the issue.
8945
8946 2008-11-13  Jim Meyering  <meyering@redhat.com>
8947
8948         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
8949         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
8950         test would fail due to the difference in the Report bugs to ...
8951         line.  The expected address is empty, "<>", while the actual
8952         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
8953
8954 2008-11-12  Bruno Haible  <bruno@clisp.org>
8955
8956         lstat: don't compile lstat.c on systems lacking lstat
8957         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
8958         which don't have lstat; this is handled by lib/sys_stat.in.h already.
8959         Reported by Daniel P. Berrange via Jim Meyering.
8960
8961 2008-11-12  Jim Meyering  <meyering@redhat.com>
8962
8963         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
8964
8965 2008-11-12  Simon Josefsson  <simon@josefsson.org>
8966
8967         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
8968         instead.
8969
8970 2008-11-12  Bruno Haible  <bruno@clisp.org>
8971
8972         * lib/unicodeio.c: Include unistr.h.
8973         (utf8_wctomb): Remove function.
8974         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
8975
8976 2008-11-12  Simon Josefsson  <simon@josefsson.org>
8977
8978         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
8979         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
8980         <bruno@clisp.org>.
8981         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
8982
8983 2008-11-12  Simon Josefsson  <simon@josefsson.org>
8984
8985         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
8986         * doc/gnulib.texi: Add section for warnings.
8987
8988 2008-11-11  Bruno Haible  <bruno@clisp.org>
8989
8990         * lib/sockets.h: Add a comment.
8991
8992 2008-11-11  Karl Berry  <karl@gnu.org>
8993
8994         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
8995
8996 2008-11-11  Eric Blake  <ebb9@byu.net>
8997
8998         fdl.texi: avoid git symlinks
8999         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
9000
9001 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
9002
9003         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
9004
9005 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
9006
9007         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
9008         (gl_WARN_ADD): Substitute $2 if literal.
9009
9010 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
9011
9012         * m4/warning.m4: Remove.
9013
9014 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
9015
9016         * m4/warnings.m4: Almost complete rewrite. :-)
9017
9018 2008-11-10  Simon Josefsson  <simon@josefsson.org>
9019
9020         * modules/warnings: New module.
9021         * m4/warnings.m4: New file.
9022         * MODULES.html.sh: Mention warnings module.
9023         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
9024         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9025
9026 2008-11-10  Eric Blake  <ebb9@byu.net>
9027
9028         fdl.texi: make a symlink to the latest version
9029         * doc/standards.texi: Revert today's earlier change.
9030         * doc/fdl-1.2.texi: Rename from old fdl.texi...
9031         * doc/fdl.texi: ...and replace this with a symlink to the newer
9032         fdl-1.3.texi.
9033
9034 2008-11-10  Bruno Haible  <bruno@clisp.org>
9035
9036         * tests/test-select-fd.c (main): Accept the result file name as fourth
9037         argument.
9038         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
9039         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
9040
9041 2008-11-10  Bruno Haible  <bruno@clisp.org>
9042
9043         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
9044         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
9045         as autoconf-substituted macros.
9046         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
9047         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
9048         gl_NETDB_H_DEFAULTS. Set these variables.
9049         * modules/netdb (Makefile.am): Substitute these variables.
9050
9051 2008-11-10  Eric Blake  <ebb9@byu.net>
9052
9053         standards.texi: include correct file for FDL 1.3
9054         * doc/standards.texi (GNU Free Documentation License): Change
9055         include file to pull in FDL 1.3, not 1.2.
9056
9057         fdl.texi: revert accidental change to license
9058         * doc/fdl.texi: This is FDL 1.2, not 1.3.
9059
9060 2008-11-10  Bruno Haible  <bruno@clisp.org>
9061
9062         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
9063         cross-compiling guesses also when the native compile gives no result.
9064
9065 2008-11-10  Bruno Haible  <bruno@clisp.org>
9066
9067         * lib/spawni.c (__spawni): Force variable into the stack.
9068
9069 2008-11-10  Bruno Haible  <bruno@clisp.org>
9070
9071         Add support for Haiku.
9072         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
9073         glibc and BeOS, but also on Haiku.
9074         * lib/fpurge.c (fpurge): Likewise.
9075         * lib/freadable.c (freadable): Likewise.
9076         * lib/freadahead.c (freadahead): Likewise.
9077         * lib/freading.c (freading): Likewise.
9078         * lib/freadptr.c (freadptr): Likewise.
9079         * lib/freadseek.c (freadptrinc): Likewise.
9080         * lib/fseeko.c (rpl_fseeko): Likewise.
9081         * lib/fseterr.c (fseterr): Likewise.
9082         * lib/fwritable.c (fwritable): Likewise.
9083         * lib/fwriting.c (fwriting): Likewise.
9084         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
9085
9086 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
9087
9088         * lib/config.charset: Treat Haiku like BeOS.
9089
9090 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
9091
9092         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
9093         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
9094
9095 2008-11-08  Bruno Haible  <bruno@clisp.org>
9096
9097         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
9098         AC_CACHE_CHECK.
9099
9100 2008-11-08  Bruno Haible  <bruno@clisp.org>
9101
9102         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
9103
9104 2008-11-08  Bruno Haible  <bruno@clisp.org>
9105
9106         * tests/test-select-fd.c: New file.
9107         * tests/test-select-in.sh: New file.
9108         * tests/test-select-out.sh: New file.
9109         * tests/test-select-stdin.c: New file.
9110         * modules/select-tests (Files): Add the new files.
9111         (Depends-on): Add gettimeofday.
9112         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
9113         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
9114         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
9115
9116 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
9117             Bruno Haible  <bruno@clisp.org>
9118
9119         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
9120
9121 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
9122
9123         * build-aux/pmccabe2html: Added support for C++ source files.
9124
9125 2008-11-05  Ben Pfaff  <blp@gnu.org>
9126
9127         Fix lib/close.c build on Windows.
9128         * modules/close (Files): Add lib/w32sock.h.
9129
9130 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
9131
9132         Accept Bison's NEWS format.
9133         * build-aux/announce-gen (print_news_deltas): Tweak
9134         $re_prefix.
9135
9136 2008-11-04  Bruno Haible  <bruno@clisp.org>
9137
9138         * modules/random_r (Maintainer): Add glibc.
9139
9140 2008-11-04  Simon Josefsson  <simon@josefsson.org>
9141
9142         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
9143         by karl@freefriends.org (Karl Berry).
9144         * doc/alloca.texi: Likewise.
9145         * doc/c-ctype.texi: Likewise.
9146         * doc/c-strcase.texi: Likewise.
9147         * doc/c-strcaseeq.texi: Likewise.
9148         * doc/c-strcasestr.texi: Likewise.
9149         * doc/c-strstr.texi: Likewise.
9150         * doc/c-strtod.texi: Likewise.
9151         * doc/c-strtold.texi: Likewise.
9152         * doc/ctime.texi: Likewise.
9153         * doc/error.texi: Likewise.
9154         * doc/fdl.texi: Likewise.
9155         * doc/gcd.texi: Likewise.
9156         * doc/getdate.texi: Likewise.
9157         * doc/gnulib-intro.texi: Likewise.
9158         * doc/gnulib-tool.texi: Likewise.
9159         * doc/gnulib.texi: Likewise.
9160         * doc/inet_ntoa.texi: Likewise.
9161         * doc/maintain.texi: Likewise.
9162         * doc/make-stds.texi: Likewise.
9163         * doc/quote.texi: Likewise.
9164         * doc/regexprops-generic.texi: Likewise.
9165         * doc/standards.texi: Likewise.
9166         * doc/verify.texi: Likewise.
9167         * doc/visibility.texi: Likewise.
9168         * doc/gnulib.texi (GNU Free Documentation License): Include
9169         fdl-1.3.texi instead of fdl.texi.
9170
9171 2008-11-04  Simon Josefsson  <simon@josefsson.org>
9172
9173         * doc/fdl-1.3.texi: New file, from
9174         <http://www.gnu.org/licenses/fdl-1.3.texi>.
9175         * modules/fdl-1.3: Add.
9176         * MODULES.html.sh: Add fdl-1.3.
9177
9178 2008-11-03  Bruno Haible  <bruno@clisp.org>
9179
9180         Make determination of absolute name of header file work with AIX xlc.
9181         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
9182         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
9183         preprocessing.
9184         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
9185         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
9186
9187 2008-11-03  Simon Josefsson  <simon@josefsson.org>
9188
9189         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
9190         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
9191         <ludo@gnu.org>.
9192
9193 2008-11-02  Bruno Haible  <bruno@clisp.org>
9194
9195         Mark 'strpbrk' obsolete.
9196         * modules/strpbrk (Status, Notice): New sections.
9197         * modules/strtok_r (Depends-on): Add strpbrk.
9198
9199 2008-11-02  Bruno Haible  <bruno@clisp.org>
9200
9201         Mark 'strdup' obsolete.
9202         * modules/strdup (Status, Notice): New sections.
9203         * modules/findprog (Depends-on): Add strdup.
9204         * modules/getaddrinfo (Depends-on): Likewise.
9205         * modules/localename (Depends-on): Likewise.
9206         * modules/relocatable-lib (Depends-on): Likewise.
9207         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
9208         * modules/relocatable-prog (Depends-on): Likewise.
9209         * modules/trim (Depends-on): Likewise.
9210         * modules/unictype/gen-ctype (Depends-on): Likewise.
9211         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
9212
9213 2008-11-02  Bruno Haible  <bruno@clisp.org>
9214
9215         Mark 'strcspn' obsolete.
9216         * modules/strcspn (Status, Notice): New sections.
9217
9218 2008-11-02  Bruno Haible  <bruno@clisp.org>
9219
9220         Mark 'rmdir' obsolete.
9221         * modules/rmdir (Status, Notice): New sections.
9222         * modules/clean-temp (Depends-on): Add rmdir.
9223         * modules/openat (Depends-on): Likewise.
9224
9225 2008-11-02  Bruno Haible  <bruno@clisp.org>
9226
9227         Mark 'raise' obsolete.
9228         * modules/raise (Status, Notice): New sections.
9229         (Include): Specify <signal.h>.
9230         * modules/stdio (Depends-on): Add raise.
9231         * modules/write (Depends-on): Likewise.
9232
9233 2008-11-02  Bruno Haible  <bruno@clisp.org>
9234
9235         Mark 'memset' obsolete.
9236         * modules/memset (Status, Notice): New sections.
9237
9238 2008-11-02  Bruno Haible  <bruno@clisp.org>
9239
9240         Mark 'memmove' obsolete.
9241         * modules/memmove (Status, Notice): New sections.
9242         * modules/argp (Depends-on): Add memmove.
9243         * modules/argz (Depends-on): Likewise.
9244         * modules/canonicalize (Depends-on): Likewise.
9245         * modules/canonicalize-lgpl (Depends-on): Likewise.
9246         * modules/fts (Depends-on): Likewise.
9247         * modules/getcwd (Depends-on): Likewise.
9248         * modules/human (Depends-on): Likewise.
9249         * modules/regex (Depends-on): Likewise.
9250         * modules/striconveh (Depends-on): Likewise.
9251         * modules/trim (Depends-on): Likewise.
9252         * modules/unistr/u8-move (Depends-on): Likewise.
9253         * modules/unistr/u16-move (Depends-on): Likewise.
9254         * modules/unistr/u32-move (Depends-on): Likewise.
9255
9256 2008-11-02  Bruno Haible  <bruno@clisp.org>
9257
9258         Mark 'memcpy' obsolete.
9259         * modules/memcpy (Status, Notice): New sections.
9260
9261 2008-11-02  Bruno Haible  <bruno@clisp.org>
9262
9263         Mark 'memcmp' obsolete.
9264         * modules/memcmp (Status, Notice): New sections.
9265         * modules/argmatch (Depends-on): Add memchr.
9266         * modules/backupfile (Depends-on): Likewise.
9267         * modules/c-strcasestr (Depends-on): Likewise.
9268         * modules/crypto/des (Depends-on): Likewise.
9269         * modules/csharpcomp (Depends-on): Likewise.
9270         * modules/fnmatch (Depends-on): Likewise.
9271         * modules/git-merge-changelog (Depends-on): Likewise.
9272         * modules/isnand (Depends-on): Likewise.
9273         * modules/isnand-nolibm (Depends-on): Likewise.
9274         * modules/isnanf (Depends-on): Likewise.
9275         * modules/isnanf-nolibm (Depends-on): Likewise.
9276         * modules/isnanl (Depends-on): Likewise.
9277         * modules/isnanl-nolibm (Depends-on): Likewise.
9278         * modules/mbchar (Depends-on): Likewise.
9279         * modules/memcoll (Depends-on): Likewise.
9280         * modules/quotearg (Depends-on): Likewise.
9281         * modules/regex (Depends-on): Likewise.
9282         * modules/relocatable-prog (Depends-on): Likewise.
9283         * modules/same (Depends-on): Likewise.
9284         * modules/signbit (Depends-on): Likewise.
9285         * modules/strcasestr-simple (Depends-on): Likewise.
9286         * modules/unictype/gen-ctype (Depends-on): Likewise.
9287         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
9288         * modules/uniname/uniname (Depends-on): Likewise.
9289         * modules/unistr/u8-cmp (Depends-on): Likewise.
9290
9291 2008-11-02  Bruno Haible  <bruno@clisp.org>
9292
9293         Mark 'memchr' obsolete.
9294         * modules/memchr (Status, Notice): New sections.
9295         * modules/argp (Depends-on): Add memchr.
9296         * modules/base64 (Depends-on): Likewise.
9297         * modules/c-strcasestr (Depends-on): Likewise.
9298         * modules/chdir-long (Depends-on): Likewise.
9299         * modules/fnmatch (Depends-on): Likewise.
9300         * modules/getsubopt (Depends-on): Likewise.
9301         * modules/git-merge-changelog (Depends-on): Likewise.
9302         * modules/glob (Depends-on): Likewise.
9303         * modules/strcasestr-simple (Depends-on): Likewise.
9304         * modules/strnlen (Depends-on): Likewise.
9305
9306 2008-11-02  Bruno Haible  <bruno@clisp.org>
9307
9308         Mark 'atexit' obsolete.
9309         * modules/atexit (Status, Notice): New sections.
9310         * modules/chdir-long (Depends-on): Add atexit.
9311         * modules/wait-process (Depends-on): Likewise.
9312
9313 2008-11-02  Bruno Haible  <bruno@clisp.org>
9314
9315         * gnulib-tool: New option --with-obsolete.
9316         (func_usage): Document it.
9317         (func_modules_transitive_closure): Drop obsolete dependencies if
9318         incobsolete is not true.
9319         (func_import): Read and save the incobsolete variable to the cache.
9320
9321 2008-11-02  Bruno Haible  <bruno@clisp.org>
9322
9323         * modules/TEMPLATE-EXTENDED: New field 'Status'.
9324         * gnulib-tool: New option --extract-status.
9325         (func_usage): Document it.
9326         (sed_extract_prog): Recognize it.
9327         (func_get_status): New function.
9328
9329 2008-10-30  Simon Josefsson  <simon@josefsson.org>
9330
9331         * modules/sockets (License): Change from LGPL to LGPLv2+.
9332
9333 2008-10-28  Simon Josefsson  <simon@josefsson.org>
9334
9335         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
9336
9337 2008-10-28  Simon Josefsson  <simon@josefsson.org>
9338
9339         * MODULES.html.sh (Support for systems lacking POSIX:2001):
9340         Mention times and sys_times.
9341         * modules/sys_times, modules/sys_times-tests: New modules.
9342         * modules/times, modules/times-tests: Likewise
9343         * m4/sys_times_h.m4: New file.
9344         * lib/sys_times.in.h: Likewise
9345         * lib/times.c: Likewise.
9346         * tests/test-sys_times.c: Likewise.
9347         * tests/test-times.c: Likewise.
9348         * doc/posix-headers/sys_times.texi: Update.
9349         * doc/posix-functions/times.texi: Update.
9350
9351 2008-10-28  Jim Meyering  <meyering@redhat.com>
9352
9353         * modules/tempname (Depends-on): Add lstat.
9354
9355         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
9356
9357 2008-10-28  Simon Josefsson  <simon@josefsson.org>
9358
9359         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
9360         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
9361         using idiom used elsewhere in gnulib.
9362
9363 2008-10-27  Jim Meyering  <meyering@redhat.com>
9364
9365         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
9366
9367 2008-10-27  Simon Josefsson  <simon@josefsson.org>
9368
9369         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
9370         TESTS_ENVIRONMENT, for shell scripts that needs to call built
9371         programs.
9372         * tests/test-argp-2.sh: Use $EXEEXT when needed.
9373
9374 2008-10-27  Simon Josefsson  <simon@josefsson.org>
9375
9376         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
9377
9378 2008-10-27  Bruno Haible  <bruno@clisp.org>
9379
9380         * tests/test-lstat.c: Include <stdio.h>.
9381
9382 2008-10-27  Simon Josefsson  <simon@josefsson.org>
9383
9384         * modules/lstat-tests: New module.
9385         * tests/test-lstat.c: New file.
9386
9387 2008-10-26  Jim Meyering  <meyering@redhat.com>
9388
9389         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
9390
9391 2008-10-26  Simon Josefsson  <simon@josefsson.org>
9392             Bruno Haible  <bruno@clisp.org>
9393
9394         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
9395         * modules/configmake (Include): Add a note that the include must come
9396         after all system headers.
9397         * lib/javaversion.c: Include configmake.h after all other includes.
9398
9399 2008-10-26  Bruno Haible  <bruno@clisp.org>
9400
9401         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
9402         HAVE_STRUCT_RANDOM_DATA to 1.
9403         (gl_STDLIB_H): Simplify.
9404
9405 2008-10-26  Simon Josefsson  <simon@josefsson.org>
9406
9407         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
9408         substitute HAVE_STRUCT_RANDOM_DATA.
9409         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
9410         random_data.
9411         * modules/stdlib (Makefile.am): Substitute
9412         HAVE_STRUCT_RANDOM_DATA.
9413
9414 2008-10-26  Simon Josefsson  <simon@josefsson.org>
9415
9416         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
9417         * doc/gnulib-intro.texi (Copyright): Likewise.
9418
9419 2008-10-26  Simon Josefsson  <simon@josefsson.org>
9420
9421         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
9422         findings.
9423
9424 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
9425             Bruno Haible  <bruno@clisp.org>
9426
9427         * lib/unistd.in.h: Include <winsock2.h>.
9428         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
9429         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
9430         Provide dummy declarations.
9431         (gethostname): Override.
9432         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
9433         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
9434         gl_PREREQ_SYS_H_WINSOCK2.
9435         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
9436         * doc/posix-functions/gethostname.texi: More details.
9437
9438 2008-10-25  Bruno Haible  <bruno@clisp.org>
9439
9440         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
9441         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
9442         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
9443
9444         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
9445         here ...
9446         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
9447         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
9448         gl_UNISTD_H_DEFAULTS.
9449
9450 2008-10-25  Eric Blake  <ebb9@byu.net>
9451
9452         signbit: avoid spurious compiler failure
9453         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
9454         declarations inside function.
9455
9456 2008-10-24  Simon Josefsson  <simon@josefsson.org>
9457             Bruno Haible  <bruno@clisp.org>
9458
9459         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
9460         * modules/random_r (Depends-on): Add stdint.
9461
9462 2008-10-24  Bruno Haible  <bruno@clisp.org>
9463
9464         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
9465         Eggert.
9466         * modules/strerror (License): Likewise.
9467
9468 2008-10-24  Jim Meyering  <meyering@redhat.com>
9469
9470         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
9471         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
9472
9473 2008-10-24  Eric Blake  <ebb9@byu.net>
9474
9475         getgroups: fix compilation when getgroups is available
9476         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
9477         but with <config.h> override of getgroups disabled.
9478
9479 2008-10-24  Simon Josefsson  <simon@josefsson.org>
9480
9481         * doc/gnulib.texi (Header files): Add note about C++ problems.
9482         Explained by Bruno Haible <bruno@clisp.org>.
9483
9484 2008-10-23  Bruno Haible  <bruno@clisp.org>
9485
9486         Define a dummy SA_NODEFER macro on Interix.
9487         * lib/signal.in.h (SA_NODEFER): Define fallback.
9488         Reported by Aleksey Cheusov <cheusov@tut.by> via
9489         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
9490
9491 2008-10-23  Bruno Haible  <bruno@clisp.org>
9492
9493         * modules/freadahead (License): Change to LGPLv2+.
9494         Suggested by Simon Josefsson.
9495
9496 2008-10-23  Jim Meyering  <meyering@redhat.com>
9497
9498         random_r: new module
9499         * modules/random_r: New file.
9500         * m4/random_r.m4: New file.
9501         * lib/random_r.c: New file, from glibc.
9502         * modules/random_r-tests: New file.
9503         * tests/test-random_r.c: New file.
9504         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
9505          Declare.
9506         (RAND_MAX): Define.
9507         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
9508         * modules/stdlib: Substitute them, too.
9509         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
9510         * doc/glibc-functions/initstate_r.texi: Mention the new module.
9511         * doc/glibc-functions/random_r.texi: Likewise.
9512         * doc/glibc-functions/setstate_r.texi: Likewise.
9513         * doc/glibc-functions/srandom_r.texi: Likewise.
9514         * config/srclist.txt: Mention it.
9515
9516 2008-10-23  David Lutterkort  <lutter@redhat.com>
9517
9518         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
9519         link requirement
9520
9521 2008-10-23  Jim Meyering  <meyering@redhat.com>
9522
9523         selinux-h: mark parameters of stub functions as intentionally unused
9524         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
9525         * lib/se-context.in.h: Likewise.
9526
9527 2008-10-22  Simon Josefsson  <simon@josefsson.org>
9528
9529         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
9530
9531 2008-10-22  Simon Josefsson  <simon@josefsson.org>
9532
9533         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
9534
9535 2008-10-22  Eric Blake  <ebb9@byu.net>
9536
9537         glthread/thread: avoid compiler warning
9538         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
9539         Add unreachable abort to silence compiler.
9540
9541 2008-10-22  Eric Blake  <ebb9@byu.net>
9542
9543         netdb: also supply struct addrinfo for cygwin 1.5.x
9544         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
9545         older cygwin.
9546         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
9547         cygwin.
9548         * doc/posix-headers/netdb.texi (netdb.h): Document this.
9549
9550 2008-10-22  Bruno Haible  <bruno@clisp.org>
9551
9552         * users.txt: Update entry about pspp.
9553
9554 2008-10-21  Bruno Haible  <bruno@clisp.org>
9555
9556         Simplification.
9557         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
9558         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
9559
9560         Simplification.
9561         * lib/ioctl.c (ioctl): Don't undefine.
9562         * lib/socket.c (socket): Don't undefine.
9563
9564         Remove unused module indicator macros.
9565         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
9566         GNULIB_$1 as a C macro.
9567
9568         * doc/posix-functions/close.texi: Undo last change.
9569         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
9570         Windows platforms.
9571
9572 2008-10-21  Bruno Haible  <bruno@clisp.org>
9573
9574         Add gethostname() declaration to <unistd.h>.
9575         * lib/unistd.in.h (gethostname): New declaration.
9576         * lib/gethostname.c: Include <unistd.h>.
9577         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
9578         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
9579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
9580         and HAVE_GETHOSTNAME.
9581         * modules/gethostname (Depends-on): Add unistd.
9582         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9583         (Include): Specify <unistd.h>.
9584         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
9585         HAVE_GETHOSTNAME.
9586         * tests/test-gethostname.c: Include <unistd.h> first.
9587
9588 2008-10-21  Bruno Haible  <bruno@clisp.org>
9589
9590         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
9591         * modules/select-tests (Depends-on): Likewise.
9592         Reported by Simon Josefsson.
9593
9594 2008-10-21  Simon Josefsson  <simon@josefsson.org>
9595
9596         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
9597         * lib/accept.c: New file, based on winsock.c.
9598         * lib/bind.c: New file, based on winsock.c.
9599         * lib/connect.c: New file, based on winsock.c.
9600         * lib/getpeername.c: New file, based on winsock.c.
9601         * lib/getsockname.c: New file, based on winsock.c.
9602         * lib/getsockopt.c: New file, based on winsock.c.
9603         * lib/ioctl.c: New file, based on winsock.c.
9604         * lib/listen.c: New file, based on winsock.c.
9605         * lib/recv.c: New file, based on winsock.c.
9606         * lib/recvfrom.c: New file, based on winsock.c.
9607         * lib/send.c: New file, based on winsock.c.
9608         * lib/sendto.c: New file, based on winsock.c.
9609         * lib/setsockopt.c: New file, based on winsock.c.
9610         * lib/shutdown.c: New file, based on winsock.c.
9611         * lib/socket.c: New file, based on winsock.c.
9612         * lib/w32sock.h: New file, based on winsock.c.
9613         * lib/winsock.c: Remove file.
9614         * modules/accept: Likewise.
9615         * modules/bind: Likewise.
9616         * modules/connect: Likewise.
9617         * modules/getpeername: Likewise.
9618         * modules/getsockname: Likewise.
9619         * modules/getsockopt: Likewise.
9620         * modules/ioctl: Likewise.
9621         * modules/listen: Likewise.
9622         * modules/recv: Likewise.
9623         * modules/recvfrom: Likewise.
9624         * modules/send: Likewise.
9625         * modules/sendto: Likewise.
9626         * modules/setsockopt: Likewise.
9627         * modules/shutdown: Likewise.
9628         * modules/socket: Use socket.c instead of winsock.c.
9629         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
9630         * doc/posix-functions/accept.texi: Doc fix.
9631         * doc/posix-functions/bind.texi: Doc fix.
9632         * doc/posix-functions/close.texi: Doc fix.
9633         * doc/posix-functions/connect.texi: Doc fix.
9634         * doc/posix-functions/getpeername.texi: Doc fix.
9635         * doc/posix-functions/getsockname.texi: Doc fix.
9636         * doc/posix-functions/getsockopt.texi: Doc fix.
9637         * doc/posix-functions/ioctl.texi: Doc fix.
9638         * doc/posix-functions/listen.texi: Doc fix.
9639         * doc/posix-functions/recv.texi: Doc fix.
9640         * doc/posix-functions/recvfrom.texi: Doc fix.
9641         * doc/posix-functions/send.texi: Doc fix.
9642         * doc/posix-functions/sendto.texi: Doc fix.
9643         * doc/posix-functions/setsockopt.texi: Doc fix.
9644         * doc/posix-functions/shutdown.texi: Doc fix.
9645         * doc/posix-functions/socket.texi: Doc fix.
9646
9647 2008-10-20  Bruno Haible  <bruno@clisp.org>
9648
9649         Take into account the role of SIGABRT_COMPAT on Windows 2008.
9650         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
9651         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
9652         as an alias for SIGABRT.
9653         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
9654         (sigaction): Map it to SIGABRT.
9655         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
9656
9657 2008-10-20  Bruno Haible  <bruno@clisp.org>
9658
9659         * lib/fts.c: Don't include lstat.h.
9660         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
9661
9662         Move the lstat() declaration to <sys/stat.h>.
9663         * lib/lstat.h: Remove file.
9664         * lib/sys_stat.in.h: Add special invocation convention.
9665         (lstat): New declaration.
9666         * lib/lstat.c (orig_lstat): New function.
9667         (rpl_lstat): Use orig_lstat instead of lstat.
9668         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
9669         AC_C_INLINE. Set REPLACE_LSTAT.
9670         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
9671         and REPLACE_LSTAT.
9672         * modules/lstat (Files): Remove lib/lstat.h.
9673         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
9674         (Include): Specify <sys/stat.h> instead of lstat.h.
9675         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
9676         REPLACE_LSTAT.
9677         * NEWS: Mention the change.
9678
9679 2008-10-20  Bruno Haible  <bruno@clisp.org>
9680
9681         * modules/posix_spawn-tests: New file.
9682         * tests/test-posix_spawn3.c: New file.
9683
9684 2008-10-20  Bruno Haible  <bruno@clisp.org>
9685
9686         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
9687         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
9688         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
9689         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
9690         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
9691
9692 2008-10-20  Bruno Haible  <bruno@clisp.org>
9693
9694         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
9695         of posix_spawn on AIX 5.3.
9696
9697 2008-10-20  Bruno Haible  <bruno@clisp.org>
9698
9699         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
9700
9701 2008-10-20  Bruno Haible  <bruno@clisp.org>
9702
9703         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
9704         of AC_LANG_PROGRAM.
9705
9706 2008-10-20  Simon Josefsson  <simon@josefsson.org>
9707
9708         * lib/netdb.in.h: Don't define GNU specific constants until they
9709         are supported or needed.  Reported by Bruno Haible
9710         <bruno@clisp.org>.
9711
9712 2008-10-20  Simon Josefsson  <simon@josefsson.org>
9713
9714         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
9715
9716 2008-10-20  Simon Josefsson  <simon@josefsson.org>
9717
9718         * lib/getaddrinfo.h: Remove file.
9719         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
9720         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
9721         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
9722         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
9723         * modules/netdb: Substitute GNULIB_GETADDRINFO.
9724         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
9725         * tests/test-getaddrinfo.c: Likewise.
9726         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
9727         * NEWS: Mention change.
9728
9729 2008-10-19  Bruno Haible  <bruno@clisp.org>
9730
9731         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
9732
9733 2008-10-19  Bruno Haible  <bruno@clisp.org>
9734
9735         * lib/wait-process.c: Include simply <sys/wait.h>.
9736         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
9737         WIFSTOPPED): Remove fallback definitions.
9738         * modules/wait-process (Depends-on): Add sys_wait.
9739
9740         New module 'sys_wait'.
9741         * modules/sys_wait: New file.
9742         * lib/sys_wait.in.h: New file, partially copied from
9743         lib/wait-process.c.
9744         * m4/sys_wait_h.m4: New file.
9745         * doc/posix-headers/sys_wait.texi: Mention the new module.
9746
9747 2008-10-19  Bruno Haible  <bruno@clisp.org>
9748
9749         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
9750
9751 2008-10-19  Bruno Haible  <bruno@clisp.org>
9752
9753         Assume that waitpid() fills an 'int' status, not a 'union wait'.
9754         * lib/wait-process.c (WAIT_T): Remove type.
9755         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
9756         (wait_subprocess): Update.
9757
9758 2008-10-19  Bruno Haible  <bruno@clisp.org>
9759
9760         New module 'atoll'.
9761         * modules/atoll: New file.
9762         * lib/stdlib.in.h (atoll): New declaration.
9763         * lib/atoll.c: New file, from glibc with modifications.
9764         * m4/atoll.m4: New file.
9765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
9766         HAVE_ATOLL.
9767         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
9768         * doc/posix-functions/atoll.texi: Mention the new module.
9769
9770 2008-10-19  Bruno Haible  <bruno@clisp.org>
9771
9772         Add strtoull() declaration to <stdlib.h>.
9773         * lib/stdlib.in.h (strtoull): New declaration.
9774         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
9775         Set HAVE_STRTOULL.
9776         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
9777         HAVE_STRTOULL.
9778         * modules/strtoull (Depends-on): Add stdlib.
9779         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
9780         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
9781         HAVE_STRTOULL.
9782
9783 2008-10-19  Bruno Haible  <bruno@clisp.org>
9784
9785         Add strtoll() declaration to <stdlib.h>.
9786         * lib/stdlib.in.h (strtoll): New declaration.
9787         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
9788         Set HAVE_STRTOLL.
9789         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
9790         HAVE_STRTOLL.
9791         * modules/strtoll (Depends-on): Add stdlib.
9792         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
9793         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
9794
9795 2008-10-19  Bruno Haible  <bruno@clisp.org>
9796
9797         * modules/bcopy (Depends-on): Add strings.
9798         (Include): Specify <strings.h>.
9799
9800 2008-10-19  Bruno Haible  <bruno@clisp.org>
9801
9802         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
9803
9804 2008-10-19  Bruno Haible  <bruno@clisp.org>
9805
9806         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
9807         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
9808         mingw.
9809
9810 2008-10-19  Bruno Haible  <bruno@clisp.org>
9811
9812         * lib/atanl.c: Don't include isnanl.h.
9813         * lib/cosl.c: Likewise.
9814         * lib/ldexpl.c: Likewise.
9815         * lib/logl.c: Likewise.
9816         * lib/sinl.c: Likewise.
9817         * lib/sqrtl.c: Likewise.
9818         * lib/tanl.c: Likewise.
9819
9820         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
9821         * lib/isnanf.h: Remove file.
9822         * lib/isnand.h: Remove file.
9823         * lib/isnanl.h: Remove file.
9824         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
9825         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
9826         macros.
9827         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
9828         HAVE_ISNANF, don't define it as a C macro.
9829         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
9830         HAVE_ISNAND, don't define it as a C macro.
9831         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
9832         HAVE_ISNANL, don't define it as a C macro.
9833         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
9834         HAVE_ISNAN[FDL].
9835         * modules/isnanf (Files): Remove lib/isnanf.h.
9836         (Depends-on): Add math.
9837         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9838         (Include): Specify <math.h> instead of isnanf.h.
9839         * modules/isnand (Files): Remove lib/isnand.h.
9840         (Depends-on): Add math.
9841         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9842         (Include): Specify <math.h> instead of isnand.h.
9843         * modules/isnanl (Files): Remove lib/isnanl.h.
9844         (Depends-on): Add math.
9845         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9846         (Include): Specify <math.h> instead of isnanl.h.
9847         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
9848         HAVE_ISNAN[FDL].
9849         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
9850         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
9851         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
9852         * NEWS: Mention the change.
9853
9854 2008-10-18  Bruno Haible  <bruno@clisp.org>
9855
9856         Add getusershell(), setusershell(), endusershell() declarations to
9857         <unistd.h>.
9858         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
9859         declarations.
9860         * lib/getusershell.c: Include unistd.h.
9861         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
9862         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
9863         HAVE_GETUSERSHELL.
9864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
9865         and HAVE_GETUSERSHELL.
9866         * modules/getusershell (Depends-on): Add unistd, extensions.
9867         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9868         (Include): Specify <unistd.h>.
9869         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
9870         HAVE_GETUSERSHELL.
9871
9872 2008-10-18  Bruno Haible  <bruno@clisp.org>
9873
9874         Add a getloadavg() declaration to <stdlib.h>.
9875         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
9876         getloadavg declaration.
9877         (getloadavg): New declaration.
9878         * lib/getloadavg.c: Include <stdlib.h> first.
9879         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
9880         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
9881         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
9882         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
9883         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
9884         * modules/getloadavg (Depends-on): Add stdlib, extensions.
9885         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
9886         (Include): Specify <stdlib.h>.
9887         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
9888         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
9889
9890 2008-10-18  Bruno Haible  <bruno@clisp.org>
9891
9892         * lib/dirchownmod.c: Don't include lchmod.h.
9893
9894         Move the lchmod() declaration to <sys/stat.h>.
9895         * lib/lchmod.h: Remove file.
9896         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
9897         (lchmod): New declaration, moved here from lib/lchown.h.
9898         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
9899         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
9900         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
9901         and HAVE_LCHMOD.
9902         * modules/lchmod (Files): Remove lib/lchmod.h.
9903         (Depends-on): Add sys_stat, extensions.
9904         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
9905         (Include): Specify <sys/stat.h> instead of lchmod.h.
9906         * modules/sys_stat (Depends-on): Add link-warning.
9907         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
9908         definition of GL_LINK_WARNING.
9909         * NEWS: Mention the change.
9910
9911 2008-10-18  Bruno Haible  <bruno@clisp.org>
9912
9913         * lib/fchdir.c: Don't include dirfd.h.
9914         * lib/fts.c: Likewise.
9915         * lib/getcwd.c: Likewise.
9916         * lib/glob.c: Likewise.
9917
9918         Move the dirfd() declaration to <dirent.h>.
9919         * lib/dirfd.h: Remove file.
9920         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
9921         (dirfd): New declaration.
9922         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
9923         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
9924         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
9925         HAVE_DECL_DIRFD.
9926         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
9927         HAVE_DECL_DIRFD.
9928         * modules/dirfd (Files): Remove lib/dirfd.h.
9929         (Depends-on): Add dirent, extensions.
9930         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
9931         (Include): Specify <dirent.h> instead of dirfd.h.
9932         * modules/dirent (Depends-on): Add link-warning.
9933         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
9934         definition of GL_LINK_WARNING.
9935         * NEWS: Mention the change.
9936
9937 2008-10-18  Bruno Haible  <bruno@clisp.org>
9938
9939         Move the euidaccess() declaration to <unistd.h>.
9940         * lib/euidaccess.h: Remove file.
9941         * lib/unistd.in.h (euidaccess): New declaration.
9942         * lib/euidaccess.c: Don't include euidaccess.h.
9943         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
9944         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
9945         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
9946         and HAVE_EUIDACCESS.
9947         * modules/euidaccess (Files): Remove lib/euidaccess.h.
9948         (Depends-on): Add unistd.
9949         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9950         (Include): Specify <unistd.h> instead of euidaccess.h.
9951         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
9952         HAVE_EUIDACCESS.
9953         * NEWS: Mention the change.
9954
9955 2008-10-18  Bruno Haible  <bruno@clisp.org>
9956
9957         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
9958
9959         Move the getdomainname() declaration to <unistd.h>.
9960         * lib/getdomainname.h: Remove file.
9961         * lib/unistd.in.h (getdomainname): New declaration.
9962         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
9963         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
9964         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
9965         HAVE_GETDOMAINNAME.
9966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9967         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
9968         * modules/getdomainname (Files): Remove lib/getdomainname.h.
9969         (Depends-on): Add unistd, extensions.
9970         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9971         (Includes): Specify <unistd.h> instead of getdomainname.h.
9972         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
9973         HAVE_GETDOMAINNAME.
9974         * NEWS: Mention the change.
9975
9976 2008-10-18  Bruno Haible  <bruno@clisp.org>
9977
9978         * modules/dirent: New file.
9979         * m4/dirent_h.m4: New file.
9980         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
9981         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
9982         * modules/fchdir (Files): Remove lib/dirent.in.h.
9983         (Depends-on): Add dirent.
9984         (Makefile.am): Move rules to modules/dirent.
9985         * doc/posix-headers/dirent.texi: Mention the new module.
9986
9987 2008-10-18  Bruno Haible  <bruno@clisp.org>
9988
9989         Avoid -Wunused-parameter warnings in public gnulib header files.
9990         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
9991         macro.
9992         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
9993
9994 2008-10-18  Bruno Haible  <bruno@clisp.org>
9995
9996         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
9997         * doc/glibc-functions/error.texi: Mention the module 'error'.
9998         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
9999         * doc/glibc-functions/getdomainname.texi: Mention the module
10000         'getdomainname'.
10001         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
10002         * doc/glibc-functions/getpagesize.texi: Mention the module
10003         'getpagesize'.
10004         * doc/glibc-functions/getusershell.texi: Mention the module
10005         'getusershell'.
10006         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
10007         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
10008         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
10009         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
10010         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
10011         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
10012         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
10013         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
10014         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
10015         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
10016         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
10017         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
10018         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
10019         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
10020
10021 2008-10-17  Bruno Haible  <bruno@clisp.org>
10022
10023         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
10024         HP-UX and IRIX, use -0.0L.
10025         * tests/test-ceill.c (minus_zero): Likewise.
10026         * tests/test-floorl.c (minus_zero): Likewise.
10027         * tests/test-frexpl.c (minus_zero): Likewise.
10028         * tests/test-isnan.c (minus_zerol): Likewise.
10029         * tests/test-isnanl.h (minus_zero): Likewise.
10030         * tests/test-ldexpl.c (minus_zero): Likewise.
10031         * tests/test-roundl.c (minus_zero): Likewise.
10032         * tests/test-signbit.c (minus_zerol): Likewise.
10033         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
10034         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
10035         * tests/test-truncl.c (minus_zero): Likewise.
10036         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
10037         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
10038         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
10039         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
10040
10041 2008-10-17  Bruno Haible  <bruno@clisp.org>
10042
10043         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
10044         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
10045         that it gets activated only for gcc >= 3.0.
10046         * lib/dirent.in.h: Likewise.
10047         * lib/errno.in.h: Likewise.
10048         * lib/fcntl.in.h: Likewise.
10049         * lib/float.in.h: Likewise.
10050         * lib/iconv.in.h: Likewise.
10051         * lib/inttypes.in.h: Likewise.
10052         * lib/locale.in.h: Likewise.
10053         * lib/math.in.h: Likewise.
10054         * lib/netdb.in.h: Likewise.
10055         * lib/netinet_in.in.h: Likewise.
10056         * lib/search.in.h: Likewise.
10057         * lib/signal.in.h: Likewise.
10058         * lib/spawn.in.h: Likewise.
10059         * lib/stdarg.in.h: Likewise.
10060         * lib/stdint.in.h: Likewise.
10061         * lib/stdio.in.h: Likewise.
10062         * lib/stdlib.in.h: Likewise.
10063         * lib/string.in.h: Likewise.
10064         * lib/strings.in.h: Likewise.
10065         * lib/sys_file.in.h: Likewise.
10066         * lib/sys_ioctl.in.h: Likewise.
10067         * lib/sys_select.in.h: Likewise.
10068         * lib/sys_socket.in.h: Likewise.
10069         * lib/sys_stat.in.h: Likewise.
10070         * lib/sys_time.in.h: Likewise.
10071         * lib/sysexits.in.h: Likewise.
10072         * lib/time.in.h: Likewise.
10073         * lib/unistd.in.h: Likewise.
10074         * lib/wchar.in.h: Likewise.
10075         * lib/wctype.in.h: Likewise.
10076         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
10077
10078 2008-10-17  Jim Meyering  <meyering@redhat.com>
10079
10080         ignore-value: don't depend on inline module
10081         * modules/ignore-value (Depends-on): Remove 'inline'.
10082         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
10083         Suggestion from Bruno Haible.
10084
10085 2008-10-17  Bruno Haible  <bruno@clisp.org>
10086
10087         New implementation of condition variables for Win32.
10088         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
10089         (gl_linked_waitqueue_t): New type.
10090         (gl_cond_t): Use it.
10091         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
10092         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
10093         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
10094         (glthread_cond_init_func, glthread_cond_wait_func,
10095         glthread_cond_timedwait_func, glthread_cond_signal_func,
10096         glthread_cond_broadcast_func, glthread_cond_destroy_func):
10097         Reimplemented on the basis of gl_linked_waitqueue_t.
10098         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
10099         gl_waitqueue_t.
10100         (gl_rwlock_t): Update.
10101         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
10102
10103 2008-10-17  Simon Josefsson  <simon@josefsson.org>
10104
10105         * modules/recvfrom (Depends-on): Add dependency on getpeername.
10106         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
10107
10108 2008-10-17  Jim Meyering  <meyering@redhat.com>
10109
10110         ignore-value: new module
10111         * modules/ignore-value: New file.
10112         * lib/ignore-value.h: New file.
10113         * MODULES.html.sh (Compiler warning management): New section,
10114         just for this module.  More to come.
10115
10116 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
10117
10118         open-safer.c: avoid 'signed and unsigned in conditional...' warning
10119         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
10120         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
10121
10122 2008-10-16  Jim Meyering  <meyering@redhat.com>
10123
10124         openat-die.c: avoid 'no previous prototype' warning
10125         * lib/openat-die.c: Include "openat.h".
10126         Reported by Reuben Thomas <rrt@sc3d.org>.
10127
10128 2008-10-16  Simon Josefsson  <simon@josefsson.org>
10129
10130         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
10131         * lib/netdb.in.h: Fix typo.
10132         Reported by Bruno Haible  <bruno@clisp.org>
10133
10134         * lib/netdb.in.h: Include sys/socket.h for platforms without
10135         netdb.h, to get structures like hostent on MinGW.
10136         * modules/netdb (Depends-on): Add sys_socket.
10137
10138 2008-10-15  Simon Josefsson  <simon@josefsson.org>
10139
10140         * modules/netdb, modules/netdb-tests: New file.
10141         * m4/netdb_h.m4: New file.
10142         * lib/netdb.in.h: Add, currently just an empty file pending
10143         definitions.
10144         * tests/test-netdb.c: New file.
10145         * doc/posix-headers/netdb.texi: Mention that we replace it if
10146         needed.
10147         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
10148         netdb.
10149
10150 2008-10-15  Simon Josefsson  <simon@josefsson.org>
10151
10152         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
10153         with code.
10154
10155 2008-10-13  Bruno Haible  <bruno@clisp.org>
10156
10157         * lib/glthread/cond.c (glthread_cond_wait_func,
10158         glthread_cond_timedwait_func): Add a comment.
10159
10160 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
10161
10162         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
10163         * tests/test-select.c: Likewise,
10164
10165 2008-10-13  Bruno Haible  <bruno@clisp.org>
10166
10167         * lib/glthread/cond.c (glthread_cond_wait_func,
10168         glthread_cond_timedwait_func): Fix variable name.
10169         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
10170
10171 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
10172
10173         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
10174         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
10175         struct sockaddr.sa_len.
10176         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
10177
10178 2008-10-13  Simon Josefsson  <simon@josefsson.org>
10179
10180         * build-aux/pmccabe2html: Add css and css_url parameters.
10181
10182 2008-10-12  Bruno Haible  <bruno@clisp.org>
10183
10184         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
10185         calling aclx_get.
10186         Reported by Rainer Tammer <tammer@tammer.net>.
10187
10188 2008-10-12  Bruno Haible  <bruno@clisp.org>
10189
10190         Use msvcrt aware primitives for creation/termination of Win32 threads.
10191         * lib/glthread/thread.c: Include <process.h>.
10192         (glthread_create_func): Use _beginthreadex instead of CreateThread.
10193         (wrapper_func): Update signature.
10194         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
10195
10196 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
10197             Bruno Haible  <bruno@clisp.org>
10198
10199         Provide a Win32 implementation of the 'cond' module.
10200         * lib/glthread/cond.h [USE_WIN32]: New implementation.
10201         * lib/glthread/cond.c (glthread_cond_init_func,
10202         glthread_cond_wait_func, glthread_cond_timedwait_func,
10203         glthread_cond_signal_func, glthread_cond_broadcast_func,
10204         glthread_cond_destroy_func) [USE_WIN32]: New functions.
10205         * modules/cond (Dependencies): Add gettimeofday.
10206
10207 2008-10-11  Bruno Haible  <bruno@clisp.org>
10208
10209         Make sleep work on older versions of mingw.
10210         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
10211         only whether it exists.
10212         * doc/posix-functions/sleep.texi: Mention the problem with older
10213         versions of mingw.
10214
10215 2008-10-11  Bruno Haible  <bruno@clisp.org>
10216
10217         New module 'shutdown'.
10218         * modules/shutdown: New file.
10219         * lib/sys_socket.in.h (shutdown): New declaration.
10220         * lib/winsock.c (shutdown): New function.
10221         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10222         GNULIB_SHUTDOWN.
10223         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
10224         * doc/posix-functions/shutdown.texi: Document the new module.
10225
10226 2008-10-11  Jim Meyering  <meyering@redhat.com>
10227
10228         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
10229
10230 2008-10-11  Bruno Haible  <bruno@clisp.org>
10231
10232         New module 'fclose'.
10233         * modules/fclose: New file.
10234         * lib/stdio.in.h (fclose): New declaration.
10235         * lib/fclose.c: New file.
10236         * m4/fclose.m4: New file.
10237         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
10238         REPLACE_FCLOSE.
10239         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
10240         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
10241         REPLACE_FCLOSE.
10242         * modules/close (Depends-on): fclose.
10243         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
10244
10245 2008-10-11  Bruno Haible  <bruno@clisp.org>
10246
10247         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
10248         set errno and don't call _close.
10249
10250 2008-10-10  Bruno Haible  <bruno@clisp.org>
10251
10252         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
10253         ACL, not afterwards. Fixes test failure on Cygwin.
10254
10255 2008-10-09  Ben Pfaff  <blp@gnu.org>
10256
10257         * build-aux/announce-gen: Fix gnulib version related part of usage
10258         message.  Die with a useful error message if no tarballs are
10259         found.
10260
10261 2008-10-10  Jim Meyering  <meyering@redhat.com>
10262
10263         bootstrap: use git's --depth=N option only if it's supported
10264         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
10265         recognize the --depth option.  Reported by Pádraig Brady.
10266
10267 2008-10-09  Bruno Haible  <bruno@clisp.org>
10268
10269         New module 'ioctl'.
10270         * modules/ioctl: New file.
10271         * lib/sys_socket.in.h (ioctl): Remove declaration.
10272         * lib/winsock.c: Include <sys/ioctl.h>.
10273         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
10274         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
10275         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
10276         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
10277         * doc/posix-functions/ioctl.texi: Mention the new module.
10278
10279 2008-10-09  Bruno Haible  <bruno@clisp.org>
10280
10281         New module 'sys_ioctl'.
10282         * lib/sys_ioctl.in.h: New file.
10283         * m4/sys_ioctl_h.m4: New file.
10284         * modules/sys_ioctl: New file.
10285         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
10286
10287 2008-10-09  Bruno Haible  <bruno@clisp.org>
10288
10289         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
10290         * lib/winsock.c: Include <stdarg.h>.
10291         (rpl_ioctl): Change to second argument 'int' and then varargs.
10292
10293 2008-10-09  Bruno Haible  <bruno@clisp.org>
10294
10295         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
10296         when the sys_socket module is present and the system has <winsock2.h>.
10297
10298 2008-10-09  Bruno Haible  <bruno@clisp.org>
10299
10300         * doc/posix-functions/close.texi: Mention module 'close' instead of
10301         module 'sys_socket'.
10302
10303 2008-10-09  Bruno Haible  <bruno@clisp.org>
10304
10305         * doc/glibc-headers/sys_ioctl.texi: New file.
10306         * doc/gnulib.texi: Include it.
10307
10308 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
10309             Bruno Haible  <bruno@clisp.org>
10310
10311         Combine the two replacements of 'close'.
10312         * lib/sys_socket.in.h (close): Define to a reminder to include
10313         <unistd.h>.
10314         (_gl_close_fd_maybe_socket): New declaration.
10315         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
10316         * lib/winsock.c (close): Remove undefinition.
10317         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
10318         needed for the gnulib module 'close'.
10319         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
10320         define to an error symbol or to a warning, if suitable.
10321         * lib/close.c: Include <sys/socket.h>.
10322         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
10323         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
10324         UNISTD_H_HAVE_WINSOCK2_H.
10325         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
10326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10327         UNISTD_H_HAVE_WINSOCK2_H.
10328         * modules/sys_socket (Files): Add m4/unistd_h.m4.
10329         (configure.ac): Set a module indicator.
10330         (Makefile.am): Substitute GNULIB_CLOSE.
10331         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
10332         * modules/poll-tests (Depends-on): Add close.
10333         * modules/select-tests (Depends-on): Likewise.
10334
10335 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
10336             Bruno Haible  <bruno@clisp.org>
10337
10338         New module 'close'.
10339         * modules/close: New file.
10340         * lib/unistd.in.h (close): Move declaration out of the
10341         FCHDIR_REPLACEMENT scope.
10342         (_gl_unregister_fd): New declaration.
10343         * lib/close.c: New file.
10344         * lib/fchdir.c (rpl_close): Remove function.
10345         * m4/close.m4: New file.
10346         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
10347         close.
10348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
10349         REPLACE_CLOSE.
10350         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
10351         REPLACE_CLOSE.
10352         * modules/fchdir (Depends-on): Add close.
10353
10354 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
10355             Bruno Haible  <bruno@clisp.org>
10356
10357         * lib/fcntl.in.h (open): Simplify conditionals.
10358         (_gl_register_fd): New declaration.
10359         * lib/fchdir.c (rpl_open): Remove function.
10360         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
10361         also.
10362         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
10363         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
10364         open.
10365
10366 2008-10-09  Jim Meyering  <meyering@redhat.com>
10367
10368         GNUmakefile: use the more name-space-friendly "_version"
10369         * top/GNUmakefile (_dummy): Update.
10370         (_version): Rename from "version".
10371
10372 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
10373             Bruno Haible  <bruno@clisp.org>
10374
10375         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
10376         rpl_close.
10377         (_gl_register_fd): New function, extracted from rpl_open.
10378         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
10379         (rpl_open, rpl_opendir): Use _gl_register_fd.
10380
10381 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
10382
10383         Fix organization of 'open' replacement.
10384         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
10385         (gl_FUNC_OPEN): Use it.
10386         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
10387
10388 2008-10-08  Bruno Haible  <bruno@clisp.org>
10389
10390         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
10391
10392 2008-10-08  Simon Josefsson  <simon@josefsson.org>
10393
10394         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
10395         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
10396         listen).
10397
10398 2008-10-08  Eric Blake  <ebb9@byu.net>
10399
10400         GNUmakefile: add 'make version' target
10401         * top/GNUmakefile (_curr-ver): Split version update rules...
10402         (version): ...into a target.
10403
10404 2008-10-07  Bruno Haible  <bruno@clisp.org>
10405
10406         Use a more portable replacement expression for -0.0L.
10407         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
10408         instead of -0.0L. Fix m4 quotation.
10409
10410         * tests/test-signbit.c: Include <float.h>.
10411         (minus_zero): New variable.
10412         (test_signbitl): Use minus_zero instead of -zero.
10413         * modules/signbit-tests (Depends-on): Add float.
10414
10415         * tests/test-ceill.c: Include <float.h>.
10416         (zero): Remove variable.
10417         (minus_zero): New variable.
10418         (main): Use minus_zero instead of -zero.
10419         * modules/ceill-tests (Depends-on): Add float.
10420
10421         * tests/test-floorl.c: Include <float.h>.
10422         (zero): Remove variable.
10423         (minus_zero): New variable.
10424         (main): Use minus_zero instead of -zero.
10425         * modules/floorl-tests (Depends-on): Add float.
10426
10427         * tests/test-roundl.c: Include <float.h>.
10428         (zero): Remove variable.
10429         (minus_zero): New variable.
10430         (main): Use minus_zero instead of -zero.
10431         * modules/roundl-tests (Depends-on): Add float.
10432
10433         * tests/test-truncl.c: Include <float.h>.
10434         (zero): Remove variable.
10435         (minus_zero): New variable.
10436         (main): Use minus_zero instead of -zero.
10437         * modules/truncl-tests (Depends-on): Add float.
10438
10439         * tests/test-frexpl.c (zero): Remove variable.
10440         (minus_zero): New variable.
10441         (main): Use minus_zero instead of -zero.
10442         * modules/frexpl-tests (Depends-on): Add float.
10443
10444         * tests/test-isnan.c (zerol): Remove variable.
10445         (minus_zerol): New variable.
10446         (test_long_double): Use minus_zerol instead of -zerol.
10447         * modules/isnan-tests (Depends-on): Add float.
10448
10449         * tests/test-isnanl.h (zero): Remove variable.
10450         (minus_zero): New variable.
10451         (main): Use minus_zero instead of -zero.
10452         * modules/isnanl-nolibm-tests (Depends-on): Add float.
10453         * modules/isnanl-tests (Depends-on): Add float.
10454
10455         * tests/test-ldexpl.c (zero): Remove variable.
10456         (minus_zero): New variable.
10457         (main): Use minus_zero instead of -zero.
10458         * modules/ldexpl-tests (Depends-on): Add float.
10459
10460         * tests/test-snprintf-posix.h (zerol): Remove variable.
10461         (minus_zerol): New variable.
10462         (test_function): Use minus_zerol instead of -zerol.
10463         * modules/snprintf-posix-tests (Depends-on): Add float.
10464         * modules/vsnprintf-posix-tests (Depends-on): Add float.
10465
10466         * tests/test-sprintf-posix.h (zerol): Remove variable.
10467         (minus_zerol): New variable.
10468         (test_function): Use minus_zerol instead of -zerol.
10469         * modules/sprintf-posix-tests (Depends-on): Add float.
10470         * modules/vsprintf-posix-tests (Depends-on): Add float.
10471
10472         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
10473         (minus_zerol): New variable.
10474         (test_function): Use minus_zerol instead of -zerol.
10475         * modules/vasnprintf-posix-tests (Depends-on): Add float.
10476
10477         * tests/test-vasprintf-posix.c (zerol): Remove variable.
10478         (minus_zerol): New variable.
10479         (test_function): Use minus_zerol instead of -zerol.
10480         * modules/vasprintf-posix-tests (Depends-on): Add float.
10481
10482 2008-10-07  Simon Josefsson  <simon@josefsson.org>
10483
10484         * MODULES.html.sh (Support for building documentation): Mention
10485         pmccabe2html.  Sort entries.
10486
10487         Add pmccabe2html module, from gnupdf.
10488         * build-aux/pmccabe.css: New file.
10489         * build-aux/pmccabe2html: New file.
10490         * m4/pmccabe2html.m4: New file.
10491         * modules/pmccabe2html: New file.
10492
10493 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
10494
10495         flock: new module
10496         * MODULES.html.sh: Add to list of modules.
10497         * lib/flock.c: flock implementation for Windows and Unix systems
10498         which have fcntl.
10499         * doc/glibc-functions/flock.texi: Update documentation.
10500         * lib/sys_file.in.h: <sys/file.h> header file.
10501         * m4/flock.m4: M4 macros.
10502         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
10503         * modules/flock: flock module.
10504         * modules/flock-tests: flock tests module.
10505         * modules/sys_file: sys/file.h module.
10506         * tests/test-flock.c: test suite for flock.
10507
10508 2008-10-06  Jim Meyering  <meyering@redhat.com>
10509
10510         bootstrap: check for LT_INIT more portably still ;-)
10511         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
10512         Spotted by Bruno Haible.
10513
10514 2008-10-06  Eric Blake  <ebb9@byu.net>
10515
10516         test-signbit: avoid tripping Irix cc bug on -0.0L
10517         * tests/test-signbit.c (minus_zerol): Delete, and replace with
10518         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
10519         entire testsuite consistent and avoids an Irix 6.2 bug.
10520
10521 2008-10-05  Bruno Haible  <bruno@clisp.org>
10522             Jim Meyering  <jim@meyering.net>
10523
10524         Add an option for ignoring EPIPE during close_stdout.
10525         * lib/closeout.h: Include <stdbool.h>.
10526         (close_stdout_set_ignore_EPIPE): New declaration.
10527         * lib/closeout.c: Include <stdbool.h>.
10528         (ignore_EPIPE): New variable.
10529         (close_stdout_set_ignore_EPIPE): New function.
10530         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
10531         * lib/close-stream.c (close_stream): Mention the possible EPIPE
10532         failure.
10533         * modules/closeout (Depends-on): Add stdbool.
10534
10535 2008-10-05  Bruno Haible  <bruno@clisp.org>
10536
10537         * modules/accept: New file.
10538         * modules/bind: New file.
10539         * modules/connect: New file.
10540         * modules/getpeername: New file.
10541         * modules/getsockname: New file.
10542         * modules/getsockopt: New file.
10543         * modules/listen: New file.
10544         * modules/recv: New file.
10545         * modules/recvfrom: New file.
10546         * modules/send: New file.
10547         * modules/sendto: New file.
10548         * modules/setsockopt: New file.
10549         * modules/socket: New file.
10550         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
10551         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
10552         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
10553         the particular module is requested. Add a link warning when the
10554         particular module is not requested.
10555         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
10556         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
10557         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
10558         the particular module is requested.
10559         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
10560         gl_SYS_SOCKET_H_DEFAULTS): New macros.
10561         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
10562         * modules/sys_socket (Depends-on): Add link-warning.
10563         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
10564         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
10565         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
10566         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
10567         GL_LINK_WARNING.
10568         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
10569         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
10570         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
10571         * doc/posix-functions/getpeername.texi: Mention the new module
10572         'getpeername'.
10573         * doc/posix-functions/getsockname.texi: Mention the new module
10574         'getsockname'.
10575         * doc/posix-functions/getsockopt.texi: Mention the new module
10576         'getsockopt'.
10577         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
10578         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
10579         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
10580         * doc/posix-functions/send.texi: Mention the new module 'send'.
10581         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
10582         * doc/posix-functions/setsockopt.texi: Mention the new module
10583         'setsockopt'.
10584         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
10585         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
10586         listen, connect, accept.
10587         * modules/select-tests (Depends-on): Likewise.
10588
10589 2008-10-05  Bruno Haible  <bruno@clisp.org>
10590
10591         * lib/winsock.c (strerror): Remove unused #undef.
10592         (rpl_close): Remove unused local variable.
10593
10594         * modules/sys_socket (Depends-on); Add errno.
10595
10596 2008-10-05  Bruno Haible  <bruno@clisp.org>
10597
10598         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
10599         (select): Add a link warning when the 'select' module is not used.
10600         * modules/sys_select (Depends-on): Add link-warning.
10601         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
10602         Suggested by Paolo Bonzini.
10603
10604 2008-10-05  Jim Meyering  <meyering@redhat.com>
10605
10606         bootstrap: check for LT_INIT more portably
10607         * build-aux/bootstrap: Avoid using grep -E, since it's not
10608         portable enough.  Suggestion from Bruno Haible.
10609
10610 2008-10-05  Bruno Haible  <bruno@clisp.org>
10611
10612         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
10613         as being fixed by gnulib.
10614
10615 2008-10-05  Bruno Haible  <bruno@clisp.org>
10616
10617         * modules/select-tests: New file, mostly copied from
10618         modules/sys_select-tests.
10619         * tests/test-select.c: New file, mostly copied from
10620         tests/test-sys_select.c.
10621         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
10622         * modules/sys_select-tests (Depends-on): Remove all dependencies.
10623         (Makefile.am): Remove test_sys_select_LDADD.
10624
10625         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
10626         to an undefined symbol, for an error message.
10627         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
10628         (gl_SYS_SELECT_H_DEFAULTS): New macro.
10629         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
10630         winsock-select.c here.
10631         * modules/sys_select (Files): Remove lib/winsock-select.c.
10632         (Depends-on): Remove alloca.
10633         (Makefile.am): Substitute GNULIB_SELECT.
10634         * modules/select: New file.
10635         * doc/posix-functions/select.texi: Update.
10636
10637 2008-10-05  Bruno Haible  <bruno@clisp.org>
10638
10639         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
10640         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
10641         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
10642         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
10643         getdtablesize.
10644         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
10645         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
10646
10647 2008-10-05  Bruno Haible  <bruno@clisp.org>
10648
10649         * modules/getdtablesize-tests: New file.
10650         * tests/test-getdtablesize.c: New file.
10651
10652         New module 'getdtablesize'.
10653         * lib/unistd.in.h (getdtablesize): New declaration.
10654         * lib/getdtablesize.c: New file.
10655         * m4/getdtablesize.m4: New file.
10656         * modules/getdtablesize: New file.
10657         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10658         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
10659         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
10660         HAVE_GETDTABLESIZE.
10661         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
10662
10663 2008-10-05  Bruno Haible  <bruno@clisp.org>
10664
10665         * modules/sched (Makefile.am): Fix typo.
10666         Reported by Simon Josefsson.
10667
10668 2008-10-05  Jim Meyering  <meyering@redhat.com>
10669
10670         bootstrap: check for LT_INIT, too
10671         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
10672         are deprecated.  Suggestion from Ralf Wildenhues.
10673
10674 2008-10-05  Bruno Haible  <bruno@clisp.org>
10675
10676         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
10677         overriding them by ours.
10678         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
10679
10680 2008-10-05  Jim Meyering  <meyering@redhat.com>
10681
10682         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
10683         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
10684         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
10685
10686 2008-10-04  Bruno Haible  <bruno@clisp.org>
10687
10688         * modules/dup2 (License): Change to LGPLv2+.
10689         * modules/sleep (License): Likewise.
10690         * modules/perror (License): Likewise.
10691         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
10692         Blake.
10693         * modules/signal (License): Likewise.
10694         * modules/sigprocmask (License): Likewise.
10695         * modules/raise (License): Change to LGPLv2+, with approval by Jim
10696         Meyering.
10697
10698 2008-10-04  Bruno Haible  <bruno@clisp.org>
10699
10700         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
10701         Reported by Rainer Tammer <tammer@tammer.net>.
10702
10703 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
10704             Bruno Haible  <bruno@clisp.org>
10705
10706         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
10707         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
10708         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
10709
10710 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
10711
10712         filevercmp: new module
10713         * lib/filevercmp.h: New function filevercmp comparing version strings.
10714         * lib/filevercmp.c: Implementation of filevercmp function.
10715         * modules/filevercmp: Module metadata.
10716         * tests/test-filevercmp.c: Unit test for new module.
10717         * modules/filevercmp-tests: Unit test metadata.
10718         * MODULES.html.sh: Add filevercmp module.
10719
10720 2008-10-03  Bruno Haible  <bruno@clisp.org>
10721
10722         * lib/c-ctype.h: Add comment.
10723         Reported by Jim Meyering.
10724
10725 2008-10-02  Bruno Haible  <bruno@clisp.org>
10726
10727         * modules/posix_spawn-internal (Depends-on): Add 'open'.
10728
10729 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
10730
10731         * build-aux/bootstrap: Allow renaming bootstrap, and change the
10732         name of bootstrap.conf accordingly.
10733
10734 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
10735
10736         * build-aux/bootstrap: Install git-merge-changelog configuration
10737         items into .gitconfig if needed.
10738
10739 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
10740
10741         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
10742         git repository, and initialize/update it accordingly.
10743
10744 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
10745
10746         * modules/fsync-tests: New file.
10747         * tests/test-fsync.c: New file.
10748
10749         New module 'fsync'.
10750         * lib/fsync.c: New file.
10751         * m4/fsync.m4: New file.
10752         * modules/fsync: New file.
10753         * lib/unistd.in.h (fsync): New declaration.
10754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
10755         GNULIB_FSYNC and HAVE_FSYNC.
10756         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
10757         * MODULES.html.sh (posix_functions): Add fsync.
10758         * doc/posix-functions/fsync.texi: Mention the new module.
10759
10760 2008-10-02  Jim Meyering  <meyering@redhat.com>
10761
10762         fts.c: sync with similar code from coreutils' remove.c
10763         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
10764         Guard also with "#if defined __linux__", since for now at least,
10765         this code is Linux-kernel-specific.
10766
10767 2008-10-02  Jim Meyering  <meyering@redhat.com>
10768
10769         fts: bug fixes
10770         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
10771         Include <sys/vfs.h>, not <sys/statfs.h>.
10772
10773         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
10774         Include <sys/vfs.h>, not <sys/statfs.h>.
10775
10776 2008-10-01  Bruno Haible  <bruno@clisp.org>
10777
10778         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
10779         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
10780         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
10781         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
10782         * doc/posix-functions/posix_spawnp.texi: Likewise.
10783         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
10784         whether posix_spawn actually works.
10785         * m4/pipe.m4 (gl_PIPE): Likewise.
10786         * modules/execute (Files): Add m4/posix_spawn.m4.
10787         * modules/pipe (Files): Add m4/posix_spawn.m4.
10788         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
10789
10790 2008-10-01  Jim Meyering  <meyering@redhat.com>
10791
10792         remove trailing spaces
10793         * NEWS: Likewise.
10794         * lib/poll.c (poll): Likewise.
10795         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
10796         * lib/winsock.c (rpl_close): Likewise.
10797         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
10798         * modules/yield: Likewise.
10799         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
10800         * tests/test-sys_select.c (connect_to_socket): Likewise.
10801
10802         fts.c: adjust a new interface to be more generally useful
10803         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
10804         (fts_build): Adjust caller.
10805
10806 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10807
10808         * modules/cond-tests: New file.
10809         * tests/test-cond.c: New file.
10810
10811 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10812             Bruno Haible  <bruno@clisp.org>
10813
10814         * modules/cond (Dependencies): Add errno, time.
10815         * lib/glthread/cond.h: Include <time.h>.
10816         (gl_cond_define, gl_cond_define_initialized): Use the same definition
10817         across platforms.
10818
10819 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10820             Bruno Haible  <bruno@clisp.org>
10821
10822         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
10823
10824 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10825             Bruno Haible  <bruno@clisp.org>
10826
10827         * modules/tls-tests (Depends-on): Add thread, yield.
10828         (configure.ac): Remove all checks.
10829         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
10830         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
10831         gl_thread_self): Remove definitions. Include glthread/thread.h and
10832         glthread/yield.h instead.
10833         (test_tls): Pass an additional NULL argument to gl_thread_join.
10834
10835 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10836             Bruno Haible  <bruno@clisp.org>
10837
10838         * modules/lock-tests (Depends-on): Add thread, yield.
10839         (configure.ac): Remove all checks.
10840         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
10841         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
10842         gl_thread_self): Remove definitions. Include glthread/thread.h and
10843         glthread/yield.h instead.
10844         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
10845         additional NULL argument to gl_thread_join.
10846
10847 2008-09-30  Bruno Haible  <bruno@clisp.org>
10848
10849         Fix the Win32 implementation of the 'thread' module.
10850         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
10851         pointer type.
10852         (gl_thread_self): Invoke gl_thread_self_func.
10853         (gl_thread_self_func): New declaration.
10854         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
10855         (do_init_self_key, init_self_key): New functions.
10856         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
10857         Remove some fields.
10858         (running_threads, running_lock): Remove variables.
10859         (get_current_thread_handle): New function.
10860         (gl_thread_self_func, wrapper_func, glthread_create_func,
10861         glthread_join_func, gl_thread_exit_func): Largely rewritten and
10862         simplified.
10863
10864 2008-09-30  Bruno Haible  <bruno@clisp.org>
10865
10866         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
10867         files.
10868
10869 2008-09-30  Jim Meyering  <meyering@redhat.com>
10870
10871         fts.m4: correct the test for statfs.f_type
10872         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
10873         when checking for statfs.f_type.
10874
10875 2008-09-15  Simon Josefsson  <simon@josefsson.org>
10876
10877         tests: avoid some compiler warnings
10878         * tests/test-memchr.c (main): Pass NULL indirectly.
10879         * tests/test-getdate.c (main): Remove unused variable 'ret'.
10880
10881 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
10882
10883         getdate.y: disallow countable dayshifts like "4 yesterday ago"
10884         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
10885         exactly specified dayshifts.
10886         (dayshift): New rule.
10887         (rel): Add dayshift.
10888         (relative_time_table) [tomorrow, yesterday, today, now]:
10889         Use tDAY_SHIFT in place of tDAY_UNIT.
10890         * tests/test-getdate.c: Add tests for now-disallowed countable
10891         dayshifts, e.g., "4 yesterday ago".
10892
10893 2008-09-29  Bruno Haible  <bruno@clisp.org>
10894
10895         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
10896         * tests/test-posix_spawn1.in.sh: Renamed from
10897         tests/test-posix_spawn.in.sh.
10898         * tests/test-posix_spawn2.c: New file.
10899         * tests/test-posix_spawn2.in.sh: New file.
10900         * modules/posix_spawnp-tests (Files): Update.
10901         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
10902
10903 2008-09-29  Bruno Haible  <bruno@clisp.org>
10904
10905         Propagate effects of putenv/setenv/unsetenv to child processes.
10906         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
10907         * lib/pipe.c (create_pipe): Likewise.
10908
10909 2008-09-29  Bruno Haible  <bruno@clisp.org>
10910
10911         Enable use of shell scripts as executables in mingw.
10912         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
10913         run the program as a shell script.
10914         * lib/pipe.c (create_pipe): Likewise.
10915         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
10916         resulting array.
10917
10918 2008-09-29  Eric Blake  <ebb9@byu.net>
10919
10920         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
10921
10922 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
10923
10924         * doc/posix-functions/accept.texi: Update mingw problems.
10925         * doc/posix-functions/bind.texi: Update mingw problems.
10926         * doc/posix-functions/close.texi: Update mingw problems.
10927         * doc/posix-functions/connect.texi: Update mingw problems.
10928         * doc/posix-functions/getpeername.texi: Update mingw problems.
10929         * doc/posix-functions/getsockname.texi: Update mingw problems.
10930         * doc/posix-functions/getsockopt.texi: Update mingw problems.
10931         * doc/posix-functions/ioctl.texi: Update mingw problems.
10932         * doc/posix-functions/listen.texi: Update mingw problems.
10933         * doc/posix-functions/recv.texi: Update mingw problems.
10934         * doc/posix-functions/recvfrom.texi: Update mingw problems.
10935         * doc/posix-functions/select.texi: Update mingw problems.
10936         * doc/posix-functions/send.texi: Update mingw problems.
10937         * doc/posix-functions/sendto.texi: Update mingw problems.
10938         * doc/posix-functions/setsockopt.texi: Update mingw problems.
10939         * doc/posix-functions/socket.texi: Update mingw problems.
10940
10941 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
10942             Bruno Haible  <bruno@clisp.org>
10943
10944         * lib/sys_select.in.h: Include sys/time.h.
10945         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
10946         * modules/sys_select: Depend on sys_time.
10947         * tests/test-sys_select.c: Test that sys/select.h defines struct
10948         timeval fully.
10949
10950 2008-09-29  Bruno Haible  <bruno@clisp.org>
10951
10952         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
10953         * lib/sys_select.in.h: Likewise.
10954
10955 2008-09-29  Bruno Haible  <bruno@clisp.org>
10956
10957         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
10958
10959 2008-09-29  Bruno Haible  <bruno@clisp.org>
10960
10961         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
10962         Set LIBSOCKET instead of augmenting LIBS.
10963         * modules/sockets (Link): New section.
10964         * modules/sockets-tests (test_sockets_LDADD): New variable.
10965         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
10966         * modules/poll-tests (test_poll_LDADD): New variable.
10967         * NEWS: Document the change.
10968
10969 2008-09-29  Bruno Haible  <bruno@clisp.org>
10970
10971         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
10972         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
10973         ARPA_INET_H directly.
10974         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
10975
10976 2008-09-28  Bruno Haible  <bruno@clisp.org>
10977
10978         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
10979         from gl_HEADER_SYS_SOCKET.
10980         (gl_HEADER_SYS_SOCKET): Invoke it.
10981         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10982
10983 2008-09-28  Bruno Haible  <bruno@clisp.org>
10984
10985         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
10986         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
10987         Needed on OSF/1 4.0.
10988
10989 2008-09-28  Bruno Haible  <bruno@clisp.org>
10990
10991         Override open more carefully.
10992         * lib/open.c (orig_open): New function.
10993         (rpl_open): Use orig_open instead of open.
10994         * lib/fcntl.in.h: Add special invocation convention.
10995         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
10996         (gl_FUNC_OPEN): Invoke it.
10997
10998         Override freopen more carefully.
10999         * lib/freopen.c (orig_freopen): New function.
11000         (rpl_freopen): Use orig_freopen instead of freopen.
11001         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
11002         (gl_FUNC_FREOPEN): Invoke it.
11003
11004         Override fopen more carefully.
11005         * lib/fopen.c (orig_fopen): New function.
11006         (rpl_fopen): Use orig_fopen instead of fopen.
11007         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
11008         (gl_FUNC_FOPEN): Invoke it.
11009         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
11010
11011 2008-09-28  Bruno Haible  <bruno@clisp.org>
11012
11013         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
11014         SIGPIPE.
11015
11016 2008-09-28  Bruno Haible  <bruno@clisp.org>
11017
11018         * tests/test-sigaction.c (handler, main): Disable the check whether
11019         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
11020         glibc systems with LinuxThreads.
11021
11022 2008-09-28  Bruno Haible  <bruno@clisp.org>
11023
11024         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
11025
11026         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
11027         with AIX xlc.
11028         * lib/fcntl.in.h (open): Likewise.
11029         Reported by Rainer Tammer <tammer@tammer.net>.
11030
11031 2008-09-28  Bruno Haible  <bruno@clisp.org>
11032
11033         * modules/posix_spawnp-tests: New file.
11034         * tests/test-posix_spawn.c: New file.
11035         * tests/test-posix_spawn.in.sh: New file.
11036
11037         New module 'posix_spawnp'.
11038         * modules/posix_spawnp: New file.
11039         * lib/spawnp.c: New file, from GNU libc with modifications.
11040         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
11041
11042         New module 'posix_spawn'.
11043         * modules/posix_spawn: New file.
11044         * lib/spawn.c: New file, from GNU libc with modifications.
11045         * doc/posix-functions/posix_spawn.texi: Mention the new module.
11046
11047         New module 'posix_spawnattr_destroy'.
11048         * modules/posix_spawnattr_destroy: New file.
11049         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
11050         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
11051         module.
11052
11053         New module 'posix_spawnattr_setsigmask'.
11054         * modules/posix_spawnattr_setsigmask: New file.
11055         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
11056         modifications.
11057         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
11058         new module.
11059
11060         New module 'posix_spawnattr_getsigmask'.
11061         * modules/posix_spawnattr_getsigmask: New file.
11062         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
11063         modifications.
11064         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
11065         new module.
11066
11067         New module 'posix_spawnattr_setsigdefault'.
11068         * modules/posix_spawnattr_setsigdefault: New file.
11069         * lib/spawnattr_setdefault.c: New file, from GNU libc with
11070         modifications.
11071         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
11072         new module.
11073
11074         New module 'posix_spawnattr_getsigdefault'.
11075         * modules/posix_spawnattr_getsigdefault: New file.
11076         * lib/spawnattr_getdefault.c: New file, from GNU libc with
11077         modifications.
11078         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
11079         new module.
11080
11081         New module 'posix_spawnattr_setschedpolicy'.
11082         * modules/posix_spawnattr_setschedpolicy: New file.
11083         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
11084         modifications.
11085         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
11086         new module.
11087
11088         New module 'posix_spawnattr_getschedpolicy'.
11089         * modules/posix_spawnattr_getschedpolicy: New file.
11090         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
11091         modifications.
11092         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
11093         new module.
11094
11095         New module 'posix_spawnattr_setschedparam'.
11096         * modules/posix_spawnattr_setschedparam: New file.
11097         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
11098         modifications.
11099         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
11100         new module.
11101
11102         New module 'posix_spawnattr_getschedparam'.
11103         * modules/posix_spawnattr_getschedparam: New file.
11104         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
11105         modifications.
11106         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
11107         new module.
11108
11109         New module 'posix_spawnattr_setpgroup'.
11110         * modules/posix_spawnattr_setpgroup: New file.
11111         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
11112         modifications.
11113         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
11114         module.
11115
11116         New module 'posix_spawnattr_getpgroup'.
11117         * modules/posix_spawnattr_getpgroup: New file.
11118         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
11119         modifications.
11120         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
11121         module.
11122
11123         New module 'posix_spawnattr_setflags'.
11124         * modules/posix_spawnattr_setflags: New file.
11125         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
11126         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
11127         module.
11128
11129         New module 'posix_spawnattr_getflags'.
11130         * modules/posix_spawnattr_getflags: New file.
11131         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
11132         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
11133         module.
11134
11135         New module 'posix_spawnattr_init'.
11136         * modules/posix_spawnattr_init: New file.
11137         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
11138         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
11139         module.
11140
11141         New module 'posix_spawn_file_actions_destroy'.
11142         * modules/posix_spawn_file_actions_destroy: New file.
11143         * lib/spawn_faction_destroy.c: New file, from GNU libc with
11144         modifications.
11145         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
11146         the new module.
11147
11148         New module 'posix_spawn_file_actions_addopen'.
11149         * modules/posix_spawn_file_actions_addopen: New file.
11150         * lib/spawn_faction_addopen.c: New file, from GNU libc with
11151         modifications.
11152         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
11153         the new module.
11154
11155         New module 'posix_spawn_file_actions_adddup2'.
11156         * modules/posix_spawn_file_actions_adddup2: New file.
11157         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
11158         modifications.
11159         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
11160         the new module.
11161
11162         New module 'posix_spawn_file_actions_addclose'.
11163         * modules/posix_spawn_file_actions_addclose: New file.
11164         * lib/spawn_faction_addclose.c: New file, from GNU libc with
11165         modifications.
11166         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
11167         the new module.
11168
11169         New module 'posix_spawn_file_actions_init'.
11170         * modules/posix_spawn_file_actions_init: New file.
11171         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
11172         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
11173         new module.
11174
11175         New module 'posix_spawn-internal'.
11176         * modules/posix_spawn-internal: New file.
11177         * lib/spawn_int.h: New file, from GNU libc with modifications.
11178         * lib/spawni.c: New file, from GNU libc with modifications.
11179         * m4/posix_spawn.m4: New file.
11180
11181         New module 'spawn'.
11182         * modules/spawn: New file.
11183         * lib/spawn.in.h: New file, from GNU libc with modifications.
11184         * m4/spawn_h.m4: New file.
11185         * doc/posix-headers/spawn.texi: Mention the new module.
11186
11187 2008-09-28  Bruno Haible  <bruno@clisp.org>
11188
11189         * modules/sched-tests: New file.
11190         * tests/test-sched.c: New file.
11191
11192         New module 'sched'.
11193         * modules/sched: New file.
11194         * lib/sched.in.h: New file.
11195         * m4/sched_h.m4: New file.
11196         * doc/posix-headers/sched.texi: Mention the new module.
11197
11198 2008-09-27  Eric Blake  <ebb9@byu.net>
11199
11200         Fix previous patch, and tweak references to $0.
11201         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
11202         (func_version, func_gnulib_dir): Don't call this program
11203         gnulib-tool.
11204         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
11205         with using $0 in function.
11206         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
11207         (func_fatal_error): Reuse the name the user invoked us with.
11208
11209 2008-09-27  Bruno Haible  <bruno@clisp.org>
11210
11211         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
11212         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
11213         (gl_ICONV_H): Not here.
11214         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
11215         instead of assigning ICONV_H directly.
11216
11217         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
11218         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
11219         WCHAR_H directly.
11220
11221 2008-09-27  Bruno Haible  <bruno@clisp.org>
11222
11223         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
11224         * modules/arpa_inet (Depends-on): Add link-warning.
11225         (Makefile.am): Insert the definition of GL_LINK-WARNING.
11226         * modules/unistd (Makefile.am): Likewise.
11227
11228 2008-09-26  Bruno Haible  <bruno@clisp.org>
11229
11230         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
11231         variables.
11232         (func_version): Essentially copied from gnulib-tool.
11233         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
11234         func_readlink): Copied from gnulib-tool.
11235
11236 2008-09-26  Bruno Haible  <bruno@clisp.org>
11237
11238         * gnulib-tool (func_version): Change directory to $gnulib_dir before
11239         invoking git-version-gen.
11240
11241 2008-09-26  Bruno Haible  <bruno@clisp.org>
11242
11243         * posix-modules: Update to directory names changed on 2008-01-19.
11244         Remove commas in output before splitting into words. No more need to
11245         avoid 'ftruncate' since 2007-02-19.
11246
11247 2008-09-26  Bruno Haible  <bruno@clisp.org>
11248
11249         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
11250
11251 2008-09-26  Bruno Haible  <bruno@clisp.org>
11252
11253         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
11254         * modules/fwriteerror (Depends-on): Add errno.
11255
11256 2008-09-26  Bruno Haible  <bruno@clisp.org>
11257
11258         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
11259         * tests/test-vc-list-files-cvs.sh: Likewise.
11260
11261 2008-09-26  Bruno Haible  <bruno@clisp.org>
11262
11263         * doc/posix-headers/sys_resource.texi: Reorder items.
11264
11265 2008-09-26  Jim Meyering  <meyering@redhat.com>
11266
11267         fts: tweak inode comparison function
11268         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
11269         inode numbers, as documented.
11270
11271         fts: sort dirent entries on inode number before traversing
11272         This avoids a quadratic, seek-related performance penalty when
11273         operating on a directory containing many entries (measurable at 10k;
11274         3.5 hours at 2 million entries with a cold cache) on certain types
11275         of file systems, including ext3 and ext4, but not tmpfs.
11276         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
11277         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
11278         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
11279         (fs_handles_readdir_ordered_dirents_efficiently): New function.
11280         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
11281         (fts_build): Set the stat.st_ino member from D_INO.
11282         If it is likely to be useful, sort dirent entries on inode number.
11283
11284         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
11285         and the struct statfs.f_type member.
11286         * modules/fts (Depends-on): Add d-ino.
11287
11288 2008-09-26  Bruno Haible  <bruno@clisp.org>
11289
11290         * modules/sigpipe-die (Depends-on): Add sigpipe.
11291
11292         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
11293         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
11294         and GNULIB_STDIO_H_SIGPIPE are set.
11295         * lib/stdio-write.c: New file.
11296         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
11297         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
11298         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
11299         REPLACE_STDIO_WRITE_FUNCS.
11300         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
11301         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
11302         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
11303         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
11304         * modules/stdio (Files): Add lib/stdio-write.c.
11305         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
11306         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
11307         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
11308         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
11309         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
11310         REPLACE_FPRINTF_POSIX.
11311         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
11312         REPLACE_PRINTF_POSIX.
11313         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
11314         REPLACE_VFPRINTF_POSIX.
11315         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
11316         REPLACE_VPRINTF_POSIX.
11317         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
11318         SIGPIPE issue.
11319         * doc/posix-functions/fputc.texi: Likewise.
11320         * doc/posix-functions/fputs.texi: Likewise.
11321         * doc/posix-functions/fwrite.texi: Likewise.
11322         * doc/posix-functions/printf.texi: Likewise.
11323         * doc/posix-functions/putc.texi: Likewise.
11324         * doc/posix-functions/putchar.texi: Likewise.
11325         * doc/posix-functions/puts.texi: Likewise.
11326         * doc/posix-functions/vfprintf.texi: Likewise.
11327         * doc/posix-functions/vprintf.texi: Likewise.
11328
11329         * modules/safe-write (Depends-on): Add write.
11330
11331         * modules/sigpipe-tests: New file.
11332         * tests/test-sigpipe.c: New file.
11333         * tests/test-sigpipe.sh: New file.
11334
11335         * modules/write: New file.
11336         * lib/unistd.in.h: Include <sys/types.h>.
11337         (write): New declaration.
11338         * lib/write.c: New file.
11339         * m4/write.m4: New file.
11340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11341         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
11342         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
11343         GNULIB_WRITE, REPLACE_WRITE.
11344         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
11345         and the SIGPIPE issue.
11346
11347         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
11348         (raise): New declaration.
11349         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
11350         (ext_signal): New function.
11351         (rpl_raise): New function.
11352         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11353         GNULIB_SIGNAL_H_SIGPIPE.
11354         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
11355         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
11356
11357         * modules/sigpipe: New file.
11358         * m4/sigpipe.m4: New file.
11359
11360 2008-09-25  Derek Price  <derek@ximbiot.com>
11361             Bruno Haible  <bruno@clisp.org>
11362
11363         * gnulib-tool (func_import): Report all license incompatibilities, not
11364         just the first one.
11365
11366 2008-09-25  Bruno Haible  <bruno@clisp.org>
11367
11368         * gnulib-tool (func_import): When computing the edits, consider not
11369         only the Makefile.ams that exist but also those that will be generated.
11370
11371 2008-09-25  Simon Josefsson  <simon@josefsson.org>
11372
11373         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
11374         fixes gnulib-tool --test warning about duplicate dependency.
11375
11376 2008-09-25  Bruno Haible  <bruno@clisp.org>
11377
11378         * gnulib-tool: Don't ask the user to perform edits in the generated
11379         Makefile.ams.
11380         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
11381         apply to the Makefile.am being generated.
11382         (func_emit_tests_Makefile_am): Execute edits that apply to the
11383         Makefile.am being generated.
11384         (func_import): Setup list of Makefile.am edits before emitting the
11385         Makefile.ams, not at the end.
11386         (func_create_testdir): Update.
11387         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
11388
11389 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11390
11391         * gnulib-tool (func_import): Store the --tests-base option in the
11392         comment in gnulib-cache.m4.
11393
11394 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
11395
11396         * NEWS: Document increased portability that sys_select now provides.
11397
11398         * lib/sys_select.in.h: Install select wrapper.
11399         * lib/sys_socket.in.h: Use more descriptive name when there is no
11400         select wrapper.
11401         * lib/winsock-select.c: New.
11402         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
11403         Require gl_HEADER_SYS_SOCKET.
11404         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
11405         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
11406         * tests/test-sys_select.c: Add functional tests.
11407
11408 2008-09-24  Eric Blake  <ebb9@byu.net>
11409
11410         open, fopen: close fd leak in last patch
11411         * lib/open.c (rpl_open): Close fd before returning error.
11412         * lib/fopen.c (rpl_fopen): Close fd before returning error.
11413         * doc/posix-functions/open.texi (open): Document that Irix also
11414         has the bug.
11415         * doc/posix-functions/fopen.texi (fopen): Likewise.
11416         Reported by Paolo Bonzini.
11417
11418 2008-09-24  Bruno Haible  <bruno@clisp.org>
11419
11420         Ensure that a filename ending in a slash cannot be used to access a
11421         non-directory.
11422         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
11423         to check whether it's really a directory.
11424         * lib/fopen.c: Include fcntl.h, unistd.h.
11425         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
11426         and fdopen().
11427         * modules/fopen (Depends-on): Add unistd.
11428         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
11429         * tests/test-fopen.c (main): Likewise.
11430         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
11431         * doc/posix-functions/fopen.texi: Likewise.
11432         Reported by Eric Blake.
11433
11434 2008-09-23  Eric Blake  <ebb9@byu.net>
11435
11436         c-stack: avoid compiler optimizations when provoking overflow
11437         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
11438         recursion harder to optimize, to ensure a stack overflow occurs.
11439         * tests/test-c-stack.c (recurse): Likewise.
11440         Borrowed from libsigsegv.
11441
11442         c-stack: work around Irix sigaltstack bug
11443         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
11444         whether sigaltstack uses wrong end of stack_t (copied in part from
11445         libsigsegv).
11446         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
11447         Irix bug, without requiring an over-allocation.
11448         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
11449         bug.
11450
11451         fopen: document mingw bug on directories
11452         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
11453         not allowing a stream visiting a directory, even though reading
11454         from such a stream is not portable.
11455
11456 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
11457
11458         * lib/poll.c: Rewrite.
11459         * modules/poll: Depend on alloca.
11460
11461 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
11462
11463         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
11464         instead define prototypes for a full set of wrappers.  Ensure
11465         that Cygwin does not use the compatibility code, which is only
11466         for MinGW.
11467         * lib/winsock.c: New.
11468         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
11469         * modules/sys_socket: Add lib/winsock.c.
11470
11471         * modules/poll-tests: Add errno and perror.
11472         * tests/test-poll.c: Use ioctl, not ioctlsocket.
11473
11474 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
11475
11476         * tests/test-poll.c: Downgrade minimum needed Winsock version.
11477
11478 2008-09-23  Bruno Haible  <bruno@clisp.org>
11479
11480         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
11481         * doc/glibc-functions/*: Likewise.
11482
11483 2008-09-23  Simon Josefsson  <simon@josefsson.org>
11484
11485         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
11486         success.
11487
11488 2008-09-22  Eric Blake  <ebb9@byu.net>
11489             Bruno Haible  <bruno@clisp.org>
11490
11491         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
11492         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
11493         supply %A but mishandle pseudo-NaN.
11494         Reported by Simon Josefsson.
11495
11496 2008-09-21  Bruno Haible  <bruno@clisp.org>
11497
11498         * tests/test-lock.c (main): Tweak skip message.
11499         * tests/test-tls.c (main): Likewise.
11500
11501 2008-09-21  Bruno Haible  <bruno@clisp.org>
11502
11503         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
11504         whether 'struct sigaction' has sa_sigaction here...
11505         (gl_PREREQ_SIG_HANDLER_H): ... not here.
11506         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
11507
11508 2008-09-21  Bruno Haible  <bruno@clisp.org>
11509
11510         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
11511         section.
11512         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
11513         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
11514         the new section.
11515         (Support for obsolete systems lacking POSIX:2001): New section.
11516         (String handling <string.h>): Move strdup to the new section.
11517         Suggested by Simon Josefsson and Paolo Bonzini.
11518
11519 2008-09-21  Bruno Haible  <bruno@clisp.org>
11520
11521         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
11522         exponents in %e and %g results on 'long double'. Needed for mingw's
11523         improved *printf functions.
11524         * tests/test-vasprintf-posix.c (test_function): Likewise.
11525         * tests/test-snprintf-posix.h (test_function): Likewise.
11526         * tests/test-sprintf-posix.h (test_function): Likewise.
11527         Reported by Eric Blake.
11528
11529 2008-09-21  Bruno Haible  <bruno@clisp.org>
11530
11531         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
11532         * tests/test-sprintf-posix.h (test_function): Likewise.
11533
11534 2008-09-21  Bruno Haible  <bruno@clisp.org>
11535
11536         * modules/getpass (Depends-on): Add strdup-posix.
11537
11538         New module 'strdup-posix'.
11539         * modules/strdup-posix: New file.
11540         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
11541         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
11542         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11543         REPLACE_STRDUP.
11544         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
11545         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
11546         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11547         strdup-posix.
11548
11549         * modules/strdup (Depends-on): Remove malloc-posix.
11550
11551 2008-09-20  Bruno Haible  <bruno@clisp.org>
11552
11553         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
11554         Wildenhues.
11555
11556 2008-09-20  Bruno Haible  <bruno@clisp.org>
11557
11558         Ensure that wint_t gets defined on IRIX 5.3.
11559         * lib/wchar.in.h (wint_t): Define if not defined by the system.
11560         * lib/wctype.in.h (wint_t): Likewise.
11561         (__wctype_wint_t): Remove type.
11562         (isw*): Use wint_t instead of __wctype_wint_t.
11563         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
11564         * modules/wchar (Files): Add m4/wint_t.m4.
11565         (Makefile.am): Substitute HAVE_WINT_T.
11566         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
11567         * tests/test-wctype.c: Check that wint_t is defined.
11568         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
11569         * doc/posix-headers/wctype.texi: Likewise.
11570         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11571
11572 2008-09-18  Bruno Haible  <bruno@clisp.org>
11573
11574         * gnulib-tool (func_exit): Update comment.
11575
11576 2008-09-18  Simon Josefsson  <simon@josefsson.org>
11577
11578         * modules/getaddrinfo (Depends-on): Remove strdup, this module
11579         assumes strdup exists and does not depend on strdup to return
11580         ENOMEM on out of memory conditions.
11581
11582 2008-09-18  Bruno Haible  <bruno@clisp.org>
11583
11584         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
11585         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
11586         digits for the exponent.
11587
11588 2008-09-18  Jim Meyering  <meyering@redhat.com>
11589             Bruno Haible  <bruno@clisp.org>
11590
11591         * lib/vasnprintf.c (decimal_point_char): Define also if
11592         NEED_PRINTF_INFINITE_LONG_DOUBLE.
11593
11594 2008-09-16  Bruno Haible  <bruno@clisp.org>
11595         and Eric Blake  <ebb9@byu.net>
11596
11597         vasnprintf: support Irix 5.3
11598         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
11599         that mishandle long double infinity.
11600         Reported by Tom G. Christensen.
11601
11602 2008-09-16  Bruno Haible  <bruno@clisp.org>
11603
11604         * doc/glibc-functions/scandir.texi: Mention the function is missing on
11605         Solaris 9.
11606         * doc/glibc-functions/alphasort.texi: Likewise.
11607         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
11608
11609 2008-09-16  Jim Meyering  <meyering@redhat.com>
11610
11611         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
11612         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
11613         a umask modification leak out of a subshell.  Otherwise, the
11614         opensolaris /bin/sh would be accepted and thus cause unwarranted
11615         failures in the coreutils test suite.
11616
11617 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
11618
11619         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
11620         to succeed.
11621
11622 2008-09-16  Jim Meyering  <meyering@redhat.com>
11623
11624         avoid spurious test failure when library is built without ACL support
11625         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
11626         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
11627         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
11628         * tests/test-copy-acl.sh: Likewise.
11629
11630 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11631
11632         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
11633         based on character occurrence counts.
11634
11635 2008-09-15  Eric Blake  <ebb9@byu.net>
11636
11637         tests: avoid some compiler warnings
11638         * tests/test-memchr.c (main): Pass NULL indirectly.
11639         * tests/test-closein.c (main): Avoid unused variable.
11640
11641 2008-09-15  Bruno Haible  <bruno@clisp.org>
11642
11643         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
11644         are missing on OpenBSD 4.0 individually.
11645         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
11646
11647 2008-09-15  Bruno Haible  <bruno@clisp.org>
11648
11649         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
11650         * doc/posix-functions/strerror.texi: Mention also Cygwin.
11651         * doc/posix-functions/perror.texi: Likewise.
11652         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
11653         is missing.
11654         Reported by Eric Blake.
11655
11656         * lib/errno.in.h: Use replacement values >= 2000.
11657         Reported by Eric Blake.
11658
11659 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11660
11661         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
11662         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
11663         limit.
11664         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
11665         compareseq was aborted.
11666
11667 2008-09-14  Bruno Haible  <bruno@clisp.org>
11668
11669         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
11670         yvec_edit_count.
11671         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
11672         (fstrcmp_bounded): Simplify result computation accordingly.
11673
11674 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11675
11676         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
11677         (fstrcmp): Define in terms of fstrcmp_bounded.
11678         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
11679         lower_bound argument.
11680         Return quickly if the result is certainly < lower_bound.
11681         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
11682
11683 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11684
11685         * lib/diffseq.h (EARLY_ABORT): New macro.
11686         (compareseq): Change return type to bool. Return true when EARLY_ABORT
11687         evaluates to true.
11688
11689 2008-09-14  Bruno Haible  <bruno@clisp.org>
11690
11691         * modules/perror-tests: New file.
11692         * tests/test-perror.sh: New file.
11693         * tests/test-perror.c: New file.
11694
11695         New module 'perror'.
11696         * lib/stdio.in.h (perror): New declaration.
11697         * lib/perror.c: New file.
11698         * m4/perror.m4: New file.
11699         * modules/perror: New file.
11700         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
11701         * doc/posix-functions/perror.texi: Mention the perror module.
11702         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
11703         REPLACE_PERROR.
11704         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
11705         REPLACE_PERROR.
11706
11707 2008-09-14  Bruno Haible  <bruno@clisp.org>
11708
11709         * modules/stdio (Makefile.am): Reorder to match the order in
11710         lib/stdio.in.h.
11711         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11712
11713 2008-09-13  Bruno Haible  <bruno@clisp.org>
11714
11715         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
11716
11717 2008-09-13  Bruno Haible  <bruno@clisp.org>
11718
11719         Extend strerror to cover the added errno values.
11720         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
11721         (rpl_strerror): Provide error messages for the added errno values and
11722         for the WSA* values.
11723         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
11724         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
11725         strerror.
11726         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
11727         * modules/strerror (Depends-on): Add errno.
11728         * doc/posix-functions/strerror.texi: Document the change.
11729         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
11730         and EOVERFLOW.
11731
11732 2008-09-13  Bruno Haible  <bruno@clisp.org>
11733
11734         * modules/EOVERFLOW: Remove file.
11735         * m4/eoverflow.m4: Remove file.
11736         * modules/EOVERFLOW-tests: Remove file.
11737         * tests/test-EOVERFLOW.c: Remove file.
11738         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
11739         * modules/ftell (Depends-on): Likewise.
11740         * modules/getdelim (Depends-on): Likewise.
11741         * modules/getugroups (Depends-on): Likewise.
11742         * modules/poll (Depends-on): Likewise.
11743         * modules/snprintf (Depends-on): Likewise.
11744         * modules/sprintf-posix (Depends-on): Likewise.
11745         * modules/vasnprintf (Depends-on): Likewise.
11746         * modules/vasprintf (Depends-on): Likewise.
11747         * modules/vfprintf-posix (Depends-on): Likewise.
11748         * modules/vsnprintf (Depends-on): Likewise.
11749         * modules/vsprintf-posix (Depends-on): Likewise.
11750         * modules/xvasprintf (Depends-on): Likewise.
11751         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
11752         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
11753         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
11754         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
11755         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11756         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
11757         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
11758         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
11759         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11760         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
11761         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
11762         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
11763         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11764         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
11765         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
11766         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
11767         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11768         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
11769         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
11770         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
11771         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11772         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
11773         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
11774         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
11775         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
11776         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11777         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
11778         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
11779         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
11780         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
11781         * MODULES.html.sh: Remove EOVERFLOW.
11782         * NEWS: Mention the change.
11783
11784 2008-09-13  Bruno Haible  <bruno@clisp.org>
11785
11786         * modules/errno-tests: New file.
11787         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
11788
11789         * lib/errno.in.h: New file.
11790         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
11791         * modules/errno: New file.
11792         * doc/posix-headers/errno.texi: Update documentation.
11793         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
11794
11795 2008-09-13  Bruno Haible  <bruno@clisp.org>
11796
11797         * tests/test-poll.c: Use #if for native Windows, rather than testing
11798         __MSVCRT__.
11799
11800 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11801             Bruno Haible  <bruno@clisp.org>
11802
11803         * lib/glob.c: Don't include <pwd.h> on native Windows.
11804         (WINDOWS32): New macro.
11805         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
11806
11807 2008-09-13  Bruno Haible  <bruno@clisp.org>
11808
11809         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
11810         (ETIMEDOUT): Remove macro.
11811         (glthread_cond_timedwait_multithreaded): New declaration.
11812         (glthread_cond_timedwait): Use it.
11813         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
11814         (glthread_cond_timedwait_multithreaded): New function.
11815
11816 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
11817
11818         * modules/poll-tests: Do not check for io.h.
11819         * tests/test-poll.c: Check for __MSVCRT__ instead.
11820
11821 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
11822
11823         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
11824         * modules/poll-tests: Add inet_pton, stdbool, sockets.
11825         * tests/test-poll.c: Use them.  Use _pipe on Windows.
11826
11827 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
11828
11829         * modules/poll-tests: New.
11830         * tests/test-poll.c: New.
11831
11832 2008-09-12  Eric Blake  <ebb9@byu.net>
11833
11834         frexp: test for NetBSD failure on -0.0
11835         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
11836         not all, bugs from NetBSD 3.0 have been fixed.
11837         * doc/posix-functions/frexp.texi (frexp): Document bug.
11838         Reported by Thomas Klausner.
11839
11840         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
11841         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
11842         literal -0.0.
11843         Reported by Jonathan C. Patschke <jp@centtech.com>.
11844
11845 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11846
11847         * lib/glthread/cond.h: Use dummy implementation also if
11848         USE_WIN32_THREADS.
11849
11850 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11851
11852         * modules/fnmatch-posix (License): Change to LGPLv2+.
11853         * modules/fnmatch-gnu (License): Likewise.
11854
11855 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11856
11857         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
11858
11859 2008-09-11  Jim Meyering  <meyering@redhat.com>
11860
11861         * users.txt: Add gtk-vnc.
11862
11863 2008-09-08  Simon Josefsson  <simon@josefsson.org>
11864
11865         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
11866         rotate amounts.
11867
11868         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
11869         required for 16-bit and 8-bit rotates.
11870         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
11871         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
11872         UINT8_MAX instead of hard-coded constants.
11873         Suggested by Paul Eggert.
11874
11875 2008-09-07  Bruno Haible  <bruno@clisp.org>
11876
11877         * tests/test-striconveh.c (main): Check behaviour when converting from
11878         UTF-7.
11879
11880         Make striconveh work better with stateful encodings.
11881         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
11882         that iconv does not increment the inptr when returning -1/EINVAL.
11883
11884 2008-09-07  Bruno Haible  <bruno@clisp.org>
11885
11886         * build-aux/config.rpath: Update according to libtool-2.2.6.
11887         * build-aux/config.libpath: Likewise.
11888
11889 2008-09-06  Bruno Haible  <bruno@clisp.org>
11890
11891         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
11892         * lib/freadptr.c (freadptr): Likewise.
11893         * lib/freadseek.c (freadptrinc): Likewise.
11894         Reported by Simon Josefsson.
11895
11896 2008-09-06  Bruno Haible  <bruno@clisp.org>
11897
11898         * modules/freadptr (License): Change to LGPLv2+.
11899         * modules/freadseek (License): Likewise.
11900         Suggested by Eric Blake.
11901
11902         * modules/memchr2 (License): Change to LGPLv2+.
11903         Approved by Eric Blake.
11904
11905 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11906             Bruno Haible  <bruno@clisp.org>
11907
11908         Make gnulib-tool work with native 'sed' on AIX.
11909         * gnulib-tool (sed_noop): New variable.
11910         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
11911         func_add_or_update, func_create_testdir): Use it to initialize sed
11912         script variables.
11913         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11914
11915 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
11916             Bruno Haible  <bruno@clisp.org>
11917
11918         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
11919         also works after #include directives.
11920
11921 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
11922
11923         getdate.y: reject an out-of-range timezone value
11924         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
11925         the range [-24...+24].  When specified with only one or two digits,
11926         * tests/test-getdate.c: Tests for the fix.
11927         * doc/getdate.texi: Document this change.
11928
11929 2008-09-03  Bruno Haible  <bruno@clisp.org>
11930
11931         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
11932
11933 2008-09-02  Simon Josefsson  <simon@josefsson.org>
11934
11935         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
11936         <bruce.korb@gmail.com> with ideas from Ben Pfaff
11937         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
11938         Blake <ebb9@byu.net>.
11939
11940         * tests/test-bitrotate.c: Add more test vectors.
11941
11942 2008-09-02  Eric Blake  <ebb9@byu.net>
11943
11944         vasnprintf-posix: handle large precision via %.*d
11945         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
11946         when handling it ourselves.
11947         * tests/test-vasnprintf-posix.c (test_function): Add test.
11948         * tests/test-snprintf-posix.h (test_function): Likewise.
11949         * tests/test-sprintf-posix.h (test_function): Likewise.
11950         * tests/test-vasprintf-posix.c (test_function): Likewise.
11951         Reported by Alain Guibert.
11952
11953 2008-09-01  Eric Blake  <ebb9@byu.net>
11954
11955         c-stack: make configure-time check more robust
11956         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
11957         successful sigaction call.
11958         Reported by Tom G. Christensen.
11959
11960 2008-09-01  Bruno Haible  <bruno@clisp.org>
11961
11962         New module 'findprog-lgpl'.
11963         * modules/findprog-lgpl: New file.
11964         * lib/findprog-lgpl.c: New file.
11965         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
11966         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
11967         to decide whether to use strdup or xstrdup, concatenated_filename or
11968         xconcatenated_filename.
11969
11970 2008-09-01  Bruno Haible  <bruno@clisp.org>
11971
11972         Split module 'concat-filename' into 'concat-filename' (LGPL) and
11973         'xconcat-filename' (GPL).
11974         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
11975         (License): Change to LGPLv2+.
11976         * modules/xconcat-filename: New file.
11977         * lib/concat-filename.h (concatenated_filename): Change specification.
11978         (xconcatenated_filename): New declaration.
11979         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
11980         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
11981         memory situations.
11982         * lib/xconcat-filename.c: New file.
11983         * NEWS: Mention the change.
11984         * lib/findprog.c: Include concat-filename.h, not filename.h.
11985         (find_in_path): Use xconcatenated_filename instead of
11986         concatenated_filename.
11987         * lib/javacomp.c: Include concat-filename.h, not filename.h.
11988         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
11989         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
11990         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
11991         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
11992         instead of concatenated_filename.
11993         * lib/javaexec.c: Include concat-filename.h, not filename.h.
11994         (execute_java_class): Use xconcatenated_filename instead of
11995         concatenated_filename.
11996         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
11997         * modules/javacomp (Depends-on): Likewise.
11998         * modules/javaexec (Depends-on): Likewise.
11999
12000 2008-09-01  Bruno Haible  <bruno@clisp.org>
12001
12002         Split module 'filename' into 'filename' and 'concat-filename'.
12003         * modules/filename: Keep only lib/filename.h.
12004         (License): Change to LGPLv2+.
12005         * modules/concat-filename: New file, extracted from modules/filename.
12006         * lib/filename.h (concatenated_filename): Remove declaration.
12007         * lib/concat-filename.h: New file, extracted from lib/filename.h.
12008         * lib/concat-filename.c: Include concat-filename.h.
12009         * NEWS: Mention the change.
12010
12011 2008-09-01  Simon Josefsson  <simon@josefsson.org>
12012
12013         * lib/bitrotate.h (rotl8, rotr8): Add.
12014
12015         * modules/bitrotate (configure.ac): Need
12016         AC_REQUIRE([AC_C_INLINE]).
12017         (Description): Mention stdint.h.  Reported by Bruno Haible
12018         <bruno@clisp.org>.
12019
12020         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
12021         Paolo Bonzini <bonzini@gnu.org>.
12022
12023 2008-08-31  Bruno Haible  <bruno@clisp.org>
12024
12025         Assume Solaris specific bi-arch conventions on Solaris systems.
12026         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
12027         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
12028         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
12029         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
12030         like acl_libdirstem.
12031         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
12032         acl_libdirstem.
12033         * NEWS: Mention the change.
12034         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
12035
12036 2008-08-31  Jim Meyering  <meyering@redhat.com>
12037
12038         * lib/strftime.h: Add comments describing the two added arguments.
12039
12040         remove duplicate #include directives
12041         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
12042         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
12043
12044 2008-08-31  Bruno Haible  <bruno@clisp.org>
12045
12046         New module 'sigpipe-die'.
12047         * modules/sigpipe-die: New file.
12048         * lib/sigpipe-die.h: New file.
12049         * lib/sigpipe-die.c: New file.
12050         * MODULES.html.sh (Signal handling): Add sigpipe-die.
12051
12052 2008-08-31  Bruno Haible  <bruno@clisp.org>
12053
12054         Don't override previously installed signal handlers.
12055         * lib/fatal-signal.c (saved_sigactions): New variable.
12056         (uninstall_handlers): Reset the signal to the saved handler, not
12057         to SIG_DFL (except when ignored).
12058         (install_handlers): Save the previous handlers.
12059
12060 2008-08-30  Bruno Haible  <bruno@clisp.org>
12061
12062         * gnulib-tool (func_reset_sigpipe): New function.
12063         (func_get_automake_snippet, func_modules_transitive_closure,
12064         func_import): Invoke it before a join command that reads from stdin,
12065         to avoid "echo: write error: Broken pipe" error messages on stderr.
12066         Reported by Sam Steingold <sds@gnu.org>.
12067
12068 2008-08-30  Bruno Haible  <bruno@clisp.org>
12069
12070         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
12071         Code copied from m4/open.m4.
12072         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
12073         access and the filename ends in a slash. Code copied from lib/open.c.
12074         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
12075         * tests/test-fopen.c (main): Check against bug with trailing slash.
12076
12077 2008-08-29  Bruno Haible  <bruno@clisp.org>
12078
12079         Avoid some "gcc -pedantic" warnings.
12080         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
12081         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
12082         * lib/dirent.in.h: Likewise.
12083         * lib/fcntl.in.h: Likewise.
12084         * lib/float.in.h: Likewise.
12085         * lib/iconv.in.h: Likewise.
12086         * lib/inttypes.in.h: Likewise.
12087         * lib/locale.in.h: Likewise.
12088         * lib/math.in.h: Likewise.
12089         * lib/netinet_in.in.h: Likewise.
12090         * lib/search.in.h: Likewise.
12091         * lib/signal.in.h: Likewise.
12092         * lib/stdarg.in.h: Likewise.
12093         * lib/stdint.in.h: Likewise.
12094         * lib/stdio.in.h: Likewise.
12095         * lib/stdlib.in.h: Likewise.
12096         * lib/string.in.h: Likewise.
12097         * lib/strings.in.h: Likewise.
12098         * lib/sys_select.in.h: Likewise.
12099         * lib/sys_socket.in.h: Likewise.
12100         * lib/sys_stat.in.h: Likewise.
12101         * lib/sys_time.in.h: Likewise.
12102         * lib/sysexits.in.h: Likewise.
12103         * lib/time.in.h: Likewise.
12104         * lib/unistd.in.h: Likewise.
12105         * lib/wchar.in.h: Likewise.
12106         * lib/wctype.in.h: Likewise.
12107         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
12108         * modules/fchdir (Makefile.am): Likewise.
12109         * modules/fcntl (Makefile.am): Likewise.
12110         * modules/float (Makefile.am): Likewise.
12111         * modules/iconv_open (Makefile.am): Likewise.
12112         * modules/inttypes (Makefile.am): Likewise.
12113         * modules/locale (Makefile.am): Likewise.
12114         * modules/math (Makefile.am): Likewise.
12115         * modules/netinet_in (Makefile.am): Likewise.
12116         * modules/search (Makefile.am): Likewise.
12117         * modules/signal (Makefile.am): Likewise.
12118         * modules/stdarg (Makefile.am): Likewise.
12119         * modules/stdint (Makefile.am): Likewise.
12120         * modules/stdio (Makefile.am): Likewise.
12121         * modules/stdlib (Makefile.am): Likewise.
12122         * modules/string (Makefile.am): Likewise.
12123         * modules/strings (Makefile.am): Likewise.
12124         * modules/sys_select (Makefile.am): Likewise.
12125         * modules/sys_socket (Makefile.am): Likewise.
12126         * modules/sys_stat (Makefile.am): Likewise.
12127         * modules/sys_time (Makefile.am): Likewise.
12128         * modules/sysexits (Makefile.am): Likewise.
12129         * modules/time (Makefile.am): Likewise.
12130         * modules/unistd (Makefile.am): Likewise.
12131         * modules/wchar (Makefile.am): Likewise.
12132         * modules/wctype (Makefile.am): Likewise.
12133         Reported by Reuben Thomas <rrt@sc3d.org>.
12134
12135 2008-08-29  Bruno Haible  <bruno@clisp.org>
12136
12137         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
12138         any more.
12139
12140 2008-08-29  Simon Josefsson  <simon@josefsson.org>
12141
12142         * MODULES.html.sh (Misc): Add bitrotate.
12143
12144         * modules/bitrotate: New file.
12145
12146         * lib/bitrotate.h: New file.
12147
12148         * modules/bitrotate-tests: New file.
12149
12150         * tests/test-bitrotate.c: New file.
12151
12152         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
12153         on the bitrotate module.
12154
12155         * lib/arctwo.c: Use new bitrotate module.
12156
12157 2008-08-29  Jim Meyering  <meyering@redhat.com>
12158
12159         bootstrap: merge changes from coreutils
12160         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
12161         of copied files.  Remove a kludge, now that this is fixed.
12162         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
12163         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
12164         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
12165
12166 2008-08-29  Bruno Haible  <bruno@clisp.org>
12167
12168         * MODULES.html.sh: Remove --cvs-urls option.
12169
12170 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
12171
12172         maint.mk: adjust to file name change
12173         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
12174
12175 2008-08-28  Jim Meyering  <meyering@redhat.com>
12176
12177         * modules/getndelim2 (License): Relicense to LGPLv2+.
12178         Approved by Richard Stallman for the version of 1995, and by
12179         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
12180
12181 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
12182
12183         * lib/getdelim.c (flockfile, funlockfile): Make all of them
12184         dummy if one is not available.  Do not touch them if
12185         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
12186         (getc_maybe_unlocked): New.
12187         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
12188
12189 2008-08-26  Eric Blake  <ebb9@byu.net>
12190
12191         doc/INSTALL: resync from autoconf
12192         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
12193         (INSTALL_PRELUDE): Delete; this is done more efficiently by
12194         moving...
12195         * install.texi [!autoconf]: ...here.  Resync from autoconf.
12196         * INSTALL: Regenerate.
12197         * INSTALL.ISO: New file.
12198         * INSTALL.UTF-8: Likewise.
12199
12200 2008-08-26  Jim Meyering  <meyering@redhat.com>
12201
12202         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
12203         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
12204         these definitions conditional, so that they may be overridden, too.
12205
12206 2008-08-26  Bruno Haible  <bruno@clisp.org>
12207
12208         Generate INSTALL file variants with prettier quotes.
12209         * doc/Makefile (INSTALL_PRELUDE): New macro.
12210         (INSTALL): Use it.
12211         (INSTALL.ISO, INSTALL.UTF-8): New rules.
12212
12213 2008-08-26  Bruno Haible  <bruno@clisp.org>
12214
12215         Run makeinfo in an English locale.
12216         * doc/Makefile (MAKEINFO): New variable.
12217
12218 2008-08-26  Bruno Haible  <bruno@clisp.org>
12219
12220         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
12221         Suggested by Eric Blake.
12222
12223 2008-08-25  Bruno Haible  <bruno@clisp.org>
12224
12225         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
12226
12227 2008-08-25  Eric Blake  <ebb9@byu.net>
12228
12229         c-stack: test that stack overflow can be caught
12230         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
12231         that platform allows handling stack overflow; at least OS/2 EMX
12232         has sigaltstack, but crashes before transferring control to
12233         handler on stack overflow.
12234         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
12235         check for HAVE_STACK_OVERFLOW_HANDLING.
12236         Reported by Elbert Pol.
12237
12238 2008-08-25  Bruno Haible  <bruno@clisp.org>
12239
12240         * doc/posix-functions/strftime.texi: Fix description of strftime
12241         module.
12242
12243 2008-08-24  Bruno Haible  <bruno@clisp.org>
12244
12245         * tests/uniwidth/test-uc_width2.c: New file.
12246         * tests/uniwidth/test-uc_width2.sh: New file.
12247         * modules/uniwidth/width-tests (Files): Add the new files.
12248         (TESTS): Add uniwidth/test-uc_width2.sh.
12249         (TESTS_ENVIRONMENT): New variable.
12250         (check_PROGRAMS): Add test-uc_width2.
12251         (test_uc_width2_SOURCES): New variable.
12252
12253         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
12254         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
12255         not 0x00AB.
12256         Reported by Alexander V. Lukyanov <lav@netis.ru>.
12257
12258 2008-08-22  Eric Blake  <ebb9@byu.net>
12259
12260         test-lock, test-tls: mention why a test is skipped
12261         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
12262         skipped.
12263         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
12264
12265         count-one-bits: relax license
12266         * modules/count-one-bits (License): Relicense to LGPLv2+.
12267         Suggested by Ludovic Courtès, approved by Ben Pfaff.
12268
12269 2008-08-22  Andreas Schwab  <schwab@suse.de>
12270
12271         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
12272         Remove spurious space in assignment.
12273
12274 2008-08-21  Simon Josefsson  <simon@josefsson.org>
12275
12276         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
12277         Paul Eggert <eggert@CS.UCLA.EDU>.
12278
12279 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
12280
12281         * modules/gettext: Add m4/threadlib.m4.
12282
12283 2008-08-19  Eric Blake  <ebb9@byu.net>
12284
12285         test-c-stack: fix compilation failure on FreeBSD 5.0
12286         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
12287         headers before <sys/resource.h>.
12288         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
12289         the bug.
12290         Reported by Nelson H. F. Beebe.
12291
12292         strverscmp: migrate from "strverscmp.h" to <string.h>
12293         * modules/string (Makefile.am): Add new hooks.
12294         * modules/strverscmp (Files): Remove strverscmp.h.
12295         (Depends-on): Add string.
12296         (configure.ac): Add indicator.
12297         (Include): Mention new header.
12298         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
12299         defaults.
12300         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
12301         results.
12302         * lib/strverscmp.h: Delete.
12303         * lib/string.in.h (strverscmp): Provide declaration, when needed.
12304         * tests/test-strverscmp.c (includes): Adjust client.
12305         * lib/check-version.c (includes): Likewise.
12306         * NEWS: Document the change.
12307
12308         strverscmp: add unit test
12309         * modules/strverscmp-tests: New file.
12310         * tests/test-strverscmp.c: Likewise.
12311
12312 2008-08-19  Simon Josefsson  <simon@josefsson.org>
12313
12314         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
12315         regarding Windows crypto stuff, from Mono.
12316
12317 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
12318
12319         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
12320         if present, for intel RND.  Return error on failures.
12321
12322 2008-08-18  Ben Pfaff  <blp@gnu.org>
12323
12324         gitlog-to-changelog: give better diagnostic for failed pipe-open
12325         * build-aux/gitlog-to-changelog: Improve error message: suggest
12326         that the version of Git may be too old.
12327
12328 2008-08-18  Simon Josefsson  <simon@josefsson.org>
12329
12330         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
12331         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
12332
12333 2008-08-18  Bruno Haible  <bruno@clisp.org>
12334
12335         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
12336         pthread_in_use().
12337
12338 2008-08-18  Bruno Haible  <bruno@clisp.org>
12339
12340         * lib/glthread/threadlib.c: Include <pthread.h>.
12341
12342 2008-08-18  Bruno Haible  <bruno@clisp.org>
12343
12344         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
12345         glthread_recursive_lock_* macros.
12346         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
12347         Fix syntax error.
12348
12349 2008-08-18  Bruno Haible  <bruno@clisp.org>
12350
12351         * lib/glthread/thread.c: Avoid forcing a context switch right after
12352         thread creation.
12353
12354 2008-08-17  Bruno Haible  <bruno@clisp.org>
12355
12356         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
12357         * lib/glthread/thread.h: Provide Win32 specific implementation.
12358         * modules/thread (Files): Add lib/glthread/thread.c.
12359         (Depends-on): Add lock.
12360         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
12361
12362 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12363
12364         New module 'yield'.
12365         * modules/yield: New file.
12366         * lib/glthread/yield.h: New file.
12367         * m4/yield.m4: New file.
12368         * MODULES.html.sh (Multithreading): Add yield.
12369
12370 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12371
12372         New module 'thread'.
12373         * modules/thread: New file.
12374         * lib/glthread/thread.h: New file.
12375         * m4/thread.m4: New file.
12376         * MODULES.html.sh (Multithreading): Add thread.
12377
12378 2008-08-17  Bruno Haible  <bruno@clisp.org>
12379
12380         * lib/glthread/lock.h: Include <stdlib.h> always.
12381         * lib/glthread/tls.h: Likewise.
12382         * lib/glthread/cond.h: Likewise.
12383
12384 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12385
12386         New module 'cond'.
12387         * modules/cond: New file.
12388         * lib/glthread/cond.h: New file.
12389         * lib/glthread/cond.c: New file.
12390         * m4/cond.m4: New file.
12391         * MODULES.html.sh (Multithreading): Add cond.
12392
12393 2008-08-16  Eric Blake  <ebb9@byu.net>
12394
12395         c-stack: fix regression on Irix 5.3 from 2008-06-21
12396         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
12397         sa_sigaction...
12398         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
12399         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
12400         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
12401         * modules/signal (Makefile.am): Use the value.
12402         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
12403         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
12404         * doc/posix-headers/signal.texi (signal.h): Document this
12405         portability issue.
12406         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
12407         Reported by Tom G. Christensen.
12408
12409 2008-08-17  Bruno Haible  <bruno@clisp.org>
12410
12411         New module 'threadlib'.
12412         * modules/threadlib: New file.
12413         * lib/glthread/threadlib.c: New file, extracted from
12414         lib/glthread/lock.c.
12415         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
12416         functions.
12417         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
12418         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
12419         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
12420         macros.
12421         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
12422         (gl_DISABLE_THREADS): Remove macro.
12423         * modules/lock (Files): Remove build-aux/config.rpath.
12424         (Depends-on): Remove havelib. Add threadlib.
12425         (configure.ac-early): Remove section.
12426         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
12427         * modules/tls (Depends-on): Remove lock. Add threadlib.
12428         (Link): New section, copied from threadlib.
12429         * MODULES.html.sh (Multithreading): Add threadlib.
12430
12431 2008-08-14  Bruno Haible  <bruno@clisp.org>
12432
12433         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
12434         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
12435         glthread_rwlock_unlock, glthread_rwlock_destroy,
12436         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
12437         glthread_recursive_lock_destroy): Define as macros always.
12438         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
12439         glthread_lock_lock.
12440         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
12441         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
12442         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
12443         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
12444         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
12445         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
12446         (glthread_recursive_lock_lock_func): Renamed from
12447         glthread_recursive_lock_lock.
12448         (glthread_recursive_lock_unlock_func): Renamed from
12449         glthread_recursive_lock_unlock.
12450         (glthread_recursive_lock_destroy_func): Renamed from
12451         glthread_recursive_lock_destroy.
12452
12453 2008-08-14  Bruno Haible  <bruno@clisp.org>
12454
12455         * lib/glthread/lock.h: Renamed from lib/lock.h.
12456         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
12457         * lib/glthread/tls.h: Renamed from lib/tls.h.
12458         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
12459         * lib/fstrcmp.c: Update includes.
12460         * lib/strsignal.c: Update includes.
12461         * modules/lock (Files, Makefile.am): Update.
12462         (Include): Change to "glthread/lock.h".
12463         * modules/tls (Files, Makefile.am): Update.
12464         (Include): Change to "glthread/tls.h".
12465         * tests/test-lock.c: Update includes.
12466         * tests/test-tls.c: Update includes.
12467         * NEWS: Mention the renamed header files.
12468
12469 2008-08-11  Jim Meyering  <meyering@redhat.com>
12470
12471         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
12472
12473 2008-08-11  Eric Blake  <ebb9@byu.net>
12474
12475         test-c-stack: avoid C99-ism
12476         * tests/test-c-stack.c (main): Fix whitespace, move declaration
12477         before statement.
12478         Reported by Alain Guibert.
12479
12480 2008-08-10  Jim Meyering  <meyering@redhat.com>
12481
12482         ensure that return value of uinttostr et al are not ignored
12483         * lib/inttostr.h (__GNUC_PREREQ): Define.
12484         (__attribute_warn_unused_result__): Define.
12485         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
12486
12487 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
12488
12489         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
12490         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
12491
12492 2008-08-07  Jim Meyering  <meyering@redhat.com>
12493
12494         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
12495
12496         * modules/mkstemp (License): Relicense under LGPLv2+.
12497         * modules/tempname (License): Likewise.
12498
12499 2008-08-06  Bruno Haible  <bruno@clisp.org>
12500
12501         * lib/poll.c (poll): Further micro-optimization.
12502
12503 2008-08-06  Jim Meyering  <meyering@redhat.com>
12504
12505         inet_pton.c: use locale-independent tolower
12506         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
12507         (inet_pton6): Use c_tolower rather than tolower.
12508         * modules/inet_pton (Depends-on): Add c-ctype.
12509
12510 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
12511
12512         * lib/poll.c (poll): Avoid division when timeout is 0, cache
12513         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
12514
12515 2008-08-06  Jim Meyering  <meyering@redhat.com>
12516
12517         * modules/inet_pton (License): Relicense under LGPLv2+.
12518
12519 2008-08-03  Bruno Haible  <bruno@clisp.org>
12520
12521         Additional non-aborting API for lock and tls.
12522         * lib/lock.h: Include <errno.h>.
12523         (glthread_lock_init): New macro/function.
12524         (gl_lock_init): Define as wrapper around glthread_lock_init.
12525         (glthread_lock_lock): New macro/function.
12526         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
12527         (glthread_lock_unlock): New macro/function.
12528         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
12529         (glthread_lock_destroy): New macro/function.
12530         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
12531         (glthread_rwlock_init): New macro/function.
12532         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
12533         (glthread_rwlock_rdlock): New macro/function.
12534         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
12535         (glthread_rwlock_wrlock): New macro/function.
12536         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
12537         (glthread_rwlock_unlock): New macro/function.
12538         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
12539         (glthread_rwlock_destroy): New macro/function.
12540         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
12541         (glthread_recursive_lock_init): New macro/function.
12542         (gl_recursive_lock_init): Define as wrapper around
12543         glthread_recursive_lock_init.
12544         (glthread_recursive_lock_lock): New macro/function.
12545         (gl_recursive_lock_lock): Define as wrapper around
12546         glthread_recursive_lock_lock.
12547         (glthread_recursive_lock_unlock): New macro/function.
12548         (gl_recursive_lock_unlock): Define as wrapper around
12549         glthread_recursive_lock_unlock.
12550         (glthread_recursive_lock_destroy): New macro/function.
12551         (gl_recursive_lock_destroy): Define as wrapper around
12552         glthread_recursive_lock_destroy.
12553         (glthread_once): New macro/function.
12554         (gl_once): Define as wrapper around glthread_once.
12555         Update function declarations.
12556         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
12557         glthread_rwlock_init. Return error code.
12558         (glthread_rwlock_rdlock_multithreaded): Renamed from
12559         glthread_rwlock_rdlock. Return error code.
12560         (glthread_rwlock_wrlock_multithreaded): Renamed from
12561         glthread_rwlock_wrlock. Return error code.
12562         (glthread_rwlock_unlock_multithreaded): Renamed from
12563         glthread_rwlock_unlock. Return error code.
12564         (glthread_rwlock_destroy_multithreaded): Renamed from
12565         glthread_rwlock_destroy. Return error code.
12566         (glthread_recursive_lock_init_multithreaded): Renamed from
12567         glthread_recursive_lock_init. Return error code.
12568         (glthread_recursive_lock_lock_multithreaded): Renamed from
12569         glthread_recursive_lock_lock. Return error code.
12570         (glthread_recursive_lock_unlock_multithreaded): Renamed from
12571         glthread_recursive_lock_unlock. Return error code.
12572         (glthread_recursive_lock_destroy_multithreaded): Renamed from
12573         glthread_recursive_lock_destroy. Return error code.
12574         (glthread_once_call): Make static.
12575         (glthread_once_multithreaded): Renamed from glthread_once.
12576         * lib/tls.h: Include <errno.h>.
12577         (glthread_tls_key_init): New macro/function.
12578         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
12579         (glthread_tls_set): New macro/function.
12580         (gl_tls_set): Define as wrapper around glthread_tls_set.
12581         (glthread_tls_key_destroy): New macro/function.
12582         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
12583         Update function declarations.
12584         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
12585         glthread_tls_get.
12586         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
12587
12588 2008-08-04  Eric Blake  <ebb9@byu.net>
12589
12590         gnumakefile: use space, not TAB, outside of targets
12591         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
12592
12593 2008-08-02  Jim Meyering  <meyering@redhat.com>
12594
12595         getdate.y: avoid locale-dependent date parsing failure
12596         In Turkish locales, getdate would fail to recognize keywords
12597         containing a lowercase "i".  The solution is not to rely on
12598         locale-sensitive case-conversion.
12599         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
12600         (lookup_word): Use c_toupper in place of toupper.
12601         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
12602         Reported by Vefa Bicakci <bicave@superonline.com> in
12603         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
12604         * modules/getdate (Depends-on): Add c-ctype.
12605
12606 2008-08-02  Bruno Haible  <bruno@clisp.org>
12607
12608         * gnulib-tool (func_import): When updating or creating a .gitignore
12609         file, prepend each added line with a slash, and ignore leading slashes
12610         from the existing lines.
12611         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
12612
12613 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12614
12615         Portability fix for GNU make 3.79.1.
12616         * top/GNUmakefile: Avoid 'else COND', which older GNU make
12617         versions do not understand.
12618
12619 2008-08-01  Bruno Haible  <bruno@clisp.org>
12620
12621         Work around bug of HP-UX 10.20 cc with -0.0 literal.
12622         * tests/test-isnanf.h (zero): New variable.
12623         (main): Avoid literal -0.0f.
12624         * tests/test-isnand.h (zero): New variable.
12625         (main): Avoid literal -0.0.
12626         * tests/test-isnanl.h (zero): New variable.
12627         (main): Avoid literal -0.0L.
12628         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
12629         (test_float, test_double, test_long_double): Avoid literals -0.0f,
12630         -0.0, -0.0L.
12631         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
12632         (test_signbitd): Avoid literal -0.0.
12633         (test_signbitl): Avoid literal -0.0L.
12634         * tests/test-ceilf1.c (zero): New variable.
12635         (main): Avoid literal -0.0f.
12636         * tests/test-ceill.c (zero): New variable.
12637         (main): Avoid literal -0.0L.
12638         * tests/test-floorf1.c (zero): New variable.
12639         (main): Avoid literal -0.0f.
12640         * tests/test-floorl.c (zero): New variable.
12641         (main): Avoid literal -0.0L.
12642         * tests/test-roundf1.c (zero): New variable.
12643         (main): Avoid literal -0.0f.
12644         * tests/test-round1.c (zero): New variable.
12645         (main): Avoid literal -0.0.
12646         * tests/test-roundl.c (zero): New variable.
12647         (main): Avoid literal -0.0L.
12648         * tests/test-truncf1.c (zero): New variable.
12649         (main): Avoid literal -0.0f.
12650         * tests/test-trunc1.c (zero): New variable.
12651         (main): Avoid literal -0.0.
12652         * tests/test-truncl.c (zero): New variable.
12653         (main): Avoid literal -0.0L.
12654         * tests/test-frexp.c (zero): New variable.
12655         (main): Avoid literal -0.0.
12656         * tests/test-frexpl.c (zero): New variable.
12657         (main): Avoid literal -0.0L.
12658         * tests/test-ldexpl.c (zero): New variable.
12659         (main): Avoid literal -0.0L.
12660         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
12661         (zerod, zerol): New variables.
12662         (test_function): Avoid literals -0.0, -0.0L.
12663         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
12664         (zerod, zerol): New variables.
12665         (test_function): Avoid literals -0.0, -0.0L.
12666         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
12667         (zerod, zerol): New variables.
12668         (test_function): Avoid literals -0.0, -0.0L.
12669         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
12670         (zerod, zerol): New variables.
12671         (test_function): Avoid literals -0.0, -0.0L.
12672         * tests/test-strtod.c (zero): New variable.
12673         (main): Avoid literal -0.0.
12674         Reported by Jonathan C. Patschke <jp@centtech.com>.
12675
12676 2008-07-31  Jim Meyering  <meyering@redhat.com>
12677
12678         sha256.h: correct definition of SHA224_DIGEST_SIZE
12679         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
12680         Reported by Paulie Pena IV <paulie4@gmail.com>.
12681         Define as 224 / 8, rather than as a literal.
12682         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
12683         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
12684         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
12685
12686 2008-07-31  Bruno Haible  <bruno@clisp.org>
12687
12688         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
12689         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
12690         Reported by Jonathan Patschke <jp@centtech.com>.
12691
12692 2008-07-31  Bruno Haible  <bruno@clisp.org>
12693
12694         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
12695         Reported by Paolo Bonzini <bonzini@gnu.org>.
12696
12697 2008-07-30  Eric Blake  <ebb9@byu.net>
12698
12699         test-strtod: allow compilation without -lm
12700         * tests/test-strtod.c (main): Avoid link dependence on fabs.
12701         Reported by Dennis Clarke <blastwave@gmail.com>.
12702
12703 2008-07-28  Jim Meyering  <meyering@redhat.com>
12704
12705         bootstrap: work also when there are no .po files in po/
12706         * build-aux/bootstrap (update_po_files): Complete the change
12707         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
12708
12709 2008-07-27  Jim Meyering  <meyering@redhat.com>
12710
12711         * users.txt: Add zile.
12712
12713 2008-07-26  Ben Pfaff  <blp@gnu.org>
12714
12715         Add missing dependencies on new m4/exponent[fdl].m4 files.
12716         * modules/isnanf-nolibm: Add m4/exponentf.m4.
12717         * modules/isnand-nolibm: Add m4/exponentd.m4.
12718         * modules/isnanl-nolibm: Add m4/exponentl.m4.
12719         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
12720         m4/isnan[fdl].m4, because the macros actually used moved.
12721         Reported by Jim Meyering.
12722
12723 2008-07-14  Ben Pfaff  <blp@gnu.org>
12724
12725         Add isinf module.
12726         * lib/isinf.c: New file.
12727         * lib/math.in.h: Define isinf macro if we have decided to replace
12728         it.
12729         * m4/isinf.m4: New file.
12730         * m4/math_h.m4: Initialize and substitute variables for isinf
12731         module.
12732         * modules/isinf: New file.
12733         * modules/isinf-tests: New file.
12734         * modules/math: Add substitutions for new module.
12735         * tests/test-isinf.c: New file.
12736         * doc/posix-functions/isinf.texi: Mention new module.
12737         * MODULES.html.sh: Mention new module.
12738
12739 2008-07-14  Ben Pfaff  <blp@gnu.org>
12740
12741         Factor out some macros for use by additional modules.
12742         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
12743         exponentf.m4.
12744         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
12745         exponentd.m4.
12746         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
12747         file exponentl.m4.
12748         * m4/exponentf.m4: New file.
12749         * m4/exponentd.m4: New file.
12750         * m4/exponentl.m4: New file.
12751         * modules/isnanf: Use new file m4/exponentf.m4.
12752         * modules/isnand: Use new file m4/exponentd.m4.
12753         * modules/isnanl: Use new file m4/exponentl.m4.
12754
12755 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
12756
12757         mktime.c: normalize tp->tm_isdst value to -1/0/1.
12758         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
12759         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
12760         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
12761
12762         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
12763         readlink on platforms without PATH_MAX.
12764
12765 2008-07-21  Eric Blake  <ebb9@byu.net>
12766
12767         Warn, not fail, on stale version.
12768         * top/GNUmakefile (_curr-ver): Tone down previous patch.
12769
12770         Don't allow installation with stale devel version number.
12771         * top/GNUmakefile (_is-install-target): New macro.
12772         (_curr-ver): Forbid installation with stale version number.
12773
12774 2008-07-20  Bruno Haible  <bruno@clisp.org>
12775
12776         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
12777         TESTS_ENVIRONMENT.
12778         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
12779
12780 2008-07-20  Bruno Haible  <bruno@clisp.org>
12781
12782         * lib/c-stack.h (c_stack_action): Add documentation.
12783         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
12784
12785 2008-07-20  Bruno Haible  <bruno@clisp.org>
12786
12787         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
12788         * modules/readlink (License): Likewise.
12789
12790 2008-07-17  Eric Blake  <ebb9@byu.net>
12791
12792         * modules/c-stack (Link): Fix typo.
12793
12794         Make c-stack use libsigsegv, when available.
12795         * modules/c-stack (Depends-on): Add libsigsegv.
12796         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
12797         needed.
12798         * lib/c-stack.c (SIGSTKSZ): Define fallback.
12799         (segv_handler, overflow_handler, c_stack_action)
12800         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
12801         implementation when libsigsegv is available, but only when using
12802         the library is necessary.
12803         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
12804         comment, explaining why XSI check fails on Linux.
12805         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
12806         * tests/test-c-stack2.sh: Tweak skip message.
12807         * NEWS: Document new link-time requirements.
12808
12809 2008-07-16  Eric Blake  <ebb9@byu.net>
12810
12811         c-stack: Expose false positives when not using libsigsegv.
12812         * modules/c-stack-tests (Files): Expand test.
12813         * tests/test-c-stack.c (main): Add means to conditionally trigger
12814         non-overflow SIGSEGV.
12815         * tests/test-c-stack2.sh: New file.
12816
12817 2008-07-14  Bruno Haible  <bruno@clisp.org>
12818
12819         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
12820         Reported by Eric Blake.
12821
12822 2008-07-14  Sam Steingold  <sds@gnu.org>
12823             Bruno Haible  <bruno@clisp.org>
12824
12825         New module libsigsegv.
12826         * modules/libsigsegv: New file.
12827         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
12828         modifications.
12829         * MODULES.html.sh (Signal handling): New section.
12830
12831 2008-07-14  Bruno Haible  <bruno@clisp.org>
12832
12833         * modules/unictype/ctype-* (Description): Add the word "function".
12834         Improves the resulting doc in MODULES.html.
12835
12836 2008-07-12  Ben Pfaff  <blp@gnu.org>
12837
12838         Add longlong module.
12839         * modules/longlong: New file.
12840
12841 2008-07-12  Bruno Haible  <bruno@clisp.org>
12842
12843         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
12844         to empty.
12845
12846 2008-07-10  Ben Pfaff  <blp@gnu.org>
12847
12848         Add isnan module.
12849         * doc/posix-functions/isnan.texi: Mention new module.
12850         * lib/math.in.h: Define isnan macro if we have decided to replace
12851         it.
12852         * m4/isnan.m4: New file.
12853         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
12854         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
12855         also.
12856         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
12857         redundancy.
12858         * m4/math_h.m4: Initialize and substitute variables for isnan
12859         module.
12860         * modules/isnan: New file.
12861         * modules/isnan-tests: New file.
12862         * modules/math: Add substitutions for new module.
12863         * tests/test-isnan.c: New file.
12864         * MODULES.html.sh: Mention new module.
12865
12866 2008-07-10  Ben Pfaff  <blp@gnu.org>
12867
12868         Add isnanf module.
12869         * lib/isnanf.m4: New file.
12870         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
12871         (gl_HAVE_ISNANF_IN_LIBM): New macro.
12872         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
12873         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
12874         * modules/isnanf: New file.
12875         * modules/isnanf-tests: New file.
12876         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
12877         files.
12878         * tests/test-isnanf-nolibm.c: factored most of its contents into
12879         new file tests/test-isnanf.h.
12880         * tests/test-isnanf.h: New file.
12881         * tests/test-isnanf.c: New file.
12882         * MODULES.html.sh: Mention new module.
12883         * doc/glibc-functions/isnanf.texi: Mention new module.
12884
12885 2008-07-10  Ben Pfaff  <blp@gnu.org>
12886
12887         Add isnand module.
12888         * lib/isnand.h: New file.
12889         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
12890         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
12891         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
12892         functionality also.
12893         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
12894         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
12895         (gl_HAVE_ISNAND_IN_LIBM): New macro.
12896         * modules/isnand: New file.
12897         * modules/isnand-tests: New file.
12898         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
12899         files.
12900         * tests/test-isnand-nolibm.c: factored most of its contents into
12901         new file tests/test-isnand.h.
12902         * tests/test-isnand.h: New file.
12903         * tests/test-isnand.c: New file.
12904         * MODULES.html.sh: Mention new module.
12905
12906 2008-07-10  Ben Pfaff  <blp@gnu.org>
12907
12908         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
12909         * lib/isnand.h: Rename lib/isnand-nolibm.h.
12910         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
12911         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
12912         * modules/isnanf-nolibm: Update references to renamed files.
12913         * modules/isnand-nolibm: Likewise.
12914         * modules/isnanf-nolibm-tests: Likewise.
12915         * modules/isnand-nolibm-tests: Likewise.
12916         * lib/frexp.c: Likewise.
12917         * lib/isfinite.c: Likewise.
12918         * lib/signbitd.c: Likewise.
12919         * lib/signbitf.c: Likewise.
12920         * lib/vasnprintf.c: Likewise.
12921         * tests/test-ceilf1.c: Likewise.
12922         * tests/test-ceilf2.c: Likewise.
12923         * tests/test-floorf1.c: Likewise.
12924         * tests/test-floorf2.c: Likewise.
12925         * tests/test-frexp.c: Likewise.
12926         * tests/test-round1.c: Likewise.
12927         * tests/test-round2.c: Likewise.
12928         * tests/test-roundf1.c: Likewise.
12929         * tests/test-strtod.c: Likewise.
12930         * tests/test-trunc1.c: Likewise.
12931         * tests/test-trunc2.c: Likewise.
12932         * tests/test-truncf1.c: Likewise.
12933         * tests/test-truncf2.c: Likewise.
12934         * NEWS: Mention the renamed header files.
12935
12936 2008-07-11  Jim Meyering  <meyering@redhat.com>
12937
12938         vc-list-files: make the last-resort awk code more portable
12939         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
12940         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
12941         does not support it.
12942
12943 2008-07-10  Eric Blake  <ebb9@byu.net>
12944
12945         Work with tar's bootstrap.
12946         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
12947         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
12948         an m4 comment.
12949
12950 2008-07-09  Jim Meyering  <meyering@redhat.com>
12951
12952         posix-shell.m4: fix typo that made this test malfunction
12953         * m4/posix-shell.m4: Remove capitalization in variable name.
12954
12955 2008-07-08  Bruno Haible  <bruno@clisp.org>
12956
12957         * m4/onceonly.m4: Update comments.
12958         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12959
12960 2008-07-04  Jim Meyering  <meyering@redhat.com>
12961
12962         * users.txt: Add vc-dwim.
12963         (bison, coreutils): Use the gitweb URL.
12964
12965 2008-07-03  Jim Meyering  <meyering@redhat.com>
12966
12967         * users.txt: Add libffcall.  From Sam Steingold.
12968
12969 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
12970
12971         getdate.y: do not ignore TZ with relative day, month or year offset
12972         * lib/getdate.y (get_date): Move the tz-handling block to follow the
12973         relative-date-handling, since otherwise, the latter would clobber the
12974         sole output (an updated Start value) of the tz-handling block.
12975         * tests/test-getdate.c: Tests for the fix
12976
12977 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12978
12979         Recognize 'foo_LIBRARIES += libgnu.a'.
12980         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
12981         makefile snippet has already specified an installation location,
12982         also using '+='.
12983
12984 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
12985
12986         getdate.y: factor out common actions
12987         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
12988         Use them in place of open-coded actions.
12989
12990 2008-07-01  Simon Josefsson  <simon@josefsson.org>
12991
12992         Add self-test for getdate module.
12993         * modules/getdate-tests: New file.
12994         * tests/test-getdate.c: New file.
12995
12996 2008-06-29  Bruno Haible  <bruno@clisp.org>
12997
12998         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
12999         .gitignore.
13000         Reported by Sylvain Beucler <beuc@beuc.net>.
13001
13002 2008-06-29  Bruno Haible  <bruno@clisp.org>
13003
13004         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
13005         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
13006
13007 2008-06-29  Bruno Haible  <bruno@clisp.org>
13008
13009         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
13010         EXTRA_DIST.
13011         Reported by Sylvain Beucler <beuc@beuc.net>.
13012
13013 2008-06-26  Jim Meyering  <meyering@redhat.com>
13014
13015         make several modules depend on the "open" module
13016         This provides slightly increased consistency when opening-for-write
13017         the name of a non-directory spelled with a trailing slash.
13018         * modules/chdir-safer: Likewise.
13019         * modules/chown: Likewise.
13020         * modules/clean-temp: Likewise.
13021         * modules/copy-file: Likewise.
13022         * modules/fchdir: Likewise.
13023         * modules/fcntl-safer: Likewise.
13024         * modules/pipe: Likewise.
13025         * modules/utime: Likewise.
13026         Prompted by Eric Blake and Bruno Haible.
13027
13028 2008-06-24  Andreas Schwab  <schwab@suse.de>
13029
13030         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
13031         literals can be used as initializers for global variables.
13032
13033 2008-06-23  Eric Blake  <ebb9@byu.net>
13034
13035         Make gnulib-cache.m4 easier to diff.
13036         * gnulib-tool (func_import): Allow newlines when reading cached
13037         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
13038
13039 2008-06-23  Bruno Haible  <bruno@clisp.org>
13040
13041         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
13042         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
13043         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
13044         m4/signalblocking.m4.
13045         (gl_PREREQ_SIGACTION): Don't invoke it.
13046         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
13047         gl_PREREQ_SIG_HANDLER_H.
13048         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
13049         Don't check for sigaction here.
13050
13051 2008-06-23  Bruno Haible  <bruno@clisp.org>
13052
13053         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
13054         (install_handlers): Don't set the SA_RESETHAND flag.
13055
13056 2008-06-23  Bruno Haible  <bruno@clisp.org>
13057
13058         * m4/sigaction.m4: Comment fixes.
13059         * lib/signal.in.h: Likewise.
13060
13061 2008-06-23  Eric Blake  <ebb9@byu.net>
13062
13063         Fix typo.
13064         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
13065
13066         Avoid SA_ namespace.
13067         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
13068         Reported by Ralf Wildenhues.
13069
13070         Avoid test failure due to SA_RESTORER.
13071         * tests/test-sigaction.c (SA_MASK): New macro.
13072         (main): Avoid failing due to extension flags being set.
13073         Reported by Jim Meyering.
13074
13075         Revert use of sig-handler.h in sigprocmask.c.
13076         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
13077         it requires the existence of struct sigaction.
13078         * lib/sigprocmask.c (handler_t): Restore typedef.
13079         (rpl_signal, old_handlers): Use local type.
13080
13081 2008-06-22  Bruno Haible  <bruno@clisp.org>
13082
13083         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
13084         conditionally.
13085         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13086
13087 2008-06-22  Bruno Haible  <bruno@clisp.org>
13088
13089         * doc/posix-functions/siginterrupt.texi: Move note.
13090
13091         * lib/signal.in.h (SA_RESTART): New macro.
13092         * lib/sigaction.c: Update comment.
13093
13094         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
13095
13096         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
13097         (gl_PREREQ_SIGPROCMASK): Invoke it.
13098         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
13099
13100         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
13101
13102         * lib/sigprocmask.c: Update a comment.
13103
13104 2008-06-21  Eric Blake  <ebb9@byu.net>
13105
13106         Use sigaction module rather than signal().
13107         * modules/c-stack (Depends-on): Add sigaction.
13108         * modules/fatal-signal (Depends-on): Likewise.
13109         * modules/nanosleep (Depends-on): Likewise.
13110         * modules/sigprocmask (Files): Add sig-handler.h.
13111         * modules/sigaction (Files): Likewise.
13112         * lib/sig-handler.h (get_handler): New file, suggested by Paul
13113         Eggert.
13114         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
13115         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
13116         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
13117         (init_fatal_signals): Likewise.
13118         * lib/nanosleep.c (rpl_nanosleep): Likewise.
13119         (siginterrupt): Delete fallback.
13120         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
13121         instead.
13122         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
13123         siginterrupt.
13124
13125         New module sigaction, for mingw.
13126         * modules/sigaction: New module...
13127         * modules/sigaction-tests: ...and its test.
13128         * m4/sigaction.m4: New file.
13129         * lib/sigaction.c: Likewise.
13130         * tests/test-sigaction.c: Likewise.
13131         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
13132         * modules/signal (Makefile.am): Likewise.
13133         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
13134         needed.
13135         * doc/posix-headers/signal.texi (signal.h): Mention provided
13136         types.
13137         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
13138         that sigaction is preferable.
13139         * doc/posix-functions/sigaction.texi (sigaction): Mention new
13140         module.
13141         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13142         sigaction.
13143
13144         Improve robustness of sigprocmask by overriding signal.
13145         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
13146         is in use.
13147         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
13148         (SIGKILL, SIGSTOP): Provide fallbacks.
13149         (rpl_signal): Implement.
13150         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
13151         signal can be called inside handlers.
13152
13153         Fix nanosleep module on mingw.
13154         * modules/nanosleep (Depends-on): Add sys_select.
13155         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
13156
13157         Fix licensing of sigprocmask.
13158         * modules/raise (License): Relicense as LGPL.
13159
13160 2008-06-21  Bruno Haible  <bruno@clisp.org>
13161
13162         * lib/propername.c (proper_name_utf8): Don't use the transliterated
13163         result if it contains question marks.
13164         Reported by Michael Geng <linux@michaelgeng.de>.
13165
13166 2008-06-19  Bruno Haible  <bruno@clisp.org>
13167
13168         Fix CVS-ism.
13169         * doc/gnulib.texi: Include updated-stamp.texi.
13170         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
13171         (updated-stamp.texi): New rule.
13172         (gnulib.info): Depend on it.
13173         * doc/.gitignore: Add updated-stamp.texi.
13174         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
13175
13176 2008-06-19  Bruno Haible  <bruno@clisp.org>
13177
13178         * doc/Makefile (gnulib.info): Update and simplify dependencies.
13179         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
13180
13181 2008-06-19  Eric Blake  <ebb9@byu.net>
13182
13183         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
13184         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
13185         Reported by Stepan Kasal.
13186
13187 2008-06-18  Bruno Haible  <bruno@clisp.org>
13188
13189         * lib/fatal-signal.c (init_fatal_signals): Add comment.
13190         Reported by Eric Blake.
13191
13192 2008-06-18  Eric Blake  <ebb9@byu.net>
13193
13194         Work around cygwin 1.5.25 strsignal bug.
13195         * tests/test-strsignal.c: Allow for const char *.
13196         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
13197
13198 2008-06-18  Simon Josefsson  <simon@josefsson.org>
13199
13200         * users.txt: Update URL to article and add author/date
13201         information.
13202
13203 2008-06-17  Bruno Haible  <bruno@clisp.org>
13204
13205         New macro gl_DISABLE_THREADS.
13206         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
13207         if the user did not pass --enable-threads or --disable-threads option.
13208         (gl_DISABLE_THREADS): New macro.
13209         Reported by Eric Blake <ebb9@byu.net>.
13210
13211 2008-06-17  Bruno Haible  <bruno@clisp.org>
13212
13213         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
13214         when the macro ignores it.
13215         Based on a patch by Eric Blake <ebb9@byu.net>.
13216
13217 2008-06-17  Bruno Haible  <bruno@clisp.org>
13218
13219         * modules/tls (License): Change to LGPLv2+.
13220         Reported by Eric Blake.
13221
13222 2008-06-17  Eric Blake  <ebb9@byu.net>
13223
13224         Simplify c-stack prerequisites.
13225         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
13226         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
13227         no longer requires <ucontext.h> to exist.  Optimize setrlimit
13228         check.
13229         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
13230         <sys/resource.h>.
13231
13232         Move c-stack test into testsuite.
13233         * modules/c-stack-tests: New file.
13234         * lib/c-stack.c [DEBUG]: Move test program...
13235         * tests/test-c-stack.c: ...into this new file.  Skip rather than
13236         fail test if sigaltstack is lacking.
13237         * tests/test-c-stack.sh: New driver file.
13238
13239 2008-06-16  Eric Blake  <ebb9@byu.net>
13240
13241         Use raise module consistently.
13242         * modules/fatal-signal (Depends-on): Add raise.
13243         * modules/sigprocmask (Depends-on): Likewise.
13244         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
13245         * lib/sigprocmask.c (sigprocmask): Likewise.
13246         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
13247         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
13248
13249         Fix compliance bug in sigpending.
13250         * lib/sigprocmask.c (sigpending): Return pending array via
13251         parameter, not return value.
13252
13253 2008-06-14  Eric Blake  <ebb9@byu.net>
13254
13255         Improve obstack-printf test code.
13256         * tests/test-obstack-printf.c (test_function): Fix comment, and
13257         simplify usage of obstack_* in macros.  Add a test for coverage.
13258         Reported by Bruno Haible.
13259
13260 2008-06-14  Bruno Haible  <bruno@clisp.org>
13261
13262         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
13263         array size as a constant, not as a const variable.
13264         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
13265         AC_USE_SYSTEM_EXTENSIONS.
13266         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
13267         Test whether the obstack_printf function actually exists.
13268         * modules/obstack-printf (Depends-on): Add extensions.
13269         (Include): Remove obstack.h.
13270         * modules/obstack-printf-posix (Depends-on): Add extensions.
13271         (Include): Remove obstack.h.
13272
13273 2008-06-13  Eric Blake  <ebb9@byu.net>
13274
13275         Add obstack-printf and obstack-printf-posix modules.
13276         * modules/obstack-printf: New file.
13277         * modules/obstack-printf-posix: Likewise.
13278         * MODULES.html.sh (Misc): Mention them.
13279         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
13280         Likewise.
13281         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
13282         Likewise.
13283         * modules/stdio (Makefile.am): Accomodate new modules.
13284         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13285         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
13286         Declare.
13287         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
13288         functions.
13289         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
13290         (gl_REPLACE_OBSTACK_PRINTF): New macros
13291         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
13292         * tests/test-obstack-printf.c: New file.
13293         * modules/obstack-printf-tests: Likewise.
13294         * modules/obstack-printf-posix-tests: Likewise.
13295
13296 2008-06-11  Bruno Haible  <bruno@clisp.org>
13297
13298         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
13299         * lib/open.c: Include errno.h.
13300         (open): Fail when attempting to write to a file that has a trailing
13301         slash.
13302         * tests/test-open.c (main): Test against trailing slash bug.
13303         * doc/posix-functions/open.texi: Mention the trailing slash bug.
13304
13305 2008-06-10  Bruno Haible  <bruno@clisp.org>
13306
13307         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
13308         for $? to work inside the trap command, with various /bin/sh-s.
13309         * tests/test-vc-list-files-cvs.sh: Likewise.
13310
13311 2008-06-10  Bruno Haible  <bruno@clisp.org>
13312
13313         * lib/acl-internal.h: Don't include gettext.h here.
13314         * lib/set-mode-acl.c: Include gettext.h here.
13315         * lib/copy-acl.c: Likewise.
13316
13317 2008-06-10  Bruno Haible  <bruno@clisp.org>
13318
13319         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
13320         * lib/wait-process.c (wait_subprocess): Likewise.
13321         * lib/execute.h (execute): Add termsigp argument.
13322         * lib/execute.c (execute): Likewise.
13323         * lib/csharpcomp.c (compile_csharp_using_pnet,
13324         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
13325         * lib/csharpexec.c (execute_csharp_using_pnet,
13326         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
13327         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
13328         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
13329         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
13330         is_jikes_present): Update.
13331         * lib/javaexec.c (execute_java_class): Update.
13332         * lib/javaversion.c (execute_and_read_line): Update.
13333         * NEWS: Document the changes.
13334         Reported by Eric Blake.
13335
13336 2008-06-10  Eric Blake  <ebb9@byu.net>
13337
13338         Add missing include.
13339         * tests/test-strstr.c (includes): Add <signal.h>.
13340         * tests/test-strcasestr.c (includes): Likewise.
13341         * tests/test-memmem.c (includes): Likewise.
13342
13343 2008-06-10  Bruno Haible  <bruno@clisp.org>
13344
13345         * lib/wait-process.c (wait_subprocess): Add an assertion.
13346
13347 2008-06-10  Bruno Haible  <bruno@clisp.org>
13348
13349         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
13350
13351 2008-06-10  Bruno Haible  <bruno@clisp.org>
13352
13353         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
13354         using alarm().
13355         * tests/test-strcasestr.c (main): Likewise.
13356         * tests/test-strstr.c (main): Likewise.
13357
13358 2008-06-09  Bruno Haible  <bruno@clisp.org>
13359
13360         Work around the Solaris 10 ACE ACLs ABI change.
13361         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
13362         declare if ACL_NO_TRIVIAL is present.
13363         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
13364         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
13365         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
13366         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
13367         define if ACL_NO_TRIVIAL is present.
13368         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
13369         and use the current ABI.
13370         (file_has_acl): Use same #if condition as elsewhere.
13371         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
13372         in use, and use the current ABI.
13373         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
13374         Reported by Jim Meyering.
13375
13376 2008-06-09  Eric Blake  <ebb9@byu.net>
13377
13378         Work around environments that (stupidly) ignore SIGALRM.
13379         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
13380         before using alarm().
13381         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13382         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13383         Reported by Ian Beckwith <ianb@erislabs.net>.
13384
13385         Produce autobuild blurb earlier in log.
13386         * modules/autobuild (configure.ac-early): Move AB_INIT here.
13387
13388 2008-06-09  Jim Meyering  <meyering@redhat.com>
13389         and Ondřej Vašík  <ovasik@redhat.com>
13390
13391         utimens.c: correct kernel bug work-around
13392         Ondřej Vašík found that the invalid return value of 280 indicates
13393         failure, not success, and the kernel bug we're trying to work
13394         around affects not just the utimensat call, but also the fallback
13395         futimens call.
13396         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
13397         not success.
13398         [HAVE_FUTIMENS]: Use the same work-around, here.
13399
13400 2008-06-09  Jim Meyering  <meyering@redhat.com>
13401
13402         add more guards around definition of ACE_-related code
13403         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
13404         ALLOW and ACE_OWNER are also defined.
13405
13406 2008-06-08  Bruno Haible  <bruno@clisp.org>
13407
13408         * lib/acl-internal.h: Add me as co-author.
13409         * lib/file-has-acl.c: Likewise.
13410         * lib/set-mode-acl.c: Likewise.
13411         * lib/copy-acl.c: Likewise.
13412
13413 2008-06-08  Bruno Haible  <bruno@clisp.org>
13414
13415         Add support for AIX ACLs.
13416         * lib/acl-internal.h (acl_nontrivial): New declaration.
13417         * lib/file-has-acl.c (acl_nontrivial): New function.
13418         (file_has_acl): Add implementation using AIX 4 ACL API.
13419         * lib/set-mode-acl.c (qset_acl): Likewise.
13420         * lib/copy-acl.c (qcopy_acl): Likewise.
13421
13422 2008-06-08  Bruno Haible  <bruno@clisp.org>
13423
13424         Add support for HP-UX ACLs.
13425         * lib/acl-internal.h (acl_nontrivial): New declaration.
13426         * lib/file-has-acl.c (acl_nontrivial): New function.
13427         (file_has_acl): Add implementation using HP-UX 11 ACL API.
13428         * lib/set-mode-acl.c (qset_acl): Likewise.
13429         * lib/copy-acl.c (qcopy_acl): Likewise.
13430
13431 2008-06-08  Bruno Haible  <bruno@clisp.org>
13432
13433         Add support for Cygwin ACLs.
13434         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
13435         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
13436         the chmod_or_fchmod call.
13437         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
13438
13439 2008-06-08  Bruno Haible  <bruno@clisp.org>
13440
13441         Fix bug with setuid modes in Solaris 10+ code.
13442         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
13443         succeeded, when the mode contains some special bits.
13444
13445 2008-06-08  Bruno Haible  <bruno@clisp.org>
13446
13447         Add support for Solaris 7..10 ACLs.
13448         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
13449         declarations.
13450         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
13451         functions.
13452         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
13453         * lib/set-mode-acl.c (qset_acl): Likewise.
13454         * lib/copy-acl.c (qcopy_acl): Likewise.
13455
13456 2008-06-08  Bruno Haible  <bruno@clisp.org>
13457
13458         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
13459         declaration.
13460         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
13461         (acl_access_nontrivial): Remove MacOS X case.
13462         (file_has_acl): Use acl_extended_nontrivial.
13463         * lib/copy-acl.c (qcopy_acl): Likewise.
13464
13465 2008-06-08  Bruno Haible  <bruno@clisp.org>
13466
13467         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
13468
13469 2008-06-08  Jim Meyering  <meyering@redhat.com>
13470
13471         * modules/acl (Maintainer): Add Bruno Haible.
13472
13473 2008-06-07  Bruno Haible  <bruno@clisp.org>
13474
13475         Improve support for Tru64 ACLs.
13476         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
13477         ACL on OSF/1.
13478
13479 2008-06-07  Bruno Haible  <bruno@clisp.org>
13480
13481         Add support for MacOS X ACLs.
13482         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
13483         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
13484         * lib/set-mode-acl.c (qset_acl): Likewise.
13485         * lib/copy-acl.c (qcopy_acl): Likewise.
13486
13487 2008-06-07  Bruno Haible  <bruno@clisp.org>
13488
13489         Fix memory leak introduced on 2008-05-22.
13490         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
13491         use.
13492
13493 2008-06-07  Bruno Haible  <bruno@clisp.org>
13494
13495         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
13496         to construct an empty ACL.
13497
13498 2008-06-07  Bruno Haible  <bruno@clisp.org>
13499
13500         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
13501         precisely.
13502         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
13503
13504 2008-06-07  Bruno Haible  <bruno@clisp.org>
13505
13506         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
13507         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
13508
13509 2008-06-07  Bruno Haible  <bruno@clisp.org>
13510
13511         * doc/posix-functions/_setjmp.texi: Explain the use of this function
13512         regardless of POSIX.
13513         * doc/posix-functions/_longjmp.texi: Likewise.
13514         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
13515         SystemV platform in this case.
13516
13517 2008-06-06  Eric Blake  <ebb9@byu.net>
13518
13519         Document abort() bugs.
13520         * doc/posix-functions/abort.texi (abort): Mention anomalies.
13521
13522         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
13523         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
13524         sigsetjmp.
13525         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
13526         siglongjmp, but only as a macro.
13527         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
13528         is obsolete.
13529         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
13530
13531         Tweak documentation to cover cygwin argz bugs.
13532         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
13533         argz bug fix; no code change needed since no cygwin releases
13534         occurred between the last fix and the bug being tested.
13535         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
13536         module and recently fixed cygwin bugs.
13537         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
13538         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
13539         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
13540         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
13541         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
13542         Likewise.
13543         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
13544         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
13545         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
13546         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
13547         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
13548         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
13549         Likewise.
13550
13551         Avoid gcc warning on cygwin.
13552         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
13553         !ACL_NO_TRIVIAL]: Avoid unused variable.
13554
13555 2008-06-05  Eric Blake  <ebb9@byu.net>
13556
13557         Be tolerant of UNKNOWN version in gnulib-tool test dir.
13558         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
13559         git-version-gen fails to come up with a version.
13560         Reported by Simon Josefsson.
13561
13562 2008-06-05  Jim Meyering  <meyering@redhat.com>
13563             Paul Eggert  <eggert@cs.ucla.edu>
13564
13565         utimens.c: work around a probable Linux kernel bug
13566         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
13567         appears to be a kernel bug that causes utimensat to return 280
13568         instead of 0, indicating success.
13569
13570 2008-06-04  Bruno Haible  <bruno@clisp.org>
13571
13572         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
13573         2008-06-01 commit.
13574
13575 2008-06-04  Bruno Haible  <bruno@clisp.org>
13576
13577         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
13578         * lib/file-has-acl.c (acl_access_nontrivial): New function.
13579         (file_has_acl): Use it. Save errno afterwards.
13580         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
13581
13582 2008-06-03  Bruno Haible  <bruno@clisp.org>
13583
13584         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
13585         draft code. Simplify #ifs.
13586         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
13587         Put Solaris code after POSIX-draft code. Fix comments regarding
13588         Solaris 10, HP-UX. Mention Cygwin.
13589         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
13590
13591 2008-06-03  Eric Blake  <ebb9@byu.net>
13592
13593         Provide fallback for older kernels.
13594         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
13595         Provide runtime fallback if kernel lacks support.
13596         Reported by Mike Frysinger.
13597
13598 2008-06-02  Bruno Haible  <bruno@clisp.org>
13599
13600         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
13601         it exists.
13602
13603 2008-06-02  Bruno Haible  <bruno@clisp.org>
13604
13605         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
13606         * lib/copy-acl.c (qcopy_acl): Update comment.
13607
13608 2008-06-02  Bruno Haible  <bruno@clisp.org>
13609
13610         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
13611         like ACL APIs.
13612
13613 2008-06-02  Bruno Haible  <bruno@clisp.org>
13614
13615         * tests/test-file-has-acl.sh: Use different code for Cygwin.
13616         * tests/test-set-mode-acl.sh: Likewise.
13617         * tests/test-copy-acl.sh: Likewise.
13618         * tests/test-copy-file.sh: Likewise.
13619
13620 2008-06-02  Bruno Haible  <bruno@clisp.org>
13621
13622         * tests/test-file-has-acl.sh: Remove unused code.
13623
13624 2008-06-01  Bruno Haible  <bruno@clisp.org>
13625
13626         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
13627         (copy_acl): Just a wrapper around qcopy_acl that emits the error
13628         messages.
13629         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
13630
13631 2008-06-01  Bruno Haible  <bruno@clisp.org>
13632
13633         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
13634         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
13635         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
13636         APIs.
13637         * modules/acl-tests (configure.ac): Remove tests now contained in
13638         m4/acl.m4.
13639
13640 2008-06-02  Jim Meyering  <meyering@redhat.com>
13641
13642         announce-gen: use a better key-server host name
13643         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
13644         it may be more consistently reliable.  Suggested by Werner Koch
13645         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
13646
13647 2008-06-01  Bruno Haible  <bruno@clisp.org>
13648
13649         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
13650         Reported by Voroskoi Andras <voroskoi@gmail.com>.
13651
13652 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
13653
13654         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
13655
13656 2008-06-01  Bruno Haible  <bruno@clisp.org>
13657
13658         New ACL tests.
13659         * tests/test-file-has-acl.sh: New file.
13660         * tests/test-file-has-acl.c: New file.
13661         * tests/test-set-mode-acl.sh: New file.
13662         * tests/test-set-mode-acl.c: New file.
13663         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
13664         * tests/test-copy-acl.c: New file.
13665         * modules/acl-tests: New file, based on modules/copy-file-tests.
13666         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
13667         (Depends-on): Add acl-tests.
13668         (configure.ac): Remove checks.
13669         (Makefile.am): Don't create test-sameacls program here any more.
13670
13671 2008-06-01  Bruno Haible  <bruno@clisp.org>
13672
13673         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
13674         * tests/test-sameacls.c: Include progname.h.
13675         (main): Invoke set_program_name. Portability fixes for MacOS X,
13676         Solaris, HP-UX.
13677
13678 2008-06-01  Bruno Haible  <bruno@clisp.org>
13679
13680         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
13681         function.
13682         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
13683
13684 2008-06-01  Bruno Haible  <bruno@clisp.org>
13685
13686         * modules/rpmatch (Depends-on): Add strdup.
13687
13688 2008-06-01  Bruno Haible  <bruno@clisp.org>
13689
13690         * lib/pipe.c: Include unistd-safer.h.
13691         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
13692         * modules/pipe (Depends-on): Add unistd-safer.
13693
13694 2008-05-30  Simon Josefsson  <simon@josefsson.org>
13695
13696         * modules/autobuild (configure.ac): Call AB_INIT.
13697
13698 2008-05-30  Simon Josefsson  <simon@josefsson.org>
13699
13700         * tests/test-getaddrinfo.c: Don't print debug messages by default.
13701         Suggested by Bruno Haible <bruno@clisp.org>.
13702
13703 2008-05-30  Simon Josefsson  <simon@josefsson.org>
13704
13705         * tests/test-base64.c: Cast size_t to unsigned long when invoking
13706         printf.  Use %lu instead of %d.  Reported by Bruno Haible
13707         <bruno@clisp.org>.
13708
13709 2008-05-29  Eric Blake  <ebb9@byu.net>
13710
13711         Prefer new POSIX 200x interfaces over futimesat.
13712         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
13713         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
13714         when available.
13715         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
13716
13717 2008-05-28  Bruno Haible  <bruno@clisp.org>
13718
13719         * modules/stpcpy (License): Change to LGPLv2+.
13720         Requested by David Lutterkort <dlutter@redhat.com>.
13721
13722 2008-05-27  Bruno Haible  <bruno@clisp.org>
13723
13724         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
13725         current mingw.
13726         Reported by Jose E. Marchesi <jemarch@gnu.org>.
13727
13728 2008-05-27  Bruno Haible  <bruno@clisp.org>
13729
13730         * modules/iconv_open (Link): New section, from module 'iconv'.
13731         * modules/striconv (Link): Likewise.
13732         * modules/striconveh (Link): Likewise.
13733         * modules/xstriconv (Link): Likewise.
13734         * modules/unicodeio (Link): Likewise.
13735         * modules/propername (Link): Likewise.
13736         Reported by Jim Meyering.
13737
13738 2008-05-26  Jim Meyering  <meyering@redhat.com>
13739
13740         sha256: do not artificially restrict buffer length to be < 2^32
13741         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
13742         uint32_t to size_t.
13743         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
13744         to match.
13745
13746         avoid unaligned access errors, e.g., on sparc
13747         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
13748         direct access through a possibly-unaligned uint64* pointer.
13749         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
13750         direct access through a possibly-unaligned uint32* pointer.
13751         Prompted by this patch from Tom "spot" Callaway:
13752         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
13753
13754         sha512.c: fix typo in comment
13755         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
13756
13757 2008-05-25  Bruno Haible  <bruno@clisp.org>
13758
13759         * lib/set-mode-acl.c: Renamed from lib/acl.c.
13760         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
13761         (Makefile.am): Update lib_SOURCES.
13762
13763 2008-05-25  Bruno Haible  <bruno@clisp.org>
13764
13765         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
13766
13767 2008-05-25  Jim Meyering  <meyering@redhat.com>
13768
13769         useless-if-before-free: freed expr may have white-space differences
13770         * build-aux/useless-if-before-free: Recognize cases in which the
13771         freed expression differs from the tested one in embedded white
13772         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
13773         $1 was used, so we can't make any regexp shy.  Improved tests now
13774         detect this.
13775
13776         useless-if-before-free: accept white space in the expression.
13777         * build-aux/useless-if-before-free: For now, any white space
13778         in the expression must be identical in the free argument.
13779
13780         useless-if-before-free: efficiency tweak
13781         * build-aux/useless-if-before-free: Make the expression-matching
13782         regexp "shy".
13783         Make the *outer* regexp shy, not the expr-matching one.
13784
13785         update code-in-comment to accept cast of free arg
13786         * build-aux/useless-if-before-free: Update regexp.
13787
13788 2008-05-25  Bruno Haible  <bruno@clisp.org>
13789
13790         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
13791         * modules/copy-file-tests (Files, Makefile.am): Update.
13792         * tests/test-copy-file.c (func_test_copy): Update.
13793
13794 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
13795
13796         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
13797
13798 2008-05-23  Bruno Haible  <bruno@clisp.org>
13799
13800         Improve support for ACLs on OSF/1.
13801         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
13802         Remove fallback for unknown flavors of ACLs.
13803
13804 2008-05-22  Bruno Haible  <bruno@clisp.org>
13805
13806         Add support for ACLs on OSF/1.
13807         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
13808         replacements.
13809         (acl_free_text): New macro fallback.
13810         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
13811         acl_free.
13812         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
13813         acl_free_text function. Require AC_C_INLINE.
13814
13815 2008-05-22  Bruno Haible  <bruno@clisp.org>
13816
13817         Make copy_acl work on MacOS X 10.5.
13818         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
13819         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
13820         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
13821         If MODE_INSIDE_ACL, don't assume that every system has the same text
13822         representation for ACLs as FreeBSD.
13823         * lib/copy-acl.c (copy_acl): Add support for platforms with
13824         !MODE_INSIDE_ACL.
13825         * lib/file-has-acl.c (file_has_acl): Likewise.
13826         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
13827         FreeBSD, MacOS X, or IRIX, respectively.
13828
13829 2008-05-22  Bruno Haible  <bruno@clisp.org>
13830
13831         * lib/acl.h: Don't include <sys/acl.h>.
13832         (GETACLCNT): Move fallback to lib/acl-internal.h.
13833         * lib/acl-internal.h: Include <sys/acl.h> here.
13834         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
13835
13836 2008-05-22  Bruno Haible  <bruno@clisp.org>
13837
13838         Split off copy_acl function to separate file.
13839         * lib/copy-acl.c: New file, extracted from lib/acl.c.
13840         * lib/acl.c (copy_acl): Moved function to separate file.
13841         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
13842         * modules/acl (Files): Add lib/copy-acl.c.
13843         (Makefiles.am): Augment lib_SOURCES.
13844
13845 2008-05-22  Bruno Haible  <bruno@clisp.org>
13846
13847         * modules/copy-file-tests: New file.
13848         * tests/test-copy-file.sh: New file.
13849         * tests/test-copy-file.c: New file.
13850         * tests/test-copy-file-sameacls.c: New file.
13851
13852 2008-05-22  Eric Blake  <ebb9@byu.net>
13853
13854         Avoid gcc warning.
13855         * tests/test-memcmp.c (main): Pass NULL indirectly.
13856
13857 2008-05-21  Bruno Haible  <bruno@clisp.org>
13858
13859         Add reference doc about ACLs.
13860         * doc/acl-resources.txt: New file.
13861         * doc/acl-cygwin.txt: New file.
13862
13863 2008-05-21  Bruno Haible  <bruno@clisp.org>
13864
13865         Avoid one more warning from gcc.
13866         * lib/vasnprintf.c (IF_LINT): Update comments.
13867         (VASNPRINTF): Use it also for the 'prefix' array initializer.
13868
13869 2008-05-21  Jim Meyering  <meyering@redhat.com>
13870
13871         avoid a warning from gcc
13872         * lib/vasnprintf.c (IF_LINT): Define.
13873         (scale10_round_decimal_long_double):
13874         Use it to avoid a "may be used uninitialized" warning.
13875         (scale10_round_decimal_double): Likewise.
13876
13877 2008-05-21  Simon Josefsson  <simon@josefsson.org>
13878
13879         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
13880         declared.
13881
13882 2008-05-20  Bruno Haible  <bruno@clisp.org>
13883
13884         * tests/test-memcmp.c (main): Test also the sign of the result. Test
13885         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
13886
13887 2008-05-20  Simon Josefsson  <simon@josefsson.org>
13888
13889         * modules/memcmp-tests: New file.
13890         * tests/test-memcmp.c: New file.
13891
13892 2008-05-19  Bruno Haible  <bruno@clisp.org>
13893
13894         * modules/propername (Notice, configure.ac): Put quoted "..." into
13895         --keyword option.
13896         * lib/propername.h: Update comments accordingly.
13897         Reported by Eric Blake.
13898
13899 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
13900
13901         * modules/getpass-gnu (Depends-on): Add fseeko.
13902
13903 2008-05-19  Simon Josefsson  <simon@josefsson.org>
13904
13905         * modules/base64-tests: New file.
13906
13907 2008-05-19  Bo Borgerson <gigabo@gmail.com>
13908
13909         * lib/base64.c (base64_decode_ctx): If a decode context structure
13910         was passed in use it to ignore newlines.  If a context structure
13911         was _not_ passed in, continue to treat newlines as garbage (this
13912         is the historical behavior).  Formerly base64_decode.
13913         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
13914         takes a decode context structure.
13915         * lib/base64.h (base64_decode): Macro for four-argument calls.
13916         (base64_decode_alloc): Likewise.
13917         * lib/base64.c (base64_decode_ctx): If a decode context structure
13918         was passed in use it to ignore newlines.  If a context structure
13919         was _not_ passed in, continue to treat newlines as garbage (this
13920         is the historical behavior).  Formerly base64_decode.
13921         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
13922         takes a decode context structure.
13923         * lib/base64.h (base64_decode): Macro for four-argument calls.
13924         (base64_decode_alloc): Likewise.
13925
13926 2008-05-19  Jim Meyering  <meyering@redhat.com>
13927
13928         avoid a warning from gcc
13929         * lib/trim.c (IF_LINT): Define.
13930         (trim2): Use it to avoid a "may be used uninitialized" warning.
13931
13932         Fix doc typo.
13933         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
13934
13935 2008-05-19  Bruno Haible  <bruno@clisp.org>
13936
13937         * doc/glibc-functions/getpass.texi: Document limits of other
13938         implementations.
13939
13940 2008-05-19  Simon Josefsson  <simon@josefsson.org>
13941             Bruno Haible <bruno@clisp.org>
13942
13943         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
13944
13945 2008-05-18  Bruno Haible  <bruno@clisp.org>
13946
13947         * modules/propername: New file, from GNU gettext.
13948         * lib/propername.h: New file, from GNU gettext.
13949         * lib/propername.c: New file, from GNU gettext.
13950         * MODULES.html.sh (Internationalization functions): Add propername.
13951
13952 2008-05-16  Jim Meyering  <meyering@redhat.com>
13953             Bruno Haible  <bruno@clisp.org>
13954
13955         Avoid some warnings from "gcc -Wshadow".
13956         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
13957
13958 2008-05-15  Eric Blake  <ebb9@byu.net>
13959
13960         Extend previous patch to cygwin 1.7.0.
13961         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
13962         fast implementation in cygwin >= 1.7.0.
13963         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13964         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13965
13966 2008-05-15  Bruno Haible  <bruno@clisp.org>
13967
13968         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
13969         implementation in glibc >= 2.9.
13970         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13971         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13972
13973 2008-05-15  Bruno Haible  <bruno@clisp.org>
13974
13975         * MODULES.html.sh (Internationalization functions): Remove linebreak.
13976         (Unicode string functions): Add unilbrk/*.
13977         Reported by Karl Berry.
13978
13979 2008-05-15  Eric Blake  <ebb9@byu.net>
13980
13981         Fix violation of <stdbool.h> replacement in regex.
13982         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
13983         * lib/regexec.c (re_search_internal): Likewise.
13984         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
13985
13986 2008-05-15  Jim Meyering  <meyering@redhat.com>
13987
13988         avoid distracting test output when git or cvs is not found
13989         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
13990         * tests/test-vc-list-files-git.sh: Likewise.
13991
13992 2008-05-15  Eric Blake  <ebb9@byu.net>
13993
13994         Glibc finally accepted the memmem speedup code, bugzilla #5514.
13995         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
13996         glibc version.
13997         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13998         * doc/posix-functions/strstr.texi (strstr): Likewise.
13999         * lib/str-two-way.h (MAX): Sychronize with glibc.
14000
14001 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
14002
14003         * lib/regcomp.c (optimize_utf8): Add a note on why we test
14004         opr.ctx_type.
14005         (calc_first): Initialize constraint field.
14006         (duplicate_node_closure): Use it instead of special casing ANCHORS.
14007         Fix grammar.
14008         (duplicate_node): Merge constraint field for all node types.
14009         (calc_eclosure_iter): Look at constraint field for all node types.
14010         * lib/regex_internal.c (create_cd_newstate): Don't look at
14011         opr.ctx_type.
14012
14013 2008-05-14  Bruno Haible  <bruno@clisp.org>
14014
14015         Help GCC to do better code generation.
14016         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
14017         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
14018         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
14019         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
14020         Declare with attribute 'malloc' if supported.
14021
14022 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
14023
14024         use "echo STR|wc -c" rather than unportable "expr length STR"
14025         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
14026         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
14027
14028 2008-05-14  Jim Meyering  <meyering@redhat.com>
14029
14030         use dd ibs=$n count=1 ... rather than less-portable head -c$n
14031         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
14032         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
14033         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
14034         via Collin Lasse.
14035
14036 2008-05-14  Eric Blake  <ebb9@byu.net>
14037
14038         Avoid quadratic growth in gl_LIBSOURCES.
14039         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
14040         Suggested by Bruno Haible.
14041
14042         Test xmemdup0.
14043         * modules/xmemdup0-tests: New file.
14044         * tests/test-xmemdup0.c: Likewise.
14045
14046 2008-05-13  Eric Blake  <ebb9@byu.net>
14047
14048         Split xmemdup0 into its own module.
14049         * modules/xmemdup0: New file.
14050         * lib/xmemdup0.h: Likewise.
14051         * lib/xmemdup0.c: Likewise.
14052         * MODULES.html.sh (Memory management functions): Add xmemdup0.
14053         * lib/xalloc.h (xmemdup0): Remove.
14054         * lib/xmalloc.c (xmemdup0): Likewise.
14055
14056 2008-05-13  Eric Blake  <ebb9@byu.net>
14057             Bruno Haible  <bruno@clisp.org>
14058
14059         Reduce number of forks required during autoconf.
14060         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
14061         and gl_LIBSOURCES_DIR.
14062         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
14063         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
14064         m4_syscmd per file.
14065         <m4_foreach_w>: Move...
14066         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
14067
14068 2008-05-13  Eric Blake  <ebb9@byu.net>
14069
14070         * gnulib-tool: Fix various comment typos.
14071
14072 2008-05-12  Bruno Haible  <bruno@clisp.org>
14073
14074         Tailor the linebreaking algorithm.
14075         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
14076
14077 2008-05-12  Bruno Haible  <bruno@clisp.org>
14078
14079         Update to Unicode 5.0.0.
14080         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
14081         LBP_JV, LBP_JT. Redistribute values.
14082         (unilbrk_table): Change size.
14083         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
14084         Unicode TR#14 rev. 22.
14085         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
14086         LBP_JV, LBP_JT. Redistribute values.
14087         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
14088         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
14089         Update.
14090         * lib/unilbrk/lbrkprop1.h: Regenerated.
14091         * lib/unilbrk/lbrkprop2.h: Regenerated.
14092         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
14093         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
14094         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
14095         Likewise.
14096         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
14097         Likewise.
14098         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
14099         result.
14100         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
14101         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
14102         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
14103         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
14104         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
14105         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
14106
14107 2008-05-11  Bruno Haible  <bruno@clisp.org>
14108
14109         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
14110
14111 2008-05-11  Bruno Haible  <bruno@clisp.org>
14112
14113         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
14114         * modules/unilbrk/gen-lbrk: New file.
14115
14116 2008-05-11  Bruno Haible  <bruno@clisp.org>
14117
14118         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
14119         * m4/sha512.m4 (gl_SHA512): Likewise.
14120
14121 2008-05-11  Jim Meyering  <meyering@redhat.com>
14122
14123         New modules: crypto/sha256, crypto/sha512 (from coreutils)
14124         * modules/crypto/sha256: New file.
14125         * modules/crypto/sha512: Likewise.
14126         * lib/sha256.c: Likewise.
14127         * lib/sha256.h: Likewise.
14128         * lib/sha512.c: Likewise.
14129         * lib/sha512.h: Likewise.
14130         * lib/u64.h: Likewise.
14131         * m4/sha256.m4: Likewise.
14132         * m4/sha512.m4: Likewise.
14133         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
14134
14135 2008-05-10  Bruno Haible  <bruno@clisp.org>
14136
14137         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
14138         (Input/Output <stdio.h>): Add xprintf.
14139         (Signal handling <signal.h>): Add strsignal.
14140         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
14141         (Core language properties): Add func.
14142         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
14143         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
14144         strings.
14145         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
14146         (Input/output): New section.
14147         (File system functions): Add openat-die, stat-macros.
14148         (Networking functions): Add sockets.
14149         (Unicode string functions): Add unictype/*.
14150         (Support for building libraries and executables): Add gperf.
14151         (Support for building documentation): Add agpl-3.0.
14152         (Misc): Add nocrash.
14153
14154 2008-05-10  Bruno Haible  <bruno@clisp.org>
14155
14156         * modules/unictype/gen-ctype: New file.
14157
14158 2008-05-10  Jim Meyering  <meyering@redhat.com>
14159
14160         Make chdir-safer.c more efficient on a system with no symlinks.
14161         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
14162         also if ELOOP is zero.  Suggested by Bruno Haible.
14163
14164         Make chdir-safer.c slightly safer.
14165         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
14166         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
14167
14168         Avoid compile failure on systems without ELOOP (like mingw).
14169         * lib/chdir-safer.c (ELOOP): Define if not already defined.
14170         Reported by Bruno Haible.
14171
14172 2008-05-10  Bruno Haible  <bruno@clisp.org>
14173
14174         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
14175         (is_utf8_encoding): Use a case-insensitive comparison.
14176         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
14177         streq.
14178
14179 2008-05-10  Bruno Haible  <bruno@clisp.org>
14180
14181         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
14182         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
14183         * lib/unilbrk/ulc-common.h (iconv_string_length,
14184         iconv_string_keeping_offsets): Remove declarations.
14185         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
14186         Don't include <iconv.h>, streq.h, xsize.h.
14187         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
14188         conversion.
14189         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
14190         <iconv.h>, streq.h, xsize.h.
14191         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
14192         conversion.
14193         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
14194         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
14195         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
14196         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
14197
14198 2008-05-10  Bruno Haible  <bruno@clisp.org>
14199
14200         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
14201         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
14202
14203         * modules/unilbrk/u32-width-linebreaks-tests: New file.
14204         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
14205
14206         * modules/unilbrk/u16-width-linebreaks-tests: New file.
14207         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
14208
14209         * modules/unilbrk/u8-width-linebreaks-tests: New file.
14210         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
14211
14212         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
14213         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
14214
14215         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
14216         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
14217
14218         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
14219         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
14220
14221         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
14222         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
14223
14224 2008-05-10  Bruno Haible  <bruno@clisp.org>
14225
14226         Split up 'linebreak' module.
14227         * lib/unilbrk.h: New file, based on lib/linebreak.h.
14228         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
14229         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
14230         modifications.
14231         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
14232         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
14233         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
14234         lib/linebreak.c.
14235         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
14236         lib/linebreak.c.
14237         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
14238         lib/linebreak.c.
14239         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
14240         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
14241         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
14242         lib/linebreak.c.
14243         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
14244         lib/linebreak.c.
14245         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
14246         lib/linebreak.c.
14247         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
14248         lib/linebreak.c.
14249         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
14250         lib/linebreak.c.
14251         * modules/unilbrk/base: New file.
14252         * modules/unilbrk/tables: New file.
14253         * modules/unilbrk/u8-possible-linebreaks: New file.
14254         * modules/unilbrk/u16-possible-linebreaks: New file.
14255         * modules/unilbrk/u32-possible-linebreaks: New file.
14256         * modules/unilbrk/ulc-common: New file.
14257         * modules/unilbrk/ulc-possible-linebreaks: New file.
14258         * modules/unilbrk/u8-width-linebreaks: New file.
14259         * modules/unilbrk/u16-width-linebreaks: New file.
14260         * modules/unilbrk/u32-width-linebreaks: New file.
14261         * modules/unilbrk/ulc-width-linebreaks: New file.
14262         * lib/linebreak.h: Remove file.
14263         * lib/linebreak.c: Remove file.
14264         * m4/linebreak.m4: Remove file.
14265         * modules/linebreak: Remove file.
14266         * NEWS: Mention the changes.
14267
14268 2008-05-09  Eric Blake  <ebb9@byu.net>
14269
14270         Add xmemdup0.
14271         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
14272         implementation.
14273         * lib/xmalloc.c (xmemdup0): New C implementation.
14274
14275 2008-05-08  Bruno Haible  <bruno@clisp.org>
14276
14277         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
14278
14279 2008-05-07  Eric Blake  <ebb9@byu.net>
14280
14281         Support cross-compilation of <wctype.h>.
14282         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
14283         AC_CACHE_CHECK.
14284
14285 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
14286
14287         * build-aux/vc-list-files: Add support for bzr.
14288
14289 2008-05-03  Jim Meyering  <meyering@redhat.com>
14290
14291         avoid failed assertion with tight malloc
14292         * tests/test-getndelim2.c: Correct an off-by-one assertion.
14293
14294 2008-05-03  Simon Josefsson  <simon@josefsson.org>
14295
14296         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
14297         are needed from arpa/inet.h.
14298         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
14299         Reported by Bruno Haible.
14300
14301 2008-05-02  Jim Meyering  <meyering@redhat.com>
14302
14303         avoid compilation error on FreeBSD 6
14304         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
14305
14306 2008-05-01  Jim Meyering  <meyering@redhat.com>
14307
14308         useless-if-before-free: correct --help's exit status description
14309         * build-aux/useless-if-before-free (usage): Like grep, exit 0
14310         for one or more matches, etc.  Reported by Bruno Haible.
14311
14312         vc-list-files: make the stand-alone gnulib test work
14313         * modules/vc-list-files-tests (configure.ac):
14314         Define and AC_SUBST abs_aux_dir.
14315         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
14316         $(abs_top_srcdir) to each script and having each of them
14317         duplicate the work of setting PATH, set PATH here, using
14318         the new variable, abs_aux_dir instead.
14319         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
14320         * tests/test-vc-list-files-git.sh: Likewise.
14321         Reported by Bruno Haible.
14322
14323 2008-05-01  Bruno Haible  <bruno@clisp.org>
14324
14325         * lib/getndelim2.c (getndelim2): Fix newsize computation during
14326         reallocation. Rename 'done' to 'found_delimiter'.
14327
14328 2008-05-01  Jim Meyering  <meyering@redhat.com>
14329
14330         vc-list-files: accommodate /bin/sh like the one from Solaris 10
14331         * build-aux/vc-list-files: Use `...`, not $(...).
14332
14333 2008-04-30  Jim Meyering  <meyering@redhat.com>
14334
14335         add tests for vc-list-files
14336         * modules/vc-list-files-tests: New module.
14337         * tests/test-vc-list-files-cvs.sh: New file.
14338         * tests/test-vc-list-files-git.sh: New file.
14339
14340         avoid a warning from gcc
14341         * lib/getndelim2.c (IF_LINT): Define.
14342         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
14343
14344         vc-list-files: work properly with build-aux/cvsu, too
14345         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
14346         to all cvs-based clauses.
14347
14348         vc-list-files: work properly in the CVS+awk case, too
14349         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
14350
14351         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
14352         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
14353         take more than one file argument, so .  Add quotes, just in case $dir
14354         ever contains a shell meta-character.  Prompted by Soren Hansen in
14355         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
14356
14357 2008-04-29  Eric Blake  <ebb9@byu.net>
14358
14359         Optimize getndelim2 to use block operations when possible.
14360         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
14361         freadseek, and memchr2.
14362         * lib/getndelim2.c (getndelim2): Use them for block reads.
14363
14364 2008-04-29  Bruno Haible  <bruno@clisp.org>
14365
14366         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
14367         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
14368         * modules/inet_ntop (Depends-on): Add extensions.
14369         * modules/inet_pton (Depends-on): Likewise.
14370         Reported by Simon Josefsson.
14371
14372 2008-04-29  Jim Meyering  <meyering@redhat.com>
14373
14374         When the is more than one match in a block, match all of them.
14375         * build-aux/useless-if-before-free: Iterate through each block
14376         until there are no more matches.
14377
14378         Fix broken useless-if-before-free script.
14379         * build-aux/useless-if-before-free: Fix typo: missing "?" after
14380         the expression to match cast of argument to free-like function.
14381
14382 2008-04-29  Eric Blake  <ebb9@byu.net>
14383
14384         Use new header.
14385         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
14386
14387 2008-04-29  Jim Meyering  <meyering@redhat.com>
14388
14389         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
14390         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
14391         by gnulib to exist and to declare e.g., inet_ntop.
14392         Don't include "inet_ntop.h", now removed.
14393
14394         * m4/arpa_inet_h.m4: Remove trailing blanks.
14395
14396 2008-04-29  Eric Blake  <ebb9@byu.net>
14397
14398         Silence valgrind on safe reads beyond potential array bounds.
14399         * lib/rawmemchr.valgrind: New file.
14400         * lib/strchrnul.valgrind: Likewise.
14401         * modules/rawmemchr (Files): Distribute new file.
14402         * modules/strchrnul (Files): Likewise.
14403         Suggested by Bruno Haible.
14404
14405 2008-04-29  Bruno Haible  <bruno@clisp.org>
14406
14407         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
14408         (inet_ntop, inet_pton): Change portability warning's wording.
14409         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
14410         Invoke gl_CHECK_NEXT_HEADERS.
14411         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
14412         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
14413         set ARPA_INET_H.
14414         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
14415         * modules/arpa_inet (Description): No longer only for systems that
14416         lack it.
14417         (Depends-on): Add include_next.
14418         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
14419         HAVE_ARPA_INET_H.
14420
14421 2008-04-29  Jim Meyering  <meyering@redhat.com>
14422
14423         * modules/mkdir (License): Re-license as LGPLv2+.
14424
14425 2008-04-29  Bruno Haible  <bruno@clisp.org>
14426
14427         * modules/rawmemchr (Maintainer): Set to Eric.
14428         * modules/strchrnul (Maintainer): Likewise.
14429
14430 2008-04-29  Simon Josefsson  <simon@josefsson.org>
14431
14432         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
14433         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
14434
14435         * modules/arpa_inet (arpa/inet.h): Use them.
14436
14437 2008-04-28  Eric Blake  <ebb9@byu.net>
14438
14439         Test getndelim2.
14440         * modules/getndelim2-tests: New file.
14441         * tests/test-getndelim2.c: Likewise.
14442         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
14443         stream.
14444         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
14445
14446         * MODULES.html.sh: Document new module.
14447
14448 2008-04-20  Bruno Haible  <bruno@clisp.org>
14449
14450         * lib/c-stack.c (die): Use raise.
14451         * modules/c-stack (Depends-on): Add raise.
14452
14453 2008-04-28  Bruno Haible  <bruno@clisp.org>
14454
14455         Expect rpmatch to be declared.
14456         * lib/yesno.c (rpmatch): Remove declaration.
14457
14458         Declare rpmatch.
14459         * lib/stdlib.in.h (rpmatch): New declaration.
14460         * lib/rpmatch.c: Include <stdlib.h> first.
14461         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
14462         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
14463         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
14464         HAVE_RPMATCH.
14465         * modules/rpmatch (Depends-on): Add stdlib, extensions.
14466         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14467         (Include): Set to <stdlib.h>.
14468         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
14469         HAVE_RPMATCH.
14470         * NEWS: Document the change.
14471
14472 2008-04-28  Bruno Haible  <bruno@clisp.org>
14473
14474         Change rpmatch to use nl_langinfo when appropriate.
14475         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
14476         (N_): New macro.
14477         (localized_pattern): New function/macro.
14478         (try): Remove match, nomatch arguments. Copy the pattern into safe
14479         memory before caching it.
14480         (rpmatch): Use localized_pattern. Add translator comments.
14481         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
14482         Suggested by Eric Blake.
14483         * modules/rpmatch (Depends-on): Add stdbool.
14484
14485 2008-04-28  Eric Blake  <ebb9@byu.net>
14486
14487         Add rawmemchr module, matching glibc.
14488         * modules/string (Makefile.am): New indicator.
14489         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
14490         * lib/string.in.h (rawmemchr): Declare when appropriate.
14491         * modules/rawmemchr: New file.
14492         * m4/rawmemchr.m4: Likewise.
14493         * lib/rawmemchr.c: Likewise.
14494         * modules/rawmemchr-tests: Likewise.
14495         * tests/test-rawmemchr.c: Likewise.
14496         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
14497         module.
14498         * modules/strchrnul (Depends-on): Add rawmemchr.
14499         * lib/strchrnul.c (strchrnul): Optimize a corner case.
14500
14501         Whitespace cleanup.
14502         * tests/test-strchrnul.c: Reindent.
14503         * lib/strchrnul.c: Likewise.
14504
14505         Optimize and test strchrnul.
14506         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
14507         * modules/strchrnul-tests: New file.
14508         * tests/test-strchrnul.c: Likewise.
14509
14510         Remove intprops dependency.
14511         * modules/memchr (Depends-on): Remove intprops.
14512         * modules/memrchr (Depends-on): Likewise.
14513         * modules/memchr2 (Depends-on): Likewise.
14514         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
14515         * lib/memrchr.c (__memrchr): Likewise.
14516         * lib/memrchr2.c (memchr2): Likewise.
14517         Reported by Simon Josefsson.
14518
14519 2008-04-28  Simon Josefsson  <simon@josefsson.org>
14520
14521         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
14522         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14523
14524 2008-04-28  Simon Josefsson  <simon@josefsson.org>
14525
14526         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
14527
14528         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
14529
14530         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
14531
14532         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
14533         declarations.
14534         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
14535
14536         * m4/inet_pton.m4: Don't check for header files.
14537
14538         * m4/inet_ntop.m4: Don't check for header files.
14539
14540 2008-04-28  Simon Josefsson  <simon@josefsson.org>
14541
14542         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
14543         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
14544         trigger for cygwin).
14545         Reported by Bruno Haible  <bruno@clisp.org>.
14546
14547 2008-04-28  Bruno Haible  <bruno@clisp.org>
14548
14549         * doc/posix-functions/strdup.texi: Mention mingw problem.
14550
14551 2008-04-27  Bruno Haible  <bruno@clisp.org>
14552
14553         * modules/stat-time-tests (Depends-on): Add sleep.
14554         * tests/test-stat-time.c (force_unlink): New function.
14555         (cleanup): Use it.
14556         (test_mtime): Remove the ctime related tests.
14557         (test_ctime): New function, containing the ctime related tests.
14558         (main): Call test_ctime, except on native Windows platforms.
14559
14560 2008-04-27  Bruno Haible  <bruno@clisp.org>
14561
14562         * lib/rpmatch.c (rpmatch): Add some comments.
14563         Reported by James Youngman <jay@gnu.org>.
14564
14565 2008-04-27  Bruno Haible  <bruno@clisp.org>
14566
14567         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
14568         quiet NaNs.
14569
14570 2008-04-27  Bruno Haible  <bruno@clisp.org>
14571
14572         Make test-yesno.sh work on mingw.
14573         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
14574         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
14575         (main): Set stdin to binary mode.
14576         * modules/yesno-tests (Depends-on): Add binary-io.
14577
14578 2008-04-27  Bruno Haible  <bruno@clisp.org>
14579
14580         Fix 'isfinite' on x86, x86_64, ia64 platforms.
14581         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
14582         argument that lie outside the IEEE 854 domain.
14583         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
14584         (gl_ISFINITE): Use it.
14585         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
14586
14587 2008-04-27  Bruno Haible  <bruno@clisp.org>
14588
14589         Allow local renaming in config.h.
14590         * lib/memrchr.c (memrchr): Don't undefine outside libc.
14591
14592 2008-04-27  Bruno Haible  <bruno@clisp.org>
14593
14594         * lib/memchr.c (__memchr): Change type of 'i'.
14595         * lib/memchr2.c (memchr2): Likewise.
14596
14597 2008-04-26  Eric Blake  <ebb9@byu.net>
14598         and Bruno Haible  <bruno@clisp.org>
14599
14600         Optimize and test memrchr.
14601         * modules/memrchr (Depends-on): Add intprops.
14602         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
14603         * modules/memrchr-tests: New file.
14604         * tests/test-memrchr.c: New file.
14605
14606 2008-04-26  Bruno Haible  <bruno@clisp.org>
14607
14608         Add tentative support for DragonFly BSD.
14609         * lib/stdio-impl.h: Add macros for DragonFly BSD.
14610         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
14611         fp.
14612         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
14613         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
14614         * lib/fpurge.c (fpurge): Likewise.
14615         * lib/freadable.c (freaadable): Likewise.
14616         * lib/freadahead.c (freadahead): Likewise.
14617         * lib/freading.c (freading): Likewise.
14618         * lib/freadptr.c (freadptr): Likewise.
14619         * lib/freadseek.c (freadptrinc): Likewise.
14620         * lib/fseeko.c (fseeko): Likewise.
14621         * lib/fseterr.c (fseterr): Likewise.
14622         * lib/fwritable.c (fwritable): Likewise.
14623         * lib/fwriting.c (fwriting): Likewise.
14624
14625 2008-04-26  Bruno Haible  <bruno@clisp.org>
14626
14627         * lib/stdio-impl.h: New file.
14628         * lib/fbufmode.c: Include stdio-impl.h.
14629         (fbufmode): Use fp_, remove redundant #defines.
14630         * lib/fflush.c: Include stdio-impl.h.
14631         (clear_ungetc_buffer): Remove redundant #defines.
14632         * lib/fpurge.c: Include stdio-impl.h.
14633         (fpurge): Remove redundant #defines.
14634         * lib/freadable.c: Include stdio-impl.h.
14635         (freadable): Remove redundant #defines.
14636         * lib/freadahead.c: Include stdio-impl.h.
14637         (freadahead): Remove redundant #defines.
14638         * lib/freading.c: Include stdio-impl.h.
14639         (freading): Remove redundant #defines.
14640         * lib/freadptr.c: Include stdio-impl.h.
14641         (freadptr): Remove redundant #defines.
14642         * lib/freadseek.c: Include stdio-impl.h.
14643         (freadptrinc): Remove redundant #defines.
14644         * lib/fseeko.c: Include stdio-impl.h.
14645         (rpl_fseeko): Remove redundant #defines.
14646         * lib/fseterr.c: Include stdio-impl.h.
14647         (fseterr): Remove redundant #defines.
14648         * lib/fwritable.c: Include stdio-impl.h.
14649         (fwritable: Remove redundant #defines.
14650         * lib/fwriting.c: Include stdio-impl.h.
14651         (fwriting): Remove redundant #defines.
14652         * modules/fbufmode (Files): Add lib/stdio-impl.h.
14653         * modules/fflush (Files): Likewise.
14654         * modules/fpurge (Files): Likewise.
14655         * modules/freadable (Files): Likewise.
14656         * modules/freadahead (Files): Likewise.
14657         * modules/freading (Files): Likewise.
14658         * modules/freadptr (Files): Likewise.
14659         * modules/freadseek (Files): Likewise.
14660         * modules/fseeko (Files): Likewise.
14661         * modules/fseterr (Files): Likewise.
14662         * modules/fwritable (Files): Likewise.
14663         * modules/fwriting (Files): Likewise.
14664
14665 2008-04-26  Bruno Haible  <bruno@clisp.org>
14666
14667         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
14668         restore_seek_optimization, update_fpos_cache): New functions, extracted
14669         from rpl_fflush.
14670         (rpl_fflush): Use them.
14671         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
14672         (gl_REPLACE_FFLUSH): Use it.
14673
14674 2008-04-26  Bruno Haible  <bruno@clisp.org>
14675
14676         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
14677         on Solaris.
14678         * tests/test-xstrtoimax.sh: Likewise.
14679         * tests/test-xstrtoumax.sh: Likewise.
14680         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14681
14682 2008-04-26  Bruno Haible  <bruno@clisp.org>
14683
14684         * modules/memchr-tests: New file.
14685         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
14686
14687 2008-04-26  Eric Blake  <ebb9@byu.net>
14688             Bruno Haible  <bruno@clisp.org>
14689
14690         * lib/memchr.c: Include intprops.h.
14691         (__memchr): Optimize parallel detection of matching bytes. Rename local
14692         variables. Add explanatory comments.
14693
14694 2008-04-26  Bruno Haible  <bruno@clisp.org>
14695
14696         Fix module 'memchr', broken since 2000-10-28.
14697         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
14698
14699 2008-04-26  Bruno Haible  <bruno@clisp.org>
14700
14701         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
14702         comments.
14703
14704 2008-04-25  Eric Blake  <ebb9@byu.net>
14705
14706         Use native fstatat on cygwin 1.7.0.
14707         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
14708         first.
14709
14710 2008-04-23  Eric Blake  <ebb9@byu.net>
14711
14712         Improve memchr2 performance.
14713         * lib/memchr2.c (memchr2): Further optimize parallel detection of
14714         NUL bytes.
14715         * modules/memchr2 (Depends-on): Use intprops.h.
14716
14717 2008-04-23  Simon Josefsson  <simon@josefsson.org>
14718
14719         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
14720         an inline function instead of a CPP macro.  Patch by Ben Pfaff
14721         <blp@cs.stanford.edu>.
14722
14723 2008-04-23  Simon Josefsson  <simon@josefsson.org>
14724
14725         * lib/arpa_inet.in.h: New file.
14726
14727         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
14728         (Makefile.am): Sed in substitute header file.
14729
14730         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
14731         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
14732
14733         * modules/inet_ntop (configure.ac): Use
14734         gl_ARPA_INET_MODULE_INDICATOR.
14735
14736         * modules/inet_pton (configure.ac): Use
14737         gl_ARPA_INET_MODULE_INDICATOR.
14738
14739 2008-04-22  Jim Meyering  <meyering@redhat.com>
14740
14741         * modules/verify (License): Re-license as LGPLv2+.
14742
14743 2008-04-22  Simon Josefsson  <simon@josefsson.org>
14744
14745         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
14746         parameter to void* as per POSIX standard (MinGW uses char*).
14747
14748 2008-04-21  Bruno Haible  <bruno@clisp.org>
14749
14750         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
14751         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
14752         Define to replacements if REPLACE_ISWCNTRL is 1.
14753         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
14754         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
14755         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
14756         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
14757         what it fixes.
14758         * doc/posix-functions/iswalpha.texi: Likewise.
14759         * doc/posix-functions/iswblank.texi: Likewise.
14760         * doc/posix-functions/iswcntrl.texi: Likewise.
14761         * doc/posix-functions/iswdigit.texi: Likewise.
14762         * doc/posix-functions/iswgraph.texi: Likewise.
14763         * doc/posix-functions/iswlower.texi: Likewise.
14764         * doc/posix-functions/iswprint.texi: Likewise.
14765         * doc/posix-functions/iswpunct.texi: Likewise.
14766         * doc/posix-functions/iswspace.texi: Likewise.
14767         * doc/posix-functions/iswupper.texi: Likewise.
14768         * doc/posix-functions/iswxdigit.texi: Likewise.
14769         Reported by Alain Guibert.
14770
14771 2008-04-21  Bruno Haible  <bruno@clisp.org>
14772
14773         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
14774         Patch by Alain Guibert.
14775
14776 2008-04-21  Bruno Haible  <bruno@clisp.org>
14777
14778         Fix test failures on mingw.
14779         * tests/test-xstrtol.c (print_no_progname): New function.
14780         (main): Install it in error_print_progname hook.
14781         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
14782         * tests/test-xstrtoimax.sh: Likewise.
14783         * tests/test-xstrtoumax.sh: Likewise.
14784
14785 2008-04-21  Bruno Haible  <bruno@clisp.org>
14786
14787         Fix test failure on mingw.
14788         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
14789
14790 2008-04-21  Bruno Haible  <bruno@clisp.org>
14791
14792         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
14793         Actually assign a value.
14794
14795 2008-04-20  Bruno Haible  <bruno@clisp.org>
14796
14797         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
14798         take 2.
14799         * lib/canonicalize.c (canonicalize_file_name): Elide if the
14800         'canonicalize-lgpl' module is also used.
14801         * lib/canonicalize-lgpl.c: Undo last change.
14802         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
14803
14804 2008-04-20  Bruno Haible  <bruno@clisp.org>
14805
14806         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
14807         config.h. Provide _mkdir based fallback for mingw.
14808         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
14809         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
14810         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
14811         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
14812         rather than defining mkdir in config.h.
14813         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
14814         (gl_SYS_STAT_H_DEFAULTS): New macro.
14815         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
14816         HAVE_IO_H any more.
14817         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
14818         HAVE_DECL_MKDIR and HAVE_IO_H.
14819
14820 2008-04-20  Bruno Haible  <bruno@clisp.org>
14821
14822         * lib/isapipe.c: Port to native Windows platforms.
14823
14824 2008-04-20  Bruno Haible  <bruno@clisp.org>
14825
14826         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
14827
14828 2008-04-21  Eric Blake  <ebb9@byu.net>
14829
14830         Work around preprocessors that don't handle UINTMAX_MAX.
14831         * lib/memchr2.c (memchr2): Avoid embedded #if.
14832         Reported by Alain Guibert, fix suggested by Bruno Haible.
14833
14834 2008-04-21  Simon Josefsson  <simon@josefsson.org>
14835
14836         * doc/posix-functions/strftime.texi (strftime): Explain better
14837         Windows incompatibility.  Suggested by Micah Cowan
14838         <micah@cowan.name>.
14839
14840 2008-04-20  Bruno Haible  <bruno@clisp.org>
14841
14842         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
14843         unistr/u8-mblen.
14844
14845 2008-04-20  Bruno Haible  <bruno@clisp.org>
14846
14847         Fix test failure on platforms with non-GNU iconv.
14848         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
14849         (U_TO_U8): Use it, rather than u16_to_u8.
14850         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
14851         units at the end of the input string.
14852         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
14853
14854 2008-04-20  Bruno Haible  <bruno@clisp.org>
14855
14856         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
14857         when the resulting length is 0.
14858         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
14859
14860 2008-04-20  Bruno Haible  <bruno@clisp.org>
14861
14862         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
14863         works.
14864         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
14865
14866 2008-04-20  Bruno Haible  <bruno@clisp.org>
14867
14868         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
14869         * modules/tsearch-tests (configure.ac): Test for initstate function.
14870
14871 2008-04-20  Bruno Haible  <bruno@clisp.org>
14872
14873         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
14874         for nlink_t if missing.
14875         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
14876
14877 2008-04-19  Bruno Haible  <bruno@clisp.org>
14878
14879         Work around snprintf bug on Linux libc5.
14880         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
14881         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14882         gl_SNPRINTF_SIZE1.
14883         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14884         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
14885         that test failed.
14886         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
14887         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
14888         * modules/snprintf (Files): Add m4/printf.m4.
14889         * modules/vsnprintf (Files): Likewise.
14890         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
14891         * doc/posix-functions/vsnprintf.texi: Likewise.
14892
14893 2008-04-19  Bruno Haible  <bruno@clisp.org>
14894
14895         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
14896         from 0.0058 to less than 10^-7.
14897
14898 2008-04-19  Bruno Haible  <bruno@clisp.org>
14899
14900         Fix rounding when a precision is given.
14901         * lib/vasnprintf.c (is_borderline): New function.
14902         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
14903         9...9x.
14904         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
14905         %e, %g.
14906         * tests/test-vasprintf-posix.c (test_function): Likewise.
14907         * tests/test-snprintf-posix.h (test_function): Likewise.
14908         * tests/test-sprintf-posix.h (test_function): Likewise.
14909         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
14910         * tests/test-printf-posix.h (test_function): Likewise.
14911         * tests/test-printf-posix.output: Update.
14912         Reported by John Darrington <john@darrington.wattle.id.au> via
14913         Ben Pfaff <blp@cs.stanford.edu>.
14914
14915 2008-04-18  Simon Josefsson  <simon@josefsson.org>
14916
14917         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
14918         Suggested by Bruno Haible <bruno@clisp.org>.
14919
14920 2008-04-17  Bruno Haible  <bruno@clisp.org>
14921
14922         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
14923         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
14924         implementation.
14925         Patch by Bruce Merry <bmerry@gmail.com>.
14926
14927 2008-04-17  Simon Josefsson  <simon@josefsson.org>
14928
14929         * doc/posix-functions/strftime.texi (strftime): Mention that %e
14930         doesn't work under Windows.
14931
14932 2008-04-16  Bruno Haible  <bruno@clisp.org>
14933
14934         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
14935         New macros.
14936         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
14937         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
14938         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
14939         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
14940         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
14941         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
14942         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
14943         macros.
14944         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
14945         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
14946         Northern Sotho, Uighur.
14947
14948 2008-04-16  Bruno Haible  <bruno@clisp.org>
14949
14950         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
14951         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
14952         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
14953         Reported by Daniel Bergström <daniel@octocode.com>.
14954
14955 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
14956             Bruno Haible  <bruno@clisp.org>
14957
14958         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
14959         function.
14960         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
14961         New functions, mostly extracted from gl_locale_name_default.
14962         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
14963
14964 2008-04-16  Eric Blake  <ebb9@byu.net>
14965
14966         Adjust strtod detection to catch glibc 2.7 bug.
14967         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
14968         Reported by John Gatewood Ham.
14969
14970 2008-04-16  Bruno Haible  <bruno@clisp.org>
14971
14972         Add tentative support for Linux libc5.
14973         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
14974         * lib/fpurge.c (fpurge): Likewise.
14975         * lib/freadable.c (freadable): Likewise.
14976         * lib/freadahead.c (freadahead): Likewise.
14977         * lib/freading.c (freading): Likewise.
14978         * lib/freadptr.c (freadptr): Likewise.
14979         * lib/freadseek.c (freadptrinc): Likewise.
14980         * lib/fseeko.c (rpl_fseeko): Likewise.
14981         * lib/fseterr.c (fseterr): Likewise.
14982         * lib/fwritable.c (fwritable): Likewise.
14983         * lib/fwriting.c (fwriting): Likewise.
14984         Reported by Alain Guibert <alguibert+bts@free.fr>.
14985
14986 2008-04-15  Bruno Haible  <bruno@clisp.org>
14987
14988         * modules/mathl (configure.ac): Define module indicator.
14989
14990 2008-04-15  Bruno Haible  <bruno@clisp.org>
14991
14992         * lib/logl.c (logl): Remove unused variables.
14993
14994 2008-04-15  Bruno Haible  <bruno@clisp.org>
14995
14996         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
14997         fails.
14998
14999 2008-04-15  Bruno Haible  <bruno@clisp.org>
15000
15001         * lib/trim.c (trim2): Fix argument of isspace() macro.
15002
15003 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
15004
15005         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
15006         to 0.
15007         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
15008
15009 2008-04-14  Bruno Haible  <bruno@clisp.org>
15010
15011         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
15012         AC_LANG_PROGRAM argument.
15013         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
15014         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
15015         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
15016         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
15017         * m4/math_h.m4 (gl_MATH_H): Likewise.
15018         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
15019         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
15020         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
15021         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
15022         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
15023         * m4/regex.m4 (gl_REGEX): Likewise.
15024         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
15025         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
15026         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15027         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
15028         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
15029         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
15030         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15031         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
15032
15033 2008-04-14  Jim Meyering  <meyering@redhat.com>
15034
15035         test-strtod: fix typos: s/abs/fabs/
15036         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
15037
15038 2008-04-13  Bruno Haible  <bruno@clisp.org>
15039
15040         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
15041         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
15042         module is also used and while not building the reloc-wrapper.
15043
15044 2008-04-13  Bruno Haible  <bruno@clisp.org>
15045
15046         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
15047
15048 2008-04-13  Bruno Haible  <bruno@clisp.org>
15049
15050         Fix AIX compilation failure introduced on 2008-04-02.
15051         * tests/test-frexp.c (exp): Undefine before redefining.
15052         * tests/test-frexpl.c (exp): Likewise.
15053
15054 2008-04-13  Bruno Haible  <bruno@clisp.org>
15055
15056         Work around a HP-UX stdio bug.
15057         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
15058         * tests/test-ftello.c (main): Likewise.
15059         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
15060         * doc/posix-functions/ftello.texi: Likewise.
15061
15062 2008-04-13  Bruno Haible  <bruno@clisp.org>
15063
15064         Make test-signbit pass on HP-UX/hppa.
15065         * tests/test-signbit.c (minus_zerol): New variable.
15066         (test_signbitl): Use it.
15067
15068 2008-04-13  Bruno Haible  <bruno@clisp.org>
15069
15070         Make truncl work on OSF/1 4.0.
15071         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
15072         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
15073         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
15074         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
15075         HAVE_DECL_TRUNCL.
15076         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
15077         HAVE_DECL_TRUNCL.
15078         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
15079
15080 2008-04-13  Bruno Haible  <bruno@clisp.org>
15081
15082         * lib/unictype.h: Remove trailing comma from enumeration definitions.
15083
15084 2008-04-13  Bruno Haible  <bruno@clisp.org>
15085
15086         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
15087         expression, so as to avoid HP-UX 11 cc compiler bug.
15088
15089 2008-04-13  Bruno Haible  <bruno@clisp.org>
15090
15091         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
15092
15093 2008-04-13  Bruno Haible  <bruno@clisp.org>
15094
15095         * lib/git-merge-changelog.c: Remove empty declaration outside of
15096         functions.
15097
15098 2008-04-13  Bruno Haible  <bruno@clisp.org>
15099
15100         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
15101
15102 2008-04-13  Bruno Haible  <bruno@clisp.org>
15103
15104         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
15105         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
15106         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
15107         also if it exists but lacks definitions of the SHUT_* macros.
15108         * modules/sys_socket (Description): Update.
15109         Reported by Elbert Pol <e.pol@chello.nl>.
15110
15111 2008-04-13  Bruno Haible  <bruno@clisp.org>
15112
15113         * lib/localcharset.c (OS2): Don't redefine if already defined.
15114         Reported by Elbert Pol <e.pol@chello.nl>.
15115
15116 2008-04-13  Bruno Haible  <bruno@clisp.org>
15117
15118         * lib/binary-io.h [__EMX__]: Include <io.h>.
15119         Reported by Elbert Pol <e.pol@chello.nl>.
15120
15121 2008-04-12  Bruno Haible  <bruno@clisp.org>
15122
15123         * lib/fpucw.h: Enable the definitions also for x86_64.
15124         Needed for NetBSD/x86_64.
15125         Reported by Thomas Klausner <tk@giga.or.at>.
15126
15127 2008-04-12  Bruno Haible  <bruno@clisp.org>
15128
15129         * tests/test-strtod.c: Include isnand.h.
15130         (main): Use isnand instead of isnan.
15131         Reported by Jim Meyering.
15132
15133 2008-04-12  Bruno Haible  <bruno@clisp.org>
15134
15135         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
15136         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
15137
15138 2008-04-12  Jim Meyering  <meyering@redhat.com>
15139
15140         * m4/math_h.m4 (gl_MATH_H): Fix typos.
15141
15142 2008-04-12  Bruno Haible  <bruno@clisp.org>
15143
15144         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
15145         Reported by Elbert Pol <e.pol@chello.nl>.
15146
15147 2008-04-12  Eric Blake  <ebb9@byu.net>
15148
15149         Work around Solaris 10 math.h bug.
15150         * m4/math_h.m4 (gl_MATH_H): Check for bug.
15151         (gl_MATH_H_DEFAULTS): Set up default.
15152         * modules/math (Makefile.am): Replace new indicators.
15153         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
15154         * tests/test-math.c (main): Test this.
15155         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
15156         * doc/posix-headers/math.texi (math.h): Mention bug.
15157         Reported by Nelson H. F. Beebe and Jim Meyering.
15158
15159 2008-04-11  Bruno Haible  <bruno@clisp.org>
15160
15161         Adapt to future versions of Apple GCC.
15162         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
15163         Reported by Peter O'Gorman <peter@pogma.com>.
15164
15165 2008-04-11  Bruno Haible  <bruno@clisp.org>
15166
15167         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
15168
15169 2008-04-11  Bruno Haible  <bruno@clisp.org>
15170
15171         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
15172
15173         * modules/getaddrinfo-tests (Makefile.am): Define
15174         test_getaddrinfo_LDADD.
15175
15176 2008-04-11  Bruno Haible  <bruno@clisp.org>
15177
15178         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
15179         (init): Fix syntax error.
15180         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
15181         is declared.
15182
15183 2008-04-11  Bruno Haible  <bruno@clisp.org>
15184
15185         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
15186         * modules/glob (Depends-on): Add stdbool.
15187
15188 2008-04-11  Bruno Haible  <bruno@clisp.org>
15189
15190         * lib/trim.c: Include <string.h>.
15191
15192 2008-04-11  Eric Blake  <ebb9@byu.net>
15193
15194         Avoid compile failure on OS/2.
15195         * lib/regex_internal.h (internal_function): Disable optimization
15196         on OS/2 (__EMX__), where it caused compiler error.
15197         Reported by Elbert Pol.
15198
15199 2008-04-11  Bruno Haible  <bruno@clisp.org>
15200
15201         Flush the standard error stream before aborting. Needed on mingw.
15202         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
15203         * tests/test-array_list.c (ASSERT): Likewise.
15204         * tests/test-array_oset.c (ASSERT): Likewise.
15205         * tests/test-avltree_list.c (ASSERT): Likewise.
15206         * tests/test-avltree_oset.c (ASSERT): Likewise.
15207         * tests/test-avltreehash_list.c (ASSERT): Likewise.
15208         * tests/test-binary-io.c (ASSERT): Likewise.
15209         * tests/test-byteswap.c (ASSERT): Likewise.
15210         * tests/test-c-ctype.c (ASSERT): Likewise.
15211         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
15212         * tests/test-c-strcasestr.c (ASSERT): Likewise.
15213         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
15214         * tests/test-c-strstr.c (ASSERT): Likewise.
15215         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
15216         * tests/test-canonicalize.c (ASSERT): Likewise.
15217         * tests/test-carray_list.c (ASSERT): Likewise.
15218         * tests/test-ceilf1.c (ASSERT): Likewise.
15219         * tests/test-ceilf2.c (ASSERT): Likewise.
15220         * tests/test-ceill.c (ASSERT): Likewise.
15221         * tests/test-count-one-bits.c (ASSERT): Likewise.
15222         * tests/test-fbufmode.c (ASSERT): Likewise.
15223         * tests/test-fflush2.c (ASSERT): Likewise.
15224         * tests/test-floorf1.c (ASSERT): Likewise.
15225         * tests/test-floorf2.c (ASSERT): Likewise.
15226         * tests/test-floorl.c (ASSERT): Likewise.
15227         * tests/test-fopen.c (ASSERT): Likewise.
15228         * tests/test-fpending.c (ASSERT): Likewise.
15229         * tests/test-fprintf-posix.c (ASSERT): Likewise.
15230         * tests/test-fpurge.c (ASSERT): Likewise.
15231         * tests/test-freadable.c (ASSERT): Likewise.
15232         * tests/test-freadahead.c (ASSERT): Likewise.
15233         * tests/test-freading.c (ASSERT): Likewise.
15234         * tests/test-freadptr.c (ASSERT): Likewise.
15235         * tests/test-freadptr2.c (ASSERT): Likewise.
15236         * tests/test-freadseek.c (ASSERT): Likewise.
15237         * tests/test-freopen.c (ASSERT): Likewise.
15238         * tests/test-frexp.c (ASSERT): Likewise.
15239         * tests/test-frexpl.c (ASSERT): Likewise.
15240         * tests/test-fseek.c (ASSERT): Likewise.
15241         * tests/test-fseeko.c (ASSERT): Likewise.
15242         * tests/test-fstrcmp.c (ASSERT): Likewise.
15243         * tests/test-ftell.c (ASSERT): Likewise.
15244         * tests/test-ftello.c (ASSERT): Likewise.
15245         * tests/test-func.c (ASSERT): Likewise.
15246         * tests/test-fwritable.c (ASSERT): Likewise.
15247         * tests/test-fwriting.c (ASSERT): Likewise.
15248         * tests/test-getdelim.c (ASSERT): Likewise.
15249         * tests/test-getline.c (ASSERT): Likewise.
15250         * tests/test-i-ring.c (ASSERT): Likewise.
15251         * tests/test-iconv-utf.c (ASSERT): Likewise.
15252         * tests/test-iconv.c (ASSERT): Likewise.
15253         * tests/test-isfinite.c (ASSERT): Likewise.
15254         * tests/test-isnand.c (ASSERT): Likewise.
15255         * tests/test-isnanf.c (ASSERT): Likewise.
15256         * tests/test-isnanl.h (ASSERT): Likewise.
15257         * tests/test-ldexpl.c (ASSERT): Likewise.
15258         * tests/test-linked_list.c (ASSERT): Likewise.
15259         * tests/test-linkedhash_list.c (ASSERT): Likewise.
15260         * tests/test-localename.c (ASSERT): Likewise.
15261         * tests/test-lseek.c (ASSERT): Likewise.
15262         * tests/test-mbscasecmp.c (ASSERT): Likewise.
15263         * tests/test-mbscasestr1.c (ASSERT): Likewise.
15264         * tests/test-mbscasestr2.c (ASSERT): Likewise.
15265         * tests/test-mbscasestr3.c (ASSERT): Likewise.
15266         * tests/test-mbscasestr4.c (ASSERT): Likewise.
15267         * tests/test-mbschr.c (ASSERT): Likewise.
15268         * tests/test-mbscspn.c (ASSERT): Likewise.
15269         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
15270         * tests/test-mbspbrk.c (ASSERT): Likewise.
15271         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
15272         * tests/test-mbsrchr.c (ASSERT): Likewise.
15273         * tests/test-mbsspn.c (ASSERT): Likewise.
15274         * tests/test-mbsstr1.c (ASSERT): Likewise.
15275         * tests/test-mbsstr2.c (ASSERT): Likewise.
15276         * tests/test-mbsstr3.c (ASSERT): Likewise.
15277         * tests/test-memchr2.c (ASSERT): Likewise.
15278         * tests/test-memmem.c (ASSERT): Likewise.
15279         * tests/test-open.c (ASSERT): Likewise.
15280         * tests/test-printf-frexp.c (ASSERT): Likewise.
15281         * tests/test-printf-frexpl.c (ASSERT): Likewise.
15282         * tests/test-printf-posix.c (ASSERT): Likewise.
15283         * tests/test-quotearg.c (ASSERT): Likewise.
15284         * tests/test-rbtree_list.c (ASSERT): Likewise.
15285         * tests/test-rbtree_oset.c (ASSERT): Likewise.
15286         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
15287         * tests/test-round1.c (ASSERT): Likewise.
15288         * tests/test-roundf1.c (ASSERT): Likewise.
15289         * tests/test-roundl.c (ASSERT): Likewise.
15290         * tests/test-signbit.c (ASSERT): Likewise.
15291         * tests/test-sleep.c (ASSERT): Likewise.
15292         * tests/test-snprintf-posix.c (ASSERT): Likewise.
15293         * tests/test-snprintf.c (ASSERT): Likewise.
15294         * tests/test-sprintf-posix.c (ASSERT): Likewise.
15295         * tests/test-stat-time.c (ASSERT): Likewise.
15296         * tests/test-strcasestr.c (ASSERT): Likewise.
15297         * tests/test-strerror.c (ASSERT): Likewise.
15298         * tests/test-striconv.c (ASSERT): Likewise.
15299         * tests/test-striconveh.c (ASSERT): Likewise.
15300         * tests/test-striconveha.c (ASSERT): Likewise.
15301         * tests/test-strsignal.c (ASSERT): Likewise.
15302         * tests/test-strstr.c (ASSERT): Likewise.
15303         * tests/test-strtod.c (ASSERT): Likewise.
15304         * tests/test-trunc1.c (ASSERT): Likewise.
15305         * tests/test-trunc2.c (ASSERT): Likewise.
15306         * tests/test-truncf1.c (ASSERT): Likewise.
15307         * tests/test-truncf2.c (ASSERT): Likewise.
15308         * tests/test-truncl.c (ASSERT): Likewise.
15309         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
15310         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
15311         * tests/test-vasnprintf.c (ASSERT): Likewise.
15312         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
15313         * tests/test-vasprintf.c (ASSERT): Likewise.
15314         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
15315         * tests/test-vprintf-posix.c (ASSERT): Likewise.
15316         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
15317         * tests/test-vsnprintf.c (ASSERT): Likewise.
15318         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
15319         * tests/test-wcwidth.c (ASSERT): Likewise.
15320         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
15321         * tests/test-xprintf-posix.c (ASSERT): Likewise.
15322         * tests/test-xvasprintf.c (ASSERT): Likewise.
15323         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
15324         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
15325         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
15326         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
15327         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
15328         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
15329         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
15330         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
15331         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
15332         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
15333         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
15334         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
15335         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
15336         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
15337         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
15338         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
15339         * tests/unictype/test-block_list.c (ASSERT): Likewise.
15340         * tests/unictype/test-block_of.c (ASSERT): Likewise.
15341         * tests/unictype/test-block_test.c (ASSERT): Likewise.
15342         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
15343         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
15344         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
15345         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
15346         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
15347         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
15348         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
15349         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
15350         * tests/unictype/test-combining.c (ASSERT): Likewise.
15351         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
15352         * tests/unictype/test-digit.c (ASSERT): Likewise.
15353         * tests/unictype/test-mirror.c (ASSERT): Likewise.
15354         * tests/unictype/test-numeric.c (ASSERT): Likewise.
15355         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
15356         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
15357         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
15358         * tests/unictype/test-scripts.c (ASSERT): Likewise.
15359         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
15360         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
15361         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
15362         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
15363         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
15364         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
15365         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
15366         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
15367         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
15368         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
15369         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
15370         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
15371         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
15372         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
15373         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
15374         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
15375         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
15376         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
15377         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
15378         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
15379         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
15380         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
15381         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
15382         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
15383         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
15384         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
15385         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
15386         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
15387         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
15388         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
15389         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
15390         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
15391         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
15392         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
15393         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
15394         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
15395         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
15396         Reported by Eric Blake.
15397
15398 2008-04-11  Bruno Haible  <bruno@clisp.org>
15399
15400         * lib/wchar.in.h: Tweak comment.
15401
15402 2008-04-11  Bruno Haible  <bruno@clisp.org>
15403
15404         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
15405         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
15406         gl_COMMON.
15407         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
15408
15409 2008-04-11  Bruno Haible  <bruno@clisp.org>
15410
15411         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
15412
15413 2008-04-11  Simon Josefsson  <simon@josefsson.org>
15414
15415         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
15416         of attempting to use non-existing /dev/*random.  Based on patch
15417         from Adam Strzelecki <ono@java.pl> in
15418         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
15419
15420 2008-04-08  Bruno Haible  <bruno@clisp.org>
15421
15422         Add tentative support for emx+gcc.
15423         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
15424         * lib/fpurge.c (fpurge): Likewise.
15425         * lib/freadable.c (freadable): Likewise.
15426         * lib/freadahead.c (freadahead): Likewise.
15427         * lib/freading.c (freading): Likewise.
15428         * lib/freadptr.c (freadptr): Likewise.
15429         * lib/freadseek.c (freadptrinc): Likewise.
15430         * lib/fseeko.c (rpl_fseeko): Likewise.
15431         * lib/fseterr.c (fseterr): Likewise.
15432         * lib/fwritable.c (fwritable): Likewise.
15433         * lib/fwriting.c (fwriting): Likewise.
15434         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
15435
15436 2008-04-09  Eric Blake  <ebb9@byu.net>
15437
15438         Avoid some autoconf warnings.
15439         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
15440         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
15441         * m4/afs.m4 (gl_AFS): Likewise.
15442         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
15443         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
15444         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
15445         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
15446         (gl_INTEGER_TYPE_SUFFIX): Likewise.
15447         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
15448         (AC_CHECK_DECLS_ONCE): Likewise.
15449         Rename file...
15450         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
15451         gnulib-tool requires autoconf 2.59 or better.
15452         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
15453
15454 2008-04-08  Eric Blake  <ebb9@byu.net>
15455
15456         Use 'git describe --match' if present (added in git 1.5.5).
15457         * build-aux/git-version-gen: Limit result to tags that match 'v*'
15458         if possible.
15459
15460 2008-04-08  Bruno Haible  <bruno@clisp.org>
15461
15462         Add tentative support for OpenServer.
15463         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
15464         _ptr, _cnt.
15465         * lib/fpurge.c (fpurge): Likewise.
15466         * lib/freadable.c (freadable): Likewise.
15467         * lib/freadahead.c (freadahead): Likewise.
15468         * lib/freading.c (freading): Likewise.
15469         * lib/freadptr.c (freadptr): Likewise.
15470         * lib/freadseek.c (freadptrinc): Likewise.
15471         * lib/fseeko.c (rpl_fseeko): Likewise.
15472         * lib/fseterr.c (fseterr): Likewise.
15473         * lib/fwritable.c (fwritable): Likewise.
15474         * lib/fwriting.c (fwriting): Likewise.
15475         Reported by Roger Cornelius <rac@tenzing.org> and
15476         Brian K. White <brian@aljex.com>.
15477
15478 2008-04-06  Jim Meyering  <meyering@redhat.com>
15479
15480         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
15481
15482 2008-04-06  Bruno Haible  <bruno@clisp.org>
15483
15484         Avoid possible error with non-ASCII bytes in UTF-8 locales.
15485         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
15486         * tests/test-printf-posix.sh: Likewise.
15487         * tests/test-vfprintf-posix.sh: Likewise.
15488         * tests/test-vprintf-posix.sh: Likewise.
15489         * tests/test-xprintf-posix.sh: Likewise.
15490
15491 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15492
15493         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
15494         hide error from 'ls', needed on OS/2.
15495         Report by Elbert Pol <elbert.pol@gmail.com>.
15496
15497 2008-04-04  Eric Blake  <ebb9@byu.net>
15498
15499         Make test-fseeko.c failures meaningful.
15500         * tests/test-fseeko.c: Print line number on failure.
15501         * tests/test-fseek.c: Likewise.
15502         Reported by Nelson H. F. Beebe.
15503
15504         Improve strtod bug detection check.
15505         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
15506         required for Solaris 10.
15507         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
15508
15509 2008-04-04  Bruno Haible  <bruno@clisp.org>
15510
15511         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
15512         by m4/setenv.m4.
15513
15514 2008-04-03  Eric Blake  <ebb9@byu.net>
15515
15516         Ensure sane .version contents.
15517         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
15518         version string.
15519         * build-aux/git-version-gen: Improve documentation.
15520
15521         Make GNU make output nicer.
15522         * top/GNUmakefile [!_have-Makefile]: Add dependency on
15523         MAKECMDGOALS to enforce message for all command line targets.  Set
15524         srcdir for use in maint.mk.
15525
15526         Another maintainer tweak.
15527         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
15528         a target that regenerates version.
15529
15530 2008-04-03  Jim Meyering  <meyering@redhat.com>
15531
15532         vc-list-files: don't cause coreutils "make po-check" failure
15533         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
15534
15535 2008-04-03  Eric Blake  <ebb9@byu.net>
15536
15537         Allow VPATH usage of vc-list-files.
15538         * build-aux/vc-list-files (scriptversion): Add timestamp.
15539         (options): Add --help, --version, -C.
15540         (CVS): Support installed cvsu.
15541
15542 2008-04-02  Bruno Haible  <bruno@clisp.org>
15543
15544         Avoid some "statement with no effect" warnings from gcc.
15545         * tests/test-wctype.c (main): Explicitly ignore unused values.
15546         Reported by Jim Meyering.
15547
15548 2008-04-02  Jim Meyering  <meyering@redhat.com>
15549
15550         Avoid some warnings from "gcc -Wshadow".
15551         * tests/test-frexp.c (exp): Define to a different identifier.
15552         * tests/test-frexpl.c (exp): Likewise.
15553
15554 2008-04-03  Jim Meyering  <meyering@redhat.com>
15555
15556         bootstrap: remove dangling *.[ch] symlinks from lib
15557         * build-aux/bootstrap [dangling symlink removal]: Move find's
15558         -depth option to precede all others, to avoid a warning.
15559         Remove *.[ch] files too, and from "$source_base" (usually lib/).
15560
15561 2008-04-02  Bruno Haible  <bruno@clisp.org>
15562
15563         Avoid some warnings from "gcc -Wshadow".
15564         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
15565         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
15566         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
15567         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
15568         Reported by Jim Meyering.
15569
15570 2008-04-01  Bruno Haible  <bruno@clisp.org>
15571
15572         Fix test to work on IRIX 6.5 with cc.
15573         * tests/test-math.c (numeric_equal): New function.
15574         (main): Use it.
15575
15576 2008-04-01  Bruno Haible  <bruno@clisp.org>
15577
15578         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
15579
15580 2008-04-01  Bruno Haible  <bruno@clisp.org>
15581
15582         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
15583         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
15584         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
15585         (Depends-on): Remove math.
15586
15587         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
15588         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
15589         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
15590         (Depends-on): Remove math.
15591
15592         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
15593         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
15594         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
15595         (Depends-on): Remove math.
15596         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
15597         (Depends-on): Remove math.
15598
15599         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
15600         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
15601         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
15602         (Depends-on): Remove math.
15603         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
15604         (Depends-on): Remove math.
15605
15606         * tests/test-round1.c: Include nan.h.
15607         (main): Use NaNd instead of NAN.
15608         * modules/round-tests (Files): Add tests/nan.h.
15609
15610         * tests/test-trunc1.c: Include nan.h.
15611         (main): Use NaNd instead of NAN.
15612         * modules/trunc-tests (Files): Add tests/nan.h.
15613
15614         * tests/test-roundf1.c: Include nan.h.
15615         (main): Use NaNf instead of NAN.
15616         * modules/roundf-tests (Files): Add tests/nan.h.
15617
15618         * tests/test-truncf1.c: Include nan.h.
15619         (main): Use NaNf instead of NAN.
15620         * modules/truncf-tests (Files): Add tests/nan.h.
15621
15622         * tests/test-ceilf1.c: Include nan.h.
15623         (main): Use NaNf instead of NAN.
15624         * modules/ceilf-tests (Files): Add tests/nan.h.
15625
15626         * tests/test-floorf1.c: Include nan.h.
15627         (main): Use NaNf instead of NAN.
15628         * modules/floorf-tests (Files): Add tests/nan.h.
15629
15630         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
15631         (main): Use NaNf instead of NAN.
15632         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
15633
15634         * tests/test-isnand.c: Include nan.h instead of <math.h>.
15635         (main): Use NaNd instead of NAN.
15636         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
15637
15638         * tests/test-frexp.c: Include nan.h.
15639         (main): Use NaNd instead of NAN.
15640         * modules/frexp-tests (Files): Add tests/nan.h.
15641
15642         * lib/isnan.c: Don't include <math.h>.
15643         (FUNC): Don't use NAN macro.
15644         * modules/isnand-nolibm (Depends-on): Remove math.
15645         * modules/isnanf-nolibm (Depends-on): Remove math.
15646         * modules/isnanl (Depends-on): Remove math.
15647         * modules/isnanl-nolibm (Depends-on): Remove math.
15648
15649         * tests/nan.h: New file.
15650
15651 2008-04-01  Eric Blake  <ebb9@byu.net>
15652
15653         Fix typos.
15654         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
15655         values to be the right type.
15656
15657         For now, cater to gnulib strtod inaccuracies.
15658         * tests/test-strtod.c (main): Allow 1-ulp error on expected
15659         fractional results.  While not as nice from a QoI perspective, it
15660         is a quicker patch than correctly implementing decimal to binary
15661         rounding.
15662
15663 2008-03-31  Eric Blake  <ebb9@byu.net>
15664
15665         Guarantee a definition of NAN.
15666         * lib/math.in.h (NAN): Define if missing.
15667         * tests/test-math.c (main): Test it.
15668         * doc/posix-headers/math.texi (math.h): Document this.
15669         * lib/isnan.c (rpl_isnand): Use it.
15670         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
15671         * tests/test-floorf1.c (NaN): Likewise.
15672         * tests/test-frexp.c (NaN): Likewise.
15673         * tests/test-isnand.c (NaN): Likewise.
15674         * tests/test-isnanf.c (NaN): Likewise.
15675         * tests/test-round1.c (NaN): Likewise.
15676         * tests/test-roundf1.c (NaN): Likewise.
15677         * tests/test-snprintf-posix.h (NaN): Likewise.
15678         * tests/test-sprintf-posix.h (NaN): Likewise.
15679         * tests/test-trunc1.c (NaN): Likewise.
15680         * tests/test-truncf1.c (NaN): Likewise.
15681         * tests/test-vasnprintf-posix.c (NaN): Likewise.
15682         * tests/test-vasprintf-posix.c (NaN): Likewise.
15683         * modules/isnand-nolibm (Depends-on): Add math.
15684         * modules/isnanf-nolibm (Depends-on): Likewise.
15685         * modules/isnanl (Depends-on): Likewise.
15686         * modules/isnanl-nolibm (Depends-on): Likewise.
15687         * modules/snprintf-posix-tests (Depends-on): Likewise.
15688         * modules/sprintf-posix-tests (Depends-on): Likewise.
15689         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
15690         * modules/vsprintf-posix-tests (Depends-on): Likewise.
15691         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
15692         * modules/vasprintf-posix-tests (Depends-on): Likewise.
15693
15694 2008-03-31  Bruno Haible  <bruno@clisp.org>
15695
15696         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
15697         * doc/posix-functions/strtod.texi: Likewise.
15698
15699 2008-03-31  Bruno Haible  <bruno@clisp.org>
15700
15701         * tests/test-strtod.c (main): Don't use C99 syntax.
15702
15703 2008-03-31  Bruno Haible  <bruno@clisp.org>
15704
15705         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
15706         Reported by Eric Blake.
15707
15708 2008-03-31  Jim Meyering  <meyering@redhat.com>
15709
15710         Don't compare actual signbit return values.
15711         * tests/test-strtod.c (main): Rather, compare only their
15712         zero/non-zero nature.
15713
15714 2008-03-31  Eric Blake  <ebb9@byu.net>
15715
15716         More strtod documentation.
15717         * doc/posix-functions/strtod.texi (strtod): Interpret more test
15718         failures as distinct bugs.
15719
15720 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
15721
15722         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
15723         Problem reported by Erik Benada in
15724         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
15725
15726 2008-03-30  Bruno Haible  <bruno@clisp.org>
15727
15728         * tests/test-strtod.c: Add comments about which assertion fails on which
15729         platform.
15730         * doc/posix-functions/strtod.texi: Add info about many more platforms.
15731
15732 2008-03-30  Eric Blake  <ebb9@byu.net>
15733
15734         Test signbit behavior on zeros.
15735         * tests/test-signbit.c (test_signbitf): Add tests for zero.
15736         (test_signbitd, test_signbitl): Likewise.
15737
15738         More strtod touchups.
15739         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
15740         sign of negative underflow, for now.  Use .5, not .1.
15741         * doc/posix-functions/strtod.texi (strtod): Mention these
15742         limitations.
15743         Reported by Jim Meyering.
15744
15745 2008-03-30  Bruno Haible  <bruno@clisp.org>
15746
15747         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
15748         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
15749
15750 2008-03-30  Bruno Haible  <bruno@clisp.org>
15751
15752         Avoid failure when attempting to return empty iconv results on some
15753         platforms.
15754         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
15755         allocation, don't report ENOMEM when the resulting string is empty.
15756
15757 2008-03-30  Bruno Haible  <bruno@clisp.org>
15758
15759         Fix buffer overrun.
15760         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
15761         Don't consider the width for tmp_length. Check count against tmp_length
15762         before doing the padding. Ensure enough allocation during padding.
15763
15764 2008-03-30  Eric Blake  <ebb9@byu.net>
15765
15766         strtod touchups.
15767         * lib/strtod.c (strtod): Avoid compiler warnings.
15768         Reported by Jim Meyering.
15769
15770 2008-03-30  Bruno Haible  <bruno@clisp.org>
15771
15772         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
15773         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
15774         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
15775         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
15776         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
15777         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
15778         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
15779         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
15780
15781         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
15782         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
15783         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
15784         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
15785         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
15786         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
15787         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
15788         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
15789
15790         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
15791         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
15792         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
15793         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
15794         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
15795         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
15796         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
15797         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
15798
15799         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
15800         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
15801
15802         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
15803         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
15804
15805         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
15806         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
15807
15808         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
15809         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
15810         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
15811
15812         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
15813         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
15814         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
15815
15816         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
15817         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
15818         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
15819
15820         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
15821         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
15822         * modules/vasprintf (Depends-on): Add EOVERFLOW.
15823
15824         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
15825         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
15826         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
15827         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
15828         (Depends-on): Add EOVERFLOW.
15829         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
15830         (Depends-on): Add EOVERFLOW.
15831         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
15832         (Depends-on): Add EOVERFLOW.
15833         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
15834         (Depends-on): Add EOVERFLOW.
15835         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
15836         (Depends-on): Add EOVERFLOW.
15837         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
15838         (Depends-on): Add EOVERFLOW.
15839         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
15840         (Depends-on): Add EOVERFLOW.
15841         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
15842         (Depends-on): Add EOVERFLOW.
15843
15844         * lib/sprintf.c (EOVERFLOW): Remove fallback.
15845         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
15846         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
15847
15848         * lib/snprintf.c (EOVERFLOW): Remove fallback.
15849         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
15850         * modules/snprintf (Depends-on): Add EOVERFLOW.
15851
15852         * lib/poll.c (EOVERFLOW): Remove fallback.
15853         * modules/poll (Depends-on): Add EOVERFLOW.
15854
15855         * lib/getugroups.c (EOVERFLOW): Remove fallback.
15856         * modules/getugroups (Depends-on): Add EOVERFLOW.
15857
15858         * lib/getdelim.c (EOVERFLOW): Remove fallback.
15859         * modules/getdelim (Depends-on): Add EOVERFLOW.
15860
15861         * lib/ftell.c (EOVERFLOW): Remove fallback.
15862         * modules/ftell (Depends-on): Add EOVERFLOW.
15863
15864         * lib/fprintf.c (EOVERFLOW): Remove fallback.
15865         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
15866         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
15867
15868         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
15869
15870         * modules/EOVERFLOW-tests: New file.
15871         * tests/test-EOVERFLOW.c: New file.
15872
15873         * modules/EOVERFLOW: New file.
15874         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
15875
15876 2008-03-30  Bruno Haible  <bruno@clisp.org>
15877
15878         Fix bug introduced on 2007-06-10.
15879         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
15880         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
15881
15882 2008-03-30  Bruno Haible  <bruno@clisp.org>
15883
15884         Improve freadseek's efficiency after ungetc.
15885         * lib/freadseek.c: Include freadahead.h.
15886         (freadptrinc): New function, extracted from freadseek.
15887         (freadseek): Use it in a loop. Use freadahead to determine the number
15888         of loop iterations.
15889         * modules/freadseek (Depends-on): Add freadahead.
15890         (configure.ac): Require AC_C_INLINE.
15891
15892 2008-03-30  Bruno Haible  <bruno@clisp.org>
15893
15894         * lib/freadseek.c (freadseek): Don't ignore the return value of
15895         freadptr.
15896
15897 2008-03-29  Eric Blake  <ebb9@byu.net>
15898
15899         Add hex float support.
15900         * modules/strtod (Depends-on): Add c-ctype.
15901         (Link): Mention POW_LIB.
15902         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
15903         whitespace between 'e' and exponent.
15904         * tests/test-strtod.c (main): Enable hex float tests.
15905         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
15906         now provides.
15907
15908         Document various strtod bugs, with some fixes.
15909         * doc/posix-functions/strtod.texi (strtod): Document bugs with
15910         "-0x", "inf", "nan", and hex constants.
15911         * doc/posix-functions/atof.texi (atof): Likewise.
15912         * modules/stdlib (Makefile.am): Support strtod.
15913         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
15914         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
15915         detect additional strtod bugs.
15916         * lib/stdlib.in.h (rpl_strtod): Add declarations.
15917         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
15918         bool where appropriate.  Parse 'inf' and 'nan'.
15919         * tests/test-strtod.c: New file.
15920         * modules/strtod (Depends-on): Add stdbool, stdlib.
15921         (configure.ac): Turn on module indicator.
15922         * modules/strtod-tests: New module.
15923
15924 2008-03-29  Eric Blake  <ebb9@byu.net>
15925
15926         Fix ftell on mingw.
15927         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
15928         * modules/ftell-tests (Depends-on): Add binary-io.
15929         * modules/ftello-tests (Depends-on): Likewise.
15930         * tests/test-ftell.c (main): Enhance test to cover behavior after
15931         ungetc.  Enforce binary mode.
15932         * tests/test-ftello.c (main): Likewise.
15933
15934         Pass test-freadseek on cygwin.
15935         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
15936         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
15937         ungetc buffer.
15938
15939         * tests/test-fflush2.c (main): Fix typo.
15940
15941 2008-03-29  Bruno Haible  <bruno@clisp.org>
15942
15943         * tests/test-fflush2.c (main): Temporarily disable the contents of
15944         this test.
15945         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
15946         Reported by Eric Blake.
15947
15948 2008-03-28  Simon Josefsson  <simon@josefsson.org>
15949
15950         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
15951         (GC_SHA224_DIGEST_SIZE): Add.
15952
15953         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
15954         (gc_hash_digest_length): Likewise.
15955         (gc_hash_buffer): Likewise.
15956
15957 2008-03-25  Bruno Haible  <bruno@clisp.org>
15958
15959         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
15960         detail which gettext release to use.
15961         Reported by Simon Josefsson.
15962
15963 2008-03-26  Jim Meyering  <meyering@redhat.com>
15964
15965         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
15966         * modules/gnumakefile (clean-GNUmakefile): Also, use
15967         test ... && ... || : syntax rather than if-then ... fi.
15968
15969         gnumakefile: Don't double-quote-expand $(VPATH) value.
15970         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
15971
15972 2008-03-24  Eric Blake  <ebb9@byu.net>
15973
15974         Alter GNUmakefile to install into top directory.
15975         * modules/maintainer-makefile: Split, and add dependency...
15976         * modules/gnumakefile: to this new module.
15977         * build-aux/GNUmakefile: Move...
15978         * top/GNUmakefile: ...here.
15979         * build-aux/maint.mk: Move...
15980         * top/maint.mk: ...here.
15981         * MODULES.html.sh (Support for maintaining...): Document new
15982         module.
15983
15984 2008-03-23  Bruno Haible  <bruno@clisp.org>
15985
15986         * gnulib-tool: New options --vc-files, --no-vc-files.
15987         (func_usage): Document them.
15988         (vc_files): New variable.
15989         (func_import): Consider vc_files.
15990         (func_create_testdir): Set vc_files to empty.
15991         Suggested by Jim Meyering and Karl Berry.
15992
15993 2008-03-23  Bruno Haible  <bruno@clisp.org>
15994
15995         Fix regex compilation error on HP-UX 11.
15996         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
15997         * modules/regex (Files): Add m4/mbstate_t.m4.
15998         Reported by Ton Voon <ton.voon@altinity.com>.
15999
16000 2008-03-23  Bruno Haible  <bruno@clisp.org>
16001
16002         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
16003
16004 2008-03-23  Eric Blake  <ebb9@byu.net>
16005             Bruno Haible  <bruno@clisp.org>
16006
16007         Install files from top/ in the destination directory.
16008         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
16009         augmentation also for the files from top/.
16010         (func_import, func_create_testdir): Rewrite file names:
16011         top/filename -> filename.
16012
16013 2008-03-23  Bruno Haible  <bruno@clisp.org>
16014
16015         Tweak "gnulib --version" output.
16016         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
16017
16018 2008-03-23  Bruno Haible  <bruno@clisp.org>
16019
16020         Tweak "gnulib --version" output.
16021         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
16022         rather than contents of ChangeLog, when possible.
16023
16024 2008-03-21  Eric Blake  <ebb9@byu.net>
16025
16026         More --version tweaks.
16027         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
16028         date of last ChangeLog entry.
16029
16030 2008-03-21  Jim Meyering  <meyering@redhat.com>
16031
16032         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
16033
16034 2008-03-20  Eric Blake  <ebb9@byu.net>
16035
16036         VPATH fix.
16037         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
16038
16039 2008-03-20  Simon Josefsson  <simon@josefsson.org>
16040
16041         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
16042         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
16043
16044 2008-03-20  Eric Blake  <ebb9@byu.net>
16045
16046         Sync GNUmakefile with coreutils.
16047         * build-aux/GNUmakefile (have-Makefile): Rename...
16048         (_have-Makefile): ...to this, for namespace consideration.
16049         (GNUmakefile.cfg): Include, if present.
16050         (_autoreconf): Define a default.
16051         (_is-dist-target): New rule for rebuilds to pick up intra-release
16052         version.
16053         (maint-cfg.mk): Rename...
16054         (cfg.mk): ...to this.
16055
16056 2008-03-18  Jim Meyering  <meyering@redhat.com>
16057
16058         New script and module: mktempd
16059         * MODULES.html.sh (maint+release support): Add mktempd.
16060         * build-aux/mktempd: New file.
16061         * modules/mktempd: New file.
16062
16063 2008-03-15  Jim Meyering  <meyering@redhat.com>
16064
16065         Undo last change.
16066         * lib/sha1.c, lib/md5.c: 63 != ~63.
16067         Reported by Andreas Schwab.
16068
16069         sha1.c, md5.c: Hoist a redundant expression.
16070         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
16071         "ctx->buflen" only once, before calling *_process_block.
16072         * lib/md5.c (md5_process_bytes): Likewise.
16073
16074 2008-03-14  Eric Blake  <ebb9@byu.net>
16075
16076         Bump copyright year in files generated by gnulib-tool.
16077         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
16078         gnulib-tool, rather than hard-coding it.
16079
16080         Fix 'gnulib-tool --version' output to work with git.
16081         * gnulib-tool (func_gnulib_dir): New function, extracted from...
16082         (startup): ...here.
16083         (func_version): Use it to invoke git-version-gen, rather than
16084         relying on CVS keyword expansion.  Modernize wording.
16085         (cvsdatestamp, last_checkin_date, version): Kill unused
16086         variables.
16087
16088 2008-03-12  Jim Meyering  <meyering@redhat.com>
16089
16090         Recognize optional cast of the argument to free.
16091         * build-aux/useless-if-before-free: Update regexps.
16092
16093         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
16094
16095 2008-03-11  Bruno Haible  <bruno@clisp.org>
16096
16097         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
16098         by a single package.
16099         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
16100         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
16101         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
16102         Reported by Sam Steingold <sds@gnu.org>.
16103
16104 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
16105
16106         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
16107         repositories.
16108
16109 2008-03-11  Bruno Haible  <bruno@clisp.org>
16110
16111         Avoid conflicts between local macro definitions.
16112         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
16113         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
16114
16115 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
16116             Bruno Haible  <bruno@clisp.org>
16117
16118         Make va_copy work with some version of xlc on AIX 5.1.
16119         * lib/stdarg.in.h: New file.
16120         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
16121         On AIX, use a <stdarg.h> file substitute.
16122         * modules/stdarg (Files): Add lib/stdarg.in.h.
16123         (Depends-on): Add include_next.
16124         (Makefile.am): Build a stdarg.h substitute if requested.
16125         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
16126
16127 2008-03-10  Bruno Haible  <bruno@clisp.org>
16128
16129         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
16130         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
16131         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
16132
16133 2008-03-10  Bruno Haible  <bruno@clisp.org>
16134
16135         * modules/stdlib (Depends-on): Add include_next, remove
16136         absolute-header.
16137
16138 2008-03-09  Bruno Haible  <bruno@clisp.org>
16139
16140         * lib/freadahead.h (freadahead): Document more precisely.
16141         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
16142         the sum of both buffer sizes.
16143         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
16144         * NEWS: Document the change.
16145
16146 2008-03-09  Bruno Haible  <bruno@clisp.org>
16147
16148         Extend freadptr to return also the buffer size.
16149         * lib/freadptr.h (freadptr): Add sizep argument.
16150         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
16151         (freadptr): Add sizep argument. Determine buffer size like freadahead
16152         does.
16153         * tests/test-freadptr.c: Don't include freadahead.h.
16154         (main): Adapt for new calling convention of freadptr.
16155         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
16156         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
16157         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
16158         tests/test-freadptr2.sh.
16159         (Depends): Remove freadahead.
16160         (TESTS): Add test-freadptr2.sh.
16161         (check_PROGRAMS): Add test-freadptr2.
16162
16163 2008-03-09  Bruno Haible  <bruno@clisp.org>
16164
16165         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
16166         Report and solution by Simon Josefsson.
16167
16168 2008-03-06  Bruno Haible  <bruno@clisp.org>
16169
16170         Make fflush after ungetc work on BSD platforms.
16171         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
16172         * tests/test-fflush2.c: New file.
16173         * tests/test-fflush2.sh: New file.
16174         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
16175         tests/test-fflush2.c.
16176         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
16177         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
16178
16179 2008-03-06  Eric Blake  <ebb9@byu.net>
16180
16181         Likewise for ftello.
16182         * modules/ftello (Dependencies): Add extensions.
16183         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
16184
16185 2008-03-06  Bruno Haible  <bruno@clisp.org>
16186
16187         * modules/fseeko (Dependencies): Add extensions.
16188         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
16189         Needed on glibc systems.
16190
16191 2008-03-06  Bruno Haible  <bruno@clisp.org>
16192
16193         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
16194         email address.
16195         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
16196
16197 2008-03-06  Bruno Haible  <bruno@clisp.org>
16198
16199         * users.txt: Add libgnupdf.
16200
16201 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
16202
16203         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
16204         (Header File Substitutes, Function Substitutes,
16205         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
16206         (Build robot for gnulib): Fix typo.
16207
16208 2008-03-06  Bruno Haible  <bruno@clisp.org>
16209
16210         * doc/gnulib-tool.texi (VCS Issues): Small updates.
16211         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
16212
16213 2008-03-06  Bruno Haible  <bruno@clisp.org>
16214
16215         * doc/func.texi: New file, extracted from doc/gnulib.texi.
16216         * doc/gnulib.texi: Include it.
16217
16218 2008-03-06  Simon Josefsson  <simon@josefsson.org>
16219
16220         * modules/func (License): Change license to unlimited; there was
16221         no LGPL parts in the module anyway.
16222
16223 2008-03-06  Simon Josefsson  <simon@josefsson.org>
16224
16225         * modules/__func__: Renamed to modules/func.
16226         * modules/__func__-tests: Renamed to modules/func-tests.
16227         * tests/test-__func__.c: Renamed to tests/test-func.c.
16228         * m4/__func__.m4: Renamed to m4/func.m4.
16229         * doc/gnulib.texi (__func__): Section renamed to func.
16230         Suggested by Eric Blake <ebb9@byu.net>.
16231
16232 2008-03-06  Simon Josefsson  <simon@josefsson.org>
16233
16234         * doc/gnulib.texi (__func__): Use C99 terminology when talking
16235         about __func__.  Make example self-contained.  Suggested by Eric
16236         Blake <ebb9@byu.net>.
16237
16238         * tests/test-__func__.c (main): Avoid extraneous () around __func.
16239         Suggested by Eric Blake <ebb9@byu.net>.
16240
16241 2008-03-06  Simon Josefsson  <simon@josefsson.org>
16242
16243         * modules/__func__: New file.
16244         * modules/__func__-tests: New file.
16245         * tests/test-__func__.c: New file.
16246         * m4/__func__.m4: New file.
16247         * doc/gnulib.texi (__func__): Document __func__ module.
16248
16249 2008-03-05  Simon Josefsson  <simon@josefsson.org>
16250
16251         * modules/byteswap (License): Re-license as LGPLv2+.
16252
16253 2008-03-05  Simon Josefsson  <simon@josefsson.org>
16254
16255         * doc/Makefile: Add pdf target.
16256
16257 2008-03-05  Simon Josefsson  <simon@josefsson.org>
16258
16259         * modules/inline (License): Use 'unlimited', since there are only
16260         *.m4 files in this module.
16261
16262 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
16263             Bruno Haible  <bruno@clisp.org>
16264
16265         Add support for HP C 7.1 on OpenVMS 8.3.
16266         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
16267
16268 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
16269
16270         Update VMS specifics.
16271         * lib/getopt.c [VMS]: Remove include of unixlib.h.
16272
16273 2008-03-02  Jim Meyering  <meyering@redhat.com>
16274
16275         Remove the last dependency on the "free" module.
16276         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
16277         Reported by Bob Proulx.
16278
16279         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
16280
16281         Remove useless "if" tests before free.  Deprecate "free" module.
16282         * doc/posix-functions/free.texi: Mention that this
16283         module is no longer useful.
16284         * modules/free (Notice): Say this module is obsolete.
16285         * modules/readutmp (Depends-on): Remove free.
16286         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
16287         * lib/putenv.c (putenv): Likewise.
16288         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
16289         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
16290         * tests/test-c-strcasestr.c (main): Likewise.
16291         * tests/test-c-strstr.c (main): Likewise.
16292         * tests/test-mbscasestr1.c (main): Likewise.
16293         * tests/test-mbscasestr2.c (main): Likewise.
16294         * tests/test-mbsstr1.c (main): Likewise.
16295         * tests/test-mbsstr2.c (main): Likewise.
16296         * tests/test-memmem.c (main): Likewise.
16297         * tests/test-strcasestr.c (main): Likewise.
16298         * tests/test-striconv.c (main): Likewise.
16299         * tests/test-striconveh.c (main): Likewise.
16300         * tests/test-striconveha.c (main): Likewise.
16301         * tests/test-strstr.c (main): Likewise.
16302
16303         * build-aux/git-version-gen: Adjust a comment and the Usage string.
16304
16305         bootstrap: sync from coreutils again
16306         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
16307
16308 2008-03-01  Jim Meyering  <meyering@redhat.com>
16309
16310         bootstrap: sync from coreutils
16311         * build-aux/bootstrap (update_po_files): Copy a .po file into place
16312         also when the target doesn't exist.
16313
16314 2008-03-01  Eric Blake  <ebb9@byu.net>
16315
16316         Fix bugs in last patch.
16317         * lib/memchr2.c (memchr2): Fix typo.
16318         * tests/test-memchr2.c: Test previous bug, and don't use GNU
16319         extension.
16320         Reported by Bruce Korb.
16321
16322         New module 'memchr2'.
16323         * modules/memchr2: New file.
16324         * modules/memchr2-tests: Likewise.
16325         * lib/memchr2.h: Likewise.
16326         * lib/memchr2.c: Likewise, based on memchr.c.
16327         * tests/test-memchr2.c: New test.
16328         * MODULES.html.sh (String handling): Add memchr2.
16329
16330 2008-02-29  Bruno Haible  <bruno@clisp.org>
16331
16332         * modules/freadseek-tests: New file.
16333         * tests/test-freadseek.sh: New file.
16334         * tests/test-freadseek.c: New file.
16335
16336         New module 'freadseek'.
16337         * modules/freadseek: New file.
16338         * lib/freadseek.h: New file.
16339         * lib/freadseek.c: New file.
16340         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
16341
16342 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
16343
16344         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
16345         wydawca.
16346
16347         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
16348         program_invocation_name and program_invocation_short_name are
16349         present.
16350
16351 2008-02-28  Bruno Haible  <bruno@clisp.org>
16352
16353         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
16354         * tests/test-freadptr.sh: Also test non-seekable stdin.
16355
16356 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
16357
16358         * build-aux/bootstrap (source_base, m4_base)
16359         (doc_base, tests_base): New variables.
16360         (gnulib_tool_options): Do not hardcode base directories, use
16361         the above variables instead.
16362
16363 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
16364
16365         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
16366
16367 2008-02-28  Bruno Haible  <bruno@clisp.org>
16368
16369         * modules/freadptr-tests: New file.
16370         * tests/test-freadptr.sh: New file.
16371         * tests/test-freadptr.c: New file.
16372
16373         New module 'freadptr'.
16374         * modules/freadptr: New file.
16375         * lib/freadptr.h: New file.
16376         * lib/freadptr.c: New file.
16377         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
16378
16379 2008-02-26  Karl Berry  <karl@freefriends.org>
16380
16381         Sync from Libtool:
16382         * libltdl/argz.c (argz_add, argz_count): New functions.
16383         * libltdl/argz.in.h: Declare them.
16384         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
16385
16386 2008-02-22  Bruno Haible  <bruno@clisp.org>
16387
16388         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
16389         is a pointer type.  Needed for HP-UX 10.
16390         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
16391         * doc/posix-functions/gmtime_r.texi: Likewise.
16392         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
16393
16394 2008-02-24  Bruno Haible  <bruno@clisp.org>
16395
16396         * modules/environ-tests: New file.
16397         * tests/test-environ.c: New file.
16398
16399         New module 'environ'.
16400         * modules/environ: New file.
16401         * lib/unistd.in.h (environ): New declaration.
16402         * m4/environ.m4: New file.
16403         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
16404         after use.
16405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
16406         HAVE_DECL_ENVIRON.
16407         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
16408         HAVE_DECL_ENVIRON.
16409         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
16410         wrong claim that 'environ' is missing on some systems.
16411         * modules/execute (Depends-on): Add environ.
16412         * lib/execute.c (environ): Remove fallback declaration.
16413         * modules/pipe (Depends-on): Add environ.
16414         * lib/pipe.c (environ): Remove fallback declaration.
16415         * modules/setenv (Depends-on): Add environ.
16416         * lib/setenv.c (environ): Remove fallback declaration.
16417         * modules/unsetenv (Depends-on): Add environ.
16418         * lib/unsetenv.c (environ): Remove fallback declaration.
16419         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
16420         m4/environ.m4.
16421         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
16422         (gl_PREREQ_UNSETENV): Likewise.
16423
16424 2008-02-24  Bruno Haible  <bruno@clisp.org>
16425
16426         * doc/posix-functions/environ.texi: Document the MacOS X problem.
16427
16428 2008-02-20  Bob Proulx  <bob@proulx.com>
16429
16430         Enable use of older two part flavor 'git describe'.
16431         * build-aux/git-version-gen: If using the older two part flavor of
16432         git version then recreate the third part now present in the
16433         newer three part flavor of git describe.
16434
16435 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
16436
16437         * lib/fts.c (fts_build): Typo correction to comment.
16438
16439 2008-02-17  Bruno Haible  <bruno@clisp.org>
16440
16441         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
16442         generating no-op conflicts.
16443
16444 2008-02-17  Bruno Haible  <bruno@clisp.org>
16445
16446         Speed up by 10%.
16447         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
16448         result_entries, rather than an index-based loop.
16449
16450 2008-02-17  Bruno Haible  <bruno@clisp.org>
16451
16452         Speed up by 25%.
16453         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
16454         'hashcode_cached'.
16455         (entry_create): New function.
16456         (entry_hashcode): Use the cached hashcode if possible.
16457         (read_changelog_file, try_split_merged_entry): Use entry_create.
16458
16459 2008-02-17  Bruno Haible  <bruno@clisp.org>
16460
16461         Speed up from O(n^2) to O(n) for long ChangeLog files.
16462         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
16463         (read_changelog_file): Change implementation of entries_reversed list
16464         to rbtreehash.
16465         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
16466
16467 2008-02-17  Bruno Haible  <bruno@clisp.org>
16468
16469         New option --split-merged-entry.
16470         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
16471         (find_paragraph_end, try_split_merged_entry): New functions.
16472         (long_options): Add option --split-merged-entry.
16473         (usage): Document option --split-merged-entry.
16474         (main): Implement option --split-merged-entry.
16475         Reported by Eric Blake.
16476
16477 2008-02-17  Bruno Haible  <bruno@clisp.org>
16478
16479         * lib/git-merge-changelog.c: Include c-strstr.h.
16480         (main): Support the "git pull --rebase" situation.
16481         * modules/git-merge-changelog (Depends-on): Add c-strstr.
16482         Reported by Eric Blake.
16483
16484 2008-02-16  Eric Blake  <ebb9@byu.net>
16485
16486         Avoid doubling \ in common case of "c-maybe" quoting style.
16487         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
16488         eliding outer quotes.
16489         * lib/quotearg.h: Document this.
16490         * tests/test-quotearg.c (result_strings, inputs, results_g)
16491         (flag_results, locale_results): Test it by adding a new string to
16492         each test group.
16493         (compare_strings): Test new string.
16494
16495 2008-02-13  Eric Blake  <ebb9@byu.net>
16496
16497         Avoid trigraph quoting in default output.
16498         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
16499         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
16500         unless explicitly requested.
16501         * tests/test-quotearg.c (flag_results, main): Add additional tests.
16502
16503 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
16504
16505         Don't rely on signed integer overflowing to negative value.
16506         * lib/getugroups.c (getugroups): Include <limits.h>.
16507         Instead, compare against INT_MAX, and increment only if the test passes.
16508
16509 2008-02-13  Jim Meyering  <meyering@redhat.com>
16510         and Eric Blake  <ebb9@byu.net>
16511
16512         Avoid shadowing warning and compile errors on Linux.
16513         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
16514         forwarding macros on Linux.
16515         (dcgettext): Define a stub, for Linux.
16516         (results_g, main): Avoid warnings.
16517
16518 2008-02-12  Eric Blake  <ebb9@byu.net>
16519
16520         Silence warning in last patch.
16521         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
16522
16523         Quotearg part 4: add tests, fix c-maybe colon quoting.
16524         * lib/quotearg.h: Improve documentation.
16525         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
16526         escapes when adding outer quotes.  When quoting trigraphs, use
16527         valid C notation.  When quoting NUL, omit extra characters if next
16528         character is not digit.  Alter prototype.
16529         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
16530         callers.
16531         * modules/quotearg-tests: New module.
16532         * tests/test-quotearg.c: New test.
16533
16534 2008-02-07  Eric Blake  <ebb9@byu.net>
16535
16536         Quotearg part 3: add flag to control outer quote elision.
16537         * lib/quotearg.h (c_maybe_quoting_style): New style.
16538         (enum quoting_flags): Better documentation of flags.
16539         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
16540         c-maybe style.
16541         (quotearg_buffer_restyled): Handle new flag to elide outer
16542         quotes.
16543
16544         Quotearg part 2: add flag that can control NUL elision.
16545         * lib/quotearg.h (set_quoting_flags): New prototype.
16546         * lib/quotearg.c (struct quoting_options): Add flag field.
16547         (set_quoting_flags): New function.
16548         (quotearg_buffer_restyled): Add flags parameter.
16549         (quotearg_alloc_mem): Set the flag if length cannot be returned.
16550         (quotearg_n_options): Set the flag, since length cannot be
16551         returned.
16552         (quoting_options_from_style): Default flags correctly.
16553
16554         Quotearg part 1: more wrappers, restore quotearg_char state.
16555         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
16556         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
16557         (quotearg_colon_mem): New wrappers.
16558         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
16559         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
16560         functions.
16561         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
16562         (quotearg_colon_mem): New functions.
16563
16564 2008-02-11  Bruno Haible  <bruno@clisp.org>
16565
16566         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
16567         library in the current directory: it does not work with parallel make.
16568         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16569
16570 2008-02-11  Bruno Haible  <bruno@clisp.org>
16571
16572         * .gitattributes: New file.
16573
16574 2008-02-11  Jim Meyering  <meyering@redhat.com>
16575
16576         useless-if-before-free: Fix reversed exit values.
16577         * build-aux/useless-if-before-free: Use correct values
16578         for EXIT_MATCH and EXIT_NO_MATCH.
16579
16580         * build-aux/useless-if-before-free: Close stdout carefully.
16581
16582 2008-02-10  Bruno Haible  <bruno@clisp.org>
16583
16584         New module 'git-merge-changelog'.
16585         * modules/git-merge-changelog: New file.
16586         * lib/git-merge-changelog.c: New file.
16587
16588 2008-02-10  Jim Meyering  <meyering@redhat.com>
16589
16590         useless-if-before-free: New option: --list (-l).
16591
16592         useless-if-before-free: Don't exit immediately upon open failure.
16593         * build-aux/useless-if-before-free: Exit 2 for errors.
16594         Upon failure to open a file, don't exit immediately.
16595         Rather, just warn and continue with any remaining files.
16596
16597 2008-02-10  Bruno Haible  <bruno@clisp.org>
16598
16599         New abstract list operation 'node_set_value'.
16600         * lib/gl_list.h (gl_list_node_set_value): New function.
16601         (struct gl_list_implementation): New field node_set_value.
16602         * lib/gl_list.c (gl_list_node_set_value): New function.
16603         * lib/gl_array_list.c (gl_array_node_set_value): New function.
16604         (gl_array_list_implementation): Update.
16605         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
16606         (gl_carray_list_implementation): Update.
16607         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
16608         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
16609         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
16610         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
16611         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
16612         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
16613         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
16614         Update.
16615         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
16616         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
16617         (gl_sublist_list_implementation): Update.
16618
16619 2008-02-10  Bruno Haible  <bruno@clisp.org>
16620
16621         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
16622         Needed when ELEMENT is #defined to 'some_type *'.
16623
16624 2008-02-10  Jim Meyering  <meyering@redhat.com>
16625
16626         New script and module: useless-if-before-free
16627         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
16628         * build-aux/useless-if-before-free: New file.
16629         * modules/useless-if-before-free: New file.
16630
16631         * build-aux/gitlog-to-changelog: Use committer date, not author date.
16632
16633         xstrtol_error: Fix typo.
16634         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
16635         s/exit_failure/exit_status/.
16636
16637 2008-02-09  Jim Meyering  <meyering@redhat.com>
16638
16639         New script and module: gitlog-to-changelog
16640         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
16641         * modules/gitlog-to-changelog: New file.
16642         * build-aux/gitlog-to-changelog: New file.
16643
16644 2008-02-08  Jim Meyering  <meyering@redhat.com>
16645
16646         Avoid two "parameter unused" warnings.
16647         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
16648         Mark "st" as used.
16649
16650         Use "git COMMAND", not "git-COMMAND".
16651         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
16652         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
16653         * build-aux/git-version-gen: Use "git status", not "git-status".
16654
16655 2008-02-07  Bruno Haible  <bruno@clisp.org>
16656
16657         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
16658         Avoids a crash on Windows Vista.
16659         Reported by Adam Strzelecki <ono@java.pl> via
16660         Simon Josefsson <simon@josefsson.org>.
16661
16662 2008-02-06  Bruno Haible  <bruno@clisp.org>
16663
16664         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
16665         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
16666         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
16667         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
16668         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
16669         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
16670         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
16671         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
16672         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16673         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16674         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16675         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16676         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16677         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16678         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16679         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
16680         left-adjust flag.
16681         * tests/test-snprintf-posix.h (test_function): Likewise.
16682         * tests/test-sprintf-posix.h (test_function): Likewise.
16683         * tests/test-vasprintf-posix.c (test_function): Likewise.
16684         * doc/posix-functions/fprintf.texi: Update.
16685         * doc/posix-functions/printf.texi: Update.
16686         * doc/posix-functions/snprintf.texi: Update.
16687         * doc/posix-functions/sprintf.texi: Update.
16688         * doc/posix-functions/vfprintf.texi: Update.
16689         * doc/posix-functions/vprintf.texi: Update.
16690         * doc/posix-functions/vsnprintf.texi: Update.
16691         * doc/posix-functions/vsprintf.texi: Update.
16692         Reported by Peter Fales <psfales@alcatel-lucent.com>.
16693
16694 2008-02-06  Bruno Haible  <bruno@clisp.org>
16695
16696         Fix bug introduced on 2008-01-26.
16697         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
16698
16699 2008-02-06  Bruno Haible  <bruno@clisp.org>
16700
16701         Fix bug introduced on 2007-06-10.
16702         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
16703         !NEED_PRINTF_FLAG_ZERO.
16704
16705 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
16706
16707         getloadavg: use libperfstat on AIX5
16708         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
16709
16710 2008-02-03  Bruno Haible  <bruno@clisp.org>
16711
16712         * lib/diffseq.h: Add comments about required #includes.
16713         Reported by Michael Biggs <gnulib@doubleplum.net>.
16714
16715 2008-02-01  Bruno Haible  <bruno@clisp.org>
16716
16717         * users.txt: Add gnuit.
16718
16719 2008-01-31  Bruno Haible  <bruno@clisp.org>
16720
16721         * lib/md4.c (set_uint32): Mark as inline.
16722         * lib/md5.c (set_uint32): Likewise.
16723         * lib/sha1.c (set_uint32): Likewise.
16724         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
16725         * m4/md5.m4 (gl_MD5): Likewise.
16726         * m4/sha1.m4 (gl_SHA1): Likewise.
16727
16728 2008-01-31  Jim Meyering  <meyering@redhat.com>
16729
16730         Use "sizeof VAR", rather than a literal "4".
16731         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
16732         * lib/md4.c (md4_read_ctx): Likewise.
16733         * lib/sha1.c (sha1_read_ctx): Likewise.
16734
16735 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16736
16737         * tests/test-sha1.c: New file, based on test-md5.c.
16738
16739         * modules/crypto/sha1-tests: New file.
16740
16741 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16742
16743         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
16744
16745 2008-01-31  Jim Meyering  <meyering@redhat.com>
16746
16747         Prefer "sizeof v" over the equivalent "4".
16748         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
16749         * lib/md5.c (set_uint32): Likewise.
16750         * lib/sha1.c (set_uint32): Likewise.
16751
16752 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16753
16754         * lib/sha1.c (set_uint32): Mark function as static.
16755
16756 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16757
16758         md2: clarify comments to say that alignment is not required.
16759         * lib/md2.h: Remove warning about alignment in comment.
16760         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
16761         never been required.
16762
16763 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16764
16765         md4: adapt alignment constraint fix from sha1.
16766         * lib/md4.c (set_uint32): New function, from sha1.c
16767         (md4_read_ctx): Use it.
16768         (md4_finish_ctx): Doc fix.
16769         * lib/md4.h: Doc fix.
16770
16771 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16772
16773         md5: adapt alignment constraint fix from sha1.
16774         * lib/md5.c (set_uint32): New function, from sha1.c
16775         (md5_read_ctx): Use it.
16776         (md5_finish_ctx): Doc fix.
16777         * lib/md5.h: Doc fix.
16778
16779 2008-01-30  Peter Palfrader  <weasel@debian.org>
16780
16781         sha1: remove the result buffer alignment constraint
16782         * lib/sha1.c (set_uint32): New function.
16783         (sha1_read_ctx): Rewrite to remove the result buffer alignment
16784         constraint.
16785         (sha1_finish_ctx): Remove comment warning about alignment constraint.
16786         * lib/sha1.h: Likewise.
16787
16788 2008-01-30  Andreas Schwab  <schwab@suse.de>
16789             Bruno Haible  <bruno@clisp.org>
16790
16791         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
16792         correct definition of LDBL_MIN_EXP.
16793
16794 2008-01-30  Karl Berry  <karl@gnu.org>
16795
16796         * config/srclist-update: try to preserve x bit on updates.
16797         * config/srclistvars.sh: update for karl.
16798
16799 2008-01-29  Jim Meyering  <meyering@redhat.com>
16800
16801         vasnprintf.c: Avoid warning about unused label
16802         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
16803         "overflow" label definition and associated code with the
16804         same cpp condition that guards the sole use of that label.
16805
16806 2008-01-26  Bruno Haible  <bruno@clisp.org>
16807
16808         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
16809         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
16810         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
16811         * lib/isnanl-nolibm.h (isnanl): Likewise.
16812         Reported by Paul Eggert <eggert@cs.ucla.edu>.
16813
16814 2008-01-26  Bruno Haible  <bruno@clisp.org>
16815
16816         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
16817         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
16818
16819 2008-01-26  Bruno Haible  <bruno@clisp.org>
16820
16821         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
16822         GCC >= 4.0 built-in.
16823         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
16824
16825 2008-01-26  Bruno Haible  <bruno@clisp.org>
16826
16827         Rename isnan, applicable to 'double' only, to isnand.
16828         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
16829         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
16830         (configure.ac): Update.
16831         (Include): Replace "isnan.h" with "isnand.h".
16832         * m4/isnand.m4: Renamed from m4/isnan.m4.
16833         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
16834         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
16835         instead of isnan.c.
16836         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
16837         instead of HAVE_ISNAN_IN_LIBC.
16838         (isnand): Renamed from isnan.
16839         * lib/isnand.c: New file.
16840         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
16841         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
16842         (Makefile.am): Update.
16843         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
16844         Include isnand.h instead of isnan.h.
16845         (main): Test isnand instead of isnan.
16846         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
16847         isnan-nolibm.
16848         * modules/frexp (Depends-on): Likewise.
16849         * modules/frexp-tests (Depends-on): Likewise.
16850         * modules/frexp-nolibm (Depends-on): Likewise.
16851         * modules/frexp-nolibm-tests (Depends-on): Likewise.
16852         * modules/isfinite (Depends-on): Likewise.
16853         * modules/round-tests (Depends-on): Likewise.
16854         * modules/signbit (Depends-on): Likewise.
16855         * modules/signbit-tests (Depends-on): Likewise.
16856         * modules/snprintf-posix (Depends-on): Likewise.
16857         * modules/sprintf-posix (Depends-on): Likewise.
16858         * modules/trunc-tests (Depends-on): Likewise.
16859         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16860         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16861         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16862         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16863         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16864         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16865         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16866         * modules/vasnprintf-posix (Depends-on): Likewise.
16867         * modules/vasprintf-posix (Depends-on): Likewise.
16868         * modules/vfprintf-posix (Depends-on): Likewise.
16869         * modules/vsnprintf-posix (Depends-on): Likewise.
16870         * modules/vsprintf-posix (Depends-on): Likewise.
16871         * lib/frexp.c: Include isnand.h instead of isnan.h.
16872         (ISNAN): Set to isnand instead of isnan.
16873         * lib/isfinite.c: Include isnand.h instead of isnan.h.
16874         (gl_isfinited): Use isnand instead of isnan.
16875         * lib/signbitd.c: Include isnand.h instead of isnan.h.
16876         (gl_signbitd): Use isnand instead of isnan.
16877         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
16878         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
16879         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
16880         (main): Use isnand instead of isnan.
16881         * tests/test-round1.c: Include isnand.h.
16882         (main): Use isnand instead of isnan.
16883         * tests/test-round2.c: Include isnand.h instead of isnan.h.
16884         (ISNAN): Set to isnand instead of isnan.
16885         * tests/test-trunc1.c: Include isnand.h.
16886         (main): Use isnand instead of isnan.
16887         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
16888         (equal): Use isnand instead of isnan.
16889         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
16890         isnand-nolibm.
16891         * NEWS: Mention the change.
16892
16893 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
16894             Bruno Haible  <bruno@clisp.org>
16895
16896         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
16897         the GCC builtins for signbits are present and set
16898         REPLACE_SIGNBIT_USING_GCC if so.
16899         * lib/math.in.h (signbit): Define using GCC builtins if
16900         REPLACE_SIGNBIT_USING_GCC is set.
16901         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
16902         REPLACE_SIGNBIT_USING_GCC.
16903         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
16904
16905 2008-01-25  Jim Meyering  <meyering@redhat.com>
16906
16907         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
16908         * lib/poll.c: Include <config.h>, not "config.h".
16909         * tests/test-getaddrinfo.c: Likewise.
16910
16911 2008-01-25  Simon Josefsson  <simon@josefsson.org>
16912
16913         * modules/sockets-tests: New file.
16914
16915 2008-01-24  Simon Josefsson  <simon@josefsson.org>
16916
16917         * modules/sockets: New module, can be used to call WSA_Startup and
16918         WSA_Cleanup when needed.
16919
16920         * lib/sockets.h, lib/sockets.c: New files.
16921
16922         * m4/sockets.m4: New file.
16923
16924         * tests/test-sockets.c: New file.
16925
16926 2008-01-19  Bruno Haible  <bruno@clisp.org>
16927
16928         * doc/posix-headers: Renamed from doc/headers.
16929         * doc/posix-functions: Renamed from doc/functions.
16930         * doc/gnulib.texi: Update.
16931
16932 2008-01-19  Bruno Haible  <bruno@clisp.org>
16933
16934         * doc/glibc-functions/strcasestr.texi: Include contents of
16935         doc/functions/strcasestr.texi, fixing the list of platforms.
16936         * doc/functions/strcasestr.texi: Remove file.
16937
16938 2008-01-19  Bruno Haible  <bruno@clisp.org>
16939
16940         * doc/glibc-functions/memmem.texi: Include contents of
16941         doc/functions/memmem.texi.
16942         * doc/functions/memmem.texi: Remove file.
16943
16944 2008-01-18  Bruno Haible  <bruno@clisp.org>
16945
16946         * doc/glibc-functions/*.texi: New files.
16947         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
16948         to use the new files.
16949
16950 2008-01-17  Bruno Haible  <bruno@clisp.org>
16951
16952         * tests/test-gethostname.c (main): Fix printf statement.
16953
16954 2008-01-17  Simon Josefsson  <simon@josefsson.org>
16955
16956         * modules/gethostname-tests: New file.
16957
16958         * tests/test-gethostname.c: New file.
16959
16960 2008-01-17  Simon Josefsson  <simon@josefsson.org>
16961
16962         * lib/gethostname.c: Include string.h unconditionally, strncpy is
16963         used by the UNAME case.  Reported by Bruno Haible
16964         <bruno@clisp.org>.
16965
16966 2008-01-17  Eric Blake  <ebb9@byu.net>
16967
16968         Convert c-strcasestr to be more efficient.
16969         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
16970         (Depends-on): Add c-strcase, remove malloca, strnlen.
16971         * tests/test-c-strcasestr.c (main): Enhance test.
16972         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
16973
16974 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
16975
16976         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
16977         Use it in creating po/Makevars.
16978
16979 2008-01-15  Simon Josefsson  <simon@josefsson.org>
16980
16981         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
16982         Applications that requires it should initialize libgcrypt
16983         manually.
16984
16985 2008-01-16  Simon Josefsson  <simon@josefsson.org>
16986
16987         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
16988
16989 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
16990
16991         Fix problem with getdate on mingw32 reported by Simon Josefsson
16992         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
16993         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
16994         tzname", when deciding whether to declare tzname.
16995         * lib/strftime.c (tzname): Likewise.
16996
16997 2008-01-15  Bruno Haible  <bruno@clisp.org>
16998
16999         Work around a MacOS X 10.5 bug in frexpl().
17000         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
17001         * doc/functions/frexpl.texi: Document the bug.
17002         Reported by Elias Pipping <pipping@gentoo.org>.
17003
17004 2008-01-14  Eric Blake  <ebb9@byu.net>
17005
17006         Touch up previous patch.
17007         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
17008         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
17009
17010         Convert strcasestr module to use Two-Way algorithm.
17011         * modules/strcasestr-simple: New module, based on the old
17012         strcasestr, but with Two-Way rather than KMP.
17013         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
17014         * lib/string.in.h (rpl_strcasestr): Declare.
17015         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
17016         performance.
17017         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
17018         * modules/string (Makefile.am): Support strcasestr.
17019         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
17020         * modules/strcasestr-tests (Depends-on): Check for alarm.
17021         * tests/test-strcasestr.c: Augment test.
17022         * lib/str-two-way.h: Clean up stray macro.
17023         * NEWS: Document new module.
17024         * MODULES.html.sh (string handling): Likewise.
17025         * doc/functions/strcasestr.texi: New file.
17026         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
17027         here, since it is not a POSIX function.
17028
17029 2008-01-14  Colin Watson  <cjwatson@debian.org>
17030             Bruno Haible  <bruno@clisp.org>
17031
17032         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
17033         works fine; if not, set REPLACE_STRSIGNAL.
17034         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
17035         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17036         REPLACE_STRSIGNAL.
17037         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
17038         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
17039         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
17040
17041 2008-01-14  Bruno Haible  <bruno@clisp.org>
17042
17043         * modules/strsignal (Include): Change to <string.h>.
17044
17045 2008-01-14  Colin Watson  <cjwatson@debian.org>
17046
17047         * modules/argp (Notice): Add a notice recommending to change
17048         XGETTEXT_OPTIONS.
17049         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
17050
17051 2008-01-13  Colin Watson  <cjwatson@debian.org>
17052
17053         * modules/strsignal-tests: New file.
17054         * tests/test-strsignal.c: New file.
17055
17056         * lib/strsignal.c: New file, from glibc with modifications.
17057         * lib/siglist.h: New file, from glibc with modifications.
17058         * lib/string.in.h (strsignal): New declaration.
17059         * m4/strsignal.m4: New file.
17060         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17061         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
17062         * modules/strsignal: New file.
17063         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
17064         HAVE_DECL_STRSIGNAL.
17065
17066 2008-01-13  Bruno Haible  <bruno@clisp.org>
17067
17068         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
17069         locale encoding is not ASCII. Needed for OpenBSD 4.0.
17070         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
17071         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17072
17073 2008-01-13  Bruno Haible  <bruno@clisp.org>
17074
17075         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
17076         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
17077         * lib/argp.h (__attribute__): Likewise.
17078         * lib/c-stack.c (__attribute__): Likewise.
17079         * lib/error.h (__attribute__): Likewise.
17080         * lib/fts.c (__attribute__): Likewise.
17081         * lib/openat.h (__attribute__): Likewise.
17082         * lib/stdio.in.h (__attribute__): Likewise.
17083         * lib/string.in.h (__attribute__): Likewise.
17084         * lib/utimens.c (__attribute__): Likewise.
17085         * lib/vasnprintf.h (__attribute__): Likewise.
17086         * lib/xalloc.h (__attribute__): Likewise.
17087         * lib/xprintf.h (__attribute__): Likewise.
17088         * lib/xstrtol.h (__attribute__): Likewise.
17089         * lib/xvasprintf.h (__attribute__): Likewise.
17090
17091 2008-01-12  Bruno Haible  <bruno@clisp.org>
17092
17093         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
17094         * doc/glibc-headers/a.out.texi: New file.
17095         * doc/glibc-headers/aliases.texi: New file.
17096         * doc/glibc-headers/alloca.texi: New file.
17097         * doc/glibc-headers/ar.texi: New file.
17098         * doc/glibc-headers/argp.texi: New file.
17099         * doc/glibc-headers/argz.texi: New file.
17100         * doc/glibc-headers/byteswap.texi: New file.
17101         * doc/glibc-headers/crypt.texi: New file.
17102         * doc/glibc-headers/endian.texi: New file.
17103         * doc/glibc-headers/envz.texi: New file.
17104         * doc/glibc-headers/err.texi: New file.
17105         * doc/glibc-headers/error.texi: New file.
17106         * doc/glibc-headers/execinfo.texi: New file.
17107         * doc/glibc-headers/fpu_control.texi: New file.
17108         * doc/glibc-headers/fstab.texi: New file.
17109         * doc/glibc-headers/fts.texi: New file.
17110         * doc/glibc-headers/getopt.texi: New file.
17111         * doc/glibc-headers/ieee754.texi: New file.
17112         * doc/glibc-headers/ifaddrs.texi: New file.
17113         * doc/glibc-headers/libintl.texi: New file.
17114         * doc/glibc-headers/mcheck.texi: New file.
17115         * doc/glibc-headers/mntent.texi: New file.
17116         * doc/glibc-headers/obstack.texi: New file.
17117         * doc/glibc-headers/paths.texi: New file.
17118         * doc/glibc-headers/printf.texi: New file.
17119         * doc/glibc-headers/pty.texi: New file.
17120         * doc/glibc-headers/resolv.texi: New file.
17121         * doc/glibc-headers/shadow.texi: New file.
17122         * doc/glibc-headers/sysexits.texi: New file.
17123         * doc/glibc-headers/ttyent.texi: New file.
17124
17125 2008-01-12  Jim Meyering  <meyering@redhat.com>
17126
17127         announce-gen: emit Gnulib's git-based version string.
17128         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
17129         New option --gnulib-version=V, where V is expected to be
17130         the output of running git describe in the gnulib directory.
17131         (get_tool_versions): Request feedback on xdelta.  I suspect it's
17132         not useful, and plan to stop publishing an xdelta file with each
17133         coreutils release.
17134
17135         * build-aux/announce-gen: Also check for lzma-compressed files.
17136
17137 2008-01-11  Bruno Haible  <bruno@clisp.org>
17138
17139         * tests/test-memmem.c (main): Increase maximum allowed time.
17140         * tests/test-strstr.c (main): Likewise.
17141
17142 2008-01-11  Bruno Haible  <bruno@clisp.org>
17143
17144         * doc/functions/memmem.texi: Add more precisions about platforms.
17145         * doc/functions/strstr.texi: Likewise.
17146
17147 2008-01-10  Eric Blake  <ebb9@byu.net>
17148
17149         * m4/strstr.m4: Delete cruft from copy-n-paste.
17150         Reported by Bruno Haible.
17151
17152 2008-01-10  Bruno Haible  <bruno@clisp.org>
17153
17154         Make c-strstr rely on strstr.
17155         * lib/c-strstr.c: Don't include str-kmp.h.
17156         (c_strstr): Define in terms of strstr.
17157         * modules/c-strstr (Files): Remove lib/str-kmp.h.
17158         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
17159
17160 2008-01-10  Bruno Haible  <bruno@clisp.org>
17161
17162         * doc/gnulib.texi (String Functions in C Locale): New section.
17163         * doc/c-ctype.texi: New file.
17164         * doc/c-strcase.texi: New file.
17165         * doc/c-strcaseeq.texi: New file.
17166         * doc/c-strcasestr.texi: New file.
17167         * doc/c-strstr.texi: New file.
17168         * doc/c-strtod.texi: New file.
17169         * doc/c-strtold.texi: New file.
17170
17171 2008-01-10  Eric Blake  <ebb9@byu.net>
17172
17173         * lib/relocatable.h: Fix a comment.
17174
17175 2008-01-10  Eric Blake  <ebb9@byu.net>
17176
17177         Share two-way algorithm.
17178         * lib/str-two-way.h: New file, merged from...
17179         * lib/memmem.c: ...here...
17180         * lib/strstr.c: ...and here.
17181         * modules/memmem (Files): Use it.
17182         * modules/strstr (Files): Likewise.
17183
17184         Avoid quadratic strstr implementations.
17185         * lib/strstr.c: New file.
17186         * m4/strstr.m4: Likewise.
17187         * modules/strstr: Likewise.
17188         * modules/strstr-tests: Likewise.
17189         * tests/test-strstr.c: Likewise.
17190         * lib/string.in.h (rpl_strstr): Declare.
17191         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
17192         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
17193         * modules/string (Makefile.am): Likewise.
17194         * MODULES.html.sh (string handling): Mention new module.
17195         * doc/functions/strstr.texi (strstr): Document the bug.
17196
17197 2008-01-10  Bruno Haible  <bruno@clisp.org>
17198
17199         * lib/relocatable.h (relocate): State whether result is freshly
17200         allocated or not.
17201         * lib/relocatable.c (relocate): Return a freshly allocated string
17202         instead of a pointer to a privately held string.
17203         Reported by Sylvain Beucler <beuc@gnu.org>.
17204
17205 2008-01-10  Colin Watson  <cjwatson@debian.org>
17206
17207         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
17208         s/S_ISNLK/S_ISLNK/.
17209
17210 2008-01-09  Bruno Haible  <bruno@clisp.org>
17211
17212         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
17213         and other files.
17214         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
17215         if it's only a guess.
17216         * modules/memmem: Simplify by depending on memmem-simple.
17217
17218 2008-01-09  Bruno Haible  <bruno@clisp.org>
17219
17220         Work around OpenBSD 4.0 tdelete() bug.
17221         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
17222         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
17223         macros and don't redefine the enum values.
17224         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
17225         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
17226         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
17227
17228 2008-01-09  Bruno Haible  <bruno@clisp.org>
17229
17230         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
17231         (main): Don't perform the tests if setlocale did not install a UTF-8
17232         locale. Needed on OpenBSD 4.0.
17233         * modules/wcwidth-tests (Depends-on): Add localcharset.
17234
17235 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
17236
17237         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
17238         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
17239         * NEWS: announce this.
17240         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
17241
17242 2008-01-09  Simon Josefsson  <simon@josefsson.org>
17243         and Eric Blake  <ebb9@byu.net>
17244
17245         Add memmem-simple module.
17246         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
17247         (gl_FUNC_MEMMEM): Separate performance from presence checks.
17248         * modules/memmem-simple: New file.
17249         * modules/memmem (Description): Tweak.
17250         * MODULES.html.sh (string handling): Mention new module.
17251         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
17252         addressed by memmem-simple.
17253         * NEWS: Document the difference.
17254
17255 2008-01-09  Eric Blake  <ebb9@byu.net>
17256
17257         Give gcc some memmem optimization hints.
17258         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
17259         (strcasestr): Declare as pure.
17260         * modules/memmem (Maintainer): Claim my implementation.
17261
17262 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17263
17264         Support AIX 6.1 and higher.
17265         * build-aux/config.libpath: Likewise.
17266         * build-aux/config.rpath: Likewise.
17267
17268 2008-01-08  Jim Meyering  <meyering@redhat.com>
17269             Bruno Haible  <bruno@clisp.org>
17270
17271         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
17272         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
17273         Reported by Peter Fales in
17274         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
17275
17276 2008-01-08  Bruno Haible  <bruno@clisp.org>
17277
17278         * modules/unictype/category-of (Depends-on): Add
17279         unictype/category-none.
17280         * modules/unictype/category-and-tests (Depends-on): Add
17281         unictype/category-{L,N,Lu,Nd}.
17282         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
17283         * modules/unictype/category-or-tests (Depends-on): Add
17284         unictype/category-{L,N}.
17285         * modules/unictype/category-name-tests (Depends-on): Add
17286         unictype/category-{Z,Nl}.
17287         Reported by Simon Josefsson.
17288
17289 2008-01-08  Bruno Haible  <bruno@clisp.org>
17290
17291         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
17292         convention better.
17293         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
17294         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
17295         Reported by Peter Miller <millerp@canb.auug.org.au>.
17296
17297 2008-01-08  Eric Blake  <ebb9@byu.net>
17298
17299         Rewrite memmem to guarantee linear complexity without malloc.
17300         * lib/memmem.c (memmem): Use Two-Way rather than
17301         Knuth-Morris-Pratt, to allow O(1) space usage.
17302         (critical_factorization, two_way_short_needle)
17303         (two_way_long_needle): New functions.
17304         (knuth_morris_pratt): Delete.
17305         * modules/memmem (Depends-on): No longer need malloca or stdbool.
17306         Add stdint.
17307         * tests/test-memmem.c (main): Add tests for periodic needle and
17308         sublinear performance.
17309         * doc/functions/memmem.texi (memmem): Document other deficiencies
17310         in cygwin and older glibc.
17311
17312 2008-01-08  Bruno Haible  <bruno@clisp.org>
17313
17314         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
17315         augmentation.
17316
17317 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
17318
17319         Add a configure time option: --disable-acl.
17320         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
17321         AC_ARG_ENABLE(acl).
17322
17323 2008-01-06  Simon Josefsson  <simon@josefsson.org>
17324
17325         * tests/test-localename.c: Don't include obsolete "setenv.h".
17326
17327         * modules/localename-tests (Depends-on): Need unsetenv.
17328
17329 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17330
17331         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
17332
17333 2008-01-06  Colin Watson  <cjwatson@debian.org>
17334
17335         * users.txt: Add man-db.
17336
17337 2008-01-07  Bruno Haible  <bruno@clisp.org>
17338
17339         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
17340         previous section name.
17341
17342 2008-01-07  Bruno Haible  <bruno@clisp.org>
17343
17344         * lib/progname.c (set_program_name): Don't strip off a leading
17345         "lt-" prefix outside a .libs directory.
17346         Suggested by Paul Eggert.
17347
17348 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
17349             Bruno Haible  <bruno@clisp.org>
17350
17351         Improve memory cleanup in 'relocatable' module.
17352         * lib/relocatable.h (compute_curr_prefix): Change return type to
17353         'char *'.
17354         * lib/relocatable.c (compute_curr_prefix): Change return type to
17355         'char *'. Free curr_installdir after use.
17356         (relocate): Free curr_prefix_better after use.
17357         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
17358
17359 2008-01-01  Bruno Haible  <bruno@clisp.org>
17360
17361         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
17362         failure on older glibc systems.
17363         Reported by Peter Fales <psfales@alcatel-lucent.com>.
17364
17365 2008-01-05  Eric Blake  <ebb9@byu.net>
17366
17367         Avoid quadratic system memmem.
17368         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
17369         Reported by Ralf Wildenhues.
17370
17371         Fix memmem test for mingw.
17372         * modules/memmem-tests (configure.ac): Check for alarm.
17373         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
17374         it.
17375         * doc/functions/memmem.texi: New file.
17376         * doc/gnulib.texi (Function Substitutes): Add memmem.
17377         Reported by Bruno Haible.
17378
17379 2008-01-04  Bruno Haible  <bruno@clisp.org>
17380
17381         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
17382         Require gl_HEADER_STRINGS_H_DEFAULTS, not
17383         gl_HEADER_STRING_H_DEFAULTS.
17384
17385 2008-01-04  Eric Blake  <ebb9@byu.net>
17386
17387         Shorten duration of memmem test.
17388         * tests/test-memmem.c (main): Use alarm to declare failure if test
17389         is taking too long.
17390         Reported by Ralf Wildenhues.
17391
17392 2007-12-21  Simon Josefsson  <simon@josefsson.org>
17393
17394         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
17395         string, needed by strerror.
17396
17397 2008-01-03  Colin Watson  <cjwatson@debian.org>
17398             Bruno Haible  <bruno@clisp.org>
17399
17400         * doc/gnulib-tool.texi (Localization): New section.
17401
17402 2008-01-02  Bruno Haible  <bruno@clisp.org>
17403
17404         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
17405         variables to 'unsigned char *' type.
17406         Reported by Paul Eggert.
17407
17408 2008-01-02  Jim Meyering  <jim@meyering.net>
17409
17410         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
17411
17412 2007-12-31  Jim Meyering  <jim@meyering.net>
17413
17414         Avoid use of private FTS type name.
17415         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
17416
17417 2007-12-30  Karl Berry  <karl@gnu.org>
17418
17419         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
17420         work around defect in Texinfo and/or the standalone Info browser.
17421
17422 2007-12-30  Bruno Haible  <bruno@clisp.org>
17423
17424         Unify 5 copies of the KMP code.
17425         * lib/str-kmp.h: New file.
17426         * lib/c-strcasestr.c: Include str-kmp.h.
17427         (knuth_morris_pratt): Remove function.
17428         (c_strcasestr): Update.
17429         * lib/c-strstr.c: Include str-kmp.h.
17430         (knuth_morris_pratt): Remove function.
17431         (c_strcasestr): Update.
17432         * lib/mbscasestr.c: Include str-kmp.h.
17433         (knuth_morris_pratt_unibyte): Remove function.
17434         * lib/mbsstr.c: Include str-kmp.h.
17435         (knuth_morris_pratt_unibyte): Remove function.
17436         * lib/strcasestr.c: Include str-kmp.h.
17437         (knuth_morris_pratt): Remove function.
17438         (strcasestr): Update.
17439         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
17440         * modules/c-strstr (Files): Likewise.
17441         * modules/mbscasestr (Files): Likewise.
17442         * modules/mbsstr (Files): Likewise.
17443         * modules/strcasestr (Files): Likewise.
17444         Suggested by Paul Eggert.
17445
17446 2007-12-30  Bruno Haible  <bruno@clisp.org>
17447
17448         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
17449         defined.
17450
17451 2007-12-30  Bruno Haible  <bruno@clisp.org>
17452
17453         * lib/xmalloca.h: Include xalloc.h.
17454         (xnmalloca): New macro.
17455
17456 2007-12-30  Bruno Haible  <bruno@clisp.org>
17457
17458         * lib/malloca.h (nmalloca): New macro.
17459         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
17460         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
17461         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
17462         knuth_morris_pratt_multibyte): Likewise.
17463         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
17464         knuth_morris_pratt_multibyte): Likewise.
17465         * lib/memmem.c (knuth_morris_pratt): Likewise.
17466         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
17467
17468 2007-12-25  Bruno Haible  <bruno@clisp.org>
17469
17470         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
17471         * lib/glob.c: Don't include openat.h.
17472         (link_exists2_p): Add back the code that deals with the
17473         !GLOB_ALTDIRFUNC case.
17474         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
17475         let it do the filename concatenation.
17476         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
17477         * modules/glob (Depends-on): Remove openat.
17478
17479 2007-12-31  Bruno Haible  <bruno@clisp.org>
17480
17481         * modules/dirfd (License): Change to LGPLv2+.
17482         Approved by Jim Meyering.
17483
17484 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17485
17486         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
17487         when multiplying M by sizeof (size_t).
17488
17489 2007-12-10  Martin Lambers  <marlam@marlam.de>
17490
17491         Override getpagesize on mingw.
17492         * lib/getpagesize.c: New file.
17493         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
17494         * modules/getpagesize (Files): Add lib/getpagesize.c.
17495         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
17496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17497         REPLACE_GETPAGESIZE.
17498         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
17499
17500 2007-12-25  Bruno Haible  <bruno@clisp.org>
17501
17502         * modules/localcharset (Notice): New field.
17503         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
17504         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17505
17506 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
17507             Bruno Haible  <bruno@clisp.org>
17508
17509         Avoid using the syntax symbol() in formatted documentation.
17510         * MODULES.html.sh (func_module): When replacing symbol() with a
17511         hyperlink, remove the parentheses. Show an error if some remain.
17512         Recognize and render the '...' syntax.
17513         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
17514         Rework. Add paragraph about GCC's inlining.
17515         * doc/alloca.texi: Likewise.
17516         * doc/error.texi: Remove parentheses from symbol reference.
17517         * doc/gnulib-intro.texi: Likewise.
17518         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
17519         * modules/fnmatch (Description): Reword to say "the ... function".
17520         * modules/full-read (Description): Likewise.
17521         * modules/full-write (Description): Likewise.
17522         * modules/safe-read (Description): Likewise.
17523         * modules/safe-write (Description): Likewise.
17524         * modules/strchrnul (Description): Likewise.
17525         * modules/trim (Description): Likewise.
17526         * modules/error (Description): Remove parentheses from symbol
17527         references.
17528         * modules/verror (Description): Likewise.
17529         Reported by Karl Berry.
17530
17531 2007-12-25  Bruno Haible  <bruno@clisp.org>
17532
17533         Fixup after 2007-10-16 commit.
17534         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
17535
17536 2007-12-24  Bruno Haible  <bruno@clisp.org>
17537
17538         Make --enable-relocatable work with DESTDIR.
17539         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
17540         to compute installdir from destprog.
17541         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
17542         also set the RELOC_DESTDIR variable.
17543         Reported by Левашев Иван <octagram@bluebottle.com>.
17544
17545 2007-12-24  Bruno Haible  <bruno@clisp.org>
17546
17547         Fix link error due to xalloc_die().
17548         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
17549         of xreadlink.
17550         * lib/relocwrapper.c: Update comments.
17551         * build-aux/install-reloc: Remove xreadlink.c from file list.
17552         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
17553         xreadlink.c.
17554         Reported by Левашев Иван <octagram@bluebottle.com>.
17555
17556 2007-12-24  Bruno Haible  <bruno@clisp.org>
17557
17558         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
17559         * lib/setenv.h: Remove file.
17560         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
17561         lib/setenv.h.
17562         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
17563         (Depends-on): Add stdlib.
17564         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
17565         gl_FUNC_UNSETENV.
17566         (Include): Replace setenv.h with <stdlib.h>.
17567         * modules/unsetenv: New file.
17568         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
17569         * lib/unsetenv.c: Include <stdlib.h> first.
17570         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
17571         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
17572         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
17573         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
17574         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
17575         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
17576         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
17577         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
17578         * doc/functions/unsetenv.texi: Update.
17579         * modules/xsetenv (Depends-on): Add unsetenv.
17580         * modules/getdate (Depends-on): Likewise.
17581         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
17582         * lib/xsetenv.c: Don't include setenv.h.
17583         * lib/getdate.y: Likewise.
17584         * lib/relocwrapper.c: Likewise.
17585         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
17586         (Depends-on): Add stdlib.
17587         * NEWS: Mention the changes.
17588         Reported by Левашев Иван <octagram@bluebottle.com>.
17589
17590 2007-12-23  Bruno Haible  <bruno@clisp.org>
17591
17592         * lib/memmem.c (memmem): Use lowercase variable names. Tab
17593         indentation.
17594
17595 2007-12-23  Bruno Haible  <bruno@clisp.org>
17596
17597         * lib/c-strcasestr.c: Add more comments.
17598         * lib/c-strstr.c: Likewise.
17599         * lib/mbscasestr.c: Likewise.
17600         * lib/mbsstr.c: Likewise.
17601         * lib/strcasestr.c: Likewise.
17602         * lib/memmem.c: Likewise.
17603
17604 2007-12-23  Bruno Haible  <bruno@clisp.org>
17605
17606         * tests/test-memmem.c: Include <string.h> first.
17607
17608 2007-12-22  Bruno Haible  <bruno@clisp.org>
17609
17610         * gnulib-tool (func_create_testdir): Change $auxdir while generating
17611         the contents of $testsbase.
17612         Reported by Ralf Wildenhues.
17613
17614 2007-12-22  Bruno Haible  <bruno@clisp.org>
17615
17616         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
17617         two variables local_ldadd_before, local_ldadd_last.
17618
17619 2007-12-20  Eric Blake  <ebb9@byu.net>
17620
17621         Work around circular library issue when cross-compiling.
17622         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
17623         that progname.o does not need to pull in rpl_memcmp.
17624
17625 2007-12-19  Eric Blake  <ebb9@byu.net>
17626
17627         Fix memmem to avoid O(n^2) worst-case complexity.
17628         * lib/memmem.c (knuth_morris_pratt): New function.
17629         (memmem): Use it if first few naive iterations fail.
17630         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
17631         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
17632         * modules/memchr (License): Likewise.
17633         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
17634         malloca.
17635         * tests/test-memmem.c: Rewrite, borrowing ideas from
17636         test-mbsstr1.c; the old version wouldn't even compile!
17637         * modules/memmem-tests: New file.
17638         * lib/string.in.h (rpl_memmem): Add declaration.
17639         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
17640         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
17641         REPLACE_MEMMEM.
17642
17643 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17644
17645         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
17646         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
17647         before any system include files, and undef after them all.  This
17648         should fix a problem on VMS reported by John E. Malmberg in
17649         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
17650
17651 2007-12-17  Eric Blake  <ebb9@byu.net>
17652
17653         Revert addition of verify, for BSD/OS.
17654         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
17655         can't handle large files, for the sake of obsolete platforms.
17656         * modules/fseeko (Depends-on): Remove verify.
17657         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
17658         * doc/functions/ftello.texi (ftello): Likewise.
17659         * doc/functions/fgetpos.texi (fgetpos): Likewise.
17660         Reported by Larry Jones.
17661
17662 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
17663
17664         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
17665         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
17666
17667 2007-12-17  Jim Meyering  <meyering@redhat.com>
17668
17669         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
17670         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
17671         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
17672         * modules/getcwd (Depends-on): Add openat.
17673         Reported by Petr Salinger.
17674
17675 2007-12-17  Bruno Haible  <bruno@clisp.org>
17676
17677         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
17678         avoid a segmentation fault of the configure test on x86_64 systems.
17679
17680 2007-12-15  Jim Meyering  <meyering@redhat.com>
17681
17682         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
17683
17684 2007-12-13  Eric Blake  <ebb9@byu.net>
17685
17686         Another fseek test.
17687         * tests/test-fseek.c (main): Also test ungetc handling.
17688         * tests/test-fseeko.c (main): Likewise.
17689         * modules/fseeko (Depends-on): Add verify.
17690         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
17691         large.
17692         Reported by Larry Jones.
17693
17694         Fix fseeko on mingw.
17695         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
17696         seek.
17697
17698         Beef up fseek tests.
17699         * tests/test-fseek.c (main): Also test eof handling.
17700         * tests/test-fseeko.c (main): Likewise.
17701         Reported by Larry Jones.
17702
17703 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
17704
17705         Fix fseeko on BSD-based platforms.
17706         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
17707         successful seek.
17708
17709 2007-12-12  Eric Blake  <ebb9@byu.net>
17710
17711         Allow circular dependency of separate libtests.a
17712         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
17713         when use_libtests.
17714
17715 2007-12-11  Eric Blake  <ebb9@byu.net>
17716
17717         Fix bug with -0.0L in previous patch.
17718         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
17719         * tests/test-isnan.c (main): Also test on zeroes.
17720         * tests/test-isnanf.c (main): Likewise.
17721         * tests/test-isnanl.h (main): Likewise.
17722
17723         Detect pseudo-denormals on x86 even when cross-compiling.
17724         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
17725         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
17726         invalid bit patterns that happen to satisfy ==.
17727
17728         Avoid link failures with separate libtests.a.
17729         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
17730         last, to satisfy circular dependencies.
17731
17732 2007-12-11  Eric Blake  <ebb9@byu.net>
17733         and Bruno Haible  <bruno@clisp.org>
17734
17735         Fix OpenBSD 4.0 <float.h> handling of long double.
17736         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
17737         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
17738         * doc/headers/float.texi (float.h): Document OpenBSD bug.
17739
17740 2007-12-11  Jim Meyering  <meyering@redhat.com>
17741
17742         * users.txt: Add libvirt.
17743
17744         Support versions of autoconf prior to 2.59c.
17745         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
17746         if it is not already defined.
17747
17748 2007-12-09  Bruno Haible  <bruno@clisp.org>
17749
17750         Let 'gnulib-tool --import' collect sources needed for the tests in
17751         tests/ rather than in lib/.
17752         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
17753         argument. If true, add rules to generate libtests.a, and put libtests.a
17754         into $(LDADD). Consider source files in subdirectories and set
17755         uses_subdirs.
17756         (func_emit_initmacro_start, func_emit_initmacro_end,
17757         func_emit_initmacro_done): Pass all arguments explicitly.
17758         (func_import): Determine two module lists main_modules,
17759         testsrelated_modules. Determine use_libtests. Determine two variables
17760         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
17761         instead of just sed_transform_lib_file. Determine two variables
17762         main_files and testsrelated_files. Compute 'files' as the union of
17763         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
17764         func_add_or_update. In the generated gnulib-comp.m4, collect the
17765         object files for tests/ in different variables than those for lib/.
17766         Substitute LIBTESTS_LIBDEPS.
17767         (func_create_testdir): Combine the uses_subdirs results from
17768         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
17769
17770 2007-12-09  Bruno Haible  <bruno@clisp.org>
17771
17772         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
17773         the build-aux directory.
17774
17775 2007-12-09  Bruno Haible  <bruno@clisp.org>
17776
17777         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
17778         introduced on 2006-09-09.
17779
17780 2007-12-07  Jim Meyering  <meyering@redhat.com>
17781
17782         Let these macros work also with autoconf-2.59.
17783         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
17784         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
17785         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17786
17787 2007-12-06  Jim Meyering  <meyering@redhat.com>
17788
17789         Avoid a configure-time syntax error in gl_FUNC_ACL.
17790         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
17791         function in each branch, before testing the cache variable.
17792
17793 2007-12-04  Eric Blake  <ebb9@byu.net>
17794
17795         Make scripts executable.
17796         * build-aux/config.guess: Add execute permissions.
17797         * build-aux/config.sub: Likewise.
17798         * build-aux/gendocs.sh: Likewise.
17799
17800         Fix frexp on mingw.
17801         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
17802         cross-compiling.
17803         * doc/functions/frexp.texi (frexp): Document the bug.
17804
17805         Make cygwin fseeko check more reliable.
17806         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
17807         version numbers, rather than unrelated feature check.
17808         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
17809         * doc/functions/ftello.texi (ftello): Likewise.
17810         Reported by Bruno Haible.
17811
17812         * m4/strerror.m4: Bump version number.
17813
17814 2007-12-03  Bruno Haible  <bruno@clisp.org>
17815
17816         * doc/functions/mprotect.texi: Mention the mingw problem.
17817
17818 2007-12-03  Eric Blake  <ebb9@byu.net>
17819
17820         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
17821         REPLACE_STRERROR is initialized before this macro.
17822
17823 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
17824
17825         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
17826         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
17827         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
17828         put -lsec in even for programs other than 'ls'.  This fixes a problem
17829         for gettext reported by Bruno Haible in
17830         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
17831         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
17832         Add support for Solaris 10.  This isn't efficient, but should get the
17833         job done for now.
17834
17835 2007-12-03  James Youngman  <jay@gnu.org>
17836
17837         * doc/regexprops-generic.texi: change "an close-group" to "a
17838         close-group" and "illegal" to "not allowed".
17839
17840 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17841
17842         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
17843         pr_byname.h. Needed for the rare case when the maintainer has done
17844         "make maintainer-clean" in the source directory and then attempts a
17845         build outside the source directory.
17846         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
17847         scripts_byname.h.
17848
17849 2007-12-02  Martin Lambers <marlam@marlam.de>
17850             Bruno Haible  <bruno@clisp.org>
17851
17852         * lib/getpagesize.h: Remove file.
17853         * lib/unistd.in.h: Include declaration of getpagesize here.
17854         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
17855         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
17856         HAVE_SYS_PARAM_H.
17857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
17858         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
17859         * modules/getpagesize (Files): Remove lib/getpagesize.h.
17860         (Depends-on): Add unistd.
17861         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17862         (Include): Use <unistd.h> instead of getpagesize.h.
17863         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
17864         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
17865         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
17866         gl_GETPAGESIZE invocation, already handled by module dependency.
17867         * lib/pagealign_alloc.c: Don't include getpagesize.h.
17868
17869 2007-12-02  Bruno Haible  <bruno@clisp.org>
17870
17871         * modules/strings-tests: New file.
17872         * tests/test-strings.c: New file.
17873
17874         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
17875         * lib/strings.in.h: New file.
17876         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
17877         * m4/strings_h.m4: New file.
17878         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
17879         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
17880         * modules/strings: New file.
17881         * modules/string (Makefile.am): Update.
17882         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
17883         Reported by Karl Berry.
17884
17885 2007-12-01  Eric Blake  <ebb9@byu.net>
17886
17887         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
17888         accomodate fix in cygwin 1.5.25.
17889
17890 2007-12-01  Jim Meyering  <meyering@redhat.com>
17891
17892         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
17893         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
17894         that would inhibit utf8-optimization of a regexp containing line-
17895         or buffer-anchors, e.g., `^', `$'.
17896
17897 2007-11-30  Bruno Haible  <bruno@clisp.org>
17898
17899         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
17900         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
17901         glthread_recursive_lock_init.
17902         * lib/lock.c (glthread_recursive_lock_init)
17903         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
17904         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
17905
17906 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
17907
17908         New function qset_acl, like set_acl but with syscall semantics.
17909         * lib/acl.h (qset_acl): New decl.
17910         * lib/acl.c (qset_acl): New function.
17911         (set_acl): Use new function.  Use more-consistent diagnostics.
17912
17913 2007-11-28  Jim Meyering  <meyering@redhat.com>
17914
17915         * modules/physmem (License): Change from GPL to LGPLv2+.
17916
17917 2007-11-26  Bruno Haible  <bruno@clisp.org>
17918
17919         * lib/vasnprintf.c (decode_long_double): Don't abort if the
17920         'long double' type has excess precision.
17921         Reported by Jim Meyering in
17922         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
17923
17924 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17925
17926         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
17927         Sync from <http://gnu.org/licenses>.
17928         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
17929         with license text from same location.
17930         * doc/maintain.texi, doc/standards.texi:  Sync from
17931         <http://savannah.gnu.org/projects/gnustandards>.
17932
17933 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
17934         and Jim Meyering  <meyering@redhat.com>
17935
17936         Adjust getdate' grammar to accept a slightly more regular language.
17937         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
17938         Before, the former was rejected.
17939         * lib/getdate.y (digits_to_date_time): New function, factored
17940         out of ...
17941         (number): ...here.  Just call digits_to_date_time.
17942         (hybrid): New non-terminal to handle an <unsigned number,
17943         signed relative offset> sequence consistently.
17944
17945 2007-11-18  Jim Meyering  <meyering@redhat.com>
17946
17947         Pull my changes from coreutils:
17948         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
17949         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
17950         use of $gnulib_tool_option_extras, so that it's separated from the
17951         preceding argument.
17952
17953         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
17954         * build-aux/bootstrap (cp_mark_as_generated): Create any required
17955         parent destination directories before copying a file into place.
17956
17957 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
17958
17959         bootstrap: work also with 4-argument variant of AC_INIT
17960         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
17961
17962 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
17963
17964         Port test-getaddrinfo to Solaris.
17965         Problem reported by Bruno Haible in
17966         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
17967         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
17968         explanation of setting 'hints'.
17969         Don't reject an implementation merely because it returns EAI_SERVICE.
17970         (EAI_SERVICE): Define to 0 if not defined.
17971
17972 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
17973
17974         The license of gnu-make and posix-shell is now "GPLed build tool".
17975         * modules/gnu-make (License): Likewise.
17976         * modules/posix-shell (License): Likewise.
17977
17978         New module posix-shell, for determining a POSIX shell
17979         or perhaps something that is close enough to a POSIX shell.
17980         * m4/posix-shell.m4: New file.
17981         * modules/posix-shell: New file.
17982
17983         * MODULES.html.sh: Mention new module.
17984
17985         New module gnu-make, for determining whether we're using GNU Make.
17986         * m4/gnu-make.m4: New file.
17987         * modules/gnu-make: New file.
17988         * MODULES.html.sh: Mention new module.
17989
17990 2007-11-14  Jim Meyering  <meyering@redhat.com>
17991
17992         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
17993         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
17994         use this macro to create a function _definition_.
17995         Remove useless "#undef ARGMATCH_DIE".
17996
17997 2007-11-14  Bruno Haible  <bruno@clisp.org>
17998
17999         * lib/config.charset: Update for OpenBSD 4.1.
18000         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
18001
18002 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
18003
18004         Document 64-bit #if problems in stdint.texi.
18005         * doc/headers/stdint.texi (stdint.h): Mention problems with
18006         64-bit-#if, and how to work around them.
18007
18008         Don't insist on 'long long int' support in the preprocessor.  It
18009         breaks too many things.  For example, PRIdMAX still uses a 'long
18010         long int' format with the latest Sun compiler, even though
18011         HAVE_LONG_LONG_INT isn't defined due to that compiler's
18012         preprocessor problem.  This causes the latest coreutils to dump
18013         core on Solaris 10 sparc with the Sun C compiler.
18014         Instead, fix the 2007-10-16 problem in a different way, by evaluating
18015         the troublesome expressions at configure-time, not at #if-time.
18016         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
18017         preprocessor.
18018         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
18019         compile-time C checks, done at 'configure'-time.
18020         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
18021         * modules/inttypes (Makefile): Substitute the new symbols that
18022         gl_INTTYPES_H now generates.
18023         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
18024
18025 2007-11-12  Bruno Haible  <bruno@clisp.org>
18026
18027         Tests for Unicode character classification functions.
18028
18029         * modules/unictype/bidicategory-byname-tests: New file.
18030         * modules/unictype/bidicategory-name-tests: New file.
18031         * modules/unictype/bidicategory-of-tests: New file.
18032         * modules/unictype/bidicategory-test-tests: New file.
18033         * modules/unictype/block-list-tests: New file.
18034         * modules/unictype/block-of-tests: New file.
18035         * modules/unictype/block-test-tests: New file.
18036         * modules/unictype/category-C-tests: New file.
18037         * modules/unictype/category-Cc-tests: New file.
18038         * modules/unictype/category-Cf-tests: New file.
18039         * modules/unictype/category-Cn-tests: New file.
18040         * modules/unictype/category-Co-tests: New file.
18041         * modules/unictype/category-Cs-tests: New file.
18042         * modules/unictype/category-L-tests: New file.
18043         * modules/unictype/category-Ll-tests: New file.
18044         * modules/unictype/category-Lm-tests: New file.
18045         * modules/unictype/category-Lo-tests: New file.
18046         * modules/unictype/category-Lt-tests: New file.
18047         * modules/unictype/category-Lu-tests: New file.
18048         * modules/unictype/category-M-tests: New file.
18049         * modules/unictype/category-Mc-tests: New file.
18050         * modules/unictype/category-Me-tests: New file.
18051         * modules/unictype/category-Mn-tests: New file.
18052         * modules/unictype/category-N-tests: New file.
18053         * modules/unictype/category-Nd-tests: New file.
18054         * modules/unictype/category-Nl-tests: New file.
18055         * modules/unictype/category-No-tests: New file.
18056         * modules/unictype/category-P-tests: New file.
18057         * modules/unictype/category-Pc-tests: New file.
18058         * modules/unictype/category-Pd-tests: New file.
18059         * modules/unictype/category-Pe-tests: New file.
18060         * modules/unictype/category-Pf-tests: New file.
18061         * modules/unictype/category-Pi-tests: New file.
18062         * modules/unictype/category-Po-tests: New file.
18063         * modules/unictype/category-Ps-tests: New file.
18064         * modules/unictype/category-S-tests: New file.
18065         * modules/unictype/category-Sc-tests: New file.
18066         * modules/unictype/category-Sk-tests: New file.
18067         * modules/unictype/category-Sm-tests: New file.
18068         * modules/unictype/category-So-tests: New file.
18069         * modules/unictype/category-Z-tests: New file.
18070         * modules/unictype/category-Zl-tests: New file.
18071         * modules/unictype/category-Zp-tests: New file.
18072         * modules/unictype/category-Zs-tests: New file.
18073         * modules/unictype/category-and-not-tests: New file.
18074         * modules/unictype/category-and-tests: New file.
18075         * modules/unictype/category-byname-tests: New file.
18076         * modules/unictype/category-name-tests: New file.
18077         * modules/unictype/category-none-tests: New file.
18078         * modules/unictype/category-of-tests: New file.
18079         * modules/unictype/category-or-tests: New file.
18080         * modules/unictype/category-test-withtable-tests: New file.
18081         * modules/unictype/combining-class-tests: New file.
18082         * modules/unictype/ctype-alnum-tests: New file.
18083         * modules/unictype/ctype-alpha-tests: New file.
18084         * modules/unictype/ctype-blank-tests: New file.
18085         * modules/unictype/ctype-cntrl-tests: New file.
18086         * modules/unictype/ctype-digit-tests: New file.
18087         * modules/unictype/ctype-graph-tests: New file.
18088         * modules/unictype/ctype-lower-tests: New file.
18089         * modules/unictype/ctype-print-tests: New file.
18090         * modules/unictype/ctype-punct-tests: New file.
18091         * modules/unictype/ctype-space-tests: New file.
18092         * modules/unictype/ctype-upper-tests: New file.
18093         * modules/unictype/ctype-xdigit-tests: New file.
18094         * modules/unictype/decimal-digit-tests: New file.
18095         * modules/unictype/digit-tests: New file.
18096         * modules/unictype/mirror-tests: New file.
18097         * modules/unictype/numeric-tests: New file.
18098         * modules/unictype/property-alphabetic-tests: New file.
18099         * modules/unictype/property-ascii-hex-digit-tests: New file.
18100         * modules/unictype/property-bidi-arabic-digit-tests: New file.
18101         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
18102         * modules/unictype/property-bidi-block-separator-tests: New file.
18103         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
18104         * modules/unictype/property-bidi-common-separator-tests: New file.
18105         * modules/unictype/property-bidi-control-tests: New file.
18106         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
18107         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
18108         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
18109         * modules/unictype/property-bidi-european-digit-tests: New file.
18110         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
18111         * modules/unictype/property-bidi-left-to-right-tests: New file.
18112         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
18113         * modules/unictype/property-bidi-other-neutral-tests: New file.
18114         * modules/unictype/property-bidi-pdf-tests: New file.
18115         * modules/unictype/property-bidi-segment-separator-tests: New file.
18116         * modules/unictype/property-bidi-whitespace-tests: New file.
18117         * modules/unictype/property-byname-tests: New file.
18118         * modules/unictype/property-combining-tests: New file.
18119         * modules/unictype/property-composite-tests: New file.
18120         * modules/unictype/property-currency-symbol-tests: New file.
18121         * modules/unictype/property-dash-tests: New file.
18122         * modules/unictype/property-decimal-digit-tests: New file.
18123         * modules/unictype/property-default-ignorable-code-point-tests: New file.
18124         * modules/unictype/property-deprecated-tests: New file.
18125         * modules/unictype/property-diacritic-tests: New file.
18126         * modules/unictype/property-extender-tests: New file.
18127         * modules/unictype/property-format-control-tests: New file.
18128         * modules/unictype/property-grapheme-base-tests: New file.
18129         * modules/unictype/property-grapheme-extend-tests: New file.
18130         * modules/unictype/property-grapheme-link-tests: New file.
18131         * modules/unictype/property-hex-digit-tests: New file.
18132         * modules/unictype/property-hyphen-tests: New file.
18133         * modules/unictype/property-id-continue-tests: New file.
18134         * modules/unictype/property-id-start-tests: New file.
18135         * modules/unictype/property-ideographic-tests: New file.
18136         * modules/unictype/property-ids-binary-operator-tests: New file.
18137         * modules/unictype/property-ids-trinary-operator-tests: New file.
18138         * modules/unictype/property-ignorable-control-tests: New file.
18139         * modules/unictype/property-iso-control-tests: New file.
18140         * modules/unictype/property-join-control-tests: New file.
18141         * modules/unictype/property-left-of-pair-tests: New file.
18142         * modules/unictype/property-line-separator-tests: New file.
18143         * modules/unictype/property-logical-order-exception-tests: New file.
18144         * modules/unictype/property-lowercase-tests: New file.
18145         * modules/unictype/property-math-tests: New file.
18146         * modules/unictype/property-non-break-tests: New file.
18147         * modules/unictype/property-not-a-character-tests: New file.
18148         * modules/unictype/property-numeric-tests: New file.
18149         * modules/unictype/property-other-alphabetic-tests: New file.
18150         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
18151         * modules/unictype/property-other-grapheme-extend-tests: New file.
18152         * modules/unictype/property-other-id-continue-tests: New file.
18153         * modules/unictype/property-other-id-start-tests: New file.
18154         * modules/unictype/property-other-lowercase-tests: New file.
18155         * modules/unictype/property-other-math-tests: New file.
18156         * modules/unictype/property-other-uppercase-tests: New file.
18157         * modules/unictype/property-paired-punctuation-tests: New file.
18158         * modules/unictype/property-paragraph-separator-tests: New file.
18159         * modules/unictype/property-pattern-syntax-tests: New file.
18160         * modules/unictype/property-pattern-white-space-tests: New file.
18161         * modules/unictype/property-private-use-tests: New file.
18162         * modules/unictype/property-punctuation-tests: New file.
18163         * modules/unictype/property-quotation-mark-tests: New file.
18164         * modules/unictype/property-radical-tests: New file.
18165         * modules/unictype/property-sentence-terminal-tests: New file.
18166         * modules/unictype/property-soft-dotted-tests: New file.
18167         * modules/unictype/property-space-tests: New file.
18168         * modules/unictype/property-terminal-punctuation-tests: New file.
18169         * modules/unictype/property-test-tests: New file.
18170         * modules/unictype/property-titlecase-tests: New file.
18171         * modules/unictype/property-unassigned-code-value-tests: New file.
18172         * modules/unictype/property-unified-ideograph-tests: New file.
18173         * modules/unictype/property-uppercase-tests: New file.
18174         * modules/unictype/property-variation-selector-tests: New file.
18175         * modules/unictype/property-white-space-tests: New file.
18176         * modules/unictype/property-xid-continue-tests: New file.
18177         * modules/unictype/property-xid-start-tests: New file.
18178         * modules/unictype/property-zero-width-tests: New file.
18179         * modules/unictype/scripts-tests: New file.
18180         * modules/unictype/syntax-c-ident-tests: New file.
18181         * modules/unictype/syntax-c-whitespace-tests: New file.
18182         * modules/unictype/syntax-java-ident-tests: New file.
18183         * modules/unictype/syntax-java-whitespace-tests: New file.
18184         * tests/unictype/test-bidi_byname.c: New file.
18185         * tests/unictype/test-bidi_name.c: New file.
18186         * tests/unictype/test-bidi_of.c: New file.
18187         * tests/unictype/test-bidi_test.c: New file.
18188         * tests/unictype/test-block_list.c: New file.
18189         * tests/unictype/test-block_of.c: New file.
18190         * tests/unictype/test-block_test.c: New file.
18191         * tests/unictype/test-categ_and.c: New file.
18192         * tests/unictype/test-categ_and_not.c: New file.
18193         * tests/unictype/test-categ_byname.c: New file.
18194         * tests/unictype/test-categ_name.c: New file.
18195         * tests/unictype/test-categ_none.c: New file.
18196         * tests/unictype/test-categ_of.c: New file.
18197         * tests/unictype/test-categ_or.c: New file.
18198         * tests/unictype/test-categ_test_withtable.c: New file.
18199         * tests/unictype/test-combining.c: New file.
18200         * tests/unictype/test-decdigit.c: New file.
18201         * tests/unictype/test-digit.c: New file.
18202         * tests/unictype/test-mirror.c: New file.
18203         * tests/unictype/test-numeric.c: New file.
18204         * tests/unictype/test-pr_byname.c: New file.
18205         * tests/unictype/test-pr_test.c: New file.
18206         * tests/unictype/test-predicate-part1.h: New file.
18207         * tests/unictype/test-predicate-part2.h: New file.
18208         * tests/unictype/test-scripts.c: New file.
18209         * tests/unictype/test-sy_c_ident.c: New file.
18210         * tests/unictype/test-sy_java_ident.c: New file.
18211
18212         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
18213         for Unicode 5.0.0.
18214         * tests/unictype/test-categ_Cc.c: Likewise.
18215         * tests/unictype/test-categ_Cf.c: Likewise.
18216         * tests/unictype/test-categ_Cn.c: Likewise.
18217         * tests/unictype/test-categ_Co.c: Likewise.
18218         * tests/unictype/test-categ_Cs.c: Likewise.
18219         * tests/unictype/test-categ_L.c: Likewise.
18220         * tests/unictype/test-categ_Ll.c: Likewise.
18221         * tests/unictype/test-categ_Lm.c: Likewise.
18222         * tests/unictype/test-categ_Lo.c: Likewise.
18223         * tests/unictype/test-categ_Lt.c: Likewise.
18224         * tests/unictype/test-categ_Lu.c: Likewise.
18225         * tests/unictype/test-categ_M.c: Likewise.
18226         * tests/unictype/test-categ_Mc.c: Likewise.
18227         * tests/unictype/test-categ_Me.c: Likewise.
18228         * tests/unictype/test-categ_Mn.c: Likewise.
18229         * tests/unictype/test-categ_N.c: Likewise.
18230         * tests/unictype/test-categ_Nd.c: Likewise.
18231         * tests/unictype/test-categ_Nl.c: Likewise.
18232         * tests/unictype/test-categ_No.c: Likewise.
18233         * tests/unictype/test-categ_P.c: Likewise.
18234         * tests/unictype/test-categ_Pc.c: Likewise.
18235         * tests/unictype/test-categ_Pd.c: Likewise.
18236         * tests/unictype/test-categ_Pe.c: Likewise.
18237         * tests/unictype/test-categ_Pf.c: Likewise.
18238         * tests/unictype/test-categ_Pi.c: Likewise.
18239         * tests/unictype/test-categ_Po.c: Likewise.
18240         * tests/unictype/test-categ_Ps.c: Likewise.
18241         * tests/unictype/test-categ_S.c: Likewise.
18242         * tests/unictype/test-categ_Sc.c: Likewise.
18243         * tests/unictype/test-categ_Sk.c: Likewise.
18244         * tests/unictype/test-categ_Sm.c: Likewise.
18245         * tests/unictype/test-categ_So.c: Likewise.
18246         * tests/unictype/test-categ_Z.c: Likewise.
18247         * tests/unictype/test-categ_Zl.c: Likewise.
18248         * tests/unictype/test-categ_Zp.c: Likewise.
18249         * tests/unictype/test-categ_Zs.c: Likewise.
18250         * tests/unictype/test-ctype_alnum.c: Likewise.
18251         * tests/unictype/test-ctype_alpha.c: Likewise.
18252         * tests/unictype/test-ctype_blank.c: Likewise.
18253         * tests/unictype/test-ctype_cntrl.c: Likewise.
18254         * tests/unictype/test-ctype_digit.c: Likewise.
18255         * tests/unictype/test-ctype_graph.c: Likewise.
18256         * tests/unictype/test-ctype_lower.c: Likewise.
18257         * tests/unictype/test-ctype_print.c: Likewise.
18258         * tests/unictype/test-ctype_punct.c: Likewise.
18259         * tests/unictype/test-ctype_space.c: Likewise.
18260         * tests/unictype/test-ctype_upper.c: Likewise.
18261         * tests/unictype/test-ctype_xdigit.c: Likewise.
18262         * tests/unictype/test-decdigit.h: Likewise.
18263         * tests/unictype/test-digit.h: Likewise.
18264         * tests/unictype/test-numeric.h: Likewise.
18265         * tests/unictype/test-pr_alphabetic.c: Likewise.
18266         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
18267         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
18268         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
18269         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
18270         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
18271         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
18272         * tests/unictype/test-pr_bidi_control.c: Likewise.
18273         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
18274         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
18275         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
18276         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
18277         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
18278         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
18279         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
18280         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
18281         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
18282         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
18283         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
18284         * tests/unictype/test-pr_combining.c: Likewise.
18285         * tests/unictype/test-pr_composite.c: Likewise.
18286         * tests/unictype/test-pr_currency_symbol.c: Likewise.
18287         * tests/unictype/test-pr_dash.c: Likewise.
18288         * tests/unictype/test-pr_decimal_digit.c: Likewise.
18289         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
18290         * tests/unictype/test-pr_deprecated.c: Likewise.
18291         * tests/unictype/test-pr_diacritic.c: Likewise.
18292         * tests/unictype/test-pr_extender.c: Likewise.
18293         * tests/unictype/test-pr_format_control.c: Likewise.
18294         * tests/unictype/test-pr_grapheme_base.c: Likewise.
18295         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
18296         * tests/unictype/test-pr_grapheme_link.c: Likewise.
18297         * tests/unictype/test-pr_hex_digit.c: Likewise.
18298         * tests/unictype/test-pr_hyphen.c: Likewise.
18299         * tests/unictype/test-pr_id_continue.c: Likewise.
18300         * tests/unictype/test-pr_id_start.c: Likewise.
18301         * tests/unictype/test-pr_ideographic.c: Likewise.
18302         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
18303         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
18304         * tests/unictype/test-pr_ignorable_control.c: Likewise.
18305         * tests/unictype/test-pr_iso_control.c: Likewise.
18306         * tests/unictype/test-pr_join_control.c: Likewise.
18307         * tests/unictype/test-pr_left_of_pair.c: Likewise.
18308         * tests/unictype/test-pr_line_separator.c: Likewise.
18309         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
18310         * tests/unictype/test-pr_lowercase.c: Likewise.
18311         * tests/unictype/test-pr_math.c: Likewise.
18312         * tests/unictype/test-pr_non_break.c: Likewise.
18313         * tests/unictype/test-pr_not_a_character.c: Likewise.
18314         * tests/unictype/test-pr_numeric.c: Likewise.
18315         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
18316         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
18317         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
18318         * tests/unictype/test-pr_other_id_continue.c: Likewise.
18319         * tests/unictype/test-pr_other_id_start.c: Likewise.
18320         * tests/unictype/test-pr_other_lowercase.c: Likewise.
18321         * tests/unictype/test-pr_other_math.c: Likewise.
18322         * tests/unictype/test-pr_other_uppercase.c: Likewise.
18323         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
18324         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
18325         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
18326         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
18327         * tests/unictype/test-pr_private_use.c: Likewise.
18328         * tests/unictype/test-pr_punctuation.c: Likewise.
18329         * tests/unictype/test-pr_quotation_mark.c: Likewise.
18330         * tests/unictype/test-pr_radical.c: Likewise.
18331         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
18332         * tests/unictype/test-pr_soft_dotted.c: Likewise.
18333         * tests/unictype/test-pr_space.c: Likewise.
18334         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
18335         * tests/unictype/test-pr_titlecase.c: Likewise.
18336         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
18337         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
18338         * tests/unictype/test-pr_uppercase.c: Likewise.
18339         * tests/unictype/test-pr_variation_selector.c: Likewise.
18340         * tests/unictype/test-pr_white_space.c: Likewise.
18341         * tests/unictype/test-pr_xid_continue.c: Likewise.
18342         * tests/unictype/test-pr_xid_start.c: Likewise.
18343         * tests/unictype/test-pr_zero_width.c: Likewise.
18344         * tests/unictype/test-sy_c_whitespace.c: Likewise.
18345         * tests/unictype/test-sy_java_whitespace.c: Likewise.
18346
18347 2007-11-12  Bruno Haible  <bruno@clisp.org>
18348
18349         Unicode character classification functions.
18350         * lib/unictype.h: New file.
18351         * modules/unictype/base: New file.
18352         * modules/unictype/category-L: New file.
18353         * modules/unictype/category-Lu: New file.
18354         * modules/unictype/category-Ll: New file.
18355         * modules/unictype/category-Lt: New file.
18356         * modules/unictype/category-Lm: New file.
18357         * modules/unictype/category-Lo: New file.
18358         * modules/unictype/category-M: New file.
18359         * modules/unictype/category-Mn: New file.
18360         * modules/unictype/category-Mc: New file.
18361         * modules/unictype/category-Me: New file.
18362         * modules/unictype/category-N: New file.
18363         * modules/unictype/category-Nd: New file.
18364         * modules/unictype/category-Nl: New file.
18365         * modules/unictype/category-No: New file.
18366         * modules/unictype/category-P: New file.
18367         * modules/unictype/category-Pc: New file.
18368         * modules/unictype/category-Pd: New file.
18369         * modules/unictype/category-Ps: New file.
18370         * modules/unictype/category-Pe: New file.
18371         * modules/unictype/category-Pi: New file.
18372         * modules/unictype/category-Pf: New file.
18373         * modules/unictype/category-Po: New file.
18374         * modules/unictype/category-S: New file.
18375         * modules/unictype/category-Sm: New file.
18376         * modules/unictype/category-Sc: New file.
18377         * modules/unictype/category-Sk: New file.
18378         * modules/unictype/category-So: New file.
18379         * modules/unictype/category-Z: New file.
18380         * modules/unictype/category-Zs: New file.
18381         * modules/unictype/category-Zl: New file.
18382         * modules/unictype/category-Zp: New file.
18383         * modules/unictype/category-C: New file.
18384         * modules/unictype/category-Cc: New file.
18385         * modules/unictype/category-Cf: New file.
18386         * modules/unictype/category-Cs: New file.
18387         * modules/unictype/category-Co: New file.
18388         * modules/unictype/category-Cn: New file.
18389         * modules/unictype/category-or: New file.
18390         * modules/unictype/category-of: New file.
18391         * modules/unictype/category-test: New file.
18392         * modules/unictype/category-test-withtable: New file.
18393         * modules/unictype/category-byname: New file.
18394         * modules/unictype/category-none: New file.
18395         * modules/unictype/category-and: New file.
18396         * modules/unictype/category-and-not: New file.
18397         * modules/unictype/category-name: New file.
18398         * modules/unictype/combining-class: New file.
18399         * modules/unictype/category-all: New file.
18400         * modules/unictype/bidicategory-all: New file.
18401         * modules/unictype/bidicategory-byname: New file.
18402         * modules/unictype/bidicategory-name: New file.
18403         * modules/unictype/bidicategory-of: New file.
18404         * modules/unictype/bidicategory-test: New file.
18405         * modules/unictype/decimal-digit: New file.
18406         * modules/unictype/digit: New file.
18407         * modules/unictype/numeric: New file.
18408         * modules/unictype/mirror: New file.
18409         * modules/unictype/property-white-space: New file.
18410         * modules/unictype/property-alphabetic: New file.
18411         * modules/unictype/property-other-alphabetic: New file.
18412         * modules/unictype/property-not-a-character: New file.
18413         * modules/unictype/property-default-ignorable-code-point: New file.
18414         * modules/unictype/property-other-default-ignorable-code-point: New
18415         file.
18416         * modules/unictype/property-deprecated: New file.
18417         * modules/unictype/property-logical-order-exception: New file.
18418         * modules/unictype/property-variation-selector: New file.
18419         * modules/unictype/property-private-use: New file.
18420         * modules/unictype/property-unassigned-code-value: New file.
18421         * modules/unictype/property-uppercase: New file.
18422         * modules/unictype/property-other-uppercase: New file.
18423         * modules/unictype/property-lowercase: New file.
18424         * modules/unictype/property-other-lowercase: New file.
18425         * modules/unictype/property-titlecase: New file.
18426         * modules/unictype/property-soft-dotted: New file.
18427         * modules/unictype/property-id-start: New file.
18428         * modules/unictype/property-other-id-start: New file.
18429         * modules/unictype/property-id-continue: New file.
18430         * modules/unictype/property-other-id-continue: New file.
18431         * modules/unictype/property-xid-start: New file.
18432         * modules/unictype/property-xid-continue: New file.
18433         * modules/unictype/property-pattern-white-space: New file.
18434         * modules/unictype/property-pattern-syntax: New file.
18435         * modules/unictype/property-join-control: New file.
18436         * modules/unictype/property-grapheme-base: New file.
18437         * modules/unictype/property-grapheme-extend: New file.
18438         * modules/unictype/property-other-grapheme-extend: New file.
18439         * modules/unictype/property-grapheme-link: New file.
18440         * modules/unictype/property-bidi-control: New file.
18441         * modules/unictype/property-bidi-left-to-right: New file.
18442         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
18443         * modules/unictype/property-bidi-arabic-right-to-left: New file.
18444         * modules/unictype/property-bidi-european-digit: New file.
18445         * modules/unictype/property-bidi-eur-num-separator: New file.
18446         * modules/unictype/property-bidi-eur-num-terminator: New file.
18447         * modules/unictype/property-bidi-arabic-digit: New file.
18448         * modules/unictype/property-bidi-common-separator: New file.
18449         * modules/unictype/property-bidi-block-separator: New file.
18450         * modules/unictype/property-bidi-segment-separator: New file.
18451         * modules/unictype/property-bidi-whitespace: New file.
18452         * modules/unictype/property-bidi-non-spacing-mark: New file.
18453         * modules/unictype/property-bidi-boundary-neutral: New file.
18454         * modules/unictype/property-bidi-pdf: New file.
18455         * modules/unictype/property-bidi-embedding-or-override: New file.
18456         * modules/unictype/property-bidi-other-neutral: New file.
18457         * modules/unictype/property-hex-digit: New file.
18458         * modules/unictype/property-ascii-hex-digit: New file.
18459         * modules/unictype/property-ideographic: New file.
18460         * modules/unictype/property-unified-ideograph: New file.
18461         * modules/unictype/property-radical: New file.
18462         * modules/unictype/property-ids-binary-operator: New file.
18463         * modules/unictype/property-ids-trinary-operator: New file.
18464         * modules/unictype/property-zero-width: New file.
18465         * modules/unictype/property-space: New file.
18466         * modules/unictype/property-non-break: New file.
18467         * modules/unictype/property-iso-control: New file.
18468         * modules/unictype/property-format-control: New file.
18469         * modules/unictype/property-dash: New file.
18470         * modules/unictype/property-hyphen: New file.
18471         * modules/unictype/property-punctuation: New file.
18472         * modules/unictype/property-line-separator: New file.
18473         * modules/unictype/property-paragraph-separator: New file.
18474         * modules/unictype/property-quotation-mark: New file.
18475         * modules/unictype/property-sentence-terminal: New file.
18476         * modules/unictype/property-terminal-punctuation: New file.
18477         * modules/unictype/property-currency-symbol: New file.
18478         * modules/unictype/property-math: New file.
18479         * modules/unictype/property-other-math: New file.
18480         * modules/unictype/property-paired-punctuation: New file.
18481         * modules/unictype/property-left-of-pair: New file.
18482         * modules/unictype/property-combining: New file.
18483         * modules/unictype/property-composite: New file.
18484         * modules/unictype/property-decimal-digit: New file.
18485         * modules/unictype/property-numeric: New file.
18486         * modules/unictype/property-diacritic: New file.
18487         * modules/unictype/property-extender: New file.
18488         * modules/unictype/property-ignorable-control: New file.
18489         * modules/unictype/property-test: New file.
18490         * modules/unictype/property-byname: New file.
18491         * modules/unictype/property-all: New file.
18492         * modules/unictype/scripts: New file.
18493         * modules/unictype/scripts-all: New file.
18494         * modules/unictype/block-of: New file.
18495         * modules/unictype/block-test: New file.
18496         * modules/unictype/block-list: New file.
18497         * modules/unictype/block-all: New file.
18498         * modules/unictype/syntax-c-whitespace: New file.
18499         * modules/unictype/syntax-java-whitespace: New file.
18500         * modules/unictype/syntax-c-ident: New file.
18501         * modules/unictype/syntax-java-ident: New file.
18502         * modules/unictype/ctype-alnum: New file.
18503         * modules/unictype/ctype-alpha: New file.
18504         * modules/unictype/ctype-cntrl: New file.
18505         * modules/unictype/ctype-digit: New file.
18506         * modules/unictype/ctype-graph: New file.
18507         * modules/unictype/ctype-lower: New file.
18508         * modules/unictype/ctype-print: New file.
18509         * modules/unictype/ctype-punct: New file.
18510         * modules/unictype/ctype-space: New file.
18511         * modules/unictype/ctype-upper: New file.
18512         * modules/unictype/ctype-xdigit: New file.
18513         * modules/unictype/ctype-blank: New file.
18514         * lib/unictype/bidi_byname.c: New file.
18515         * lib/unictype/bidi_name.c: New file.
18516         * lib/unictype/bidi_of.c: New file.
18517         * lib/unictype/bidi_test.c: New file.
18518         * lib/unictype/bitmap.h: New file.
18519         * lib/unictype/block_test.c: New file.
18520         * lib/unictype/blocks.c: New file.
18521         * lib/unictype/categ_C.c: New file.
18522         * lib/unictype/categ_Cc.c: New file.
18523         * lib/unictype/categ_Cf.c: New file.
18524         * lib/unictype/categ_Cn.c: New file.
18525         * lib/unictype/categ_Co.c: New file.
18526         * lib/unictype/categ_Cs.c: New file.
18527         * lib/unictype/categ_L.c: New file.
18528         * lib/unictype/categ_Ll.c: New file.
18529         * lib/unictype/categ_Lm.c: New file.
18530         * lib/unictype/categ_Lo.c: New file.
18531         * lib/unictype/categ_Lt.c: New file.
18532         * lib/unictype/categ_Lu.c: New file.
18533         * lib/unictype/categ_M.c: New file.
18534         * lib/unictype/categ_Mc.c: New file.
18535         * lib/unictype/categ_Me.c: New file.
18536         * lib/unictype/categ_Mn.c: New file.
18537         * lib/unictype/categ_N.c: New file.
18538         * lib/unictype/categ_Nd.c: New file.
18539         * lib/unictype/categ_Nl.c: New file.
18540         * lib/unictype/categ_No.c: New file.
18541         * lib/unictype/categ_P.c: New file.
18542         * lib/unictype/categ_Pc.c: New file.
18543         * lib/unictype/categ_Pd.c: New file.
18544         * lib/unictype/categ_Pe.c: New file.
18545         * lib/unictype/categ_Pf.c: New file.
18546         * lib/unictype/categ_Pi.c: New file.
18547         * lib/unictype/categ_Po.c: New file.
18548         * lib/unictype/categ_Ps.c: New file.
18549         * lib/unictype/categ_S.c: New file.
18550         * lib/unictype/categ_Sc.c: New file.
18551         * lib/unictype/categ_Sk.c: New file.
18552         * lib/unictype/categ_Sm.c: New file.
18553         * lib/unictype/categ_So.c: New file.
18554         * lib/unictype/categ_Z.c: New file.
18555         * lib/unictype/categ_Zl.c: New file.
18556         * lib/unictype/categ_Zp.c: New file.
18557         * lib/unictype/categ_Zs.c: New file.
18558         * lib/unictype/categ_and.c: New file.
18559         * lib/unictype/categ_and_not.c: New file.
18560         * lib/unictype/categ_byname.c: New file.
18561         * lib/unictype/categ_name.c: New file.
18562         * lib/unictype/categ_none.c: New file.
18563         * lib/unictype/categ_of.c: New file.
18564         * lib/unictype/categ_or.c: New file.
18565         * lib/unictype/categ_test.c: New file.
18566         * lib/unictype/combining.c: New file.
18567         * lib/unictype/ctype_alnum.c: New file.
18568         * lib/unictype/ctype_alpha.c: New file.
18569         * lib/unictype/ctype_blank.c: New file.
18570         * lib/unictype/ctype_cntrl.c: New file.
18571         * lib/unictype/ctype_digit.c: New file.
18572         * lib/unictype/ctype_graph.c: New file.
18573         * lib/unictype/ctype_lower.c: New file.
18574         * lib/unictype/ctype_print.c: New file.
18575         * lib/unictype/ctype_punct.c: New file.
18576         * lib/unictype/ctype_space.c: New file.
18577         * lib/unictype/ctype_upper.c: New file.
18578         * lib/unictype/ctype_xdigit.c: New file.
18579         * lib/unictype/decdigit.c: New file.
18580         * lib/unictype/digit.c: New file.
18581         * lib/unictype/identsyntaxmap.h: New file.
18582         * lib/unictype/mirror.c: New file.
18583         * lib/unictype/numeric.c: New file.
18584         * lib/unictype/pr_alphabetic.c: New file.
18585         * lib/unictype/pr_ascii_hex_digit.c: New file.
18586         * lib/unictype/pr_bidi_arabic_digit.c: New file.
18587         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
18588         * lib/unictype/pr_bidi_block_separator.c: New file.
18589         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
18590         * lib/unictype/pr_bidi_common_separator.c: New file.
18591         * lib/unictype/pr_bidi_control.c: New file.
18592         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
18593         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
18594         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
18595         * lib/unictype/pr_bidi_european_digit.c: New file.
18596         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
18597         * lib/unictype/pr_bidi_left_to_right.c: New file.
18598         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
18599         * lib/unictype/pr_bidi_other_neutral.c: New file.
18600         * lib/unictype/pr_bidi_pdf.c: New file.
18601         * lib/unictype/pr_bidi_segment_separator.c: New file.
18602         * lib/unictype/pr_bidi_whitespace.c: New file.
18603         * lib/unictype/pr_byname.c: New file.
18604         * lib/unictype/pr_byname.gperf: New file.
18605         * lib/unictype/pr_combining.c: New file.
18606         * lib/unictype/pr_composite.c: New file.
18607         * lib/unictype/pr_currency_symbol.c: New file.
18608         * lib/unictype/pr_dash.c: New file.
18609         * lib/unictype/pr_decimal_digit.c: New file.
18610         * lib/unictype/pr_default_ignorable_code_point.c: New file.
18611         * lib/unictype/pr_deprecated.c: New file.
18612         * lib/unictype/pr_diacritic.c: New file.
18613         * lib/unictype/pr_extender.c: New file.
18614         * lib/unictype/pr_format_control.c: New file.
18615         * lib/unictype/pr_grapheme_base.c: New file.
18616         * lib/unictype/pr_grapheme_extend.c: New file.
18617         * lib/unictype/pr_grapheme_link.c: New file.
18618         * lib/unictype/pr_hex_digit.c: New file.
18619         * lib/unictype/pr_hyphen.c: New file.
18620         * lib/unictype/pr_id_continue.c: New file.
18621         * lib/unictype/pr_id_start.c: New file.
18622         * lib/unictype/pr_ideographic.c: New file.
18623         * lib/unictype/pr_ids_binary_operator.c: New file.
18624         * lib/unictype/pr_ids_trinary_operator.c: New file.
18625         * lib/unictype/pr_ignorable_control.c: New file.
18626         * lib/unictype/pr_iso_control.c: New file.
18627         * lib/unictype/pr_join_control.c: New file.
18628         * lib/unictype/pr_left_of_pair.c: New file.
18629         * lib/unictype/pr_line_separator.c: New file.
18630         * lib/unictype/pr_logical_order_exception.c: New file.
18631         * lib/unictype/pr_lowercase.c: New file.
18632         * lib/unictype/pr_math.c: New file.
18633         * lib/unictype/pr_non_break.c: New file.
18634         * lib/unictype/pr_not_a_character.c: New file.
18635         * lib/unictype/pr_numeric.c: New file.
18636         * lib/unictype/pr_other_alphabetic.c: New file.
18637         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
18638         * lib/unictype/pr_other_grapheme_extend.c: New file.
18639         * lib/unictype/pr_other_id_continue.c: New file.
18640         * lib/unictype/pr_other_id_start.c: New file.
18641         * lib/unictype/pr_other_lowercase.c: New file.
18642         * lib/unictype/pr_other_math.c: New file.
18643         * lib/unictype/pr_other_uppercase.c: New file.
18644         * lib/unictype/pr_paired_punctuation.c: New file.
18645         * lib/unictype/pr_paragraph_separator.c: New file.
18646         * lib/unictype/pr_pattern_syntax.c: New file.
18647         * lib/unictype/pr_pattern_white_space.c: New file.
18648         * lib/unictype/pr_private_use.c: New file.
18649         * lib/unictype/pr_punctuation.c: New file.
18650         * lib/unictype/pr_quotation_mark.c: New file.
18651         * lib/unictype/pr_radical.c: New file.
18652         * lib/unictype/pr_sentence_terminal.c: New file.
18653         * lib/unictype/pr_soft_dotted.c: New file.
18654         * lib/unictype/pr_space.c: New file.
18655         * lib/unictype/pr_terminal_punctuation.c: New file.
18656         * lib/unictype/pr_test.c: New file.
18657         * lib/unictype/pr_titlecase.c: New file.
18658         * lib/unictype/pr_unassigned_code_value.c: New file.
18659         * lib/unictype/pr_unified_ideograph.c: New file.
18660         * lib/unictype/pr_uppercase.c: New file.
18661         * lib/unictype/pr_variation_selector.c: New file.
18662         * lib/unictype/pr_white_space.c: New file.
18663         * lib/unictype/pr_xid_continue.c: New file.
18664         * lib/unictype/pr_xid_start.c: New file.
18665         * lib/unictype/pr_zero_width.c: New file.
18666         * lib/unictype/scripts.c: New file.
18667         * lib/unictype/sy_c_ident.c: New file.
18668         * lib/unictype/sy_c_whitespace.c: New file.
18669         * lib/unictype/sy_java_ident.c: New file.
18670         * lib/unictype/sy_java_whitespace.c: New file.
18671
18672         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
18673         Unicode 5.0.0.
18674         * lib/unictype/blocks.h: Likewise.
18675         * lib/unictype/categ_C.h: Likewise.
18676         * lib/unictype/categ_Cc.h: Likewise.
18677         * lib/unictype/categ_Cf.h: Likewise.
18678         * lib/unictype/categ_Cn.h: Likewise.
18679         * lib/unictype/categ_Co.h: Likewise.
18680         * lib/unictype/categ_Cs.h: Likewise.
18681         * lib/unictype/categ_L.h: Likewise.
18682         * lib/unictype/categ_Ll.h: Likewise.
18683         * lib/unictype/categ_Lm.h: Likewise.
18684         * lib/unictype/categ_Lo.h: Likewise.
18685         * lib/unictype/categ_Lt.h: Likewise.
18686         * lib/unictype/categ_Lu.h: Likewise.
18687         * lib/unictype/categ_M.h: Likewise.
18688         * lib/unictype/categ_Mc.h: Likewise.
18689         * lib/unictype/categ_Me.h: Likewise.
18690         * lib/unictype/categ_Mn.h: Likewise.
18691         * lib/unictype/categ_N.h: Likewise.
18692         * lib/unictype/categ_Nd.h: Likewise.
18693         * lib/unictype/categ_Nl.h: Likewise.
18694         * lib/unictype/categ_No.h: Likewise.
18695         * lib/unictype/categ_P.h: Likewise.
18696         * lib/unictype/categ_Pc.h: Likewise.
18697         * lib/unictype/categ_Pd.h: Likewise.
18698         * lib/unictype/categ_Pe.h: Likewise.
18699         * lib/unictype/categ_Pf.h: Likewise.
18700         * lib/unictype/categ_Pi.h: Likewise.
18701         * lib/unictype/categ_Po.h: Likewise.
18702         * lib/unictype/categ_Ps.h: Likewise.
18703         * lib/unictype/categ_S.h: Likewise.
18704         * lib/unictype/categ_Sc.h: Likewise.
18705         * lib/unictype/categ_Sk.h: Likewise.
18706         * lib/unictype/categ_Sm.h: Likewise.
18707         * lib/unictype/categ_So.h: Likewise.
18708         * lib/unictype/categ_Z.h: Likewise.
18709         * lib/unictype/categ_Zl.h: Likewise.
18710         * lib/unictype/categ_Zp.h: Likewise.
18711         * lib/unictype/categ_Zs.h: Likewise.
18712         * lib/unictype/categ_of.h: Likewise.
18713         * lib/unictype/combining.h: Likewise.
18714         * lib/unictype/ctype_alnum.h: Likewise.
18715         * lib/unictype/ctype_alpha.h: Likewise.
18716         * lib/unictype/ctype_blank.h: Likewise.
18717         * lib/unictype/ctype_cntrl.h: Likewise.
18718         * lib/unictype/ctype_digit.h: Likewise.
18719         * lib/unictype/ctype_graph.h: Likewise.
18720         * lib/unictype/ctype_lower.h: Likewise.
18721         * lib/unictype/ctype_print.h: Likewise.
18722         * lib/unictype/ctype_punct.h: Likewise.
18723         * lib/unictype/ctype_space.h: Likewise.
18724         * lib/unictype/ctype_upper.h: Likewise.
18725         * lib/unictype/ctype_xdigit.h: Likewise.
18726         * lib/unictype/decdigit.h: Likewise.
18727         * lib/unictype/digit.h: Likewise.
18728         * lib/unictype/mirror.h: Likewise.
18729         * lib/unictype/numeric.h: Likewise.
18730         * lib/unictype/pr_alphabetic.h: Likewise.
18731         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18732         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18733         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
18734         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18735         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
18736         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18737         * lib/unictype/pr_bidi_control.h: Likewise.
18738         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18739         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18740         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
18741         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18742         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
18743         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
18744         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
18745         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
18746         * lib/unictype/pr_bidi_pdf.h: Likewise.
18747         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18748         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18749         * lib/unictype/pr_combining.h: Likewise.
18750         * lib/unictype/pr_composite.h: Likewise.
18751         * lib/unictype/pr_currency_symbol.h: Likewise.
18752         * lib/unictype/pr_dash.h: Likewise.
18753         * lib/unictype/pr_decimal_digit.h: Likewise.
18754         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18755         * lib/unictype/pr_deprecated.h: Likewise.
18756         * lib/unictype/pr_diacritic.h: Likewise.
18757         * lib/unictype/pr_extender.h: Likewise.
18758         * lib/unictype/pr_format_control.h: Likewise.
18759         * lib/unictype/pr_grapheme_base.h: Likewise.
18760         * lib/unictype/pr_grapheme_extend.h: Likewise.
18761         * lib/unictype/pr_grapheme_link.h: Likewise.
18762         * lib/unictype/pr_hex_digit.h: Likewise.
18763         * lib/unictype/pr_hyphen.h: Likewise.
18764         * lib/unictype/pr_id_continue.h: Likewise.
18765         * lib/unictype/pr_id_start.h: Likewise.
18766         * lib/unictype/pr_ideographic.h: Likewise.
18767         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18768         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18769         * lib/unictype/pr_ignorable_control.h: Likewise.
18770         * lib/unictype/pr_iso_control.h: Likewise.
18771         * lib/unictype/pr_join_control.h: Likewise.
18772         * lib/unictype/pr_left_of_pair.h: Likewise.
18773         * lib/unictype/pr_line_separator.h: Likewise.
18774         * lib/unictype/pr_logical_order_exception.h: Likewise.
18775         * lib/unictype/pr_lowercase.h: Likewise.
18776         * lib/unictype/pr_math.h: Likewise.
18777         * lib/unictype/pr_non_break.h: Likewise.
18778         * lib/unictype/pr_not_a_character.h: Likewise.
18779         * lib/unictype/pr_numeric.h: Likewise.
18780         * lib/unictype/pr_other_alphabetic.h: Likewise.
18781         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18782         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18783         * lib/unictype/pr_other_id_continue.h: Likewise.
18784         * lib/unictype/pr_other_id_start.h: Likewise.
18785         * lib/unictype/pr_other_lowercase.h: Likewise.
18786         * lib/unictype/pr_other_math.h: Likewise.
18787         * lib/unictype/pr_other_uppercase.h: Likewise.
18788         * lib/unictype/pr_paired_punctuation.h: Likewise.
18789         * lib/unictype/pr_paragraph_separator.h: Likewise.
18790         * lib/unictype/pr_pattern_syntax.h: Likewise.
18791         * lib/unictype/pr_pattern_white_space.h: Likewise.
18792         * lib/unictype/pr_private_use.h: Likewise.
18793         * lib/unictype/pr_punctuation.h: Likewise.
18794         * lib/unictype/pr_quotation_mark.h: Likewise.
18795         * lib/unictype/pr_radical.h: Likewise.
18796         * lib/unictype/pr_sentence_terminal.h: Likewise.
18797         * lib/unictype/pr_soft_dotted.h: Likewise.
18798         * lib/unictype/pr_space.h: Likewise.
18799         * lib/unictype/pr_terminal_punctuation.h: Likewise.
18800         * lib/unictype/pr_titlecase.h: Likewise.
18801         * lib/unictype/pr_unassigned_code_value.h: Likewise.
18802         * lib/unictype/pr_unified_ideograph.h: Likewise.
18803         * lib/unictype/pr_uppercase.h: Likewise.
18804         * lib/unictype/pr_variation_selector.h: Likewise.
18805         * lib/unictype/pr_white_space.h: Likewise.
18806         * lib/unictype/pr_xid_continue.h: Likewise.
18807         * lib/unictype/pr_xid_start.h: Likewise.
18808         * lib/unictype/pr_zero_width.h: Likewise.
18809         * lib/unictype/scripts.h: Likewise.
18810         * lib/unictype/scripts_byname.gperf: Likewise.
18811         * lib/unictype/sy_c_ident.h: Likewise.
18812         * lib/unictype/sy_c_whitespace.h: Likewise.
18813         * lib/unictype/sy_java_ident.h: Likewise.
18814         * lib/unictype/sy_java_whitespace.h: Likewise.
18815
18816         * lib/unictype/Makefile: New file.
18817         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
18818         glibc.
18819         * lib/unictype/3level.h: New file, copied from glibc.
18820         * lib/unictype/3levelbit.h: New file.
18821
18822 2007-11-11  Bruno Haible  <bruno@clisp.org>
18823
18824         * modules/gperf: New file.
18825         * modules/iconv_open (Depends-on): Add it.
18826         (Makefile.am): Remove the GPERF definition.
18827
18828 2007-11-11  Bruno Haible  <bruno@clisp.org>
18829
18830         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
18831         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
18832
18833 2007-11-11  Bruno Haible  <bruno@clisp.org>
18834
18835         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
18836         (usage): Remove function.
18837
18838 2007-11-11  Bruno Haible  <bruno@clisp.org>
18839
18840         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
18841         gl_FUNC_CEILF_LIBS.
18842         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
18843         gl_FUNC_CEIL_LIBS.
18844         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
18845         gl_FUNC_CEILL_LIBS.
18846         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
18847         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
18848         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
18849
18850 2007-11-11  Bruno Haible  <bruno@clisp.org>
18851
18852         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
18853         roundf were declared but do not exist on functions.
18854         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
18855         roundl were declared but do not exist on functions.
18856         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
18857         HAVE_FLOORL_AND_CEILL, respectively.
18858         Needed for Sun C on Solaris 10.
18859
18860 2007-11-11  Bruno Haible  <bruno@clisp.org>
18861
18862         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
18863         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
18864         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
18865         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
18866         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
18867         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
18868         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
18869         HAVE_DECL_ROUNDF.
18870         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
18871         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
18872         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
18873         of HAVE_DECL_ROUND*.
18874         * modules/math (Makefile.am): Update.
18875
18876 2007-11-10  Bruno Haible  <bruno@clisp.org>
18877
18878         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
18879         ptrdiff_t as m4/intl.m4.
18880
18881 2007-11-10  Jim Meyering  <meyering@redhat.com>
18882
18883         Avoid link failure for the argmatch test.
18884         * tests/test-argmatch.c (usage): Define function to avoid a link
18885         failure: argmatch_die requires a usage function.
18886
18887 2007-11-09  Bruno Haible  <bruno@clisp.org>
18888
18889         * doc/functions/snprintf.texi: Mention BeOS deficiency.
18890         * doc/functions/vsnprintf.texi: Likewise.
18891         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
18892         with a size argument < 2.
18893
18894 2007-11-09  Bruno Haible  <bruno@clisp.org>
18895
18896         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
18897         buffer. Fixes an inefficiency introduced on 2007-11-03.
18898
18899 2007-11-09  Bruno Haible  <bruno@clisp.org>
18900
18901         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
18902         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
18903
18904 2007-11-08  Jim Meyering  <meyering@redhat.com>
18905
18906         Change cache variable name prefix "jm_" to "gl_" everywhere.
18907         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
18908         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
18909         * m4/uptime.m4: s/gl_/jm_/
18910
18911 2007-11-07  Bruno Haible  <bruno@clisp.org>
18912
18913         Update to GNU gettext 0.17.
18914         * m4/intl.m4: Update to GNU gettext 0.17.
18915         * m4/po.m4: Likewise.
18916         * modules/gettext (Files): Remove m4/ulonglong.m4.
18917         (configure.ac): Require gettext infrastructure from version 0.17.
18918
18919 2007-11-06  Bruno Haible  <bruno@clisp.org>
18920
18921         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
18922         symbolic values are not defined in a public header.
18923         * lib/freadable.c (freadable) [QNX]: Likewise.
18924         * lib/freadahead.c (freadahead) [QNX]: Likewise.
18925         * lib/freading.c (freading) [QNX]: Likewise.
18926         * lib/fseterr.c (fseterr) [QNX]: Likewise.
18927         * lib/fwritable.c (fwritable) [QNX]: Likewise.
18928         * lib/fwriting.c (fwriting) [QNX]: Likewise.
18929         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
18930         Reported by Alain Magloire.
18931
18932         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
18933
18934 2007-11-05  Bruno Haible  <bruno@clisp.org>
18935
18936         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
18937         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
18938         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
18939         Reported by Eric Blake.
18940
18941 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18942             Bruno Haible  <bruno@clisp.org>
18943
18944         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
18945         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
18946         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
18947         (malloc): Undefine also before including <stdlib.h>.
18948         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
18949         Needed on OSF/1 4.0.
18950
18951 2007-11-05  Jim Meyering  <meyering@redhat.com>
18952
18953         git-version-gen: sync from coreutils.
18954         * build-aux/git-version-gen: Add comments.
18955         Change the first '-' to '.' in the snapshot version string,
18956         e.g., 6.9-377-08144 -> 6.9.377-08144
18957         Remove first parameter.
18958         Don't declare a version "-dirty" merely because a time
18959         stamp has changed.
18960
18961 2007-11-04  Bruno Haible  <bruno@clisp.org>
18962
18963         * lib/lock.h: Protect all macro definitions containing an 'if'
18964         statement through a "do { ... } while (0)".
18965         * lib/tls.h: Likewise.
18966
18967 2007-11-04  Bruno Haible  <bruno@clisp.org>
18968
18969         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
18970
18971 2007-11-04  Bruno Haible  <bruno@clisp.org>
18972
18973         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
18974         * modules/fprintf-posix (Depends-on): Add nocrash.
18975         * modules/snprintf-posix (Depends-on): Likewise.
18976         * modules/sprintf-posix (Depends-on): Likewise.
18977         * modules/vasnprintf-posix (Depends-on): Likewise.
18978         * modules/vasprintf-posix (Depends-on): Likewise.
18979         * modules/vfprintf-posix (Depends-on): Likewise.
18980         * modules/vsnprintf-posix (Depends-on): Likewise.
18981         * modules/vsprintf-posix (Depends-on): Likewise.
18982         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18983         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18984         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18985         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18986         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18987         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18988         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18989
18990 2007-11-04  Bruno Haible  <bruno@clisp.org>
18991
18992         * modules/nocrash: New file.
18993         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
18994         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
18995
18996 2007-11-04  Bruno Haible  <bruno@clisp.org>
18997
18998         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
18999         precision handling.
19000         * tests/test-vasprintf-posix.c (test_function): Likewise.
19001         * tests/test-snprintf-posix.h (test_function): Likewise.
19002         * tests/test-sprintf-posix.h (test_function): Likewise.
19003
19004         Fix *printf behaviour for large precisions on mingw and BeOS.
19005         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
19006         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
19007         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
19008         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
19009         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19010         gl_PRINTF_PRECISION and test its result. Invoke
19011         gl_PREREQ_VASNPRINTF_PRECISION.
19012         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19013         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19014         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19015         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19016         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19017         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19018         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19019         * doc/functions/fprintf.texi: Update.
19020         * doc/functions/printf.texi: Update.
19021         * doc/functions/snprintf.texi: Update.
19022         * doc/functions/sprintf.texi: Update.
19023         * doc/functions/vfprintf.texi: Update.
19024         * doc/functions/vprintf.texi: Update.
19025         * doc/functions/vsnprintf.texi: Update.
19026         * doc/functions/vsprintf.texi: Update.
19027
19028 2007-11-04  Bruno Haible  <bruno@clisp.org>
19029
19030         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
19031
19032 2007-11-04  Bruno Haible  <bruno@clisp.org>
19033
19034         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
19035         Reported by Sylvain Beucler <beuc@gnu.org>.
19036
19037 2007-11-03  Bruno Haible  <bruno@clisp.org>
19038
19039         * tests/test-fprintf-posix2.sh: New file.
19040         * tests/test-fprintf-posix2.c: New file.
19041         * modules/fprintf-posix-tests (Files): Add them.
19042         (TESTS): Add test-fprintf-posix2.sh.
19043         (configure.ac): Check for getrlimit and setrlimit.
19044         (check_PROGRAMS): Add test-fprintf-posix2.
19045
19046         * tests/test-printf-posix2.sh: New file.
19047         * tests/test-printf-posix2.c: New file.
19048         * modules/printf-posix-tests (Files): Add them.
19049         (TESTS): Add test-printf-posix2.sh.
19050         (configure.ac): Check for getrlimit and setrlimit.
19051         (check_PROGRAMS): Add test-printf-posix2.
19052
19053         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
19054         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
19055         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
19056         (decode_double): New function, copied from decode_long_double.
19057         (scale10_round_decimal_decoded): New function, extracted from
19058         scale10_round_decimal_long_double.
19059         (scale10_round_decimal_long_double): Use it.
19060         (scale10_round_decimal_double): New function.
19061         (floorlog10): New function.
19062         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
19063         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
19064         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
19065         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19066         gl_PRINTF_ENOMEM and test its result. Invoke
19067         gl_PREREQ_VASNPRINTF_ENOMEM.
19068         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19069         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19070         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19071         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19072         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19073         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19074         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19075         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
19076         * modules/snprintf-posix (Depends-on): Likewise.
19077         * modules/sprintf-posix (Depends-on): Likewise.
19078         * modules/vasnprintf-posix (Depends-on): Likewise.
19079         * modules/vasprintf-posix (Depends-on): Likewise.
19080         * modules/vfprintf-posix (Depends-on): Likewise.
19081         * modules/vsnprintf-posix (Depends-on): Likewise.
19082         * modules/vsprintf-posix (Depends-on): Likewise.
19083         * doc/functions/fprintf.texi: Update.
19084         * doc/functions/printf.texi: Update.
19085         * doc/functions/snprintf.texi: Update.
19086         * doc/functions/sprintf.texi: Update.
19087         * doc/functions/vfprintf.texi: Update.
19088         * doc/functions/vprintf.texi: Update.
19089         * doc/functions/vsnprintf.texi: Update.
19090         * doc/functions/vsprintf.texi: Update.
19091
19092 2007-11-03  Bruno Haible  <bruno@clisp.org>
19093
19094         * modules/frexp-nolibm-tests: New file.
19095
19096         * modules/frexp-nolibm: New file.
19097         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
19098
19099 2007-11-03  Bruno Haible  <bruno@clisp.org>
19100
19101         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
19102         value is C99 compliant.
19103         Needed for OSF/1 5.1.
19104
19105 2007-11-03  Bruno Haible  <bruno@clisp.org>
19106
19107         Fix out-of-memory handling of vasnprintf.
19108         * lib/printf-parse.c: Include <errno.h>.
19109         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
19110         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
19111         is already set.
19112
19113 2007-11-02  Eric Blake  <ebb9@byu.net>
19114
19115         Fix tests on cygwin.
19116         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
19117
19118 2007-11-01  Bruno Haible  <bruno@clisp.org>
19119
19120         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
19121         warning.
19122         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
19123         needed for POSIX compatibility.
19124
19125 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
19126
19127         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
19128         for compatibility with GNU.
19129
19130 2007-11-01  Bruno Haible  <bruno@clisp.org>
19131
19132         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
19133         (putenv): Renamed from rpl_putenv. Change argument type from
19134         'const char *' to 'char *'.
19135         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
19136         of defining putenv in config.h, just set REPLACE_PUTENV.
19137         * modules/putenv (Depends-on): Add stdlib.
19138         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19139         (Include): Use <stdlib.h>.
19140         * lib/stdlib.in.h (putenv): New declaration.
19141         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
19142         REPLACE_PUTENV.
19143         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
19144         REPLACE_PUTENV.
19145         Needed for MacOS X 10.5.0.
19146         Reported by Peter O'Gorman <peter@pogma.com>.
19147
19148 2007-11-01  Jim Meyering  <meyering@redhat.com>
19149
19150         Treat an empty date string exactly like "0".
19151         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
19152         if the remaining date string (to be parsed) is empty, use "0".
19153         Reported by Mischa Molhoek and discussed in this thread:
19154         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
19155
19156 2007-10-31  Bruno Haible  <bruno@clisp.org>
19157
19158         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
19159         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
19160         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
19161         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
19162         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
19163         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
19164
19165 2007-10-31  Bruno Haible  <bruno@clisp.org>
19166
19167         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
19168         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
19169         (AC_TYPE_LONG_LONG_INT): Use it.
19170         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
19171         it as well.
19172         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
19173         to m4/longlong.m4.
19174         * modules/stdint (Files): Remove m4/ulonglong.m4.
19175         * modules/strtoull (Files): Use m4/longlong.m4 instead of
19176         m4/ulonglong.m4.
19177         * modules/strtoumax (Files): Likewise.
19178
19179 2007-10-30  Bruno Haible  <bruno@clisp.org>
19180
19181         * modules/xvasprintf-posix: New file.
19182         Suggested by Eric Blake.
19183
19184 2007-10-30  Bruno Haible  <bruno@clisp.org>
19185
19186         * modules/xprintf-posix-tests: New file.
19187         * tests/test-xprintf-posix.sh: New file.
19188         * tests/test-xprintf-posix.c: New file.
19189         * tests/test-xfprintf-posix.c: New file.
19190
19191         * modules/xprintf-posix: New file.
19192
19193 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19194
19195         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
19196         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
19197         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
19198
19199 2007-10-29  Bruno Haible  <bruno@clisp.org>
19200
19201         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
19202         contain the special marker '_cv_'.
19203         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
19204         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
19205         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
19206         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
19207         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
19208         Reported by Ralf Wildenhues.
19209
19210 2007-10-29  Bruno Haible  <bruno@clisp.org>
19211
19212         * gnulib-tool (func_import): When --lgpl is not specified, set
19213         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
19214         GPLv3.
19215         Reported by Simon Josefsson.
19216
19217 2007-10-28  Bruno Haible  <bruno@clisp.org>
19218
19219         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
19220         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
19221         HAVE_DECL_ISFINITE.
19222         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
19223         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
19224         HAVE_DECL_ISFINITE.
19225
19226 2007-10-28  Bruno Haible  <bruno@clisp.org>
19227
19228         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
19229         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
19230
19231 2007-10-28  Bruno Haible  <bruno@clisp.org>
19232
19233         Fix link errors with Sun C 5.0 on Solaris 10.
19234         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
19235         function is declared but not present in the compiler's libm.
19236         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
19237         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
19238         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
19239         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
19240         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
19241         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
19242         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
19243         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
19244         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
19245         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
19246         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
19247         HAVE_DECL_FLOORL.
19248
19249 2007-10-28  Bruno Haible  <bruno@clisp.org>
19250
19251         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
19252         gl_FUNC_FLOORL. Cache the result.
19253         (gl_FUNC_FLOORL): Use it.
19254         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
19255         gl_FUNC_CEILL. Cache the result.
19256         (gl_FUNC_CEILL): Use it.
19257
19258         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
19259         gl_FUNC_FLOOR. Cache the result.
19260         (gl_FUNC_FLOOR): Use it.
19261         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
19262         gl_FUNC_CEIL. Cache the result.
19263         (gl_FUNC_CEIL): Use it.
19264
19265         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
19266         gl_FUNC_FLOORF. Cache the result.
19267         (gl_FUNC_FLOORF): Use it.
19268         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
19269         gl_FUNC_CEILF. Cache the result.
19270         (gl_FUNC_CEILF): Use it.
19271
19272 2007-10-28  Bruno Haible  <bruno@clisp.org>
19273
19274         * gnulib-tool: Allow specifying the LGPL version number through
19275         --lgpl=2 or --lgpl=3.
19276         (func_usage): Document --lgpl with argument.
19277         Handle --lgpl=... arguments.
19278         (func_import): Recognize also gl_LGPL calls with an argument. When
19279         --lgpl=2 is used and the module's license is just LGPL, report an
19280         error. Set sed_transform_lib_file according to the lgpl variable. In
19281         the generated files, use --lgpl or gl_LGPL invocations with argument,
19282         if necessary.
19283         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
19284         an LGPv2+ license.
19285         * doc/gnulib-tool.texi (Modified imports): Update explanation of
19286         gl_LGPL macro.
19287
19288 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19289             Bruno Haible  <bruno@clisp.org>
19290
19291         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
19292         (u16_uctomb_aux): Likewise.
19293         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
19294         !HAVE_INLINE.
19295         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
19296
19297 2007-10-28  Bruno Haible  <bruno@clisp.org>
19298
19299         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
19300         Invoke AM_GETTEXT_OPTION if it exists.
19301         * modules/vasprintf: Likewise.
19302         * modules/verror: Likewise.
19303         * modules/xprintf: Likewise.
19304         * modules/xvasprintf: Likewise.
19305
19306 2007-10-27  Ben Pfaff  <blp@gnu.org>
19307
19308         * lib/math.in.h: Define isfinite macro and prototypes for
19309         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
19310         implementations.
19311         * m4/math_h.m4: New substitutions for isfinite module.
19312         * lib/isfinite.c: New file.
19313         * m4/isfinite.m4: New file.
19314         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
19315         * modules/isfinite: New file.
19316         * modules/isfinite-tests: New file.
19317         * tests/tests-isfinite.c: New file.
19318         * doc/functions/isfinite.texi: Mention isfinite module.
19319         * MODULES.html.sh: Mention new module.
19320
19321 2007-10-27  Ben Pfaff  <blp@gnu.org>
19322
19323         Ralf Wildenhues reported that Tru64 4.0D declares the round
19324         functions but does not have definitions.
19325         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
19326         cannot be found in any library, set the output variable to
19327         "missing" instead of "".
19328         * m4/round.m4: Also use our substitute if we cannot find round in
19329         any library, even if it is declared.
19330         * m4/roundf.m4: Likewise for roundf.
19331         * m4/roundl.m4: Likewise for roundl.
19332         * lib/math.in.h: Undefine roundf, round, roundl before defining
19333         their replacements, to allow for hypothetical systems where these
19334         may be defined as macros but not available in libraries.
19335
19336 2007-10-27  Bruno Haible  <bruno@clisp.org>
19337
19338         * doc/gnulib.texi: Invoke @firstparagraphindent.
19339         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
19340         changes in gnulib.
19341         (Source changes): New section.
19342
19343 2007-10-26  Bruno Haible  <bruno@clisp.org>
19344
19345         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
19346         borrowed from autoconf.
19347
19348 2007-10-26  Bruno Haible  <bruno@clisp.org>
19349
19350         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
19351         strerror returned the empty string. Needed on HP-UX 11.00.
19352
19353 2007-10-24  Micah Cowan  <micah@cowan.name>
19354
19355         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
19356         * build-aux/bootstrap: Remove support for now-unnecessary option,
19357         --cvs-user, and envvars CVS_USER, CVS_RSH.
19358
19359 2007-10-24  Jim Meyering  <meyering@redhat.com>
19360
19361         Avoid diagnostics from sha1sum when there is no cached checksum.
19362         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
19363         if the po.s1 file hasn't been created yet.
19364
19365         * build-aux/bootstrap: Sync from coreutils:
19366         2007-10-24  Jim Meyering  <meyering@redhat.com>
19367         Get gnulib from the git repository, not from an obsolete cvs one.
19368         * build-aux/bootstrap: Suggestion from Micah Cowan.
19369         2007-10-04  Jim Meyering  <jim@meyering.net>
19370         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
19371         (update_po_files): Work also when there are no .po files in po/.
19372
19373 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19374
19375         * README: Append ".git" to git and cg examples.
19376         Problem reported by Benoit Sigoure.
19377
19378 2007-10-23  Micah Cowan  <micah@cowan.name>
19379
19380         * users.txt: Add wget.
19381
19382 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19383
19384         Fix linking of some unistdio tests on FreeBSD.
19385         * modules/unistdio/u16-vsnprintf-tests
19386         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
19387         * modules/unistdio/u16-vsprintf-tests
19388         (test_u16_vsnprintf1_LDADD): Likewise.
19389         * modules/unistdio/u32-vsnprintf-tests
19390         (test_u32_vsnprintf1_LDADD): Likewise.
19391         * modules/unistdio/u32-vsprintf-tests
19392         (test_u32_vsprintf1_LDADD): Likewise.
19393         * modules/unistdio/u8-vsnprintf-tests
19394         (test_u8_vsnprintf1_LDADD): Likewise.
19395         * modules/unistdio/u8-vsprintf-tests
19396         (test_u8_vsprintf1_LDADD): Likewise.
19397         * modules/unistdio/ulc-vsnprintf-tests
19398         (test_ulc_vsnprintf1_LDADD): Likewise.
19399         * modules/unistdio/ulc-vsprintf-tests
19400         (test_ulc_vsprintf1_LDADD): Likewise.
19401
19402         Fix linking of some uniconv tests on FreeBSD.
19403         * modules/uniconv/u16-conv-from-enc-tests
19404         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
19405         * modules/uniconv/u16-conv-to-enc-tests
19406         (test_u16_conv_to_enc_LDADD): Likewise.
19407         * modules/uniconv/u16-strconv-from-enc-tests
19408         (test_u16_strconv_from_enc_LDADD): Likewise.
19409         * modules/uniconv/u16-strconv-to-enc-tests
19410         (test_u16_strconv_to_enc_LDADD): Likewise.
19411         * modules/uniconv/u32-conv-from-enc-tests
19412         (test_u32_conv_from_enc_LDADD): Likewise.
19413         * modules/uniconv/u32-conv-to-enc-tests
19414         (test_u32_conv_to_enc_LDADD): Likewise.
19415         * modules/uniconv/u32-strconv-from-enc-tests
19416         (test_u32_strconv_from_enc_LDADD): Likewise.
19417         * modules/uniconv/u32-strconv-to-enc-tests
19418         (test_u32_strconv_to_enc_LDADD): Likewise.
19419         * modules/uniconv/u8-conv-from-enc-tests
19420         (test_u8_conv_from_enc_LDADD): Likewise.
19421         * modules/uniconv/u8-conv-to-enc-tests
19422         (test_u8_conv_to_enc_LDADD): Likewise.
19423         * modules/uniconv/u8-strconv-from-enc-tests
19424         (test_u8_strconv_from_enc_LDADD): Likewise.
19425         * modules/uniconv/u8-strconv-to-enc-tests
19426         (test_u8_strconv_to_enc_LDADD): Likewise.
19427
19428 2007-10-22  Bruno Haible  <bruno@clisp.org>
19429
19430         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
19431         size.
19432
19433 2007-10-22  Eric Blake  <ebb9@byu.net>
19434
19435         Tweak x*printf documentation.
19436         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
19437         variable name and comments.
19438         Suggested by Bruno Haible.
19439
19440 2007-10-22  Bruno Haible  <bruno@clisp.org>
19441
19442         * lib/acl.c (copy_acl): Fix file name in comment.
19443
19444 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
19445
19446         Fix Tru64 problem with stdbool.h.
19447         * lib/stdbool.in.h (false, true):
19448         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
19449         Don't declare as an enum in this situation; it runs afoul of Tru64.
19450         Problem reported by Steven M. Schweda in
19451         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
19452
19453 2007-10-22  Eric Blake  <ebb9@byu.net>
19454
19455         Also wrap vf?printf.
19456         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
19457         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
19458         (xvprintf, xvfprintf): New functions.
19459
19460 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19461
19462         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
19463         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
19464
19465         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
19466         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
19467
19468 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
19469
19470         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
19471         by Bruno Haible.
19472
19473 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19474
19475         * lib/getloadavg.c
19476         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
19477         Undef `sys' after including sys/table.h, for Tru64 4.0D.
19478
19479         * tests/test-i-ring.c: Work for C89.
19480
19481 2007-10-22  Bruno Haible  <bruno@clisp.org>
19482
19483         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
19484         -1u, in preprocessor expression, so that we don't test for the bug
19485         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
19486         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
19487
19488 2007-10-22  Eric Blake  <ebb9@byu.net>
19489
19490         * tests/test-yesno.sh: Silence stderr during test.
19491
19492 2007-10-22  Simon Josefsson  <simon@josefsson.org>
19493
19494         * modules/crypto/gc-camellia: New file.
19495
19496         * m4/gc-camellia.m4: New file.
19497
19498         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
19499
19500         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
19501
19502 2007-10-22  Simon Josefsson  <simon@josefsson.org>
19503
19504         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
19505         --help to stdout.  Reported by sms@antinode.org (Steven
19506         M. Schweda).
19507
19508 2007-10-22  Simon Josefsson  <simon@josefsson.org>
19509
19510         * users.txt: Fix link to libksba.
19511
19512 2007-10-21  Ben Pfaff  <blp@gnu.org>
19513
19514         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
19515         round.c roundf implementation that depends on floorf and ceilf to
19516         be tested unconditionally.
19517
19518 2007-10-21  Ben Pfaff  <blp@gnu.org>
19519
19520         * m4/check-libm-func.m4: Removed.
19521         * m4/check-math-lib.m4: New file.
19522         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
19523         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
19524         definition and lack of AC_LIBOBJ([roundf]).
19525         * m4/roundl.m4: Ditto, and similarly for roundl.
19526         * modules/round: Reference new m4 file.
19527         * modules/roundf: Ditto.
19528         * modules/roundl: Ditto.
19529         * tests/test-round2.c (main): Use ROUND instead of round.
19530         Bug report from Bruno Haible.
19531
19532 2007-10-21  Bruno Haible  <bruno@clisp.org>
19533
19534         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
19535         context.
19536
19537 2007-10-21  Bruno Haible  <bruno@clisp.org>
19538
19539         * tests/test-wcwidth.c (main): Allow negative result for some control
19540         characters.
19541
19542         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
19543         Needed on OSF/1 5.1.
19544
19545 2007-10-21  Bruno Haible  <bruno@clisp.org>
19546
19547         * tests/test-floorf1.c: Include isnanf.h.
19548         (main): Use isnanf() instead of isnan().
19549         * tests/test-ceilf1.c: Include isnanf.h.
19550         (main): Use isnanf() instead of isnan().
19551         * tests/test-truncf1.c: Include isnanf.h.
19552         (main): Use isnanf() instead of isnan().
19553         * tests/test-roundf1.c: Include isnanf.h.
19554         (main): Use isnanf() instead of isnan().
19555
19556 2007-10-21  Eric Blake  <ebb9@byu.net>
19557
19558         * users.txt: Update URL for m4.
19559
19560 2007-10-21  Bruno Haible  <bruno@clisp.org>
19561
19562         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
19563
19564 2007-10-21  Bruno Haible  <bruno@clisp.org>
19565
19566         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
19567         Git's management files if the CVS files are not present.
19568
19569 2007-10-20  Bruno Haible  <bruno@clisp.org>
19570
19571         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
19572         gcc-3.4.x.
19573
19574 2007-10-20  Ben Pfaff  <blp@gnu.org>
19575
19576         * lib/math.in.h: Declare round, roundf, roundl if we are providing
19577         implementations.
19578         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
19579         * lib/round.c: New file.
19580         * lib/roundf.c: New file.
19581         * lib/roundl.c: New file.
19582         * m4/round.m4: New file.
19583         * m4/roundf.m4: New file.
19584         * m4/roundl.m4: New file.
19585         * m4/check-libm-func-m4: New file.
19586         * modules/math: Replace round, roundf, roundl related @VARS@ in
19587         math.in.h.
19588         * modules/round: New file.
19589         * modules/round-tests: New file.
19590         * modules/roundf: New file.
19591         * modules/roundf-tests: New file.
19592         * modules/roundl: New file.
19593         * modules/roundl-tests: New file.
19594         * tests/test-round1.c: New file.
19595         * tests/test-round2.c: New file.
19596         * tests/test-roundf1.c: New file.
19597         * tests/test-roundf2.c: New file.
19598         * tests/test-roundl.c: New file.
19599         * doc/functions/round.texi: Mention round module.
19600         * doc/functions/roundf.texi: Mention roundf module.
19601         * doc/functions/roundl.texi: Mention roundl module.
19602         * MODULES.html.sh: Mention new modules.
19603         Thanks to Bruno Haible for suggestions.
19604
19605 2007-10-20  Jim Meyering  <meyering@redhat.com>
19606
19607         * lib/xprintf.c: Include <config.h> unconditionally.
19608
19609         Change xprintf's license to GPL.
19610         * modules/xprintf (License): s/LGPL/GPL/, since this module
19611         depends on modules (exit and exitfail) which are GPL.
19612         Suggestion from Bruno Haible.
19613
19614         xprintf fixes.
19615         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
19616         Use a clearer diagnostic.
19617         Patch from Bruno Haible.
19618
19619 2007-10-20  Bruno Haible  <bruno@clisp.org>
19620
19621         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
19622         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
19623         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19624
19625 2007-10-20  Bruno Haible  <bruno@clisp.org>
19626
19627         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
19628         precision in the comparison result > x - 1 or similar.
19629         * tests/test-ceilf2.c (correct_result_p): Likewise.
19630         * tests/test-truncf2.c (correct_result_p): Likewise.
19631         * tests/test-trunc2.c (correct_result_p): Likewise.
19632         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19633
19634 2007-10-20  Bruno Haible  <bruno@clisp.org>
19635
19636         * modules/ceil: New file.
19637         * m4/ceil.m4: New file.
19638         * doc/functions/ceil.texi: Mention the 'ceil' module.
19639
19640 2007-10-20  Bruno Haible  <bruno@clisp.org>
19641
19642         * modules/floor: New file.
19643         * m4/floor.m4: New file.
19644         * doc/functions/floor.texi: Mention the 'floor' module.
19645
19646 2007-10-20  Bruno Haible  <bruno@clisp.org>
19647
19648         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
19649         of %a.
19650         * modules/floorf-tests (Depends-on): Likewise.
19651         * modules/truncf-tests (Depends-on): Likewise.
19652         * modules/trunc-tests (Depends-on): Likewise.
19653         Reported by Ben Pfaff.
19654
19655 2007-10-19  Jim Meyering  <meyering@redhat.com>
19656
19657         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
19658         Don't bother testing specific errno values.  Just test ferror.
19659
19660         New module: xprintf
19661         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
19662
19663 2007-10-19  Bruno Haible  <bruno@clisp.org>
19664
19665         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
19666         syntax.
19667         * modules/javaexec (Makefile.am): Likewise.
19668         * modules/relocatable-prog (Makefile.am): Likewise.
19669         Suggested by Jim Meyering.
19670
19671 2007-10-18  Bruno Haible  <bruno@clisp.org>
19672
19673         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
19674         Reported by Jim Meyering.
19675
19676 2007-10-18  Eric Blake  <ebb9@byu.net>
19677
19678         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
19679
19680 2007-10-18  Bruno Haible  <bruno@clisp.org>
19681
19682         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
19683         the format string into writable memory. Needed in Fortify conditions.
19684
19685 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
19686             Bruno Haible  <bruno@clisp.org>
19687
19688         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
19689         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
19690         * modules/trim (Depends-on): Add mbchar.
19691         (configure.ac): Add gl_FUNC_MBRTOWC.
19692         (Makefile.am): Augment lib_SOURCES.
19693
19694 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
19695
19696         Modify glob.c to use fstatat and dirfd, to simplify it.
19697         Suggested by Eric Blake.
19698         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
19699         Don't include <stdbool.h>; not used.
19700         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
19701         (link_exists_p): Simplify implementation, since we can now assume
19702         dirfd and fstatat.
19703         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
19704
19705 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19706
19707         * gnulib-tool (func_get_dependencies): Fix sed script to
19708         match only tests.
19709
19710 2007-10-17  Bruno Haible  <bruno@clisp.org>
19711
19712         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
19713         allow locale names without encoding suffix.
19714         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19715         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19716
19717 2007-10-16  Bruno Haible  <bruno@clisp.org>
19718
19719         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
19720         * lib/getgroups.c (getgroups): Likewise.
19721         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
19722
19723 2007-10-16  Bruno Haible  <bruno@clisp.org>
19724
19725         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
19726         * modules/malloc-posix (License): Likewise.
19727         * modules/realloc-posix (License): Likewise.
19728         * modules/calloc-posix (License): Likewise.
19729         * modules/intprops (License): Change from GPL to LGPL, with
19730         Paul Eggert's approval.
19731
19732 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
19733
19734         Merge glibc changes into lib/glob.c.
19735
19736         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
19737         2007-10-15 04:59:03 UTC.  Here are the changes:
19738
19739         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
19740
19741         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
19742
19743         * lib/glob.c: Add some branch prediction throughout.
19744
19745         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
19746
19747         [BZ #5103]
19748         * lib/glob.c (glob): Recognize patterns starting \/.
19749
19750         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
19751
19752         [BZ #3996]
19753         * lib/glob.c (attribute_hidden): Define if not defined.
19754         (glob): Unescape dirname, filename or username when needed and not
19755         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
19756         is NULL.  Handle unescaped [ in pattern without closing ].
19757         Don't pass GLOB_CHECK down to recursive glob for directories.
19758         (__glob_pattern_type): New function.
19759         (__glob_pattern_p): Implement using __glob_pattern_type.
19760         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
19761         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
19762         Remove unreachable code.
19763
19764         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
19765
19766         * lib/glob.c (glob_in_dir): Add some comments and asserts to
19767         explain why there are no leaks.
19768
19769         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
19770
19771         [BZ #3253]
19772         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
19773         time, rather allocate increasingly bigger arrays of pointers, if
19774         possible with alloca, if too large with malloc.
19775
19776 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
19777
19778         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
19779         Problem reported by H.Merijn Brand in
19780         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
19781         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
19782         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
19783
19784 2007-10-15  Bruno Haible  <bruno@clisp.org>
19785
19786         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
19787         with explicit rpl_ prefix.
19788         * lib/fopen.c (fopen): Likewise.
19789         * lib/freopen.c (freopen): Likewise.
19790         * lib/iconv.c (iconv): Likewise.
19791         * lib/iconv_close.c (iconv_close): Likewise.
19792
19793 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19794
19795         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
19796
19797 2007-10-15  Bruno Haible  <bruno@clisp.org>
19798
19799         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
19800         <stddef.h> instead of <stdlib.h> since we only need NULL.
19801         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19802
19803 2007-10-15  Bruno Haible  <bruno@clisp.org>
19804
19805         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
19806         Replace paragraph talking about LIBOBJS.
19807         Reported by Colin Watson <cjwatson@debian.org>.
19808
19809 2007-10-15  Bruno Haible  <bruno@clisp.org>
19810
19811         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
19812         <stdlib.h> before using NULL.
19813
19814 2007-10-15  Simon Josefsson  <simon@josefsson.org>
19815
19816         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
19817         Reported by Albert Chin <china@thewrittenword.com>.
19818
19819 2007-10-14  Bruno Haible  <bruno@clisp.org>
19820
19821         * modules/iconv_open-utf-tests: New file.
19822         * tests/test-iconv-utf.c: New file.
19823
19824         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
19825         * modules/iconv_open-utf: New file.
19826         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
19827         (iconv, iconv_close): New declarations.
19828         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
19829         be defined.
19830         (iconv_open): Add special handling of conversion between UTF-8 and
19831         UTF-{16,32}{BE,LE}.
19832         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
19833         * lib/iconv_close.c: New file.
19834         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
19835         gl_FUNC_ICONV_OPEN.
19836         (gl_FUNC_ICONV_OPEN): Use it.
19837         (gl_FUNC_ICONV_OPEN_UTF): New macro.
19838         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
19839         and REPLACE_ICONV_UTF.
19840         * modules/iconv_open (Depends-on): Add c-strcase.
19841         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
19842         ICONV_CONST.
19843         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
19844
19845 2007-10-13  Albert Chin  <china@thewrittenword.com>
19846             Bruno Haible  <bruno@clisp.org>
19847
19848         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
19849         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
19850
19851 2007-10-13  Bruno Haible  <bruno@clisp.org>
19852
19853         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
19854         defined, use the ISO C99 inline semantics.
19855         * lib/argp.h (ARGP_EI): Likewise.
19856
19857 2007-10-13  Bruno Haible  <bruno@clisp.org>
19858
19859         Handle 'inline' change in gcc 4.3.0.
19860         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
19861         argp_fmtstream_write, argp_fmtstream_set_lmargin,
19862         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
19863         argp_fmtstream_point): Disable 'extern' declaration if the function
19864         definition is going to be provided inline.
19865         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
19866         semantics, not the ISO C99 inline semantics.
19867         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
19868         'extern' declaration if the function definition is going to be provided
19869         inline.
19870         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
19871         the GNU C inline semantics, not the ISO C99 inline semantics. With
19872         GCC 4.2, avoid a warning.
19873
19874 2007-10-13  Bruno Haible  <bruno@clisp.org>
19875
19876         * lib/freading.h (freading): Enable the use of __freading for
19877         glibc >= 2.7.
19878         * lib/freading.c (freading): Likewise.
19879
19880 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
19881
19882         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
19883         "warning: C99 inline functions are not supported; using GNU89".
19884
19885 2007-10-12  Bruno Haible  <bruno@clisp.org>
19886
19887         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
19888         of 2.
19889         * tests/test-ceilf2.c: New file.
19890         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
19891
19892         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
19893         * modules/ceilf-tests: Update.
19894
19895 2007-10-12  Bruno Haible  <bruno@clisp.org>
19896
19897         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
19898         of 2.
19899         * tests/test-floorf2.c: New file.
19900         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
19901
19902         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
19903         * modules/floorf-tests: Update.
19904
19905 2007-10-12  Bruno Haible  <bruno@clisp.org>
19906
19907         * tests/test-trunc2.c: New file.
19908         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
19909
19910         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
19911         * modules/trunc-tests: Update.
19912
19913 2007-10-12  Bruno Haible  <bruno@clisp.org>
19914
19915         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
19916         of 2.
19917         * tests/test-truncf2.c: New file.
19918         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
19919
19920         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
19921         * modules/truncf-tests: Update.
19922
19923 2007-10-11  Eric Blake  <ebb9@byu.net>
19924
19925         Don't claim strerror is broken on Interix.
19926         * doc/functions/strerror.texi (strerror): Known broken systems are
19927         now Solaris 8, and not Interix.
19928         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
19929         Interix on cross-compile.
19930         Reported by Martin Koeppe in
19931         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
19932
19933 2007-10-11  Bruno Haible  <bruno@clisp.org>
19934
19935         * modules/i-ring-tests: New file.
19936         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
19937         instead of assert.
19938
19939 2007-10-11  Bruno Haible  <bruno@clisp.org>
19940
19941         * modules/filenamecat-tests: New file.
19942         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
19943         * lib/filenamecat.c: Remove test code.
19944
19945 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19946
19947         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
19948
19949         * lib/strerror.c: Include <string.h> always, to test interface,
19950         and to remove the need for the dummy.
19951         Include intprops.h to compute width instead of doing it ourselves
19952         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
19953         (strerror): Define it to return NULL if there's no system strerror.
19954         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
19955         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
19956         ancient pre-strerror Unix systems well any more.  Saying "unknown
19957         system error" is enough.
19958         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
19959         simpler strerror.c implementation.
19960         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
19961         Simplify the tests to reflect the simpler strerror implementation.
19962         * modules/strerror (Depends-on): Add intprops.
19963
19964 2007-10-09  Eric Blake  <ebb9@byu.net>
19965
19966         Silence test-fpending.
19967         * modules/fpending-tests (Files): Add wrapper script.
19968         * tests/test-fpending.sh: New file.
19969
19970 2007-10-09  Bruno Haible  <bruno@clisp.org>
19971
19972         * MODULES.html.sh (func_module): Don't create a hyperlink for
19973         function names like 'printf_frexp'.
19974         (Misc): Add crc, memxor.
19975         (Characteristics of floating types): New section.
19976         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
19977         isnanf-nolibm, signbit, trunc, truncf, truncl.
19978         (Enhancements for ISO C 99 functions): New subsection Input/output.
19979         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
19980         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
19981         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
19982         (Compatibility checks for POSIX:2001 functions): Add clock-time.
19983         (Enhancements for POSIX:2001 functions): Add chdir-long.
19984         (File system functions): Add areadlink, chdir-safer, read-file.
19985         Remove cycle-check.
19986         (File system as inode set): New section.
19987         (Date and time): Add gethrxtime.
19988         (Multithreading): Add openmp.
19989         (Internationalization functions): Add localename.
19990         (Unicode string functions): Add unistr/u*-mbsnlen.
19991         (Support for maintaining and releasing projects): Add git-version-gen.
19992         (Lone files): Remove directories.
19993
19994 2007-10-08  Ben Pfaff  <blp@gnu.org>
19995
19996         * lib/xmalloca.h: Fix typo in comment.
19997
19998 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19999
20000         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
20001         when avoiding problems with integer overflow.  Use a portable test
20002         instead.
20003
20004 2007-10-08  Simon Josefsson  <simon@josefsson.org>
20005
20006         * modules/dummy (License): Change to LGPLv2+.
20007         * modules/float (License): Likewise
20008         * modules/realloc (License): Likewise
20009         * modules/stdlib (License): Likewise
20010
20011 2007-10-07  Bruno Haible  <bruno@clisp.org>
20012
20013         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
20014         * floor.c (TWO_MANT_DIG): Likewise.
20015         * ceil.c (TWO_MANT_DIG): Likewise.
20016         Reported by Ben Pfaff.
20017
20018 2007-10-07  Bruno Haible  <bruno@clisp.org>
20019
20020         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
20021         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
20022         * lib/frexp.c (FUNC): Likewise.
20023         * lib/printf-frexp.h (printf_frexp): Likewise.
20024         * lib/printf-frexpl.h (printf_frexpl): Likewise.
20025         * lib/printf-frexp.c (FUNC): Likewise.
20026         Suggested by Jim Meyering.
20027
20028 2007-10-07  Jim Meyering  <meyering@redhat.com>
20029
20030         Make xnanosleep's integer overflow test more robust.
20031         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
20032         so that gcc-4.3.0 doesn't optimize away this test for overflow.
20033
20034 2007-10-07  Bruno Haible  <bruno@clisp.org>
20035
20036         * NEWS: Mention the license change.
20037
20038         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
20039         abbreviations in the modules files.
20040
20041         Change copyright notice from GPLv2+ to GPLv3+.
20042         * README: Change copyright notice.
20043         * MODULES.html.sh: Likewise.
20044         * build-aux/bootstrap.conf: Likewise.
20045         * build-aux/config.libpath: Likewise.
20046         * build-aux/csharpcomp.sh.in: Likewise.
20047         * build-aux/csharpexec.sh.in: Likewise.
20048         * build-aux/install-reloc: Likewise.
20049         * build-aux/javacomp.sh.in: Likewise.
20050         * build-aux/javaexec.sh.in: Likewise.
20051         * build-aux/ldd.sh.in: Likewise.
20052         * build-aux/reloc-ldflags: Likewise.
20053         * build-aux/relocatable.sh.in: Likewise.
20054         * build-aux/x-to-1.in: Likewise.
20055         * check-module: Likewise.
20056         * config/srclistvars.sh: Likewise.
20057         * gnulib-tool: Likewise.
20058         * lib/acl-internal.h: Likewise.
20059         * lib/acl.c: Likewise.
20060         * lib/acl.h: Likewise.
20061         * lib/acl_entries.c: Likewise.
20062         * lib/areadlink-with-size.c: Likewise.
20063         * lib/areadlink.c: Likewise.
20064         * lib/areadlink.h: Likewise.
20065         * lib/argmatch.c: Likewise.
20066         * lib/argmatch.h: Likewise.
20067         * lib/argp-ba.c: Likewise.
20068         * lib/argp-eexst.c: Likewise.
20069         * lib/argp-fmtstream.c: Likewise.
20070         * lib/argp-fmtstream.h: Likewise.
20071         * lib/argp-fs-xinl.c: Likewise.
20072         * lib/argp-help.c: Likewise.
20073         * lib/argp-namefrob.h: Likewise.
20074         * lib/argp-parse.c: Likewise.
20075         * lib/argp-pin.c: Likewise.
20076         * lib/argp-pv.c: Likewise.
20077         * lib/argp-pvh.c: Likewise.
20078         * lib/argp-xinl.c: Likewise.
20079         * lib/argp.h: Likewise.
20080         * lib/at-func.c: Likewise.
20081         * lib/atanl.c: Likewise.
20082         * lib/backupfile.c: Likewise.
20083         * lib/backupfile.h: Likewise.
20084         * lib/basename.c: Likewise.
20085         * lib/binary-io.h: Likewise.
20086         * lib/byteswap.in.h: Likewise.
20087         * lib/c-stack.c: Likewise.
20088         * lib/c-stack.h: Likewise.
20089         * lib/c-strcasestr.c: Likewise.
20090         * lib/c-strcasestr.h: Likewise.
20091         * lib/c-strstr.c: Likewise.
20092         * lib/c-strstr.h: Likewise.
20093         * lib/c-strtod.c: Likewise.
20094         * lib/calloc.c: Likewise.
20095         * lib/canon-host.c: Likewise.
20096         * lib/canon-host.h: Likewise.
20097         * lib/canonicalize-lgpl.c: Likewise.
20098         * lib/canonicalize.c: Likewise.
20099         * lib/canonicalize.h: Likewise.
20100         * lib/ceil.c: Likewise.
20101         * lib/ceilf.c: Likewise.
20102         * lib/ceill.c: Likewise.
20103         * lib/chdir-long.c: Likewise.
20104         * lib/chdir-long.h: Likewise.
20105         * lib/chdir-safer.c: Likewise.
20106         * lib/chdir-safer.h: Likewise.
20107         * lib/chown.c: Likewise.
20108         * lib/classpath.c: Likewise.
20109         * lib/classpath.h: Likewise.
20110         * lib/clean-temp.c: Likewise.
20111         * lib/clean-temp.h: Likewise.
20112         * lib/cloexec.c: Likewise.
20113         * lib/close-stream.c: Likewise.
20114         * lib/closein.c: Likewise.
20115         * lib/closein.h: Likewise.
20116         * lib/closeout.c: Likewise.
20117         * lib/closeout.h: Likewise.
20118         * lib/concat-filename.c: Likewise.
20119         * lib/copy-file.c: Likewise.
20120         * lib/copy-file.h: Likewise.
20121         * lib/count-one-bits.h: Likewise.
20122         * lib/crc.c: Likewise.
20123         * lib/crc.h: Likewise.
20124         * lib/creat-safer.c: Likewise.
20125         * lib/csharpcomp.c: Likewise.
20126         * lib/csharpcomp.h: Likewise.
20127         * lib/csharpexec.c: Likewise.
20128         * lib/csharpexec.h: Likewise.
20129         * lib/cycle-check.c: Likewise.
20130         * lib/cycle-check.h: Likewise.
20131         * lib/diacrit.c: Likewise.
20132         * lib/diacrit.h: Likewise.
20133         * lib/diffseq.h: Likewise.
20134         * lib/dirchownmod.c: Likewise.
20135         * lib/dirent.in.h: Likewise.
20136         * lib/dirfd.c: Likewise.
20137         * lib/dirfd.h: Likewise.
20138         * lib/dirname.c: Likewise.
20139         * lib/dirname.h: Likewise.
20140         * lib/dummy.c: Likewise.
20141         * lib/dup-safer.c: Likewise.
20142         * lib/dup2.c: Likewise.
20143         * lib/eealloc.h: Likewise.
20144         * lib/error.c: Likewise.
20145         * lib/error.h: Likewise.
20146         * lib/euidaccess.c: Likewise.
20147         * lib/exclude.c: Likewise.
20148         * lib/exclude.h: Likewise.
20149         * lib/execute.c: Likewise.
20150         * lib/execute.h: Likewise.
20151         * lib/exitfail.c: Likewise.
20152         * lib/exitfail.h: Likewise.
20153         * lib/expl.c: Likewise.
20154         * lib/fatal-signal.c: Likewise.
20155         * lib/fatal-signal.h: Likewise.
20156         * lib/fbufmode.c: Likewise.
20157         * lib/fbufmode.h: Likewise.
20158         * lib/fchdir.c: Likewise.
20159         * lib/fchmodat.c: Likewise.
20160         * lib/fchownat.c: Likewise.
20161         * lib/fcntl--.h: Likewise.
20162         * lib/fcntl-safer.h: Likewise.
20163         * lib/fcntl.in.h: Likewise.
20164         * lib/fd-safer.c: Likewise.
20165         * lib/fflush.c: Likewise.
20166         * lib/file-has-acl.c: Likewise.
20167         * lib/file-set.c: Likewise.
20168         * lib/file-type.c: Likewise.
20169         * lib/file-type.h: Likewise.
20170         * lib/fileblocks.c: Likewise.
20171         * lib/filemode.c: Likewise.
20172         * lib/filemode.h: Likewise.
20173         * lib/filename.h: Likewise.
20174         * lib/filenamecat.c: Likewise.
20175         * lib/filenamecat.h: Likewise.
20176         * lib/findprog.c: Likewise.
20177         * lib/findprog.h: Likewise.
20178         * lib/float.in.h: Likewise.
20179         * lib/floor.c: Likewise.
20180         * lib/floorf.c: Likewise.
20181         * lib/floorl.c: Likewise.
20182         * lib/fopen-safer.c: Likewise.
20183         * lib/fopen.c: Likewise.
20184         * lib/fpending.c: Likewise.
20185         * lib/fpending.h: Likewise.
20186         * lib/fprintf.c: Likewise.
20187         * lib/fprintftime.h: Likewise.
20188         * lib/fpucw.h: Likewise.
20189         * lib/fpurge.c: Likewise.
20190         * lib/fpurge.h: Likewise.
20191         * lib/freadable.c: Likewise.
20192         * lib/freadable.h: Likewise.
20193         * lib/freadahead.c: Likewise.
20194         * lib/freadahead.h: Likewise.
20195         * lib/freading.c: Likewise.
20196         * lib/freading.h: Likewise.
20197         * lib/free.c: Likewise.
20198         * lib/freopen.c: Likewise.
20199         * lib/frexp.c: Likewise.
20200         * lib/frexpl.c: Likewise.
20201         * lib/fseek.c: Likewise.
20202         * lib/fseterr.c: Likewise.
20203         * lib/fseterr.h: Likewise.
20204         * lib/fstatat.c: Likewise.
20205         * lib/fstrcmp.c: Likewise.
20206         * lib/fstrcmp.h: Likewise.
20207         * lib/fsusage.c: Likewise.
20208         * lib/fsusage.h: Likewise.
20209         * lib/ftell.c: Likewise.
20210         * lib/ftello.c: Likewise.
20211         * lib/fts-cycle.c: Likewise.
20212         * lib/fts.c: Likewise.
20213         * lib/fts_.h: Likewise.
20214         * lib/full-read.c: Likewise.
20215         * lib/full-read.h: Likewise.
20216         * lib/full-write.c: Likewise.
20217         * lib/full-write.h: Likewise.
20218         * lib/fwritable.c: Likewise.
20219         * lib/fwritable.h: Likewise.
20220         * lib/fwriteerror.c: Likewise.
20221         * lib/fwriteerror.h: Likewise.
20222         * lib/fwriting.c: Likewise.
20223         * lib/fwriting.h: Likewise.
20224         * lib/gcd.c: Likewise.
20225         * lib/gcd.h: Likewise.
20226         * lib/getcwd.c: Likewise.
20227         * lib/getdate.h: Likewise.
20228         * lib/getdate.y: Likewise.
20229         * lib/getdomainname.c: Likewise.
20230         * lib/getdomainname.h: Likewise.
20231         * lib/getgroups.c: Likewise.
20232         * lib/gethostname.c: Likewise.
20233         * lib/gethrxtime.c: Likewise.
20234         * lib/gethrxtime.h: Likewise.
20235         * lib/getloadavg.c: Likewise.
20236         * lib/getndelim2.c: Likewise.
20237         * lib/getndelim2.h: Likewise.
20238         * lib/getnline.c: Likewise.
20239         * lib/getnline.h: Likewise.
20240         * lib/getopt.c: Likewise.
20241         * lib/getopt.in.h: Likewise.
20242         * lib/getopt1.c: Likewise.
20243         * lib/getopt_int.h: Likewise.
20244         * lib/getpagesize.h: Likewise.
20245         * lib/getsubopt.c: Likewise.
20246         * lib/gettime.c: Likewise.
20247         * lib/getugroups.c: Likewise.
20248         * lib/getugroups.h: Likewise.
20249         * lib/getusershell.c: Likewise.
20250         * lib/gl_anyavltree_list1.h: Likewise.
20251         * lib/gl_anyavltree_list2.h: Likewise.
20252         * lib/gl_anyhash_list1.h: Likewise.
20253         * lib/gl_anyhash_list2.h: Likewise.
20254         * lib/gl_anylinked_list1.h: Likewise.
20255         * lib/gl_anylinked_list2.h: Likewise.
20256         * lib/gl_anyrbtree_list1.h: Likewise.
20257         * lib/gl_anyrbtree_list2.h: Likewise.
20258         * lib/gl_anytree_list1.h: Likewise.
20259         * lib/gl_anytree_list2.h: Likewise.
20260         * lib/gl_anytree_oset.h: Likewise.
20261         * lib/gl_anytreehash_list1.h: Likewise.
20262         * lib/gl_anytreehash_list2.h: Likewise.
20263         * lib/gl_array_list.c: Likewise.
20264         * lib/gl_array_list.h: Likewise.
20265         * lib/gl_array_oset.c: Likewise.
20266         * lib/gl_array_oset.h: Likewise.
20267         * lib/gl_avltree_list.c: Likewise.
20268         * lib/gl_avltree_list.h: Likewise.
20269         * lib/gl_avltree_oset.c: Likewise.
20270         * lib/gl_avltree_oset.h: Likewise.
20271         * lib/gl_avltreehash_list.c: Likewise.
20272         * lib/gl_avltreehash_list.h: Likewise.
20273         * lib/gl_carray_list.c: Likewise.
20274         * lib/gl_carray_list.h: Likewise.
20275         * lib/gl_linked_list.c: Likewise.
20276         * lib/gl_linked_list.h: Likewise.
20277         * lib/gl_linkedhash_list.c: Likewise.
20278         * lib/gl_linkedhash_list.h: Likewise.
20279         * lib/gl_list.c: Likewise.
20280         * lib/gl_list.h: Likewise.
20281         * lib/gl_oset.c: Likewise.
20282         * lib/gl_oset.h: Likewise.
20283         * lib/gl_rbtree_list.c: Likewise.
20284         * lib/gl_rbtree_list.h: Likewise.
20285         * lib/gl_rbtree_oset.c: Likewise.
20286         * lib/gl_rbtree_oset.h: Likewise.
20287         * lib/gl_rbtreehash_list.c: Likewise.
20288         * lib/gl_rbtreehash_list.h: Likewise.
20289         * lib/gl_sublist.c: Likewise.
20290         * lib/gl_sublist.h: Likewise.
20291         * lib/group-member.c: Likewise.
20292         * lib/group-member.h: Likewise.
20293         * lib/hard-locale.c: Likewise.
20294         * lib/hard-locale.h: Likewise.
20295         * lib/hash-pjw.c: Likewise.
20296         * lib/hash-pjw.h: Likewise.
20297         * lib/hash-triple.c: Likewise.
20298         * lib/hash.c: Likewise.
20299         * lib/hash.h: Likewise.
20300         * lib/human.c: Likewise.
20301         * lib/human.h: Likewise.
20302         * lib/i-ring.c: Likewise.
20303         * lib/i-ring.h: Likewise.
20304         * lib/idcache.c: Likewise.
20305         * lib/imaxabs.c: Likewise.
20306         * lib/imaxdiv.c: Likewise.
20307         * lib/inet_pton.c: Likewise.
20308         * lib/inet_pton.h: Likewise.
20309         * lib/intprops.h: Likewise.
20310         * lib/inttostr.c: Likewise.
20311         * lib/inttostr.h: Likewise.
20312         * lib/inttypes.in.h: Likewise.
20313         * lib/isapipe.c: Likewise.
20314         * lib/isdir.c: Likewise.
20315         * lib/isnan.c: Likewise.
20316         * lib/isnan.h: Likewise.
20317         * lib/isnanf.c: Likewise.
20318         * lib/isnanf.h: Likewise.
20319         * lib/isnanl-nolibm.h: Likewise.
20320         * lib/isnanl.c: Likewise.
20321         * lib/isnanl.h: Likewise.
20322         * lib/javacomp.c: Likewise.
20323         * lib/javacomp.h: Likewise.
20324         * lib/javaexec.c: Likewise.
20325         * lib/javaexec.h: Likewise.
20326         * lib/javaversion.c: Likewise.
20327         * lib/javaversion.h: Likewise.
20328         * lib/javaversion.java: Likewise.
20329         * lib/lbrkprop.h: Likewise.
20330         * lib/lchmod.h: Likewise.
20331         * lib/lchown.c: Likewise.
20332         * lib/ldexpl.c: Likewise.
20333         * lib/linebreak.c: Likewise.
20334         * lib/linebreak.h: Likewise.
20335         * lib/linebuffer.c: Likewise.
20336         * lib/linebuffer.h: Likewise.
20337         * lib/locale.in.h: Likewise.
20338         * lib/logl.c: Likewise.
20339         * lib/long-options.c: Likewise.
20340         * lib/long-options.h: Likewise.
20341         * lib/lstat.c: Likewise.
20342         * lib/lstat.h: Likewise.
20343         * lib/math.in.h: Likewise.
20344         * lib/mbchar.c: Likewise.
20345         * lib/mbchar.h: Likewise.
20346         * lib/mbfile.h: Likewise.
20347         * lib/mbiter.h: Likewise.
20348         * lib/mbscasecmp.c: Likewise.
20349         * lib/mbscasestr.c: Likewise.
20350         * lib/mbschr.c: Likewise.
20351         * lib/mbscspn.c: Likewise.
20352         * lib/mbslen.c: Likewise.
20353         * lib/mbsncasecmp.c: Likewise.
20354         * lib/mbsnlen.c: Likewise.
20355         * lib/mbspbrk.c: Likewise.
20356         * lib/mbspcasecmp.c: Likewise.
20357         * lib/mbsrchr.c: Likewise.
20358         * lib/mbssep.c: Likewise.
20359         * lib/mbsspn.c: Likewise.
20360         * lib/mbsstr.c: Likewise.
20361         * lib/mbstok_r.c: Likewise.
20362         * lib/mbswidth.c: Likewise.
20363         * lib/mbswidth.h: Likewise.
20364         * lib/mbuiter.h: Likewise.
20365         * lib/memcasecmp.c: Likewise.
20366         * lib/memcasecmp.h: Likewise.
20367         * lib/memchr.c: Likewise.
20368         * lib/memcmp.c: Likewise.
20369         * lib/memcoll.c: Likewise.
20370         * lib/memcoll.h: Likewise.
20371         * lib/memcpy.c: Likewise.
20372         * lib/memrchr.c: Likewise.
20373         * lib/mkancesdirs.c: Likewise.
20374         * lib/mkdir-p.c: Likewise.
20375         * lib/mkdir-p.h: Likewise.
20376         * lib/mkdir.c: Likewise.
20377         * lib/mkdirat.c: Likewise.
20378         * lib/mkdtemp.c: Likewise.
20379         * lib/mkstemp-safer.c: Likewise.
20380         * lib/mkstemp.c: Likewise.
20381         * lib/modechange.c: Likewise.
20382         * lib/modechange.h: Likewise.
20383         * lib/mountlist.c: Likewise.
20384         * lib/mountlist.h: Likewise.
20385         * lib/mpsort.c: Likewise.
20386         * lib/nanosleep.c: Likewise.
20387         * lib/obstack.c: Likewise.
20388         * lib/obstack.h: Likewise.
20389         * lib/open-safer.c: Likewise.
20390         * lib/open.c: Likewise.
20391         * lib/openat-die.c: Likewise.
20392         * lib/openat-priv.h: Likewise.
20393         * lib/openat-proc.c: Likewise.
20394         * lib/openat.c: Likewise.
20395         * lib/openat.h: Likewise.
20396         * lib/pagealign_alloc.c: Likewise.
20397         * lib/pagealign_alloc.h: Likewise.
20398         * lib/physmem.c: Likewise.
20399         * lib/physmem.h: Likewise.
20400         * lib/pipe-safer.c: Likewise.
20401         * lib/pipe.c: Likewise.
20402         * lib/pipe.h: Likewise.
20403         * lib/posixtm.c: Likewise.
20404         * lib/posixtm.h: Likewise.
20405         * lib/posixver.c: Likewise.
20406         * lib/printf-frexp.c: Likewise.
20407         * lib/printf-frexp.h: Likewise.
20408         * lib/printf-frexpl.c: Likewise.
20409         * lib/printf-frexpl.h: Likewise.
20410         * lib/printf.c: Likewise.
20411         * lib/progname.c: Likewise.
20412         * lib/progname.h: Likewise.
20413         * lib/progreloc.c: Likewise.
20414         * lib/putenv.c: Likewise.
20415         * lib/quote.c: Likewise.
20416         * lib/quote.h: Likewise.
20417         * lib/quotearg.c: Likewise.
20418         * lib/quotearg.h: Likewise.
20419         * lib/raise.c: Likewise.
20420         * lib/readline.c: Likewise.
20421         * lib/readline.h: Likewise.
20422         * lib/readlink.c: Likewise.
20423         * lib/readtokens.c: Likewise.
20424         * lib/readtokens.h: Likewise.
20425         * lib/readtokens0.c: Likewise.
20426         * lib/readtokens0.h: Likewise.
20427         * lib/readutmp.c: Likewise.
20428         * lib/readutmp.h: Likewise.
20429         * lib/realloc.c: Likewise.
20430         * lib/relocwrapper.c: Likewise.
20431         * lib/rename-dest-slash.c: Likewise.
20432         * lib/rename.c: Likewise.
20433         * lib/rmdir.c: Likewise.
20434         * lib/rpmatch.c: Likewise.
20435         * lib/safe-read.c: Likewise.
20436         * lib/safe-read.h: Likewise.
20437         * lib/safe-write.c: Likewise.
20438         * lib/safe-write.h: Likewise.
20439         * lib/same-inode.h: Likewise.
20440         * lib/same.c: Likewise.
20441         * lib/same.h: Likewise.
20442         * lib/save-cwd.c: Likewise.
20443         * lib/save-cwd.h: Likewise.
20444         * lib/savedir.c: Likewise.
20445         * lib/savedir.h: Likewise.
20446         * lib/savewd.c: Likewise.
20447         * lib/savewd.h: Likewise.
20448         * lib/search.in.h: Likewise.
20449         * lib/setenv.c: Likewise.
20450         * lib/setenv.h: Likewise.
20451         * lib/settime.c: Likewise.
20452         * lib/sh-quote.c: Likewise.
20453         * lib/sh-quote.h: Likewise.
20454         * lib/sig2str.c: Likewise.
20455         * lib/sig2str.h: Likewise.
20456         * lib/signal.in.h: Likewise.
20457         * lib/signbitd.c: Likewise.
20458         * lib/signbitf.c: Likewise.
20459         * lib/signbitl.c: Likewise.
20460         * lib/sigprocmask.c: Likewise.
20461         * lib/sincosl.c: Likewise.
20462         * lib/sleep.c: Likewise.
20463         * lib/sprintf.c: Likewise.
20464         * lib/sqrtl.c: Likewise.
20465         * lib/stat-time.h: Likewise.
20466         * lib/stdio--.h: Likewise.
20467         * lib/stdio-safer.h: Likewise.
20468         * lib/stdlib--.h: Likewise.
20469         * lib/stdlib-safer.h: Likewise.
20470         * lib/stdlib.in.h: Likewise.
20471         * lib/stpcpy.c: Likewise.
20472         * lib/stpncpy.c: Likewise.
20473         * lib/strchrnul.c: Likewise.
20474         * lib/strcspn.c: Likewise.
20475         * lib/strerror.c: Likewise.
20476         * lib/strftime.c: Likewise.
20477         * lib/strftime.h: Likewise.
20478         * lib/striconveh.c: Likewise.
20479         * lib/striconveh.h: Likewise.
20480         * lib/striconveha.c: Likewise.
20481         * lib/striconveha.h: Likewise.
20482         * lib/stripslash.c: Likewise.
20483         * lib/strnlen1.c: Likewise.
20484         * lib/strnlen1.h: Likewise.
20485         * lib/strtod.c: Likewise.
20486         * lib/strtoimax.c: Likewise.
20487         * lib/strtok_r.c: Likewise.
20488         * lib/strtol.c: Likewise.
20489         * lib/strtoll.c: Likewise.
20490         * lib/strtoul.c: Likewise.
20491         * lib/strtoull.c: Likewise.
20492         * lib/sysexits.in.h: Likewise.
20493         * lib/tempname.c: Likewise.
20494         * lib/tempname.h: Likewise.
20495         * lib/timespec.h: Likewise.
20496         * lib/tls.c: Likewise.
20497         * lib/tls.h: Likewise.
20498         * lib/tmpdir.c: Likewise.
20499         * lib/tmpdir.h: Likewise.
20500         * lib/tmpfile-safer.c: Likewise.
20501         * lib/tmpfile.c: Likewise.
20502         * lib/trigl.c: Likewise.
20503         * lib/trigl.h: Likewise.
20504         * lib/trim.c: Likewise.
20505         * lib/trim.h: Likewise.
20506         * lib/trunc.c: Likewise.
20507         * lib/truncf.c: Likewise.
20508         * lib/truncl.c: Likewise.
20509         * lib/tsearch.c: Likewise.
20510         * lib/unicodeio.c: Likewise.
20511         * lib/unicodeio.h: Likewise.
20512         * lib/unistd--.h: Likewise.
20513         * lib/unistd-safer.h: Likewise.
20514         * lib/unistdio/ulc-fprintf.c: Likewise.
20515         * lib/unistdio/ulc-vfprintf.c: Likewise.
20516         * lib/unlinkdir.c: Likewise.
20517         * lib/unlinkdir.h: Likewise.
20518         * lib/unlocked-io.h: Likewise.
20519         * lib/unsetenv.c: Likewise.
20520         * lib/userspec.c: Likewise.
20521         * lib/utime.c: Likewise.
20522         * lib/utimecmp.c: Likewise.
20523         * lib/utimecmp.h: Likewise.
20524         * lib/utimens.c: Likewise.
20525         * lib/verify.h: Likewise.
20526         * lib/verror.c: Likewise.
20527         * lib/verror.h: Likewise.
20528         * lib/version-etc-fsf.c: Likewise.
20529         * lib/version-etc.c: Likewise.
20530         * lib/version-etc.h: Likewise.
20531         * lib/vfprintf.c: Likewise.
20532         * lib/vprintf.c: Likewise.
20533         * lib/vsprintf.c: Likewise.
20534         * lib/w32spawn.h: Likewise.
20535         * lib/wait-process.c: Likewise.
20536         * lib/wait-process.h: Likewise.
20537         * lib/wcwidth.c: Likewise.
20538         * lib/write-any-file.c: Likewise.
20539         * lib/xalloc-die.c: Likewise.
20540         * lib/xalloc.h: Likewise.
20541         * lib/xasprintf.c: Likewise.
20542         * lib/xgetcwd.c: Likewise.
20543         * lib/xgetcwd.h: Likewise.
20544         * lib/xgetdomainname.c: Likewise.
20545         * lib/xgetdomainname.h: Likewise.
20546         * lib/xgethostname.c: Likewise.
20547         * lib/xmalloc.c: Likewise.
20548         * lib/xmalloca.c: Likewise.
20549         * lib/xmalloca.h: Likewise.
20550         * lib/xmemcoll.c: Likewise.
20551         * lib/xnanosleep.c: Likewise.
20552         * lib/xreadlink.c: Likewise.
20553         * lib/xreadlink.h: Likewise.
20554         * lib/xsetenv.c: Likewise.
20555         * lib/xsetenv.h: Likewise.
20556         * lib/xstriconv.c: Likewise.
20557         * lib/xstriconv.h: Likewise.
20558         * lib/xstrndup.c: Likewise.
20559         * lib/xstrndup.h: Likewise.
20560         * lib/xstrtod.c: Likewise.
20561         * lib/xstrtod.h: Likewise.
20562         * lib/xstrtol-error.c: Likewise.
20563         * lib/xstrtol.c: Likewise.
20564         * lib/xstrtol.h: Likewise.
20565         * lib/xtime.h: Likewise.
20566         * lib/xvasprintf.c: Likewise.
20567         * lib/xvasprintf.h: Likewise.
20568         * lib/yesno.c: Likewise.
20569         * lib/yesno.h: Likewise.
20570         * posix-modules: Likewise.
20571         * tests/test-alloca-opt.c: Likewise.
20572         * tests/test-arcfour.c: Likewise.
20573         * tests/test-arctwo.c: Likewise.
20574         * tests/test-argmatch.c: Likewise.
20575         * tests/test-argp-2.sh: Likewise.
20576         * tests/test-argp.c: Likewise.
20577         * tests/test-arpa_inet.c: Likewise.
20578         * tests/test-array_list.c: Likewise.
20579         * tests/test-array_oset.c: Likewise.
20580         * tests/test-atexit.c: Likewise.
20581         * tests/test-avltree_list.c: Likewise.
20582         * tests/test-avltree_oset.c: Likewise.
20583         * tests/test-avltreehash_list.c: Likewise.
20584         * tests/test-base64.c: Likewise.
20585         * tests/test-binary-io.c: Likewise.
20586         * tests/test-byteswap.c: Likewise.
20587         * tests/test-c-ctype.c: Likewise.
20588         * tests/test-c-strcasecmp.c: Likewise.
20589         * tests/test-c-strcasestr.c: Likewise.
20590         * tests/test-c-strncasecmp.c: Likewise.
20591         * tests/test-c-strstr.c: Likewise.
20592         * tests/test-canonicalize-lgpl.c: Likewise.
20593         * tests/test-canonicalize.c: Likewise.
20594         * tests/test-carray_list.c: Likewise.
20595         * tests/test-ceilf.c: Likewise.
20596         * tests/test-ceill.c: Likewise.
20597         * tests/test-count-one-bits.c: Likewise.
20598         * tests/test-crc.c: Likewise.
20599         * tests/test-dirname.c: Likewise.
20600         * tests/test-fbufmode.c: Likewise.
20601         * tests/test-fcntl.c: Likewise.
20602         * tests/test-fflush.c: Likewise.
20603         * tests/test-floorf.c: Likewise.
20604         * tests/test-floorl.c: Likewise.
20605         * tests/test-fopen.c: Likewise.
20606         * tests/test-fprintf-posix.c: Likewise.
20607         * tests/test-fprintf-posix.h: Likewise.
20608         * tests/test-fpurge.c: Likewise.
20609         * tests/test-freadable.c: Likewise.
20610         * tests/test-freadahead.c: Likewise.
20611         * tests/test-freading.c: Likewise.
20612         * tests/test-freopen.c: Likewise.
20613         * tests/test-frexp.c: Likewise.
20614         * tests/test-frexpl.c: Likewise.
20615         * tests/test-fseek.c: Likewise.
20616         * tests/test-fseeko.c: Likewise.
20617         * tests/test-fseterr.c: Likewise.
20618         * tests/test-fstrcmp.c: Likewise.
20619         * tests/test-ftell.c: Likewise.
20620         * tests/test-ftello.c: Likewise.
20621         * tests/test-fwritable.c: Likewise.
20622         * tests/test-fwriting.c: Likewise.
20623         * tests/test-getaddrinfo.c: Likewise.
20624         * tests/test-getpass.c: Likewise.
20625         * tests/test-gettimeofday.c: Likewise.
20626         * tests/test-hmac-md5.c: Likewise.
20627         * tests/test-hmac-sha1.c: Likewise.
20628         * tests/test-iconv.c: Likewise.
20629         * tests/test-iconvme.c: Likewise.
20630         * tests/test-inttypes.c: Likewise.
20631         * tests/test-isnan.c: Likewise.
20632         * tests/test-isnanf.c: Likewise.
20633         * tests/test-isnanl-nolibm.c: Likewise.
20634         * tests/test-isnanl.c: Likewise.
20635         * tests/test-isnanl.h: Likewise.
20636         * tests/test-ldexpl.c: Likewise.
20637         * tests/test-linked_list.c: Likewise.
20638         * tests/test-linkedhash_list.c: Likewise.
20639         * tests/test-locale.c: Likewise.
20640         * tests/test-localename.c: Likewise.
20641         * tests/test-lock.c: Likewise.
20642         * tests/test-lseek.c: Likewise.
20643         * tests/test-malloca.c: Likewise.
20644         * tests/test-math.c: Likewise.
20645         * tests/test-mbscasecmp.c: Likewise.
20646         * tests/test-mbscasestr1.c: Likewise.
20647         * tests/test-mbscasestr2.c: Likewise.
20648         * tests/test-mbscasestr3.c: Likewise.
20649         * tests/test-mbscasestr4.c: Likewise.
20650         * tests/test-mbschr.c: Likewise.
20651         * tests/test-mbscspn.c: Likewise.
20652         * tests/test-mbsncasecmp.c: Likewise.
20653         * tests/test-mbspbrk.c: Likewise.
20654         * tests/test-mbspcasecmp.c: Likewise.
20655         * tests/test-mbsrchr.c: Likewise.
20656         * tests/test-mbsspn.c: Likewise.
20657         * tests/test-mbsstr1.c: Likewise.
20658         * tests/test-mbsstr2.c: Likewise.
20659         * tests/test-mbsstr3.c: Likewise.
20660         * tests/test-md5.c: Likewise.
20661         * tests/test-memmem.c: Likewise.
20662         * tests/test-netinet_in.c: Likewise.
20663         * tests/test-open.c: Likewise.
20664         * tests/test-printf-frexp.c: Likewise.
20665         * tests/test-printf-frexpl.c: Likewise.
20666         * tests/test-printf-posix.c: Likewise.
20667         * tests/test-printf-posix.h: Likewise.
20668         * tests/test-rbtree_list.c: Likewise.
20669         * tests/test-rbtree_oset.c: Likewise.
20670         * tests/test-rbtreehash_list.c: Likewise.
20671         * tests/test-read-file.c: Likewise.
20672         * tests/test-rijndael.c: Likewise.
20673         * tests/test-search.c: Likewise.
20674         * tests/test-signbit.c: Likewise.
20675         * tests/test-sleep.c: Likewise.
20676         * tests/test-snprintf-posix.c: Likewise.
20677         * tests/test-snprintf-posix.h: Likewise.
20678         * tests/test-snprintf.c: Likewise.
20679         * tests/test-sprintf-posix.c: Likewise.
20680         * tests/test-sprintf-posix.h: Likewise.
20681         * tests/test-stat-time.c: Likewise.
20682         * tests/test-stdbool.c: Likewise.
20683         * tests/test-stdint.c: Likewise.
20684         * tests/test-stdio.c: Likewise.
20685         * tests/test-stdlib.c: Likewise.
20686         * tests/test-stpncpy.c: Likewise.
20687         * tests/test-strcasestr.c: Likewise.
20688         * tests/test-striconv.c: Likewise.
20689         * tests/test-striconveh.c: Likewise.
20690         * tests/test-striconveha.c: Likewise.
20691         * tests/test-string.c: Likewise.
20692         * tests/test-sys_select.c: Likewise.
20693         * tests/test-sys_socket.c: Likewise.
20694         * tests/test-sys_stat.c: Likewise.
20695         * tests/test-sys_time.c: Likewise.
20696         * tests/test-sysexits.c: Likewise.
20697         * tests/test-time.c: Likewise.
20698         * tests/test-tls.c: Likewise.
20699         * tests/test-trunc.c: Likewise.
20700         * tests/test-truncf.c: Likewise.
20701         * tests/test-truncl.c: Likewise.
20702         * tests/test-unistd.c: Likewise.
20703         * tests/test-vasnprintf-posix.c: Likewise.
20704         * tests/test-vasnprintf-posix2.c: Likewise.
20705         * tests/test-vasnprintf.c: Likewise.
20706         * tests/test-vasprintf-posix.c: Likewise.
20707         * tests/test-vasprintf.c: Likewise.
20708         * tests/test-verify.c: Likewise.
20709         * tests/test-vfprintf-posix.c: Likewise.
20710         * tests/test-vprintf-posix.c: Likewise.
20711         * tests/test-vsnprintf-posix.c: Likewise.
20712         * tests/test-vsnprintf.c: Likewise.
20713         * tests/test-vsprintf-posix.c: Likewise.
20714         * tests/test-wchar.c: Likewise.
20715         * tests/test-wctype.c: Likewise.
20716         * tests/test-wcwidth.c: Likewise.
20717         * tests/test-xstrtol.c: Likewise.
20718         * tests/test-xvasprintf.c: Likewise.
20719         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
20720         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
20721         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
20722         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
20723         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
20724         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
20725         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
20726         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
20727         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
20728         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
20729         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
20730         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
20731         * tests/uniname/test-uninames.c: Likewise.
20732         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
20733         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
20734         * tests/unistdio/test-u16-printf1.h: Likewise.
20735         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
20736         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
20737         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
20738         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
20739         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
20740         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
20741         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
20742         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
20743         * tests/unistdio/test-u32-printf1.h: Likewise.
20744         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
20745         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
20746         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
20747         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
20748         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
20749         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
20750         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
20751         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
20752         * tests/unistdio/test-u8-printf1.h: Likewise.
20753         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
20754         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
20755         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
20756         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
20757         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
20758         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
20759         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
20760         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
20761         * tests/unistdio/test-ulc-printf1.h: Likewise.
20762         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
20763         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
20764         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
20765         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
20766         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
20767         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
20768         * tests/uniwidth/test-u16-strwidth.c: Likewise.
20769         * tests/uniwidth/test-u16-width.c: Likewise.
20770         * tests/uniwidth/test-u32-strwidth.c: Likewise.
20771         * tests/uniwidth/test-u32-width.c: Likewise.
20772         * tests/uniwidth/test-u8-strwidth.c: Likewise.
20773         * tests/uniwidth/test-u8-width.c: Likewise.
20774         * tests/uniwidth/test-uc_width.c: Likewise.
20775         * config/srclist-update: Likewise.
20776         (fixlicense): Update to GPLv3+.
20777
20778         Change copyright notice from LGPLv2.1+ to LGPLv3+.
20779         * tests/test-tsearch.c: Change copyright notice.
20780
20781         Change copyright notice from LGPLv2.0+ to LGPLv3+.
20782         * lib/c-strcaseeq.h: Change copyright notice.
20783         * lib/streq.h: Likewise.
20784         * lib/uniconv.h: Likewise.
20785         * lib/uniconv/u-conv-from-enc.h: Likewise.
20786         * lib/uniconv/u-conv-to-enc.h: Likewise.
20787         * lib/uniconv/u-strconv-from-enc.h: Likewise.
20788         * lib/uniconv/u-strconv-to-enc.h: Likewise.
20789         * lib/uniconv/u16-conv-from-enc.c: Likewise.
20790         * lib/uniconv/u16-conv-to-enc.c: Likewise.
20791         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
20792         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
20793         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
20794         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
20795         * lib/uniconv/u32-conv-from-enc.c: Likewise.
20796         * lib/uniconv/u32-conv-to-enc.c: Likewise.
20797         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
20798         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
20799         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
20800         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
20801         * lib/uniconv/u8-conv-from-enc.c: Likewise.
20802         * lib/uniconv/u8-conv-to-enc.c: Likewise.
20803         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
20804         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
20805         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
20806         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
20807         * lib/uniname.h: Likewise.
20808         * lib/uniname/uniname.c: Likewise.
20809         * lib/unistdio.h: Likewise.
20810         * lib/unistdio/u-asnprintf.h: Likewise.
20811         * lib/unistdio/u-asprintf.h: Likewise.
20812         * lib/unistdio/u-printf-args.c: Likewise.
20813         * lib/unistdio/u-printf-args.h: Likewise.
20814         * lib/unistdio/u-printf-parse.h: Likewise.
20815         * lib/unistdio/u-snprintf.h: Likewise.
20816         * lib/unistdio/u-sprintf.h: Likewise.
20817         * lib/unistdio/u-vasprintf.h: Likewise.
20818         * lib/unistdio/u-vsnprintf.h: Likewise.
20819         * lib/unistdio/u-vsprintf.h: Likewise.
20820         * lib/unistdio/u16-asnprintf.c: Likewise.
20821         * lib/unistdio/u16-asprintf.c: Likewise.
20822         * lib/unistdio/u16-printf-parse.c: Likewise.
20823         * lib/unistdio/u16-snprintf.c: Likewise.
20824         * lib/unistdio/u16-sprintf.c: Likewise.
20825         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
20826         * lib/unistdio/u16-u16-asprintf.c: Likewise.
20827         * lib/unistdio/u16-u16-snprintf.c: Likewise.
20828         * lib/unistdio/u16-u16-sprintf.c: Likewise.
20829         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
20830         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
20831         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
20832         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
20833         * lib/unistdio/u16-vasnprintf.c: Likewise.
20834         * lib/unistdio/u16-vasprintf.c: Likewise.
20835         * lib/unistdio/u16-vsnprintf.c: Likewise.
20836         * lib/unistdio/u16-vsprintf.c: Likewise.
20837         * lib/unistdio/u32-asnprintf.c: Likewise.
20838         * lib/unistdio/u32-asprintf.c: Likewise.
20839         * lib/unistdio/u32-printf-parse.c: Likewise.
20840         * lib/unistdio/u32-snprintf.c: Likewise.
20841         * lib/unistdio/u32-sprintf.c: Likewise.
20842         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
20843         * lib/unistdio/u32-u32-asprintf.c: Likewise.
20844         * lib/unistdio/u32-u32-snprintf.c: Likewise.
20845         * lib/unistdio/u32-u32-sprintf.c: Likewise.
20846         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
20847         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
20848         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
20849         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
20850         * lib/unistdio/u32-vasnprintf.c: Likewise.
20851         * lib/unistdio/u32-vasprintf.c: Likewise.
20852         * lib/unistdio/u32-vsnprintf.c: Likewise.
20853         * lib/unistdio/u32-vsprintf.c: Likewise.
20854         * lib/unistdio/u8-asnprintf.c: Likewise.
20855         * lib/unistdio/u8-asprintf.c: Likewise.
20856         * lib/unistdio/u8-printf-parse.c: Likewise.
20857         * lib/unistdio/u8-snprintf.c: Likewise.
20858         * lib/unistdio/u8-sprintf.c: Likewise.
20859         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
20860         * lib/unistdio/u8-u8-asprintf.c: Likewise.
20861         * lib/unistdio/u8-u8-snprintf.c: Likewise.
20862         * lib/unistdio/u8-u8-sprintf.c: Likewise.
20863         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
20864         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
20865         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
20866         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
20867         * lib/unistdio/u8-vasnprintf.c: Likewise.
20868         * lib/unistdio/u8-vasprintf.c: Likewise.
20869         * lib/unistdio/u8-vsnprintf.c: Likewise.
20870         * lib/unistdio/u8-vsprintf.c: Likewise.
20871         * lib/unistdio/ulc-asnprintf.c: Likewise.
20872         * lib/unistdio/ulc-asprintf.c: Likewise.
20873         * lib/unistdio/ulc-printf-parse.c: Likewise.
20874         * lib/unistdio/ulc-snprintf.c: Likewise.
20875         * lib/unistdio/ulc-sprintf.c: Likewise.
20876         * lib/unistdio/ulc-vasnprintf.c: Likewise.
20877         * lib/unistdio/ulc-vasprintf.c: Likewise.
20878         * lib/unistdio/ulc-vsnprintf.c: Likewise.
20879         * lib/unistdio/ulc-vsprintf.c: Likewise.
20880         * lib/unistr.h: Likewise.
20881         * lib/unistr/u-cpy-alloc.h: Likewise.
20882         * lib/unistr/u-cpy.h: Likewise.
20883         * lib/unistr/u-endswith.h: Likewise.
20884         * lib/unistr/u-move.h: Likewise.
20885         * lib/unistr/u-set.h: Likewise.
20886         * lib/unistr/u-startswith.h: Likewise.
20887         * lib/unistr/u-stpcpy.h: Likewise.
20888         * lib/unistr/u-stpncpy.h: Likewise.
20889         * lib/unistr/u-strcat.h: Likewise.
20890         * lib/unistr/u-strcpy.h: Likewise.
20891         * lib/unistr/u-strcspn.h: Likewise.
20892         * lib/unistr/u-strdup.h: Likewise.
20893         * lib/unistr/u-strlen.h: Likewise.
20894         * lib/unistr/u-strncat.h: Likewise.
20895         * lib/unistr/u-strncpy.h: Likewise.
20896         * lib/unistr/u-strnlen.h: Likewise.
20897         * lib/unistr/u-strpbrk.h: Likewise.
20898         * lib/unistr/u-strspn.h: Likewise.
20899         * lib/unistr/u-strstr.h: Likewise.
20900         * lib/unistr/u-strtok.h: Likewise.
20901         * lib/unistr/u16-check.c: Likewise.
20902         * lib/unistr/u16-chr.c: Likewise.
20903         * lib/unistr/u16-cmp.c: Likewise.
20904         * lib/unistr/u16-cpy-alloc.c: Likewise.
20905         * lib/unistr/u16-cpy.c: Likewise.
20906         * lib/unistr/u16-endswith.c: Likewise.
20907         * lib/unistr/u16-mblen.c: Likewise.
20908         * lib/unistr/u16-mbsnlen.c: Likewise.
20909         * lib/unistr/u16-mbtouc-aux.c: Likewise.
20910         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
20911         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
20912         * lib/unistr/u16-mbtouc.c: Likewise.
20913         * lib/unistr/u16-mbtoucr.c: Likewise.
20914         * lib/unistr/u16-move.c: Likewise.
20915         * lib/unistr/u16-next.c: Likewise.
20916         * lib/unistr/u16-prev.c: Likewise.
20917         * lib/unistr/u16-set.c: Likewise.
20918         * lib/unistr/u16-startswith.c: Likewise.
20919         * lib/unistr/u16-stpcpy.c: Likewise.
20920         * lib/unistr/u16-stpncpy.c: Likewise.
20921         * lib/unistr/u16-strcat.c: Likewise.
20922         * lib/unistr/u16-strchr.c: Likewise.
20923         * lib/unistr/u16-strcmp.c: Likewise.
20924         * lib/unistr/u16-strcpy.c: Likewise.
20925         * lib/unistr/u16-strcspn.c: Likewise.
20926         * lib/unistr/u16-strdup.c: Likewise.
20927         * lib/unistr/u16-strlen.c: Likewise.
20928         * lib/unistr/u16-strmblen.c: Likewise.
20929         * lib/unistr/u16-strmbtouc.c: Likewise.
20930         * lib/unistr/u16-strncat.c: Likewise.
20931         * lib/unistr/u16-strncmp.c: Likewise.
20932         * lib/unistr/u16-strncpy.c: Likewise.
20933         * lib/unistr/u16-strnlen.c: Likewise.
20934         * lib/unistr/u16-strpbrk.c: Likewise.
20935         * lib/unistr/u16-strrchr.c: Likewise.
20936         * lib/unistr/u16-strspn.c: Likewise.
20937         * lib/unistr/u16-strstr.c: Likewise.
20938         * lib/unistr/u16-strtok.c: Likewise.
20939         * lib/unistr/u16-to-u32.c: Likewise.
20940         * lib/unistr/u16-to-u8.c: Likewise.
20941         * lib/unistr/u16-uctomb-aux.c: Likewise.
20942         * lib/unistr/u16-uctomb.c: Likewise.
20943         * lib/unistr/u32-check.c: Likewise.
20944         * lib/unistr/u32-chr.c: Likewise.
20945         * lib/unistr/u32-cmp.c: Likewise.
20946         * lib/unistr/u32-cpy-alloc.c: Likewise.
20947         * lib/unistr/u32-cpy.c: Likewise.
20948         * lib/unistr/u32-endswith.c: Likewise.
20949         * lib/unistr/u32-mblen.c: Likewise.
20950         * lib/unistr/u32-mbsnlen.c: Likewise.
20951         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
20952         * lib/unistr/u32-mbtouc.c: Likewise.
20953         * lib/unistr/u32-mbtoucr.c: Likewise.
20954         * lib/unistr/u32-move.c: Likewise.
20955         * lib/unistr/u32-next.c: Likewise.
20956         * lib/unistr/u32-prev.c: Likewise.
20957         * lib/unistr/u32-set.c: Likewise.
20958         * lib/unistr/u32-startswith.c: Likewise.
20959         * lib/unistr/u32-stpcpy.c: Likewise.
20960         * lib/unistr/u32-stpncpy.c: Likewise.
20961         * lib/unistr/u32-strcat.c: Likewise.
20962         * lib/unistr/u32-strchr.c: Likewise.
20963         * lib/unistr/u32-strcmp.c: Likewise.
20964         * lib/unistr/u32-strcpy.c: Likewise.
20965         * lib/unistr/u32-strcspn.c: Likewise.
20966         * lib/unistr/u32-strdup.c: Likewise.
20967         * lib/unistr/u32-strlen.c: Likewise.
20968         * lib/unistr/u32-strmblen.c: Likewise.
20969         * lib/unistr/u32-strmbtouc.c: Likewise.
20970         * lib/unistr/u32-strncat.c: Likewise.
20971         * lib/unistr/u32-strncmp.c: Likewise.
20972         * lib/unistr/u32-strncpy.c: Likewise.
20973         * lib/unistr/u32-strnlen.c: Likewise.
20974         * lib/unistr/u32-strpbrk.c: Likewise.
20975         * lib/unistr/u32-strrchr.c: Likewise.
20976         * lib/unistr/u32-strspn.c: Likewise.
20977         * lib/unistr/u32-strstr.c: Likewise.
20978         * lib/unistr/u32-strtok.c: Likewise.
20979         * lib/unistr/u32-to-u16.c: Likewise.
20980         * lib/unistr/u32-to-u8.c: Likewise.
20981         * lib/unistr/u32-uctomb.c: Likewise.
20982         * lib/unistr/u8-check.c: Likewise.
20983         * lib/unistr/u8-chr.c: Likewise.
20984         * lib/unistr/u8-cmp.c: Likewise.
20985         * lib/unistr/u8-cpy-alloc.c: Likewise.
20986         * lib/unistr/u8-cpy.c: Likewise.
20987         * lib/unistr/u8-endswith.c: Likewise.
20988         * lib/unistr/u8-mblen.c: Likewise.
20989         * lib/unistr/u8-mbsnlen.c: Likewise.
20990         * lib/unistr/u8-mbtouc-aux.c: Likewise.
20991         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
20992         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
20993         * lib/unistr/u8-mbtouc.c: Likewise.
20994         * lib/unistr/u8-mbtoucr.c: Likewise.
20995         * lib/unistr/u8-move.c: Likewise.
20996         * lib/unistr/u8-next.c: Likewise.
20997         * lib/unistr/u8-prev.c: Likewise.
20998         * lib/unistr/u8-set.c: Likewise.
20999         * lib/unistr/u8-startswith.c: Likewise.
21000         * lib/unistr/u8-stpcpy.c: Likewise.
21001         * lib/unistr/u8-stpncpy.c: Likewise.
21002         * lib/unistr/u8-strcat.c: Likewise.
21003         * lib/unistr/u8-strchr.c: Likewise.
21004         * lib/unistr/u8-strcmp.c: Likewise.
21005         * lib/unistr/u8-strcpy.c: Likewise.
21006         * lib/unistr/u8-strcspn.c: Likewise.
21007         * lib/unistr/u8-strdup.c: Likewise.
21008         * lib/unistr/u8-strlen.c: Likewise.
21009         * lib/unistr/u8-strmblen.c: Likewise.
21010         * lib/unistr/u8-strmbtouc.c: Likewise.
21011         * lib/unistr/u8-strncat.c: Likewise.
21012         * lib/unistr/u8-strncmp.c: Likewise.
21013         * lib/unistr/u8-strncpy.c: Likewise.
21014         * lib/unistr/u8-strnlen.c: Likewise.
21015         * lib/unistr/u8-strpbrk.c: Likewise.
21016         * lib/unistr/u8-strrchr.c: Likewise.
21017         * lib/unistr/u8-strspn.c: Likewise.
21018         * lib/unistr/u8-strstr.c: Likewise.
21019         * lib/unistr/u8-strtok.c: Likewise.
21020         * lib/unistr/u8-to-u16.c: Likewise.
21021         * lib/unistr/u8-to-u32.c: Likewise.
21022         * lib/unistr/u8-uctomb-aux.c: Likewise.
21023         * lib/unistr/u8-uctomb.c: Likewise.
21024         * lib/unitypes.h: Likewise.
21025         * lib/uniwidth.h: Likewise.
21026         * lib/uniwidth/cjk.h: Likewise.
21027         * lib/uniwidth/u16-strwidth.c: Likewise.
21028         * lib/uniwidth/u16-width.c: Likewise.
21029         * lib/uniwidth/u32-strwidth.c: Likewise.
21030         * lib/uniwidth/u32-width.c: Likewise.
21031         * lib/uniwidth/u8-strwidth.c: Likewise.
21032         * lib/uniwidth/u8-width.c: Likewise.
21033         * lib/uniwidth/width.c: Likewise.
21034
21035 2007-10-07  Bruno Haible  <bruno@clisp.org>
21036
21037         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
21038         The file is still under LGPL (see modules/inttypes).
21039
21040 2007-10-06  Bruno Haible  <bruno@clisp.org>
21041
21042         * modules/trunc (Dependencies): Add 'extensions'.
21043         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
21044         Reported by Ben Pfaff <blp@gnu.org>.
21045
21046 2007-10-06  Bruno Haible  <bruno@clisp.org>
21047
21048         * modules/freopen-tests: New file.
21049         * tests/test-freopen.c: New file.
21050
21051         * modules/fopen-tests: New file.
21052         * tests/test-fopen.c: New file.
21053
21054         * modules/fopen: New file.
21055         * lib/fopen.c: New file.
21056         * m4/fopen.m4: New file.
21057         * modules/freopen: New file.
21058         * lib/freopen.c: New file.
21059         * m4/freopen.m4: New file.
21060         * lib/stdio.in.h (fopen, freopen): New declarations.
21061         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
21062         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
21063         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
21064         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
21065         * doc/functions/fopen.texi: Mention the 'fopen' module.
21066         * doc/functions/freopen.texi: Mention the 'freopen' module.
21067
21068 2007-10-06  Bruno Haible  <bruno@clisp.org>
21069
21070         * modules/open-tests: New file.
21071         * tests/test-open.c: New file.
21072
21073         * modules/open: New file.
21074         * lib/open.c: New file.
21075         * m4/open.m4: New file.
21076         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
21077         lib/open.c does.
21078         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
21079         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
21080         macros.
21081         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
21082         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
21083         REPLACE_OPEN.
21084         * doc/functions/open.texi: Mention the 'open' module.
21085
21086 2007-10-04  Bruno Haible  <bruno@clisp.org>
21087
21088         * modules/ceill-tests: New file.
21089         * tests/test-ceill.c: New file.
21090
21091         * modules/ceill: New file.
21092         * lib/ceill.c: Replace entire file.
21093         * m4/ceill.m4: New file.
21094         * lib/math.in.h (ceill): Replace declaration.
21095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
21096         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
21097         * doc/functions/ceill.texi: Mention the 'ceill' module.
21098         * modules/mathl (Files): Remove lib/ceill.c.
21099         (Depends-on): Add ceill.
21100
21101 2007-10-04  Bruno Haible  <bruno@clisp.org>
21102
21103         * modules/ceilf-tests: New file.
21104         * tests/test-ceilf.c: New file.
21105
21106         * modules/ceilf: New file.
21107         * lib/ceil.c: New file.
21108         * lib/ceilf.c: New file.
21109         * m4/ceilf.m4: New file.
21110         * lib/math.in.h (ceilf): New declaration.
21111         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
21112         HAVE_DECL_CEILF.
21113         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
21114         HAVE_DECL_CEILF.
21115         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
21116
21117 2007-10-04  Bruno Haible  <bruno@clisp.org>
21118
21119         * modules/floorl-tests: New file.
21120         * tests/test-floorl.c: New file.
21121
21122         * modules/floorl: New file.
21123         * lib/floorl.c: Replace entire file.
21124         * m4/floorl.m4: New file.
21125         * lib/math.in.h (floorl): Replace declaration.
21126         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
21127         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
21128         * doc/functions/floorl.texi: Mention the 'floorl' module.
21129         * modules/mathl (Files): Remove lib/floorl.c.
21130         (Depends-on): Add floorl.
21131
21132 2007-10-04  Bruno Haible  <bruno@clisp.org>
21133
21134         * modules/floorf-tests: New file.
21135         * tests/test-floorf.c: New file.
21136
21137         * modules/floorf: New file.
21138         * lib/floor.c: New file.
21139         * lib/floorf.c: New file.
21140         * m4/floorf.m4: New file.
21141         * lib/math.in.h (floorf): New declaration.
21142         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
21143         HAVE_DECL_FLOORF.
21144         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
21145         HAVE_DECL_FLOORF.
21146         * doc/functions/floorf.texi: Mention the 'floorf' module.
21147
21148 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
21149             Bruno Haible  <bruno@clisp.org>
21150
21151         Advertise for the Git server instead of the CVS server.
21152         * doc/gnulib-intro.texi (Steady Development): Mention the Git
21153         repository instead of the CVS one.
21154         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
21155         about all VCS systems generically.
21156         * doc/gnulib.texi (Introduction): Capitalize `Git'.
21157
21158 2007-10-04  Bruno Haible  <bruno@clisp.org>
21159
21160         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
21161         means.
21162         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
21163
21164 2007-10-04  Bruno Haible  <bruno@clisp.org>
21165
21166         * modules/truncl-tests: New file.
21167         * tests/test-truncl.c: New file.
21168
21169         * modules/truncl: New file.
21170         * lib/truncl.c: New file.
21171         * m4/truncl.m4: New file.
21172         * lib/math.in.h (truncl): New declaration.
21173         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
21174         HAVE_DECL_TRUNCL.
21175         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
21176         HAVE_DECL_TRUNCL.
21177         * doc/functions/truncl.texi: Mention the 'truncl' module.
21178
21179 2007-10-04  Bruno Haible  <bruno@clisp.org>
21180
21181         * modules/truncf-tests: New file.
21182         * tests/test-truncf.c: New file.
21183
21184         * modules/truncf: New file.
21185         * lib/trunc.c: Make paramerizable through USE_* macros.
21186         * lib/truncf.c: New file.
21187         * m4/truncf.m4: New file.
21188         * lib/math.in.h (truncf): New declaration.
21189         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
21190         HAVE_DECL_TRUNCF.
21191         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
21192         HAVE_DECL_TRUNCF.
21193         * doc/functions/truncf.texi: Mention the 'truncf' module.
21194
21195 2007-10-03  Bruno Haible  <bruno@clisp.org>
21196
21197         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
21198         augmentation also for tests modules.
21199         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
21200         * modules/atexit-tests (Makefile.am): Likewise.
21201         * modules/binary-io-tests (Makefile.am): Likewise.
21202         * modules/c-strcase-tests (Makefile.am): Likewise.
21203         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
21204         * modules/canonicalize-tests (Makefile.am): Likewise.
21205         * modules/closein-tests (Makefile.am): Likewise.
21206         * modules/fprintf-posix-tests (Makefile.am): Likewise.
21207         * modules/freadahead-tests (Makefile.am): Likewise.
21208         * modules/fseek-tests (Makefile.am): Likewise.
21209         * modules/fseeko-tests (Makefile.am): Likewise.
21210         * modules/ftell-tests (Makefile.am): Likewise.
21211         * modules/ftello-tests (Makefile.am): Likewise.
21212         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
21213         * modules/isnanl-tests (Makefile.am): Likewise.
21214         * modules/lseek-tests (Makefile.am): Likewise.
21215         * modules/mbscasecmp-tests (Makefile.am): Likewise.
21216         * modules/mbscasestr-tests (Makefile.am): Likewise.
21217         * modules/mbschr-tests (Makefile.am): Likewise.
21218         * modules/mbscspn-tests (Makefile.am): Likewise.
21219         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
21220         * modules/mbspbrk-tests (Makefile.am): Likewise.
21221         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
21222         * modules/mbsrchr-tests (Makefile.am): Likewise.
21223         * modules/mbsspn-tests (Makefile.am): Likewise.
21224         * modules/mbsstr-tests (Makefile.am): Likewise.
21225         * modules/printf-posix-tests (Makefile.am): Likewise.
21226         * modules/snprintf-posix-tests (Makefile.am): Likewise.
21227         * modules/sprintf-posix-tests (Makefile.am): Likewise.
21228         * modules/tsearch-tests (Makefile.am): Likewise.
21229         * modules/uniname/uniname-tests (Makefile.am): Likewise.
21230         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
21231         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
21232         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
21233         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
21234         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
21235         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
21236         * modules/vprintf-posix-tests (Makefile.am): Likewise.
21237         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
21238         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
21239         * modules/xstrtoimax-tests (Makefile.am): Likewise.
21240         * modules/xstrtol-tests (Makefile.am): Likewise.
21241         * modules/xstrtoumax-tests (Makefile.am): Likewise.
21242         * modules/yesno-tests (Makefile.am): Likewise.
21243
21244 2007-10-03  Bruno Haible  <bruno@clisp.org>
21245
21246         * modules/trunc-tests: New file.
21247         * tests/test-trunc.c: New file.
21248
21249         * modules/trunc: New file.
21250         * lib/trunc.c: New file.
21251         * m4/trunc.m4: New file.
21252         * lib/math.in.h (trunc): New declaration.
21253         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
21254         HAVE_DECL_TRUNC.
21255         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
21256         HAVE_DECL_TRUNC.
21257         * doc/functions/trunc.texi: Mention the 'trunc' module.
21258
21259 2007-10-03  Bruno Haible  <bruno@clisp.org>
21260
21261         * tests/test-fpending.c: New file, mostly copied
21262         from coreutils/lib/t-fpending.c.
21263         * modules/fpending-tests: New file.
21264
21265 2007-10-03  Bruno Haible  <bruno@clisp.org>
21266
21267         Port the stdio extensions to QNX (untested).
21268         * lib/fseterr.c (fseterr): Add support for QNX.
21269         * lib/fbufmode.c (fbufmode): Likewise.
21270         * lib/freadable.c (freadable): Likewise.
21271         * lib/fwritable.c (fwritable): Likewise.
21272         * lib/freading.c (freading): Likewise.
21273         * lib/fwriting.c (fwriting): Likewise.
21274         * lib/freadahead.c (freadahed): Likewise.
21275         * lib/fpurge.c (fpurge): Likewise.
21276         * lib/fseeko.c (rpl_fseeko): Likewise.
21277
21278 2007-10-03  Bruno Haible  <bruno@clisp.org>
21279             Jim Meyering  <jim@meyering.net>
21280             Eric Blake  <ebb9@byu.net>
21281
21282         * doc/relocatable.texi: Use @command instead of @program.
21283
21284 2007-10-02  Jim Meyering  <jim@meyering.net>
21285
21286         Perform one more "_.h" -> ".in.h" substitution.
21287         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
21288         instead of unistd_.h here, too.
21289
21290 2007-10-01  Bruno Haible  <bruno@clisp.org>
21291
21292         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
21293         Needed for the alloca-opt module.
21294
21295 2007-09-30  Bruno Haible  <bruno@clisp.org>
21296
21297         * lib/alloca.in.h: Renamed from lib/alloca_.h.
21298         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
21299         alloca_.h.
21300         * lib/argz.in.h: Renamed from lib/argz_.h.
21301         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
21302         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
21303         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
21304         byteswap_.h.
21305         * lib/dirent.in.h: Renamed from lib/dirent_.h.
21306         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
21307         dirent_.h.
21308         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
21309         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
21310         fcntl_.h.
21311         * lib/float.in.h: Renamed from lib/float_.h.
21312         * modules/float (Files, Makefile.am): Use float.in.h instead of
21313         float_.h.
21314         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
21315         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
21316         fnmatch_.h.
21317         * lib/getopt.in.h: Renamed from lib/getopt_.h.
21318         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
21319         getopt_.h.
21320         * lib/glob.in.h: Renamed from lib/glob_.h.
21321         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
21322         * lib/iconv.in.h: Renamed from lib/iconv_.h.
21323         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
21324         iconv_.h.
21325         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
21326         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
21327         inttypes_.h.
21328         * lib/locale.in.h: Renamed from lib/locale_.h.
21329         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
21330         locale_.h.
21331         * lib/math.in.h: Renamed from lib/math_.h.
21332         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
21333         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
21334         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
21335         of netinet_in_.h. Add dependency.
21336         * lib/poll.in.h: Renamed from lib/poll_.h.
21337         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
21338         * lib/search.in.h: Renamed from lib/search_.h.
21339         * modules/search (Files, Makefile.am): Use search.in.h instead of
21340         search_.h.
21341         * lib/signal.in.h: Renamed from lib/signal_.h.
21342         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
21343         _signal.h.
21344         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
21345         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
21346         stdbool_.h.
21347         * lib/stdint.in.h: Renamed from lib/stdint_.h.
21348         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
21349         stdint_.h.
21350         * lib/stdio.in.h: Renamed from lib/stdio_.h.
21351         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
21352         stdio_.h.
21353         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
21354         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
21355         stdlib_.h.
21356         * lib/string.in.h: Renamed from lib/string_.h.
21357         * modules/string (Files, Makefile.am): Use string.in.h instead of
21358         string_.h.
21359         * doc/gnulib-tool.texi (Initial import): Update.
21360         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
21361         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
21362         of sys_select_.h. Add dependency.
21363         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
21364         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
21365         of sys_socket_.h.
21366         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
21367         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
21368         sys_stat_.h.
21369         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
21370         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
21371         sys_time_.h.
21372         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
21373         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
21374         sysexits_.h.
21375         * lib/time.in.h: Renamed from lib/time_.h.
21376         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
21377         * lib/unistd.in.h: Renamed from lib/unistd_.h.
21378         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
21379         unistd_.h.
21380         * lib/wchar.in.h: Renamed from lib/wchar_.h.
21381         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
21382         wchar_.h.
21383         * lib/wctype.in.h: Renamed from lib/wctype_.h.
21384         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
21385         wctype_.h.
21386         * build-aux/bootstrap (slurp): Update.
21387         * lib/.cppi-disable: Update.
21388
21389 2007-09-30  Bruno Haible  <bruno@clisp.org>
21390
21391         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
21392         Needed on BeOS.
21393
21394 2007-09-30  Bruno Haible  <bruno@clisp.org>
21395
21396         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
21397
21398 2007-09-29  Bruno Haible  <bruno@clisp.org>
21399
21400         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
21401
21402 2007-09-29  Bruno Haible  <bruno@clisp.org>
21403
21404         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
21405         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
21406         * build-aux/install-reloc: Compile also areadlink.c.
21407         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
21408
21409 2007-09-29  Bruno Haible  <bruno@clisp.org>
21410
21411         * gnulib-tool (func_emit_initmacro_done): Indentation.
21412
21413 2007-09-29  Bruno Haible  <bruno@clisp.org>
21414
21415         * README: Add CVS checkout update instructions.
21416         Info from Bob Proulx <bob@proulx.com>.
21417
21418 2007-09-28  Eric Blake  <ebb9@byu.net>
21419
21420         Provide move-if-change.
21421         * build-aux/move-if-change: New file, based on best practice
21422         rather than any canonical upstream location.
21423
21424 2007-09-28  Jim Meyering  <jim@meyering.net>
21425
21426         Fix canonicalize loop-detection corner case.
21427         Do not attempt to stat the symlink values stored via seen_triple.
21428         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
21429         on linux-2.6.18, (but not 2.6.22).
21430         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
21431         triple_compare.  The former compares dev,ino,filename, while the latter
21432         would actually stat dirname(filename) when dev and ino were equal.
21433         * lib/hash-triple.c: Install <string.h>.
21434         (STREQ): Define.
21435         (triple_compare_ino_str): New function.
21436         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
21437
21438 2007-09-28  Eric Blake  <ebb9@byu.net>
21439
21440         Enforce that AC_REPLACE_FUNCS files exist.
21441         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
21442         override check for typos.
21443
21444         Fix test-closein on Solaris 10.
21445         * tests/test-closein.c (main): Don't assume stdin can be inherited
21446         closed on all systems.
21447         * tests/test-closein.sh: Likewise.
21448         Reported by Piotr Tarnowski.
21449
21450 2007-09-28  Jim Meyering  <jim@meyering.net>
21451
21452         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
21453
21454 2007-09-27  Jim Meyering  <jim@meyering.net>
21455
21456         canonicalize: Avoid a false-positive cycle failure.
21457         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
21458         Sort.  Remove cycle-check.
21459         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
21460         not cycle-check.h.
21461         (seen_triple): New function.
21462         (canonicalize_filename_mode): Use it instead of cycle-check.
21463         * tests/test-canonicalize.c: Add a test for this bug.
21464         * tests/test-canonicalize.sh: Set up and run the test.
21465
21466         New module, file-set, from coreutils.
21467         * modules/file-set: Define it.
21468         * lib/file-set.c, lib/file-set.h: Implement.
21469
21470         New module, hash-triple, from coreutils.
21471         * modules/hash-triple: Define it.
21472         * lib/hash-triple.c, lib/hash-triple.h: Implement.
21473
21474 2007-09-25  Eric Blake  <ebb9@byu.net>
21475
21476         Fix strerror on Interix.
21477         * lib/string_.h (strerror): Declare replacement.
21478         * doc/functions/strerror.texi (strerror): Document the Interix
21479         shortcoming.
21480         * modules/string (Makefile.am): Support new hooks.
21481         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
21482         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
21483         gl_FUNC_STRERROR_SEPARATE.
21484         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
21485         * lib/strerror.c (rpl_strerror): Provide replacement.
21486         * modules/strerror (Depends-on): Add string.
21487         (configure.ac): Detect use of module.
21488         * tests/test-strerror.c: New file.
21489         * modules/strerror-tests: New test module.
21490         * modules/argp (Depends-on): Add strerror.
21491         * modules/error (Depends-on): Likewise.
21492         Reported by Martin Koeppe.
21493
21494 2007-09-24  Bruno Haible  <bruno@clisp.org>
21495
21496         * README: Update git instructions.
21497
21498 2007-09-24  Eric Blake  <ebb9@byu.net>
21499
21500         Revert fpending breakage from 2007-09-08.
21501         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
21502         __fpending.c.
21503
21504 2007-09-24  Jim Meyering  <jim@meyering.net>
21505
21506         filenamecat.c: Add a test.
21507         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
21508         showing how the function works when DIR is the empty string.
21509
21510 2007-09-21  Simon Josefsson  <simon@josefsson.org>
21511
21512         * tests/test-canonicalize.sh: Turn on executable bit.
21513
21514 2007-09-19  Eric Blake  <ebb9@byu.net>
21515
21516         * README: Update CVS instructions.
21517
21518 2007-09-18  Bruno Haible  <bruno@clisp.org>
21519
21520         * modules/areadlink: New file.
21521         * lib/areadlink.h (areadlink): New declaration.
21522         * lib/areadlink.c: New file, based on lib/xreadlink.c.
21523
21524 2007-09-17  Jim Meyering  <jim@meyering.net>
21525
21526         * lib/savewd.c (ESTALE) [!defined]: Define.
21527         Reported to be required on Interix by Martin Koeppe.
21528
21529 2007-09-17  Bruno Haible  <bruno@clisp.org>
21530
21531         * gnulib-tool (func_version): Use $version.
21532
21533 2007-09-16  Bruno Haible  <bruno@clisp.org>
21534
21535         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
21536         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
21537         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
21538         Reported by Greg Schafer <gschafer@zip.com.au>.
21539
21540 2007-09-15  Bruno Haible  <bruno@clisp.org>
21541
21542         * gnulib-tool (sed): Try a little harder to make bash understand the
21543         alias.
21544         Reported by Bruce Korb <bruce.korb@gmail.com>.
21545
21546 2007-09-13  Eric Blake  <ebb9@byu.net>
21547
21548         * ChangeLog: Remove conflict markers.
21549
21550 2007-09-13  Simon Josefsson  <simon@josefsson.org>
21551
21552         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
21553         Reported by Bruno Haible <bruno@clisp.org>.
21554
21555 2007-09-12  Bruno Haible  <bruno@clisp.org>
21556
21557         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
21558         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
21559         is not defined.
21560
21561 2007-09-12  Eric Blake  <ebb9@byu.net>
21562
21563         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
21564         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
21565         Autoconf definition.
21566         * modules/euidaccess (Depends-on): Add extensions, for
21567         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
21568         * modules/fnmatch (Depends-on): Likewise.
21569         * modules/getaddrinfo (Depends-on): Likewise.
21570         * modules/getdelim (Depends-on): Likewise.
21571         * modules/getline (Depends-on): Likewise.
21572         * modules/getsubopt (Depends-on): Likewise.
21573         * modules/gettext (Depends-on): Likewise.
21574         * modules/group-member (Depends-on): Likewise.
21575         * modules/mbchar (Depends-on): Likewise.
21576         * modules/memmem (Depends-on): Likewise.
21577         * modules/mempcpy (Depends-on): Likewise.
21578         * modules/memrchr (Depends-on): Likewise.
21579         * modules/pagealign_alloc (Depends-on): Likewise.
21580         * modules/readutmp (Depends-on): Likewise.
21581         * modules/stpcpy (Depends-on): Likewise.
21582         * modules/stpncpy (Depends-on): Likewise.
21583         * modules/strchrnul (Depends-on): Likewise.
21584         * modules/strndup (Depends-on): Likewise.
21585         * modules/strsep (Depends-on): Likewise.
21586         * modules/strverscmp (Depends-on): Likewise.
21587         * modules/vasprintf (Depends-on): Likewise.
21588         * modules/wcwidth (Depends-on): Likewise.
21589         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
21590         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
21591         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
21592         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
21593         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
21594         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21595         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
21596         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
21597         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
21598         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
21599         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21600         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
21601         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
21602         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
21603         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
21604         * m4/readutmp.m4 (gl_READUTMP): Likewise.
21605         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
21606         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
21607         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21608         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
21609         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
21610         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
21611         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
21612         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
21613         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
21614         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21615         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
21616         so that lock.m4 can be used in gettext without extensions module.
21617
21618 2007-09-11  Bruno Haible  <bruno@clisp.org>
21619
21620         * m4/isc-posix.m4: Remove file.
21621         Suggested by Eric Blake.
21622
21623 2007-09-11  Eric Blake  <ebb9@byu.net>
21624
21625         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
21626
21627 2007-09-10  Bruno Haible  <bruno@clisp.org>
21628
21629         * posix-modules: Fix typo in error message.
21630         Reported by Matt <mkraai@beckman.com>.
21631
21632 2007-09-09  Bruno Haible  <bruno@clisp.org>
21633
21634         * doc/functions/getdelim.texi: Update list of platforms lacking the
21635         function.
21636         * doc/functions/getline.texi: Likewise.
21637
21638 2007-09-09  Jim Meyering  <jim@meyering.net>
21639
21640         * lib/hash.c (hash_initialize): Detect calloc failure.
21641         Reported by Bruno Haible.
21642
21643 2007-09-09  Bruno Haible  <bruno@clisp.org>
21644
21645         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
21646         malloc or realloc fails.
21647
21648 2007-09-09  Bruno Haible  <bruno@clisp.org>
21649
21650         * modules/getcwd (Depends-on): Add malloc-posix.
21651         * modules/glob (Depends-on): Likewise.
21652         * modules/putenv (Depends-on): Likewise.
21653         * modules/strdup (Depends-on): Likewise.
21654         * modules/getdelim (Depends-on): Add realloc-posix.
21655         * modules/read-file (Depends-on): Likewise.
21656
21657 2007-09-09  Bruno Haible  <bruno@clisp.org>
21658
21659         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
21660         (gl_FUNC_MALLOC_POSIX): Require it.
21661         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
21662         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
21663         * modules/realloc (Files): Add m4/malloc.m4.
21664         * modules/calloc (Files): Likewise.
21665
21666 2007-09-09  Bruno Haible  <bruno@clisp.org>
21667
21668         * modules/malloc-posix: New file.
21669         * modules/malloc (Depends-on): Add malloc-posix.
21670         * lib/malloc.c: Include errno.h.
21671         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
21672         and a POSIX-compatible malloc into a single function. Set ENOMEM
21673         when returning NULL.
21674         * m4/malloc.m4: New file.
21675         * doc/functions/malloc.texi: Mention the malloc-posix module.
21676         * lib/stdlib_.h (malloc): New declaration.
21677         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
21678         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
21679         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
21680         and HAVE_MALLOC_POSIX.
21681
21682 2007-09-09  Bruno Haible  <bruno@clisp.org>
21683
21684         * modules/realloc-posix: New file.
21685         * modules/realloc (Depends-on): Add realloc-posix.
21686         * lib/realloc.c: Include errno.h.
21687         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
21688         and a POSIX-compatible realloc into a single function. Set ENOMEM
21689         when returning NULL.
21690         * m4/realloc.m4: New file.
21691         * doc/functions/realloc.texi: Mention the realloc-posix module.
21692         * lib/stdlib_.h (realloc): New declaration.
21693         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
21694         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
21695         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
21696         and HAVE_REALLOC_POSIX.
21697
21698 2007-09-09  Bruno Haible  <bruno@clisp.org>
21699
21700         * modules/calloc-posix: New file.
21701         * modules/calloc (Depends-on): Add calloc-posix.
21702         * lib/calloc.c: Include errno.h.
21703         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
21704         and a POSIX-compatible calloc into a single function. Set ENOMEM
21705         when returning NULL.
21706         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
21707         * doc/functions/calloc.texi: Mention the calloc-posix module.
21708         * lib/stdlib_.h (calloc): New declaration.
21709         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
21710         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
21711         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
21712         and HAVE_CALLOC_POSIX.
21713
21714 2007-09-09  Bruno Haible  <bruno@clisp.org>
21715
21716         Allow for modules to show an arbitrary notice.
21717         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
21718         * gnulib-tool: New option --extract-notice.
21719         (func_usage): Document it.
21720         (sed_extract_prog): Update.
21721         (func_get_notice): New function.
21722         (func_modules_notice): New function.
21723         (func_import, func_create_testdir): Invoke it.
21724         Suggested by Jim Meyering.
21725
21726 2007-09-09  Bruno Haible  <bruno@clisp.org>
21727
21728         * gnulib-tool: New options --verbose, --quiet.
21729         (func_usage): Document them.
21730         (verbose): New variable.
21731         (func_execute_command): New function.
21732         (func_import): Don't show the module list and the file list if
21733         $verbose < 0.
21734         (func_create_testdir): Likewise. Use func_execute_command.
21735         (func_create_megatestdir): Use func_execute_command.
21736
21737 2007-09-08  Bruno Haible  <bruno@clisp.org>
21738
21739         * gnulib-tool (func_import): Prefer rsync over wget when available,
21740         for fetching the PO files.
21741
21742 2007-09-08  Bruno Haible  <bruno@clisp.org>
21743
21744         * posix-modules: New file. Portions copied from gnulib-tool.
21745         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
21746
21747 2007-09-08  Jim Meyering  <jim@meyering.net>
21748
21749         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
21750         * lib/fpending.h: Rename from __fpending.h.
21751         * lib/fpending.c: Rename from __fpending.c.
21752         Include "fpending.h", not "__fpending.h".
21753         * lib/__fpending.h, lib/__fpending.c: Remove files.
21754         * modules/fpending (Files): Reflect new file names.
21755         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
21756
21757 2007-09-08  Bruno Haible  <bruno@clisp.org>
21758
21759         * m4/inttypes-h.m4: Remove stub file.
21760
21761 2007-09-07  Simon Josefsson  <simon@josefsson.org>
21762
21763         * doc/headers/stdint.texi: Discuss #include_next issue.
21764
21765 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
21766
21767         * build-aux/bootstrap: Remove obsolete comment about wget --help.
21768
21769 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21770
21771         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
21772         in variable name.
21773
21774 2007-09-03  Jim Meyering  <jim@meyering.net>
21775
21776         New module: git-version-gen.
21777         * modules/git-version-gen: New file.
21778
21779         Import changes from coreutils for bootstrap script.
21780
21781         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
21782
21783         bootstrap: uses rsync to download the .po files
21784         * build-aux/bootstrap (po_download_command_format): New global.
21785         (download_po_files): Use rsync.
21786         (update_po_files): Don't remove .po files after download,
21787         so future rsync runs can take advantage of the copies.
21788
21789         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
21790
21791         Solve the unnecessary-.po-file-regeneration problem once and for all.
21792         * build-aux/bootstrap (download_po_files): New function, renamed from
21793         get_translations.  Now, downloads, but doesn't update LINGUAS.
21794         (update_po_files): New function.
21795
21796         bootstrap: Ignore more.
21797         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
21798         uniwidth to e.g., lib/.gitignore.
21799         (slurp): Handle the sys_stat_.h -> sys mapping, too.
21800
21801         * build-aux/bootstrap: New setting: vc_ignore.
21802         (insert_sorted_if_absent): Create $file if absent.
21803         Adapt to new, possibly empty, list: $vc_ignore.
21804
21805         bootstrap: generate more ignorable names
21806         * build-aux/bootstrap (slurp): When generating ignorable names,
21807         also map .sin to .sed, .gperf to .c, and .y to .c.
21808
21809 2007-09-03  Jim Meyering  <jim@meyering.net>
21810
21811         * build-aux/git-version-gen: New file, from coreutils.  For details, see
21812         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
21813
21814 2007-09-02  Bruno Haible  <bruno@clisp.org>
21815
21816         Fix mis-recognition of 'mcs' on QNX 6.
21817         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
21818         output contains the string "Mono".
21819         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
21820         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
21821
21822 2007-09-01  Bruno Haible  <bruno@clisp.org>
21823
21824         Fix collision between uniwidth/* and linebreak modules.
21825         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
21826         u32_width): Remove declarations.
21827         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
21828         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
21829         streq3, streq2, streq1, streq0): Remove functions.
21830         (STREQ): Remove macro.
21831         (is_cjk_encoding): Remove function.
21832         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
21833         (uc_width, u8_width, u16_width, u32_width): Remove functions.
21834         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
21835         * NEWS: Document the change.
21836
21837 2007-09-01  Bruno Haible  <bruno@clisp.org>
21838
21839         * lib/streq.h: Add double-inclusion guard.
21840
21841 2007-09-01  Karl Berry  <karl@gnu.org>
21842
21843         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
21844
21845 2007-08-28  Jim Meyering  <jim@meyering.net>
21846
21847         Rename mreadlink_with_size to areadlink_with_size.
21848         * NEWS: Document the change.
21849         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
21850         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
21851         * lib/mreadlink.h: Rename this to...
21852         * lib/areadlink.h: ...this.
21853         * modules/mreadlink-with-size: Rename this to...
21854         * modules/areadlink-with-size: ...this.
21855         * lib/canonicalize.c: Reflect the renaming.
21856         * modules/canonicalize: Likewise.
21857
21858 2007-08-26  Bruno Haible  <bruno@clisp.org>
21859
21860         * gnulib-tool (func_import): When deciding which files to remove,
21861         consider also dangling symbolic links.
21862         Reported by Eric Blake.
21863
21864 2007-08-26  Bruno Haible  <bruno@clisp.org>
21865
21866         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
21867
21868 2007-08-23  Simon Josefsson  <simon@josefsson.org>
21869
21870         * lib/readline.c: Don't include getline.h, the prototype is now
21871         found in stdio.h.
21872
21873 2007-08-23  Jim Meyering  <jim@meyering.net>
21874
21875         Getdelim touchup.
21876         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
21877         around the funlockfile call, since funlockfile never sets errno.
21878         Don't set errno upon failed realloc.
21879
21880 2007-08-22  Eric Blake  <ebb9@byu.net>
21881
21882         Getline touchups.
21883         * lib/getdelim.c (getdelim): Revert regression that required *n to
21884         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
21885         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
21886         getdelim, rather than whether implementation is missing.
21887         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
21888         * lib/stdio_.h (getline): Also declare if replacement is
21889         required.
21890         * doc/functions/getdelim.texi: New file.
21891         * doc/functions/getline.texi: Likewise.
21892         * doc/gnulib.texi (Function Substitutes): Add new files.
21893         Reported by Bruno Haible.
21894
21895 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
21896
21897         * users.txt: Add Guile.
21898
21899 2007-08-22  Eric Blake  <ebb9@byu.net>
21900
21901         * tests/test-getdelim.c (main): Use remove, not unlink.
21902         * tests/test-getline.c (main): Likewise.
21903
21904         Move getline and getdelim into stdio.h, per POSIX 200x.
21905         * modules/getline (Files): Remove getline.h.
21906         (Depends-on): Add stdio.
21907         (configure.ac): Add module indicator.
21908         * modules/getdelim (Files): Remove getdelim.h.
21909         (Depends-on): Add stdio.
21910         (configure.ac): Add module indicator.
21911         * modules/stdio (Makefile.am): Work with new indicators.
21912         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
21913         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
21914         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21915         * lib/getdelim.h: Delete.
21916         * lib/getline.h: Delete.
21917         * lib/stdio_.h (getdelim, getline): Declare.
21918         * modules/getdelim-tests: New module.
21919         * modules/getline-tests: Likewise.
21920         * tests/test-getdelim.c: New file.
21921         * tests/test-getline.c: Likewise.
21922         * NEWS: Document the change.
21923         * lib/getline.c: Update choice of header.
21924         * lib/csharpcomp.c: Likewise.
21925         * lib/getpass.c: Likewise.
21926         * lib/javacomp.c: Likewise.
21927         * lib/javaversion.c: Likewise.
21928         * lib/yesno.c: Likewise.
21929         * lib/getdelim.c: Likewise.
21930         (getdelim): Set errno on failure, and avoid memory leak.
21931
21932 2007-08-19  Bruno Haible  <bruno@clisp.org>
21933
21934         * modules/closein (Depends-on): Add freadahead.
21935         * lib/closein.c: Include freadahead.h.
21936         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
21937         is zero.
21938
21939 2007-08-19  Bruno Haible  <bruno@clisp.org>
21940
21941         * modules/freadahead-tests: New file.
21942         * tests/test-freadahead.sh: New file.
21943         * tests/test-freadahead.c: New file.
21944
21945         * modules/freadahead: New file.
21946         * lib/freadahead.h: New file.
21947         * lib/freadahead.c: New file.
21948         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
21949         fbufmode, fpurge, freadable, fwritable.
21950
21951 2007-08-19  Eric Blake  <ebb9@byu.net>
21952
21953         Test yesno in combination with closein.
21954         * lib/yesno.c (yesno): Document use of stdin.
21955         * modules/yesno-tests (Files): New module.
21956         * tests/test-yesno.c (main): New file.
21957         * tests/test-yesno.sh: Likewise.
21958
21959 2007-08-19  Bruno Haible  <bruno@clisp.org>
21960
21961         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
21962         * lib/fseeko.c (rpl_fseeko): Likewise.
21963         * lib/fseterr.c (fseterr): Likewise.
21964
21965 2007-08-19  Bruno Haible  <bruno@clisp.org>
21966
21967         * tests/test-lseek.c (main): Disable a test for BeOS.
21968         * doc/functions/lseek.texi: Document the BeOS bug.
21969
21970 2007-08-19  Bruno Haible  <bruno@clisp.org>
21971             Eric Blake  <ebb9@byu.net>
21972
21973         * lib/lseek.c: Include <sys/stat.h>.
21974         (rpl_lseek): Add workaround code also for Unix platforms.
21975         Needed for BeOS.
21976         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
21977         * doc/functions/lseek.texi: Document BeOS definiency.
21978
21979 2007-08-18  Bruno Haible  <bruno@clisp.org>
21980
21981         * modules/fstrcmp-tests: New file.
21982         * tests/test-fstrcmp.c: New file.
21983
21984 2007-08-18  Bruno Haible  <bruno@clisp.org>
21985
21986         * modules/fstrcmp: New file, from GNU gettext with modifications.
21987         * lib/fstrcmp.h: New file, from GNU gettext.
21988         * lib/fstrcmp.c: New file, from GNU gettext.
21989         * MODULES.html.sh (String handling): Add fstrcmp.
21990
21991 2007-08-18  Bruno Haible  <bruno@clisp.org>
21992
21993         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
21994         'bool'.
21995         (diag, compareseq): Remove const from the ctxt argument.
21996         (USE_HEURISTIC): Undefine at the end.
21997
21998 2007-08-18  Jim Meyering  <jim@meyering.net>
21999
22000         New file: lib/idcache.h
22001         * NEWS: Mention the addition.
22002         * modules/idcache (Files): Add lib/idcache.h
22003         * lib/idcache.c: Include "idcache.h".
22004         Don't include <sys/types.h>.
22005         Add a FIXME comment.
22006         Move file-scoped "static" declarations to the top.
22007         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
22008
22009 2007-08-17  Bruno Haible  <bruno@clisp.org>
22010         and Paul Eggert  <eggert@cs.ucla.edu>
22011
22012         * MODULES.html.sh: Add diffseq.
22013         * modules/diffseq: New file.
22014         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
22015         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
22016
22017 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22018
22019         Import changes from coreutils for bootstrap script.
22020
22021         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
22022
22023         * build-aux/bootstrap (slurp): Work even in environments where
22024         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
22025         current code does not slurp files whose names start with ".", and
22026         this looks like it might be a troublesome area.
22027
22028         2007-07-11  Jim Meyering  <jim@meyering.net>
22029
22030         If there's a GPL vN copyright comment, require that N == 3.
22031
22032         2007-07-08  Jim Meyering  <jim@meyering.net>
22033
22034         Run the coreutils-specific code only if tests/Makefile.am.in exists.
22035         * build-aux/bootstrap (mam_template): Move definition out of loop.
22036
22037         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
22038
22039         * build-aux/bootstrap (symlink_to_dir): Rename function from
22040         symlink_to_gnulib.  Add a directory parameter.  Update all
22041         callers.
22042         (cp_mark_as_generated): Also check for -- and link to -- files in
22043         gl/.
22044
22045         2007-07-08  Jim Meyering  <jim@meyering.net>
22046
22047         Adapt to deeper hierarchy in gnulib.
22048         * build-aux/bootstrap (symlink_to_dir): If the destination
22049         directory doesn't exist, create it. This is required at least for
22050         "lib/uniwidth/cjk.h".
22051
22052         2007-05-15  Jim Meyering  <jim@meyering.net>
22053
22054         * build-aux/bootstrap: Now that generated Makefile.am files
22055         are no longer under version control, they must be created at
22056         bootstrap time.
22057
22058 2007-08-14  Ben Pfaff  <blp@gnu.org>
22059
22060         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
22061
22062 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22063
22064         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
22065         given the changes below.
22066         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
22067         even on hosts that have padding bits beyond the supported 64.
22068
22069 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22070
22071         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
22072         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
22073         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
22074         depends on it.
22075         (xstrtol_error): Remove.
22076         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
22077         but with a different signature.
22078         (ATTRIBUTE_NORETURN, __attribute__): New macros.
22079         * lib/xstrtol-error.c: Include exitfail.h.
22080         (xstrtol_fatal): New function, with a different signature from the
22081         old xstrtol_error, so that the caller need not worry about passing
22082         in an exit status, or about storage management of the option argument.
22083         (xstrtol_error): Now a static function.  Redo signature to
22084         implement xstrtol_fatal.  Output the correct number of hyphens in
22085         front of the option so that the caller need not worry about
22086         storage management.
22087         (N_): New macro.
22088         (_): Remove; not used now.
22089         * modules/xstrtol: Depend on getopt.
22090         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
22091         of old STRTOL_FATAL_ERROR macro.
22092         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
22093         of test program.
22094         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
22095         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
22096
22097 2007-08-08  Eric Blake  <ebb9@byu.net>
22098
22099         * lib/xstrtol-error.c: Add missing include.
22100
22101         Move xstrtol messages into gnulib domain, when --pobase is used.
22102         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
22103         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
22104         * modules/xstrtol (Files): Distribute new file.
22105         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
22106         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
22107         * tests/test-xstrtol.c: ...into new file.
22108         * tests/test-xstrtoul.c: Also test xstrtoul.
22109         * tests/test-xstrtoimax.c: Also test xstrtoimax.
22110         * tests/test-xstrtoumax.c: Also test xstrtoumax.
22111         * tests/test-xstrtol.sh: Drive the tests.
22112         * tests/test-xstrtoimax.sh: Likewise.
22113         * tests/test-xstrtoumax.sh: Likewise.
22114         * modules/xstrtol-tests: New module.
22115         * modules/xstrtoimax-tests: Likewise.
22116         * modules/xstrtoumax-tests: Likewise.
22117
22118 2007-08-08  Jim Meyering  <jim@meyering.net>
22119
22120         New function: mfile_name_concat.
22121         * lib/filenamecat.c (mfile_name_concat): New function, just like
22122         file_name_concat, but return NULL upon failure rather than exiting
22123         with a diagnostic.
22124         * lib/filenamecat.h: Declare it.
22125
22126 2007-08-07  Bruno Haible  <bruno@clisp.org>
22127
22128         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
22129         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
22130         warning from gcc.
22131         Reported by Eric Blake.
22132
22133 2007-08-07  Simon Josefsson  <simon@josefsson.org>
22134
22135         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
22136         * modules/crypto/arcfour (License): Likewise.
22137         * modules/crypto/des-tests (License): Likewise.
22138         * modules/crypto/gc-arctwo-tests (License): Likewise.
22139         * modules/crypto/gc-des-tests (License): Likewise.
22140         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
22141         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
22142         * modules/crypto/gc-md2-tests (License): Likewise.
22143         * modules/crypto/gc-md4-tests (License): Likewise.
22144         * modules/crypto/gc-md5-tests (License): Likewise.
22145         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
22146         * modules/crypto/gc-rijndael-tests (License): Likewise.
22147         * modules/crypto/gc-sha1-tests (License): Likewise.
22148         * modules/crypto/gc-tests (License): Likewise.
22149         * modules/crypto/hmac-md5 (License): Likewise.
22150         * modules/crypto/hmac-sha1 (License): Likewise.
22151         * modules/crypto/md2-tests (License): Likewise.
22152         * modules/crypto/md4-tests (License): Likewise.
22153         * modules/crypto/md5 (License): Likewise.
22154         * modules/crypto/rijndael (License): Likewise.
22155         * modules/crypto/sha1 (License): Likewise.
22156         * modules/memxor (License): Likewise.
22157
22158 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
22159         and Bruno Haible  <bruno@clisp.org>
22160
22161         * NEWS: Describe interface changes to human, xstrtol.
22162         * lib/human.h: Include <xstrtol.h>.
22163         (human_options): Return enum strtol_error, not int.  Remove
22164         bool arg; take int * instead.
22165         * lib/human.c: Don't include "gettext.h".
22166         (_): Remove; no longer used.
22167         Don't include <xstrtol.h>, since human.h does it.
22168         (human_options): Adjust to abovementioned interface changes.
22169         Do not report error to stderr; that's now the caller's
22170         responsibility.
22171         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
22172         interface change.
22173         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
22174         Str, Argument_type_string.  All uses changed.  Put " argument"
22175         in diagnostics to make them clearer.  Change wording of suffix
22176         message for clarity.
22177         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
22178         Argument_type_string.
22179         (STRTOL_FATAL_WARN): Remove; no longer used.
22180         * modules/human (Depends-on): Remove gettext-h.
22181
22182 2007-08-06  Simon Josefsson  <simon@josefsson.org>
22183
22184         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
22185
22186 2007-07-31  Bruno Haible  <bruno@clisp.org>
22187
22188         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
22189         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
22190         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
22191
22192 2007-07-31  Bruno Haible  <bruno@clisp.org>
22193
22194         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
22195         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
22196
22197 2007-07-30  Bruno Haible  <bruno@clisp.org>
22198
22199         * modules/base64 (License): Use the synonymous term "LGPLv2+".
22200         * modules/c-ctype (License): Likewise.
22201         * modules/c-strcase (License): Likewise.
22202         * modules/check-version (License): Likewise.
22203         * modules/iconv (License): Likewise.
22204         * modules/iconv_open (License): Likewise.
22205         * modules/read-file (License): Likewise.
22206         * modules/striconv (License): Likewise.
22207         * modules/strverscmp (License): Likewise.
22208         * modules/vasprintf (License): Likewise.
22209         * modules/crypto/des (License): Likewise.
22210         * modules/crypto/gc (License): Likewise.
22211         * modules/crypto/gc-arcfour (License): Likewise.
22212         * modules/crypto/gc-arctwo (License): Likewise.
22213         * modules/crypto/gc-des (License): Likewise.
22214         * modules/crypto/gc-hmac-md5 (License): Likewise.
22215         * modules/crypto/gc-hmac-sha1 (License): Likewise.
22216         * modules/crypto/gc-md2 (License): Likewise.
22217         * modules/crypto/gc-md4 (License): Likewise.
22218         * modules/crypto/gc-md5 (License): Likewise.
22219         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
22220         * modules/crypto/gc-random (License): Likewise.
22221         * modules/crypto/gc-rijndael (License): Likewise.
22222         * modules/crypto/gc-sha1 (License): Likewise.
22223         * modules/crypto/md2 (License): Likewise.
22224         * modules/crypto/md4 (License): Likewise.
22225
22226 2007-07-30  Jim Meyering  <jim@meyering.net>
22227
22228         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
22229         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
22230         it has valid stat data.  This bug would cause du not to count the
22231         sizes of inaccessible directories.
22232         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
22233         in <http://bugzilla.redhat.com/250077>.
22234
22235 2007-07-25  Peter O'Gorman  <peter@pogma.com>
22236             Bruno Haible  <bruno@clisp.org>
22237
22238         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
22239         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
22240         #include_next, gives a diagnostic about it, but reports no error in
22241         the exit code.
22242         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
22243
22244 2007-07-24  Ben Pfaff  <blp@gnu.org>
22245
22246         Improve name: "count-one-bits" is better than "popcount".
22247         * MODULES.html.sh: Update name.
22248         * lib/popcount.h: Renamed lib/count-one-bits.h.
22249         (popcount): Renamed count_one_bits.
22250         (popcountl): Renamed count_one_bits_l.
22251         (popcountll): Renamed count_one_bits_ll.
22252         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
22253         * modules/popcount: Renamed module/count-one-bits.
22254         * modules/popcount-tests: Renamed module/count-one-bits-tests.
22255         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
22256
22257 2007-07-23  Ben Pfaff  <blp@gnu.org>
22258
22259         * lib/popcount.h (popcount32): Reduce size of constants, to allow
22260         better code generation, and add U to large constants to avoid
22261         warnings, in non-GCC case.
22262         Suggested by Bruno Haible.
22263
22264 2007-07-23  Ben Pfaff  <blp@gnu.org>
22265
22266         * lib/popcount.h: Use verify_true instead of if...abort.
22267         * modules/popcount: Depend on verify module.
22268         Suggested by Jim Meyering.
22269
22270 2007-07-23  Bruno Haible  <bruno@clisp.org>
22271
22272         * gnulib-tool (func_import): Create a .cvsignore file also when the
22273         directory is not yet in CVS but the toplevel directory is. When
22274         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
22275         Reported by Karl Berry.
22276
22277 2007-07-22  Ben Pfaff  <blp@gnu.org>
22278
22279         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
22280         case.
22281         Suggested by Eric Blake.
22282
22283 2007-07-22  Ben Pfaff  <blp@gnu.org>
22284
22285         New module: popcount.
22286         * MODULES.html.sh: Add popcount.
22287         * modules/popcount: New file.
22288         * modules/popcount-tests: New file.
22289         * tests/test-popcount.c: New file.
22290         * lib/popcount.h: New file.
22291         * m4/popcount.m4: New file.
22292
22293 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
22294
22295         * build-aux/announce-gen: Update to GPLv3.
22296
22297         * build-aux/config.guess: Update from config.
22298
22299 2007-07-21  Bruno Haible  <bruno@clisp.org>
22300
22301         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
22302         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
22303
22304 2007-07-20  Jim Meyering  <jim@meyering.net>
22305
22306         * check-module: Diagnose a self-dependency.
22307
22308 2007-07-19  Bruno Haible  <bruno@clisp.org>
22309
22310         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
22311         empty.
22312         Reported by Eric Blake.
22313
22314 2007-07-18  Bruno Haible  <bruno@clisp.org>
22315
22316         * gnulib-tool: New options --po-base, --po-domain.
22317         (func_usage): Document them.
22318         (pobase, po_domain): New variables.
22319         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
22320         DEFAULT_TEXT_DOMAIN.
22321         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
22322         (func_import): Consider pobase and po_domain. Create a po/ directory.
22323         (func_create_testdir): Set pobase and po_domain to empty.
22324         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
22325         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
22326
22327 2007-07-18  Bruno Haible  <bruno@clisp.org>
22328
22329         * gnulib-tool (func_get_automake_snippet): Synthesize also an
22330         EXTRA_DIST augmentation for files in build-aux/.
22331
22332 2007-07-16  Bruno Haible  <bruno@clisp.org>
22333
22334         * modules/lseek (License): Use the synonymous term "LGPLv2+".
22335         * modules/getdelim (License): Likewise.
22336
22337 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22338
22339         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
22340         * modules/d-type (License): Likewise.
22341         * modules/extensions (License): Likewise.
22342         * modules/fnmatch (License): Likewise.
22343         * modules/fseeko (License): Likewise.
22344         * modules/getaddrinfo (License): Likewise.
22345         * modules/getline (License): Likewise.
22346         * modules/getlogin_r (License): Likewise.
22347         * modules/getpass (License): Likewise.
22348         * modules/gettimeofday (License): Likewise.
22349         * modules/glob (License): Likewise.
22350         * modules/inet_ntop (License): Likewise.
22351         * modules/malloc (License): Likewise.
22352         * modules/malloca (License): Likewise.
22353         * modules/memmem (License): Likewise.
22354         * modules/mempcpy (License): Likewise.
22355         * modules/memset (License): Likewise.
22356         * modules/minmax (License): Likewise.
22357         * modules/mktime (License): Likewise.
22358         * modules/netinet_in (License): Likewise.
22359         * modules/pathmax (License): Likewise.
22360         * modules/poll (License): Likewise.
22361         * modules/regex (License): Likewise.
22362         * modules/snprintf (License): Likewise.
22363         * modules/stdbool (License): Likewise.
22364         * modules/stdint (License): Likewise.
22365         * modules/stdio (License): Likewise.
22366         * modules/strcase (License): Likewise.
22367         * modules/strcasestr (License): Likewise.
22368         * modules/strdup (License): Likewise.
22369         * modules/string (License): Likewise.
22370         * modules/strndup (License): Likewise.
22371         * modules/strnlen (License): Likewise.
22372         * modules/strpbrk (License): Likewise.
22373         * modules/strptime (License): Likewise.
22374         * modules/strsep (License): Likewise.
22375         * modules/sys_select (License): Likewise.
22376         * modules/sys_socket (License): Likewise.
22377         * modules/sys_stat (License): Likewise.
22378         * modules/sys_time (License): Likewise.
22379         * modules/time (License): Likewise.
22380         * modules/time_r (License): Likewise.
22381         * modules/timegm (License): Likewise.
22382         * modules/unistd (License): Likewise.
22383         * modules/vsnprintf (License): Likewise.
22384         * modules/wctype (License): Likewise.
22385
22386 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22387
22388         * modules/argz (License): LGPLv2+.
22389
22390 2007-07-15  Karl Berry  <karl@gnu.org>
22391
22392         * doc/gnulib.texi: revise node structure per new fdl.texi.
22393
22394 2007-07-14  Bruno Haible  <bruno@clisp.org>
22395
22396         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
22397         the output file.
22398         * lib/uniname/uninames.h: Regenerated.
22399
22400 2007-07-14  Karl Berry  <karl@gnu.org>
22401
22402         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
22403         omitting sectioning and index commands.
22404
22405 2007-07-13  Bruno Haible  <bruno@clisp.org>
22406
22407         New gnulib-tool option --more-symlinks.
22408         * gnulib-tool (func_usage): Document --more-symlinks.
22409         (do_copyrights): New variable.
22410         Recognize option --more-symlinks.
22411         (func_import): Don't add a copyright notice transform to
22412         sed_transform_lib_file if do_copyrights is empty.
22413
22414 2007-07-13  Bruno Haible  <bruno@clisp.org>
22415
22416         * lib/vasnprintf.c (decimal_point_char): Define also if
22417         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
22418         && !NEED_PRINTF_DIRECTIVE_A.
22419         Reported by Clemens Koller <clemens.koller@anagramm.de> via
22420         Gary V. Vaughan <gary@gnu.org>.
22421
22422 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
22423
22424         * lib/inttypes_.h: Undo previous change, since it was fixed
22425         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
22426
22427 2007-07-13  Bruno Haible  <bruno@clisp.org>
22428
22429         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
22430         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
22431
22432 2007-07-13  Jim Meyering  <jim@meyering.net>
22433
22434         df: Don't fail for Tru64's "file-on-file mount".
22435         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
22436         so we fall through and use statfs instead.  Details here:
22437         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
22438         Reported by Albert Chin.
22439
22440 2007-07-13  Bruno Haible  <bruno@clisp.org>
22441
22442         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
22443         * modules/configmake (License): Likewise.
22444         * modules/gettext (License): Likewise.
22445         * modules/gettext-h (License): Likewise.
22446         * modules/include_next (License): Likewise.
22447         * modules/link-warning (License): Likewise.
22448         * modules/localcharset (License): Likewise.
22449         * modules/localename (License): Likewise.
22450         * modules/lock (License): Likewise.
22451         * modules/relocatable-lib-lgpl (License): Likewise.
22452         * modules/size_max (License): Likewise.
22453         * modules/vasnprintf (License): Likewise.
22454         * modules/wchar (License): Likewise.
22455         * modules/xsize (License): Likewise.
22456
22457 2007-07-13  Bruno Haible  <bruno@clisp.org>
22458
22459         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
22460         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
22461
22462 2007-07-12  Bruno Haible  <bruno@clisp.org>
22463
22464         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
22465         in the modules files.
22466
22467 2007-07-11  Karl Berry  <karl@gnu.org>
22468
22469         * MODULES.html.sh (func_module): use
22470          sed -e '\|^'"${includefile}"'$|d'
22471          instead of /.../d, to avoid errors on $includefile's containing /.
22472
22473 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
22474
22475         * gnulib-tool (func_import): Avoid duplication of --avoid
22476         statements
22477         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
22478         names to `_' in variable names.
22479
22480 2007-07-10  Eric Blake  <ebb9@byu.net>
22481
22482         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
22483         * NEWS: Document this change.
22484
22485 2007-07-08  Bruno Haible  <bruno@clisp.org>
22486
22487         Update to Unicode 5.0.
22488         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
22489         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
22490         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
22491         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
22492         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
22493         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
22494         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
22495         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
22496         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
22497         U+10A3F, U+1D242..U+1D244.
22498         (nonspacing_table_ind): Update.
22499         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
22500         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
22501
22502 2007-07-08  Bruno Haible  <bruno@clisp.org>
22503
22504         Update to Unicode 5.0.
22505         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
22506         code transform. Extend the name index field of unicode_name_to_code and
22507         unicode_code_to_name from 16 to 24 bits.
22508         * lib/uniname/uniname.c (unicode_character_name,
22509         unicode_name_character): Add the range 0x12xxx to the code transform.
22510         * lib/uniname/uninames.h: Regenerated.
22511         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
22512
22513 2007-07-07  Bruno Haible  <bruno@clisp.org>
22514
22515         * modules/wcwidth-tests: New file.
22516         * tests/test-wcwidth.c: New file.
22517
22518         Work around MacOS X wcwidth() bug.
22519         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
22520         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
22521         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
22522         original wcwidth in non-UTF-8 locales.
22523         * modules/wcwidth (Depends-on): Add localcharset, streq,
22524         uniwidth/width.
22525         * doc/functions/wcwidth.texi: Update.
22526
22527 2007-07-07  Bruno Haible  <bruno@clisp.org>
22528
22529         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
22530         (wcwidth): New declaration.
22531         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
22532         macros.
22533         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
22534         here. Prepare for creating <wchar.h> unconditionally.
22535         * modules/wchar (Depends-on): Add link-warning.
22536         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
22537         REPLACE_WCWIDTH, and GL_LINK_WARNING.
22538         * lib/wcwidth.h: Remove file.
22539         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
22540         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
22541         * modules/wcwidth (Files): Remove lib/wcwidth.h.
22542         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
22543         (Include): Replace wcwidth.h with <wchar.h>.
22544         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
22545         * lib/mbchar.h: Don't include wcwidth.h.
22546         * lib/mbswidth.c: Likewise.
22547         * NEWS: Mention the change.
22548
22549 2007-07-07  Bruno Haible  <bruno@clisp.org>
22550
22551         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
22552         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
22553         definition with an external declaration.
22554         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
22555         defined as a function. Remove AC_C_INLINE requirement.
22556         * modules/wcwidth (Files): Add lib/wcwidth.c.
22557         (Makefile.am): Remove redundant statement.
22558
22559 2007-07-07  Bruno Haible  <bruno@clisp.org>
22560
22561         * MODULES.html.sh (Unicode string functions): Add the new modules.
22562
22563         * tests/uniwidth/test-u32-strwidth.c: New file.
22564         * modules/uniwidth/u32-strwidth-tests: New file.
22565
22566         * lib/uniwidth/u32-strwidth.c: New file.
22567         * modules/uniwidth/u32-strwidth: New file.
22568
22569         * tests/uniwidth/test-u16-strwidth.c: New file.
22570         * modules/uniwidth/u16-strwidth-tests: New file.
22571
22572         * lib/uniwidth/u16-strwidth.c: New file.
22573         * modules/uniwidth/u16-strwidth: New file.
22574
22575         * tests/uniwidth/test-u8-strwidth.c: New file.
22576         * modules/uniwidth/u8-strwidth-tests: New file.
22577
22578         * lib/uniwidth/u8-strwidth.c: New file.
22579         * modules/uniwidth/u8-strwidth: New file.
22580
22581         * tests/uniwidth/test-u32-width.c: New file.
22582         * modules/uniwidth/u32-width-tests: New file.
22583
22584         * lib/uniwidth/u32-width.c: New file.
22585         * modules/uniwidth/u32-width: New file.
22586
22587         * tests/uniwidth/test-u16-width.c: New file.
22588         * modules/uniwidth/u16-width-tests: New file.
22589
22590         * lib/uniwidth/u16-width.c: New file.
22591         * modules/uniwidth/u16-width: New file.
22592
22593         * tests/uniwidth/test-u8-width.c: New file.
22594         * modules/uniwidth/u8-width-tests: New file.
22595
22596         * lib/uniwidth/u8-width.c: New file.
22597         * modules/uniwidth/u8-width: New file.
22598
22599         * tests/uniwidth/test-uc_width.c: New file.
22600         * modules/uniwidth/width-tests: New file.
22601
22602         * lib/uniwidth/width.c: New file, from GNU libiconv.
22603         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
22604         * modules/uniwidth/width: New file.
22605
22606         * lib/uniwidth.h: New file, from GNU libiconv.
22607         * modules/uniwidth/base: New file.
22608
22609 2007-07-07  Bruno Haible  <bruno@clisp.org>
22610
22611         * lib/uniname.h: New file, from GNU gettext.
22612         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
22613         * lib/uniname/uninames.h: New file, from GNU gettext.
22614         * lib/uniname/uniname.c: New file, from GNU gettext.
22615         * tests/uniname/test-uninames.sh: New file.
22616         * tests/uniname/test-uninames.c: New file, from GNU gettext.
22617         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
22618         * modules/uniname/base: New file.
22619         * modules/uniname/uniname: New file.
22620         * modules/uniname/uniname-tests: New file.
22621         * MODULES.html.sh (Unicode string functions): Add the new modules.
22622
22623 2007-07-06  Bruno Haible  <bruno@clisp.org>
22624
22625         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
22626
22627 2007-07-06  Bruno Haible  <bruno@clisp.org>
22628
22629         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
22630         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
22631         includes <cygwin/sys_time.h> which includes <sys/select.h> which
22632         include <sys/time.h>.
22633         Reported by Eric Blake.
22634
22635 2007-07-06  Eric Blake  <ebb9@byu.net>
22636
22637         Fix testing canonicalize on cygwin.
22638         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
22639         Revert patch from 2007-06-19.
22640         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
22641         canonicalize module is also in use.
22642         * tests/test-canonicalize.c: New file.
22643         * tests/test-canonicalize.sh: Likewise.
22644         * modules/canonicalize-tests: Likewise.
22645
22646 2007-07-06  Jim Meyering  <jim@meyering.net>
22647
22648         * lib/getugroups.c (getugroups): Detect getgrent failure.
22649         Adjust comment to reflect reality: this function may return -1.
22650
22651 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
22652
22653         * build-aux/bootstrap (TP_URL,get_translations): Update to use
22654         the new TP address.
22655         (usage): Fix typo
22656         (gnulib_mk): New variable.
22657
22658 2007-07-05  Jim Meyering  <jim@meyering.net>
22659
22660         Don't let endgrent clobber errno, no matter how improbable.
22661         * lib/getugroups.c (getugroups): Save and restore errno around
22662         endgrent call.
22663
22664         Close the group DB even when failing with 2^31 or more members.
22665         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
22666
22667 2007-07-04  Jim Meyering  <jim@meyering.net>
22668
22669         * lib/getugroups.h: New file.
22670         * lib/getugroups.c: Include "getugroups.h".
22671         Remove uses of "register" keyword.
22672         Move local variable, "cp", down into scope where used.
22673         Give "username" parameter the "const" attribute.
22674         * modules/getugroups (Files): Add lib/getugroups.h
22675
22676 2007-07-04  Karl Berry  <karl@gnu.org>
22677
22678         * MODULES.html.sh (func_all_modules): Complete rename of
22679         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
22680
22681 2007-07-02  Bruno Haible  <bruno@clisp.org>
22682
22683         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
22684         mode, when inttypes.h comes from gnulib.
22685         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
22686
22687 2007-07-02  Simon Josefsson  <simon@josefsson.org>
22688
22689         * NEWS: Mention lgpl module name change.
22690
22691         * modules/lgpl-2.1: Renamed from lgpl.
22692
22693         * NEWS: Mention gpl module name change.
22694
22695         * modules/gpl-3.0: New file, based on gpl-2.0.
22696
22697         * modules/gpl-2.0: Renamed from gpl.
22698
22699         * modules/gpl: Fix filename, doc/gpl.texi is now found at
22700         doc/gpl-2.0.texi.
22701
22702 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
22703
22704         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
22705         #define __STDC_LIMIT_MACROS temporarily while including
22706         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
22707         Problem reported by Joel E. Denny in
22708         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
22709
22710 2007-07-01  Bruno Haible  <bruno@clisp.org>
22711
22712         * lib/unistdio.h: New file.
22713         * lib/unistdio/u-asnprintf.h: New file.
22714         * lib/unistdio/u-asprintf.h: New file.
22715         * lib/unistdio/u-printf-args.c: New file.
22716         * lib/unistdio/u-printf-args.h: New file.
22717         * lib/unistdio/u-printf-parse.h: New file.
22718         * lib/unistdio/u-snprintf.h: New file.
22719         * lib/unistdio/u-sprintf.h: New file.
22720         * lib/unistdio/u-vasprintf.h: New file.
22721         * lib/unistdio/u-vsnprintf.h: New file.
22722         * lib/unistdio/u-vsprintf.h: New file.
22723         * lib/unistdio/ulc-asnprintf.c: New file.
22724         * lib/unistdio/ulc-asprintf.c: New file.
22725         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
22726         * lib/unistdio/ulc-printf-parse.c: New file.
22727         * lib/unistdio/ulc-snprintf.c: New file.
22728         * lib/unistdio/ulc-sprintf.c: New file.
22729         * lib/unistdio/ulc-vasnprintf.c: New file.
22730         * lib/unistdio/ulc-vasprintf.c: New file.
22731         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
22732         * lib/unistdio/ulc-vsnprintf.c: New file.
22733         * lib/unistdio/ulc-vsprintf.c: New file.
22734         * lib/unistdio/u8-asnprintf.c: New file.
22735         * lib/unistdio/u8-asprintf.c: New file.
22736         * lib/unistdio/u8-printf-parse.c: New file.
22737         * lib/unistdio/u8-snprintf.c: New file.
22738         * lib/unistdio/u8-sprintf.c: New file.
22739         * lib/unistdio/u8-vasnprintf.c: New file.
22740         * lib/unistdio/u8-vasprintf.c: New file.
22741         * lib/unistdio/u8-vsnprintf.c: New file.
22742         * lib/unistdio/u8-vsprintf.c: New file.
22743         * lib/unistdio/u8-u8-asnprintf.c: New file.
22744         * lib/unistdio/u8-u8-asprintf.c: New file.
22745         * lib/unistdio/u8-u8-snprintf.c: New file.
22746         * lib/unistdio/u8-u8-sprintf.c: New file.
22747         * lib/unistdio/u8-u8-vasnprintf.c: New file.
22748         * lib/unistdio/u8-u8-vasprintf.c: New file.
22749         * lib/unistdio/u8-u8-vsnprintf.c: New file.
22750         * lib/unistdio/u8-u8-vsprintf.c: New file.
22751         * lib/unistdio/u16-asnprintf.c: New file.
22752         * lib/unistdio/u16-asprintf.c: New file.
22753         * lib/unistdio/u16-printf-parse.c: New file.
22754         * lib/unistdio/u16-snprintf.c: New file.
22755         * lib/unistdio/u16-sprintf.c: New file.
22756         * lib/unistdio/u16-vasnprintf.c: New file.
22757         * lib/unistdio/u16-vasprintf.c: New file.
22758         * lib/unistdio/u16-vsnprintf.c: New file.
22759         * lib/unistdio/u16-vsprintf.c: New file.
22760         * lib/unistdio/u16-u16-asnprintf.c: New file.
22761         * lib/unistdio/u16-u16-asprintf.c: New file.
22762         * lib/unistdio/u16-u16-snprintf.c: New file.
22763         * lib/unistdio/u16-u16-sprintf.c: New file.
22764         * lib/unistdio/u16-u16-vasnprintf.c: New file.
22765         * lib/unistdio/u16-u16-vasprintf.c: New file.
22766         * lib/unistdio/u16-u16-vsnprintf.c: New file.
22767         * lib/unistdio/u16-u16-vsprintf.c: New file.
22768         * lib/unistdio/u32-asnprintf.c: New file.
22769         * lib/unistdio/u32-asprintf.c: New file.
22770         * lib/unistdio/u32-printf-parse.c: New file.
22771         * lib/unistdio/u32-snprintf.c: New file.
22772         * lib/unistdio/u32-sprintf.c: New file.
22773         * lib/unistdio/u32-vasnprintf.c: New file.
22774         * lib/unistdio/u32-vasprintf.c: New file.
22775         * lib/unistdio/u32-vsnprintf.c: New file.
22776         * lib/unistdio/u32-vsprintf.c: New file.
22777         * lib/unistdio/u32-u32-asnprintf.c: New file.
22778         * lib/unistdio/u32-u32-asprintf.c: New file.
22779         * lib/unistdio/u32-u32-snprintf.c: New file.
22780         * lib/unistdio/u32-u32-sprintf.c: New file.
22781         * lib/unistdio/u32-u32-vasnprintf.c: New file.
22782         * lib/unistdio/u32-u32-vasprintf.c: New file.
22783         * lib/unistdio/u32-u32-vsnprintf.c: New file.
22784         * lib/unistdio/u32-u32-vsprintf.c: New file.
22785         * tests/unistdio/test-ulc-asnprintf1.c: New file.
22786         * tests/unistdio/test-ulc-asnprintf1.h: New file.
22787         * tests/unistdio/test-ulc-printf1.h: New file.
22788         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
22789         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
22790         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
22791         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
22792         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
22793         * tests/unistdio/test-ulc-vasprintf1.c: New file.
22794         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
22795         * tests/unistdio/test-ulc-vsprintf1.c: New file.
22796         * tests/unistdio/test-u8-asnprintf1.c: New file.
22797         * tests/unistdio/test-u8-asnprintf1.h: New file.
22798         * tests/unistdio/test-u8-printf1.h: New file.
22799         * tests/unistdio/test-u8-vasnprintf1.c: New file.
22800         * tests/unistdio/test-u8-vasnprintf2.c: New file.
22801         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
22802         * tests/unistdio/test-u8-vasnprintf3.c: New file.
22803         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
22804         * tests/unistdio/test-u8-vasprintf1.c: New file.
22805         * tests/unistdio/test-u8-vsnprintf1.c: New file.
22806         * tests/unistdio/test-u8-vsprintf1.c: New file.
22807         * tests/unistdio/test-u16-asnprintf1.c: New file.
22808         * tests/unistdio/test-u16-asnprintf1.h: New file.
22809         * tests/unistdio/test-u16-printf1.h: New file.
22810         * tests/unistdio/test-u16-vasnprintf1.c: New file.
22811         * tests/unistdio/test-u16-vasnprintf2.c: New file.
22812         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
22813         * tests/unistdio/test-u16-vasnprintf3.c: New file.
22814         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
22815         * tests/unistdio/test-u16-vasprintf1.c: New file.
22816         * tests/unistdio/test-u16-vsnprintf1.c: New file.
22817         * tests/unistdio/test-u16-vsprintf1.c: New file.
22818         * tests/unistdio/test-u32-asnprintf1.c: New file.
22819         * tests/unistdio/test-u32-asnprintf1.h: New file.
22820         * tests/unistdio/test-u32-printf1.h: New file.
22821         * tests/unistdio/test-u32-vasnprintf1.c: New file.
22822         * tests/unistdio/test-u32-vasnprintf2.c: New file.
22823         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
22824         * tests/unistdio/test-u32-vasnprintf3.c: New file.
22825         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
22826         * tests/unistdio/test-u32-vasprintf1.c: New file.
22827         * tests/unistdio/test-u32-vsnprintf1.c: New file.
22828         * tests/unistdio/test-u32-vsprintf1.c: New file.
22829         * modules/unistdio/base: New file.
22830         * modules/unistdio/u-printf-args: New file.
22831         * modules/unistdio/ulc-asnprintf: New file.
22832         * modules/unistdio/ulc-asprintf: New file.
22833         * modules/unistdio/ulc-fprintf: New file.
22834         * modules/unistdio/ulc-printf-parse: New file.
22835         * modules/unistdio/ulc-snprintf: New file.
22836         * modules/unistdio/ulc-sprintf: New file.
22837         * modules/unistdio/ulc-vasnprintf: New file.
22838         * modules/unistdio/ulc-vasprintf: New file.
22839         * modules/unistdio/ulc-vfprintf: New file.
22840         * modules/unistdio/ulc-vsnprintf: New file.
22841         * modules/unistdio/ulc-vsprintf: New file.
22842         * modules/unistdio/u8-asnprintf: New file.
22843         * modules/unistdio/u8-asprintf: New file.
22844         * modules/unistdio/u8-printf-parse: New file.
22845         * modules/unistdio/u8-snprintf: New file.
22846         * modules/unistdio/u8-sprintf: New file.
22847         * modules/unistdio/u8-vasnprintf: New file.
22848         * modules/unistdio/u8-vasprintf: New file.
22849         * modules/unistdio/u8-vsnprintf: New file.
22850         * modules/unistdio/u8-vsprintf: New file.
22851         * modules/unistdio/u8-u8-asnprintf: New file.
22852         * modules/unistdio/u8-u8-asprintf: New file.
22853         * modules/unistdio/u8-u8-snprintf: New file.
22854         * modules/unistdio/u8-u8-sprintf: New file.
22855         * modules/unistdio/u8-u8-vasnprintf: New file.
22856         * modules/unistdio/u8-u8-vasprintf: New file.
22857         * modules/unistdio/u8-u8-vsnprintf: New file.
22858         * modules/unistdio/u8-u8-vsprintf: New file.
22859         * modules/unistdio/u16-asnprintf: New file.
22860         * modules/unistdio/u16-asprintf: New file.
22861         * modules/unistdio/u16-printf-parse: New file.
22862         * modules/unistdio/u16-snprintf: New file.
22863         * modules/unistdio/u16-sprintf: New file.
22864         * modules/unistdio/u16-vasnprintf: New file.
22865         * modules/unistdio/u16-vasprintf: New file.
22866         * modules/unistdio/u16-vsnprintf: New file.
22867         * modules/unistdio/u16-vsprintf: New file.
22868         * modules/unistdio/u16-u16-asnprintf: New file.
22869         * modules/unistdio/u16-u16-asprintf: New file.
22870         * modules/unistdio/u16-u16-snprintf: New file.
22871         * modules/unistdio/u16-u16-sprintf: New file.
22872         * modules/unistdio/u16-u16-vasnprintf: New file.
22873         * modules/unistdio/u16-u16-vasprintf: New file.
22874         * modules/unistdio/u16-u16-vsnprintf: New file.
22875         * modules/unistdio/u16-u16-vsprintf: New file.
22876         * modules/unistdio/u32-asnprintf: New file.
22877         * modules/unistdio/u32-asprintf: New file.
22878         * modules/unistdio/u32-printf-parse: New file.
22879         * modules/unistdio/u32-snprintf: New file.
22880         * modules/unistdio/u32-sprintf: New file.
22881         * modules/unistdio/u32-vasnprintf: New file.
22882         * modules/unistdio/u32-vasprintf: New file.
22883         * modules/unistdio/u32-vsnprintf: New file.
22884         * modules/unistdio/u32-vsprintf: New file.
22885         * modules/unistdio/u32-u32-asnprintf: New file.
22886         * modules/unistdio/u32-u32-asprintf: New file.
22887         * modules/unistdio/u32-u32-snprintf: New file.
22888         * modules/unistdio/u32-u32-sprintf: New file.
22889         * modules/unistdio/u32-u32-vasnprintf: New file.
22890         * modules/unistdio/u32-u32-vasprintf: New file.
22891         * modules/unistdio/u32-u32-vsnprintf: New file.
22892         * modules/unistdio/u32-u32-vsprintf: New file.
22893         * modules/unistdio/ulc-asnprintf-tests: New file.
22894         * modules/unistdio/ulc-vasnprintf-tests: New file.
22895         * modules/unistdio/ulc-vasprintf-tests: New file.
22896         * modules/unistdio/ulc-vsnprintf-tests: New file.
22897         * modules/unistdio/ulc-vsprintf-tests: New file.
22898         * modules/unistdio/u8-asnprintf-tests: New file.
22899         * modules/unistdio/u8-vasnprintf-tests: New file.
22900         * modules/unistdio/u8-vasprintf-tests: New file.
22901         * modules/unistdio/u8-vsnprintf-tests: New file.
22902         * modules/unistdio/u8-vsprintf-tests: New file.
22903         * modules/unistdio/u16-asnprintf-tests: New file.
22904         * modules/unistdio/u16-vasnprintf-tests: New file.
22905         * modules/unistdio/u16-vasprintf-tests: New file.
22906         * modules/unistdio/u16-vsnprintf-tests: New file.
22907         * modules/unistdio/u16-vsprintf-tests: New file.
22908         * modules/unistdio/u32-asnprintf-tests: New file.
22909         * modules/unistdio/u32-vasnprintf-tests: New file.
22910         * modules/unistdio/u32-vasprintf-tests: New file.
22911         * modules/unistdio/u32-vsnprintf-tests: New file.
22912         * modules/unistdio/u32-vsprintf-tests: New file.
22913         * MODULES.html.sh (Unicode string functions): Add the new modules.
22914
22915 2007-07-01  Bruno Haible  <bruno@clisp.org>
22916
22917         * lib/sprintf.c (sprintf): Limit the available length estimation,
22918         to avoid address wraparound.
22919         * lib/vsprintf.c (vsprintf): Likewise.
22920         * modules/sprintf-posix (Dependencies): Add stdint.
22921         * modules/vsprintf-posix (Dependencies): Likewise.
22922
22923 2007-07-01  Bruno Haible  <bruno@clisp.org>
22924
22925         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
22926         Windows PATH as well. Conservative double-quoting. Comments.
22927
22928 2007-07-01  Bruno Haible  <bruno@clisp.org>
22929             Eric Blake  <ebb9@byu.net>
22930             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22931
22932         * gnulib-tool (self_abspathname): Fix algorithm to cope with
22933         empty components in $PATH, denoting '.'.
22934
22935 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22936
22937         * gnulib-tool: Fix indentation.
22938         (func_create_megatestdir): Likewise.
22939         Report by Bruno Haible.
22940
22941 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22942
22943         Sync from Automake.
22944         * build-aux/gnupload: Fix shell portability issues with for loops.
22945         Report by Karl Berry.
22946
22947 2007-06-29  Simon Josefsson  <simon@josefsson.org>
22948
22949         * build-aux/maint.mk (POURL): Use translationproject.org.
22950
22951 2007-06-27  Simon Josefsson  <simon@josefsson.org>
22952             Bruno Haible  <bruno@clisp.org>
22953
22954         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
22955         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
22956         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
22957         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
22958         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
22959
22960 2007-06-27  Bruno Haible  <bruno@clisp.org>
22961
22962         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
22963         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
22964
22965 2007-06-26  Karl Berry  <karl@gnu.org>
22966
22967         * MODULES.html.sh: remove xreadlink-with-size.
22968
22969 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
22970
22971         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
22972         method that I hope also handles the double-include problem noted
22973         by Bruno Haible in
22974         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
22975
22976 2007-06-23  Bruno Haible  <bruno@clisp.org>
22977
22978         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22979         Don't let the 'mostlyclean' target fail if the last subdirectory could
22980         not be removed.
22981         Reported by Karl Berry.
22982
22983 2007-06-23  Bruno Haible  <bruno@clisp.org>
22984
22985         * gnulib-tool (echo): Add a speedier workaround for ksh.
22986         * tests/test-echo.sh: Likewise.
22987
22988 2007-06-23  Bruno Haible  <bruno@clisp.org>
22989
22990         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
22991         * tests/test-echo.sh: Likewise.
22992
22993 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22994
22995         * gnulib-tool (IFS): Initialize early, so we don't set it to
22996         empty later.
22997         (self_abspathname): Rewrite algorithm to set it, reindent.
22998         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
22999         (func_create_megatestdir): Merge some sed scripts.
23000
23001 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
23002
23003         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
23004         exposed by Sun Studio 11 cc on Solaris 8.
23005
23006 2007-06-22  Bruno Haible  <bruno@clisp.org>
23007
23008         * gnulib-tool (echo): Ensure the echo primitive does not interpret
23009         backslashes.
23010         * tests/test-echo.sh: New file.
23011
23012 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23013
23014         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
23015         simplify `sed_replace_build_aux' scripts, they are portable but
23016         echoing them with `echo' is not.
23017         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
23018
23019 2007-06-21  Karl Berry  <karl@gnu.org>
23020
23021         * config/srclist.txt: guess we can't handle the licenses via
23022         srclist at the moment.
23023
23024 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
23025
23026         * MODULES.html.sh: Add include_next.
23027         * modules/include_next: New file.
23028
23029 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
23030
23031         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
23032         INCLUDE_NEXT.
23033         (gl_CHECK_NEXT_HEADERS): New macro.
23034         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
23035         the obsolescent gl_ABSOLUTE_HEADER.
23036         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
23037         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
23038         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
23039         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23040         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
23041         * m4/math_h.m4 (gl_MATH_H): Likewise.
23042         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
23043         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23044         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
23045         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23046         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
23047         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
23048         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
23049         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23050         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23051         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
23052         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
23053         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
23054         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
23055         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23056         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23057         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
23058         * m4/inttypes.m4 (gl_INTTYPES_H): Define
23059         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
23060         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
23061         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
23062         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
23063         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
23064         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
23065         * lib/float_.h: Likewise.
23066         * lib/inttypes_.h: Likewise.
23067         * lib/math_.h: Likewise.
23068         * lib/search_.h: Likewise.
23069         * lib/signal_.h: Likewise.
23070         * lib/stdint_.h: Likewise.
23071         * lib/stdio_.h: Likewise.
23072         * lib/stdlib_.h: Likewise.
23073         * lib/string_.h: Likewise.
23074         * lib/sys_stat_.h: Likewise.
23075         * lib/sys_time_.h: Likewise.
23076         * lib/time_.h: Likewise.
23077         * lib/unistd_.h: Likewise.
23078         * lib/wchar_.h: Likewise.
23079         * lib/wctype_.h: Likewise.
23080         * lib/dirent_.h: Likewise.
23081         * lib/iconv_.h: Likewise.
23082         * lib/locale_.h: Likewise.
23083         * lib/netinet_in_.h: Likewise.
23084         * lib/sys_select_.h: Likewise.
23085         * lib/sys_socket_.h: Likewise.
23086         * lib/sysexits_.h: Likewise.
23087         * modules/fcntl (Depends-on): Depend on include_next, not
23088         absolute_header.
23089         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
23090         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
23091         * modules/fchdir: Likewise.
23092         * modules/float: Likewise.
23093         * modules/iconv_open: Likewise.
23094         * modules/inttypes: Likewise.
23095         * modules/locale: Likewise.
23096         * modules/math: Likewise.
23097         * modules/netinet_in: Likewise.
23098         * modules/search: Likewise.
23099         * modules/signal: Likewise.
23100         * modules/stdint: Likewise.
23101         * modules/stdio: Likewise.
23102         * modules/stdlib: Likewise.
23103         * modules/string: Likewise.
23104         * modules/sys_select: Likewise.
23105         * modules/sys_socket: Likewise.
23106         * modules/sys_stat: Likewise.
23107         * modules/sys_time: Likewise.
23108         * modules/sysexits: Likewise.
23109         * modules/time: Likewise.
23110         * modules/unistd: Likewise.
23111         * modules/wchar: Likewise.
23112         * modules/wctype: Likewise.
23113         * modules/sys_stat: Change maintainer to "all".
23114         * modules/unistd: Likewise.
23115
23116 2007-06-20  Karl Berry  <karl@gnu.org>
23117
23118         * config/srclist.txt: track www changes in license files.
23119
23120 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
23121
23122         * build-aux/bootstrap: Remove stray dot.
23123         Make sure build_aux settings are honored when linking
23124         gnulib_extra_files.
23125
23126 2007-06-19  Eric Blake  <ebb9@byu.net>
23127
23128         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
23129         Allow compilation on cygwin.
23130
23131 2007-06-19  Jim Meyering  <jim@meyering.net>
23132
23133         xreadlink-with-size: Remove module.  No longer used.
23134         Ex-callers now use xreadlink or mreadlink-with-size.
23135         * modules/xreadlink-with-size: Remove module.
23136         * lib/xreadlink-with-size.c: Remove file.
23137         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
23138         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
23139         just before the function definition *is* accurate.
23140
23141         Eliminate one way canonicalize_filename_mode could exit.
23142         * lib/canonicalize.c (canonicalize_filename_mode):
23143         Use mreadlink_with_size, not xreadlink_with_size.
23144
23145 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
23146
23147         Detect porting problems to FreeBSD/arm, which has time_t wider than
23148         long int.  Original problem reported for GNU diff by Xin Li in
23149         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
23150         * modules/getdate (Depends-on): Add intprops, verify.
23151         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
23152         is an integer type no wider than long int.
23153
23154 2007-06-18  Jim Meyering  <jim@meyering.net>
23155
23156         New module: mreadlink-with-size.
23157         * MODULES.html.sh: Add mreadlink-with-size.
23158         * modules/mreadlink-with-size: New module
23159         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
23160         not xreadlink-with-size.
23161         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
23162
23163 2007-06-16  Bruno Haible  <bruno@clisp.org>
23164
23165         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
23166         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
23167         Reported by Gary V. Vaughan <gary@gnu.org>.
23168
23169 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
23170
23171         Revamp lchown so that it lives in unistd.h where it belongs.
23172         * lib/lchown.h: Remove.
23173         * lib/dirchownmod.c: Don't include lib/lchown.h.
23174         * lib/fchownat.c: Likewise.
23175         * lib/openat.c: Likewise.
23176         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
23177         does not follow symlinks.
23178         (EOPNOTSUPP): Define if not defined.
23179         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
23180         is defined to 0.
23181         (lchown): New decl.
23182         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
23183         Do not check for lchown decl.
23184         Set REPLACE_LCHOWN.
23185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
23186         REPLACE_LCHOWN.
23187         * modules/chown: Make it clear it follows symlinks.
23188         * modules/lchown: Make it clear it doesn't follow symlinks.
23189         (Files): Remove lib/lchown.h
23190         (Depends-on): Add unistd.
23191         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
23192         (Include): Include <unistd.h>, not "lchown.h".
23193         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
23194         REPLACE_LCHOWN.
23195
23196 2007-06-15  Jim Meyering  <jim@meyering.net>
23197
23198         Change license (GPL to LGPL) of fsusage and dependents.
23199         * modules/fsusage (License): Change to LGPL.
23200         * modules/full-read (License): Likewise.
23201         * modules/full-write (License): Likewise.
23202         * modules/safe-read (License): Likewise.
23203         * modules/safe-write (License): Likewise.
23204
23205 2007-06-14  Ben Pfaff  <blp@gnu.org>
23206
23207         Missing part of allocsa -> malloca transition.
23208         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
23209         gl_MALLOCA.
23210
23211 2007-06-12  Bruno Haible  <bruno@clisp.org>
23212
23213         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
23214         to ia64, x86_64, i386.
23215         Reported by Eric Blake.
23216
23217 2007-06-12  Bruno Haible  <bruno@clisp.org>
23218
23219         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
23220         cross-compiling to x86_64.
23221
23222 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
23223
23224         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
23225         glitch reported by Ralf Wildenhues in
23226         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
23227
23228         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
23229         Vin Shelton.
23230
23231 2007-06-11  Bruno Haible  <bruno@clisp.org>
23232
23233         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
23234         replacement string.
23235         Reported by Eric Blake.
23236
23237 2007-06-10  Bruno Haible  <bruno@clisp.org>
23238
23239         Prepare vasnprintf code for use with Unicode strings.
23240         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
23241         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
23242         TYPE_U32_STRING.
23243         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
23244         a_u32_string variants.
23245         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
23246         * lib/printf-args.c: Don't include config.h and the specification
23247         header if PRINTF_FETCHARGS is already defined.
23248         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
23249         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
23250         TYPE_U16_STRING, TYPE_U32_STRING.
23251         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
23252         u16_directive, u16_directives, u32_directive, u32_directives): New
23253         types.
23254         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
23255         New declarations.
23256         * lib/printf-parse.c: Don't include config.h and the specification
23257         header if PRINTF_PARSE is already defined. Eliminate the set of
23258         parameters for WIDE_CHAR_VERSION; the user of this file must provide
23259         them now. Include c-ctype.h.
23260         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
23261         directive and CHAR_T_ONLY_ASCII.
23262         * lib/vasnprintf.c: Don't include config.h and the specification header
23263         if VASNPRINTF is already defined.
23264         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
23265         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
23266         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
23267         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
23268         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
23269         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
23270         code accordingly.
23271         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
23272         pad_ourselves also in this case, with the 'c' and 's' directives, and
23273         with a different notion of "width".
23274         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
23275
23276 2007-06-10  Bruno Haible  <bruno@clisp.org>
23277
23278         * modules/unistr/u32-mbsnlen: New file.
23279         * lib/unistr/u32-mbsnlen.c: New file.
23280
23281         * modules/unistr/u16-mbsnlen: New file.
23282         * lib/unistr/u16-mbsnlen.c: New file.
23283
23284         * modules/unistr/u8-mbsnlen: New file.
23285         * lib/unistr/u8-mbsnlen.c: New file.
23286
23287         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
23288         declarations.
23289
23290 2007-06-10  Bruno Haible  <bruno@clisp.org>
23291
23292         * lib/string_.h (mbsnlen): New declaration.
23293         * lib/mbsnlen.c: New file.
23294         * m4/mbsnlen.m4: New file.
23295         * modules/mbsnlen: New file.
23296         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
23297         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
23298         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
23299
23300 2007-06-10  Bruno Haible  <bruno@clisp.org>
23301
23302         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
23303
23304 2007-06-10  Bruno Haible  <bruno@clisp.org>
23305
23306         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
23307         * lib/mbuiter.h: Likewise.
23308
23309 2007-06-10  Bruno Haible  <bruno@clisp.org>
23310
23311         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
23312         declaration.
23313
23314 2007-06-10  Karl Berry  <karl@gnu.org>
23315
23316         * config/srclist.txt: remove gettext entries, Bruno prefers
23317         to update individually.
23318
23319 2007-06-10  Bruno Haible  <bruno@clisp.org>
23320
23321         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
23322         'maxlen'. Ensure only length + width bytes are allocated, not
23323         length + 1 + width.
23324
23325 2007-06-09  Bruno Haible  <bruno@clisp.org>
23326
23327         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
23328         (CHAR_T): Remove macro.
23329         (VASNPRINTF): Update.
23330
23331 2007-06-09  Bruno Haible  <bruno@clisp.org>
23332
23333         * MODULES.html.sh (Unicode string functions): Add the new modules.
23334
23335         * modules/uniconv/u32-conv-to-enc: New file.
23336         * lib/uniconv/u32-conv-to-enc.c: New file.
23337         * modules/uniconv/u32-conv-to-enc-tests: New file.
23338         * tests/uniconv/test-u32-conv-to-enc.c: New file.
23339
23340         * modules/uniconv/u16-conv-to-enc: New file.
23341         * lib/uniconv/u16-conv-to-enc.c: New file.
23342         * lib/uniconv/u-conv-to-enc.h: New file.
23343         * modules/uniconv/u16-conv-to-enc-tests: New file.
23344         * tests/uniconv/test-u16-conv-to-enc.c: New file.
23345
23346         * modules/uniconv/u8-conv-to-enc: New file.
23347         * lib/uniconv/u8-conv-to-enc.c: New file.
23348         * modules/uniconv/u8-conv-to-enc-tests: New file.
23349         * tests/uniconv/test-u8-conv-to-enc.c: New file.
23350
23351         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
23352         u32_conv_to_encoding): New declarations.
23353
23354 2007-06-09  Bruno Haible  <bruno@clisp.org>
23355
23356         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
23357
23358 2007-06-09  Bruno Haible  <bruno@clisp.org>
23359
23360         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
23361         * modules/malloca: Renamed from modules/allocsa, updated.
23362         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
23363         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
23364         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
23365         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
23366         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
23367         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
23368         * modules/xmalloca: Renamed from modules/xallocsa, updated.
23369         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
23370         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
23371         * modules/c-strcasestr (Depends-on): Update.
23372         * lib/c-strcasestr.c: Update.
23373         * modules/c-strstr (Depends-on): Update.
23374         * lib/c-strstr.c: Update.
23375         * modules/canonicalize-lgpl (Depends-on): Update.
23376         * lib/canonicalize-lgpl.c: Update.
23377         * modules/clean-temp (Depends-on): Update.
23378         * lib/clean-temp.c: Update.
23379         * modules/csharpcomp (Depends-on): Update.
23380         * lib/csharpcomp.c: Update.
23381         * modules/csharpexec (Depends-on): Update.
23382         * lib/csharpexec.c: Update.
23383         * modules/javacomp (Depends-on): Update.
23384         * lib/javacomp.c: Update.
23385         * modules/javaexec (Depends-on): Update.
23386         * lib/javaexec.c: Update.
23387         * modules/mbscasestr (Depends-on): Update.
23388         * lib/mbscasestr.c: Update.
23389         * modules/mbsstr (Depends-on): Update.
23390         * lib/mbsstr.c: Update.
23391         * modules/setenv (Depends-on): Update.
23392         * lib/setenv.c: Update.
23393         * modules/strcasestr (Depends-on): Update.
23394         * lib/strcasestr.c: Update.
23395         * modules/striconveha (Depends-on): Update.
23396         * lib/striconveha.c: Update.
23397         * modules/relocatable-prog-wrapper (Files): Update.
23398         * lib/relocwrapper.c: Update.
23399         * build-aux/install-reloc: Update.
23400         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
23401
23402 2007-06-08  Bruno Haible  <bruno@clisp.org>
23403
23404         Port to uClibc.
23405         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
23406         * lib/fpurge.c (fpurge): Likewise.
23407         * lib/freading.c (freading): Likewise.
23408         * lib/fseeko.c (rpl_fseeko): Likewise.
23409         * lib/fseterr.c (fseterr): Likewise.
23410         * lib/fwriting.c (fwriting): Likewise.
23411         * tests/test-fflush.c (main): Avoid a failure on uClibc.
23412
23413 2007-06-08  Bruno Haible  <bruno@clisp.org>
23414
23415         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
23416         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
23417         * modules/gettext (Files): Add m4/intlmacosx.m4.
23418
23419 2007-06-07  Bruno Haible  <bruno@clisp.org>
23420
23421         * modules/localename-tests: New file.
23422         * tests/test-localename.c: New file.
23423
23424         New module 'localename'.
23425         * lib/localename.h: New file.
23426         * lib/localename.c: New file, from GNU gettext.
23427         * m4/localename.m4: New file.
23428         * modules/localename: New file.
23429
23430 2007-06-07  Bruno Haible  <bruno@clisp.org>
23431
23432         Work around the lack of <wchar.h> on some builds of uClibc.
23433         * doc/headers/wchar.texi: Update.
23434         * lib/wchar_.h: Include <wchar.h> only if it exists.
23435         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
23436         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
23437         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
23438         doesn't exist.
23439         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
23440         * modules/mbfile (Depends-on): Add wchar.
23441         * modules/mbiter (Depends-on): Likewise.
23442         * modules/mbuiter (Depends-on): Likewise.
23443         Reported by Simon Josefsson.
23444
23445 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
23446
23447         Work around problem reported by Steven M. Schweda in
23448         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
23449         Tru64 5.1B with the Compaq compiler environment installed declares
23450         an 'isblank' function but does not define it in the C library.
23451         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
23452         * lib/regex_internal.h (isblank): Likewise.
23453         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
23454         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
23455
23456 2007-06-05  Bruno Haible  <bruno@clisp.org>
23457
23458         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
23459         ia64.
23460         * modules/printf-safe: New file.
23461         * modules/fprintf-posix (Depends-on): Add printf-safe.
23462         * modules/printf-posix (Depends-on): Likewise.
23463         * modules/snprintf-posix (Depends-on): Likewise.
23464         * modules/sprintf-posix (Depends-on): Likewise.
23465         * modules/vasnprintf-posix (Depends-on): Likewise.
23466         * modules/vasprintf-posix (Depends-on): Likewise.
23467         * modules/vfprintf-posix (Depends-on): Likewise.
23468         * modules/vprintf-posix (Depends-on): Likewise.
23469         * modules/vsnprintf-posix (Depends-on): Likewise.
23470         * modules/vsprintf-posix (Depends-on): Likewise.
23471         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
23472         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
23473         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
23474         "no" on i386, x86_64, ia64.
23475         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
23476         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
23477         on i386, x86_64, ia64.
23478         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
23479         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
23480         on i386, x86_64, ia64.
23481         * tests/test-vasnprintf-posix.c: Include float.h.
23482         (LDBL80_WORDS): New macro.
23483         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
23484         on i386, x86_64, ia64.
23485         * tests/test-vasprintf-posix.c: Include float.h.
23486         (LDBL80_WORDS): New macro.
23487         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
23488         on i386, x86_64, ia64.
23489         * tests/test-snprintf-posix.c: Include float.h.
23490         * tests/test-sprintf-posix.c: Likewise.
23491         * tests/test-vsnprintf-posix.c: Likewise.
23492         * tests/test-vsprintf-posix.c: Likewise.
23493
23494 2007-06-05  Bruno Haible  <bruno@clisp.org>
23495
23496         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
23497         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
23498         non-IEEE numbers on i386, x86_64, ia64.
23499         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
23500         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
23501         * tests/test-isnanl.h: Include float.h.
23502         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
23503
23504 2007-06-05  Bruno Haible  <bruno@clisp.org>
23505
23506         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
23507         also the %a / %A. Handle the %a / %A code before this extra handling.
23508
23509 2007-06-05  Bruno Haible  <bruno@clisp.org>
23510
23511         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
23512         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
23513
23514 2007-06-05  Bruno Haible  <bruno@clisp.org>
23515
23516         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
23517         typo in variable name.
23518
23519 2007-06-05  Eric Blake  <ebb9@byu.net>
23520
23521         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
23522         Reported by Simon Josefsson.
23523
23524 2007-06-04  Bruno Haible  <bruno@clisp.org>
23525
23526         Avoid test failures on some PowerPC platforms.
23527         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
23528         Define differently for PowerPC.
23529         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
23530         Reported by Gary V. Vaughan <gary@gnu.org>.
23531
23532 2007-06-02  Bruno Haible  <bruno@clisp.org>
23533
23534         Fix test-stdint failure on FreeBSD/ia64.
23535         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
23536         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
23537         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
23538         * doc/headers/stdint.texi: Update.
23539
23540 2007-06-01  Bruno Haible  <bruno@clisp.org>
23541
23542         * tests/test-binary-io.c (main): Pass a third argument to open().
23543         Reported by Gary V. Vaughan <gary@gnu.org>.
23544
23545 2007-06-01  Bruno Haible  <bruno@clisp.org>
23546
23547         * doc/functions/frexpl.texi: Update for mingw.
23548
23549 2007-06-01  Bruno Haible  <bruno@clisp.org>
23550
23551         * tests/test-lseek.c (main): Disable test of errno for invalid third
23552         argument.
23553         * doc/functions/lseek.texi: Update.
23554         Reported by Gary V. Vaughan <gary@gnu.org>.
23555
23556 2007-05-28  Bruno Haible  <bruno@clisp.org>
23557
23558         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
23559
23560 2007-05-31  Eric Blake  <ebb9@byu.net>
23561
23562         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
23563         cross compiling.
23564
23565 2007-05-30  Eric Blake  <ebb9@byu.net>
23566         and Bruno Haible  <bruno@clisp.org>
23567
23568         Work around mingw test failures exposed by m4-1.4.9b.
23569         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
23570         * tests/test-unistd.c: Disable uid_t and git_t tests for the
23571         moment.
23572
23573 2007-05-30  Bruno Haible  <bruno@clisp.org>
23574
23575         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
23576         assuming that they are closed. Needed on HP-UX 11.
23577
23578 2007-05-29  Bruno Haible  <bruno@clisp.org>
23579
23580         Fix a problem with #include_next.
23581         * lib/dirent_.h: Split the double-inclusion guard.
23582         * lib/fcntl_.h: Likewise.
23583         * lib/float_.h: Likewise.
23584         * lib/iconv_.h: Likewise.
23585         * lib/inttypes_.h: Likewise.
23586         * lib/locale_.h: Likewise.
23587         * lib/math_.h: Likewise.
23588         * lib/netinet_in_.h: Likewise.
23589         * lib/search_.h: Likewise.
23590         * lib/signal_.h: Likewise.
23591         * lib/stdint_.h: Likewise.
23592         * lib/stdio_.h: Likewise.
23593         * lib/stdlib_.h: Likewise.
23594         * lib/string_.h: Likewise.
23595         * lib/sys_select_.h: Likewise.
23596         * lib/sys_socket_.h: Likewise.
23597         * lib/sys_stat_.h: Likewise.
23598         * lib/sys_time_.h: Likewise.
23599         * lib/sysexits_.h: Likewise.
23600         * lib/time_.h: Likewise.
23601         * lib/unistd_.h: Likewise.
23602         * lib/wchar_.h: Likewise.
23603         * lib/wctype_.h: Likewise.
23604
23605 2007-05-29  Bruno Haible  <bruno@clisp.org>
23606
23607         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
23608         for the moment.
23609
23610 2007-05-29  Bruno Haible  <bruno@clisp.org>
23611
23612         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
23613         invocation.
23614         Reported by Eric Blake.
23615
23616 2007-05-29  Bruno Haible  <bruno@clisp.org>
23617
23618         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
23619         compiling case.
23620
23621 2007-05-29  Eric Blake  <ebb9@byu.net>
23622             Bruno Haible  <bruno@clisp.org>
23623
23624         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
23625         cross compiles.
23626
23627 2007-05-28  Eric Blake  <ebb9@byu.net>
23628
23629         * modules/closein-tests (test_closein_LDADD): Support test on
23630         cygwin with libtool.
23631
23632 2007-05-28  Bruno Haible  <bruno@clisp.org>
23633
23634         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
23635         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
23636         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
23637         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
23638         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
23639         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
23640         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
23641         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
23642         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
23643
23644 2007-05-28  Eric Blake  <ebb9@byu.net>
23645
23646         Unconditionally include <config.h> in unit tests.
23647         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
23648         * tests/test-allocsa.c, tests/test-arcfour.c,
23649         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
23650         tests/test-array_list.c, tests/test-array_oset.c,
23651         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
23652         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
23653         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
23654         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
23655         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
23656         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
23657         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
23658         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
23659         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
23660         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
23661         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
23662         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
23663         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
23664         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
23665         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
23666         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
23667         test-md5.c, test-memmem.c, test-printf-posix.c,
23668         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
23669         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
23670         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
23671         test-strcasestr.c, test-striconv.c, test-striconveh.c,
23672         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
23673         test-vasnprintf-posix2.c, test-vasnprintf.c,
23674         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
23675         test-vfprintf-posix.c, test-vprintf-posix.c,
23676         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
23677         test-xvasprintf.c: Likewise.
23678
23679 2007-05-28  Bruno Haible  <bruno@clisp.org>
23680
23681         * gnulib-tool (func_import): Remember the --with-tests command-line
23682         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
23683         Reported by Eric Blake.
23684
23685 2007-05-28  Bruno Haible  <bruno@clisp.org>
23686
23687         * modules/ftell-tests: New file.
23688         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
23689         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
23690
23691         * lib/ftell.c: New file.
23692         * modules/ftell: New file.
23693         * m4/ftell.m4: New file.
23694         * doc/functions/ftell.texi: Update.
23695         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
23696         REPLACE_FTELL.
23697         * lib/stdio_.h (rpl_ftell): New declaration.
23698         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
23699         REPLACE_FTELL.
23700
23701 2007-05-28  Eric Blake  <ebb9@byu.net>
23702
23703         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
23704
23705 2007-05-28  Bruno Haible  <bruno@clisp.org>
23706
23707         * modules/fseek-tests: New file.
23708         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
23709         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
23710
23711         * lib/fseek.c: New file.
23712         * modules/fseek: New file.
23713         * m4/fseek.m4: New file.
23714         * doc/functions/fseek.texi: Update.
23715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
23716         REPLACE_FSEEK.
23717         * lib/stdio_.h (rpl_fseek): New declaration.
23718         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
23719         REPLACE_FSEEK.
23720
23721 2007-05-28  Bruno Haible  <bruno@clisp.org>
23722
23723         * lib/stdio_.h (fflush): More comments.
23724
23725 2007-05-28  Bruno Haible  <bruno@clisp.org>
23726
23727         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
23728         runtime test.
23729
23730 2007-05-28  Eric Blake  <ebb9@byu.net>
23731
23732         Improve lseek module.
23733         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
23734         * lib/unistd_.h (lseek): Scale back link warning message.
23735         * tests/test-lseek.c: Beef up test.
23736         * tests/test-lseek.sh: Exercise more facets of lseek.
23737         Reported by Bruno Haible.
23738
23739 2007-05-28  Bruno Haible  <bruno@clisp.org>
23740
23741         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
23742         to define.
23743
23744 2007-05-27  Bruno Haible  <bruno@clisp.org>
23745
23746         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
23747
23748 2007-05-27  Bruno Haible  <bruno@clisp.org>
23749
23750         * modules/openmp: New file.
23751         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
23752         Noah Misch.
23753
23754 2007-05-26  Bruno Haible  <bruno@clisp.org>
23755
23756         * modules/chdir-long (Depends-on): Add fchdir.
23757         * modules/chdir-safer (Depends-on): Likewise.
23758         * modules/fts (Depends-on): Likewise.
23759         * modules/fts-lgpl (Depends-on): Likewise.
23760         * modules/openat (Depends-on): Likewise.
23761         * modules/savewd (Depends-on): Likewise.
23762
23763 2007-05-24  Eric Blake  <ebb9@byu.net>
23764
23765         Fix lseek on mingw.
23766         * modules/lseek: New module.
23767         * m4/lseek.m4: New file.
23768         * lib/lseek.c: New file.
23769         * modules/lseek-tests: New file.
23770         * tests/test-lseek.c: New file.
23771         * tests/test-lseek.sh: New file.
23772         * MODULES.html.sh: Document lseek module.
23773         * modules/fflush (Depends-on): Add lseek, fseeko.
23774         * modules/fseeko (Depends-on): Likewise.
23775         * modules/ftello (Depends-on): Likewise.
23776         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
23777         broken.
23778         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
23779         broken.
23780         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
23781         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
23782         * lib/ftello.c (rpl_ftello): Likewise.
23783         * tests/test-fseeko.c (main): Test this.
23784         * tests/test-fseeko.sh: Likewise.
23785         * tests/test-ftello.c (main): Likewise.
23786         * tests/test-ftello.sh: Likewise.
23787         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
23788         implies replacing fseek.
23789         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
23790         HAVE_FTELLO.
23791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
23792         * modules/unistd (Makefile.am): Likewise.
23793         * lib/unistd_.h (lseek): Declare a replacement.
23794         * doc/functions/lseek.texi (lseek): Document this fix.
23795         * doc/functions/fseek.texi (fseek): Likewise.
23796         * doc/functions/ftell.texi (ftell): Likewise.
23797
23798 2007-05-24  Bruno Haible  <bruno@clisp.org>
23799
23800         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
23801         in the printed representation of a NaN.
23802         * tests/test-vasprintf-posix.c (test_function): Likewise.
23803         * tests/test-snprintf-posix.h (test_function): Likewise.
23804         * tests/test-sprintf-posix.h (test_function): Likewise.
23805         Reported by Eric Blake.
23806
23807 2007-05-23  Eric Blake  <ebb9@byu.net>
23808
23809         Fix fseeko/ftello on cygwin 1.5.24.
23810         * doc/functions/fseeko.texi (fseeko): Document the fix.
23811         * doc/functions/ftello.texi (ftello): Document the fix.
23812         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
23813         * doc/functions/stdout.text (stdout): New file.
23814         * doc/functions/stderr.text (stderr): New file.
23815         * doc/gnulib.texi (Function Substitutes): Use new files.
23816         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
23817         prior to 1.7.0.
23818         * tests/test-ftello.c (main): Likewise for ftello.
23819         * tests/test-fseeko.sh: New file.
23820         * tests/test-ftello.sh: New file.
23821         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
23822         with seekable stdin.
23823         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
23824         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
23825         (gl_REPLACE_FSEEKO): New macro.
23826         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
23827         * modules/fseeko (Files): Distribute fseeko.c.
23828         * modules/ftello (Files): Distribute ftello.c.
23829         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
23830         mode.
23831         * lib/ftello.c (rpl_ftello): New file.
23832         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
23833         fseeko, ftello.
23834         (gl_STDIN_LARGE_OFFSET): New macro.
23835         * modules/stdio (Makefile.am): Perform the replacement.
23836         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
23837
23838 2007-05-23  Bruno Haible  <bruno@clisp.org>
23839
23840         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
23841         GNULIB_POSIXCHECK is defined.
23842
23843 2007-05-21  Bruno Haible  <bruno@clisp.org>
23844
23845         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
23846         Check also the output for NaN arguments. When cross-compiling, guess
23847         no on IRIX.
23848         * lib/vasnprintf.c: Update comments.
23849         * tests/test-vasnprintf-posix.c (strisnan): New function.
23850         (test_function): Use it.
23851         * tests/test-vasprintf-posix.c (strisnan): New function.
23852         (test_function): Use it.
23853         * tests/test-snprintf-posix.h (strisnan): New function.
23854         (test_function): Use it.
23855         * tests/test-sprintf-posix.h (strisnan): New function.
23856         (test_function): Use it.
23857         Reported by Eric Blake.
23858
23859 2007-05-20  Bruno Haible  <bruno@clisp.org>
23860
23861         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
23862         numbers that fails on BeOS.
23863         * doc/functions/frexpl.texi: Update.
23864
23865 2007-05-20  Jim Meyering  <jim@meyering.net>
23866
23867         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
23868         forced upon us by glibc-2.6.
23869
23870 2007-05-20  Bruno Haible  <bruno@clisp.org>
23871
23872         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
23873         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
23874         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
23875         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
23876         NEED_PRINTF_INFINITE.
23877         (is_infinitel): New function.
23878         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
23879         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
23880         gl_PREREQ_VASNPRINTF_INFINITE.
23881         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
23882         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23883         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
23884         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
23885         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
23886         gl_PREREQ_VASNPRINTF_INFINITE.
23887         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23888         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23889         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23890         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23891         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23892         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23893         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23894         * doc/functions/fprintf.texi: Update.
23895         * doc/functions/printf.texi: Update.
23896         * doc/functions/snprintf.texi: Update.
23897         * doc/functions/sprintf.texi: Update.
23898         * doc/functions/vfprintf.texi: Update.
23899         * doc/functions/vprintf.texi: Update.
23900         * doc/functions/vsnprintf.texi: Update.
23901         * doc/functions/vsprintf.texi: Update.
23902
23903 2007-05-20  Bruno Haible  <bruno@clisp.org>
23904
23905         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
23906         was not found in libc.
23907         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23908
23909 2007-05-20  Bruno Haible  <bruno@clisp.org>
23910
23911         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
23912         printed as "-nan" instead of "nan".
23913         * tests/test-vasprintf-posix.c (test_function): Likewise.
23914         * tests/test-snprintf-posix.h (test_function): Likewise.
23915         * tests/test-sprintf-posix.h (test_function): Likewise.
23916         Needed for HP-UX 11.
23917
23918 2007-05-20  Jim Meyering  <jim@meyering.net>
23919
23920         Fix buggy test for the fchownat-deref bug.
23921         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
23922         symlink required for the run-test.  Without it, this test would
23923         always declare that fchownat doesn't work, and client code would
23924         unnecessarily use the replacement function with fixed libc.
23925         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
23926         Reported by Greg Schafer.
23927
23928 2007-05-19  Bruno Haible  <bruno@clisp.org>
23929
23930         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
23931         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
23932         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
23933         Needed for IRIX 6.5 and Solaris 2.5.1.
23934
23935 2007-05-19  Bruno Haible  <bruno@clisp.org>
23936
23937         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
23938         (test_function): Skip tests involving -0.0 on platforms where
23939         -0.0 = 0.0.
23940         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
23941         (test_function): Skip tests involving -0.0 on platforms where
23942         -0.0 = 0.0.
23943         * tests/test-snprintf-posix.h (have_minus_zero): New function.
23944         (test_function): Skip tests involving -0.0 on platforms where
23945         -0.0 = 0.0.
23946         * tests/test-sprintf-posix.h (have_minus_zero): New function.
23947         (test_function): Skip tests involving -0.0 on platforms where
23948         -0.0 = 0.0.
23949         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
23950         tests.
23951         * tests/test-printf-posix.h (test_function): Likewise.
23952         * tests/test-printf-posix.output: Remove all -0.0 related results.
23953         Needed for IRIX 6.5.
23954
23955 2007-05-19  Bruno Haible  <bruno@clisp.org>
23956
23957         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
23958         printed as "nan0x7fffffff" instead of "nan".
23959         * tests/test-vasprintf-posix.c (test_function): Likewise.
23960         * tests/test-snprintf-posix.h (test_function): Likewise.
23961         * tests/test-sprintf-posix.h (test_function): Likewise.
23962         * tests/test-fprintf-posix.h (NaN): Remove macro.
23963         (test_function): Remove all NaN related tests.
23964         * tests/test-printf-posix.h (NaN): Remove macro.
23965         (test_function): Remove all NaN related tests.
23966         * tests/test-printf-posix.output: Remove all NaN related results.
23967         Needed for IRIX 6.5.
23968
23969 2007-05-19  Bruno Haible  <bruno@clisp.org>
23970
23971         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
23972         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23973
23974 2007-05-19  Bruno Haible  <bruno@clisp.org>
23975
23976         * lib/float_.h: New file.
23977         * m4/float_h.m4: New file.
23978         * modules/float: New file.
23979         * modules/isnanl (Dependencies): Add float.
23980         * modules/isnanl-nolibm (Dependencies): Likewise.
23981         * modules/mathl (Dependencies): Likewise.
23982         * modules/printf-frexpl (Dependencies): Likewise.
23983         * modules/signbit (Dependencies): Likewise.
23984         * modules/vasnprintf (Dependencies): Likewise.
23985         * doc/headers/float.texi: Update.
23986
23987 2007-05-19  Jim Meyering  <jim@meyering.net>
23988
23989         * lib/utimens.c (gl_futimens): Rename from futimens,
23990         now that glibc-2.6 declares futimens.
23991         * lib/utimens.h: Likewise.
23992
23993 2007-05-19  Bruno Haible  <bruno@clisp.org>
23994
23995         Avoid test failures on mingw.
23996         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
23997         * tests/test-printf-posix.sh: Likewise.
23998         * tests/test-vfprintf-posix.sh: Likewise.
23999         * tests/test-vprintf-posix.sh: Likewise.
24000
24001 2007-05-19  Bruno Haible  <bruno@clisp.org>
24002
24003         Fix *printf result for NaN, Inf, -0.0 on mingw.
24004         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
24005         * lib/vasnprintf.c: Include math.h and isnan.h.
24006         (is_infinite_or_zero): New function.
24007         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
24008         values in the %f, %F, %e, %E, %g, %G directives.
24009         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
24010         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
24011         gl_PRINTF_INFINITE and test its result. Invoke
24012         gl_PREREQ_VASNPRINTF_INFINITE.
24013         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
24014         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24015         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24016         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24017         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
24018         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24019         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24020         * doc/functions/fprintf.texi: Update.
24021         * doc/functions/printf.texi: Update.
24022         * doc/functions/snprintf.texi: Update.
24023         * doc/functions/sprintf.texi: Update.
24024         * doc/functions/vfprintf.texi: Update.
24025         * doc/functions/vprintf.texi: Update.
24026         * doc/functions/vsnprintf.texi: Update.
24027         * doc/functions/vsprintf.texi: Update.
24028
24029 2007-05-19  Bruno Haible  <bruno@clisp.org>
24030
24031         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
24032         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
24033         Instead of multiplying with 10^k, set extra_zeroes to k.
24034         (scale10_round_long_double): Remove function.
24035
24036 2007-05-18  Bruno Haible  <bruno@clisp.org>
24037
24038         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
24039         introduced on 2007-05-06.
24040
24041 2007-05-18  Bruno Haible  <bruno@clisp.org>
24042
24043         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
24044         %g directives.
24045         * tests/test-vasprintf-posix.c (test_function): Likewise.
24046         * tests/test-snprintf-posix.h (test_function): Likewise.
24047         * tests/test-sprintf-posix.h (test_function): Likewise.
24048
24049 2007-05-18  Bruno Haible  <bruno@clisp.org>
24050
24051         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
24052         (strmatch): New function.
24053         (test_function): Test the %f directive on numbers of various exponents.
24054         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
24055         (strmatch): New function.
24056         (test_function): Test the %f directive on numbers of various exponents.
24057         * tests/test-snprintf-posix.h (strmatch): New function.
24058         (test_function): Test the %f directive on numbers of various exponents.
24059         * tests/test-sprintf-posix.h (strmatch): New function.
24060         (test_function): Test the %f directive on numbers of various exponents.
24061         * tests/test-snprintf-posix.c (SIZEOF): New macro.
24062         * tests/test-sprintf-posix.c (SIZEOF): New macro.
24063         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
24064         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
24065
24066 2007-05-18  Bruno Haible  <bruno@clisp.org>
24067
24068         Add support for 'long double' number output.
24069         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
24070         * lib/vasnprintf.c: Include math.h and float+.h.
24071         (mp_limb_t): New type.
24072         (GMP_LIMB_BITS): New macro.
24073         (mp_twolimb_t): New type.
24074         (GMP_TWOLIMB_BITS): New macro.
24075         (mpn_t): New type.
24076         (multiply, divide, convert_to_decimal, decode_long_double,
24077         scale10_round_long_double, scale10_round_decimal_long_double,
24078         floorlog10l): New functions.
24079         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
24080         for the %f, %F, %e, %E, %g, %G directives.
24081         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
24082         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
24083         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
24084         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
24085         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
24086         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24087         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24088         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24089         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
24090         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24091         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24092         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
24093         * modules/snprintf-posix (Depends-on): Likewise.
24094         * modules/sprintf-posix (Depends-on): Likewise.
24095         * modules/vasnprintf-posix (Depends-on): Likewise.
24096         * modules/vasprintf-posix (Depends-on): Likewise.
24097         * modules/vfprintf-posix (Depends-on): Likewise.
24098         * modules/vsnprintf-posix (Depends-on): Likewise.
24099         * modules/vsprintf-posix (Depends-on): Likewise.
24100         * modules/vasnprintf (Files): Add lib/float+.h.
24101         * doc/functions/fprintf.texi: Update.
24102         * doc/functions/printf.texi: Update.
24103         * doc/functions/snprintf.texi: Update.
24104         * doc/functions/sprintf.texi: Update.
24105         * doc/functions/vfprintf.texi: Update.
24106         * doc/functions/vprintf.texi: Update.
24107         * doc/functions/vsnprintf.texi: Update.
24108         * doc/functions/vsprintf.texi: Update.
24109
24110 2007-05-18  Bruno Haible  <bruno@clisp.org>
24111
24112         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
24113
24114 2007-05-18  Bruno Haible  <bruno@clisp.org>
24115
24116         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
24117         for printing 64-bit integers. Needed for mingw.
24118
24119 2007-05-18  Bruno Haible  <bruno@clisp.org>
24120
24121         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
24122         gl_FUNC_FREXPL_WORKS.
24123         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
24124
24125 2007-05-18  Bruno Haible  <bruno@clisp.org>
24126
24127         * modules/frexpl-nolibm-tests: New file.
24128
24129         * modules/frexpl-nolibm: New file.
24130         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
24131
24132 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
24133
24134         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
24135         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
24136         GCC 4.2, which otherwise issues a lot of warnings.
24137         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
24138         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
24139         Likewise.
24140         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
24141         * modules/iconv_open (iconv.h): Likewise.
24142         * modules/locale (locale.h): Likewise.
24143         * modules/netinet_in (netinet/in.h): Likewise.
24144         * modules/sys_select (sys_select.h): Likewise.
24145         * modules/sys_socket (sys/socket.h): Likewise.
24146         * modules/sys_stat (sys/stat.h): Likewise.
24147         * modules/sysexits (sysexits.h): Likewise.
24148         * modules/unistd (unistd.h): Likewise.
24149
24150 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24151
24152         * modules/closein-tests (Makefile.am): Distribute
24153         `test-closein.sh'.
24154
24155 2007-05-17  Bruno Haible  <bruno@clisp.org>
24156
24157         * tests/test-printf-posix.output: Renamed from
24158         tests/test-fprintf-posix.out.
24159         * modules/fprintf-posix-tests: Update.
24160         * modules/printf-posix-tests: Update.
24161         * modules/vfprintf-posix-tests: Update.
24162         * modules/vprintf-posix-tests: Update.
24163         * tests/test-fprintf-posix.sh: Update.
24164         * tests/test-printf-posix.sh: Update.
24165         * tests/test-vfprintf-posix.sh: Update.
24166         * tests/test-vprintf-posix.sh: Update.
24167         Reported by Ralf Wildenhues.
24168
24169 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
24170
24171         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
24172         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
24173         GCC 4.2, which otherwise issues a lot of warnings.
24174         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
24175         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
24176         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
24177         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
24178         it should no longer be needed.
24179         * lib/string_.h: Likewise.
24180         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
24181         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
24182         * modules/inttypes (inttypes.h): Likewise.
24183         * modules/math (math.h): Likewise.
24184         * modules/search (search.h): Likewise.
24185         * modules/signal (signal.h): Likewise.
24186         * modules/stdint (stdint.h): Likewise.
24187         * modules/stdio (stdio.h): Likewise.
24188         * modules/stdlib (stdlib.h): Likewise.
24189         * modules/string (string.h): Likewise.
24190         * modules/sys_time (sys/time.h): Likewise.
24191         * modules/time (time.h): Likewise.
24192         * modules/wchar (wchar.h): Likewise.
24193         * modules/wctype (wtype.h): Likewise.
24194
24195 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24196
24197         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
24198
24199 2007-05-13  Bruno Haible  <bruno@clisp.org>
24200
24201         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
24202         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24203         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
24204         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
24205         (gl_PREREQ_STRTOK_R): Don't require it here.
24206
24207 2007-05-13  Bruno Haible  <bruno@clisp.org>
24208
24209         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
24210         when used in C++ mode.
24211
24212 2007-05-12  Bruno Haible  <bruno@clisp.org>
24213
24214         * lib/linebuffer.h: Tweak doc.
24215         * lib/linebuffer.c: Likewise.
24216
24217 2007-05-12  James Youngman  <jay@gnu.org>
24218
24219         * lib/linebuffer.c (readlinebuffer_delim): New function,
24220         like readlinebuffer, but use a caller-specified delimiter.
24221         (readlinebuffer): Just call readlinebuffer_delim with '\n'
24222         as the delimiter.
24223         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
24224
24225 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
24226
24227         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
24228         * modules/openat (Files): Remove openat-die.c.
24229         (Depends-on): Add openat-die.
24230         * modules/openat-die: New module.
24231
24232 2007-05-06  Bruno Haible  <bruno@clisp.org>
24233
24234         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
24235         Update with info about Cygwin.
24236         * doc/functions/fprintf.texi: Update.
24237         * doc/functions/printf.texi: Update.
24238         * doc/functions/snprintf.texi: Update.
24239         * doc/functions/sprintf.texi: Update.
24240         * doc/functions/vfprintf.texi: Update.
24241         * doc/functions/vprintf.texi: Update.
24242         * doc/functions/vsnprintf.texi: Update.
24243         * doc/functions/vsprintf.texi: Update.
24244         Reported by Eric Blake.
24245
24246 2007-05-06  Bruno Haible  <bruno@clisp.org>
24247
24248         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
24249         padding ourselves for the floating-point directives.
24250         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
24251         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
24252         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24253         gl_PRINTF_FLAG_ZERO and test its result. Invoke
24254         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
24255         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24256         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
24257         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24258         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24259         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
24260         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24261         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24262         * tests/test-snprintf-posix.h (test_function): Also check the width
24263         and some flags in the %f directive.
24264         * tests/test-sprintf-posix.h (test_function): Likewise.
24265         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24266         * tests/test-vasprintf-posix.c (test_function): Likewise.
24267         * doc/functions/fprintf.texi: Update.
24268         * doc/functions/printf.texi: Update.
24269         * doc/functions/snprintf.texi: Update.
24270         * doc/functions/sprintf.texi: Update.
24271         * doc/functions/vfprintf.texi: Update.
24272         * doc/functions/vprintf.texi: Update.
24273         * doc/functions/vsnprintf.texi: Update.
24274         * doc/functions/vsprintf.texi: Update.
24275
24276 2007-05-06  Bruno Haible  <bruno@clisp.org>
24277
24278         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
24279         pass the ' flag character to sprintf or snprintf.
24280         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
24281         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
24282         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24283         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
24284         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
24285         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24286         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
24287         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24288         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24289         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
24290         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24291         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24292         * tests/test-snprintf-posix.h (test_function): Also check the grouping
24293         flag.
24294         * tests/test-sprintf-posix.h (test_function): Likewise.
24295         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24296         * tests/test-vasprintf-posix.c (test_function): Likewise.
24297         * doc/functions/fprintf.texi: Update.
24298         * doc/functions/printf.texi: Update.
24299         * doc/functions/snprintf.texi: Update.
24300         * doc/functions/sprintf.texi: Update.
24301         * doc/functions/vfprintf.texi: Update.
24302         * doc/functions/vprintf.texi: Update.
24303         * doc/functions/vsnprintf.texi: Update.
24304         * doc/functions/vsprintf.texi: Update.
24305
24306 2007-05-01  Bruno Haible  <bruno@clisp.org>
24307
24308         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
24309
24310 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
24311
24312         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
24313         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
24314
24315 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
24316
24317         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
24318         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
24319         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
24320
24321 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
24322
24323         * lib/argp-help.c (struct hol_entry): New member `ord'.
24324         (HOL_ENTRY_PTRCMP): Use ord for comparison
24325         (hol_sort): Initialize ord.
24326
24327 2007-05-01  Bruno Haible  <bruno@clisp.org>
24328
24329         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
24330         Reported by Eric Blake.
24331         * doc/gnulib.texi (Function Substitutes): Update.
24332
24333 2007-05-01  Bruno Haible  <bruno@clisp.org>
24334
24335         * doc/functions.texi: Remove file, now redundant through
24336         doc/functions/*.texi.
24337
24338 2007-05-01  Bruno Haible  <bruno@clisp.org>
24339
24340         * modules/argp (Depends-on): Add sleep.
24341
24342 2007-05-01  Bruno Haible  <bruno@clisp.org>
24343
24344         * modules/sleep-tests: New file.
24345         * tests/test-sleep.c: New file.
24346
24347         * modules/sleep: New file.
24348         * lib/sleep.c: New file.
24349         * m4/sleep.m4: New file.
24350         * lib/unistd_.h (sleep): New declaration.
24351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
24352         HAVE_SLEEP.
24353         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
24354         * doc/functions/sleep.texi: Document the sleep module.
24355
24356 2007-05-01  Bruno Haible  <bruno@clisp.org>
24357
24358         * lib/sigprocmask.h: Remove file.
24359         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
24360         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
24361         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
24362         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
24363         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
24364         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
24365         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
24366         HAVE_SIGSET_T as a shell variable.
24367         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
24368         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
24369         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
24370         (Depends-on): Add signal. Remove verify.
24371         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
24372         (Include): Mention <signal.h> instead of sigprocmask.h.
24373         * NEWS: Mention the change.
24374         * lib/fatal-signal.c: Don't include sigprocmask.h.
24375
24376 2007-05-01  Bruno Haible  <bruno@clisp.org>
24377
24378         * modules/signal: New file.
24379         * lib/signal_.h: New file.
24380         * m4/signal_h.m4: New file.
24381
24382 2007-05-01  Bruno Haible  <bruno@clisp.org>
24383
24384         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
24385         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
24386         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
24387         HAVE_WCTYPE_CTMP_BUG into wctype.h.
24388
24389 2007-05-01  Bruno Haible  <bruno@clisp.org>
24390
24391         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
24392         configure time.
24393         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
24394         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
24395         * modules/sys_stat (Makefile.am): Substitute their values into
24396         sys/stat.h.
24397
24398 2007-05-01  Bruno Haible  <bruno@clisp.org>
24399
24400         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
24401         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
24402         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
24403
24404 2007-05-01  Bruno Haible  <bruno@clisp.org>
24405
24406         * doc/header/assert.texi: Undo last change: don't mention the gnulib
24407         'assert' module here.
24408
24409 2007-05-01  Bruno Haible  <bruno@clisp.org>
24410
24411         * doc/functions/*.texi: New files.
24412         * doc/functions/google-ranking.txt: New file.
24413         * doc/gnulib.texi (Function Substitutes): New chapter.
24414         (ctime, inet_ntoa): Remove sections.
24415         * doc/ctime.texi: Remove file.
24416         * doc/inet_ntoa.texi: Remove file.
24417         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
24418         dependencies.
24419         (%.info): New rule, specifying a --reference-limit.
24420
24421 2007-05-01  Bruno Haible  <bruno@clisp.org>
24422
24423         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
24424
24425 2007-05-01  Bruno Haible  <bruno@clisp.org>
24426
24427         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
24428         the portability of 'mkdir' to mingw systems.
24429
24430 2007-05-01  Bruno Haible  <bruno@clisp.org>
24431
24432         * doc/headers/google-ranking.txt: New file.
24433
24434 2007-04-30  Eric Blake  <ebb9@byu.net>
24435
24436         Prefer fseeko to fseek.
24437         * modules/getpass (Depends-on): Add fseeko.
24438         * lib/getpass.c (getpass): Use fseeko, not fseek.
24439
24440 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
24441
24442         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
24443         assumes the sorting is stable, while most qsort implementations
24444         are not.  Use argument addresses to ensure they never compare as
24445         equal.
24446
24447         * tests/test-argp-2.sh (usage-indent test): Fix output
24448         (func_compare): Restore diff options
24449         * tests/test-argp.c: Restore #include "progname.h"
24450
24451 2007-04-29  Bruno Haible  <bruno@clisp.org>
24452
24453         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
24454         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24455         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
24456         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24457         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
24458         (configure.ac): Define CHECK_SNPRINTF_POSIX.
24459         (TESTS, check_PROGRAMS): Add test-snprintf.
24460         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
24461         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
24462         (TESTS, check_PROGRAMS): Add test-vsnprintf.
24463         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
24464         assertions that fail on HP-UX, OSF/1, or IRIX.
24465         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
24466
24467 2007-04-29  Bruno Haible  <bruno@clisp.org>
24468
24469         * MODULES.html.sh (posix_functions): Remove 'contents'.
24470
24471 2007-04-29  Karl Berry  <karl@gnu.org>
24472
24473         * config/srclist.txt (gendocs_template_min): new entry.
24474
24475 2007-04-29  Bruno Haible  <bruno@clisp.org>
24476
24477         Work around fpurge bug on BSD systems.
24478         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
24479         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
24480         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
24481         fpurge to rpl_fpurge if the system already has this function.
24482         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
24483         the case where the system already has this function. Correct invariants
24484         on BSD systems.
24485         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
24486         BSD systems.
24487
24488 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
24489
24490         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
24491         proposed by Sven Verdoolaege.
24492
24493         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
24494         options.
24495         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
24496         (usage and help tests): Update
24497
24498 2007-04-29  Bruno Haible  <bruno@clisp.org>
24499
24500         * tests/test-fflush.c (main): Use a file of size 17, not 10.
24501         Print more information in case of failure. Disable a test on BeOS.
24502
24503 2007-04-29  Bruno Haible  <bruno@clisp.org>
24504
24505         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
24506         This helps debugging on systems on which no gdb is available.
24507
24508 2007-04-29  Bruno Haible  <bruno@clisp.org>
24509
24510         * lib/freading.h: Improve comments.
24511         * lib/fwriting.h: Likewise.
24512         * tests/test-freading.c (main): Don't check freading immediately after
24513         repositioning. Needed for glibc.
24514
24515 2007-04-29  Bruno Haible  <bruno@clisp.org>
24516
24517         * lib/freading.c (freading): Trivial simplification.
24518
24519 2007-04-28  Bruno Haible  <bruno@clisp.org>
24520
24521         * tests/test-fwriting.c (main): Also test the interaction between
24522         fflush and fwriting.
24523         * modules/fwriting-tests (Depends-on): Add fflush.
24524
24525         * tests/test-freading.c (main): Also test the interaction between
24526         fflush and freading.
24527         * modules/freading-tests (Depends-on): Add fflush.
24528
24529 2007-04-28  Bruno Haible  <bruno@clisp.org>
24530
24531         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
24532         fseeko and ftello.
24533         Suggested by Eric Blake.
24534
24535 2007-04-28  Jim Meyering  <jim@meyering.net>
24536
24537         Avoid false-negative in gl_STDINT_H's C99 conformance test.
24538         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
24539         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
24540
24541 2007-04-27  Eric Blake  <ebb9@byu.net>
24542
24543         * doc/headers/assert.texi (assert.h): Document assert module use.
24544
24545 2007-04-27  Bruno Haible  <bruno@clisp.org>
24546
24547         * doc/headers/*.texi: New files.
24548         * doc/gnulib.texi (Header File Substitutes): New chapter.
24549         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
24550         dependencies.
24551         (standards.info ,standards.html, standards.dvi): Update dependencies.
24552         (mostlyclean, clean): New targets.
24553
24554 2007-04-27  Bruno Haible  <bruno@clisp.org>
24555
24556         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
24557         * modules/sysexits (Files, Makefile.am): Update.
24558
24559         * lib/sys_socket_.h: Renamed from lib/socket_.h.
24560         * modules/sys_socket (Files, Makefile.am): Update.
24561
24562         * lib/sys_stat_.h: Renamed from lib/stat_.h.
24563         * modules/sys_stat (Files, Makefile.am): Update.
24564
24565 2007-04-27  Eric Blake  <ebb9@byu.net>
24566
24567         * lib/freading.h: Improve comments.
24568         * lib/fwriting.h: Likewise.
24569         * lib/fflush.c: Likewise.
24570
24571         Fix closein for mingw.
24572         * modules/closein-tests: Add tests for closein.
24573         * tests/test-closein.c: New file.
24574         * tests/test-closein.sh: Likewise.
24575         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
24576         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
24577
24578 2007-04-27  Bruno Haible  <bruno@clisp.org>
24579
24580         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
24581         version is < 6.
24582         * lib/math_.h [__DECC]: Likewise.
24583         * lib/stdio_.h [__DECC]: Likewise.
24584         * lib/stdlib_.h [__DECC]: Likewise.
24585         * lib/string_.h [__DECC]: Likewise.
24586         * lib/time_.h [__DECC]: Likewise.
24587         * lib/wchar_.h [__DECC]: Likewise.
24588         * lib/wctype_.h [__DECC]: Likewise.
24589
24590 2007-04-27  Bruno Haible  <bruno@clisp.org>
24591
24592         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
24593
24594 2007-04-27  Bruno Haible  <bruno@clisp.org>
24595
24596         * lib/fflush.c: Add comments.
24597         * modules/fpurge-tests (Depends-on): Add fflush.
24598         * modules/freadable-tests (Depends-on): Likewise.
24599         * modules/fwritable-tests (Depends-on): Likewise.
24600
24601 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
24602
24603         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
24604         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
24605         Report by Bruno Haible <bruno@clisp.org>.
24606
24607 2007-04-26  Eric Blake  <ebb9@byu.net>
24608
24609         Fix fflush on mingw.
24610         * modules/fflush (Depends-on): Add freading.
24611         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
24612         but unread data.
24613
24614 2007-04-26  Eric Blake  <ebb9@byu.net>
24615         and Bruno Haible  <bruno@clisp.org>
24616
24617         Implement freading and fwriting.
24618         * lib/freading.c: New file.
24619         * lib/freading.h: Likewise.
24620         * m4/freading.m4: Likewise.
24621         * modules/freading: Likewise.
24622         * modules/freading-tests: Likewise.
24623         * tests/test-freading.c: Likewise.
24624         * lib/fwriting.c: New file.
24625         * lib/fwriting.h: Likewise.
24626         * m4/fwriting.m4: Likewise.
24627         * modules/fwriting: Likewise.
24628         * modules/fwriting-tests: Likewise.
24629         * tests/test-fwriting.c: Likewise.
24630         * MODULES.html.sh (File stream based Input/Output): Mention them.
24631
24632 2007-04-26  Bruno Haible  <bruno@clisp.org>
24633
24634         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
24635         'long' when we assume it.
24636         Suggested by Eric Blake.
24637
24638 2007-04-26  Bruno Haible  <bruno@clisp.org>
24639
24640         Ensure fseeko, ftello are declared on glibc systems.
24641         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
24642         * modules/fseeko (configure.ac-early): Likewise.
24643         * modules/ftello (configure.ac-early): Likewise.
24644         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
24645         AC_FUNC_FSEEKO for this.
24646         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
24647         (gl_CHECK_FSEEKO): Remove macro.
24648
24649 2007-04-26  Bruno Haible  <bruno@clisp.org>
24650
24651         * tests/test-fflush.c (main): Also check the ftell result after
24652         fflush and fseek/fseeko.
24653         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
24654         file descriptor position cache in the stream.
24655         * lib/fseeko.c (rpl_fseeko): Likewise.
24656
24657 2007-04-26  Bruno Haible  <bruno@clisp.org>
24658
24659         * modules/fflush-tests (Depends-on): Add fseeko.
24660
24661 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
24662             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24663
24664         * lib/argz_.h: ensure error_t definition is obtained in same
24665         mechanism system argz.h would have.
24666         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
24667         argz facilities are known bad.  Err on the side of caution if
24668         cross-compiling.
24669
24670 2007-04-25  Eric Blake  <ebb9@byu.net>
24671
24672         * lib/fpurge.c (includes): Use stdlib.h for free.
24673         * tests/test-fflush.c (main): Also test fflush-fseeko.
24674
24675 2007-04-25  Bruno Haible  <bruno@clisp.org>
24676
24677         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
24678         * lib/fseeko.c: New file.
24679         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
24680         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
24681         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
24682         gl_FUNC_FSEEKO.
24683         (gl_FUNC_FSEEKO): Invoke it.
24684         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
24685         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
24686         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
24687
24688 2007-04-25  Bruno Haible  <bruno@clisp.org>
24689
24690         * modules/fflush (Depends-on): Add ftello.
24691
24692 2007-04-25  Bruno Haible  <bruno@clisp.org>
24693
24694         * modules/ftello-tests: New file.
24695         * tests/test-ftello.c: New file.
24696
24697         * modules/ftello: New file.
24698         * m4/ftello.m4: New file.
24699         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
24700         HAVE_FTELLO.
24701         * lib/stdio_.h (ftello): New declaration.
24702         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
24703         HAVE_FTELLO.
24704
24705 2007-04-25  Bruno Haible  <bruno@clisp.org>
24706
24707         * modules/fseeko-tests: New file.
24708         * tests/test-fseeko.c: New file.
24709
24710         * modules/fseeko: New file.
24711         * m4/fseeko.m4: New file.
24712         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
24713         HAVE_FSEEKO.
24714         * lib/stdio_.h (fseeko): New declaration.
24715         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
24716         HAVE_FSEEKO.
24717
24718 2007-04-25  Bruno Haible  <bruno@clisp.org>
24719
24720         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
24721
24722 2007-04-25  Bruno Haible  <bruno@clisp.org>
24723
24724         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
24725         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
24726         * tests/test-unistd.c: Likewise.
24727         * tests/test-fcntl.c: Likewise.
24728
24729 2007-04-23  Eric Blake  <ebb9@byu.net>
24730
24731         * lib/fflush.c: Fix missing include.
24732         Reported by Bruno Haible.
24733
24734 2007-04-23  Bruno Haible  <bruno@clisp.org>
24735
24736         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
24737         Reported by Eric Blake.
24738
24739 2007-04-23  Bruno Haible  <bruno@clisp.org>
24740
24741         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
24742
24743 2007-04-23  Bruno Haible  <bruno@clisp.org>
24744
24745         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
24746
24747 2007-04-23  Bruno Haible  <bruno@clisp.org>
24748
24749         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
24750         Needed on HP-UX 11.
24751
24752 2007-04-16  Eric Blake  <ebb9@byu.net>
24753
24754         Make fflush rely on fpurge.
24755         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
24756         open coding all variants.
24757         * modules/fflush (Depends-on): Add fpurge and unistd.
24758         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
24759         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
24760
24761         Fix --with-tests compilation on cygwin.
24762         * modules/argmatch-tests (Makefile.am): List gnulib library first
24763         in LDADD.
24764         * modules/argp-tests (Makefile.am): Likewise.
24765         * modules/array-list-tests (Makefile.am): Likewise.
24766         * modules/array-oset-tests (Makefile.am): Likewise.
24767         * modules/avltree-list-tests (Makefile.am): Likewise.
24768         * modules/avltree-oset-tests (Makefile.am): Likewise.
24769         * modules/avltreehash-list-tests (Makefile.am): Likewise.
24770         * modules/carray-list-tests (Makefile.am): Likewise.
24771         * modules/dirname-tests (Makefile.am): Likewise.
24772         * modules/frexp-tests (Makefile.am): Likewise.
24773         * modules/isnanl-tests (Makefile.am): Likewise.
24774         * modules/linked-list-tests (Makefile.am): Likewise.
24775         * modules/linkedhash-list-tests (Makefile.am): Likewise.
24776         * modules/lock-tests (Makefile.am): Likewise.
24777         * modules/rbtree-list-tests (Makefile.am): Likewise.
24778         * modules/rbtree-oset-tests (Makefile.am): Likewise.
24779         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
24780         * modules/tls-tests (Makefile.am): Likewise.
24781         * modules/tsearch-tests (Makefile.am): Likewise.
24782         * modules/xvasprintf-tests (Makefile.am): Likewise.
24783
24784         Fix fpurge for cygwin.
24785         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
24786         value.
24787         * modules/fpurge-tests (Depends-on): Clean up trash.
24788
24789 2007-04-16  Simon Josefsson  <simon@josefsson.org>
24790
24791         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
24792
24793         * m4/autobuild.m4: Re-indent.
24794
24795 2007-04-13  Bruno Haible  <bruno@clisp.org>
24796
24797         * modules/fpurge-tests: New file.
24798         * tests/test-fpurge.c: New file.
24799
24800         * modules/fpurge: New file.
24801         * lib/fpurge.h: New file.
24802         * lib/fpurge.c: New file.
24803         * m4/fpurge.m4: New file.
24804
24805 2007-04-13  Bruno Haible  <bruno@clisp.org>
24806
24807         * modules/fbufmode-tests: New file.
24808         * tests/test-fbufmode.c: New file.
24809
24810         * modules/fbufmode: New file.
24811         * lib/fbufmode.h: New file.
24812         * lib/fbufmode.c: New file.
24813         * m4/fbufmode.m4: New file.
24814
24815 2007-04-13  Bruno Haible  <bruno@clisp.org>
24816
24817         * modules/fwritable-tests: New file.
24818         * tests/test-fwritable.c: New file.
24819
24820         * modules/fwritable: New file.
24821         * lib/fwritable.h: New file.
24822         * lib/fwritable.c: New file.
24823         * m4/fwritable.m4: New file.
24824
24825 2007-04-13  Bruno Haible  <bruno@clisp.org>
24826
24827         * modules/freadable-tests: New file.
24828         * tests/test-freadable.c: New file.
24829
24830         * modules/freadable: New file.
24831         * lib/freadable.h: New file.
24832         * lib/freadable.c: New file.
24833         * m4/freadable.m4: New file.
24834
24835 2007-04-13  Bruno Haible  <bruno@clisp.org>
24836
24837         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
24838         MOSTLYCLEANFILES.
24839
24840 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
24841
24842         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
24843         gzip bootstrap.conf to avoid dragging in i18n machinery.
24844         (gnulib_tool_option): Use it.
24845
24846 2007-04-13  Bruno Haible  <bruno@clisp.org>
24847
24848         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
24849         %F directives.
24850         * tests/test-vasprintf-posix.c (test_function): Likewise.
24851         * tests/test-snprintf-posix.h (test_function): Likewise.
24852         * tests/test-sprintf-posix.h (test_function): Likewise.
24853         * tests/test-fprintf-posix.h (test_function): Likewise.
24854         * tests/test-printf-posix.h (test_function): Likewise.
24855         * tests/test-fprintf-posix.out: Likewise.
24856
24857 2007-04-13  Bruno Haible  <bruno@clisp.org>
24858
24859         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
24860         * modules/tls-tests (configure.ac): Likewise.
24861         Reported by Arto C. Nirkko <anirkko@insel.ch>.
24862
24863 2007-04-13  Bruno Haible  <bruno@clisp.org>
24864
24865         * lib/tls.c (glthread_tls_get): Fix return type.
24866         Patch by Arto C. Nirkko <anirkko@insel.ch>.
24867
24868 2007-04-12  Eric Blake  <ebb9@byu.net>
24869
24870         * modules/gettime (Depends-on): Remove gettime.
24871         Reported by Dmitry V. Levin.
24872
24873 2007-04-12  Bruno Haible  <bruno@clisp.org>
24874
24875         * modules/fflush (Include): Mention <stdio.h>.
24876         * modules/strtoimax (Include): Mention <inttypes.h>.
24877         * modules/strtoumax (Include): Likewise.
24878
24879 2007-04-12  Eric Blake  <ebb9@byu.net>
24880
24881         * .cvsignore: New file.
24882         * .gitignore: Likewise.
24883
24884 2007-04-12  Bruno Haible  <bruno@clisp.org>
24885
24886         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
24887         not before, since $(LDADD) often contains libgnu.a.
24888         * modules/striconv-tests (test_striconv_LDADD): Likewise.
24889         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
24890         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
24891         Needed on Cygwin.
24892
24893 2007-04-12  Eric Blake  <ebb9@byu.net>
24894
24895         Work around glibc's failure to flush stdin on fclose.
24896         * lib/closein.c (close_stdin): Flush stdin before closing.
24897
24898         Work around glibc's failure to reset seekable stdin on exit.
24899         * modules/closein: New module.
24900         * lib/closein.c: New file.
24901         * lib/closein.h: Likewise.
24902         * m4/closein.m4: Likewise.
24903         * MODULES.html.sh (File stream based Input/Output): Document it.
24904
24905 2007-04-12  Simon Josefsson  <simon@josefsson.org>
24906
24907         * gnulib-tool: Rename generated 'autobuild' script to
24908         'do-autobuild' in --create-megatestdir output.
24909
24910         * doc/gnulib.texi (Build robot for gnulib): Fix.
24911
24912 2007-04-12  Simon Josefsson  <simon@josefsson.org>
24913
24914         * modules/sysexits (Depends-on): Add absolute-header.
24915
24916 2007-04-12  Eric Blake  <ebb9@byu.net>
24917
24918         No need to preserve errno on success.
24919         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
24920         Reported by Bruno Haible.
24921
24922 2007-04-12  Simon Josefsson  <simon@josefsson.org>
24923
24924         * MODULES.html.sh (Support for maintaining and releasing
24925         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
24926
24927 2007-04-12  Simon Josefsson  <simon@josefsson.org>
24928
24929         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
24930
24931 2007-04-12  Simon Josefsson  <simon@josefsson.org>
24932
24933         * modules/autobuild: New module.
24934
24935         * m4/autobuild.m4: New file.
24936
24937 2007-04-11  Bruno Haible  <bruno@clisp.org>
24938
24939         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
24940         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
24941         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
24942         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
24943         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
24944         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24945         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24946         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24947         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24948         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24949         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
24950         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24951         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24952         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
24953         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24954         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24955         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
24956         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24957         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24958         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
24959         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24960         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24961         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
24962         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24963         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24964         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
24965         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24966         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24967         Reported by Eric Blake.
24968
24969 2007-04-11  Bruno Haible  <bruno@clisp.org>
24970
24971         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
24972
24973 2007-04-10  Bruno Haible  <bruno@clisp.org>
24974
24975         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
24976         for NaN and Infinity. Needed on FreeBSD 6.1.
24977         * tests/test-vasnprintf-posix.c (test_function): Undo last change
24978         regarding results for "%010a" of Infinity and NaN.
24979         * tests/test-vasprintf-posix.c (test_function): Likewise.
24980         * tests/test-snprintf-posix.h (test_function): Likewise.
24981         * tests/test-sprintf-posix.h (test_function): Likewise.
24982         * tests/test-fprintf-posix.h (test_function): Likewise.
24983         * tests/test-printf-posix.h (test_function): Likewise.
24984         * tests/test-fprintf-posix.out: Likewise.
24985
24986 2007-04-10  Bruno Haible  <bruno@clisp.org>
24987
24988         * modules/locale-tests: New file.
24989         * tests/test-locale.c: New file.
24990
24991         * modules/locale: New file.
24992         * lib/locale_.h: New file.
24993         * m4/locale_h.m4: New file.
24994
24995 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
24996             Bruno Haible  <bruno@clisp.org>
24997
24998         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
24999         be determined, test for availability of the copysignf, copysign,
25000         copysignl functions.
25001         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
25002         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
25003         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
25004
25005 2007-04-09  Eric Blake  <ebb9@byu.net>
25006
25007         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
25008         * modules/stdio (Makefile.am): Support fflush.
25009         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25010         * modules/fflush: New file.
25011         * lib/fflush.c: Likewise.
25012         * m4/fflush.m4: Likewise.
25013         * modules/fflush-tests: New test.
25014         * tests/test-fflush.c: Likewise.
25015         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
25016
25017 2007-04-06  Bruno Haible  <bruno@clisp.org>
25018
25019         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
25020         (VASNPRINTF): Use signbit for faster determination whether to print a
25021         minus sign.
25022         * modules/vasnprintf (Files): Remove lib/float+.h.
25023         * modules/fprintf-posix (Depends-on): Add signbit.
25024         * modules/snprintf-posix (Depends-on): Likewise.
25025         * modules/sprintf-posix (Depends-on): Likewise.
25026         * modules/vasnprintf-posix (Depends-on): Likewise.
25027         * modules/vasprintf-posix (Depends-on): Likewise.
25028         * modules/vfprintf-posix (Depends-on): Likewise.
25029         * modules/vsnprintf-posix (Depends-on): Likewise.
25030         * modules/vsprintf-posix (Depends-on): Likewise.
25031
25032 2007-04-06  Bruno Haible  <bruno@clisp.org>
25033
25034         * tests/test-frexp.c (main): Test also the sign bit of zero results.
25035         * tests/test-frexpl.c (main): Likewise.
25036         * tests/test-ldexpl.c (main): Likewise.
25037         * modules/frexp-tests (Depends-on): Add signbit.
25038         * modules/frexpl-tests (Depdends-on): Likewise.
25039         * modules/ldexpl-tests (Depdends-on): Likewise.
25040
25041 2007-04-06  Bruno Haible  <bruno@clisp.org>
25042
25043         * modules/signbit-tests: New file.
25044         * tests/test-signbit.c: New file.
25045
25046         * modules/signbit: New file.
25047         * lib/signbitf.c: New file.
25048         * lib/signbitd.c: New file.
25049         * lib/signbitl.c: New file.
25050         * m4/signbit.m4: New file.
25051         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
25052         (signbit): New macro.
25053         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
25054         REPLACE_SIGNBIT.
25055         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
25056         REPLACE_FREXPL into math.h.
25057
25058 2007-04-06  Bruno Haible  <bruno@clisp.org>
25059
25060         * modules/isnanf-nolibm-tests: New file.
25061         * tests/test-isnanf.c: New file.
25062
25063         * modules/isnanf-nolibm: New file.
25064         * lib/isnanf.h: New file.
25065         * lib/isnanf.c: New file.
25066         * lib/isnan.c: Consider the USE_FLOAT macro.
25067         * m4/isnanf.m4: New file.
25068
25069 2007-04-06  Bruno Haible  <bruno@clisp.org>
25070
25071         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
25072         (Link): New section.
25073
25074         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
25075
25076 2007-04-06  Bruno Haible  <bruno@clisp.org>
25077
25078         Assume the 'long double' type.
25079         * m4/longdouble.m4: Remove file.
25080         * config/srclist.txt: Don't mention longdouble.m4.
25081         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
25082         * lib/float+.h: Likewise.
25083         * lib/frexp.c: Likewise.
25084         * lib/printf-args.h: Likewise.
25085         * lib/printf-args.c: Likewise.
25086         * lib/printf-frexp.c: Likewise.
25087         * lib/printf-parse.c: Likewise.
25088         * lib/vasnprintf.c: Likewise.
25089         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
25090         * m4/intl.m4: Likewise.
25091         * m4/isnanl.m4: Likewise.
25092         * m4/printf.m4: Likewise.
25093         * m4/printf-frexpl.m4: Likewise.
25094         * m4/vasnprintf.m4: Likewise.
25095         * modules/allocsa (Files): Remove m4/longdouble.m4.
25096         * modules/gettext (Files): Likewise.
25097         * modules/relocatable-prog-wrapper (Files): Likewise.
25098         * modules/vasnprintf (Files): Likewise.
25099         * modules/isnanl (Files): Likewise.
25100         (Include): Simplify.
25101         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
25102         (Include): Simplify.
25103         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
25104         (Include): Simplify.
25105         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
25106         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
25107         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
25108         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
25109         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
25110         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
25111         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
25112         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
25113         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
25114         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
25115         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
25116         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
25117         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
25118         * tests/test-isnanl.c: Likewise.
25119         * tests/test-snprintf-posix.h: Likewise.
25120         * tests/test-sprintf-posix.h: Likewise.
25121         * tests/test-vasnprintf-posix.c: Likewise.
25122         * tests/test-vasnprintf-posix2.c: Likewise.
25123         * tests/test-vasprintf-posix.c: Likewise.
25124
25125 2007-04-06  Bruno Haible  <bruno@clisp.org>
25126
25127         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
25128         * lib/math_.h [__DECC]: Include the overridden include file through
25129         #include_next, outside the double-inclusion guard.
25130         * lib/stdio_.h [__DECC]: Likewise.
25131         * lib/stdlib_.h [__DECC]: Likewise.
25132         * lib/string_.h [__DECC]: Likewise.
25133         * lib/time_.h [__DECC]: Likewise.
25134         * lib/wchar_.h [__DECC]: Likewise.
25135         * lib/wctype_.h [__DECC]: Likewise.
25136         * lib/inttypes_.h [__DECC]: Likewise.
25137         Reported by Albert Chin <china@thewrittenword.com> in
25138         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
25139
25140 2007-04-04  Eric Blake  <ebb9@byu.net>
25141
25142         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
25143         1.5.x.
25144
25145 2007-04-04  Bruno Haible  <bruno@clisp.org>
25146
25147         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
25148         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
25149
25150 2007-04-04  Bruno Haible  <bruno@clisp.org>
25151
25152         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
25153         results for "%010a" of Infinity and NaN.
25154         * tests/test-vasprintf-posix.c (test_function): Likewise.
25155         * tests/test-snprintf-posix.h (test_function): Likewise.
25156         * tests/test-sprintf-posix.h (test_function): Likewise.
25157         * tests/test-fprintf-posix.h (test_function): Remove these tests.
25158         * tests/test-printf-posix.h (test_function): Likewise.
25159         * tests/test-fprintf-posix.out: Update.
25160         Needed for FreeBSD 6.1.
25161
25162 2007-04-04  Bruno Haible  <bruno@clisp.org>
25163
25164         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
25165         directly used by the gnulib modules nor by gnulib-tool.
25166
25167 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
25168
25169         * DEPENDENCIES: Give overall description of version dependency
25170         desirability.  Use more-typical names for apps.
25171         Add shell, coreutils, diffutils, grep, tar, gzip.
25172
25173 2007-04-04  Simon Josefsson  <simon@josefsson.org>
25174
25175         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
25176
25177 2007-04-04  Karl Berry  <karl@gnu.org>
25178
25179         * MODULES.html.sh (func_module): missing '.
25180
25181 2007-04-03  Bruno Haible  <bruno@clisp.org>
25182
25183         * modules/argmatch-tests (Makefile.am): New variable
25184         test_argmatch_LDADD.
25185         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
25186         * modules/array-list-tests (Makefile.am): New variable
25187         test_array_list_LDADD.
25188         * modules/array-oset-tests (Makefile.am): New variable
25189         test_array_oset_LDADD.
25190         * modules/avltree-list-tests (Makefile.am): New variable
25191         test_avltree_list_LDADD.
25192         * modules/avltree-oset-tests (Makefile.am): New variable
25193         test_avltree_oset_LDADD.
25194         * modules/avltreehash-list-tests (Makefile.am): New variable
25195         test_avltreehash_list_LDADD.
25196         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
25197         test_canonicalize_lgpl_LDADD.
25198         * modules/carray-list-tests (Makefile.am): New variable
25199         test_carray_list_LDADD.
25200         * modules/dirname-tests (Makefile.am): New variable
25201         test_dirname_LDADD.
25202         * modules/linked-list-tests (Makefile.am): New variable
25203         test_linked_list_LDADD.
25204         * modules/linkedhash-list-tests (Makefile.am): New variable
25205         test_linkedhash_list_LDADD.
25206         * modules/rbtree-list-tests (Makefile.am): New variable
25207         test_rbtree_list_LDADD.
25208         * modules/rbtree-oset-tests (Makefile.am): New variable
25209         test_rbtree_oset_LDADD.
25210         * modules/rbtreehash-list-tests (Makefile.am): New variable
25211         test_rbtreehash_list_LDADD.
25212         * modules/xvasprintf-tests (Makefile.am): New variable
25213         test_xvasprintf_LDADD.
25214         Reported by Eric Blake.
25215
25216 2007-04-03  Eric Blake  <ebb9@byu.net>
25217
25218         * DEPENDENCIES: Weaken m4 requirements.
25219
25220 2007-04-03  Bruno Haible  <bruno@clisp.org>
25221
25222         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
25223         * modules/isnanl-tests (configure.ac): Likewise.
25224
25225 2007-04-03  Ben Pfaff  <blp@gnu.org>
25226
25227         * modules/iconv_open: Add $(srcdir)/ to source directory
25228         references in Makefile fragments that call gperf, to fix VPATH
25229         builds.
25230
25231 2007-04-03  Bruno Haible  <bruno@clisp.org>
25232
25233         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
25234         * lib/ldexpl.c: Undo last change.
25235
25236 2007-04-03  Bruno Haible  <bruno@clisp.org>
25237
25238         * modules/printf-frexpl (Depends-on): Undo last change.
25239         (Files): Add m4/ldexpl.m4.
25240
25241 2007-04-03  Bruno Haible  <bruno@clisp.org>
25242
25243         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
25244         * modules/isnanl (Link): New section.
25245
25246         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
25247         * modules/frexp (Link): New section.
25248
25249         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
25250         * modules/frexpl (Link): New section.
25251
25252         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
25253         * modules/ldexpl (Link): New section.
25254
25255 2007-04-03  Bruno Haible  <bruno@clisp.org>
25256
25257         * modules/TEMPLATE-EXTENDED: New file.
25258         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
25259
25260 2007-04-03  Bruno Haible  <bruno@clisp.org>
25261
25262         * DEPENDENCIES: New file.
25263         Suggested by Simon Josefsson.
25264
25265 2007-04-03  Bruno Haible  <bruno@clisp.org>
25266
25267         * doc/gnulib.texi: Escape @.
25268
25269 2007-04-03  James Youngman  <jay@gnu.org>
25270         and Paul Eggert  <eggert@cs.ucla.edu>
25271
25272         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
25273         birthtime on all systems that have birthtime, not just those which
25274         use st_birthtimensec rather than st_birthtim.  Putting zero in
25275         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
25276         that the birth time is not available for files on an NFS mount.
25277
25278 2007-04-03  Simon Josefsson  <simon@josefsson.org>
25279
25280         * modules/memxor: Move back from crypto/, suggested by Bruno.
25281         * modules/crypto/hmac-sha1: Fix memxor dependency.
25282
25283         * modules/crypto/gc: Moved from ../.
25284
25285 2007-04-02  Eric Blake  <ebb9@byu.net>
25286
25287         * lib/ldexpl.c (includes): Avoid libm.
25288
25289         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
25290
25291 2007-04-02  Bruno Haible  <bruno@clisp.org>
25292
25293         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
25294         on IRIX.
25295
25296 2007-04-02  Bruno Haible  <bruno@clisp.org>
25297
25298         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
25299         x86 or x86_64 platforms running MacOS X.
25300         Reported by Ryan Schmidt <@ryandesign.com>.
25301
25302 2007-04-02  Bruno Haible  <bruno@clisp.org>
25303
25304         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
25305         i386.
25306
25307 2007-04-01  Simon Josefsson  <simon@josefsson.org>
25308
25309         * modules/crypto/arcfour: Moved from ../.
25310         * modules/crypto/arcfour-tests: Moved from ../.
25311         * modules/crypto/arctwo: Moved from ../.
25312         * modules/crypto/arctwo-tests: Moved from ../.
25313         * modules/crypto/des: Moved from ../.
25314         * modules/crypto/des-tests: Moved from ../.
25315         * modules/crypto/gc-arcfour: Moved from ../.
25316         * modules/crypto/gc-arcfour-tests: Moved from ../.
25317         * modules/crypto/gc-arctwo: Moved from ../.
25318         * modules/crypto/gc-arctwo-tests: Moved from ../.
25319         * modules/crypto/gc-des: Moved from ../.
25320         * modules/crypto/gc-des-tests: Moved from ../.
25321         * modules/crypto/gc-hmac-md5: Moved from ../.
25322         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
25323         * modules/crypto/gc-hmac-sha1: Moved from ../.
25324         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
25325         * modules/crypto/gc-md2: Moved from ../.
25326         * modules/crypto/gc-md2-tests: Moved from ../.
25327         * modules/crypto/gc-md4: Moved from ../.
25328         * modules/crypto/gc-md4-tests: Moved from ../.
25329         * modules/crypto/gc-md5: Moved from ../.
25330         * modules/crypto/gc-md5-tests: Moved from ../.
25331         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
25332         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
25333         * modules/crypto/gc-random: Moved from ../.
25334         * modules/crypto/gc-rijndael: Moved from ../.
25335         * modules/crypto/gc-rijndael-tests: Moved from ../.
25336         * modules/crypto/gc-sha1: Moved from ../.
25337         * modules/crypto/gc-sha1-tests: Moved from ../.
25338         * modules/crypto/gc-tests: Moved from ../.
25339         * modules/crypto/hmac-md5: Moved from ../.
25340         * modules/crypto/hmac-md5-tests: Moved from ../.
25341         * modules/crypto/hmac-sha1: Moved from ../.
25342         * modules/crypto/hmac-sha1-tests: Moved from ../.
25343         * modules/crypto/md2: Moved from ../.
25344         * modules/crypto/md2-tests: Moved from ../.
25345         * modules/crypto/md4: Moved from ../.
25346         * modules/crypto/md4-tests: Moved from ../.
25347         * modules/crypto/md5: Moved from ../.
25348         * modules/crypto/md5-tests: Moved from ../.
25349         * modules/crypto/memxor: Moved from ../.
25350         * modules/crypto/rijndael: Moved from ../.
25351         * modules/crypto/rijndael-tests: Moved from ../.
25352         * modules/crypto/sha1: Moved from ../.
25353
25354 2007-03-30  James Youngman  <jay@gnu.org>
25355
25356         * tests/test-stat-time.c (prepare_test): use chmod() rather than
25357         rename() to change the ctime of a file (because ctime is unaffected
25358         by rename on jfs2 on AIX 5.1).
25359         (main): Start by doing cleanup, in case a previous run failed leaving
25360         test files behind.
25361
25362 2007-03-31  Bruno Haible  <bruno@clisp.org>
25363
25364         Support old proprietary implementations of iconv.
25365         * modules/iconv_open: New file.
25366         * lib/iconv_.h: New file.
25367         * m4/iconv_h.m4: New file.
25368         * lib/iconv_open.c: New file.
25369         * lib/iconv_open-aix.gperf: New file.
25370         * lib/iconv_open-hpux.gperf: New file.
25371         * lib/iconv_open-irix.gperf: New file.
25372         * lib/iconv_open-osf.gperf: New file.
25373         * m4/iconv_open.m4: New file.
25374         * modules/linebreak (Depends-on): Add iconv_open.
25375         * modules/striconv (Depends-on): Likewise.
25376         * modules/striconveh (Depends-on): Likewise.
25377         * modules/unicodeio (Depends-on): Likewise.
25378         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
25379         (iconv_t)(-1).
25380         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
25381         conversion if cd is (iconv_t)(-1).
25382         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
25383         is not possible.
25384
25385 2007-03-31  Bruno Haible  <bruno@clisp.org>
25386
25387         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
25388         work on Solaris either. Protect also second use of "autodetect_jp".
25389
25390 2007-03-31  Bruno Haible  <bruno@clisp.org>
25391
25392         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
25393         the function is not present.
25394
25395 2007-03-31  Bruno Haible  <bruno@clisp.org>
25396
25397         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
25398         the function is not present.
25399
25400 2007-03-31  Bruno Haible  <bruno@clisp.org>
25401
25402         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
25403         a bug in HP-UX iconv_open().
25404
25405 2007-03-31  Bruno Haible  <bruno@clisp.org>
25406
25407         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
25408         (Mathematics <math.h>): New section, add fpieee.
25409         (Input/output <stdio.h>): Add fseterr.
25410         (Mathematics <math.h>): New section, add printf-frexp.
25411         (Container data structures): Add sublist.
25412         (Core language properties): Add fpucw, inline.
25413         (Functions for greatest-width integer types <inttypes.h>): Add
25414         imaxabs, imaxdiv, inttypes.
25415         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
25416         isnanl-nolibm, ldexp.
25417         (Mathematics <math.h>): New section, add printf-frexpl.
25418         (Support for systems lacking POSIX:2001): Add fprintf-posix,
25419         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
25420         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
25421         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
25422         (Unicode string functions): Add unistr/u*-mbtoucr.
25423         (Java): Add javacomp-script, javaexec-script.
25424         (C#): Add csharpcomp-script, csharpexec-script.
25425         (Support for building libraries and executables): Add havelib,
25426         relocatable-*.
25427         (Support for maintaining and releasing projects): Renamed from
25428         'Support for maintaining and release projects'. Add announce-gen.
25429
25430 2007-03-31  Bruno Haible  <bruno@clisp.org>
25431
25432         * README: Talk primarily about git.
25433         (git and CVS): Renamed from CVS.
25434         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
25435         gnulib is available through git.
25436         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
25437
25438 2007-03-30  Bruno Haible  <bruno@clisp.org>
25439
25440         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
25441         * lib/poll_.h: Likewise.
25442         * lib/stat_.h: Likewise.
25443         * lib/sys_time_.h: Likewise.
25444         * lib/sysexit_.h: Likewise.
25445         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
25446         * lib/stdbool_.h: Likewise.
25447         * lib/byteswap_.h: Add double-inclusion guard.
25448
25449 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
25450
25451         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
25452
25453 2007-03-30  Karl Berry  <karl@gnu.org>
25454
25455         * config/srclist-update: double space after USA in the license
25456         substitution, since that's how it's usually (?) written.
25457
25458 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
25459
25460         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
25461         reported by Bruno Haible.
25462
25463 2007-03-29  Bruno Haible  <bruno@clisp.org>
25464
25465         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
25466         a bug in AIX iconv().
25467
25468 2007-03-29  Bruno Haible  <bruno@clisp.org>
25469
25470         * modules/ldexpl-tests: New file.
25471         * tests/test-ldexpl.c: New file.
25472
25473 2007-03-29  Bruno Haible  <bruno@clisp.org>
25474
25475         * lib/ldexpl.c: Include fpucw.h.
25476         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
25477         multiplication.
25478         * modules/ldexpl (Depends-on): Add fpucw.
25479
25480 2007-03-29  Bruno Haible  <bruno@clisp.org>
25481
25482         * modules/ldexpl: New file.
25483         * m4/ldexpl.m4: New file.
25484         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
25485         set.
25486         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
25487         REPLACE_LDEXPL.
25488         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
25489         REPLACE_LDEXPL.
25490         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
25491         gl_FUNC_LDEXPL_WORKS.
25492         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
25493         * modules/mathl (Files): Remove lib/ldexpl.c.
25494         (Depends-on): Add ldexpl.
25495
25496 2007-03-29  Bruno Haible  <bruno@clisp.org>
25497
25498         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
25499
25500 2007-03-29  Bruno Haible  <bruno@clisp.org>
25501
25502         * tests/test-striconveh.c (main): Don't assume that a direct conversion
25503         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
25504         and possibly also HP-UX.
25505         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
25506         work on AIX, IRIX, HP-UX, OSF/1.
25507         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
25508         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
25509         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
25510         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
25511         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
25512         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
25513
25514 2007-03-29  Bruno Haible  <bruno@clisp.org>
25515
25516         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
25517
25518 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
25519
25520         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
25521         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
25522
25523 2007-03-29  Eric Blake  <ebb9@byu.net>
25524
25525         * lib/acl-internal.h: Remove redundant include.
25526         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
25527         Cygwin when a file is locked.
25528
25529 2007-03-29  Bruno Haible  <bruno@clisp.org>
25530
25531         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
25532         file.
25533         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
25534
25535 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
25536
25537         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
25538         try to remove a parent directory if the child couldn't be removed
25539         (except for the first rmdir, which could fail because the child
25540         doesn't exist).  Problem reported by Jeff Blaine in
25541         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
25542
25543 2007-03-28  Bruno Haible  <bruno@clisp.org>
25544
25545         * lib/striconveh.c (utf8conv_carefully): New function.
25546         (mem_cd_iconveh_internal): Invoke it.
25547
25548 2007-03-28  Bruno Haible  <bruno@clisp.org>
25549
25550         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
25551         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
25552         input.
25553         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
25554         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
25555         unistr/u8-uctomb.
25556
25557 2007-03-28  Bruno Haible  <bruno@clisp.org>
25558
25559         * modules/unistr/u8-mbtoucr: New file.
25560         * lib/unistr/u8-mbtoucr.c: New file.
25561         * modules/unistr/u16-mbtoucr: New file.
25562         * lib/unistr/u16-mbtoucr.c: New file.
25563         * modules/unistr/u16-mbtoucr: New file.
25564         * lib/unistr/u16-mbtoucr.c: New file.
25565         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
25566
25567 2007-03-27  Simon Josefsson  <simon@josefsson.org>
25568             Bruno Haible  <bruno@clisp.org>
25569
25570         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
25571         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
25572         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
25573
25574         * m4/stdio_h.m4: Add stubs for vasprintf too.
25575
25576         * modules/stdio: Support vasprintf in sed command.
25577
25578         * modules/vasprintf: Depend on stdio for prototypes.  Remove
25579         vasprintf.h.  Add stdio module indicator.
25580
25581         * lib/stdio_.h: Declare asprintf and vasprintf, based on
25582         vasprintf.h.
25583
25584         * lib/vasprintf.h: File removed.
25585
25586         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
25587         * lib/vasprintf.c: Ditto.
25588         * lib/xvasprintf.c: Ditto.
25589         * tests/test-vasprintf-posix.c: Ditto.
25590         * tests/test-vasprintf.c: Ditto.
25591
25592 2007-03-27  Bruno Haible  <bruno@clisp.org>
25593
25594         Make vasnprintf multithread-safe.
25595         * lib/vasnprintf.c (decimal_point_char): New function.
25596         (VASNPRINTF): Use it.
25597         Suggested by Simon Josefsson.
25598
25599 2007-03-27  Eric Blake  <ebb9@byu.net>
25600
25601         Support sub-second birthtime on cygwin.
25602         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
25603         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
25604         (get_stat_birthtime): Also work with st_birthtim.
25605
25606 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
25607
25608         * lib/stat-time.h (USE_BIRTHTIME): Remove.
25609         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
25610         (get_stat_birthtime_ns): Do not try to use "spare" fields.
25611         (get_stat_birthtime_ns): Simplify compile-time tests.
25612         (get_stat_birthtime): Change the API to look like
25613         get_stat_mtime etc., except return a negative tv_nsec on error.
25614         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
25615         Don't check for "spare" fields.
25616         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
25617         or for struct stat.st_birthtime, as these tests aren't used.
25618         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
25619
25620 2007-03-27  Bruno Haible  <bruno@clisp.org>
25621
25622         * lib/stat-time.h: Include <sys/stat.h>.
25623
25624 2007-03-27  James Youngman  <jay@gnu.org>
25625
25626         * lib/stat-time.h (get_stat_birthtime): New function for
25627           retrieving st_birthtime as provided by UFS2 (hence *BSD).
25628         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
25629           and its variants.
25630         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
25631         * modules/stat-time-test: New file.
25632         * tests/test-stat-time.c: New test, devised by Bruno Haible.
25633
25634 2007-03-26  Bruno Haible  <bruno@clisp.org>
25635
25636         Better support of signalling NaNs.
25637         * lib/atanl.c: Include isnanl.h.
25638         (atanl): Perform test for NaN at the beginning of the function and
25639         through a call to isnanl.
25640         * lib/cosl.c: Include isnanl.h.
25641         (cosl): Perform test for NaN at the beginning of the function and
25642         through a call to isnanl.
25643         * lib/ldexpl.c: Include isnanl.h.
25644         (ldexpl): Perform test for NaN through a call to isnanl.
25645         * lib/logl.c: Include isnanl.h.
25646         (logl): Perform test for NaN at the beginning of the function and
25647         through a call to isnanl.
25648         * lib/sinl.c: Include isnanl.h.
25649         (sinl): Perform test for NaN at the beginning of the function and
25650         through a call to isnanl.
25651         * lib/sqrtl.c: Include isnanl.h.
25652         (sqrtl): Perform test for NaN at the beginning of the function and
25653         through a call to isnanl.
25654         * lib/tanl.c: Include isnanl.h.
25655         (tanl): Perform test for NaN at the beginning of the function and
25656         through a call to isnanl.
25657         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
25658         * modules/mathl (Depends-on): Add isnanl.
25659
25660 2007-03-26  Eric Blake  <ebb9@byu.net>
25661
25662         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
25663         regression in logic sense of previous patch.
25664
25665 2007-03-26  Bruno Haible  <bruno@clisp.org>
25666
25667         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
25668         unportable shell command "if ! ...".
25669         Reported by Ralf Wildenhues.
25670
25671 2007-03-25  Bruno Haible  <bruno@clisp.org>
25672
25673         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
25674         <sysexits.h> file, and only add EX_CONFIG.
25675         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
25676         absolute file name and whether it is sufficient. Substitute also
25677         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
25678         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
25679         ABSOLUTE_SYSEXITS_H into sysexits.h.
25680
25681 2007-03-25  Bruno Haible  <bruno@clisp.org>
25682
25683         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
25684         hints is NULL.
25685
25686 2007-03-25  Bruno Haible  <bruno@clisp.org>
25687
25688         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
25689         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
25690
25691 2007-03-25  Bruno Haible  <bruno@clisp.org>
25692
25693         * lib/vasnprintf.c: Include langinfo.h.
25694         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
25695         multithread-safe.
25696         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
25697         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
25698         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25699         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25700         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25701         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25702         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25703         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
25704         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25705         Reported by Simon Josefsson.
25706
25707 2007-03-25  Bruno Haible  <bruno@clisp.org>
25708
25709         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
25710         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
25711         * modules/vasnprintf (Depends-on): Add stdint.
25712
25713 2007-03-25  Bruno Haible  <bruno@clisp.org>
25714
25715         * modules/fpieee: New file.
25716         * m4/fpieee.m4: New file.
25717         * modules/isnan-nolibm (Depends-on): Add fpieee.
25718         * modules/isnanl-nolibm (Depends-on): Add fpieee.
25719         * modules/isnanl (Depends-on): Add fpieee.
25720
25721 2007-03-25  Bruno Haible  <bruno@clisp.org>
25722
25723         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
25724
25725 2007-03-25  Bruno Haible  <bruno@clisp.org>
25726
25727         Avoid test failures on IRIX 6.5.
25728         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
25729         (main): Use it.
25730         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
25731         macros.
25732         (main): Use them.
25733
25734 2007-03-25  Bruno Haible  <bruno@clisp.org>
25735
25736         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
25737         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
25738         exists but doesn't work.
25739         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
25740         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
25741         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
25742         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
25743
25744 2007-03-25  Bruno Haible  <bruno@clisp.org>
25745
25746         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
25747         returns inf. Needed on IRIX 6.5.
25748
25749 2007-03-25  Bruno Haible  <bruno@clisp.org>
25750
25751         * tests/test-frexpl.c: Include isnanl-nolibm.h.
25752         (main): Use isnanl instead of x != x idiom.
25753         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
25754
25755         * tests/test-frexp.c: Include isnan.h.
25756         (main): Use isnan instead of x != x idiom.
25757         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
25758
25759 2007-03-25  Bruno Haible  <bruno@clisp.org>
25760
25761         * tests/test-frexp.c (NaN): New function/macro.
25762         (main): Use it instead of 0.0 / 0.0.
25763         * tests/test-isnan.c (NaN): New function/macro.
25764         (main): Use it instead of 0.0 / 0.0.
25765         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
25766         (test_function): Use it instead of 0.0 / 0.0.
25767         * tests/test-vasprintf-posix.c (NaN): New function/macro.
25768         (test_function): Use it instead of 0.0 / 0.0.
25769         * tests/test-snprintf-posix.h (NaN): New function/macro.
25770         (test_function): Use it instead of 0.0 / 0.0.
25771         * tests/test-sprintf-posix.h (NaN): New function/macro.
25772         (test_function): Use it instead of 0.0 / 0.0.
25773         * tests/test-fprintf-posix.h (NaN): New function/macro.
25774         (test_function): Use it instead of 0.0 / 0.0.
25775         * tests/test-printf-posix.h (NaN): New function/macro.
25776         (test_function): Use it instead of 0.0 / 0.0.
25777
25778         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
25779
25780 2007-03-25  Bruno Haible  <bruno@clisp.org>
25781
25782         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
25783
25784 2007-03-25  Bruno Haible  <bruno@clisp.org>
25785
25786         * lib/regexec.c (merge_state_with_log): Make static.
25787
25788 2007-03-25  Bruno Haible  <bruno@clisp.org>
25789
25790         * lib/trigl.c (kernel_rem_pio2): Make static.
25791
25792 2007-03-25  Bruno Haible  <bruno@clisp.org>
25793
25794         * lib/sincosl.c (sincosl_table): Make static.
25795
25796 2007-03-25  Bruno Haible  <bruno@clisp.org>
25797
25798         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
25799         if the compiler does not support C99.
25800
25801 2007-03-25  Bruno Haible  <bruno@clisp.org>
25802
25803         * modules/time (Makefile.am): Ensure all rule action lines start with a
25804         tab.
25805
25806 2007-03-24  Bruno Haible  <bruno@clisp.org>
25807
25808         * modules/tsearch-tests: New file.
25809         * tests/test-tsearch.sh: New file.
25810         * tests/test-tsearch.c: New file, mostly copied from glibc.
25811
25812         * modules/search-tests: New file.
25813         * tests/test-search.c: New file.
25814
25815         * modules/search: New file.
25816         * lib/search_.h: New file, incorporating lib/tsearch.h.
25817         * m4/search_h.m4: New file.
25818         * lib/tsearch.h: Remove file.
25819         * lib/tsearch.c: Include search.h instead of tsearch.h.
25820         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
25821         HAVE_TSEARCH.
25822         * modules/tsearch (Files): Remove lib/tsearch.h.
25823         (Depends-on): Add search.
25824         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
25825         (Include): Change tsearch.h into search.h.
25826
25827 2007-03-24  Bruno Haible  <bruno@clisp.org>
25828
25829         * modules/fpucw: New file.
25830         * lib/fpucw.h: New file.
25831         * lib/frexp.c: Include fpucw.h.
25832         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
25833         (FUNC): Use them.
25834         * lib/printf-frexp.c: Include fpucw.h.
25835         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
25836         (FUNC): Use them.
25837         * lib/vasnprintf.c: Include fpucw.h.
25838         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
25839         'long double' calculations.
25840         * tests/test-frexpl.c: Include fpucw.h.
25841         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
25842         * tests/test-printf-frexpl.c: Include fpucw.h.
25843         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
25844         * modules/frexpl (Depends-on): Add fpucw.
25845         * modules/printf-frexpl (Depends-on): Likewise.
25846         * modules/fprintf-posix (Depends-on): Likewise.
25847         * modules/snprintf-posix (Depends-on): Likewise.
25848         * modules/sprintf-posix (Depends-on): Likewise.
25849         * modules/vasnprintf-posix (Depends-on): Likewise.
25850         * modules/vasprintf-posix (Depends-on): Likewise.
25851         * modules/vfprintf-posix (Depends-on): Likewise.
25852         * modules/vsnprintf-posix (Depends-on): Likewise.
25853         * modules/vsprintf-posix (Depends-on): Likewise.
25854         * modules/frexpl-tests (Depends-on): Likewise.
25855         * modules/printf-frexpl-tests (Depends-on): Likewise.
25856
25857 2007-03-24  Bruno Haible  <bruno@clisp.org>
25858
25859         * lib/float+.h: New file.
25860         * lib/isnan.c: Include float+.h.
25861         (SIZE): New macro.
25862         (FUNC): Compare only SIZE bytes of the value.
25863         * lib/vasnprintf.c: Include float+.h.
25864         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
25865         SIZEOF_LDBL or SIZEOF_DBL bytes.
25866         * modules/isnan-nolibm (Files): Add lib/float+.h.
25867         * modules/isnanl-nolibm (Files): Add lib/float+.h.
25868         * modules/isnanl (Files): Add lib/float+.h.
25869         * modules/vasnprintf (Files): Add lib/float+.h.
25870
25871 2007-03-24  Bruno Haible  <bruno@clisp.org>
25872
25873         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
25874         include isnanl-nolibm.h.
25875
25876 2007-03-24  Bruno Haible  <bruno@clisp.org>
25877
25878         * tests/test-read-file.c (main): Don't produce spurious output for
25879         expected situations. Make the test fail if it encountered unexpected
25880         results.
25881
25882 2007-03-24  Bruno Haible  <bruno@clisp.org>
25883
25884         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
25885         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
25886
25887 2007-03-24  Bruno Haible  <bruno@clisp.org>
25888
25889         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
25890
25891 2007-03-24  Bruno Haible  <bruno@clisp.org>
25892
25893         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
25894         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
25895
25896         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
25897         * modules/utf8-ucs4: Turn into a symbolic link to module
25898         unistr/u8-mbtouc.
25899
25900         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
25901         utf8-ucs4-unsafe.
25902         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
25903         unistr/u8-mbtouc-unsafe.
25904
25905         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
25906         * modules/utf16-ucs4: Turn into a symbolic link to module
25907         unistr/u16-mbtouc.
25908
25909         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
25910         utf16-ucs4-unsafe.
25911         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
25912         unistr/u16-mbtouc-unsafe.
25913
25914         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
25915         * modules/ucs4-utf8: Turn into a symbolic link to module
25916         unistr/u8-ubtomb.
25917
25918         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
25919         * modules/ucs4-utf16: Turn into a symbolic link to module
25920         unistr/u16-ubtomb.
25921
25922 2007-03-24  Bruno Haible  <bruno@clisp.org>
25923
25924         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
25925         Enable the function only if HAVE_INLINE.
25926         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
25927         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
25928         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
25929         Enable the function only if HAVE_INLINE.
25930         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
25931         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
25932         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
25933         Enable the function only if HAVE_INLINE.
25934         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
25935         Enable the function only if HAVE_INLINE.
25936         * modules/utf8-ucs4: Update.
25937         * modules/utf8-ucs4-unsafe: Update.
25938         * modules/utf16-ucs4: Update.
25939         * modules/utf16-ucs4-unsafe: Update.
25940         * modules/ucs4-utf8: Update.
25941         * modules/ucs4-utf16: Update.
25942
25943 2007-03-24  Bruno Haible  <bruno@clisp.org>
25944
25945         * lib/utf8-ucs4.h: Remove file.
25946         * lib/utf8-ucs4-unsafe.h: Remove file.
25947         * lib/utf16-ucs4.h: Remove file.
25948         * lib/utf16-ucs4-unsafe.h: Remove file.
25949         * lib/ucs4-utf8.h: Remove file.
25950         * lib/ucs4-utf16.h: Remove file.
25951         * lib/unistr.h: Include their previous contents.
25952         * m4/utf-ucs4.m4: Remove file.
25953         * m4/ucs4-utf.m4: Remove file.
25954         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
25955         (Depends-on): Add unistr/base.
25956         (configure.ac): Remove gl_UTF_UCS4.
25957         (Makefile.am): Update.
25958         (Include): Change to unistr.h.
25959         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
25960         (Depends-on): Add unistr/base.
25961         (configure.ac): Remove gl_UTF_UCS4.
25962         (Makefile.am): Update.
25963         (Include): Change to unistr.h.
25964         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
25965         (Depends-on): Add unistr/base.
25966         (configure.ac): Remove gl_UTF_UCS4.
25967         (Makefile.am): Update.
25968         (Include): Change to unistr.h.
25969         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
25970         (Depends-on): Add unistr/base.
25971         (configure.ac): Remove gl_UTF_UCS4.
25972         (Makefile.am): Update.
25973         (Include): Change to unistr.h.
25974         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
25975         (Depends-on): Add unistr/base.
25976         (configure.ac): Remove gl_UCS4_UTF.
25977         (Makefile.am): Update.
25978         (Include): Change to unistr.h.
25979         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
25980         (Depends-on): Add unistr/base.
25981         (configure.ac): Remove gl_UCS4_UTF.
25982         (Makefile.am): Update.
25983         (Include): Change to unistr.h.
25984         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
25985         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
25986         utf8-ucs4-unsafe.h.
25987         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
25988         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
25989         utf16-ucs4-unsafe.h.
25990         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
25991         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
25992         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
25993         * lib/unistr/u8-strchr.c: Likewise.
25994         * lib/unistr/u8-strrchr.c: Likewise.
25995         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
25996         * lib/unistr/u16-strchr.c: Likewise.
25997         * lib/unistr/u16-strrchr.c: Likewise.
25998         * lib/striconveh.c: Update.
25999         * lib/linebreak.c: Update.
26000
26001 2007-03-24  Bruno Haible  <bruno@clisp.org>
26002
26003         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
26004         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
26005
26006 2007-03-22  Bruno Haible  <bruno@clisp.org>
26007
26008         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
26009
26010 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
26011
26012         * MODULES.html.sh (File system functions): New module write-any-file.
26013         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
26014         * m4/write-any-file.m4: New files.
26015
26016 2007-03-23  Eric Blake  <ebb9@byu.net>
26017
26018         * gnulib-tool: Rearrange space-tab sequences, since some editors
26019         like to eat them.
26020
26021 2007-03-23  Eric Blake  <ebb9@byu.net>
26022
26023         * lib/version-etc.c (version_etc_va): Update license wording to
26024         be more concise.  Recommended by Richard Stallman.
26025
26026 2007-03-22  Bruno Haible  <bruno@clisp.org>
26027
26028         * lib/poll.c (MSG_PEEK): New fallback definition.
26029
26030 2007-03-22  Bruno Haible  <bruno@clisp.org>
26031
26032         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
26033         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
26034         (main): Update.
26035         Fixes a compilation error on BeOS.
26036
26037 2007-03-22  Bruno Haible  <bruno@clisp.org>
26038
26039         * modules/frexpl-tests: New file.
26040         * tests/test-frexpl.c: New file.
26041
26042         * modules/frexpl: New file.
26043         * m4/frexpl.m4: New file.
26044         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
26045         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
26046         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
26047         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
26048         (Depends-on): Add frexpl. Remove isnanl-nolibm.
26049         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
26050
26051 2007-03-22  Bruno Haible  <bruno@clisp.org>
26052
26053         * lib/frexpl.c: Share code with lib/frexp.c.
26054         * modules/mathl (Files): Add lib/frexp.c.
26055         (Depends-on): Add isnanl-nolibm.
26056
26057 2007-03-22  Bruno Haible  <bruno@clisp.org>
26058
26059         * modules/printf-frexp (Files): Add m4/frexp.m4.
26060         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
26061         only if the found frexp function actually works.
26062
26063 2007-03-22  Bruno Haible  <bruno@clisp.org>
26064
26065         * lib/frexp.c: Remove older implementation that uses divisions.
26066
26067 2007-03-21  Bruno Haible  <bruno@clisp.org>
26068
26069         * modules/frexp-tests: New file.
26070         * tests/test-frexp.c: New file.
26071
26072         * modules/frexp: New file.
26073         * lib/frexp.c: New file.
26074         * m4/frexp.m4: New file.
26075         * lib/math_.h (frexp): New declaration.
26076         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
26077         REPLACE_FREXP.
26078         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
26079
26080 2007-03-21  Bruno Haible  <bruno@clisp.org>
26081
26082         * modules/isnanl-tests: New file.
26083         * tests/test-isnanl.c: New file.
26084
26085         * modules/isnanl: New file.
26086         * lib/isnanl.h: New file.
26087         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
26088         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
26089         gl_FUNC_ISNANL_WORKS.
26090         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
26091         New macros.
26092
26093 2007-03-21  Bruno Haible  <bruno@clisp.org>
26094
26095         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
26096         lib/isnanl.h.
26097         (Include): Update.
26098         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
26099         * lib/vasnprintf.c: Update.
26100         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
26101         tests/test-isnanl.h, remove tests/test-isnanl.c.
26102         (Makefile.am): Update.
26103         * tests/test-isnanl-nolibm.c: New file.
26104         * tests/test-isnanl.h: New file.
26105         * tests/test-isnanl.c: Remove file.
26106
26107 2007-03-21  Jim Meyering  <jim@meyering.net>
26108
26109         When trying to open ".", treat ESTALE like EACCES.
26110         * lib/savewd.c (savewd_save): Resort to forking not just upon
26111         failure with EACCES, but also when errno is ESTALE.
26112
26113 2007-03-20  Bruno Haible  <bruno@clisp.org>
26114
26115         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
26116         Needed on AIX 5.1. Reported by Matthew Woehlke.
26117
26118 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
26119
26120         Suggestions by Bruno Haible:
26121         * lib/acl-internal.h: Include "gettext.h" rather than rolling
26122         our own.
26123         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
26124         * modules/acl (Depends-on): Add gettext.
26125
26126 2007-03-19  Bruno Haible  <bruno@clisp.org>
26127
26128         * modules/iconvme: Remove file.
26129         * lib/iconvme.h: Remove file.
26130         * lib/iconvme.c: Remove file.
26131         * m4/iconvme.m4: Remove file.
26132
26133 2007-03-19  Bruno Haible  <bruno@clisp.org>
26134
26135         * doc/relocatable-maint.texi: Break long shell script line.
26136         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
26137
26138 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
26139
26140         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
26141         handle file_has_acl.
26142         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
26143         * lib/acl.c: Move header inclusions and related macro defns into
26144         lib/acl-internal.h.
26145         (S_ISLNK): Remove defn, since that's now done for us.
26146         (file_has_acl): Move to lib/file-has-acl.c.
26147         Call acl_trivial if available.  This is the crucial part of the fix.
26148         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
26149         shared within the library.  Rewrite a bit, partly to make it compatible
26150         with the GNU coding style.
26151         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
26152         Remove unnecessary double-quotes.
26153         Don't test for acl_to_text; the build will catch that.
26154         Replace acl_entries if it doesn't exist and it is needed.
26155         Check for -lsec and acl_trivial (as used on Solaris 10).
26156         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
26157         lib/file-has-acl.c.
26158         (Depends-on): Add sys_stat, for S_ISLNK.
26159
26160 2007-03-19  Ben Pfaff  <blp@gnu.org>
26161
26162         * doc/gnulib.texi: Fix typos.
26163         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
26164
26165 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
26166
26167         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
26168         If size is zero here, buf must be zero.
26169
26170 2007-03-19  Simon Josefsson  <simon@josefsson.org>
26171
26172         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
26173         <bruno@clisp.org>.
26174
26175 2007-03-18  Bruno Haible  <bruno@clisp.org>
26176
26177         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
26178         Suggested by Eric Blake.
26179
26180 2007-03-18  Ben Pfaff  <blp@gnu.org>
26181
26182         * doc/relocatable.texi: Recommend using as prefix a directory
26183         that does not exist and will never be created.  Based on
26184         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
26185         and others.
26186
26187 2007-03-17  Bruno Haible  <bruno@clisp.org>
26188
26189         * lib/fchownat.c: Include lchown.h.
26190
26191 2007-03-17  Bruno Haible  <bruno@clisp.org>
26192
26193         Fix endless loop when the given allocated size was > INT_MAX.
26194         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
26195         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
26196         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
26197         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
26198         * lib/sprintf.c (sprintf): Likewise.
26199
26200 2007-03-17  Bruno Haible  <bruno@clisp.org>
26201
26202         * tests/test-argp-2.sh (func_compare): Output a context diff.
26203
26204 2007-03-17  Bruno Haible  <bruno@clisp.org>
26205
26206         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
26207         locale's decimal-point character.
26208
26209 2007-03-17  Bruno Haible  <bruno@clisp.org>
26210
26211         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
26212         before comparing it. Needed because on some platforms (e.g. x86) a
26213         'long double' occupies less bytes than sizeof (long double).
26214
26215 2007-03-17  Bruno Haible  <bruno@clisp.org>
26216
26217         * tests/test-crc.c (main): Make printf statements 64-bit clean.
26218         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
26219         * tests/test-getaddrinfo.c (simple): Likewise.
26220         * tests/test-read-file.c (main): Likewise.
26221
26222 2007-03-17  Bruno Haible  <bruno@clisp.org>
26223
26224         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
26225
26226 2007-03-17  Bruno Haible  <bruno@clisp.org>
26227
26228         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
26229         unused variable.
26230
26231 2007-03-17  Bruno Haible  <bruno@clisp.org>
26232
26233         * tests/test-c-strcasecmp.c: Include c-strcase.h.
26234         * tests/test-c-strncasecmp.c: Likewise.
26235
26236 2007-03-17  Bruno Haible  <bruno@clisp.org>
26237
26238         * modules/stdlib (Depends-on): Add unistd.
26239         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
26240         Needed for MacOS X 10.3.
26241
26242 2007-03-17  Bruno Haible  <bruno@clisp.org>
26243
26244         * lib/unistr/u-strdup.h: Include <stdlib.h>.
26245
26246 2007-03-17  Bruno Haible  <bruno@clisp.org>
26247
26248         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
26249
26250 2007-03-17  Bruno Haible  <bruno@clisp.org>
26251
26252         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
26253         to reflect files copied from gnulib (with or without modifications).
26254         Suggested by Jim Meyering.
26255
26256 2007-03-17  Eric Blake  <ebb9@byu.net>
26257
26258         * NEWS: Document stdlib change from 2007-02-18.
26259
26260 2007-03-17  Jim Meyering  <jim@meyering.net>
26261
26262         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
26263         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
26264         someone uses a name containing shell meta-characters.
26265         Reported by Alfred M. Szmidt.
26266
26267         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
26268
26269 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
26270
26271         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
26272         and copy gettext configuration files only if configure.ac contains
26273         a use of AM_GNU_GETTEXT_VERSION.
26274
26275 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
26276
26277         * build-aux/bootstrap (gnulib_name): New variable.
26278         (gnulib_tool_options): Use it.
26279
26280 2007-03-13  Simon Josefsson  <simon@josefsson.org>
26281
26282         * tests/test-des.c: Use new namespace.
26283
26284 2007-03-15  Bruno Haible  <bruno@clisp.org>
26285
26286         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
26287         Reported by James Youngman <jay@gnu.org>.
26288
26289 2007-03-15  Bruno Haible  <bruno@clisp.org>
26290
26291         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
26292         declared prototype. Needed with cc on OSF/1 5.1.
26293
26294 2007-03-15  Bruno Haible  <bruno@clisp.org>
26295
26296         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
26297         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
26298         (struct gl_list_implementation): Add dispose_fn argument to the
26299         'create_empty', 'create' methods.
26300         (struct gl_list_impl_base): Add field 'dispose_fn'.
26301         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
26302         argument.
26303         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
26304         dispose_fn argument.
26305         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
26306         dispose_fn on the dropped values.
26307         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
26308         dispose_fn argument.
26309         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
26310         dropped values.
26311         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
26312         (gl_tree_remove_node): Call dispose_fn on the dropped value.
26313         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
26314         (gl_tree_remove_node): Call dispose_fn on the dropped value.
26315         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
26316         argument.
26317         (gl_tree_list_free): Call dispose_fn on the dropped values.
26318         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
26319         the dropped values.
26320         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
26321         Add dispose_fn argument.
26322         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
26323         Call dispose_fn on the dropped values.
26324         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
26325         Add dispose_fn argument.
26326         (gl_sublist_create): Initialize the 'dispose_fn' field.
26327         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
26328         * tests/test-array_list.c (main): Update.
26329         * tests/test-carray_list.c (main): Update.
26330         * tests/test-avltree_list.c (main): Update.
26331         * tests/test-rbtree_list.c (main): Update.
26332         * tests/test-avltreehash_list.c (main): Update.
26333         * tests/test-rbtreehash_list.c (main): Update.
26334         * tests/test-linked_list.c (main): Update.
26335         * tests/test-linkedhash_list.c (main): Update.
26336         * tests/test-array_oset.c (main): Update.
26337
26338 2007-03-15  Bruno Haible  <bruno@clisp.org>
26339
26340         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
26341         (gl_oset_create_empty): Add dispose_fn argument.
26342         (struct gl_oset_implementation): Add dispose_fn argument to
26343         'create_empty' method.
26344         (struct gl_oset_impl_base): Add dispose_fn field.
26345         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
26346         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
26347         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
26348         values.
26349         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
26350         (gl_tree_oset_free): Call dispose_fn on the dropped values.
26351         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
26352         dropped value.
26353         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
26354         dropped value.
26355         * tests/test-array_oset.c (main): Update.
26356         * tests/test-avltree_oset.c (main): Update.
26357         * tests/test-rbtree_oset.c (main): Update.
26358         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
26359
26360 2007-03-13  Bruno Haible  <bruno@clisp.org>
26361
26362         * tests/test-stdbool.c (i): Update after last patch.
26363
26364 2007-03-12  Bruno Haible  <bruno@clisp.org>
26365
26366         * lib/quotearg.c: Include <wctype.h> early, before the definition of
26367         the iswprint macro. Needed on Solaris 2.5.1.
26368
26369 2007-03-12  Bruno Haible  <bruno@clisp.org>
26370
26371         * tests/test-printf-frexp.c (main): Declare x as volatile.
26372
26373 2007-03-12  Simon Josefsson  <simon@josefsson.org>
26374
26375         * doc/gnulib.texi (Build robot for gnulib): New section.
26376
26377 2007-03-12  Jim Meyering  <jim@meyering.net>
26378
26379         * build-aux/bootstrap: New file.
26380         * build-aux/bootstrap.conf: New file, from coreutils.
26381
26382 2007-03-11  Bruno Haible  <bruno@clisp.org>
26383
26384         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
26385
26386 2007-03-12  Simon Josefsson  <simon@josefsson.org>
26387
26388         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
26389         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
26390         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
26391
26392 2007-03-11  Bruno Haible  <bruno@clisp.org>
26393
26394         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
26395         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
26396
26397 2007-03-11  Bruno Haible  <bruno@clisp.org>
26398
26399         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
26400         formula. Needed for SunPRO C 5.0.
26401
26402 2007-03-11  Bruno Haible  <bruno@clisp.org>
26403
26404         * modules/long-options (Depends-on): Add getopt.
26405
26406 2007-03-11  Bruno Haible  <bruno@clisp.org>
26407
26408         * modules/modechange (Depends-on): Add stdbool.
26409
26410 2007-03-11  Bruno Haible  <bruno@clisp.org>
26411
26412         * modules/i-ring (Depends-on): Add stdbool.
26413
26414 2007-03-11  Bruno Haible  <bruno@clisp.org>
26415
26416         * modules/gc-des (Depends-on): Add stdbool.
26417
26418 2007-03-11  Bruno Haible  <bruno@clisp.org>
26419
26420         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
26421
26422 2007-03-11  Bruno Haible  <bruno@clisp.org>
26423
26424         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
26425
26426 2007-03-11  Bruno Haible  <bruno@clisp.org>
26427
26428         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
26429
26430 2007-03-11  Bruno Haible  <bruno@clisp.org>
26431
26432         * lib/vasnprintf.c (sprintf): Undefine.
26433
26434 2007-03-11  Bruno Haible  <bruno@clisp.org>
26435
26436         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
26437         initializers in SunPRO C and Compaq C compilers.
26438
26439 2007-03-11  Bruno Haible  <bruno@clisp.org>
26440
26441         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
26442         decrementing code ANSI C compliant.
26443
26444 2007-03-11  Bruno Haible  <bruno@clisp.org>
26445
26446         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
26447         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
26448
26449 2007-03-11  Bruno Haible  <bruno@clisp.org>
26450
26451         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
26452         <stdbool.h> substitute doesn't pass.
26453
26454 2007-03-11  Bruno Haible  <bruno@clisp.org>
26455
26456         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
26457
26458 2007-03-11  Bruno Haible  <bruno@clisp.org>
26459
26460         * gnulib-tool (func_create_megatestdir): Create also an autobuild
26461         script, for submission to autobuild.josefsson.org.
26462
26463 2007-03-10  Bruno Haible  <bruno@clisp.org>
26464
26465         * modules/canonicalize-lgpl-tests: New file.
26466         * tests/test-canonicalize-lgpl.sh: New file.
26467         * tests/test-canonicalize-lgpl.c: New file.
26468
26469         * modules/c-strcase-tests: New file.
26470         * tests/test-c-strcase.sh: New file.
26471         * tests/test-c-strcasecmp.c: New file.
26472         * tests/test-c-strncasecmp.c: New file.
26473
26474         * modules/atexit-tests: New file.
26475         * tests/test-atexit.sh: New file.
26476         * tests/test-atexit.c: New file.
26477
26478 2007-03-10  Bruno Haible  <bruno@clisp.org>
26479
26480         * tests/test-binary-io.sh: Use temporary filenames that are not so
26481         likely to clash with those of other tests (in a parallel make).
26482         * tests/test-binary-io.c: Likewise.
26483
26484 2007-03-10  Bruno Haible  <bruno@clisp.org>
26485
26486         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
26487         fallback; use #error instead.
26488         Suggested by Simon Josefsson.
26489
26490 2007-03-10  Bruno Haible  <bruno@clisp.org>
26491
26492         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
26493         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
26494         first and the last.
26495
26496 2007-03-10  Bruno Haible  <bruno@clisp.org>
26497
26498         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
26499
26500 2007-03-10  Bruno Haible  <bruno@clisp.org>
26501
26502         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
26503         "make distcheck".
26504         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
26505         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
26506         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
26507
26508 2007-03-10  Bruno Haible  <bruno@clisp.org>
26509
26510         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
26511         variable.
26512         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
26513         variable.
26514
26515 2007-03-09  Eric Blake  <ebb9@byu.net>
26516         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
26517
26518         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
26519         types are not being provided by gnulib.
26520         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
26521         types are supported.
26522
26523 2007-03-10  Bruno Haible  <bruno@clisp.org>
26524
26525         * lib/stdio_.h (__attribute__): New macro.
26526         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
26527         vsprintf): Specify __attribute__ __format__ for GCC.
26528         Suggested by Eric Blake.
26529
26530 2007-03-09  Bruno Haible  <bruno@clisp.org>
26531
26532         * modules/printf-posix-tests: New file.
26533         * tests/test-printf-posix.sh: New file.
26534         * tests/test-printf-posix.c: New file.
26535
26536         * modules/printf-posix: New file.
26537         * lib/printf.c: New file.
26538         * m4/printf-posix-rpl.m4: New file.
26539         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
26540         REPLACE_PRINTF.
26541         * lib/stdio_.h (printf): New declaration.
26542         (format, __format__, ____printf____, ____scanf____, ____strftime____,
26543         ____strfmon____): New macros.
26544         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
26545         REPLACE_PRINTF.
26546
26547 2007-03-09  Bruno Haible  <bruno@clisp.org>
26548
26549         * tests/test-vasnprintf-posix2.sh: New file.
26550         * tests/test-vasnprintf-posix2.c: New file.
26551         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
26552         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
26553         (Makefile.am): Activate test-vasnprintf-posix2.sh.
26554
26555         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
26556         a locale dependent decimal point, rather than always '.'.
26557
26558 2007-03-09  Eric Blake  <ebb9@byu.net>
26559
26560         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
26561         spite of platforms like Tandem/NSK that define it to -1.
26562
26563 2007-03-08  Bruno Haible  <bruno@clisp.org>
26564
26565         * modules/vprintf-posix-tests: New file.
26566         * tests/test-vprintf-posix.sh: New file.
26567         * tests/test-vprintf-posix.c: New file.
26568         * tests/test-printf-posix.h: New file.
26569
26570         * modules/vprintf-posix: New file.
26571         * lib/vprintf.c: New file.
26572         * m4/vprintf-posix.m4: New file.
26573         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
26574         REPLACE_VPRINTF.
26575         * lib/stdio_.h (vprintf): New declaration.
26576         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
26577         REPLACE_VPRINTF.
26578
26579 2007-03-08  Bruno Haible  <bruno@clisp.org>
26580
26581         * modules/fprintf-posix-tests: New file.
26582         * tests/test-fprintf-posix.sh: New file.
26583         * tests/test-fprintf-posix.c: New file.
26584
26585         * modules/fprintf-posix: New file.
26586         * lib/fprintf.c: New file.
26587         * m4/fprintf-posix.m4: New file.
26588         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
26589         REPLACE_FPRINTF.
26590         * lib/stdio_.h (fprintf): New declaration.
26591         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
26592         REPLACE_FPRINTF.
26593
26594 2007-03-08  Bruno Haible  <bruno@clisp.org>
26595
26596         * modules/vfprintf-posix-tests: New file.
26597         * tests/test-vfprintf-posix.sh: New file.
26598         * tests/test-vfprintf-posix.c: New file.
26599         * tests/test-fprintf-posix.h: New file.
26600         * tests/test-fprintf-posix.out: New file.
26601
26602         * modules/vfprintf-posix: New file.
26603         * lib/vfprintf.c: New file.
26604         * m4/vfprintf-posix.m4: New file.
26605         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
26606         REPLACE_VFPRINTF.
26607         * lib/stdio_.h (vfprintf): New declaration.
26608         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
26609         REPLACE_VFPRINTF.
26610
26611 2007-03-08  Bruno Haible  <bruno@clisp.org>
26612
26613         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
26614
26615 2007-03-08  Bruno Haible  <bruno@clisp.org>
26616
26617         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
26618         instead of 'expr' invocations.
26619         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26620         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26621         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26622         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26623         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26624         Suggested by Paul Eggert.
26625
26626 2007-03-08  Bruno Haible  <bruno@clisp.org>
26627
26628         * modules/fseterr-tests: New file.
26629         * tests/test-fseterr.c: New file.
26630
26631         * modules/fseterr: New file.
26632         * lib/fseterr.h: New file.
26633         * lib/fseterr.c: New file.
26634
26635 2007-03-08  Bruno Haible  <bruno@clisp.org>
26636
26637         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
26638         * lib/getopt_.h: Likewise.
26639         * lib/mbswidth.h: Likewise.
26640         * lib/setenv.h: Likewise.
26641         * lib/vasnprintf.h: Likewise.
26642         * lib/vasprintf.h: Likewise.
26643         * lib/verror.h: Likewise.
26644         * lib/xsetenv.h: Likewise.
26645         * lib/xvasprintf.h: Likewise.
26646
26647 2007-03-08  Jim Meyering  <jim@meyering.net>
26648
26649         * users.txt: Add parted.
26650
26651         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
26652
26653 2007-03-07  Bruno Haible  <bruno@clisp.org>
26654
26655         * m4/printf.m4: Make the shell script snippets copy&pastable.
26656
26657 2007-03-02  Bruno Haible  <bruno@clisp.org>
26658
26659         * lib/netinet_in_.h: New file.
26660         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
26661         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
26662         * modules/netinet_in (Files): Add lib/netinet_in_.h.
26663         (Depends-on): Add absolute-header.
26664         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
26665         into netinet/in.h.
26666
26667 2007-03-03  Bruno Haible  <bruno@clisp.org>
26668
26669         * lib/sys_select_.h: New file.
26670         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
26671         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
26672         * modules/sys_select (Files): Add lib/sys_select_.h.
26673         (Depends-on): Add absolute-header.
26674         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
26675         into sys/select.h.
26676
26677 2007-03-02  Bruno Haible  <bruno@clisp.org>
26678
26679         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
26680         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
26681         values.
26682         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
26683         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
26684         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
26685         * modules/sys_socket (Depends-on): Add absolute-header.
26686         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
26687         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
26688         (Include): Remove requirement of inclusion of <sys/types.h>.
26689
26690 2007-03-02  Bruno Haible  <bruno@clisp.org>
26691
26692         * lib/byteswap_.h (bswap_32): Fix formula.
26693
26694 2007-03-06  Bruno Haible  <bruno@clisp.org>
26695
26696         * modules/sprintf-posix-tests: New file.
26697         * tests/test-sprintf-posix.c: New file.
26698
26699         * modules/sprintf-posix: New file.
26700         * lib/sprintf.c: New file.
26701         * m4/sprintf-posix.m4: New file.
26702         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
26703         REPLACE_SPRINTF.
26704         * lib/stdio_.h (sprintf): New declaration.
26705         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
26706         REPLACE_SPRINTF.
26707
26708 2007-03-06  Bruno Haible  <bruno@clisp.org>
26709
26710         * modules/vsprintf-posix-tests: New file.
26711         * tests/test-vsprintf-posix.c: New file.
26712         * tests/test-sprintf-posix.h: New file.
26713
26714         * modules/vsprintf-posix: New file.
26715         * lib/vsprintf.c: New file.
26716         * m4/vsprintf-posix.m4: New file.
26717         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
26718         REPLACE_VSPRINTF.
26719         * lib/stdio_.h (vsprintf): New declaration.
26720         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
26721         REPLACE_VSPRINTF.
26722
26723 2007-03-06  Bruno Haible  <bruno@clisp.org>
26724
26725         * modules/vsnprintf (Depend-on): Remove minmax.
26726
26727 2007-03-06  Bruno Haible  <bruno@clisp.org>
26728
26729         * modules/snprintf-posix-tests: New file.
26730         * tests/test-snprintf-posix.c: New file.
26731
26732         * modules/snprintf-posix: New file.
26733         * m4/snprintf-posix.m4: New file.
26734         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
26735         gl_FUNC_SNPRINTF.
26736         (gl_FUNC_SNPRINTF): Invoke it.
26737         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
26738         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
26739         is set.
26740         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
26741
26742 2007-03-06  Bruno Haible  <bruno@clisp.org>
26743
26744         * modules/vsnprintf-posix-tests: New file.
26745         * tests/test-vsnprintf-posix.c: New file.
26746         * tests/test-snprintf-posix.h: New file.
26747
26748         * modules/vsnprintf-posix: New file.
26749         * m4/vsnprintf-posix.m4: New file.
26750         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
26751         gl_FUNC_VSNPRINTF.
26752         (gl_FUNC_VSNPRINTF): Invoke it.
26753         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
26754         * lib/stdio_.h (vsnprintf): Define as a replacement if
26755         REPLACE_VSNPRINTF is set.
26756         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
26757
26758 2007-03-06  Bruno Haible  <bruno@clisp.org>
26759
26760         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
26761         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
26762
26763 2007-03-06  Bruno Haible  <bruno@clisp.org>
26764
26765         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
26766         (asinl): Declare also if HAVE_DECL_ASINL is set.
26767         (atanl): Declare also if HAVE_DECL_ATANL is set.
26768         (ceill): Declare also if HAVE_DECL_CEILL is set.
26769         (cosl): Declare also if HAVE_DECL_COSL is set.
26770         (expl): Declare also if HAVE_DECL_EXPL is set.
26771         (floorl): Declare also if HAVE_DECL_FLOORL is set.
26772         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
26773         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
26774         (logl): Declare also if HAVE_DECL_LOGL is set.
26775         (sinl): Declare also if HAVE_DECL_SINL is set.
26776         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
26777         (tanl): Declare also if HAVE_DECL_TANL is set.
26778         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
26779         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
26780         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
26781         declaration of frexpl, ldexpl.
26782         * modules/printf-frexpl (Depends-on): Add math.
26783         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
26784
26785 2007-03-05  Bruno Haible  <bruno@clisp.org>
26786
26787         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
26788         frexpl and ldexpl are declared.
26789         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
26790
26791 2007-03-05  Bruno Haible  <bruno@clisp.org>
26792
26793         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
26794         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
26795
26796 2007-03-05  Bruno Haible  <bruno@clisp.org>
26797
26798         * lib/stdio_.h: Include <stddef.h>.
26799
26800 2007-03-05  Bruno Haible  <bruno@clisp.org>
26801
26802         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
26803
26804 2007-03-05  Bruno Haible  <bruno@clisp.org>
26805
26806         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
26807         NetBSD 4, from Ralf Wildenhues.
26808
26809 2007-03-04  Bruno Haible  <bruno@clisp.org>
26810
26811         * lib/vasprintf.h: Update #if logic for the case when the functions
26812         exist but are overridden.
26813
26814 2007-03-04  Bruno Haible  <bruno@clisp.org>
26815
26816         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
26817         implementations: glibc-2.4 and MacOS X 10.3.
26818         * tests/test-vasnprintf-posix.c (test_function): Test also the case
26819         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
26820         * tests/test-vasprintf-posix.c (test_function): Likewise.
26821
26822 2007-03-04  Bruno Haible  <bruno@clisp.org>
26823
26824         * modules/vasprintf-posix-tests: New file.
26825         * tests/test-vasprintf-posix.c: New file.
26826
26827         * modules/vasprintf-posix: New file.
26828         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
26829         defined.
26830         * m4/vasprintf-posix.m4: New file.
26831         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
26832         gl_FUNC_VASPRINTF.
26833         (gl_FUNC_VASPRINTF): Invoke it.
26834         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
26835         here.
26836         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
26837
26838 2007-03-04  Bruno Haible  <bruno@clisp.org>
26839
26840         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
26841         REPLACE_GETTIMEOFDAY.
26842         * modules/sys_time (Makefile.am): Likewise.
26843         * m4/sys_time_h.m4: Likewise.
26844         * m4/gettimeofday.m4: Likewise.
26845
26846 2007-03-04  Bruno Haible  <bruno@clisp.org>
26847
26848         * modules/vasnprintf-posix-tests: New file.
26849         * tests/test-vasnprintf-posix.c: New file.
26850
26851         * modules/vasnprintf-posix: New file.
26852         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
26853         printf-frexpl.h.
26854         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
26855         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
26856         REPLACE_VASNPRINTF is defined.
26857         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
26858         gl_FUNC_VASNPRINTF.
26859         (gl_FUNC_VASNPRINTF): Invoke it.
26860         * m4/vasnprintf-posix.m4: New file.
26861         * m4/printf.m4: New file.
26862
26863 2007-03-04  Bruno Haible  <bruno@clisp.org>
26864
26865         Compile progreloc.c only if --enable-relocatable is specified.
26866         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
26867         if --enable-relocatable was specified.
26868         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
26869         lib_SOURCES.
26870
26871 2007-03-04  Jim Meyering  <jim@meyering.net>
26872
26873         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
26874         Use it consistently, rather than enumerating errno constants.
26875
26876 2007-03-04  Bruno Haible  <bruno@clisp.org>
26877
26878         * modules/xvasprintf-tests: New file.
26879         * tests/test-xvasprintf.c: New file.
26880
26881         * modules/vasprintf-tests: New file.
26882         * tests/test-vasprintf.c: New file.
26883
26884         * modules/vasnprintf-tests: New file.
26885         * tests/test-vasnprintf.c: New file.
26886
26887         * modules/vsnprintf-tests: New file.
26888         * tests/test-vsnprintf.c: New file.
26889
26890         * modules/snprintf-tests: New file.
26891         * tests/test-snprintf.c: New file.
26892
26893 2007-03-04  Bruno Haible  <bruno@clisp.org>
26894
26895         Compile relocatable.c only if --enable-relocatable is specified.
26896         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
26897         gl_RELOCATABLE_LIBRARY.
26898         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
26899         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
26900         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
26901         gl_RELOCATABLE_LIBRARY.
26902         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
26903         (Makefile.am): Remove lib_SOURCES.
26904         * modules/relocatable-lib-lgpl (configure.ac): Invoke
26905         gl_RELOCATABLE_LIBRARY.
26906         (Makefile.am): Remove lib_SOURCES.
26907         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
26908         always.
26909         * modules/relocatable-prog-wrapper (configure.ac): Invoke
26910         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
26911
26912 2007-03-04  Bruno Haible  <bruno@clisp.org>
26913
26914         * modules/argmatch-tests: New file.
26915         * tests/test-argmatch.c: New file.
26916
26917         * tests/test-allocsa.c (main): Halve the number of loop runs.
26918
26919         * modules/alloca-opt-tests: New file.
26920         * tests/test-alloca-opt.c: New file.
26921
26922 2007-03-04  Jim Meyering  <jim@meyering.net>
26923
26924         Work around difference between Linux ACLs and Solaris 10 ZFS.
26925         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
26926         for EINVAL.
26927
26928 2007-03-03  Bruno Haible  <bruno@clisp.org>
26929
26930         * modules/relocatable-prog (Depends-on): Add back progreloc's
26931         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
26932
26933 2007-03-03  Bruno Haible  <bruno@clisp.org>
26934
26935         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
26936         * modules/relocatable-lib: New file.
26937
26938 2007-03-03  Bruno Haible  <bruno@clisp.org>
26939
26940         * modules/relocatable-prog: Renamed from modules/relocatable.
26941         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
26942
26943 2007-03-03  Bruno Haible  <bruno@clisp.org>
26944
26945         * modules/relocatable-script (Files): Add doc/relocatable.texi,
26946         m4/relocatable-lib.m4.
26947         (Depends-on): Remove 'relocatable'.
26948         (configure.ac): Add gl_RELOCATABLE_NOP.
26949
26950 2007-03-03  Bruno Haible  <bruno@clisp.org>
26951
26952         * modules/relocatable-prog-wrapper: New file.
26953         * modules/relocatable (Depends-on): Add it. Remove all other
26954         dependencies except progname.
26955         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
26956
26957         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
26958         (gl_FUNC_STRERROR): Nop.
26959         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
26960
26961         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
26962         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
26963
26964         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
26965         (gl_FUNC_READLINK): Update.
26966
26967         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
26968
26969 2007-03-03  Bruno Haible  <bruno@clisp.org>
26970
26971         * lib/xreadlink.c: Include <unistd.h> unconditionally.
26972         * modules/xreadlink (Depends-on): Add unistd.
26973         * modules/xreadlink-with-size (Depends-on): Likewise.
26974
26975 2007-03-03  Bruno Haible  <bruno@clisp.org>
26976
26977         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
26978         extracted from gt_FUNC_SETENV.
26979         (gt_FUNC_SETENV): Remove macro.
26980         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
26981         remove gt_FUNC_SETENV.
26982
26983 2007-03-03  Bruno Haible  <bruno@clisp.org>
26984
26985         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
26986         ENABLE_RELOCATABLE here.
26987         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
26988
26989 2007-03-03  Bruno Haible  <bruno@clisp.org>
26990
26991         * modules/rbtreehash-list-tests (Depends-on): Add progname.
26992         * tests/test-rbtreehash_list.c: Include progname.h.
26993         (main): Call set_program_name.
26994
26995         * modules/rbtree-oset-tests (Depends-on): Add progname.
26996         * tests/test-rbtree_oset.c: Include progname.h.
26997         (main): Call set_program_name.
26998
26999         * modules/rbtree-list-tests (Depends-on): Add progname.
27000         * tests/test-rbtree_list.c: Include progname.h.
27001         (main): Call set_program_name.
27002
27003         * modules/linked-list-tests (Depends-on): Add progname.
27004         * tests/test-linked_list.c: Include progname.h.
27005         (main): Call set_program_name.
27006
27007 2007-03-03  Bruno Haible  <bruno@clisp.org>
27008
27009         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
27010         All uses of __restrict changed to _Restrict_.
27011         * lib/glob_.h (__restrict): Remove macro.
27012
27013 2007-03-02  Bruno Haible  <bruno@clisp.org>
27014
27015         * modules/gettext (configure.ac): Require gettext infrastructure
27016         from version 0.16.1.
27017
27018 2007-03-02  Bruno Haible  <bruno@clisp.org>
27019
27020         * modules/linkedhash-list-tests (Depends-on): Add progname.
27021         * tests/test-linkedhash_list.c: Include progname.h.
27022         (main): Call set_program_name.
27023
27024         * modules/carray-list-tests (Depends-on): Add progname.
27025         * tests/test-carray_list.c: Include progname.h.
27026         (main): Call set_program_name.
27027
27028         * modules/avltreehash-list-tests (Depends-on): Add progname.
27029         * tests/test-avltreehash_list.c: Include progname.h.
27030         (main): Call set_program_name.
27031
27032         * modules/avltree-oset-tests (Depends-on): Add progname.
27033         * tests/test-avltree_oset.c: Include progname.h.
27034         (main): Call set_program_name.
27035
27036         * modules/avltree-list-tests (Depends-on): Add progname.
27037         * tests/test-avltree_list.c: Include progname.h.
27038         (main): Call set_program_name.
27039
27040         * modules/array-oset-tests (Depends-on): Add progname.
27041         * tests/test-array_oset.c: Include progname.h.
27042         (main): Call set_program_name.
27043
27044         * modules/array-list-tests (Depends-on): Add progname.
27045         * tests/test-array_list.c: Include progname.h.
27046         (main): Call set_program_name.
27047
27048         * modules/argp-tests (Depends-on): Add progname.
27049         * tests/test-argp.c: Include argp.h first. Include progname.h.
27050         (main): Call set_program_name.
27051
27052 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
27053
27054         * doc/gnulib-tool.texi (Initial import): Reword description of
27055         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
27056         limited effect even if defined after the first system include.
27057
27058 2007-03-01  Bruno Haible  <bruno@clisp.org>
27059
27060         * build-aux/config.libpath: Update to libtool-1.5.22.
27061         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27062
27063 2007-03-01  Bruno Haible  <bruno@clisp.org>
27064
27065         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
27066         foo_CFLAGS.
27067         Reported by Ralf Wildenhues.
27068
27069 2007-03-01  Bruno Haible  <bruno@clisp.org>
27070
27071         * build-aux/install-reloc: Remove object files left over by some
27072         compilers.
27073         Reported by Ralf Wildenhues.
27074
27075 2007-03-01  Bruno Haible  <bruno@clisp.org>
27076
27077         * build-aux/install-reloc: Break long lines.
27078
27079 2007-03-01  Bruno Haible  <bruno@clisp.org>
27080
27081         * doc/relocatable.texi: Document that it may not work on OpenBSD.
27082         Reported by Ralf Wildenhues.
27083
27084 2007-03-01  Bruno Haible  <bruno@clisp.org>
27085
27086         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
27087         include ordering constraints.
27088
27089 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
27090
27091         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
27092         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
27093         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
27094         as another example.
27095         * lib/time_.h: Fix misspelling.
27096         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
27097         Require gl_HEADER_TIME_H_DEFAULTS.
27098         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
27099         * m4/time_r.m4 (gl_TIME_R): Likewise.
27100         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
27101
27102 2007-03-01  Bruno Haible  <bruno@clisp.org>
27103
27104         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
27105         * m4/utimens.m4 (gl_UTIMENS): Likewise.
27106
27107 2007-03-01  Jim Meyering  <jim@meyering.net>
27108
27109         * modules/xreadlink (Maintainer): Add my name.
27110         * modules/xreadlink-with-size (Depends-on): Alphabetize.
27111
27112 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
27113             Bruno Haible  <bruno@clisp.org>
27114
27115         * build-aux/install-reloc: Compile also c-ctype.c.
27116         * build-aux/relocatable.sh.in: New file.
27117         * doc/relocatable.texi: New file.
27118         * doc/relocatable-maint.texi: New file.
27119         * doc/gnulib.texi: Include relocatable-maint.texi.
27120         * lib/progreloc.c: Include unistd.h unconditionally.
27121         * lib/relocwrapper.c: Include unistd.h unconditionally.
27122         Include c-ctype.h.
27123         (add_dotbin): Use c_tolower.
27124         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
27125         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
27126         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
27127         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
27128         to m4/relocatable-lib.m4.
27129         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
27130         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
27131         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
27132         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
27133         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
27134         * modules/relocatable: New file.
27135         * modules/relocatable-lib: New file.
27136         * modules/relocatable-script: New file.
27137
27138 2007-02-28  Bruno Haible  <bruno@clisp.org>
27139
27140         Import --enable-relocatable infrastructure.
27141         * build-aux/config.libpath: New file, from GNU gettext.
27142         * build-aux/install-reloc: New file, from GNU gettext.
27143         * build-aux/reloc-ldflags: New file, from GNU gettext.
27144         * lib/relocatable.h: New file, from GNU gettext.
27145         * lib/relocatable.c: New file, from GNU gettext.
27146         * lib/relocwrapper.c: New file, from GNU gettext.
27147         * m4/relocatable.m4: New file, from GNU gettext.
27148
27149 2007-02-28  Bruno Haible  <bruno@clisp.org>
27150
27151         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
27152
27153         * modules/xreadlink: New file, from GNU gettext with modifications.
27154         * lib/xreadlink.c: New file, from GNU gettext.
27155         * lib/xreadlink.h: Add comments.
27156         (xreadlink): New declaration.
27157
27158         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
27159         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
27160         lib/xreadlink-with-size.c.
27161         (configure.ac): Remove gl_XREADLINK invocation.
27162         (Makefile.am): Augment lib_SOURCES.
27163         * m4/xreadlink.m4: Remove file.
27164         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
27165         (xreadlink_with_size): Renamed from xreadink.
27166         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
27167         * modules/canonicalize (Depends-on): Replace xreadlink with
27168         xreadlink-with-size.
27169         * lib/canonicalize.c (canonicalize_filename_mode): Update.
27170
27171 2007-02-25  Jim Meyering  <jim@meyering.net>
27172
27173         * build-aux/announce-gen: When complaining about excess arguments,
27174         list them.
27175
27176 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
27177
27178         * README: Document signed integer overflow situation more
27179         accurately.
27180
27181 2007-02-25  Bruno Haible  <bruno@clisp.org>
27182
27183         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
27184         'a' or 'A' conversion.
27185
27186 2007-02-25  Bruno Haible  <bruno@clisp.org>
27187
27188         * modules/filename: Renamed from modules/pathname.
27189         (Files): Replace lib/pathname.h with lib/filename.h. Replace
27190         lib/concatpath.c with lib/concat-filename.c.
27191         (Makefile.am): Update.
27192         (Include): Replace pathname.h with filename.h.
27193         * lib/filename.h: Renamed from lib/pathname.h.
27194         (concatenated_filename): Renamed from concatenated_pathname.
27195         * lib/concat-filename.c: Renamed from lib/concatpath.c.
27196         (concatenated_filename): Renamed from concatenated_pathname.
27197         * lib/findprog.c: Include filename.h instead of pathname.h.
27198         (find_in_path): Update.
27199         * lib/javacomp.c: Include filename.h instead of pathname.h.
27200         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
27201         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
27202         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
27203         is_oldgcj_14_13_usable, is_javac_usable): Update.
27204         * lib/javaexec.c: Include filename.h instead of pathname.h.
27205         (execute_java_class): Update.
27206         * modules/findprog: Update.
27207         * modules/javacomp: Update.
27208         * modules/javaexec: Update.
27209         * MODULES.html.sh (File system functions): Add 'filename', remove
27210         'pathname'.
27211
27212 2007-02-25  Bruno Haible  <bruno@clisp.org>
27213
27214         * modules/printf-frexpl-tests: New file.
27215         * tests/test-printf-frexpl.c: New file.
27216
27217         * modules/printf-frexpl: New file.
27218         * lib/printf-frexpl.h: New file.
27219         * lib/printf-frexpl.c: New file.
27220         * m4/printf-frexpl.m4: New file.
27221
27222 2007-02-25  Bruno Haible  <bruno@clisp.org>
27223
27224         * modules/printf-frexp-tests: New file.
27225         * tests/test-printf-frexp.c: New file.
27226
27227         * modules/printf-frexp: New file.
27228         * lib/printf-frexp.h: New file.
27229         * lib/printf-frexp.c: New file.
27230         * m4/printf-frexp.m4: New file.
27231
27232 2007-02-25  Bruno Haible  <bruno@clisp.org>
27233
27234         Assume automake >= 1.10 for the tests.
27235         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
27236         * modules/arctwo-tests: Likewise.
27237         * modules/argp-tests: Likewise.
27238         * modules/avltree-list-tests: Likewise.
27239         * modules/avltree-oset-tests: Likewise.
27240         * modules/avltreehash-list-tests: Likewise.
27241         * modules/carray-list-tests: Likewise.
27242         * modules/crc-tests: Likewise.
27243         * modules/des-tests: Likewise.
27244         * modules/gc-arcfour-tests: Likewise.
27245         * modules/gc-arctwo-tests: Likewise.
27246         * modules/gc-des-tests: Likewise.
27247         * modules/gc-hmac-md5-tests: Likewise.
27248         * modules/gc-hmac-sha1-tests: Likewise.
27249         * modules/gc-md2-tests: Likewise.
27250         * modules/gc-md4-tests: Likewise.
27251         * modules/gc-md5-tests: Likewise.
27252         * modules/gc-pbkdf2-sha1-tests: Likewise.
27253         * modules/gc-rijndael-tests: Likewise.
27254         * modules/gc-sha1-tests: Likewise.
27255         * modules/gc-tests: Likewise.
27256         * modules/getaddrinfo-tests: Likewise.
27257         * modules/hmac-md5-tests: Likewise.
27258         * modules/hmac-sha1-tests: Likewise.
27259         * modules/linked-list-tests: Likewise.
27260         * modules/linkedhash-list-tests: Likewise.
27261         * modules/lock-tests: Likewise.
27262         * modules/md2-tests: Likewise.
27263         * modules/md4-tests: Likewise.
27264         * modules/md5-tests: Likewise.
27265         * modules/rbtree-list-tests: Likewise.
27266         * modules/rbtree-oset-tests: Likewise.
27267         * modules/rbtreehash-list-tests: Likewise.
27268         * modules/read-file-tests: Likewise.
27269         * modules/rijndael-tests: Likewise.
27270         * modules/stdint-tests: Likewise.
27271         * modules/tls-tests: Likewise.
27272
27273 2007-02-24  Bruno Haible  <bruno@clisp.org>
27274
27275         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
27276         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
27277         function; instead check whether isnan with a double argument links.
27278         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
27279         function; instead check whether isnan with a 'long double' argument
27280         links.
27281         Reported by Eric Blake <ebb9@byu.net>.
27282
27283 2007-02-24  Bruno Haible  <bruno@clisp.org>
27284
27285         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
27286         defined.
27287         * lib/isnanl.c: Remove all code. Just include isnan.c.
27288         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
27289
27290 2007-02-25  Jim Meyering  <jim@meyering.net>
27291
27292         Avoid conflicting types for 'unsetenv' on FreeBSD.
27293         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
27294         conflicting with FreeBSD's (5.0 and 6.1) function declaration
27295         in stdlib.h.
27296
27297 2007-02-24  Bruno Haible  <bruno@clisp.org>
27298
27299         * modules/isnanl-nolibm-tests: New file.
27300         * tests/test-isnanl.c: New file.
27301
27302         * modules/isnanl-nolibm: New file.
27303         * lib/isnanl.h: New file.
27304         * lib/isnanl.c: New file.
27305         * m4/isnanl.m4: New file.
27306
27307 2007-02-24  Bruno Haible  <bruno@clisp.org>
27308
27309         * modules/isnan-nolibm-tests: New file.
27310         * tests/test-isnan.c: New file.
27311
27312         * modules/isnan-nolibm: New file.
27313         * lib/isnan.h: New file.
27314         * lib/isnan.c: New file.
27315         * m4/isnan.m4: New file.
27316
27317 2007-02-24  Bruno Haible  <bruno@clisp.org>
27318
27319         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
27320         assume that an exponent fits in 20 bits.
27321
27322 2007-02-24  Jim Meyering  <jim@meyering.net>
27323
27324         * m4/regex.m4: Update the description of the configure-time option,
27325         --without-included-regex, to state accurately what the defaults are,
27326         and perhaps to give people an idea why using this option is risky.
27327
27328 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
27329
27330         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
27331         loops on small arguments.  This attempts to avoid the problem
27332         Bruno Haible reported for AIX 4.3.2 in
27333         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
27334
27335 2007-02-23  Bruno Haible  <bruno@clisp.org>
27336
27337         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
27338         Needed for help2man.
27339
27340 2007-02-23  Karl Berry  <karl@gnu.org>
27341
27342         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
27343         exists, foo.h should be cvs-ignored, not committed.
27344
27345 2007-02-23  Eric Blake  <ebb9@byu.net>
27346
27347         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
27348         * lib/stat-time.h (includes): Likewise.
27349         * lib/utimecmp.c (includes): Likewise.
27350         * lib/utimens.h (includes): Likewise.
27351         * lib/getdate.y (includes): Also include "timespec.h" for use
27352         internal to the module.
27353         * modules/utimens (Depends-on): Revert yesterday's patch.
27354         * modules/nanosleep (Depends-on): Add missing dependency.
27355
27356 2007-02-22  Bruno Haible  <bruno@clisp.org>
27357
27358         * lib/glob.c: Don't include getlogin_r.h.
27359
27360 2007-02-22  Jim Meyering  <jim@meyering.net>
27361
27362         * modules/utimens (Depends-on): Add timespec, required for
27363         utimens.h's inclusion of timespec.h.
27364
27365 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
27366
27367         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
27368         long unreadable paths in GNU/Linux.  Problem reported by Andreas
27369         Schwab in
27370         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
27371         I'll try to think of a better way to fix the Solaris problem.
27372
27373         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
27374         like glibc; on Solaris 10, it fails with errno == EINVAL.
27375         POSIX says the behavior is unspecified if the first argument is NULL,
27376         so play it safe and never pass NULL to the system getcwd.
27377
27378 2007-02-21  Jim Meyering  <jim@meyering.net>
27379
27380         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
27381         of gettimeofday.  It would conflict with the one now always
27382         provided via sys_time_.h.  Reported by Matthew Woehlke, as
27383         an IRIX 6.5 build failure.
27384
27385 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27386
27387         Minor fixups to port to Solaris 10 with Sun C 5.8.
27388         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
27389         * modules/getcwd (Depends-on): Add dirfd.
27390         * lib/putenv.c (putenv): #undef it.
27391         (rpl_putenv): New decl.
27392         (malloc, free): Include <stdlib.h> rather than prototyping separately.
27393
27394 2007-02-20  Bruno Haible  <bruno@clisp.org>
27395
27396         * modules/stdio-tests: New file.
27397         * tests/test-stdio.c: New file.
27398
27399         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
27400         (Depends-on): Add stdio.
27401         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
27402         (Include): Use <stdio.h> instead of vsnprintf.h.
27403         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
27404         HAVE_DECL_VSNPRINTF.
27405         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
27406
27407         * modules/snprintf (Files): Remove lib/snprintf.h.
27408         (Depends-on): Add stdio.
27409         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
27410         (Include): Use <stdio.h> instead of snprintf.h.
27411         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
27412         HAVE_DECL_SNPRINTF.
27413         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
27414         * lib/getaddrinfo.c: Likewise.
27415
27416         * modules/stdio: New file.
27417         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
27418         * lib/snprintf.h: Remove file.
27419         * lib/vsnprintf.h: Remove file.
27420         * lib/.cppi-disable: Remove snprintf.h.
27421         * m4/stdio_h.m4: New file.
27422         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
27423
27424 2007-02-20  Jim Meyering  <jim@meyering.net>
27425
27426         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
27427         used by e.g., mingw.  From Bruno Haible.
27428
27429 2007-02-19  Bruno Haible  <bruno@clisp.org>
27430
27431         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
27432         warnings.
27433         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27434
27435 2007-02-19  Bruno Haible  <bruno@clisp.org>
27436
27437         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
27438         from mingw users.
27439
27440 2007-02-19  Bruno Haible  <bruno@clisp.org>
27441
27442         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
27443         warnings.
27444         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
27445
27446 2007-02-19  Jim Meyering  <jim@meyering.net>
27447
27448         Don't use FD after a successful "fdopendir (fd)".
27449         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
27450         Reset it by calling dirfd on the just-obtained DIR*.
27451
27452         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
27453         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
27454
27455 2007-02-18  Bruno Haible  <bruno@clisp.org>
27456
27457         * lib/readlink.c: Include <unistd.h>.
27458         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
27459         HAVE_READLINK.
27460         * modules/readlink (Depends-on): Add unistd.
27461         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27462         (Include): Add <unistd.h>.
27463
27464         * lib/getlogin_r.h: Remove file.
27465         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
27466         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
27467         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
27468         HAVE_DECL_GETLOGIN_R.
27469         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
27470         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27471         (Include): Use <unistd.h> instead of getlogin_r.h.
27472
27473         * lib/getcwd.h: Remove file.
27474         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
27475         * lib/xgetcwd.c: Likewise.
27476         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
27477         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
27478         * modules/getcwd (Files): Remove lib/getcwd.h.
27479         (Depends-on): Add unistd.
27480         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27481         (Include): Use <unistd.h> instad of getcwd.h.
27482
27483         * lib/ftruncate.c: Include <unistd.h> first.
27484         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
27485         Set HAVE_FTRUNCATE.
27486         * modules/ftruncate (Depends-on): Add unistd.
27487         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27488
27489         * lib/fchdir.c: Include <unistd.h> first.
27490         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
27491         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
27492         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
27493         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27494         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
27495
27496         * lib/dup2.c: Include <unistd.h> first.
27497         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
27498         HAVE_DUP2.
27499         * modules/dup2 (Depends-on): Add unistd.
27500         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27501
27502         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
27503         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
27504         REPLACE_CHOWN. Don't define chown as a macro here.
27505         * modules/chown (Depends-on): Add unistd.
27506         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27507
27508         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
27509         Add definition for GL_LINK_WARNING.
27510         (chown, dup2): New declarations.
27511         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
27512         link warning.
27513         (ftruncate): New declaration.
27514         (getcwd): New declaration, taken from old getcwd.h.
27515         (getlogin_r): New declaration, taken from old getlogin_r.h.
27516         (readlink): New declaration.
27517         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
27518         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
27519         (gl_PREREQ_UNISTD): Remove macro.
27520         (gl_UNISTD_MODULE_INDICATOR): New macro.
27521         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
27522         many new variables. Don't set UNISTD_H.
27523         * modules/unistd (Description): Change.
27524         (Depends-on): Add link-warning.
27525         (configure.ac): Update.
27526         (Makefile.am): Create unistd.h always. Substitute many new variables
27527         into it.
27528
27529 2007-02-18  Bruno Haible  <bruno@clisp.org>
27530
27531         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
27532         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
27533         HAVE_GETSUBOPT.
27534         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
27535         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
27536         * lib/getsubopt.h: Remove file.
27537         * modules/getsubopt (Files): Remove lib/getsubopt.h.
27538         (Depends-on): Add stdlib.
27539         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27540         (Includes): Use <stdlib.h> instead of getsubopt.h.
27541         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
27542         Set HAVE_GETSUBOPT.
27543         * lib/getsubopt.c: Don't include getsubopt.h.
27544
27545 2007-02-18  Bruno Haible  <bruno@clisp.org>
27546
27547         * modules/fchdir (Depends-on): Add dup2.
27548
27549 2007-02-18  Bruno Haible  <bruno@clisp.org>
27550
27551         * lib/stdlib_.h: Handle glibc's special invocation convention
27552         specially.
27553
27554 2007-02-18  Bruno Haible  <bruno@clisp.org>
27555
27556         * modules/stdlib-tests: New file.
27557         * tests/test-stdlib.c: New file.
27558
27559         * modules/mkstemp (Files): Remove lib/mkstemp.h.
27560         (Depends-on): Add stdlib.
27561         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27562         (Includes): Use <stdlib.h> instead of mkstemp.h.
27563         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
27564         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
27565         * lib/mkstemp.c: Don't include mkstemp.h.
27566         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
27567         * lib/stdlib--.h: Don't include mkstemp.h.
27568
27569         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
27570         (Depends-on): Add stdlib.
27571         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27572         (Includes): Use <stdlib.h> instead of mkdtemp.h.
27573         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
27574         HAVE_MKDTEMP.
27575         * lib/mkdtemp.c: Don't include mkdtemp.h.
27576         * lib/clean-temp.c: Don't include mkdtemp.h.
27577
27578         * modules/exit (Files): Remove lib/exit.h.
27579         (Depends-on): Add stdlib.
27580         (Makefile.am): Remove lib_SOURCES.
27581         (Include): Use <stdlib.h> instead of exit.h.
27582         * lib/argmatch.c: Don't include exit.h.
27583         * lib/execute.c: Likewise.
27584         * lib/pagealign_alloc.c: Likewise.
27585         * lib/pipe.c: Likewise.
27586         * lib/wait-process.c: Likewise.
27587         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
27588         * lib/exitfail.c: Likewise.
27589         * lib/savewd.c: Likewise.
27590         * lib/xsetenv.c: Likewise.
27591
27592         * modules/stdlib: New file.
27593         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
27594         and extra comments about mkstemp().
27595         * lib/exit.h: Remove file.
27596         * lib/mkdtemp.h: Remove file.
27597         * lib/mkstemp.h: Remove file.
27598         * m4/stdlib_h.m4: New file.
27599         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
27600
27601 2007-02-18  Bruno Haible  <bruno@clisp.org>
27602
27603         * modules/math-tests: New file.
27604         * tests/test-math.c: New file.
27605
27606         * modules/math: New file.
27607         * modules/mathl (Files): Remove lib/mathl.h.
27608         (Depends-on): Add math.
27609         (Makefile.am): Don't mention mathl.h.
27610         (Include): Use <math.h> instead of mathl.h.
27611         * lib/math_.h: New file.
27612         * lib/mathl.h: Remove file.
27613         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
27614         mathl.h.
27615         * lib/asinl.c: Likewise.
27616         * lib/atanl.c: Likewise.
27617         * lib/ceill.c: Likewise.
27618         * lib/cosl.c: Likewise.
27619         * lib/expl.c: Likewise.
27620         * lib/floorl.c: Likewise.
27621         * lib/frexpl.c: Likewise.
27622         * lib/ldexpl.c: Likewise.
27623         * lib/logl.c: Likewise.
27624         * lib/sincosl.c: Likewise.
27625         * lib/sinl.c: Likewise.
27626         * lib/sqrtl.c: Likewise.
27627         * lib/tanl.c: Likewise.
27628         * lib/trigl.c: Likewise.
27629         * m4/math_h.m4: New file.
27630         * MODULES.html.sh (Mathematics): Add math.
27631
27632 2007-02-17  Bruno Haible  <bruno@clisp.org>
27633
27634         * modules/wctype-tests: New file.
27635         * tests/test-wctype.c: New file.
27636
27637         * modules/wchar-tests: New file.
27638         * tests/test-wchar.c: New file.
27639
27640         * modules/unistd-tests: New file.
27641         * tests/test-unistd.c: New file.
27642
27643         * modules/time-tests: New file.
27644         * tests/test-time.c: New file.
27645
27646         * modules/sysexits-tests: New file.
27647         * tests/test-sysexits.c: New file.
27648
27649         * modules/sys_time-tests: New file.
27650         * tests/test-sys_time.c: New file.
27651
27652         * modules/sys_stat-tests: New file.
27653         * tests/test-sys_stat.c: New file.
27654
27655         * modules/sys_socket-tests: New file.
27656         * tests/test-sys_socket.c: New file.
27657
27658         * modules/sys_select-tests: New file.
27659         * tests/test-sys_select.c: New file.
27660
27661         * modules/string-tests: New file.
27662         * tests/test-string.c: New file.
27663
27664         * modules/stdbool-tests: New file.
27665         * tests/test-stdbool.c: New file.
27666
27667         * modules/netinet_in-tests: New file.
27668         * tests/test-netinet_in.c: New file.
27669
27670         * modules/inttypes-tests: New file.
27671         * tests/test-inttypes.c: New file.
27672
27673         * modules/fcntl-tests: New file.
27674         * tests/test-fcntl.c: New file.
27675
27676         * modules/byteswap-tests: New file.
27677         * tests/test-byteswap.c: New file.
27678
27679         * modules/arpa_inet-tests: New file.
27680         * tests/test-arpa_inet.c: New file.
27681
27682 2007-02-17  Bruno Haible  <bruno@clisp.org>
27683
27684         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
27685         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
27686         if the corresponding module is not enabled. Emit link warnings if
27687         the function is used nevertheless.
27688         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
27689         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
27690         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
27691         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
27692         * modules/inttypes (Depends-on): Add link-warning.
27693         (Makefile.am): Copy the contents of build-aux/link-warning.h into
27694         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
27695         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
27696         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
27697         * modules/imaxdiv (configure.ac): Likewise.
27698         * modules/strtoimax (configure.ac): Likewise.
27699         * modules/strtoumax (configure.ac): Likewise.
27700
27701 2007-02-17  Bruno Haible  <bruno@clisp.org>
27702
27703         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
27704         gl_STRING_MODULE_INDICATOR_DEFAULTS.
27705         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
27706         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
27707
27708 2007-02-17  Bruno Haible  <bruno@clisp.org>
27709
27710         * modules/link-warning: New file.
27711         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
27712         * lib/string_.h (GL_LINK_WARNING): Remove definition.
27713         * modules/string (Depends-on): Add link-warning.
27714         (Makefile.am): Copy the contents of build-aux/link-warning.h into
27715         string.h.
27716         * MODULES.html.sh (Support for building libraries and executables): Add
27717         link-warning.
27718
27719 2007-02-17  Bruno Haible  <bruno@clisp.org>
27720
27721         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
27722         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
27723         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
27724         long lines.
27725
27726 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
27727             Bruno Haible  <bruno@clisp.org>
27728
27729         * modules/tmpfile: New file.
27730         * lib/tmpfile.c: New file.
27731         * m4/tmpfile.m4: New file.
27732         * MODULES.html.sh (func_all_modules): New section "Input/output".
27733
27734 2007-02-15  Bruno Haible  <bruno@clisp.org>
27735
27736         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
27737         (supports_delete_on_close): New function.
27738         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
27739
27740 2007-02-14  Bruno Haible  <bruno@clisp.org>
27741
27742         * modules/mbspcasecmp-tests: New file.
27743         * tests/test-mbspcasecmp.sh: New file.
27744         * tests/test-mbspcasecmp.c: New file.
27745
27746         New module mbspcasecmp.
27747         * modules/mbspcasecmp: New file.
27748         * lib/mbspcasecmp.c: New file.
27749         * lib/string_.h (strncasecmp): Change warning message.
27750         (mbspcasecmp): New declaration.
27751         * m4/mbspcasecmp.m4: New file.
27752         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27753         GNULIB_MBSPCASECMP.
27754         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
27755         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
27756
27757 2007-02-14  Bruno Haible  <bruno@clisp.org>
27758
27759         * modules/mbsncasecmp-tests: New file.
27760         * tests/test-mbsncasecmp.sh: New file.
27761         * tests/test-mbsncasecmp.c: New file.
27762
27763         New module mbsncasecmp.
27764         * modules/mbsncasecmp: New file.
27765         * lib/mbsncasecmp.c: New file.
27766         * lib/string_.h (mbsncasecmp): New declaration.
27767         * m4/mbsncasecmp.m4: New file.
27768         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27769         GNULIB_MBSNCASECMP.
27770         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
27771         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
27772
27773 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
27774
27775         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
27776         Verify that it doesn't overlap with our flags.
27777         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
27778         do not have the desired effect in multibyte locales; instead, use
27779         mbscasecmp.
27780         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
27781         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
27782         we don't require GNU fnmatch ourselves (if our users require it, they
27783         should do so explicitly).
27784
27785         Fix regex code so it doesn't rely on strcasecmp.
27786         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
27787         Otherwise, include gnulib's langinfo.h.
27788         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
27789         undesirable behavior in non-C locales.  Instead, rely on localecharset.
27790         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
27791         * modules/regex (FILES): Remove m4/codeset.m4.
27792         (Depends-on): Add localcharset.  Remove strcase.
27793
27794 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27795
27796         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
27797         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
27798
27799 2007-02-13  Bruno Haible  <bruno@clisp.org>
27800
27801         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
27802         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27803
27804 2007-02-12  Bruno Haible  <bruno@clisp.org>
27805
27806         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
27807         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
27808         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
27809         time warning rather than a link error.
27810
27811 2007-02-12  Bruno Haible  <bruno@clisp.org>
27812
27813         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
27814         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27815         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27816
27817 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
27818
27819         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
27820         args, not 2.
27821
27822 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
27823
27824         New module 'time', so that apps can include <time.h> as per
27825         POSIX and GNU instead of separate include files like time_r.h
27826         and timegm.h.  This implementation tries out a simpler approach
27827         for replacing decls in standard include files (as compared to
27828         the string module), somewhat as an experiment.
27829
27830         * config/srclist.txt: Comment out mktime.c for now.
27831         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
27832         since it doesn't apply any more.  Use generic wording instead.
27833         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
27834         'time'.
27835         * lib/time_.h, m4/time_h.m4, modules/time: New files.
27836         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
27837         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
27838         Don't include <sys/types.h>; no longer needed since we assume C89.
27839         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
27840         * lib/strftime.c: Likewise.
27841         * lib/time_r.c: Likewise.
27842         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
27843         * lib/nanosleep.c: Include <time.h> first, to check interface.
27844         * lib/strptime.c: Likewise.
27845         * lib/time_r.c: Likewise.
27846         * lib/timegm.c: Likewise.
27847         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
27848         needed.
27849         * lib/timegm.c: Don't include timegm.h; no longer needed.
27850         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
27851         time.h now handles any problems in that area.
27852         (struct timespec, nanosleep): Remove; time.h now arranges for these.
27853         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
27854         that time.h defines struct timespec.
27855         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
27856         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
27857         handles that.
27858         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
27859         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
27860         needed.  Set REPLACE_LOCALTIME.
27861         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
27862         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
27863         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
27864         nanosleep; time_h.m4 now does that.  Don't require
27865         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
27866         module handles this now.
27867         * modules/getdate (Depends-on): Remove timespec.  Add time.
27868         * modules/nanosleep (Depends-on): Likewise.
27869         * modules/stat-time (Depends-on): Likewise.
27870         * modules/nanosleep (Include): Include time.h, not timespec.h.
27871         * modules/strptime (Files): Remove lib/strptime.h.
27872         (Depends-on): Add extensions, time.
27873         (Include): Include time.h, not strptime.h.
27874         * modules/time_r (Files): Remove lib/time_r.h.
27875         (Depends-on): Add time.
27876         (Include): Include time.h, not time_r.h.
27877         * modules/timegm: Likewise.
27878         * modules/timespec (Description): Now does timespec-related decls
27879         of our own, instead of struct timespec itself.
27880         (Depends-on): Add time; remove extensions.
27881         (Maintainer): Add self.
27882         * modules/utimecmp (Depends-on): Add time; remove timespec.
27883         * modules/utimens (Depends-on): Likewise.
27884         * modules/xnanosleep (Depends-on): Likewise.
27885
27886 2007-02-11  Bruno Haible  <bruno@clisp.org>
27887
27888         * lib/c-strstr.c: Include allocsa.h.
27889         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
27890         * lib/c-strcasestr.c: Include allocsa.h.
27891         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
27892         * lib/strcasestr.c: Include allocsa.h.
27893         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
27894         * lib/mbsstr.c: Include allocsa.h.
27895         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
27896         allocsa/freesa instead of malloc/free.
27897         * lib/mbscasestr.c: Include allocsa.h.
27898         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
27899         allocsa/freesa instead of malloc/free.
27900         * modules/c-strstr (Depends-on): Add allocsa.
27901         * modules/c-strcasestr (Depends-on): Likewise.
27902         * modules/strcasestr (Depends-on): Likewise.
27903         * modules/mbsstr (Depends-on): Likewise.
27904         * modules/mbscasestr (Depends-on): Likewise.
27905
27906 2007-02-11  Bruno Haible  <bruno@clisp.org>
27907
27908         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
27909
27910         * modules/mbsspn-tests: New file.
27911         * tests/test-mbsspn.sh: New file.
27912         * tests/test-mbsspn.c: New file.
27913
27914 2007-02-11  Bruno Haible  <bruno@clisp.org>
27915
27916         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
27917
27918         * modules/mbspbrk-tests: New file.
27919         * tests/test-mbspbrk.sh: New file.
27920         * tests/test-mbspbrk.c: New file.
27921
27922 2007-02-11  Bruno Haible  <bruno@clisp.org>
27923
27924         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
27925         unneeded cast.
27926
27927         * modules/mbscspn-tests: New file.
27928         * tests/test-mbscspn.sh: New file.
27929         * tests/test-mbscspn.c: New file.
27930
27931 2007-02-11  Bruno Haible  <bruno@clisp.org>
27932
27933         * modules/mbscasecmp-tests: New file.
27934         * tests/test-mbscasecmp.sh: New file.
27935         * tests/test-mbscasecmp.c: New file.
27936
27937 2007-02-11  Bruno Haible  <bruno@clisp.org>
27938
27939         Ensure O(n) worst-case complexity of mbscasestr.
27940         * lib/mbscasestr.c: Include stdbool.h.
27941         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
27942         functions.
27943         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
27944         the bookkeeping indicates that it's worth it.
27945         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
27946
27947         * modules/mbscasestr-tests: New file.
27948         * tests/test-mbscasestr1.c: New file.
27949         * tests/test-mbscasestr2.sh: New file.
27950         * tests/test-mbscasestr2.c: New file.
27951         * tests/test-mbscasestr3.sh: New file.
27952         * tests/test-mbscasestr3.c: New file.
27953         * tests/test-mbscasestr4.sh: New file.
27954         * tests/test-mbscasestr4.c: New file.
27955         * m4/locale-tr.m4: New file.
27956
27957 2007-02-11  Bruno Haible  <bruno@clisp.org>
27958
27959         Ensure O(n) worst-case complexity of mbsstr.
27960         * lib/mbsstr.c: Include stdbool.h.
27961         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
27962         functions.
27963         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
27964         bookkeeping indicates that it's worth it.
27965         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
27966
27967         * modules/mbsstr-tests: New file.
27968         * tests/test-mbsstr1.c: New file.
27969         * tests/test-mbsstr2.sh: New file.
27970         * tests/test-mbsstr2.c: New file.
27971         * tests/test-mbsstr3.sh: New file.
27972         * tests/test-mbsstr3.c: New file.
27973         * m4/locale-fr.m4: New file.
27974
27975 2007-02-11  Bruno Haible  <bruno@clisp.org>
27976
27977         * lib/mbsrchr.c (mbsrchr): Fix bug.
27978
27979         * modules/mbsrchr-tests: New file.
27980         * tests/test-mbsrchr.sh: New file.
27981         * tests/test-mbsrchr.c: New file.
27982
27983 2007-02-11  Bruno Haible  <bruno@clisp.org>
27984
27985         * lib/mbschr.c (mbschr): Fix bug.
27986
27987         * modules/mbschr-tests: New file.
27988         * tests/test-mbschr.sh: New file.
27989         * tests/test-mbschr.c: New file.
27990         * m4/locale-zh.m4: New file.
27991
27992 2007-02-11  Bruno Haible  <bruno@clisp.org>
27993
27994         Support for copying multibyte string iterators.
27995         * lib/mbiter.h: Include <string.h>.
27996         (mbiter_multi_copy): New function.
27997         (mbi_copy): New macro.
27998         * lib/mbuiter.h: Include <string.h>.
27999         (mbuiter_multi_copy): New function.
28000         (mbui_copy): New macro.
28001
28002 2007-02-11  Bruno Haible  <bruno@clisp.org>
28003
28004         New module mbslen.
28005         * modules/mbslen: New file.
28006         * lib/mbslen.c: New file.
28007         * lib/string_.h (mbslen): New declaration.
28008         * m4/mbslen.m4: New file.
28009         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28010         GNULIB_MBSLEN.
28011         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
28012         * MODULES.html.sh (Internationalization functions): Add mbslen.
28013
28014 2007-02-11  Bruno Haible  <bruno@clisp.org>
28015
28016         Ensure O(n) worst-case complexity of strcasestr substitute.
28017         * lib/strcasestr.c: Include stdbool.h.
28018         (knuth_morris_pratt): New function.
28019         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
28020         bookkeeping indicates that it's worth it.
28021         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
28022
28023         * modules/strcasestr-tests: New file.
28024         * tests/test-strcasestr.c: New file.
28025
28026 2007-02-11  Bruno Haible  <bruno@clisp.org>
28027
28028         Ensure O(n) worst-case complexity of c_strcasestr.
28029         * lib/c-strcasestr.c: Include stdbool.h, string.h.
28030         (knuth_morris_pratt): New function.
28031         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
28032         the bookkeeping indicates that it's worth it.
28033         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
28034
28035         * modules/c-strcasestr-tests: New file.
28036         * tests/test-c-strcasestr.c: New file.
28037
28038 2007-02-11  Bruno Haible  <bruno@clisp.org>
28039
28040         Ensure O(n) worst-case complexity of c_strstr.
28041         * lib/c-strstr.c: Include stdbool.h, string.h.
28042         (knuth_morris_pratt): New function.
28043         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
28044         bookkeeping indicates that it's worth it.
28045         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
28046
28047         * lib/c-strstr.c: Complete rewrite for maintainability.
28048
28049         * modules/c-strstr-tests: New file.
28050         * tests/test-c-strstr.c: New file.
28051
28052 2007-02-11  Bruno Haible  <bruno@clisp.org>
28053
28054         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
28055         5.2.1 and earlier, whereby \055 was treated just like the range
28056         delimiter '-'.
28057         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
28058
28059 2007-02-08  Bruno Haible  <bruno@clisp.org>
28060
28061         * modules/regex (Depends-on): Add stdbool.
28062         Reported by Dalibor Topic <robilad@kaffe.org>.
28063
28064 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
28065
28066         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
28067         Prefer returning from main to exiting from it.
28068         Remove unnecessary parens after sizeof.
28069
28070 2007-02-05  Bruno Haible  <bruno@clisp.org>
28071
28072         New module mbssep.
28073         * modules/mbssep: New file.
28074         * lib/mbssep.c: New file.
28075         * lib/string_.h (strsep): Add a conditional link warning.
28076         (mbssep): New declaration.
28077         * m4/mbssep.m4: New file.
28078         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28079         GNULIB_MBSSEP.
28080         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
28081         * MODULES.html.sh (Internationalization functions): Add mbssep.
28082
28083 2007-02-05  Bruno Haible  <bruno@clisp.org>
28084
28085         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
28086         Optimize search in case of 1 delimiter.
28087
28088 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
28089
28090         * lib/acl.h: Include sys/types.h before sys/acl.h.
28091
28092 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
28093
28094         Merge upstream fix for glibc bugzilla #3957:
28095
28096         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
28097
28098         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
28099         bit for RE_HAT_LISTS_NOT_NEWLINE.
28100         (build_charclass_op): Remove bogus comment.
28101
28102 2007-02-05  Simon Josefsson  <simon@josefsson.org>
28103
28104         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
28105
28106 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
28107
28108         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
28109         * lib/memmem.c [!defined _LIBC]: Include config.h.
28110
28111 2007-02-04  Bruno Haible  <bruno@clisp.org>
28112
28113         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
28114         warning message.
28115
28116 2007-02-04  Bruno Haible  <bruno@clisp.org>
28117
28118         New module mbstok_r.
28119         * modules/mbstok_r: New file.
28120         * lib/mbstok_r.c: New file.
28121         * lib/string_.h (strtok_r): Change argument names to match the
28122         comments. Add a conditional link warning.
28123         (mbstok_r): New declaration.
28124         * m4/mbstok_r.m4: New file.
28125         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28126         GNULIB_MBSTOK_R.
28127         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
28128         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
28129
28130 2007-02-04  Bruno Haible  <bruno@clisp.org>
28131
28132         New module mbsspn.
28133         * modules/mbsspn: New file.
28134         * lib/mbsspn.c: New file.
28135         * lib/string_.h (strspn): Add a conditional link warning.
28136         (mbsspn): New declaration.
28137         * m4/mbsspn.m4: New file.
28138         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28139         GNULIB_MBSSPN.
28140         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
28141         * MODULES.html.sh (Internationalization functions): Add mbsspn.
28142
28143 2007-02-04  Bruno Haible  <bruno@clisp.org>
28144
28145         New module mbspbrk.
28146         * modules/mbspbrk: New file.
28147         * lib/mbspbrk.c: New file.
28148         * lib/string_.h (strpbrk): Add a conditional link warning.
28149         (mbspbrk): New declaration.
28150         * m4/mbspbrk.m4: New file.
28151         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28152         GNULIB_MBSPBRK.
28153         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
28154         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
28155
28156 2007-02-04  Bruno Haible  <bruno@clisp.org>
28157
28158         New module mbscspn.
28159         * modules/mbscspn: New file.
28160         * lib/mbscspn.c: New file.
28161         * lib/string_.h (strcspn): Add a conditional link warning.
28162         (mbscspn): New declaration.
28163         * m4/mbscspn.m4: New file.
28164         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28165         GNULIB_MBSCSPN.
28166         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
28167         * MODULES.html.sh (Internationalization functions): Add mbscspn.
28168
28169 2007-02-04  Bruno Haible  <bruno@clisp.org>
28170
28171         New module mbscasestr, reduced goal of strcasestr.
28172         * modules/mbscasestr: New file.
28173         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
28174         (mbscasestr): Renamed from strcasestr.
28175         * lib/strcasestr.c: Don't include mbuiter.h.
28176         (strcasestr): Remove support for multibyte locales.
28177         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
28178         Change the conditional link warning.
28179         (mbscasestr): New declaration.
28180         * m4/mbscasestr.m4: New file.
28181         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
28182         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
28183         REPLACE_STRCASESTR.
28184         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
28185         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28186         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
28187         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
28188         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
28189         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
28190         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
28191         (Depends-on): Remove mbuiter.
28192         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
28193
28194 2007-02-04  Bruno Haible  <bruno@clisp.org>
28195
28196         Simplify handling of strncasecmp.
28197         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
28198         the conditional link warning.
28199         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28200         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
28201         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
28202         * modules/strcase (configure.ac): Don't invoke
28203         gl_STRING_MODULE_INDICATOR.
28204         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
28205
28206 2007-02-04  Bruno Haible  <bruno@clisp.org>
28207
28208         New module mbscasecmp, reduced goal of strcasecmp.
28209         * modules/mbscasecmp: New file.
28210         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
28211         (mbscasecmp): Renamed from strcasecmp.
28212         * lib/strcasecmp.c: Don't include mbuiter.h.
28213         (strcasecmp): Remove support for multibyte locales.
28214         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
28215         Change the conditional link warning.
28216         (mbscasecmp): New declaration.
28217         * m4/mbscasecmp.m4: New file.
28218         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
28219         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
28220         REPLACE_STRCASECMP.
28221         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
28222         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28223         GNULIB_MBSCASECMP.
28224         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
28225         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
28226         * modules/strcase (Files): Remove m4/mbrtowc.m4.
28227         (Depends-on): Remove mbuiter.
28228         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
28229
28230 2007-02-04  Bruno Haible  <bruno@clisp.org>
28231
28232         New module mbsstr. Remove module strstr.
28233         * modules/mbsstr: New file.
28234         * modules/strstr: Remove file.
28235         * lib/mbsstr.c: Renamed from lib/strstr.c.
28236         (mbsstr): Renamed from strstr.
28237         * lib/string_.h (strstr): Remove declaration. Change the conditional
28238         link warning.
28239         (mbsstr): New declaration.
28240         * m4/mbsstr.m4: New file.
28241         * m4/strstr.m4: Remove file.
28242         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
28243         REPLACE_STRSTR.
28244         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
28245         Don't initialize GNULIB_STRSTR.
28246         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
28247         substitute GNULIB_STRSTR and REPLACE_STRSTR.
28248         * MODULES.html.sh (Internationalization functions): Add mbsstr.
28249         (Support for systems lacking ANSI C 89): Remove strstr.
28250
28251 2007-02-04  Bruno Haible  <bruno@clisp.org>
28252
28253         New module mbsrchr.
28254         * modules/mbsrchr: New file.
28255         * lib/mbsrchr.c: New file.
28256         * lib/string_.h (strrchr): Add a conditional link warning.
28257         (mbsrchr): New declaration.
28258         * m4/mbsrchr.m4: New file.
28259         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28260         GNULIB_MBSRCHR.
28261         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
28262         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
28263
28264 2007-02-04  Bruno Haible  <bruno@clisp.org>
28265
28266         New module mbschr.
28267         * modules/mbschr: New file.
28268         * lib/mbschr.c: New file.
28269         * lib/string_.h (strchr): Add a conditional link warning.
28270         (mbschr): New declaration.
28271         * m4/mbschr.m4: New file.
28272         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28273         GNULIB_MBSCHR.
28274         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
28275         * MODULES.html.sh (Internationalization functions): Add mbschr.
28276
28277 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
28278
28279         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
28280
28281         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
28282
28283 2007-02-04  Bruno Haible  <bruno@clisp.org>
28284
28285         New module description section 'configure.ac-early'.
28286         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
28287         (func_get_autoconf_early_snippet): New function.
28288         (func_import, func_create_testdir): Use it. Remove special cases for
28289         modules 'extensions' and 'lock'.
28290         * modules/extensions (configure.ac-early): Require
28291         gl_USE_SYSTEM_EXTENSIONS.
28292         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
28293
28294 2007-02-04  Bruno Haible  <bruno@clisp.org>
28295
28296         Make use of gcj-4.3's -fsource and -ftarget option.
28297         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
28298         and if so try the options -fsource and -ftarget.
28299         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
28300         source_version, ftarget_option, target_version arguments.
28301         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
28302         (is_envjavac_oldgcj_14_14_usable): Renamed from
28303         is_envjavac_gcj_14_14_usable.
28304         (is_envjavac_oldgcj_14_13_usable): Renamed from
28305         is_envjavac_gcj_14_13_usable.
28306         (is_gcj_present): Update.
28307         (is_gcj_43, is_gcj43_usable): New functions.
28308         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
28309         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
28310         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
28311         try the options -fsource and -ftarget.
28312
28313 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
28314
28315         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
28316         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
28317         larger value.
28318
28319 2007-02-03  Jim Meyering  <jim@meyering.net>
28320
28321         Give tools a better chance to allocate space for very large buffers.
28322         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
28323
28324         Make pwd and readlink work also when run with an unreadable parent dir
28325         on systems with openat support.
28326         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
28327         provided getcwd function, even when we have openat support.
28328         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
28329
28330 2007-02-02  Bruno Haible  <bruno@clisp.org>
28331
28332         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
28333         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
28334         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
28335         portability problems if one of these functions is only used on specific
28336         platforms.
28337         Reported by Paul Eggert.
28338
28339 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
28340
28341         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
28342         is causing more trouble than it's curing.
28343         * lib/regex_internal.h (__mempcpy): Remove.
28344         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
28345         (and make the code a tad smaller to boot).
28346         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
28347
28348 2007-02-02  Jim Meyering  <jim@meyering.net>
28349
28350         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
28351         section, not in the Makefile.am: one.
28352
28353 2007-02-02  Eric Blake  <ebb9@byu.net>
28354
28355         * lib/strchrnul.c: Always include config.h first.
28356
28357         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
28358         gnulib strstr is not necessary here.
28359
28360 2007-02-02  Simon Josefsson  <simon@josefsson.org>
28361
28362         * m4/socklen.m4: Fix typo.
28363
28364 2007-02-02  Eric Blake  <ebb9@byu.net>
28365
28366         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
28367         * modules/netinet_in (Makefile.am): Likewise.
28368
28369 2007-02-01  Bruno Haible  <bruno@clisp.org>
28370
28371         * lib/string_.h (GL_LINK_WARNING): New macro.
28372         (strcasecmp, strstr, strcasestr): If provided by the system,
28373         conditionally define as a macro that leads to a warning instead of to
28374         an error.
28375         (strncasecmp): Conditionally define as a macro that leads to a warning.
28376
28377 2007-02-01  Karl Berry  <karl@gnu.org>
28378
28379         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
28380
28381 2007-02-01  Bruno Haible  <bruno@clisp.org>
28382
28383         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
28384         renamings.
28385
28386 2007-02-01  Eric Blake  <ebb9@byu.net>
28387
28388         * modules/regex (Depends-on): Revert dependence on mempcpy.
28389         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
28390         module's definition of mempcpy.
28391         Reported by Paul Eggert.
28392
28393 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
28394
28395         * lib/string_.h: If the gnulib module XYZ is not present, undefine
28396         the symbol XYZ before redefining it.  This fixes a problem with
28397         programs that don't use XYZ, when compiled on systems that define
28398         XYZ to something else.
28399
28400 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
28401
28402         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
28403         occurs when "mkdir -m foo" creates a setgid directory that is (1)
28404         writeable to group or other and (2) is intended to have a special
28405         mode bit that is set or cleared.  In such a case, the directory
28406         should be neither group- nor other-writeable until the special
28407         mode bits are right.
28408
28409 2007-01-31  Eric Blake  <ebb9@byu.net>
28410
28411         * modules/mountlist (Depends-on): Add strstr.
28412
28413         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
28414         bug.
28415         * modules/string (Makefile.am): Remove redundant replacement.
28416         * modules/regex (Depends-on): Add mempcpy.
28417
28418 2007-01-31  Bruno Haible  <bruno@clisp.org>
28419
28420         New module description field 'Link'.
28421         * gnulib-tool (func_usage): Document --extract-link-directive.
28422         (sed_extract_prog): Recognize 'Link' directive.
28423         (func_get_link_directive): New function.
28424         (func_import): Show summary of link directives.
28425         Handle --extract-link-directive option.
28426         * modules/acl (Link): New section.
28427         * modules/clock-time (Link): New section.
28428         * modules/euidaccess (Link): New section.
28429         * modules/gettext (Link): New section.
28430         * modules/iconv (Link): New section.
28431         * modules/lock (Link): New section.
28432         * modules/nanosleep (Link): New section.
28433         * modules/readline (Link): New section.
28434
28435 2007-01-27  Bruno Haible  <bruno@clisp.org>
28436
28437         Enforce the use of gnulib modules for unportable <string.h> functions.
28438         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
28439         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
28440         (gl_HEADER_STRING_H_BODY): Require it.
28441         * lib/string_.h: If the gnulib module XYZ is not present, redefine
28442         the symbol XYZ to one that gives a link error.
28443         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
28444         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
28445         * modules/mempcpy (configure.ac): Likewise.
28446         * modules/memrchr (configure.ac): Likewise.
28447         * modules/stpcpy (configure.ac): Likewise.
28448         * modules/stpncpy (configure.ac): Likewise.
28449         * modules/strcase (configure.ac): Likewise.
28450         * modules/strcasestr (configure.ac): Likewise.
28451         * modules/strchrnul (configure.ac): Likewise.
28452         * modules/strdup (configure.ac): Likewise.
28453         * modules/strndup (configure.ac): Likewise.
28454         * modules/strnlen (configure.ac): Likewise.
28455         * modules/strpbrk (configure.ac): Likewise.
28456         * modules/strsep (configure.ac): Likewise.
28457         * modules/strstr (configure.ac): Likewise.
28458         * modules/strtok_r (configure.ac): Likewise.
28459
28460 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
28461
28462         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
28463
28464 2007-01-30  Jim Meyering  <jim@meyering.net>
28465
28466         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
28467
28468 2007-01-29  Bruno Haible  <bruno@clisp.org>
28469
28470         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
28471         * lib/execute.c: Likewise.
28472         * lib/pipe.c: Likewise.
28473         * lib/printf-args.h: Likewise.
28474         * lib/printf-args.c: Likewise.
28475         * lib/printf-parse.c: Likewise.
28476         * lib/vasnprintf.c: Likewise.
28477
28478 2007-01-29  Eric Blake  <ebb9@byu.net>
28479
28480         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
28481         declaration.
28482
28483 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
28484
28485         * lib/strptime.h (strptime): Use 'restrict' for args where
28486         POSIX requires this.
28487         * lib/strptime.c (strptime): Likewise.
28488         Change license notice from LGPL to GPL, since gnulib-tool will
28489         change this as needed.
28490         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
28491         defined.
28492         Include "strptime.h" first, to check interface.
28493         Do not #undef _LIBC and _NL_CURRENT.
28494         Do not include <stdlib.h>; no longer needed.
28495         Include "time_r.h" and declare ptime_locale_status
28496         only if _LIBC is not defined.
28497         (__P): Remove unused macro.
28498         (match_string): Bring back glibc version, but use it only if _LIBC
28499         is defined.
28500         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
28501         Remove unnecessary assertion and abort() call.
28502         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
28503         * m4/strptime.m4: Fix serial number comment.
28504         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
28505         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
28506         (Depends-on): Add time_r.
28507
28508 2007-01-29  Bruno Haible  <bruno@clisp.org>
28509
28510         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28511         strptime.
28512         * modules/strptime (Depends-on): Add stdbool.
28513         * lib/strptime.h: Include <time.h> always. Add comments.
28514
28515 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28516
28517         * modules/strptime: New file.
28518         * lib/strptime.h: New file.
28519         * lib/strptime.c: New file.
28520         * m4/strptime.m4: New file.
28521
28522 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
28523
28524         * MODULES.html.sh: New module mpsort.
28525         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
28526
28527         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
28528         a circularity problem with HP-UX ia64 reported by Bob Proulx in
28529         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
28530         All uses changed.
28531         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
28532         All uses changed.
28533         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
28534         to _Restrict_.
28535         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
28536         the parameter matches the prototype.
28537
28538 2007-01-28  Jim Meyering  <jim@meyering.net>
28539
28540         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
28541         sys/time.h here, reverting that part of the previous patch:
28542         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
28543
28544 2007-01-28  Bruno Haible  <bruno@clisp.org>
28545
28546         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
28547         value of $(SYS_TIME_H).
28548         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
28549         remove it conditionally, too. [added by Jim Meyering]
28550         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
28551         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
28552         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
28553         GETTIMEOFDAY_REPLACEMENT to 1.
28554
28555 2007-01-28  Bruno Haible  <bruno@clisp.org>
28556
28557         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
28558         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
28559         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
28560         Set UNISTD_H instead of UNISTD_H2.
28561         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
28562
28563 2007-01-28  Bruno Haible  <bruno@clisp.org>
28564
28565         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
28566         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
28567
28568 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28569
28570         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
28571         (func_create_testdir): Ensure C locale for `grep' and `tr'
28572         character ranges.
28573         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
28574         ACLOCAL_AMFLAGS parsing state machine.
28575
28576 2007-01-27  Bruno Haible  <bruno@clisp.org>
28577
28578         * modules/unistr/base: Update.
28579
28580 2007-01-27  Bruno Haible  <bruno@clisp.org>
28581
28582         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
28583         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
28584         * modules/unistr/u32-mbtouc-unsafe: Renamed from
28585         modules/unistr/u32-mbtouc.
28586         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
28587         * lib/unistr.h: Update.
28588         * lib/linebreak.c: Update.
28589         * modules/unistr/u32-mbtouc: Renamed from
28590         modules/unistr/u32-mbtouc-safe.
28591         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
28592         * lib/unistr.h: Update.
28593         * lib/unistr/u32-to-u8.c: Update.
28594         * lib/unistr/u32-to-u16.c: Update.
28595
28596 2007-01-27  Bruno Haible  <bruno@clisp.org>
28597
28598         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
28599         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
28600         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
28601         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
28602         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
28603         * modules/unistr/u16-mbtouc-unsafe: Renamed from
28604         modules/unistr/u16-mbtouc.
28605         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
28606         * lib/unistr.h: Update.
28607         * lib/linebreak.c: Update.
28608         * modules/linebreak: Update.
28609         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
28610         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
28611         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
28612         * modules/unistr/u16-mbtouc: Renamed from
28613         modules/unistr/u16-mbtouc-safe.
28614         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
28615         * lib/unistr.h: Update.
28616         * lib/unistr/u16-to-u8.c: Update.
28617         * modules/unistr/u16-to-u8: Update.
28618         * lib/unistr/u16-to-u32.c: Update.
28619         * modules/unistr/u16-to-u32: Update.
28620
28621 2007-01-27  Bruno Haible  <bruno@clisp.org>
28622
28623         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
28624         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
28625         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
28626         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
28627         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
28628         * modules/unistr/u8-mbtouc-unsafe: Renamed from
28629         modules/unistr/u8-mbtouc.
28630         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
28631         * lib/unistr.h: Update.
28632         * lib/striconveh.c: Update.
28633         * modules/striconveh: Update.
28634         * lib/linebreak.c: Update.
28635         * modules/linebreak: Update.
28636         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
28637         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
28638         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
28639         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
28640         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
28641         * lib/unistr.h: Update.
28642         * lib/striconveh.c: Update.
28643         * modules/striconveh: Update.
28644         * lib/unistr/u8-to-u16.c: Update.
28645         * modules/unistr/u8-to-u16: Update.
28646         * lib/unistr/u8-to-u32.c: Update.
28647         * modules/unistr/u8-to-u32: Update.
28648
28649 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28650
28651         Sync from Libtool.
28652         * lib/argz.c: Do not include strings.h nor memory.h, include
28653         string.h unconditionally.  Patch by Simon Josefsson.
28654
28655 2007-01-27  Bruno Haible  <bruno@clisp.org>
28656
28657         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
28658         from gl_HEADER_STRING_H_BODY.
28659         (gl_HEADER_STRING_H_BODY): Require it.
28660         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
28661         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
28662         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
28663         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
28664         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28665         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
28666         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28667         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
28668         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
28669         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
28670         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
28671         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
28672         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
28673         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28674         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
28675
28676 2007-01-27  Bruno Haible  <bruno@clisp.org>
28677
28678         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
28679         check_PROGRAMS into noinst_PROGRAMS.
28680         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
28681         check_PROGRAMS in this case.
28682         (func_import): Set for_test to false.
28683         (func_create_testdir): Set for_test to true.
28684
28685 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
28686             Bruno Haible  <bruno@clisp.org>
28687
28688         * modules/strcasestr (Files): Remove lib/strcasestr.h.
28689         (Depends-on): Add string.
28690         (Includes): Use <string.h> instead of strcasestr.h.
28691         * modules/string (Makefile.am): Also substitute the value of
28692         REPLACE_STRCASESTR.
28693         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
28694         assume strcasestr is declared in <string.h> not <strings.h>. Also
28695         set REPLACE_STRCASESTR.
28696         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
28697         REPLACE_STRCASESTR.
28698         * lib/strcasestr.h: Remove file.
28699         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
28700         * lib/string_.h (strcasestr): New declaration.
28701
28702 2007-01-27  Bruno Haible  <bruno@clisp.org>
28703
28704         * lib/string_.h: Use 'extern'.
28705
28706 2007-01-27  Jim Meyering  <jim@meyering.net>
28707
28708         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
28709         of set-but-not-used local, "q".
28710
28711         * lib/mempcpy.c: Include <config.h> before <string.h>.
28712         This fixes a compilation error on HP-UX, due to the system's
28713         "restrict"-using mempcpy prototype.
28714
28715 2007-01-26  Bruno Haible  <bruno@clisp.org>
28716
28717         Small optimization.
28718         * lib/javacomp.c: Include c-strstr.h.
28719          (is_envjavac_gcj): Use c_strstr instead of strstr.
28720         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
28721
28722 2007-01-26  Bruno Haible  <bruno@clisp.org>
28723
28724         * MODULES.html.sh (Unicode string functions): Add the new modules.
28725
28726         * modules/uniconv/u32-strconv-to-locale: New file.
28727         * lib/uniconv/u32-strconv-to-locale.c: New file.
28728
28729         * modules/uniconv/u16-strconv-to-locale: New file.
28730         * lib/uniconv/u16-strconv-to-locale.c: New file.
28731
28732         * modules/uniconv/u8-strconv-to-locale: New file.
28733         * lib/uniconv/u8-strconv-to-locale.c: New file.
28734
28735         * modules/uniconv/u32-strconv-from-locale: New file.
28736         * lib/uniconv/u32-strconv-from-locale.c: New file.
28737
28738         * modules/uniconv/u16-strconv-from-locale: New file.
28739         * lib/uniconv/u16-strconv-from-locale.c: New file.
28740
28741         * modules/uniconv/u8-strconv-from-locale: New file.
28742         * lib/uniconv/u8-strconv-from-locale.c: New file.
28743
28744         * modules/uniconv/u32-strconv-to-enc: New file.
28745         * lib/uniconv/u32-strconv-to-enc.c: New file.
28746         * modules/uniconv/u32-strconv-to-enc-tests: New file.
28747         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
28748
28749         * modules/uniconv/u16-strconv-to-enc: New file.
28750         * lib/uniconv/u16-strconv-to-enc.c: New file.
28751         * lib/uniconv/u-strconv-to-enc.h: New file.
28752         * modules/uniconv/u16-strconv-to-enc-tests: New file.
28753         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
28754
28755         * modules/uniconv/u8-strconv-to-enc: New file.
28756         * lib/uniconv/u8-strconv-to-enc.c: New file.
28757         * modules/uniconv/u8-strconv-to-enc-tests: New file.
28758         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
28759
28760         * modules/uniconv/u32-strconv-from-enc: New file.
28761         * lib/uniconv/u32-strconv-from-enc.c: New file.
28762         * modules/uniconv/u32-strconv-from-enc-tests: New file.
28763         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
28764
28765         * modules/uniconv/u16-strconv-from-enc: New file.
28766         * lib/uniconv/u16-strconv-from-enc.c: New file.
28767         * modules/uniconv/u16-strconv-from-enc-tests: New file.
28768         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
28769
28770         * modules/uniconv/u8-strconv-from-enc: New file.
28771         * lib/uniconv/u8-strconv-from-enc.c: New file.
28772         * lib/uniconv/u-strconv-from-enc.h: New file.
28773         * modules/uniconv/u8-strconv-from-enc-tests: New file.
28774         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
28775
28776         * modules/uniconv/u32-conv-from-enc: New file.
28777         * lib/uniconv/u32-conv-from-enc.c: New file.
28778         * modules/uniconv/u32-conv-from-enc-tests: New file.
28779         * tests/uniconv/test-u32-conv-from-enc.c: New file.
28780
28781         * modules/uniconv/u16-conv-from-enc: New file.
28782         * lib/uniconv/u16-conv-from-enc.c: New file.
28783         * lib/uniconv/u-conv-from-enc.h: New file.
28784         * modules/uniconv/u16-conv-from-enc-tests: New file.
28785         * tests/uniconv/test-u16-conv-from-enc.c: New file.
28786
28787         * modules/uniconv/u8-conv-from-enc: New file.
28788         * lib/uniconv/u8-conv-from-enc.c: New file.
28789         * modules/uniconv/u8-conv-from-enc-tests: New file.
28790         * tests/uniconv/test-u8-conv-from-enc.c: New file.
28791
28792         * modules/uniconv/base: New file.
28793         * lib/uniconv.h: New file.
28794
28795 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
28796
28797         * doc/gnulib-tool.texi (Initial import): Update to match current
28798         behavior with strdup module.
28799         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
28800         * lib/memmem.h: Remove; all uses removed.  This is now done
28801         by <string.h>.
28802         * lib/mempcpy.h: Likewise.
28803         * lib/memrchr.h: Likewise.
28804         * lib/stpcpy.h: Likewise.
28805         * lib/stpncpy.h: Likewise.
28806         * lib/strcase.h: Likewise.
28807         * lib/strchrnul.h: Likewise.
28808         * lib/strdup.h: Likewise.
28809         * lib/strndup.h: Likewise.
28810         * lib/strnlen.h: Likewise.
28811         * lib/strpbrk.h: Likewise.
28812         * lib/strsep.h: Likewise.
28813         * lib/strstr.h: Likewise.
28814         * lib/strtok_r.h: Likewise.
28815         * lib/string_.h: New file.
28816         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
28817         Rely on <string.h> instead.
28818         * lib/canon-host.c: Likewise.
28819         * lib/chdir-long.c: Likewise.
28820         * lib/concatpath.c: Likewise.
28821         * lib/exclude.c: Likewise.
28822         * lib/fchdir.c: Likewise.
28823         * lib/getaddrinfo.c: Likewise.
28824         * lib/getcwd.c: Likewise.
28825         * lib/getsubopt.c: Likewise.
28826         * lib/glob.c: Likewise.
28827         * lib/hard-locale.c: Likewise.
28828         * lib/iconvme.c: Likewise.
28829         * lib/javacomp.c: Likewise.
28830         * lib/mempcpy.c: Likewise.
28831         * lib/memrchr.c: Likewise.
28832         * lib/regex_internal.h: Likewise.
28833         * lib/stpncpy.c: Likewise.
28834         * lib/strcasecmp.c: Likewise.
28835         * lib/strchrnul.c: Likewise.
28836         * lib/strdup.c: Likewise.
28837         * lib/striconv.c: Likewise.
28838         * lib/striconveh.c: Likewise.
28839         * lib/striconveha.c: Likewise.
28840         * lib/strncasecmp.c: Likewise.
28841         * lib/strndup.c: Likewise.
28842         * lib/strnlen.c: Likewise.
28843         * lib/strsep.c: Likewise.
28844         * lib/strstr.c: Likewise.
28845         * lib/strtok_r.c: Likewise.
28846         * lib/userspec.c: Likewise.
28847         * lib/w32spawn.h: Likewise.
28848         * lib/xstrndup.c: Likewise.
28849         * lib/mountlist.c (strstr): Remove decl.
28850         * m4/string_h.m4: New file.
28851         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
28852         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
28853         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
28854         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
28855         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
28856         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
28857         Set REPLACE_STRCASECMP if necessary.
28858         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
28859         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
28860         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
28861         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
28862         HAVE_DECL_STRDUP if necessary.
28863         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
28864         since gl_FUNC_STRNDUP does that now.
28865         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
28866         Check for decl here...
28867         (gl_PREREQ_STRNLEN): ... not here.
28868         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
28869         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
28870         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
28871         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
28872         necessary.
28873         * modules/string: New file.
28874         * modules/memmem (Files): Remove special-purpose include file.
28875         (Depends-on): Add string.
28876         (Include): Include <string.h>, not the removed file.
28877         * modules/mempcpy: Likewise.
28878         * modules/memrchr: Likewise.
28879         * modules/stpcpy: Likewise.
28880         * modules/stpncpy: Likewise.
28881         * modules/strcase: Likewise.
28882         * modules/strchrnul: Likewise.
28883         * modules/strdup: Likewise.
28884         * modules/strndup: Likewise.
28885         * modules/strnlen: Likewise.
28886         * modules/strpbrk: Likewise.
28887         * modules/strsep: Likewise.
28888         * modules/strstr: Likewise.
28889         * modules/strtok_r: Likewise.
28890         * tests/test-dirname.c: Don't include "strdup.h", since
28891         <string.h> now suffices.
28892         * tests/test-memmem.c: Don't include "memmem.h", since
28893         <string.h> now suffices.
28894
28895 2007-01-25  Bruno Haible  <bruno@clisp.org>
28896
28897         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
28898         *resultp is 0.
28899
28900         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
28901         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
28902         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
28903         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
28904
28905         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
28906         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
28907         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
28908         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
28909         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
28910         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
28911
28912 2007-01-24  Bruno Haible  <bruno@clisp.org>
28913
28914         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
28915         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
28916         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
28917         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
28918         gl_FUNC_FTS_CORE.
28919         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
28920         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
28921         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
28922         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
28923         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
28924         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
28925         gl_FUNC_FCHOWNAT.
28926         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
28927         gl_FUNC_STRFTIME.
28928         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
28929         Reported by Ralf Wildenhues.
28930
28931 2007-01-24  Bruno Haible  <bruno@clisp.org>
28932
28933         Drop AC_REQUIRE calls that are redundant with the module dependencies.
28934         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
28935         gl_GETADDRINFO.
28936         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
28937         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
28938         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
28939
28940 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
28941
28942         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
28943         Don't use 'exit'; just return from 'main'.
28944         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
28945
28946         * lib/fnmatch_.h: Readjust white space and comments to match
28947         glibc, to avoid spurious diffs.
28948
28949 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28950
28951         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
28952         2004-12-01 change by Jakub Jelinek, since this code won't compile
28953         if !LIBC.  Problem reported by Bob Proulx.
28954
28955 2007-01-23  Bruno Haible  <bruno@clisp.org>
28956
28957         * lib/striconveh.c: Include c-strcaseeq.h.
28958         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
28959         * modules/striconveh (Depends-on): Add c-strcaseeq.
28960
28961 2007-01-23  Bruno Haible  <bruno@clisp.org>
28962
28963         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
28964
28965         * modules/c-strcaseeq: New file.
28966         * lib/c-strcaseeq.h: New file.
28967
28968         * modules/streq: New file.
28969         * lib/streq.h: New file.
28970
28971 2007-01-23  Bruno Haible  <bruno@clisp.org>
28972
28973         * modules/striconveha-tests: New file.
28974         * tests/test-striconveha.c: New file.
28975
28976         * lib/striconveha.h: Include <stdbool.h>.
28977         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
28978         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
28979         (mem_iconveha_notranslit): Renamed from mem_iconveha.
28980         (mem_iconveha): New function.
28981         (str_iconveha_notranslit): Renamed from str_iconveha.
28982         (str_iconveha): New function.
28983         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
28984         c-strcase.
28985
28986 2007-01-23  Bruno Haible  <bruno@clisp.org>
28987
28988         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
28989         encodings without forgiving before trying any encoding with handler.
28990         (str_iconveha): Try all encodings without forgiving before trying any
28991         encoding with handler.
28992
28993 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28994
28995         Import the following changes from libc.
28996
28997         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
28998
28999         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
29000
29001         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
29002
29003         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
29004         normal_bracket label.
29005
29006         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
29007
29008         [BZ #361]
29009         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
29010         to normal_bracket after fetching the next character.
29011
29012 2007-01-22  Bruno Haible  <bruno@clisp.org>
29013
29014         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
29015         argument.
29016         * lib/striconveh.c (iconv_carefully_1): New function.
29017         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
29018         argument.
29019         (str_cd_iconveh): Update.
29020         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
29021         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
29022         * tests/test-striconveh.c (MAGIC): New macro.
29023         (new_offsets): New function.
29024         (main): Test call with and without offsets.
29025
29026 2007-01-22  Bruno Haible  <bruno@clisp.org>
29027
29028         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
29029         * modules/sys_select (Makefile.am): Likewise.
29030         * modules/sys_socket (Makefile.am): Likewise.
29031         * modules/sys_time (Makefile.am): Likewise.
29032
29033 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
29034
29035         * modules/gettimeofday (License): Change from GPL to LGPL, since
29036         gettimeofday is a library function.
29037
29038 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29039
29040         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
29041
29042 2007-01-21  Bruno Haible  <bruno@clisp.org>
29043
29044         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
29045
29046 2007-01-21  Bruno Haible  <bruno@clisp.org>
29047
29048         * modules/striconveha: New file.
29049         * lib/striconveha.h: New file.
29050         * lib/striconveha.c: New file.
29051         * MODULES.html.sh (Internationalization functions): Add striconveha.
29052         * lib/striconv.c (str_iconv): Optimize the case of an empty input
29053         string.
29054         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
29055
29056 2007-01-21  Bruno Haible  <bruno@clisp.org>
29057
29058         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
29059         * lib/striconveh.c (str_iconveh): Likewise.
29060
29061 2007-01-21  Bruno Haible  <bruno@clisp.org>
29062
29063         * lib/striconveh.h (mem_iconveh): New declaration.
29064         * lib/striconveh.c (mem_iconveh): New function.
29065         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
29066
29067 2007-01-21  Bruno Haible  <bruno@clisp.org>
29068
29069         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
29070
29071         * lib/striconveh.h (mem_cd_iconveh): Change specification.
29072         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
29073         original result buffer.
29074         (str_cd_iconveh): Update.
29075         * tests/test-striconveh.c (main): Update.
29076
29077         * lib/striconv.h (mem_cd_iconv): Change specification.
29078         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
29079         result buffer.
29080         (str_cd_iconv): Update.
29081         * tests/test-striconv.c (main): Update.
29082
29083 2007-01-21  Bruno Haible  <bruno@clisp.org>
29084
29085         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
29086
29087 2007-01-20  Jim Meyering  <jim@meyering.net>
29088
29089         * lib/userspec.c (parse_with_separator): If a user or group string
29090         starts with "+", skip the corresponding name-to-ID look-up, since
29091         such a look-up must fail: user and group names may not include "+".
29092
29093 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
29094
29095         * lib/poll.c: Include sys/time.h and time.h unconditionally,
29096         since we now assume the sys_time module.
29097         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
29098         check for sys/time.h; no longer needed.
29099         * modules/poll (Depends-on): Depend on sys_time.
29100
29101 2007-01-18  Bruno Haible  <bruno@clisp.org>
29102
29103         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
29104         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
29105
29106         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
29107         gettimeofday.
29108
29109         * tests/test-gettimeofday.c: Include <time.h>.
29110         (dummy): Remove variable.
29111
29112         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
29113         gl_HEADER_SYS_TIME_H.
29114         (gl_HEADER_SYS_TIME_H): New macro.
29115
29116         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
29117         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
29118         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
29119         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
29120         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
29121         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
29122         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
29123         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
29124         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
29125         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
29126         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
29127
29128         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
29129         last change; it caused a compilation error when cross-compiling to
29130         Cygwin.
29131
29132 2007-01-18  Jim Meyering  <jim@meyering.net>
29133
29134         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
29135         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
29136         than the race-prone "test -d sys || mkdir sys".
29137         (configure.ac): Use AC_PROG_MKDIR_P.
29138         * modules/sys_select: Likewise.
29139         * modules/sys_socket: Likewise.
29140         * modules/sys_time: Likewise.
29141
29142 2007-01-18  Eric Blake  <ebb9@byu.net>
29143
29144         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
29145         replace gettimeofday.
29146         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
29147         name, to avoid infinite recursion.
29148
29149 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
29150
29151         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
29152         module sys_time.
29153         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
29154         assume timespec.h defines struct timeval.
29155         * lib/settime.c: Likewise.
29156         * lib/utimens.c: Likewise.
29157         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
29158         since we now assume the gettimeofday module.
29159         * lib/tempname.c (__gen_tempname): Likewise.
29160         * lib/gettimeofday.h: Remove.
29161         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
29162         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
29163         Include <time.h>, for 'time()'.
29164         (localtime_buffer_addr): Also use this workaround if
29165         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
29166         to simplify the uses.  All uses changed.
29167         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
29168         that #undef is inside {}, and 'const' follows type name consistently.
29169         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
29170         (gettimeofday): Do not use the maximum possible value for
29171         tv->tv_usec, since that might break usages other than ls.c.
29172         Instead, we'll leave ls.c alone.  This undoes today's patch
29173         by Bruno.  Add a compile-time warning for 1s-clock resolution;
29174         we've never observed the problem but might as well keep the
29175         canary.
29176         * lib/nanosleep.c: Include timespec.h first, for interface check.
29177         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
29178         now assume the sys_time module.
29179         * lib/tempname.c: Likewise.
29180         * lib/timespec.h: Likewise.
29181         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
29182         needed.
29183         * lib/strftime.c: Likewise.
29184         * lib/timespec.h: Likewise.
29185         * lib/posixtm.c: Include posixtm.h first, for interface check.
29186         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
29187         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
29188         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
29189         * lib/sys_time_.h: New file.
29190         * lib/timespec.h (struct timespec): Use long int, not long.
29191         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
29192         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
29193         Remove obsolescent call to AC_HEADER_TIME.
29194         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
29195         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29196         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
29197         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
29198         Likewise.
29199         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
29200         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
29201         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
29202         into the sys_time module.  Check for gettimeofday just once.
29203         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
29204         for gettimeofday signature to just check the signature.  Merely
29205         compile it, since linking doesn't test signature.  Improve test for
29206         whether gettimeofday.o is actually needed.
29207         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
29208         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
29209         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
29210         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
29211         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
29212         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
29213         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
29214         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
29215         than worrying about sys/time.h.
29216         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
29217         Don't bother worrying about TIME_WITH_SYS_TIME.
29218         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
29219         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
29220         * m4/sys_time_h.m4: New file.
29221         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
29222         Don't include sys/time.h.  Return from main rather than exiting.
29223         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
29224         all uses changed.
29225         * modules/gethrxtime (Depends-on): Add sys_time.
29226         * modules/gettime (Depends-on): Likewise.
29227         * modules/gettimeofday (Depends-on): Likewise.
29228         * modules/nanosleep (Depends-on): Likewise.
29229         * modules/settime (Depends-on): Likewise.
29230         * modules/tempname (Depends-on): Likewise.
29231         * modules/utimens (Depends-on): Likewise.
29232         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
29233         (Include:) Change back to <sys/time.h>.
29234         (Maintainer:) Add self.
29235         * modules/sys_time: New file.
29236         * modules/tempname (Depends-on): Add gettimeofday.
29237         * tests/test-gettimeofday.c: Include <sys/time.h>
29238         rather than gettimeofday.h.
29239
29240 2007-01-17  Bruno Haible  <bruno@clisp.org>
29241
29242         * gnulib-tool (func_get_license): Revert last patch. Instead, let
29243         the license default to GPL.
29244         (func_create_testdir): Don't complain if a module is LGPL and its
29245         tests module depends on GPLed modules.
29246
29247 2007-01-17  Bruno Haible  <bruno@clisp.org>
29248
29249         * lib/gettimeofday.c (gettimeofday): Add code for the case
29250         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
29251         maximum possible value for tv->tv_usec, rather than the minimum one.
29252
29253 2005-10-08  Martin Lambers  <marlam@marlam.de>
29254 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
29255 2007-01-16  Bruno Haible  <bruno@clisp.org>
29256
29257         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
29258         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
29259         gl_FUNC_GETTIMEOFDAY.
29260         (Include): Add gettimeofday.h.
29261         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
29262         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
29263         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
29264         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
29265         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
29266         * lib/gettimeofday.h: New file.
29267         * lib/gettimeofday.c: Include <sys/timeb.h>.
29268         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
29269         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
29270         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
29271         fall back on time().
29272
29273         * tests/test-gettimeofday.c: New file.
29274         * modules/gettimeofday-tests: New file.
29275
29276 2007-01-16  Eric Blake  <ebb9@byu.net>
29277
29278         * modules/fnmatch (Depends-on): Depend on wchar.
29279         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
29280         * m4/fnmatch.m4: Likewise.
29281         * modules/mbchar (Makefile.am): Assume <wchar.h>.
29282         * m4/mbchar.m4: Likewise.
29283         * modules/mbswidth (Depends-on): Depend on wchar.
29284         * lib/mbswidth.c: Assume <wchar.h>.
29285         * m4/mbswidth.m4: Likewise.
29286         * modules/quotearg (Depends-on): Depend on wchar.
29287         * lib/quotearg.c: Assume <wchar.h>.
29288         * m4/quotearg.m4: Likewise.
29289         * modules/regex (Depends-on): Depend on wchar.
29290         * lib/regex_internal.h: Assume <wchar.h>.
29291         * m4/regex.m4: Likewise.
29292         * modules/stdint (Depends-on): Depend on wchar.
29293         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
29294         * m4/stdint.m4: Likewise.
29295         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
29296         * modules/strftime (Depends-on): Depend on wchar.
29297         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
29298         * modules/strtol (Depends-on): Depend on wchar.
29299         * lib/strtol.c: Assume <wchar.h>.
29300         * modules/wcwidth (Depends-on): Depend on wchar.
29301         * lib/wcwidth.h: Assume <wchar.h>.
29302         * m4/wcwidth.m4: Likewise.
29303
29304 2007-01-16  Bruno Haible  <bruno@clisp.org>
29305
29306         * modules/csharpexec-script: New, created from...
29307         * modules/csharpexec: ... this.
29308
29309 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
29310
29311         * modules/javaexec-script: New, created from...
29312         * modules/javaexec: ... this.
29313
29314 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29315
29316         * modules/poll (Dependencies): Add sys_select.
29317
29318 2007-01-15  Jim Meyering  <jim@meyering.net>
29319
29320         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
29321         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
29322         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
29323         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
29324
29325 2007-01-15  Bruno Haible  <bruno@clisp.org>
29326
29327         * modules/striconveh: New file.
29328         * lib/striconveh.h: New file.
29329         * lib/striconveh.c: New file.
29330         * MODULES.html.sh (Internationalization functions): Add striconveh.
29331
29332         * modules/striconveh-tests: New file.
29333         * tests/test-striconveh.c: New file.
29334
29335 2007-01-15  Bruno Haible  <bruno@clisp.org>
29336
29337         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
29338         not from GNU libiconv or GNU libc.
29339
29340 2007-01-15  Bruno Haible  <bruno@clisp.org>
29341
29342         * doc/gnulib-intro.texi (Copyright): Explain the different license
29343         terms for module descriptions, autoconf macros, tests, documentation.
29344
29345 2007-01-14  Bruno Haible  <bruno@clisp.org>
29346
29347         * modules/striconv-tests: New file.
29348         * tests/test-striconv.c: New file.
29349
29350 2007-01-14  Bruno Haible  <bruno@clisp.org>
29351
29352         * modules/iconv-tests: New file.
29353         * tests/test-iconv.c: New file.
29354
29355 2007-01-14  Bruno Haible  <bruno@clisp.org>
29356
29357         * gnulib-tool (func_get_license): For test modules, use the license of
29358         the main module.
29359
29360 2007-01-14  Bruno Haible  <bruno@clisp.org>
29361
29362         * modules/iconv (Include): Clarify that <iconv.h> can only be included
29363         if iconv is found to exist.
29364
29365 2007-01-14  Bruno Haible  <bruno@clisp.org>
29366
29367         * modules/c-ctype-tests: New file.
29368         * tests/test-c-ctype.c: New file.
29369
29370 2007-01-14  Bruno Haible  <bruno@clisp.org>
29371
29372         * modules/binary-io-tests: New file.
29373         * tests/test-binary-io.sh: New file.
29374         * tests/test-binary-io.c: New file.
29375
29376 2007-01-14  Bruno Haible  <bruno@clisp.org>
29377
29378         * modules/array-oset-tests: New file.
29379         * tests/test-array_oset.c: New file.
29380
29381 2007-01-14  Bruno Haible  <bruno@clisp.org>
29382
29383         * modules/array-list-tests: New file.
29384         * tests/test-array_list.c: New file.
29385
29386 2007-01-14  Bruno Haible  <bruno@clisp.org>
29387
29388         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
29389         and make.
29390         Reported by Simon Josefsson in
29391         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
29392
29393 2007-01-14  Bruno Haible  <bruno@clisp.org>
29394
29395         * modules/allocsa-tests: New file.
29396         * tests/test-allocsa.c: New file.
29397
29398 2007-01-14  Bruno Haible  <bruno@clisp.org>
29399
29400         * modules/fchdir (Depends-on): Add absolute-header.
29401         * modules/unistd (Depends-on): Likewise.
29402
29403 2006-12-30  Bruno Haible  <bruno@clisp.org>
29404
29405         * modules/fchdir: New file.
29406         * modules/unistd (Files): Add lib/unistd_.h.
29407         (Makefile.am): Generate unistd.h from unistd_.h.
29408         * lib/fchdir.c: New file.
29409         * lib/dirent_.h: New file.
29410         * lib/unistd_.h: New file.
29411         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
29412         * m4/fchdir.m4: New file.
29413         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
29414         (gl_HEADER_UNISTD): Invoke it.
29415         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
29416         function.
29417         * lib/backupfile.c (opendir, closedir): Undefine.
29418         * lib/chown.c (open, close): Undefine.
29419         * lib/clean-temp.c (open, close): Undefine.
29420         * lib/copy-file.c (open, close): Undefine.
29421         * lib/execute.c (open, close): Undefine.
29422         * lib/fsusage.c (open, close): Undefine.
29423         * lib/gc-gnulib.c (open, close): Undefine.
29424         * lib/getcwd.c (opendir, closedir): Undefine.
29425         * lib/glob.c (opendir, closedir): Undefine.
29426         * lib/javacomp.c (open, close): Undefine.
29427         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
29428         * lib/openat-proc.c (open, close): Undefine.
29429         * lib/pagealign_alloc.c (open, close): Undefine.
29430         * lib/pipe.c (open, close): Undefine.
29431         * lib/progreloc.c (open, close): Undefine.
29432         * lib/savedir.c (opendir, closedir): Undefine.
29433         * lib/utime.c (open, close): Undefine.
29434         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
29435
29436 2007-01-10  Bruno Haible  <bruno@clisp.org>
29437
29438         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
29439
29440 2007-01-12  Eric Blake  <ebb9@byu.net>
29441
29442         Provide a robust <wchar.h>.  Further simplifications are now
29443         possible in other modules, but not included here.
29444         * modules/wchar: New module.
29445         * m4/wchar.m4: New file.
29446         * lib/wchar_.h: Likewise.
29447         * modules/mbchar (Depends-on): Depend on wchar, as the first use
29448         of the new module.
29449         * MODULES.html.sh (Extended multibyte and wide character utilities):
29450         New section.
29451
29452 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
29453
29454         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
29455         to a reasonable default for memory allocation.
29456         (xreadlink): Don't allocate a huge buffer, to work around a buggy
29457         file system that reports garbage st_size values for symlinks.
29458         Problem reported by Liyang Hu.
29459
29460 2007-01-11  Simon Josefsson  <simon@josefsson.org>
29461
29462         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
29463         Emacs .#* auto-save files).
29464
29465 2007-01-11  Bruno Haible  <bruno@clisp.org>
29466
29467         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
29468         directory.
29469
29470 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
29471
29472         Use @...@ consistently in lib/wctype_.h.
29473         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
29474         on it being set to 1 or 0.
29475         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
29476         go back to AC_SUBSTing it.
29477         * modules/wctype (Makefile.am): Undo previous change.
29478
29479 2007-01-10  Eric Blake  <ebb9@byu.net>
29480
29481         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
29482         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
29483         * modules/wctype (Makefile.am): Likewise.
29484         Reported by Chris McGuire.
29485
29486 2007-01-10  Jim Meyering  <jim@meyering.net>
29487
29488         fts.c: a small readability/maintainability improvement
29489         * lib/fts.c (fts_read): Make this code slightly more readable and
29490         maintainable by hoisting the "sp->fts_cur = p" assignments to
29491         immediately follow the statements that set P.  Derived from
29492         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
29493
29494 2007-01-10  Eric Blake  <ebb9@byu.net>
29495
29496         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
29497         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
29498         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29499         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
29500         Reported by Chris McGuire.
29501
29502 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29503
29504         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
29505         in sed script.
29506
29507 2007-01-09  Bruno Haible  <bruno@clisp.org>
29508
29509         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
29510         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
29511         variables.
29512         (func_module): Use them.
29513
29514 2007-01-09  Bruno Haible  <bruno@clisp.org>
29515
29516         * modules/unistr/base: New file.
29517         * lib/unistr.h: New file.
29518
29519         * modules/unistr/u8-to-u16: New file.
29520         * lib/unistr/u8-to-u16.c: New file.
29521
29522         * modules/unistr/u8-to-u32: New file.
29523         * lib/unistr/u8-to-u32.c: New file.
29524
29525         * modules/unistr/u16-to-u8: New file.
29526         * lib/unistr/u16-to-u8.c: New file.
29527
29528         * modules/unistr/u16-to-u32: New file.
29529         * lib/unistr/u16-to-u32.c: New file.
29530
29531         * modules/unistr/u32-to-u8: New file.
29532         * lib/unistr/u32-to-u8.c: New file.
29533
29534         * modules/unistr/u32-to-u16: New file.
29535         * lib/unistr/u32-to-u16.c: New file.
29536
29537         * modules/unistr/u8-check: New file.
29538         * modules/unistr/u16-check: New file.
29539         * modules/unistr/u32-check: New file.
29540         * lib/unistr/u8-check.c: New file.
29541         * lib/unistr/u16-check.c: New file.
29542         * lib/unistr/u32-check.c: New file.
29543
29544         * modules/unistr/u8-chr: New file.
29545         * modules/unistr/u16-chr: New file.
29546         * modules/unistr/u32-chr: New file.
29547         * lib/unistr/u8-chr.c: New file.
29548         * lib/unistr/u16-chr.c: New file.
29549         * lib/unistr/u32-chr.c: New file.
29550
29551         * modules/unistr/u8-cmp: New file.
29552         * modules/unistr/u16-cmp: New file.
29553         * modules/unistr/u32-cmp: New file.
29554         * lib/unistr/u8-cmp.c: New file.
29555         * lib/unistr/u16-cmp.c: New file.
29556         * lib/unistr/u32-cmp.c: New file.
29557
29558         * modules/unistr/u8-cpy: New file.
29559         * modules/unistr/u16-cpy: New file.
29560         * modules/unistr/u32-cpy: New file.
29561         * lib/unistr/u8-cpy.c: New file.
29562         * lib/unistr/u16-cpy.c: New file.
29563         * lib/unistr/u32-cpy.c: New file.
29564         * lib/unistr/u-cpy.h: New file.
29565
29566         * modules/unistr/u8-cpy-alloc: New file.
29567         * modules/unistr/u16-cpy-alloc: New file.
29568         * modules/unistr/u32-cpy-alloc: New file.
29569         * lib/unistr/u8-cpy-alloc.c: New file.
29570         * lib/unistr/u16-cpy-alloc.c: New file.
29571         * lib/unistr/u32-cpy-alloc.c: New file.
29572         * lib/unistr/u-cpy-alloc.h: New file.
29573
29574         * modules/unistr/u8-endswith: New file.
29575         * modules/unistr/u16-endswith: New file.
29576         * modules/unistr/u32-endswith: New file.
29577         * lib/unistr/u8-endswith.c: New file.
29578         * lib/unistr/u16-endswith.c: New file.
29579         * lib/unistr/u32-endswith.c: New file.
29580         * lib/unistr/u-endswith.h: New file.
29581
29582         * modules/unistr/u8-mblen: New file.
29583         * modules/unistr/u16-mblen: New file.
29584         * modules/unistr/u32-mblen: New file.
29585         * lib/unistr/u8-mblen.c: New file.
29586         * lib/unistr/u16-mblen.c: New file.
29587         * lib/unistr/u32-mblen.c: New file.
29588
29589         * modules/unistr/u8-mbtouc: New file.
29590         * modules/unistr/u16-mbtouc: New file.
29591         * modules/unistr/u32-mbtouc: New file.
29592         * lib/unistr/u8-mbtouc.c: New file.
29593         * lib/unistr/u16-mbtouc.c: New file.
29594         * lib/unistr/u32-mbtouc.c: New file.
29595
29596         * modules/unistr/u8-mbtouc-safe: New file.
29597         * modules/unistr/u16-mbtouc-safe: New file.
29598         * modules/unistr/u32-mbtouc-safe: New file.
29599         * lib/unistr/u8-mbtouc-safe.c: New file.
29600         * lib/unistr/u16-mbtouc-safe.c: New file.
29601         * lib/unistr/u32-mbtouc-safe.c: New file.
29602
29603         * modules/unistr/u8-move: New file.
29604         * modules/unistr/u16-move: New file.
29605         * modules/unistr/u32-move: New file.
29606         * lib/unistr/u8-move.c: New file.
29607         * lib/unistr/u16-move.c: New file.
29608         * lib/unistr/u32-move.c: New file.
29609         * lib/unistr/u-move.h: New file.
29610
29611         * modules/unistr/u8-next: New file.
29612         * modules/unistr/u16-next: New file.
29613         * modules/unistr/u32-next: New file.
29614         * lib/unistr/u8-next.c: New file.
29615         * lib/unistr/u16-next.c: New file.
29616         * lib/unistr/u32-next.c: New file.
29617
29618         * modules/unistr/u8-prev: New file.
29619         * modules/unistr/u16-prev: New file.
29620         * modules/unistr/u32-prev: New file.
29621         * lib/unistr/u8-prev.c: New file.
29622         * lib/unistr/u16-prev.c: New file.
29623         * lib/unistr/u32-prev.c: New file.
29624
29625         * modules/unistr/u8-set: New file.
29626         * modules/unistr/u16-set: New file.
29627         * modules/unistr/u32-set: New file.
29628         * lib/unistr/u8-set.c: New file.
29629         * lib/unistr/u16-set.c: New file.
29630         * lib/unistr/u32-set.c: New file.
29631         * lib/unistr/u-set.h: New file.
29632
29633         * modules/unistr/u8-startswith: New file.
29634         * modules/unistr/u16-startswith: New file.
29635         * modules/unistr/u32-startswith: New file.
29636         * lib/unistr/u8-startswith.c: New file.
29637         * lib/unistr/u16-startswith.c: New file.
29638         * lib/unistr/u32-startswith.c: New file.
29639         * lib/unistr/u-startswith.h: New file.
29640
29641         * modules/unistr/u8-stpcpy: New file.
29642         * modules/unistr/u16-stpcpy: New file.
29643         * modules/unistr/u32-stpcpy: New file.
29644         * lib/unistr/u8-stpcpy.c: New file.
29645         * lib/unistr/u16-stpcpy.c: New file.
29646         * lib/unistr/u32-stpcpy.c: New file.
29647         * lib/unistr/u-stpcpy.h: New file.
29648
29649         * modules/unistr/u8-stpncpy: New file.
29650         * modules/unistr/u16-stpncpy: New file.
29651         * modules/unistr/u32-stpncpy: New file.
29652         * lib/unistr/u8-stpncpy.c: New file.
29653         * lib/unistr/u16-stpncpy.c: New file.
29654         * lib/unistr/u32-stpncpy.c: New file.
29655         * lib/unistr/u-stpncpy.h: New file.
29656
29657         * modules/unistr/u8-strcat: New file.
29658         * modules/unistr/u16-strcat: New file.
29659         * modules/unistr/u32-strcat: New file.
29660         * lib/unistr/u8-strcat.c: New file.
29661         * lib/unistr/u16-strcat.c: New file.
29662         * lib/unistr/u32-strcat.c: New file.
29663         * lib/unistr/u-strcat.h: New file.
29664
29665         * modules/unistr/u8-strchr: New file.
29666         * modules/unistr/u16-strchr: New file.
29667         * modules/unistr/u32-strchr: New file.
29668         * lib/unistr/u8-strchr.c: New file.
29669         * lib/unistr/u16-strchr.c: New file.
29670         * lib/unistr/u32-strchr.c: New file.
29671
29672         * modules/unistr/u8-strcmp: New file.
29673         * modules/unistr/u16-strcmp: New file.
29674         * modules/unistr/u32-strcmp: New file.
29675         * lib/unistr/u8-strcmp.c: New file.
29676         * lib/unistr/u16-strcmp.c: New file.
29677         * lib/unistr/u32-strcmp.c: New file.
29678
29679         * modules/unistr/u8-strcpy: New file.
29680         * modules/unistr/u16-strcpy: New file.
29681         * modules/unistr/u32-strcpy: New file.
29682         * lib/unistr/u8-strcpy.c: New file.
29683         * lib/unistr/u16-strcpy.c: New file.
29684         * lib/unistr/u32-strcpy.c: New file.
29685         * lib/unistr/u-strcpy.h: New file.
29686
29687         * modules/unistr/u8-strcspn: New file.
29688         * modules/unistr/u16-strcspn: New file.
29689         * modules/unistr/u32-strcspn: New file.
29690         * lib/unistr/u8-strcspn.c: New file.
29691         * lib/unistr/u16-strcspn.c: New file.
29692         * lib/unistr/u32-strcspn.c: New file.
29693         * lib/unistr/u-strcspn.h: New file.
29694
29695         * modules/unistr/u8-strdup: New file.
29696         * modules/unistr/u16-strdup: New file.
29697         * modules/unistr/u32-strdup: New file.
29698         * lib/unistr/u8-strdup.c: New file.
29699         * lib/unistr/u16-strdup.c: New file.
29700         * lib/unistr/u32-strdup.c: New file.
29701         * lib/unistr/u-strdup.h: New file.
29702
29703         * modules/unistr/u8-strlen: New file.
29704         * modules/unistr/u16-strlen: New file.
29705         * modules/unistr/u32-strlen: New file.
29706         * lib/unistr/u8-strlen.c: New file.
29707         * lib/unistr/u16-strlen.c: New file.
29708         * lib/unistr/u32-strlen.c: New file.
29709         * lib/unistr/u-strlen.h: New file.
29710
29711         * modules/unistr/u8-strmblen: New file.
29712         * modules/unistr/u16-strmblen: New file.
29713         * modules/unistr/u32-strmblen: New file.
29714         * lib/unistr/u8-strmblen.c: New file.
29715         * lib/unistr/u16-strmblen.c: New file.
29716         * lib/unistr/u32-strmblen.c: New file.
29717
29718         * modules/unistr/u8-strmbtouc: New file.
29719         * modules/unistr/u16-strmbtouc: New file.
29720         * modules/unistr/u32-strmbtouc: New file.
29721         * lib/unistr/u8-strmbtouc.c: New file.
29722         * lib/unistr/u16-strmbtouc.c: New file.
29723         * lib/unistr/u32-strmbtouc.c: New file.
29724
29725         * modules/unistr/u8-strncat: New file.
29726         * modules/unistr/u16-strncat: New file.
29727         * modules/unistr/u32-strncat: New file.
29728         * lib/unistr/u8-strncat.c: New file.
29729         * lib/unistr/u16-strncat.c: New file.
29730         * lib/unistr/u32-strncat.c: New file.
29731         * lib/unistr/u-strncat.h: New file.
29732
29733         * modules/unistr/u8-strncmp: New file.
29734         * modules/unistr/u16-strncmp: New file.
29735         * modules/unistr/u32-strncmp: New file.
29736         * lib/unistr/u8-strncmp.c: New file.
29737         * lib/unistr/u16-strncmp.c: New file.
29738         * lib/unistr/u32-strncmp.c: New file.
29739
29740         * modules/unistr/u8-strncpy: New file.
29741         * modules/unistr/u16-strncpy: New file.
29742         * modules/unistr/u32-strncpy: New file.
29743         * lib/unistr/u8-strncpy.c: New file.
29744         * lib/unistr/u16-strncpy.c: New file.
29745         * lib/unistr/u32-strncpy.c: New file.
29746         * lib/unistr/u-strncpy.h: New file.
29747
29748         * modules/unistr/u8-strnlen: New file.
29749         * modules/unistr/u16-strnlen: New file.
29750         * modules/unistr/u32-strnlen: New file.
29751         * lib/unistr/u8-strnlen.c: New file.
29752         * lib/unistr/u16-strnlen.c: New file.
29753         * lib/unistr/u32-strnlen.c: New file.
29754         * lib/unistr/u-strnlen.h: New file.
29755
29756         * modules/unistr/u8-strpbrk: New file.
29757         * modules/unistr/u16-strpbrk: New file.
29758         * modules/unistr/u32-strpbrk: New file.
29759         * lib/unistr/u8-strpbrk.c: New file.
29760         * lib/unistr/u16-strpbrk.c: New file.
29761         * lib/unistr/u32-strpbrk.c: New file.
29762         * lib/unistr/u-strpbrk.h: New file.
29763
29764         * modules/unistr/u8-strrchr: New file.
29765         * modules/unistr/u16-strrchr: New file.
29766         * modules/unistr/u32-strrchr: New file.
29767         * lib/unistr/u8-strrchr.c: New file.
29768         * lib/unistr/u16-strrchr.c: New file.
29769         * lib/unistr/u32-strrchr.c: New file.
29770
29771         * modules/unistr/u8-strspn: New file.
29772         * modules/unistr/u16-strspn: New file.
29773         * modules/unistr/u32-strspn: New file.
29774         * lib/unistr/u8-strspn.c: New file.
29775         * lib/unistr/u16-strspn.c: New file.
29776         * lib/unistr/u32-strspn.c: New file.
29777         * lib/unistr/u-strspn.h: New file.
29778
29779         * modules/unistr/u8-strstr: New file.
29780         * modules/unistr/u16-strstr: New file.
29781         * modules/unistr/u32-strstr: New file.
29782         * lib/unistr/u8-strstr.c: New file.
29783         * lib/unistr/u16-strstr.c: New file.
29784         * lib/unistr/u32-strstr.c: New file.
29785         * lib/unistr/u-strstr.h: New file.
29786
29787         * modules/unistr/u8-strtok: New file.
29788         * modules/unistr/u16-strtok: New file.
29789         * modules/unistr/u32-strtok: New file.
29790         * lib/unistr/u8-strtok.c: New file.
29791         * lib/unistr/u16-strtok.c: New file.
29792         * lib/unistr/u32-strtok.c: New file.
29793         * lib/unistr/u-strtok.h: New file.
29794
29795         * modules/unistr/u8-uctomb: New file.
29796         * modules/unistr/u16-uctomb: New file.
29797         * modules/unistr/u32-uctomb: New file.
29798         * lib/unistr/u8-uctomb.c: New file.
29799         * lib/unistr/u16-uctomb.c: New file.
29800         * lib/unistr/u32-uctomb.c: New file.
29801
29802         * MODULES.html.sh (Unicode string functions): Add the new modules.
29803
29804 2007-01-08  Bruno Haible  <bruno@clisp.org>
29805
29806         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
29807         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
29808         subdirectories.
29809
29810 2007-01-08  Karl Berry  <karl@gnu.org>
29811
29812         * doc/error.texi: mention that main() fns must set program_name
29813         when progname is used.
29814
29815 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
29816
29817         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
29818         WCTYPE_H is empty, for the benefit of builds from non-distclean
29819         directories.  Problem reported by Eric Blake in
29820         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
29821
29822 2007-01-08  Bruno Haible  <bruno@clisp.org>
29823
29824         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
29825         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
29826         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
29827         PROVIDE_CANONICALIZE_FILENAME_MODE.
29828         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
29829
29830 2007-01-08  Bruno Haible  <bruno@clisp.org>
29831
29832         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
29833         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
29834         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
29835         * lib/fts.c: Likewise.
29836         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
29837
29838 2006-12-25  Bruno Haible  <bruno@clisp.org>
29839
29840         * modules/utf8-ucs4-safe: New file.
29841         * lib/utf8-ucs4-safe.h: New file.
29842         * lib/unistr/utf8-ucs4-safe.c: New file.
29843
29844         * modules/utf16-ucs4-safe: New file.
29845         * lib/utf16-ucs4-safe.h: New file.
29846         * lib/unistr/utf16-ucs4-safe.c: New file.
29847
29848         * MODULES.html.sh (Unicode string functions): Add the new modules.
29849
29850 2007-01-08  Bruno Haible  <bruno@clisp.org>
29851
29852         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
29853         (Depends-on): Add unitypes.
29854         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
29855         (u8_mbtouc_aux): Move out to separate file.
29856         (u8_mbtouc): Use ucs4_t, uint8_t types.
29857         * lib/unistr/utf8-ucs4.c: New file.
29858
29859         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
29860         (Depends-on): Add unitypes.
29861         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
29862         (u16_mbtouc_aux): Move out to separate file.
29863         (u16_mbtouc): Use ucs4_t, uint16_t types.
29864         * lib/unistr/utf16-ucs4.c: New file.
29865
29866         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
29867         (Depends-on): Add unitypes.
29868         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
29869         (u8_uctomb_aux): Move out to separate file.
29870         (u8_uctomb): Use ucs4_t, uint8_t types.
29871         * lib/unistr/ucs4-utf8.c: New file.
29872
29873         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
29874         (Depends-on): Add unitypes.
29875         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
29876         (u16_uctomb_aux): Move out to separate file.
29877         (u16_uctomb): Use ucs4_t, uint16_t types.
29878         * lib/unistr/ucs4-utf16.c: New file.
29879
29880 2006-12-25  Bruno Haible  <bruno@clisp.org>
29881
29882         * modules/unitypes: New file.
29883         * lib/unitypes.h: New file.
29884         * MODULES.html.sh (func_all_modules): New section "Unicode string
29885         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
29886         this section. Add unitypes.
29887
29888 2007-01-08  Bruno Haible  <bruno@clisp.org>
29889
29890         Avoid variable names that conflict with those from libtool.
29891         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
29892         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
29893         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
29894         library_names_spec to acl_library_names_spec, hardcode_* to
29895         acl_hardcode_*.
29896         Reported by Ralf Wildenhues.
29897
29898 2007-01-08  Bruno Haible  <bruno@clisp.org>
29899
29900         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
29901         definition.
29902         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
29903         definition.
29904         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
29905         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
29906         definition.
29907         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
29908         definition.
29909         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
29910         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
29911         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
29912         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
29913         definition.
29914         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
29915         definition.
29916         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
29917         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
29918         GC_USE_<algorithm>.
29919         * lib/gc-libgcrypt.c: Likewise.
29920         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
29921         * modules/gc-arctwo (configure.ac): Likewise.
29922         * modules/gc-des (configure.ac): Likewise.
29923         * modules/gc-hmac-md5 (configure.ac): Likewise.
29924         * modules/gc-hmac-sha1 (configure.ac): Likewise.
29925         * modules/gc-md2 (configure.ac): Likewise.
29926         * modules/gc-md4 (configure.ac): Likewise.
29927         * modules/gc-md5 (configure.ac): Likewise.
29928         * modules/gc-random (configure.ac): Likewise.
29929         * modules/gc-rijndael (configure.ac): Likewise.
29930         * modules/gc-sha1 (configure.ac): Likewise.
29931
29932 2007-01-08  Bruno Haible  <bruno@clisp.org>
29933
29934         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
29935         macro definition.
29936         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
29937         definition.
29938         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
29939         definition.
29940         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
29941         * modules/fcntl-safer (configure.ac): Likewise.
29942         * modules/fopen-safer (configure.ac): Likewise.
29943         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
29944         GNULIB_FWRITEERROR macro definition.
29945
29946 2007-01-08  Bruno Haible  <bruno@clisp.org>
29947
29948         * m4/gnulib-common.m4: New file.
29949         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
29950         (func_get_filelist): Add m4/gnulib-common.m4.
29951
29952 2007-01-08  Bruno Haible  <bruno@clisp.org>
29953
29954         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
29955         command.
29956
29957 2007-01-08  Jim Meyering  <jim@meyering.net>
29958
29959         Use a more robust test for a "can't happen" condition.
29960         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
29961         narrowed the st_size value.  Presuming the "can't happen" condition
29962         is true, that narrowing could conceivably convert an invalid st_size
29963         value into a valid one.  Instead, use a change based on Matthew
29964         Woehlke's original patch.
29965
29966         Slight readability improvement: use an assert-like macro
29967         in place of literal "abort ()" uses.
29968         * lib/fts.c (fts_assert): Define.
29969         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
29970         Use this macro instead of a bare 'abort'.
29971
29972 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
29973
29974         Don't worry about using IRIX 5.3's wctype.h broken definitions;
29975         simply work around them.
29976         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
29977         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
29978         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
29979         declaring.
29980         Don't bother to define as macros, since the standard doesn't require it.
29981         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
29982         longer worry about IRIX 5.3.
29983         (HAVE_WCTYPE_CTMP_BUG): Remove.
29984
29985 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
29986
29987         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
29988         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
29989         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
29990         Problems reported by Georg Schwarz for IRIX 5.3.
29991
29992         * gnulib-tool (autoconf_minversion): Take the maximum version number
29993         found, not the minimum.  Problem reported by James Youngman.
29994
29995 2007-01-03  Karl Berry  <karl@gnu.org>
29996
29997         * doc/error.texi: new file, explaining interaction with progname.
29998         * doc/gnulib.texi: include it.  Update copyright.
29999
30000 2007-01-03  Simon Josefsson  <simon@josefsson.org>
30001
30002         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
30003         AC_CANONICAL_HOST, to improve autobuild outputs.
30004
30005 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
30006             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
30007
30008         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
30009         sockets, server sockets, and other file descriptors.  Count errors
30010         to compute the return value.  Reorder the code a bit to be easier
30011         to follow.  Don't set event bits that were not requested (except
30012         POLLERR and POLLHUP).
30013
30014 2007-01-01  Bruno Haible  <bruno@clisp.org>
30015
30016         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
30017
30018 2007-01-03  Jim Meyering  <jim@meyering.net>
30019
30020         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
30021
30022 2007-01-02  Bruno Haible  <bruno@clisp.org>
30023
30024         * modules/settime (Include): Require timespec.h.
30025         * modules/nanosleep (Include): Likewise.
30026
30027 2007-01-01  Bruno Haible  <bruno@clisp.org>
30028
30029         * gnulib-tool (func_emit_copyright_notice): Bump year.
30030         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
30031
30032 2007-01-01  Bruno Haible  <bruno@clisp.org>
30033
30034         Improve support for OpenBSD.
30035         * build-aux/config.rpath (libname_spec): Export.
30036         (library_names_spec): New variable. Export.
30037         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
30038         library_names_spec from the config.rpath output. Locate shared library
30039         through the name pattern in library_names_spec.
30040
30041 2007-01-01  Eric Blake  <ebb9@byu.net>
30042
30043         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
30044
30045 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
30046
30047         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
30048         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
30049         assume the C locale, and avoid an "eval" that could cause trouble.
30050         Problem with SORT reported by Bob Proulx.
30051
30052         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
30053         Define.  Trivial patch from Henning Nielsen Lund, originally
30054         sent to bug-grep@gnu.org today.
30055
30056 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
30057
30058         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
30059         struct stat.  Problem reported by Henning Nielsen Lund.
30060         * lib/acl.c: Include acl.h first, to check interface.  Don't
30061         bother to include sys/types.h and sys/stat.h again.
30062
30063 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
30064
30065         Import the following change from libc; problem reported by
30066         Sven Verdoolaege.
30067
30068         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
30069
30070         [BZ #1373]
30071         * lib/argp.h: Remove __NTH for __argp_usage inline function.
30072
30073 2006-12-28  Jim Meyering  <jim@meyering.net>
30074
30075         * build-aux/announce-gen: Do not assume that the package
30076         builds any of tar.gz, tar.bz2, and .xdelta files.
30077         Suggestion from Simon Josefsson.
30078
30079 2006-12-28  Simon Josefsson  <simon@josefsson.org>
30080
30081         * modules/announce-gen: New file.
30082
30083 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
30084
30085         * lib/mbchar.h: Just include <wctype.h>; the wctype module
30086         handles its gotchas now.
30087         * lib/mbswidth.c: Likewise.
30088         * lib/wcwidth.h: Likewise.
30089         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
30090         and iswcntrl; the wctype module does this stuff now.
30091         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
30092         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30093         * modules/mbchar (Depends-on): Add wctype.
30094         * modules/mbswidth (Depends-on): Likewise.
30095         * modules/wcwidth (Depends-on): Likewise.
30096
30097 2006-12-27  Eric Blake  <ebb9@byu.net>
30098
30099         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
30100         module uses more than what <wctype.h> is required to provide.
30101
30102 2006-12-26  Eric Blake  <ebb9@byu.net>
30103
30104         * gnulib-tool (sed_extract_prog): Avoid space-tab.
30105
30106 2006-12-26  Eric Blake  <ebb9@byu.net>
30107
30108         * modules/absolute-header: New module.
30109         * modules/fcntl (Depends-on): Depend on it.
30110         * modules/inttypes (Depends-on): Likewise.
30111         * modules/stdint (Depends-on): Likewise.
30112         * modules/sys_stat (Depends-on): Likewise.
30113         * modules/wctype (Depends-on): Likewise.
30114         * MODULES.html.sh (Support for building libraries and
30115         executables): Document it.
30116
30117 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
30118
30119         * gnulib-tool (SED): Remove, undoing previous change.
30120         The problem was that it broke coreutils on Solaris, because
30121         "sed --posix" leaked into a makefile.
30122         (sed): New alias, if 'alias' and GNU sed.
30123
30124 2006-12-24  Jim Meyering  <jim@meyering.net>
30125
30126         Work around an fchownat bug in glibc-2.4:
30127         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
30128         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
30129         in spite of the -P option.
30130         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
30131         New macros.
30132         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
30133         * modules/openat (Files): Add lib/fchownat.c.
30134         * lib/openat.c (fchownat): Don't define here.  Move to...
30135         * lib/fchownat.c: ...this new file.
30136
30137 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
30138
30139         Fix bug reported by Bruno Haible in
30140         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
30141         where quotearg.c didn't compile on Mac OS X 10.2 because it
30142         lacks <wchar.h> and wint_t.
30143         * lib/wctype_.h (__wctype_wint_t): New type.
30144         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
30145         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
30146         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
30147         Arg is now of type __wctype_wint_t, not wint_t.
30148         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
30149         substitute HAVE_WINT_T.
30150         * modules/wctype (Files): Add m4/wint_t.m4.
30151         (wctype.h): Substitute HAVE_WINT_T.
30152
30153 2006-12-23  Bruno Haible  <bruno@clisp.org>
30154
30155         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
30156
30157 2006-12-23  Bruno Haible  <bruno@clisp.org>
30158
30159         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
30160         S_ISLNK.
30161         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
30162         mingw.
30163
30164 2006-12-22  Bruno Haible  <bruno@clisp.org>
30165
30166         * lib/copy-file.c: Include acl.h.
30167         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
30168         Close the file descriptors only after being done with copy_acl.
30169         * modules/copy-file (Depends-on): Add acl.
30170
30171 2006-12-22  Bruno Haible  <bruno@clisp.org>
30172
30173         * gnulib-tool (SED): New variable.
30174         Use $SED instead of sed everywhere.
30175
30176 2006-12-22  Bruno Haible  <bruno@clisp.org>
30177
30178         * modules/no-c++: New file.
30179         * m4/no-c++.m4: New file.
30180         * MODULES.html.sh (Support for building libraries and executables):
30181         Add no-c++.
30182
30183 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
30184
30185         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
30186         Include <limits.h>, and use its INT_MAX to rewrite the
30187         j loop so that it does not overflow 'int'.  Problem reported by
30188         Ralf Wildenhues in
30189         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
30190         Play it safe by shifting left by 1 rather than multiplying by 2,
30191         as GCC is less likely to optimize this away when the value
30192         is signed (when it assumes overflow leads to undefined behavior).
30193         Also, don't assume time_t uses two's complement.
30194
30195 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
30196
30197         * MODULES.html.sh: New module wctype.
30198         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
30199         * lib/fnmatch.c: Don't bother to include <wchar.h> before
30200         <wctype.h>, since the new wctype module should fix this.
30201         * lib/quotearg.c: Include <wctype.h> unconditionally, since
30202         the wctype module should arrange for it.
30203         * lib/regex_internal.h: Likewise.
30204         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
30205         since the wctype module should handle this now.
30206         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
30207         * modules/fnmatch (Depends-on): Add wctype.
30208         * modules/quotearg (Depends-on): Likewise.
30209         * modules/regex (Depends-on): Likewise.
30210
30211 2006-12-19  Bruno Haible  <bruno@clisp.org>
30212
30213         * lib/strdup.h [C++]: Wrap definitions in extern "C".
30214         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
30215
30216 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30217
30218         * modules/savewd (Depends-on): Fix dependency on fcntl.
30219
30220 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
30221
30222         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
30223         conforms to C99, rather than relying on the user's environment
30224         setting of STDINT_H.
30225
30226 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
30227         and Eric Blake  <ebb9@byu.net>
30228
30229         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
30230         This is more consistent with the other defines here.
30231         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
30232         Port to z/OS.  Problem reported by Paul Gilmartin.
30233         Change local vars to use gl_ prefix rather than ac_.
30234         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
30235         with other defines.
30236         * modules/double-slash-root: New module.
30237         * modules/dirname (Files): Remove m4/double-slash-root.m4.
30238         (Depends-on): Add double-slash-root.
30239         * MODULES.html.sh (File system functions): Mention new module.
30240
30241 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
30242
30243         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
30244         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
30245         This is for the benefit of gzip, which doesn't do i18n.
30246
30247 2006-12-12  Jim Meyering  <jim@meyering.net>
30248
30249         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
30250         Reported by Andreas Schwab <schwab@suse.de>.
30251
30252 2006-12-12  Bruno Haible  <bruno@clisp.org>
30253
30254         Merge these changes.
30255         2006-09-05  Bruno Haible  <bruno@clisp.org>
30256         * lib/iconvme.c (iconv_string): No need to save and restore errno when
30257         iconv_alloc succeeded.
30258         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
30259         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
30260         test for " && dest " at the end - dest is always != NULL there. Call
30261         iconv with 4xNULL arguments initially, to reset the state. Call iconv
30262         with 2xNULL arguments, also to flush the state storage. Handle the
30263         IRIX iconv behaviour. Realloc the final result, to throw away unused
30264         memory.
30265
30266 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
30267
30268         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
30269         and fchmodat unconditionally, since glibc 2.4 has them.
30270         Problem reported by Arkadiusz Miskiewicz.
30271
30272 2006-12-10  Bruno Haible  <bruno@clisp.org>
30273
30274         * gnulib-tool (func_import): Show the include files only for those
30275         modules that are copied and specified.
30276         Reported by Karl Berry.
30277
30278 2006-12-08  Jim Meyering  <jim@meyering.net>
30279
30280         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
30281         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
30282
30283         * build-aux/announce-gen: Add two new options, both optional:
30284         --bootstrap-tools=TOOL_LIST
30285               a comma-separated list of tools, e.g.,
30286               autoconf,automake,bison,gnulib
30287         --gnulib-snapshot-date=DATE
30288               if gnulib is in the bootstrap tool list,
30289               then report this as the snapshot date.
30290               If not specified, use the current date/time.
30291               If you specify a date here, be sure it's UTC.
30292
30293 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30294
30295         * tests/test-argp-2.sh: Fix test to match actual output.
30296         (func_compare): Fix sed script to be portable.
30297
30298 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
30299
30300         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
30301         workaround for this case.  It is not autoconfigured now; offhand
30302         it's hard to see how to autoconfigure it.
30303
30304 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
30305
30306         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
30307         a directory that is about to be chowned.  Such a directory's
30308         initial file permissions should permit the owner only and this
30309         should not be changed until after the chown, since the group and
30310         other bits would be incorrect if they granted permission before
30311         the chown.
30312
30313         Fix porting problem for iswctype reported by Georg Schwarz in:
30314         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
30315         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
30316         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
30317         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
30318         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30319
30320 2006-12-03  Jim Meyering  <jim@meyering.net>
30321
30322         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
30323         p->fts_statp may not yet be defined.
30324         (fts_read): Instead, set it in the caller, once p->fts_statp is
30325         sure to be defined, and corresponds to a top-level directory.
30326         This bug made du -x fail.  Here's the coreutils test case:
30327         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
30328         Reported by Mike Frysinger.
30329
30330 2006-12-01  Jim Meyering  <jim@meyering.net>
30331
30332         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
30333         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
30334         Reported by Simon Josefsson.
30335
30336 2006-11-30  Jim Meyering  <jim@meyering.net>
30337
30338         * m4/warning.m4: Use the all-permissive copyright notice
30339         recommended by RMS (rather than LGPL).
30340         * m4/vararrays.m4: Likewise.
30341         * m4/flexmember.m4: Likewise.
30342
30343 2006-11-29  Bruno Haible  <bruno@clisp.org>
30344
30345         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
30346         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
30347         using +=.
30348         Reported by Simon Josefsson <simon@josefsson.org>.
30349
30350 2006-11-28  James Youngman <jay@gnu.org>
30351
30352         * README: Advise users that they might find the bug-gnulib@gnu.org
30353         and autotools-announce@gnu.org mailing lists useful.
30354
30355 2006-11-28  Bruno Haible  <bruno@clisp.org>
30356
30357         * m4/ptrdiff_max.m4: Remove file.
30358
30359 2006-11-21  Bruno Haible  <bruno@clisp.org>
30360
30361         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
30362         _AC_COMPUTE_INT.
30363         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
30364         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
30365         _AC_COMPUTE_INT.
30366         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
30367         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
30368         _AC_COMPUTE_INT.
30369         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
30370
30371 2006-11-28  Jim Meyering  <jim@meyering.net>
30372
30373         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
30374         warning from "gcc -Wshadow" about shadowing the builtin.
30375
30376 2006-11-27  Bruno Haible  <bruno@clisp.org>
30377
30378         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
30379         _AC_COMPUTE_INT.
30380         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
30381
30382 2006-11-27  Bruno Haible  <bruno@clisp.org>
30383             Paul Eggert  <eggert@cs.ucla.edu>
30384
30385         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
30386
30387 2006-11-26  Bruno Haible  <bruno@clisp.org>
30388
30389         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
30390         noinst_LTLIBRARIES.
30391
30392 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
30393             Bruno Haible  <bruno@clisp.org>
30394
30395         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
30396         if compiling with "gcc -ansi".
30397
30398 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
30399
30400         Fix some incompatibilities with gcc -ansi -pedantic.
30401         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
30402         if compiling pedantically with GCC, unless it's C99 or later.
30403         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
30404         it mishandles gcc -ansi -pedantic as well.
30405         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
30406         if gcc -pedantic.
30407         * lib/regexec.c (check_node_accept_bytes): Don't use auto
30408         initializers for struct if -pedantic, unless it's C99 or later.
30409
30410 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
30411
30412         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
30413         Don't close an fd more than once. Identical atimes indicate
30414         success, not failure.
30415
30416 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
30417
30418         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
30419
30420 2006-11-23  Jim Meyering  <jim@meyering.net>
30421
30422         * build-aux/announce-gen: New file.  From coreutils.
30423
30424 2006-11-22  Jim Meyering  <jim@meyering.net>
30425
30426         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
30427         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
30428         (fts_read): Use a temporary to narrow the overused st_size member
30429         before using it in a switch statement.  Reported by Matthew Woehlke.
30430
30431         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
30432         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30433
30434 2006-11-20  Bruno Haible  <bruno@clisp.org>
30435
30436         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
30437         changequote instead of pairs of brackets.
30438         Reported by Andreas Schwab <schwab@suse.de>.
30439
30440 2006-11-21  Jim Meyering  <jim@meyering.net>
30441
30442         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
30443         so as to remain compatible with older compilers.
30444         Patch from Michael Deutschmann.
30445
30446 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
30447
30448         * MODULES.html.sh (File system functions): Add openat.
30449
30450         * lib/openat.h (rpl_fstatat): New macro, if
30451         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
30452         (fstatat): Define to rpl_fstatat under the same conditions,
30453         unless COMPILING_FSTATAT.
30454         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
30455         seems to have the bug.
30456         * lib/fstatat.c: New file.
30457         * modules/openat (Files): Add it.
30458
30459 2006-11-20  Bruno Haible  <bruno@clisp.org>
30460
30461         * Makefile: New file.
30462
30463 2006-11-20  Jim Meyering  <jim@meyering.net>
30464
30465         The beginnings of syntax-related checks for gnulib.
30466         * lib/Makefile: New file.
30467         * lib/t-idcache: New script.  Ensure that the two halves of
30468         idcache.c stay in sync.
30469
30470         * lib/idcache.c: Adjust comments in user- and group- portions to
30471         be more accurate, and to be consistent with one another.
30472
30473 2006-11-20  Jim Meyering  <jim@meyering.net>
30474
30475         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
30476         continue using the flexible array member (thus, this module performs
30477         half as many malloc calls), with the addition that...
30478         (getgroup, getuser): Consistently record a non-match via an empty
30479         "name" string, and map an empty string match to a NULL return value.
30480         * modules/idcache (Depends-on): Re-add flexmember.
30481
30482         * lib/idcache.c (getuser): Remove all uses of the register keyword.
30483         (getuidbyname, getgroup, getgidbyname): Likewise.
30484
30485         Use cleaner syntax: NULL rather than 0.
30486         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
30487
30488 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
30489
30490         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
30491         It mishandled the case where the group was missing.
30492         Problem reported by Greg Schafer.
30493         * modules/idcache: Likewise.
30494
30495 2006-11-18  Jim Meyering  <jim@meyering.net>
30496
30497         * check-module (%exempt_header): Add exception for some
30498         conditionally-included headers.
30499
30500         * modules/i-ring (Depends-on): Add verify.
30501         (License): Change to LGPL.
30502
30503 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
30504
30505         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
30506         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
30507         and inttostr.h.  Use snprintf rather than uinttostr, so that
30508         LGPLed code doesn't depend on GPLed.
30509
30510 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
30511
30512         * modules/inline (License): Change from GPL to LGPL.
30513
30514 2006-11-17  Jim Meyering  <jim@meyering.net>
30515
30516         * modules/d-type (License): Switch to LGPL.
30517
30518 2006-11-15  Bruno Haible  <bruno@clisp.org>
30519
30520         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
30521
30522 2006-11-15  Eric Blake  <ebb9@byu.net>
30523
30524         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
30525         the module dependency.
30526
30527 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30528             Bruno Haible  <bruno@clisp.org>
30529
30530         * gnulib-tool (func_create_testdir): Add license consistency check.
30531
30532 2006-11-15  Eric Blake  <ebb9@byu.net>
30533
30534         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
30535         random "(cached)" in configure output.
30536
30537 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30538
30539         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
30540         test for conforming inttypes.h is both announced and cached.
30541
30542         * MODULES.html.sh (seen_modules, seen_files): New variables.
30543         (func_module): Rewrite to use a few less gnulib-tool and sed
30544         invocations.  Avoid a couple of quadratic algorithms for ...
30545         (missed_modules, missed_files): ... these, with ...
30546         (func_append, func_tmpdir): ... these new functions, from
30547         gnulib-tool.  Analogously, install traps for cleanup.
30548
30549         * tests/test-gc.c (main): Remove unused variables.
30550         * tests/test-read-file.c: Include stdlib.h, for 'free'.
30551
30552 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
30553
30554         * modules/inttostr (License): Change to LGPL.
30555
30556 2006-11-14  Eric Blake  <ebb9@byu.net>
30557
30558         * modules/tempname (License): Change to LGPL.
30559
30560 2006-11-14  Eric Blake  <ebb9@byu.net>
30561
30562         * doc/functions.texi (Function Portability): *printf functions on
30563         Cygwin now understand all POSIX size specifiers.
30564
30565 2006-11-14  Bruno Haible  <bruno@clisp.org>
30566
30567         * modules/c-ctype (License): Change to LGPL.
30568
30569 2006-11-12  Bruno Haible  <bruno@clisp.org>
30570
30571         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
30572         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
30573         for GNOME libraries, for which the include files are installed in
30574         subdirectories of $prefix/include.
30575
30576 2006-11-12  Bruno Haible  <bruno@clisp.org>
30577
30578         * m4/lib-link.m4: Require at least autoconf-2.54.
30579         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
30580         name to underscores for the --with option.
30581
30582 2006-11-13  Bruno Haible  <bruno@clisp.org>
30583
30584         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
30585         the tests directory.
30586         Reported by Ralf Wildenhues.
30587
30588 2006-11-13  Bruno Haible  <bruno@clisp.org>
30589
30590         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
30591         (func_emit_initmacro_end): Undo the override here.
30592         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
30593         Works around the famous automake error in coreutils.
30594
30595 2006-11-13  Eric Blake  <ebb9@byu.net>
30596
30597         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
30598         element, not its node.
30599
30600 2006-11-12  Bruno Haible  <bruno@clisp.org>
30601
30602         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
30603         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
30604
30605 2006-11-12  Bruno Haible  <bruno@clisp.org>
30606
30607         * gnulib-tool: New option --local-symlink.
30608         (func_usage): Document it.
30609         (lsymbolic): New variable.
30610         (func_import, func_create_testdir): If --symlink was not specified,
30611         test whether --local-symlink was specified and the file comes from
30612         the local_gnulib_dir.
30613
30614 2006-11-12  Bruno Haible  <bruno@clisp.org>
30615
30616         * gnulib-tool (func_ln): New function.
30617         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
30618
30619 2006-11-12  Bruno Haible  <bruno@clisp.org>
30620
30621         Finish support for source files in subdirectories.
30622         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
30623         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
30624         AUTOMAKE_OPTIONS.
30625         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
30626
30627 2006-11-12  Bruno Haible  <bruno@clisp.org>
30628
30629         * gnulib-tool (func_get_automake_snippet): Synthesize also an
30630         EXTRA_lib_SOURCES augmentation.
30631         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
30632
30633 2006-11-12  Jim Meyering  <jim@meyering.net>
30634
30635         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
30636         file descriptors.  This also averts a failure on systems with
30637         native openat support when a traversed directory lacks "x" access.
30638         * lib/fts_.h: Include "i-ring.h"
30639         (struct FTS) [fts_fd_ring]: New member.
30640         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
30641         (FCHDIR): Add parentheses.
30642         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
30643         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
30644         When descending, rather than simply closing the previous
30645         fts_cwd_fd value, push that file descriptor onto the ring.
30646         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
30647         (fts_open): Initialize the new fd_ring member.
30648         (fts_close): Clear the ring.
30649         (fts_safe_changedir): When possible, use our new fd_ring to skip
30650         the diropen and fstat and dev/ino comparison that would normally
30651         accompany a virtual `chdir ("..")'.
30652
30653         * modules/fts (Depends-on): Add i-ring.
30654         * modules/i-ring: New module.
30655         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
30656         * m4/i-ring.m4: New file.
30657
30658 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30659
30660         * gnulib-tool (func_create_testdir): Fix replacement of
30661         `build-aux' in configure.ac.  Run autotools in gltests
30662         subdirectory.
30663         (func_create_testdir, func_create_megatestdir, test): There is
30664         no need for '--force' in most autotool invocations in a new
30665         tree.  Actually fail the whole test if any of the tools, or the
30666         configure or make stages fail.
30667
30668         Sync from Automake.
30669         * build-aux/gnupload: Revert last change.  Add pointer to upload
30670         instructions of the GNU Maintenance Instructions.
30671         Suggestion by Karl Berry.
30672
30673 2006-11-10  Jim Meyering  <jim@meyering.net>
30674
30675         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
30676
30677 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
30678
30679         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
30680         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
30681         (bind_textdomain_codeset) [! ENABLE_NLS]:
30682         Evaluate all the arguments.  That way, callers get compatible behavior
30683         if the arguments have side effects.  Also, it avoids some GCC
30684         diagnostics in some cases; Joel E. Denny reported problems when Bison
30685         was configured with --enable-gcc-warnigs.
30686
30687 2006-11-10  Jim Meyering  <jim@meyering.net>
30688
30689         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
30690         relevant options in CFLAGS (like -O, -fno-inline) are taken into
30691         account.
30692
30693 2006-11-10  Jim Meyering  <jim@meyering.net>
30694
30695         * modules/inline: New file/module.
30696         * modules/xalloc (Files): Remove m4/inline.m4.
30697         (Depends-on): Add inline, instead.
30698         * modules/oset: Likewise.
30699         * modules/list: Likewise.
30700
30701 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
30702
30703         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
30704         Problem reported by Matthew Woehlke.
30705
30706 2006-11-09  Bruno Haible  <bruno@clisp.org>
30707
30708         * lib/tempname.c (gen_tempname): Remove variant that invokes
30709         __gen_tempname.
30710         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
30711         __gen_tempname.
30712
30713 2006-11-08  Bruno Haible  <bruno@clisp.org>
30714
30715         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
30716         to 'yes' instead of 'cross-compiling'.
30717
30718 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
30719
30720         * lib/quotearg.h (quotearg_free): New decl.
30721         * lib/quotearg.c (quotearg_free): New function.
30722         (slot0, nslots, slotvec0, slotvec):
30723         Now file-scope so that quotearg_free can get at them.
30724
30725 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30726
30727         Sync from Automake.
30728         * build-aux/gnupload: Add missing 'gnu' to example URL.
30729         Report by Karl Berry.
30730
30731 2006-11-08  Bruno Haible  <bruno@clisp.org>
30732
30733         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
30734         Suggested by Paul Eggert.
30735
30736 2006-11-08  Jim Meyering  <jim@meyering.net>
30737
30738         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
30739         It's already included if !_LIBC.
30740         (fts_safe_changedir): Add a comment.
30741
30742 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
30743
30744         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
30745         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
30746         Matthew Woehlke.
30747
30748         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
30749         definitions up, to avoid colliding with change below.
30750         (static_inline) [HAVE_INLINE]: New macro.
30751         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
30752         Provide extern decls when !HAVE_INLINE.  Do not define unless
30753         static_inline is defined, either by us or by xmalloc.c.  Use
30754         static_inline rather than static inline.
30755         (XCALLOC): Optimize sizeof(T) = 1 case.
30756         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
30757
30758 2006-11-07  Bruno Haible  <bruno@clisp.org>
30759
30760         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
30761         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
30762         AC_C_INLINE.
30763         * modules/xalloc (Files): Add m4/inline.m4.
30764
30765 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30766
30767         * README: Fix typo.
30768         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
30769         (Miscellanous Notes): ...from this.
30770
30771 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
30772
30773         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
30774         Mention that offsetof should be used instead of sizeof.
30775         From Bruno Haible.
30776
30777 2006-11-07  Bruno Haible  <bruno@clisp.org>
30778
30779         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
30780
30781 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
30782
30783         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
30784         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
30785         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
30786         (gl_tree_add_before, gl_tree_add_after):
30787         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
30788         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
30789         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
30790         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
30791         (gl_linked_add_after, gl_linked_add_at): Likewise.
30792         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
30793         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
30794         (gl_tree_add_before, gl_tree_add_after): Likewise.
30795         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
30796         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
30797         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
30798
30799 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30800
30801         * lib/gl_oset.h: Use C comment style, not C++ comment style.
30802
30803 2006-11-06  Bruno Haible  <bruno@clisp.org>
30804
30805         * m4/inline.m4: New file.
30806         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
30807         * modules/list (Files): Add m4/inline.m4.
30808         * modules/oset (Files): Likewise.
30809
30810 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
30811
30812         * lib/idcache.c: Include <stddef.h>, for offsetof.
30813         (struct userid.name): Change from char * to a flexible array member.
30814         All uses changed.
30815         * modules/idcache (Depends-on): Add flexmember.
30816
30817         * MODULES.html.sh (Core language properties): New module flexmember.
30818         * modules/flexmember, m4/flexmember.m4: New files.
30819
30820         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
30821         inline functions that are identical with the old xnmalloc_inline,
30822         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
30823         that we can avoid some unnecessary integer multiplications and
30824         divisions in the common case where the element size is known at
30825         compile time.
30826         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
30827         needed.
30828         (xnboundedmalloc): Remove.
30829         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
30830         arguments, for consistency with rest of this header.
30831         (xcharalloc): Rewrite using XNMALLOC.
30832         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
30833         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
30834         versions have been moved to lib/xalloc.h and renamed to be the
30835         non-*_inline versions.
30836         (xmalloc, xrealloc): Implement without reference to the xnmalloc
30837         and xnrealloc functions, since those functions are now inline and
30838         now call us.
30839         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
30840         renaming described above.
30841         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
30842         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
30843         captures the dependency in AC_C_INLINE.
30844
30845         New module canonicalize-lgpl, proposed by Charles Wilson in
30846         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
30847         with a few small changes afterwards.
30848         * MODULES.html.sh (File system functions): New module
30849         canonicalize-lgpl.
30850         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
30851         and canonicalize_file_name.
30852         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
30853         * modules/canonicalize-lgpl: New files.
30854
30855 2006-11-05  Bruno Haible  <bruno@clisp.org>
30856
30857         * gnulib-tool (func_import, func_create_testdir): Create directories
30858         also for files in subdirectories of lib/.
30859
30860 2006-11-05  Bruno Haible  <bruno@clisp.org>
30861
30862         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
30863         ANSI C compliant.
30864
30865 2006-11-03  Bruno Haible  <bruno@clisp.org>
30866
30867         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
30868         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
30869         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
30870         (xnboundedmalloc): New inline function.
30871         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
30872         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
30873         xmalloc.
30874         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
30875         xmalloc.
30876         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
30877         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
30878         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
30879         xmalloc.
30880         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
30881         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
30882         xmalloc.
30883         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
30884         gl_tree_add_after): Use XMALLOC instead of xmalloc.
30885         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
30886         xmalloc.
30887         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
30888         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
30889         gl_tree_add_after): Use XMALLOC instead of xmalloc.
30890         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
30891         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
30892         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
30893         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
30894
30895 2006-11-03  Bruno Haible  <bruno@clisp.org>
30896
30897         * lib/c-ctype.h [C++]: Define functions without name mangling.
30898         * lib/fwriteerror.h [C++]: Likewise.
30899         * lib/gcd.h [C++]: Likewise.
30900         * lib/linebreak.h [C++]: Likewise.
30901
30902 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
30903
30904         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
30905         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
30906         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
30907         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
30908         Check for functions and headers just once.
30909         Check for declaration of canonicalize_file_name.
30910         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
30911
30912 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
30913
30914         * gnulib-tool (func_import): Fix typo in actioncmd.
30915
30916 2006-11-02  Bruno Haible  <bruno@clisp.org>
30917
30918         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
30919         newline sequence in the Makefile.am snippet as a space, like "make"
30920         does.
30921         Reported by Roger Persson <perrog@gmail.com>.
30922
30923 2006-11-01  Bruno Haible  <bruno@clisp.org>
30924
30925         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
30926         already declared in <string.h>.
30927         * lib/strcase.h (strncasecmp): Don't declare it if yes.
30928
30929 2006-11-01  Bruno Haible  <bruno@clisp.org>
30930
30931         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
30932         * lib/strcase.h: Include <string.h>.
30933         (strcasecmp): Define to rpl_strcasecmp here.
30934
30935 2006-11-01  Bruno Haible  <bruno@clisp.org>
30936
30937         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
30938
30939 2006-11-01  Eric Blake  <ebb9@byu.net>
30940
30941         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
30942
30943         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
30944
30945 2006-10-29  Bruno Haible  <bruno@clisp.org>
30946
30947         Make it compile in C++ mode.
30948         * lib/full-write.c (full_rw): Add a cast.
30949
30950 2006-11-01  Bruno Haible  <bruno@clisp.org>
30951
30952         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
30953         be POSIX compliant.
30954         Reported by Roger Persson <perrog@gmail.com>.
30955
30956 2006-11-01  Eric Blake  <ebb9@byu.net>
30957
30958         * lib/getopt_.h: Fix comments.
30959
30960 2006-10-31  Eric Blake  <ebb9@byu.net>
30961
30962         * modules/tmpdir (Depends-on): Add sys_stat.
30963         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
30964         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
30965         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
30966         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
30967         tempname.
30968
30969 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
30970
30971         Avoid some C++ diagnostics reported by Bruno Haible.
30972         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
30973         xmalloc.
30974         (quotearg_alloc): Use xcharalloc rather than xmalloc.
30975         (struct slotvec): Move to top level.
30976         (quotearg_n_options): Rewrite to avoid xmalloc.
30977         * lib/xalloc.h (xcharalloc): New function.
30978         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
30979         [defined __cplusplus]: Add function template that provides result
30980         type propagation.  This part of the change is from Bruno Haible.
30981
30982 2006-10-29  Bruno Haible  <bruno@clisp.org>
30983
30984         Make it compile in C++ mode.
30985         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
30986         * lib/strnlen1.c (strnlen1): Cast memchr result.
30987         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
30988         * lib/clean-temp.c (string_equals, string_hash): Add casts.
30989         (create_temp_dir): Rename local variable 'template'.
30990         (compile_csharp_using_sscli): Add cast.
30991         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
30992         * lib/findprog.c (find_in_path): Likewise.
30993         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
30994         * lib/wait-process.c (register_slave_subprocess): Likewise.
30995
30996 2006-10-22  Bruno Haible  <bruno@clisp.org>
30997
30998         * modules/tsearch: New file.
30999         * lib/tsearch.h: New file.
31000         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
31001         * m4/tsearch.m4: New file.
31002         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
31003
31004 2006-10-29  Eric Blake  <ebb9@byu.net>
31005
31006         * lib/arcfour.c: Assume config.h.
31007         * lib/arctwo.c: Likewise.
31008         * lib/base64.c: Likewise.
31009         * lib/check-version.c: Likewise.
31010         * lib/crc.c: Likewise.
31011         * lib/des.c: Likewise.
31012         * lib/gc-gnulib.c: Likewise.
31013         * lib/gc-libgcrypt.c: Likewise.
31014         * lib/gc-pbkdf2-sha1.c: Likewise.
31015         * lib/getaddrinfo.c: Likewise.
31016         * lib/getdelim.c: Likewise.
31017         * lib/getline.c: Likewise.
31018         * lib/hmac-md5.c: Likewise.
31019         * lib/hmac-sha1.c: Likewise.
31020         * lib/iconvme.c: Likewise.
31021         * lib/md2.c: Likewise.
31022         * lib/md4.c: Likewise.
31023         * lib/memxor.c: Likewise.
31024         * lib/read-file.c: Likewise.
31025         * lib/readline.c: Likewise.
31026         * lib/rijndael-alg-fst.c: Likewise.
31027         * lib/rijndael-api-fst.c: Likewise.
31028         * lib/xgetdomainname.c: Likewise.
31029
31030 2006-10-28  Eric Blake  <ebb9@byu.net>
31031
31032         * lib/xstrndup.c: Assume config.h.
31033
31034 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
31035
31036         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
31037         stat-macros.h is now for our own macros, whereas stat_h is for
31038         macros in the <sys/stat.h> name space.
31039         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
31040         (STAT_MACROS_H): Remove.
31041         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
31042         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
31043         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
31044         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
31045         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
31046         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
31047         Move these macros to ...
31048         * lib/stat_.h: here.  Don't include stat-macros.h.
31049         * lib/canonicalize.c: Don't include stat-macros.h.
31050         * lib/chown.c: Likewise.
31051         * lib/euidaccess.c: Likewise.
31052         * lib/file-type.c: Likewise.
31053         * lib/filemode.c: Likewise.
31054         * lib/glob.c: Likewise.
31055         * lib/isapipe.c: Likewise.
31056         * lib/lchown.c: Likewise.
31057         * lib/lstat.c: Likewise.
31058         * lib/mkdir-p.c: Likewise.
31059         * lib/rmdir.c: Likewise.
31060         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
31061         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
31062         unless mkdir isn't declared, to speed up 'configure'.
31063         Always create sys/stat.h, since it's unlikely any real sys/stat.h
31064         would define all the S_* symbols.
31065         * modules/canonicalize (Depends-on):
31066         Depend on sys_stat, not stat-macros.
31067         * modules/chown: Likewise.
31068         * modules/euidaccess: Likewise.
31069         * modules/filemode: Likewise.
31070         * modules/file-type: Likewise.
31071         * modules/glob: Likewise.
31072         * modules/isapipe: Likewise.
31073         * modules/lchown: Likewise.
31074         * modules/lstat: Likewise.
31075         * modules/mkancesdirs: Likewise.
31076         * modules/rmdir: Likewise.
31077         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
31078         * modules/modechange: Likewise.
31079         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
31080         (configure.ac): Remove gl_STAT_MACROS.
31081         * modules/sys_stat (Depends-on): Remove stat-macros.
31082
31083 2006-10-27  Bruno Haible  <bruno@clisp.org>
31084
31085         * m4/signed.m4: Remove file.
31086         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
31087         invocation.
31088         * modules/vasnprintf (Files): Remove m4/signed.m4.
31089
31090 2006-10-27  Bruno Haible  <bruno@clisp.org>
31091
31092         Update to GNU gettext 0.16.
31093         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
31094         m4/inttypes-h.m4, m4/signed.m4.
31095         * m4/gettext.m4: Update to GNU gettext 0.16.
31096         * m4/intl.m4: New file, from GNU gettext.
31097         * m4/intldir.m4: New file, from GNU gettext.
31098         * config/srclist.txt: Update
31099
31100 2006-10-27  Eric Blake  <ebb9@byu.net>
31101
31102         * MODULES.html.sh: Document tempname.
31103         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
31104         dependencies.
31105         (Files): Move lib/tempname.c...
31106         * modules/tempname: ...to this new module.
31107         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
31108         (gl_PREREQ_TEMPNAME): Move...
31109         * m4/tempname.m4: ...to this new file.
31110         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
31111         * modules/sys_stat (Depends-on): Add stat-macros.
31112         * lib/stat_.h (includes): Pick up stat macros.
31113         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
31114         if stat macros are broken.
31115         * lib/tempname.c (includes): No need to include "stat-macros.h".
31116         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
31117         (direxists, __path_search) [!_LIBC]: Don't compile these in
31118         gnulib; the tmpdir module covers that.
31119         * lib/tempname.h: New file.
31120
31121 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
31122
31123         * COPYING: Explain how gnulib-tool converts licence headers.
31124         Almost all wording by Eric Blake.
31125
31126 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
31127
31128         * lib/mbchar.h (is_basic_table): Make read-only.
31129         * lib/mbchar.c (is_basic_table): Likewise.
31130         Reported by John Darrington.
31131
31132 2006-10-25  Bruno Haible  <bruno@clisp.org>
31133
31134         * lib/progname.h (set_program_name): Undefine before defining.
31135
31136 2006-10-25  Bruno Haible  <bruno@clisp.org>
31137
31138         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
31139         false for non-gcc C++ compilers.
31140         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
31141
31142 2006-10-24  Bruno Haible  <bruno@clisp.org>
31143
31144         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
31145         iconv implementations like Irix iconv.
31146
31147 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
31148
31149         * modules/vararrays: New file.
31150         * m4/vararrays.m4: New file, taken from diffutils.
31151         * MODULES.html.sh: New module vararrays.
31152
31153 2006-10-24  Karl Berry  <karl@gnu.org>
31154
31155         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
31156         Don't call GNU Unix.
31157
31158 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31159
31160         * users.txt: Add Libtool.
31161
31162         Sync from Libtool:
31163
31164         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
31165
31166         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
31167         to gnulib's policy of including config.h unconditionally.
31168
31169 2006-10-24  Bruno Haible  <bruno@clisp.org>
31170
31171         * modules/wcwidth (Files): Add m4/wint_t.m4.
31172         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
31173         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
31174
31175 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
31176
31177         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
31178         to pacify GCC with some -W flags enabled.  Problem reported by
31179         Bruno Haible.
31180
31181 2006-10-24  Jim Meyering  <jim@meyering.net>
31182
31183         * MODULES.html.sh: Remove uinttostr.  It's not a module.
31184         Reported by Karl Berry.
31185
31186 2006-10-23  Bruno Haible  <bruno@clisp.org>
31187
31188         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
31189
31190 2006-10-24  Bruno Haible  <bruno@clisp.org>
31191
31192         * lib/gl_list.h: Use C comment style, not C++ comment style.
31193
31194 2006-10-23  Eric Blake  <ebb9@byu.net>
31195
31196         * lib/getaddrinfo.c (includes): Add missing include.
31197
31198 2006-10-23  Bruno Haible  <bruno@clisp.org>
31199             Paul Eggert  <eggert@cs.ucla.edu>
31200
31201         Ability to rename obstack_free.
31202         * lib/obstack.h (__obstack_free): New macro. Declare instead of
31203         obstack_free.
31204         (obstack_free): Invoke the __obstack_free macro.
31205         * lib/obstack.c (obstack_free): Use __obstack_free macro.
31206
31207 2006-10-23  Bruno Haible  <bruno@clisp.org>
31208             Paul Eggert  <eggert@cs.ucla.edu>
31209
31210         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
31211         __argc, __argv from the declaration. (They are defined as macros on
31212         mingw.)
31213
31214 2006-10-22  Bruno Haible  <bruno@clisp.org>
31215
31216         * doc/gnulib-intro.texi: New file.
31217         * doc/gnulib.texi: Include it.
31218
31219 2006-10-21  Bruno Haible  <bruno@clisp.org>
31220
31221         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
31222         "Introduction", "Miscellanous Notes", "Particular Modules".
31223
31224 2006-10-21  Bruno Haible  <bruno@clisp.org>
31225
31226         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31227         Change mostlyclean-local rule to avoid sh syntax error from bash
31228         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
31229
31230 2006-10-23  Jim Meyering  <jim@meyering.net>
31231
31232         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
31233         in place of snprintf.
31234
31235         * modules/inttostr (Files): Add lib/uinttostr.c.
31236         * lib/uinttostr.c (inttostr): New file/function.
31237         * lib/inttostr.h (uinttostr): Declare.
31238         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
31239         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
31240         Add uinttostr.
31241         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
31242
31243 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
31244
31245         * lib/canonicalize.c (ELOOP): Define if not already defined.
31246         Problem reported by Bruno Haible in
31247         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
31248
31249 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
31250
31251         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
31252         Problem reported by Perry Smith and Ville Laurikari.
31253
31254         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
31255         uses.
31256
31257 2006-10-19  Bruno Haible  <bruno@clisp.org>
31258
31259         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
31260         for mingw.
31261
31262 2006-10-19  Bruno Haible  <bruno@clisp.org>
31263
31264         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
31265         Needed for mingw.
31266
31267 2006-10-19  Bruno Haible  <bruno@clisp.org>
31268
31269         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
31270
31271 2006-10-19  Bruno Haible  <bruno@clisp.org>
31272
31273         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
31274         it.
31275
31276 2006-10-19  Bruno Haible  <bruno@clisp.org>
31277
31278         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
31279         invocation.
31280
31281 2006-10-19  Bruno Haible  <bruno@clisp.org>
31282
31283         * gnulib-tool (func_create_testdir): Don't include ftruncate and
31284         mountlist by default.
31285
31286 2006-10-16  Bruno Haible  <bruno@clisp.org>
31287
31288         * lib/c-strstr.c: Include c-strstr.h.
31289
31290 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
31291
31292         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
31293         in a slash.
31294
31295 2006-10-18  Bruno Haible  <bruno@clisp.org>
31296
31297         * lib/lock.h [C++]: Wrap definitions in extern "C".
31298
31299 2006-10-18  Bruno Haible  <bruno@clisp.org>
31300
31301         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
31302         gl_LIBOBJS list.
31303
31304 2006-10-18  Bruno Haible  <bruno@clisp.org>
31305
31306         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
31307
31308 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
31309
31310         * lib/xstrtol.h: Include gettext.h.
31311         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
31312         Problem reported by Eric Blake.
31313         * modules/xstrtol (Depends-on): Add gettext-h.
31314
31315 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
31316
31317         * lib/strftime.c (advance): New macro.
31318         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
31319         incomplete type, so you can't add 0 to it.  Problem and patch
31320         reported by Eelco Dolstra for dietlibc.
31321
31322 2006-10-18  Jim Meyering  <jim@meyering.net>
31323
31324         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
31325         type for a local, and rename it: s/up/user_proc/.
31326
31327 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
31328
31329         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
31330         READ_UTMP_USER_PROCESS.
31331         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
31332
31333 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
31334
31335         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
31336         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
31337
31338 2006-10-17  Eric Blake  <ebb9@byu.net>
31339
31340         * lib/sigprocmask.c (sigprocmask): Fix typo.
31341
31342         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
31343
31344         * modules/clean-temp (Makefile.am): Don't add to make output...
31345         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
31346         config.h.
31347
31348 2006-10-17  Bruno Haible  <bruno@clisp.org>
31349
31350         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
31351         differently if DEFAULT_TEXT_DOMAIN is set.
31352
31353 2006-10-16  Bruno Haible  <bruno@clisp.org>
31354
31355         * lib/clean-temp.c: Include fwriteerror.h.
31356
31357 2006-10-16  Bruno Haible  <bruno@clisp.org>
31358
31359         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
31360
31361 2006-10-16  Bruno Haible  <bruno@clisp.org>
31362
31363         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
31364         * lib/sigprocmask.h: Include <sys/types.h>.
31365         (sigset_t): Use the system's definition if present.
31366
31367 2006-10-17  Eric Blake  <ebb9@byu.net>
31368
31369         * lib/xvasprintf.c (includes): Assume config.h.
31370         * lib/xasprintf.c (includes): Likewise.
31371
31372 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
31373
31374         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
31375         at least as wide as intmax_t.
31376
31377 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
31378
31379         (Imported from Automake.)
31380         * build-aux/gnupload: Update to version 1.1 of directive file.
31381
31382 2006-10-16  Eric Blake  <ebb9@byu.net>
31383
31384         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
31385         match Automake 1.10a.
31386
31387 2006-10-14  Bruno Haible  <bruno@clisp.org>
31388
31389         * modules/sigprocmask: New file.
31390         * lib/sigprocmask.h: New file.
31391         * lib/sigprocmask.c: New file.
31392         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
31393         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
31394         request sigprocmask.o.
31395         (gl_PREREQ_SIGPROCMASK): New macro.
31396         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
31397         (Depends-on): Add sigprocmask.
31398         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
31399         gt_SIGNALBLOCKING. Test for 'raise' only once.
31400         * lib/fatal-signal.c: Include sigprocmask.h.
31401         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
31402         unblock_fatal_signals): Define always.
31403         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31404         sigprocmask.
31405
31406 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
31407
31408         Sync from Automake.
31409         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
31410         which incorrectly sets the mode of an existing destination
31411         directory.  In some cases the unpatched install-sh could do the
31412         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
31413         system.  We hope this is rare in practice, but it's clearly worth
31414         fixing.  Problem reported by Alex Unleashed in
31415         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
31416         Also, don't bother to check for -m bugs unless we're using -m;
31417         suggested by Stepan Kasal.
31418
31419 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31420
31421         Sync from Automake.
31422         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
31423         `-c' flag, so they appear at the same position as in %FASTDEP%
31424         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
31425         which ignores unknown options only after the first non-option.
31426         Bug report against M4 by Nelson H. F. Beebe.
31427
31428 2006-10-13  Jim Meyering  <jim@meyering.net>
31429
31430         Fix a bug in yesterday's change.
31431         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
31432         p->fts_statp->st_dev would be used uninitialized.
31433         Ensures that we always call fts_stat on the very first entry.
31434         Miklos Szeredi reported that find -xdev stopped working.
31435
31436 2006-10-12  Bruno Haible  <bruno@clisp.org>
31437
31438         * gnulib-tool (func_get_automake_snippet): Append an automatically
31439         computed EXTRA_DIST augmentation.
31440         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
31441         * modules/alloca-opt (Makefile.am): Likewise.
31442         * modules/allocsa (Makefile.am): Likewise.
31443         * modules/arcfour (Makefile.am): Likewise.
31444         * modules/arctwo (Makefile.am): Likewise.
31445         * modules/argmatch (Makefile.am): Likewise.
31446         * modules/argz (Makefile.am): Likewise.
31447         * modules/atexit (Makefile.am): Likewise.
31448         * modules/backupfile (Makefile.am): Likewise.
31449         * modules/byteswap (Makefile.am): Likewise.
31450         * modules/c-strtod (Makefile.am): Likewise.
31451         * modules/c-strtold (Makefile.am): Likewise.
31452         * modules/calloc (Makefile.am): Likewise.
31453         * modules/canon-host (Makefile.am): Likewise.
31454         * modules/canonicalize (Makefile.am): Likewise.
31455         * modules/chdir-long (Makefile.am): Likewise.
31456         * modules/chdir-safer (Makefile.am): Likewise.
31457         * modules/check-version (Makefile.am): Likewise.
31458         * modules/chown (Makefile.am): Likewise.
31459         * modules/cloexec (Makefile.am): Likewise.
31460         * modules/close-stream (Makefile.am): Likewise.
31461         * modules/closeout (Makefile.am): Likewise.
31462         * modules/crc (Makefile.am): Likewise.
31463         * modules/csharpexec (Makefile.am): Likewise.
31464         * modules/cycle-check (Makefile.am): Likewise.
31465         * modules/des (Makefile.am): Likewise.
31466         * modules/dev-ino (Makefile.am): Likewise.
31467         * modules/dirfd (Makefile.am): Likewise.
31468         * modules/dirname (Makefile.am): Likewise.
31469         * modules/dup2 (Makefile.am): Likewise.
31470         * modules/eealloc (Makefile.am): Likewise.
31471         * modules/error (Makefile.am): Likewise.
31472         * modules/euidaccess (Makefile.am): Likewise.
31473         * modules/exclude (Makefile.am): Likewise.
31474         * modules/exitfail (Makefile.am): Likewise.
31475         * modules/fcntl-safer (Makefile.am): Likewise.
31476         * modules/fcntl (Makefile.am): Likewise.
31477         * modules/file-type (Makefile.am): Likewise.
31478         * modules/fileblocks (Makefile.am): Likewise.
31479         * modules/filemode (Makefile.am): Likewise.
31480         * modules/filenamecat (Makefile.am): Likewise.
31481         * modules/fnmatch (Makefile.am): Likewise.
31482         * modules/fopen-safer (Makefile.am): Likewise.
31483         * modules/fpending (Makefile.am): Likewise.
31484         * modules/fprintftime (Makefile.am): Likewise.
31485         * modules/free (Makefile.am): Likewise.
31486         * modules/fsusage (Makefile.am): Likewise.
31487         * modules/ftruncate (Makefile.am): Likewise.
31488         * modules/fts (Makefile.am): Likewise.
31489         * modules/gc-arcfour (Makefile.am): Likewise.
31490         * modules/gc-des (Makefile.am): Likewise.
31491         * modules/gc-hmac-md5 (Makefile.am): Likewise.
31492         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
31493         * modules/gc-md4 (Makefile.am): Likewise.
31494         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
31495         * modules/gc-sha1 (Makefile.am): Likewise.
31496         * modules/gc (Makefile.am): Likewise.
31497         * modules/getaddrinfo (Makefile.am): Likewise.
31498         * modules/getcwd (Makefile.am): Likewise.
31499         * modules/getdelim (Makefile.am): Likewise.
31500         * modules/getdomainname (Makefile.am): Likewise.
31501         * modules/getgroups (Makefile.am): Likewise.
31502         * modules/gethostname (Makefile.am): Likewise.
31503         * modules/gethrxtime (Makefile.am): Likewise.
31504         * modules/getline (Makefile.am): Likewise.
31505         * modules/getloadavg (Makefile.am): Likewise.
31506         * modules/getlogin_r (Makefile.am): Likewise.
31507         * modules/getndelim2 (Makefile.am): Likewise.
31508         * modules/getopt (Makefile.am): Likewise.
31509         * modules/getpagesize (Makefile.am): Likewise.
31510         * modules/getpass-gnu (Makefile.am): Likewise.
31511         * modules/getpass (Makefile.am): Likewise.
31512         * modules/getsubopt (Makefile.am): Likewise.
31513         * modules/gettime (Makefile.am): Likewise.
31514         * modules/gettimeofday (Makefile.am): Likewise.
31515         * modules/getugroups (Makefile.am): Likewise.
31516         * modules/getusershell (Makefile.am): Likewise.
31517         * modules/glob (Makefile.am): Likewise.
31518         * modules/group-member (Makefile.am): Likewise.
31519         * modules/hard-locale (Makefile.am): Likewise.
31520         * modules/hash (Makefile.am): Likewise.
31521         * modules/hmac-md5 (Makefile.am): Likewise.
31522         * modules/hmac-sha1 (Makefile.am): Likewise.
31523         * modules/human (Makefile.am): Likewise.
31524         * modules/idcache (Makefile.am): Likewise.
31525         * modules/imaxabs (Makefile.am): Likewise.
31526         * modules/imaxdiv (Makefile.am): Likewise.
31527         * modules/inet_ntop (Makefile.am): Likewise.
31528         * modules/inet_pton (Makefile.am): Likewise.
31529         * modules/intprops (Makefile.am): Likewise.
31530         * modules/inttostr (Makefile.am): Likewise.
31531         * modules/inttypes (Makefile.am): Likewise.
31532         * modules/isapipe (Makefile.am): Likewise.
31533         * modules/javaversion (Makefile.am): Likewise.
31534         * modules/lchmod (Makefile.am): Likewise.
31535         * modules/lchown (Makefile.am): Likewise.
31536         * modules/localcharset (Makefile.am): Likewise.
31537         * modules/long-options (Makefile.am): Likewise.
31538         * modules/lstat (Makefile.am): Likewise.
31539         * modules/malloc (Makefile.am): Likewise.
31540         * modules/mathl (Makefile.am): Likewise.
31541         * modules/mbchar (Makefile.am): Likewise.
31542         * modules/md2 (Makefile.am): Likewise.
31543         * modules/md4 (Makefile.am): Likewise.
31544         * modules/md5 (Makefile.am): Likewise.
31545         * modules/memcasecmp (Makefile.am): Likewise.
31546         * modules/memchr (Makefile.am): Likewise.
31547         * modules/memcmp (Makefile.am): Likewise.
31548         * modules/memcoll (Makefile.am): Likewise.
31549         * modules/memcpy (Makefile.am): Likewise.
31550         * modules/memmem (Makefile.am): Likewise.
31551         * modules/memmove (Makefile.am): Likewise.
31552         * modules/mempcpy (Makefile.am): Likewise.
31553         * modules/memrchr (Makefile.am): Likewise.
31554         * modules/memset (Makefile.am): Likewise.
31555         * modules/memxor (Makefile.am): Likewise.
31556         * modules/mkancesdirs (Makefile.am): Likewise.
31557         * modules/mkdir-p (Makefile.am): Likewise.
31558         * modules/mkdir (Makefile.am): Likewise.
31559         * modules/mkdtemp (Makefile.am): Likewise.
31560         * modules/mkstemp (Makefile.am): Likewise.
31561         * modules/mktime (Makefile.am): Likewise.
31562         * modules/modechange (Makefile.am): Likewise.
31563         * modules/mountlist (Makefile.am): Likewise.
31564         * modules/nanosleep (Makefile.am): Likewise.
31565         * modules/obstack (Makefile.am): Likewise.
31566         * modules/openat (Makefile.am): Likewise.
31567         * modules/pagealign_alloc (Makefile.am): Likewise.
31568         * modules/pathmax (Makefile.am): Likewise.
31569         * modules/physmem (Makefile.am): Likewise.
31570         * modules/poll (Makefile.am): Likewise.
31571         * modules/posixtm (Makefile.am): Likewise.
31572         * modules/posixver (Makefile.am): Likewise.
31573         * modules/putenv (Makefile.am): Likewise.
31574         * modules/quote (Makefile.am): Likewise.
31575         * modules/quotearg (Makefile.am): Likewise.
31576         * modules/raise (Makefile.am): Likewise.
31577         * modules/read-file (Makefile.am): Likewise.
31578         * modules/readline (Makefile.am): Likewise.
31579         * modules/readlink (Makefile.am): Likewise.
31580         * modules/readtokens (Makefile.am): Likewise.
31581         * modules/readutmp (Makefile.am): Likewise.
31582         * modules/realloc (Makefile.am): Likewise.
31583         * modules/regex (Makefile.am): Likewise.
31584         * modules/rename-dest-slash (Makefile.am): Likewise.
31585         * modules/rename (Makefile.am): Likewise.
31586         * modules/rijndael (Makefile.am): Likewise.
31587         * modules/rmdir (Makefile.am): Likewise.
31588         * modules/rpmatch (Makefile.am): Likewise.
31589         * modules/safe-read (Makefile.am): Likewise.
31590         * modules/safe-write (Makefile.am): Likewise.
31591         * modules/same-inode (Makefile.am): Likewise.
31592         * modules/same (Makefile.am): Likewise.
31593         * modules/save-cwd (Makefile.am): Likewise.
31594         * modules/savedir (Makefile.am): Likewise.
31595         * modules/setenv (Makefile.am): Likewise.
31596         * modules/settime (Makefile.am): Likewise.
31597         * modules/sha1 (Makefile.am): Likewise.
31598         * modules/sig2str (Makefile.am): Likewise.
31599         * modules/snprintf (Makefile.am): Likewise.
31600         * modules/stat-macros (Makefile.am): Likewise.
31601         * modules/stat-time (Makefile.am): Likewise.
31602         * modules/stdbool (Makefile.am): Likewise.
31603         * modules/stdint (Makefile.am): Likewise.
31604         * modules/stdlib-safer (Makefile.am): Likewise.
31605         * modules/stpcpy (Makefile.am): Likewise.
31606         * modules/stpncpy (Makefile.am): Likewise.
31607         * modules/strcase (Makefile.am): Likewise.
31608         * modules/strcasestr (Makefile.am): Likewise.
31609         * modules/strchrnul (Makefile.am): Likewise.
31610         * modules/strcspn (Makefile.am): Likewise.
31611         * modules/strdup (Makefile.am): Likewise.
31612         * modules/strerror (Makefile.am): Likewise.
31613         * modules/strftime (Makefile.am): Likewise.
31614         * modules/strndup (Makefile.am): Likewise.
31615         * modules/strnlen (Makefile.am): Likewise.
31616         * modules/strpbrk (Makefile.am): Likewise.
31617         * modules/strsep (Makefile.am): Likewise.
31618         * modules/strstr (Makefile.am): Likewise.
31619         * modules/strtod (Makefile.am): Likewise.
31620         * modules/strtoimax (Makefile.am): Likewise.
31621         * modules/strtok_r (Makefile.am): Likewise.
31622         * modules/strtol (Makefile.am): Likewise.
31623         * modules/strtoll (Makefile.am): Likewise.
31624         * modules/strtoul (Makefile.am): Likewise.
31625         * modules/strtoull (Makefile.am): Likewise.
31626         * modules/strtoumax (Makefile.am): Likewise.
31627         * modules/strverscmp (Makefile.am): Likewise.
31628         * modules/sys_socket (Makefile.am): Likewise.
31629         * modules/sys_stat (Makefile.am): Likewise.
31630         * modules/sysexits (Makefile.am): Likewise.
31631         * modules/time_r (Makefile.am): Likewise.
31632         * modules/timegm (Makefile.am): Likewise.
31633         * modules/timespec (Makefile.am): Likewise.
31634         * modules/tmpfile-safer (Makefile.am): Likewise.
31635         * modules/trim (Makefile.am): Likewise.
31636         * modules/unistd-safer (Makefile.am): Likewise.
31637         * modules/unlinkdir (Makefile.am): Likewise.
31638         * modules/unlocked-io (Makefile.am): Likewise.
31639         * modules/userspec (Makefile.am): Likewise.
31640         * modules/utime (Makefile.am): Likewise.
31641         * modules/utimecmp (Makefile.am): Likewise.
31642         * modules/utimens (Makefile.am): Likewise.
31643         * modules/vasnprintf (Makefile.am): Likewise.
31644         * modules/vasprintf (Makefile.am): Likewise.
31645         * modules/vsnprintf (Makefile.am): Likewise.
31646         * modules/xalloc (Makefile.am): Likewise.
31647         * modules/xgetcwd (Makefile.am): Likewise.
31648         * modules/xnanosleep (Makefile.am): Likewise.
31649         * modules/xreadlink (Makefile.am): Likewise.
31650         * modules/xstrtod (Makefile.am): Likewise.
31651         * modules/xstrtol (Makefile.am): Likewise.
31652         * modules/xstrtold (Makefile.am): Likewise.
31653         * modules/yesno (Makefile.am): Likewise.
31654         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
31655
31656 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
31657
31658         * modules/error (Makefile.am): Distribute files through
31659         EXTRA_DIST, not lib_SOURCES.
31660
31661 2006-10-12  Eric Blake  <ebb9@byu.net>
31662
31663         * modules/error (Makefile.am): Distribute files in /lib.
31664         * modules/obstack (Makefile.am): Likewise.
31665
31666 2006-10-12  Bruno Haible  <bruno@clisp.org>
31667
31668         * modules/acl (Makefile.am): Distribute all files in lib/ through
31669         EXTRA_DIST.
31670         * modules/arcfour (Makefile.am): Likewise.
31671         * modules/arctwo (Makefile.am): Likewise.
31672         * modules/argmatch (Makefile.am): Likewise.
31673         * modules/argz (Makefile.am): Likewise.
31674         * modules/atexit (Makefile.am): Likewise.
31675         * modules/backupfile (Makefile.am): Likewise.
31676         * modules/c-strtod (Makefile.am): Likewise.
31677         * modules/c-strtold (Makefile.am): Likewise.
31678         * modules/calloc (Makefile.am): Likewise.
31679         * modules/canon-host (Makefile.am): Likewise.
31680         * modules/canonicalize (Makefile.am): Likewise.
31681         * modules/chdir-long (Makefile.am): Likewise.
31682         * modules/chdir-safer (Makefile.am): Likewise.
31683         * modules/check-version (Makefile.am): Likewise.
31684         * modules/chown (Makefile.am): Likewise.
31685         * modules/cloexec (Makefile.am): Likewise.
31686         * modules/close-stream (Makefile.am): Likewise.
31687         * modules/closeout (Makefile.am): Likewise.
31688         * modules/crc (Makefile.am): Likewise.
31689         * modules/cycle-check (Makefile.am): Likewise.
31690         * modules/des (Makefile.am): Likewise.
31691         * modules/dirfd (Makefile.am): Likewise.
31692         * modules/dirname (Makefile.am): Likewise.
31693         * modules/dup2 (Makefile.am): Likewise.
31694         * modules/euidaccess (Makefile.am): Likewise.
31695         * modules/exclude (Makefile.am): Likewise.
31696         * modules/exitfail (Makefile.am): Likewise.
31697         * modules/fcntl-safer (Makefile.am): Likewise.
31698         * modules/file-type (Makefile.am): Likewise.
31699         * modules/fileblocks (Makefile.am): Likewise.
31700         * modules/filemode (Makefile.am): Likewise.
31701         * modules/filenamecat (Makefile.am): Likewise.
31702         * modules/fnmatch (Makefile.am): Likewise.
31703         * modules/fopen-safer (Makefile.am): Likewise.
31704         * modules/fpending (Makefile.am): Likewise.
31705         * modules/fprintftime (Makefile.am): Likewise.
31706         * modules/free (Makefile.am): Likewise.
31707         * modules/fsusage (Makefile.am): Likewise.
31708         * modules/ftruncate (Makefile.am): Likewise.
31709         * modules/fts (Makefile.am): Likewise.
31710         * modules/gc (Makefile.am): Likewise.
31711         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
31712         * modules/getaddrinfo (Makefile.am): Likewise.
31713         * modules/getcwd (Makefile.am): Likewise.
31714         * modules/getdelim (Makefile.am): Likewise.
31715         * modules/getdomainname (Makefile.am): Likewise.
31716         * modules/getgroups (Makefile.am): Likewise.
31717         * modules/gethostname (Makefile.am): Likewise.
31718         * modules/gethrxtime (Makefile.am): Likewise.
31719         * modules/getline (Makefile.am): Likewise.
31720         * modules/getloadavg (Makefile.am): Likewise.
31721         * modules/getlogin_r (Makefile.am): Likewise.
31722         * modules/getopt (Makefile.am): Likewise.
31723         * modules/getpass (Makefile.am): Likewise.
31724         * modules/getpass-gnu (Makefile.am): Likewise.
31725         * modules/getsubopt (Makefile.am): Likewise.
31726         * modules/gettime (Makefile.am): Likewise.
31727         * modules/gettimeofday (Makefile.am): Likewise.
31728         * modules/getugroups (Makefile.am): Likewise.
31729         * modules/getusershell (Makefile.am): Likewise.
31730         * modules/glob (Makefile.am): Likewise.
31731         * modules/group-member (Makefile.am): Likewise.
31732         * modules/hard-locale (Makefile.am): Likewise.
31733         * modules/hash (Makefile.am): Likewise.
31734         * modules/hmac-md5 (Makefile.am): Likewise.
31735         * modules/hmac-sha1 (Makefile.am): Likewise.
31736         * modules/human (Makefile.am): Likewise.
31737         * modules/idcache (Makefile.am): Likewise.
31738         * modules/imaxabs (Makefile.am): Likewise.
31739         * modules/imaxdiv (Makefile.am): Likewise.
31740         * modules/inet_ntop (Makefile.am): Likewise.
31741         * modules/inet_pton (Makefile.am): Likewise.
31742         * modules/inttostr (Makefile.am): Likewise.
31743         * modules/isapipe (Makefile.am): Likewise.
31744         * modules/lchown (Makefile.am): Likewise.
31745         * modules/long-options (Makefile.am): Likewise.
31746         * modules/lstat (Makefile.am): Likewise.
31747         * modules/malloc (Makefile.am): Likewise.
31748         * modules/mathl (Makefile.am): Likewise.
31749         * modules/mbchar (Makefile.am): Likewise.
31750         * modules/md2 (Makefile.am): Likewise.
31751         * modules/md4 (Makefile.am): Likewise.
31752         * modules/md5 (Makefile.am): Likewise.
31753         * modules/memcasecmp (Makefile.am): Likewise.
31754         * modules/memchr (Makefile.am): Likewise.
31755         * modules/memcmp (Makefile.am): Likewise.
31756         * modules/memcoll (Makefile.am): Likewise.
31757         * modules/memcpy (Makefile.am): Likewise.
31758         * modules/memmem (Makefile.am): Likewise.
31759         * modules/memmove (Makefile.am): Likewise.
31760         * modules/mempcpy (Makefile.am): Likewise.
31761         * modules/memrchr (Makefile.am): Likewise.
31762         * modules/memset (Makefile.am): Likewise.
31763         * modules/memxor (Makefile.am): Likewise.
31764         * modules/mkancesdirs (Makefile.am): Likewise.
31765         * modules/mkdir (Makefile.am): Likewise.
31766         * modules/mkdir-p (Makefile.am): Likewise.
31767         * modules/mkdtemp (Makefile.am): Likewise.
31768         * modules/mkstemp (Makefile.am): Likewise.
31769         * modules/mktime (Makefile.am): Likewise.
31770         * modules/modechange (Makefile.am): Likewise.
31771         * modules/mountlist (Makefile.am): Likewise.
31772         * modules/nanosleep (Makefile.am): Likewise.
31773         * modules/openat (Makefile.am): Likewise.
31774         * modules/pagealign_alloc (Makefile.am): Likewise.
31775         * modules/physmem (Makefile.am): Likewise.
31776         * modules/poll (Makefile.am): Likewise.
31777         * modules/posixtm (Makefile.am): Likewise.
31778         * modules/posixver (Makefile.am): Likewise.
31779         * modules/putenv (Makefile.am): Likewise.
31780         * modules/quote (Makefile.am): Likewise.
31781         * modules/quotearg (Makefile.am): Likewise.
31782         * modules/raise (Makefile.am): Likewise.
31783         * modules/read-file (Makefile.am): Likewise.
31784         * modules/readline (Makefile.am): Likewise.
31785         * modules/readlink (Makefile.am): Likewise.
31786         * modules/readtokens (Makefile.am): Likewise.
31787         * modules/readutmp (Makefile.am): Likewise.
31788         * modules/realloc (Makefile.am): Likewise.
31789         * modules/regex (Makefile.am): Likewise.
31790         * modules/rename (Makefile.am): Likewise.
31791         * modules/rename-dest-slash (Makefile.am): Likewise.
31792         * modules/rijndael (Makefile.am): Likewise.
31793         * modules/rmdir (Makefile.am): Likewise.
31794         * modules/rpmatch (Makefile.am): Likewise.
31795         * modules/safe-read (Makefile.am): Likewise.
31796         * modules/safe-write (Makefile.am): Likewise.
31797         * modules/same (Makefile.am): Likewise.
31798         * modules/save-cwd (Makefile.am): Likewise.
31799         * modules/savedir (Makefile.am): Likewise.
31800         * modules/setenv (Makefile.am): Likewise.
31801         * modules/settime (Makefile.am): Likewise.
31802         * modules/sha1 (Makefile.am): Likewise.
31803         * modules/sig2str (Makefile.am): Likewise.
31804         * modules/snprintf (Makefile.am): Likewise.
31805         * modules/stdlib-safer (Makefile.am): Likewise.
31806         * modules/stpcpy (Makefile.am): Likewise.
31807         * modules/stpncpy (Makefile.am): Likewise.
31808         * modules/strcase (Makefile.am): Likewise.
31809         * modules/strcasestr (Makefile.am): Likewise.
31810         * modules/strchrnul (Makefile.am): Likewise.
31811         * modules/strcspn (Makefile.am): Likewise.
31812         * modules/strdup (Makefile.am): Likewise.
31813         * modules/strerror (Makefile.am): Likewise.
31814         * modules/strftime (Makefile.am): Likewise.
31815         * modules/strndup (Makefile.am): Likewise.
31816         * modules/strnlen (Makefile.am): Likewise.
31817         * modules/strpbrk (Makefile.am): Likewise.
31818         * modules/strsep (Makefile.am): Likewise.
31819         * modules/strstr (Makefile.am): Likewise.
31820         * modules/strtod (Makefile.am): Likewise.
31821         * modules/strtoimax (Makefile.am): Likewise.
31822         * modules/strtok_r (Makefile.am): Likewise.
31823         * modules/strtol (Makefile.am): Likewise.
31824         * modules/strtoll (Makefile.am): Likewise.
31825         * modules/strtoul (Makefile.am): Likewise.
31826         * modules/strtoull (Makefile.am): Likewise.
31827         * modules/strtoumax (Makefile.am): Likewise.
31828         * modules/strverscmp (Makefile.am): Likewise.
31829         * modules/time_r (Makefile.am): Likewise.
31830         * modules/timegm (Makefile.am): Likewise.
31831         * modules/tmpfile-safer (Makefile.am): Likewise.
31832         * modules/unistd-safer (Makefile.am): Likewise.
31833         * modules/unlinkdir (Makefile.am): Likewise.
31834         * modules/userspec (Makefile.am): Likewise.
31835         * modules/utime (Makefile.am): Likewise.
31836         * modules/utimecmp (Makefile.am): Likewise.
31837         * modules/utimens (Makefile.am): Likewise.
31838         * modules/vasnprintf (Makefile.am): Likewise.
31839         * modules/vasprintf (Makefile.am): Likewise.
31840         * modules/vsnprintf (Makefile.am): Likewise.
31841         * modules/xalloc (Makefile.am): Likewise.
31842         * modules/xgetcwd (Makefile.am): Likewise.
31843         * modules/xnanosleep (Makefile.am): Likewise.
31844         * modules/xreadlink (Makefile.am): Likewise.
31845         * modules/xstrtod (Makefile.am): Likewise.
31846         * modules/xstrtol (Makefile.am): Likewise.
31847         * modules/xstrtold (Makefile.am): Likewise.
31848         * modules/yesno (Makefile.am): Likewise.
31849
31850 2006-10-12  Jim Meyering  <jim@meyering.net>
31851
31852         * m4/getloadavg.m4: Revert the change below.
31853
31854         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
31855         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
31856         fail with a symlink, which is what coreutils' ./bootstrap now
31857         creates by default.
31858
31859 2006-10-12  Bruno Haible  <bruno@clisp.org>
31860
31861         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
31862         mingw.
31863         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
31864         MSVC and mingw explicitly.
31865
31866 2006-10-11  Simon Josefsson  <jas@extundo.com>
31867             Bruno Haible  <bruno@clisp.org>
31868
31869         Add support for multiple gnulib-tool invocations in the scope of a
31870         single configure.ac file.
31871         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
31872         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
31873         with the same contents as the _LIBADD variable.
31874         (func_emit_initmacro_start, func_emit_initmacro_end,
31875         func_emit_initmacro_done): New functions.
31876         (func_import, func_create_testdir): Invoke them. Allow the identifiers
31877         gl_LIBOBJS and gl_LTLIBOBJS.
31878
31879 2006-10-11  Bruno Haible  <bruno@clisp.org>
31880
31881         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
31882         (func_create_testdir): Don't create po/Makefile.am, don't invoke
31883         autoreconf. Instead, invoke autopoint explicitly but move back the
31884         *.m4 files from gnulib.
31885
31886 2006-10-11  Bruno Haible  <bruno@clisp.org>
31887
31888         * gnulib-tool (func_usage): Make module names after --create-testdir
31889         optional.
31890         (func_create_testdir): If no module was specified, use nearly all
31891         modules.
31892
31893 2006-10-12  Jim Meyering  <jim@meyering.net>
31894
31895         Big performance improvement for fts-based tools that use FTS_NOSTAT.
31896         Avoid spurious inode-mismatch problems on non-POSIX file systems.
31897         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
31898         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
31899         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
31900         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
31901         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
31902         (fts_set_stat_required): New function.
31903         (fts_open): Defer the calls to fts_stat, if possible or requested.
31904         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
31905         into fts_stat itself.
31906         (fts_read): Perform any required (deferred) fts_stat call.
31907         (fts_build): Likewise, for the directory we're about to open and read.
31908         In the readdir loop, carefully decide whether each entry will require
31909         an eventual call to fts_stat, using dirent.d_type info if available.
31910         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
31911         a command line argument into this function.  Update all callers.
31912         Map a return value of FTS_DOT to FTS_D for a command line argument.
31913         * modules/fts (Depends-on): Add d-type.  Alphabetize.
31914         Thanks to Miklos Szeredi for his tenacity and for the initial
31915         bug report about "find" failing on a FUSE-based file system.
31916
31917         * lib/fts.c (fts_open): Use consistent indentation.
31918
31919 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
31920
31921         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
31922         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
31923         reported by Jim Meyering.  All uses of cache variables renamed
31924         to match Autoconf's.
31925         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
31926         the other one.
31927
31928         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
31929         Fix misspelling in diagnostic.
31930
31931 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
31932
31933         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
31934         defined.  Problem reported by Matthew Woehlke.
31935
31936         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
31937         Add support for Tandem NonStop R series.
31938         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
31939         Use new macro.
31940
31941         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
31942         (has_trailing_slash): Omit size arg; all callers changed.
31943         Omit 'inline', since it doesn't help performance and we'd
31944         need to configure it.
31945         Don't count //, ///, etc. as having a trailing slash.
31946         As a side effect, this removes a C99ism reported by Matthew Woehlke.
31947         (rpl_rename_dest_slash): On failure, use rename's errno rather
31948         than (in some cases) an incorrect or junk errno.
31949         Simplify code by removing need to compute length; this does
31950         cause it to make two passes instead of one over the file name,
31951         but it's worth it.
31952
31953         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
31954         change, since Autoconf's version may no longer be appropriate now
31955         that we are using CVS Autoconf's version.  Add support for Tandem.
31956
31957 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
31958             Bruno Haible  <bruno@clisp.org>
31959
31960         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
31961         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
31962         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
31963         gl_AC_TYPE_LONG_LONG.
31964
31965         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
31966         instead of HAVE_LONG_LONG.
31967         * lib/printf-args.c (printf_fetchargs): Likewise.
31968         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
31969         * lib/vasnprintf.c (VASNPRINTF): Likewise.
31970         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
31971         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
31972         gl_AC_TYPE_LONG_LONG.
31973
31974 2006-10-11  Bruno Haible  <bruno@clisp.org>
31975
31976         * m4/longlong.m4: Add comments.
31977         * m4/ulonglong.m4: Likewise.
31978
31979 2006-10-10  Bruno Haible  <bruno@clisp.org>
31980
31981         Make it possible to #define stpcpy, strdup to aliases.
31982         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
31983         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
31984
31985 2006-10-10  Bruno Haible  <bruno@clisp.org>
31986
31987         Make it possible to #define gcd to an alias.
31988         * lib/gcd.c: Include config.h.
31989
31990 2006-10-10  Bruno Haible  <bruno@clisp.org>
31991
31992         Make it possible to #define c_isascii to an alias.
31993         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
31994         defined. Undefine the macros before defining them, to avoid gcc
31995         warnings.
31996         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
31997         define NO_C_CTYPE_MACROS early.
31998
31999 2006-10-10  Bruno Haible  <bruno@clisp.org>
32000
32001         Make it possible to #define set_program_name to an alias.
32002         * lib/progname.c: Don't undefine set_program_name; instead, undefine
32003         ENABLE_RELOCATABLE early.
32004
32005 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
32006
32007         Port to Tandem NSK OSS, which has 64-bit signed int but at most
32008         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
32009         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
32010         More generally, don't assume that 64-bit signed int is available
32011         if unsigned int is, and vice versa.
32012         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
32013         unsigned symbols, not on their signed counterparts.
32014         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
32015         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
32016         (UINT64_C, UINTMAX_C):
32017         Likewise.
32018         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
32019         unsigned counterparts.
32020         (Have_long_long, Unsigned): New macros.
32021         (Int): Renamed from INT.
32022         (strtoimax): Use the new macros.
32023         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
32024         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
32025         * modules/inttypes (inttypes.h): Substitute
32026         HAVE_UNSIGNED_LONG_LONG_INT.
32027         * modules/stdint (stdint.h): Likewise.
32028         (Files): Add m4/ulonglong.m4.
32029
32030 2006-10-10  Bruno Haible  <bruno@clisp.org>
32031
32032         Fix a gcc -Wshadow warning.
32033         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
32034         to 'bucket'.
32035         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
32036         gl_linked_indexof_from_to): Likewise.
32037         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
32038         Likewise.
32039         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
32040         Likewise.
32041         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
32042         Reported by Eric Blake.
32043
32044 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
32045
32046         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
32047         for NetBSD.  Problem reported by Bruno Haible.
32048
32049 2006-10-09  Jim Meyering  <jim@meyering.net>
32050
32051         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
32052         Patch from Bruno Haible.
32053
32054 2006-10-09  Jim Meyering  <jim@meyering.net>
32055
32056         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
32057         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
32058         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
32059
32060 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
32061
32062         Don't include <config.h> twice; this doesn't work in some cases,
32063         e.g., when config.h has "#define intmax_t long long int" and
32064         we include <config.h>, <inttypes.h>, <config.h> in that order.
32065         Problem reported by Matthew Woehlke in:
32066         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
32067         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
32068         * lib/fts-cycle.c: Don't include config.h.
32069         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
32070         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
32071         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
32072         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
32073         inttypes.h.
32074         * lib/xstrtoumax.c: Likewise.
32075         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
32076         __strtol and the like, so that this module is more like its siblings.
32077         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
32078         Remove; no longer needed now that we assume gnulib inttypes.h.
32079
32080 2006-10-08  Bruno Haible  <bruno@clisp.org>
32081
32082         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
32083         option.
32084
32085 2006-10-07  Jim Meyering  <jim@meyering.net>
32086
32087         * modules/inttypes (inttypes.h): Revert what seems to have been
32088         an inadvertent part of today's change: use "|", not "/" in the
32089         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
32090
32091 2006-10-07  Bruno Haible  <bruno@clisp.org>
32092
32093         * modules/sublist: New file.
32094
32095 2006-10-07  Bruno Haible  <bruno@clisp.org>
32096
32097         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
32098         * modules/argz (argz.h): Likewise.
32099         * modules/arpa_inet (arpa/inet.h): Likewise.
32100         * modules/byteswap (byteswap.h): Likewise.
32101         * modules/configmake (configmake.h): Likewise.
32102         * modules/fcntl (fcntl.h): Likewise.
32103         * modules/fnmatch (fnmatch.h): Likewise.
32104         * modules/getopt (getopt.h): Likewise.
32105         * modules/glob (glob.h): Likewise.
32106         * modules/inttypes (inttypes.h): Likewise.
32107         * modules/netinet_in (netinet/in.h): Likewise.
32108         * modules/poll (poll.h): Likewise.
32109         * modules/stdbool (stdbool.h): Likewise.
32110         * modules/stdint (stdint.h): Likewise.
32111         * modules/sys_select (sys/select.h): Likewise.
32112         * modules/sys_socket (sys/socket.h): Likewise.
32113         * modules/sys_stat (sys/stat.h): Likewise.
32114         * modules/sysexits (sysexits.h): Likewise.
32115         * modules/unistd (unistd.h): Likewise.
32116         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32117         Add a "DO NOT EDIT" comment to the generated file.
32118         (func_import): Likewise for gnulib-comp.m4.
32119
32120 2006-10-07  Bruno Haible  <bruno@clisp.org>
32121
32122         * lib/gl_sublist.h: New file.
32123         * lib/gl_sublist.c: New file.
32124
32125 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
32126
32127         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
32128         name (relative to the original working directory) and the file
32129         name component (relative to the temporary working directory).  All
32130         callers changed.
32131         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
32132         * lib/mkdir-p.c (make_dir_parents): Likewise.
32133         * lib/mkdir-p.h (make_dir_parents): Likewise.
32134
32135 2006-10-06  Eric Blake  <ebb9@byu.net>
32136
32137         Define several macros for use by the clean-temp module.
32138         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
32139         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
32140         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
32141
32142         * lib/clean-temp.h (close_stream_temp): New declaration.
32143         * lib/clean-temp.c (includes): Pull in headers according to what
32144         other modules are in use.
32145         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
32146
32147 2006-10-06  Bruno Haible  <bruno@clisp.org>
32148
32149         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
32150         instead of fopen, fwriteerror.
32151
32152 2006-10-06  Bruno Haible  <bruno@clisp.org>
32153
32154         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
32155         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
32156         int.
32157         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
32158         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
32159         Return an error indicator.
32160         Suggested by Eric Blake.
32161
32162 2006-10-06  Bruno Haible  <bruno@clisp.org>
32163
32164         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
32165         Reported by Eric Blake.
32166
32167 2006-10-06  Bruno Haible  <bruno@clisp.org>
32168
32169         * modules/closeout (Description): Mention stderr too.
32170
32171 2006-10-06  Bruno Haible  <bruno@clisp.org>
32172         and Paul Eggert  <eggert@cs.ucla.edu>
32173
32174         * lib/closeout.c (close_stdout): Also close stderr.
32175         * lib/closeout.h: Update comment.
32176
32177 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
32178
32179         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
32180         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
32181         * lib/dirchownmod.c: Include lchown.h.
32182         * lib/lchown.c: Don't include files that lchown.h now includes.
32183         Don't declare chown, since lchown.h now does that.
32184         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
32185         (lchown): Define to rpl_chown if lchown is declared but
32186         does not exist.  Declare using a prototype if lchown is not
32187         declared.  Add a copyright notice.
32188         * lib/mkstemp.h: Include <unistd.h>.
32189         * lib/openat.c: Include lchown.h.
32190
32191         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
32192         we now test for that separately.
32193         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
32194         rather than O_NOFOLLOW, when testing whether it's possible to
32195         avoid a race condition reliably.
32196         * lib/savewd.c (savewd_chdir): Likewise.
32197
32198         Remove macros that are no longer needed now that stdint.h is
32199         reliable.
32200         * lib/fsusage.c (UINTMAX_MAX): Remove.
32201         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
32202         * lib/utimecmp.c (SIZE_MAX): Remove.
32203
32204         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
32205
32206         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
32207         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
32208         O_NOATIME works.
32209
32210 2006-10-05  Bruno Haible  <bruno@clisp.org>
32211
32212         * lib/gl_list.h (gl_sortedlist_search_from_to,
32213         gl_sortedlist_indexof_from_to): New declarations.
32214         (gl_list_implementation): New fields sortedlist_search_from_to,
32215         sortedlist_indexof_from_to.
32216         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
32217         inline functions.
32218         * lib/gl_list.c (gl_sortedlist_search_from_to,
32219         gl_sortedlist_indexof_from_to): New functions.
32220         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
32221         function.
32222         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
32223         (gl_array_sortedlist_search_from_to): New function.
32224         (gl_array_list_implementation): Update.
32225         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
32226         function.
32227         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
32228         (gl_carray_sortedlist_search_from_to): New function.
32229         (gl_carray_list_implementation): Update.
32230         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
32231         gl_linked_sortedlist_indexof_from_to): New functions.
32232         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
32233         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
32234         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
32235         gl_tree_sortedlist_indexof_from_to): New functions.
32236         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
32237         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
32238         Update.
32239         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
32240         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
32241         Update.
32242
32243 2006-10-05  Bruno Haible  <bruno@clisp.org>
32244
32245         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
32246         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
32247         (struct gl_list_implementation): Add fields search_from_to,
32248         indexof_from_to. Remove fields search, indexof.
32249         (gl_list_search): Use the search_from_to method.
32250         (gl_list_search_from, gl_list_search_from_to): New functions.
32251         (gl_list_indexof): Use the indexof_from_to method.
32252         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
32253         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
32254         (gl_list_search_from, gl_list_search_from_to): New functions.
32255         (gl_list_indexof): Use the indexof_from_to method.
32256         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
32257         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
32258         gl_array_indexof. Add start_index, end_index arguments.
32259         (gl_array_search_from_to): Renamed from gl_array_search. Add
32260         start_index, end_index arguments.
32261         (gl_array_remove, gl_array_list_implementation): Update.
32262         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
32263         gl_carray_indexof. Add start_index, end_index arguments.
32264         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
32265         start_index, end_index arguments.
32266         (gl_carray_remove, gl_carray_list_implementation): Update.
32267         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
32268         gl_linked_search. Add start_index, end_index arguments.
32269         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
32270         start_index, end_index arguments.
32271         (gl_linked_remove): Update.
32272         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
32273         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
32274         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
32275         field to 'size_t'.
32276         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
32277         gl_tree_search. Add start_index, end_index arguments.
32278         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
32279         start_index, end_index arguments.
32280         (gl_tree_remove): Update.
32281         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
32282         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
32283         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
32284         function.
32285         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
32286         gl_tree_search. Add start_index, end_index arguments.
32287         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
32288         start_index, end_index arguments.
32289         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
32290         Update.
32291         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
32292
32293 2006-10-05  Bruno Haible  <bruno@clisp.org>
32294
32295         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
32296
32297         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
32298         fwriteerror_temp): New declarations.
32299         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
32300         (descriptors): New variable.
32301         (cleanup): First, close the descriptors.
32302         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
32303         fclose_temp, fwriteerror_temp): New functions.
32304
32305 2006-10-04  Jim Meyering  <jim@meyering.net>
32306
32307         * lib/fts.c (fts_open): Tiny comment change.
32308
32309 2006-10-04  Bruno Haible  <bruno@clisp.org>
32310
32311         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
32312         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
32313         gl_LOCK_BODY.
32314         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
32315         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
32316         gl_LOCK_EARLY_BODY.
32317         (gl_LOCK): Require gl_LOCK_BODY.
32318
32319 2006-10-04  Bruno Haible  <bruno@clisp.org>
32320
32321         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
32322         (gl_oset_search_atleast): New declaration.
32323         (struct gl_oset_implementation): Add field 'search_atleast'.
32324         (gl_oset_search_atleast): New inline function.
32325         * lib/gl_oset.c (gl_oset_search_atleast): New function.
32326         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
32327         (gl_array_oset_implementation): Update.
32328         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
32329         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
32330         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
32331
32332 2006-10-04  Bruno Haible  <bruno@clisp.org>
32333
32334         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
32335
32336 2006-10-03  Bruno Haible  <bruno@clisp.org>
32337
32338         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
32339         from gl_avltreehash_list_implementation.
32340
32341 2006-10-03  Bruno Haible  <bruno@clisp.org>
32342
32343         * lib/gl_oset.c (gl_oset_add): Fix return type.
32344
32345 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
32346
32347         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
32348
32349 2006-10-02  Eric Blake  <ebb9@byu.net>
32350
32351         * modules/strnlen (Depends-on): Add extensions.
32352
32353 2006-10-02  Eric Blake  <ebb9@byu.net>
32354
32355         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
32356         definition in 2.60+.
32357
32358 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
32359
32360         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
32361         checks.
32362
32363 2006-10-02  Bruno Haible  <bruno@clisp.org>
32364
32365         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
32366         to the AUTOMAKE_OPTIONS.
32367         Reported by Jim Meyering.
32368
32369 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
32370
32371         Work around bug in Solaris 10 /proc file system:
32372         /proc/self/fd/NNN/.. isn't the parent directory of
32373         the directory whose file descriptor is NNN.  This needs to
32374         be worked around at run time, not compile time, since a
32375         program might be built on Solaris 8, where things work, and
32376         run on Solaris 10.
32377         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
32378         to use the following interface instead:
32379         (OPENAT_BUFFER_SIZE): New macro.
32380         (openat_proc_name): New function.
32381         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
32382         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
32383         Likewise.
32384         * lib/openat-proc.c: New file.
32385         * modules/openat (Files): Add lib/openat-proc.c.
32386         (Depends-on): Add same-inode, stdbool.
32387         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
32388
32389 2006-09-29  Bruno Haible  <bruno@clisp.org>
32390
32391         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
32392         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
32393         argument. Set stdout_closed before testing for ferror, not after.
32394         (fwriteerror, fwriteerror_no_ebadf): New functions.
32395
32396 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32397
32398         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
32399
32400 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
32401
32402         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
32403         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
32404
32405 2006-09-28  Jim Meyering  <jim@meyering.net>
32406
32407         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
32408         Include <unistd.h>.
32409
32410 2006-09-28  Bruno Haible  <bruno@clisp.org>
32411
32412         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
32413         * modules/linkedhash-list (Depends-on): Likewise.
32414         * modules/rbtreehash-list (Depends-on): Likewise.
32415
32416 2006-09-28  Bruno Haible  <bruno@clisp.org>
32417
32418         * lib/strndup.h: Simplify the redefinition of strndup.
32419         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
32420         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
32421
32422 2006-09-28  Bruno Haible  <bruno@clisp.org>
32423
32424         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
32425         * lib/gl_linkedhash_list.c: Likewise.
32426         * lib/gl_rbtreehash_list.c: Likewise.
32427
32428 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
32429
32430         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
32431         getaddrinfo.
32432
32433         * lib/__fpending.h: Don't include <stdio_ext.h> unless
32434         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
32435         it causes <stdio_ext.h> to cause a compile-time error.
32436         Problem reported by Nelson H. F. Beebe.
32437         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
32438         of HAVE_DECL___PENDING.
32439
32440         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
32441         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
32442         declaration.
32443
32444 2006-09-27  Jim Meyering  <jim@meyering.net>
32445
32446         This file could end up with a definition for a function
32447         named __strndup, rather than rpl_strndup on a system with
32448         incomplete weak_alias support.
32449         * lib/strndup.c (strndup): Rename from __strndup.
32450         Remove #defines that used to map __strndup to strndup.
32451         Don't use K&R prototypes.
32452         Remove LIBC-related code, since this file is not sync'd with glibc.
32453         * lib/strndup.h: Revamp, accordingly.
32454         * m4/strndup.m4: Modernize.
32455
32456 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
32457
32458         * modules/savewd (Depends-on): Add 'raise'.
32459         * lib/savewd.c: Include <signal.h>, for 'raise'.
32460
32461 2006-09-26  Jim Meyering  <jim@meyering.net>
32462
32463         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
32464         when we detect Darwin 8.7.0's acl_get_file bug.
32465         Rearrange to perform the new (below) run-test while $LIBS
32466         contains any acl-related library.  Set USE_ACL at the end.
32467         (gl_ACL_GET_FILE): New function.
32468
32469 2006-09-26  Eric Blake  <ebb9@byu.net>
32470
32471         * lib/verror.c: Include <config.h> unconditionally.
32472
32473 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
32474
32475         * modules/clock-time (Maintainer): Add self.
32476         * modules/getlogin_r (Depends-on): Add extensions.
32477
32478 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32479
32480         * modules/clock-time: New module.
32481         * modules/nanosleep (Depends-on): Add clock-time.
32482         * modules/gethrxtime (Depends-on): Likewise.
32483         * modules/gettime (Depends-on): Likewise.
32484         * modules/settime (Depends-on): Likewise.
32485
32486         * modules/fts-lgpl: Depend on openat.
32487         * modules/mkancesdirs: Depend on savewd.
32488         * modules/mkdir-p: Likewise.
32489
32490 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32491
32492         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
32493
32494         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
32495         `gl_have_arbitrary_file_name_length_limit' to
32496         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
32497         actually works between configure runs.
32498
32499 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32500             Bruno Haible  <bruno@clisp.org>
32501
32502         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
32503
32504 2006-09-25  Jim Meyering  <jim@meyering.net>
32505
32506         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
32507         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
32508
32509 2006-09-25  Eric Blake  <ebb9@byu.net>
32510
32511         * gnulib-tool (func_import, func_create_testdir): Fix typos in
32512         exec's in 2006-09-18 patch when shuffling fds.
32513
32514 2006-09-25  Bruno Haible  <bruno@clisp.org>
32515
32516         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
32517         Reported by Jim Meyering.
32518
32519 2006-09-24  Jim Meyering  <jim@meyering.net>
32520
32521         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
32522         compare a pointer against a literal "0".  That caused failures with
32523         at least HP-UX's hpcc.
32524
32525 2006-09-22  Simon Josefsson  <jas@extundo.com>
32526
32527         * modules/gc-sha1:
32528         * modules/gc-md4:
32529         * modules/gc-hmac-sha1:
32530         * modules/gc-hmac-md5:
32531         * modules/gc-des:
32532         * modules/gc-arcfour: Distribute more files.
32533
32534 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32535
32536         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
32537         (gl_linked_iterator_from_to): Initialize struct completely.
32538         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
32539         (gl_tree_iterator_from_to): Likewise
32540         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
32541         * lib/gl_array_list.c [lint] (gl_array_iterator)
32542         (gl_array_iterator_from_to): Likewise.
32543         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
32544         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
32545         (gl_carray_iterator_from_to): Likewise.
32546
32547         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
32548         * lib/md4.c (md4_process_block): Remove unused variable.
32549         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
32550         parentheses for clarity.
32551
32552 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32553
32554         * modules/bison-i18n (Depends-on): Add gettext.
32555
32556 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32557
32558         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
32559         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
32560         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
32561         also add missing comma that caused broken test.
32562         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
32563         stdlib.h, for `abort'.
32564         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
32565         variables.
32566         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
32567         include unistd.h if present, for `rmdir'.
32568         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
32569         variables.
32570         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
32571         in the process include standard headers for prototypes.
32572         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
32573         gets declared on GNU/Linux.
32574         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
32575         unistd.h, for `rmdir'.
32576         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
32577
32578         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
32579         always true.
32580         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
32581
32582         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
32583
32584 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32585
32586         * gnulib-tool (func_version): Create output all at once.  This
32587         may help avoid triggering unnecessary SIGPIPEs, and at any
32588         rate it doesn't hurt.
32589
32590 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32591             Bruno Haible  <bruno@clisp.org>
32592
32593         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
32594         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
32595         * m4/signed.m4 (bh_C_SIGNED): Likewise.
32596
32597         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
32598         (gl_FUNC_VASPRINTF): Invoke it.
32599
32600 2006-09-22  Bruno Haible  <bruno@clisp.org>
32601
32602         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
32603         getloadavg.c as first argument.
32604
32605 2006-09-22  Bruno Haible  <bruno@clisp.org>
32606
32607         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
32608         at the beginning of the gl_INIT macro.
32609         * modules/getloadavg (configure.ac): Pass $gl_source_base to
32610         gl_GETLOADAVG.
32611
32612 2006-09-22  Bruno Haible  <bruno@clisp.org>
32613
32614         * gnulib-tool (func_create_megatestdir): Don't include the config-h
32615         module.
32616         Suggested by Ralf Wildenhues.
32617
32618 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
32619
32620         Import this patch from libc:
32621
32622         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
32623
32624         * lib/regex_internal.c (re_string_reconstruct): Handle
32625         offset < pstr->valid_raw_len && pstr->offsets_needed case.
32626         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
32627         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
32628         re_string_context_at.
32629
32630         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
32631         now requires it.
32632         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
32633         gl_REGEX now does it for us.
32634         (gl_REGEX): Add test taken from
32635         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
32636
32637         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
32638         Check that large offsets work.  Modernize Autoconf usages.
32639         Prefer "yes" to mean a good thing rather than a bad.
32640         Don't put "#define mkstemp" in config.h, as this might interfere
32641         with standard system headers that "#define mkstemp mkstemp64".
32642
32643         * modules/mkstemp (Depends-on): Add extensions, so that
32644         mkstemp is visible on some platforms.
32645         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
32646         (Include): Change to "mkstemp.h" from <stdlib.h>.
32647         (Files): Add mkstemp.h.
32648
32649         * lib/mkstemp.h: New file, since some standard headers
32650         #define mkstemp.
32651         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
32652         Include "mkstemp.h".
32653         Make the _LIBC code resemble glibc original more,
32654         e.g., use K&R style.
32655         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
32656         (mkstemp): Remove, since mkstemp.h does this for us.
32657         * lib/stdlib--.h: Include mkstemp.h.
32658
32659         Import this patch from libc:
32660
32661         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
32662
32663         * lib/tempname.c (__gen_tempname): Change attempts_min
32664         into a macro.  Use preprocessor to decide how to initialize
32665         attempts [Coverity CID 67].
32666
32667 2006-09-20  Bruno Haible  <bruno@clisp.org>
32668
32669         * lib/mkdtemp.c: Import from libc.
32670         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
32671                 * sysdeps/posix/tempname.c (__gen_tempname): Change
32672                 attempts_min into a macro.  Use preprocessor to decide how to
32673                 initialize attempts [Coverity CID 67].
32674         2001-11-27  Paul Eggert  <eggert@twinsun.com>
32675                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
32676                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
32677
32678 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32679
32680         * gnulib-tool (func_exit): New function, to allow to pass the
32681         exit status portably through the trap.  Use everywhere.
32682         (--help, --version): Signal a write error.
32683         (trap): catch SIGPIPE, for write errors.
32684         Exit at the end of the trap, with the correct exit status.
32685
32686 2006-09-19  Karl Berry  <karl@gnu.org>
32687
32688         * doc/gnulib.texi: note about the license texinfo files.
32689
32690 2006-09-19  Eric Blake  <ebb9@byu.net>
32691
32692         * gnulib-tool: Avoid space-tab.
32693
32694 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
32695
32696         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
32697         that prevented coreutils 6.1 from building.  Problem reported
32698         by Petter Reinholdtsen.
32699
32700 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
32701
32702         * gnulib-tool (avoidlist): Fix typo that broke options like
32703         --avoid=lock that are used by coreutils bootstrap.
32704
32705 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
32706
32707         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
32708         more systematically.
32709
32710 2006-09-18  Jim Meyering  <jim@meyering.net>
32711
32712         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
32713
32714 2006-09-18  Bruno Haible  <bruno@clisp.org>
32715
32716         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
32717
32718 2006-09-18  Bruno Haible  <bruno@clisp.org>
32719
32720         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
32721         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
32722         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
32723         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
32724         * m4/gettext.m4: Require autoconf >= 2.52.
32725         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
32726         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
32727         of gl_cv_header_inttypes_h.
32728
32729 2006-09-18  Bruno Haible  <bruno@clisp.org>
32730
32731         * lib/javaversion.c: Include configmake.h.
32732
32733 2006-09-18  Bruno Haible  <bruno@clisp.org>
32734
32735         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
32736         avoid that the while loops be executed in a subshell.
32737
32738 2006-09-18  Bruno Haible  <bruno@clisp.org>
32739
32740         * MODULES.html.sh (func_module): Break long lines.
32741         Suggested by Bruce Korb <bkorb@gnu.org>.
32742
32743 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32744
32745         Speed up by a factor of 1.12.
32746         * gnulib-tool (nl): New variable.
32747         (func_import): Rewrite include directive extraction to only read each
32748         directive once.
32749
32750 2006-09-17  Bruno Haible  <bruno@clisp.org>
32751
32752         * modules/javaversion (Makefile.am): Remove DEFS setting.
32753         (Depends-on): Add configmake, for PKGDATADIR definition.
32754
32755 2006-09-17  Bruno Haible  <bruno@clisp.org>
32756
32757         * gnulib-tool (func_create_testdir): Rewrite all files at once.
32758
32759 2006-09-17  Bruno Haible  <bruno@clisp.org>
32760
32761         * gnulib-tool (func_append): New function, stolen from libtool.m4.
32762         (func_modules_transitive_closure, func_modules_add_dummy,
32763         func_modules_to_filelist, func_import, func_create_testdir,
32764         func_create_megatestdir, ...): Use it wherever possible.
32765         Suggested by Ralf Wildenhues.
32766
32767 2006-09-16  Karl Berry  <karl@gnu.org>
32768
32769         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
32770         to avoid sectioning errors.
32771         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
32772         [ifinfo]: blank line after @center-ed titles.
32773         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
32774         Spell FSF address consistently with others.
32775         (These changes approved by rms.)
32776
32777 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32778
32779         Speed up by a factor of 1.61.
32780         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
32781         already checked module names again.
32782
32783 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32784
32785         Speed up by a factor of 1.13.
32786         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
32787         for new_files, and the input to func_add_or_update.
32788
32789 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32790
32791         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
32792         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
32793
32794 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
32795
32796         * modules/mkancesdirs (Depends-on): Add fcntl.
32797         * modules/savewd: New file.
32798         * MODULES.html.sh (File system functions): Add savewd.
32799
32800         * modules/configmake (Makefile.am): Add support for the
32801         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
32802
32803 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
32804
32805         * m4/savewd.m4: New file.
32806
32807 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
32808
32809         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
32810         (dirchownmod): New arg FD.  All callers changed.
32811         Use FD rather than opening the directory ourself, as opening is
32812         now the caller's responsibility.
32813         * lib/dirchownmod.h: Likewise.
32814         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
32815         hosts that require <sys/types.h> before <sys/stat.h>.  Include
32816         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
32817         (test_dir): Remove.
32818         (mkancesdirs): Return length of prefix of FILE that has already
32819         been made, or -2 if there is a child doing the work.  Redo
32820         algorithm so that it is O(N) rather than O(N**2).  Optimize away
32821         ".", and treat ".." specially since it might stray back into
32822         already-created areas.  Use a subprocess if necessary.  New arg
32823         WD; all users changed.  MAKE_DIR function should now return 1
32824         if it creates a directory that is not readable.  Return -2 if
32825         a child process is spun off.
32826         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
32827         Adjust signature to match code.
32828         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
32829         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
32830         all users changed.
32831         * lib/savewd.c, lib/savewd.h: New files.
32832
32833 2006-09-15  Jim Meyering  <jim@meyering.net>
32834
32835         * modules/rename-dest-slash: New module.
32836         * MODULES.html.sh (posix_compat): Add it here.
32837
32838         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
32839
32840 2006-09-15  Jim Meyering  <jim@meyering.net>
32841
32842         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
32843         file.
32844
32845         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
32846
32847 2006-09-15  Jim Meyering  <jim@meyering.net>
32848
32849         * lib/rename-dest-slash.c (has_trailing_slash): Use
32850         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
32851         (rpl_rename_dest_slash): Perform the cheaper trailing slash
32852         test before testing whether SRC is a directory.
32853         Suggestions from Bruno Haible.
32854
32855         Avoid a warning about an unused variable.
32856         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
32857         into the #ifdef block where it's used.
32858
32859         * lib/rename-dest-slash.c: New file.
32860
32861 2006-09-14  Bruno Haible  <bruno@clisp.org>
32862
32863         * lib/allocsa.c: Include <config.h> unconditionally.
32864         * lib/asnprintf.c: Likewise.
32865         * lib/asprintf.c: Likewise.
32866         * lib/c-strcasecmp.c: Likewise.
32867         * lib/c-strcasestr.c: Likewise.
32868         * lib/c-strncasecmp.c: Likewise.
32869         * lib/c-strstr.c: Likewise.
32870         * lib/classpath.c: Likewise.
32871         * lib/clean-temp.c: Likewise.
32872         * lib/concatpath.c: Likewise.
32873         * lib/copy-file.c: Likewise.
32874         * lib/csharpcomp.c: Likewise.
32875         * lib/csharpexec.c: Likewise.
32876         * lib/execute.c: Likewise.
32877         * lib/fatal-signal.c: Likewise.
32878         * lib/findprog.c: Likewise.
32879         * lib/fwriteerror.c: Likewise.
32880         * lib/gl_array_list.c: Likewise.
32881         * lib/gl_array_oset.c: Likewise.
32882         * lib/gl_avltree_list.c: Likewise.
32883         * lib/gl_avltree_oset.c: Likewise.
32884         * lib/gl_avltreehash_list.c: Likewise.
32885         * lib/gl_carray_list.c: Likewise.
32886         * lib/gl_linked_list.c: Likewise.
32887         * lib/gl_linkedhash_list.c: Likewise.
32888         * lib/gl_list.c: Likewise.
32889         * lib/gl_oset.c: Likewise.
32890         * lib/gl_rbtree_list.c: Likewise.
32891         * lib/gl_rbtree_oset.c: Likewise.
32892         * lib/gl_rbtreehash_list.c: Likewise.
32893         * lib/imaxabs.c: Likewise.
32894         * lib/imaxdiv.c: Likewise.
32895         * lib/javacomp.c: Likewise.
32896         * lib/javaexec.c: Likewise.
32897         * lib/javaversion.c: Likewise.
32898         * lib/linebreak.c: Likewise.
32899         * lib/localcharset.c: Likewise.
32900         * lib/lock.c: Likewise.
32901         * lib/mbchar.c: Likewise.
32902         * lib/mbswidth.c: Likewise.
32903         * lib/mkdtemp.c: Likewise.
32904         * lib/pipe.c: Likewise.
32905         * lib/printf-args.c: Likewise.
32906         * lib/printf-parse.c: Likewise.
32907         * lib/progname.c: Likewise.
32908         * lib/progreloc.c: Likewise.
32909         * lib/readlink.c: Likewise.
32910         * lib/sh-quote.c: Likewise.
32911         * lib/stpcpy.c: Likewise.
32912         * lib/stpncpy.c: Likewise.
32913         * lib/strcasecmp.c: Likewise.
32914         * lib/strcasestr.c: Likewise.
32915         * lib/strcspn.c: Likewise.
32916         * lib/striconv.c: Likewise.
32917         * lib/strncasecmp.c: Likewise.
32918         * lib/strnlen1.c: Likewise.
32919         * lib/strstr.c: Likewise.
32920         * lib/strtok_r.c: Likewise.
32921         * lib/tls.c: Likewise.
32922         * lib/tmpdir.c: Likewise.
32923         * lib/unicodeio.c: Likewise.
32924         * lib/unsetenv.c: Likewise.
32925         * lib/vasnprintf.c: Likewise.
32926         * lib/vasprintf.c: Likewise.
32927         * lib/wait-process.c: Likewise.
32928         * lib/xallocsa.c: Likewise.
32929         * lib/xsetenv.c: Likewise.
32930         * lib/xstriconv.c: Likewise.
32931
32932 2006-09-13  Simon Josefsson  <jas@extundo.com>
32933
32934         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
32935         that internally, suggested by Ralf Wildenhues
32936         <Ralf.Wildenhues@gmx.de>.
32937
32938 2006-09-13  Simon Josefsson  <jas@extundo.com>
32939
32940         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
32941         @LIBOBJS@.
32942         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32943
32944 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
32945
32946         * lib/_fpending.c: Include <config.h> unconditionally, since we no
32947         longer worry about uses that don't define HAVE_CONFIG_H.
32948         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
32949         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
32950         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
32951         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
32952         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
32953         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
32954         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
32955         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
32956         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
32957         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
32958         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
32959         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
32960         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
32961         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
32962         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
32963         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
32964         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
32965         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
32966         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
32967         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
32968         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
32969         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
32970         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
32971         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
32972         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
32973         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
32974         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
32975         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
32976         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
32977         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
32978         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
32979         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
32980         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
32981         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
32982         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
32983         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
32984         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
32985         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
32986         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
32987         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
32988         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
32989         Likewise.
32990
32991 2006-09-13  Eric Blake  <ebb9@byu.net>
32992
32993         * lib/getopt.c: Fix typo in last commit.
32994
32995 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32996
32997         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
32998         dgettext.
32999
33000 2006-09-12  Jim Meyering  <jim@meyering.net>
33001
33002         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
33003         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
33004         Reported by Nelson H. F. Beebe.
33005
33006 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
33007
33008         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
33009         program_invocation_name and program_invocation_short_name are
33010         initialized.
33011         * lib/argp-namefrob.h: Move declarations of program_invocation_name
33012         and program_invocation_short_name to argp.h, so they are visible
33013         to user programs.
33014         * lib/argp.h: Likewise
33015
33016 2006-09-10  Bruno Haible  <bruno@clisp.org>
33017
33018         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
33019         m4/inttypes_h.m4, m4/uintmax_t.m4.
33020
33021 2006-09-10  Bruno Haible  <bruno@clisp.org>
33022
33023         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
33024         gl_AC_TYPE_UINTMAX_T.
33025
33026 2006-09-10  Bruno Haible  <bruno@clisp.org>
33027
33028         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
33029
33030 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
33031
33032         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
33033         convention.  Text proposed by Bruno Haible.
33034         (struct argp_option): Document the use of N_() wrappers.
33035
33036         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
33037         '\v', and translate the two parts separately, instead of feeding
33038         the whole string to gettext.  This allows to exclude
33039         '\v' from the strings visible to the translator by writing doc
33040         strings as N_("..") "\v" N_("..").
33041
33042 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
33043
33044         * config/srclist.txt: Undo latest change; the bug was fixed.
33045
33046 2006-09-09  Bruno Haible  <bruno@clisp.org>
33047
33048         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
33049         assignments if building a library without libtool.
33050         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
33051         in func_emit_lib_Makefile_am.
33052         (func_import): When building a static library libfoo.a, arrange to
33053         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
33054         (func_create_testdir): Likewise.
33055         * modules/gc (configure.ac, Makefile.am): If building statically,
33056         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
33057         * modules/iconvme (configure.ac, Makefile.am): Likewise.
33058         * modules/striconv (configure.ac, Makefile.am): Likewise.
33059         Based on a suggestion by Ralf Wildenhues.
33060
33061 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
33062
33063         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
33064         Check for unistd.h too, since Autoconf doesn't assume POSIX.
33065         Also:
33066
33067         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
33068         Add year_2050_test to catch glibc bug 2821
33069         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
33070
33071         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
33072         Prefer #ifdef to #if.
33073
33074         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
33075         Return from 'main' instead of calling 'exit'.
33076
33077 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
33078
33079         * lib/mktime.c (guess_time_tm): Fix bug where mktime
33080         returned the maximum time_t value rather than (time_t) -1.
33081         Problem originally reported by William Bardwell
33082         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
33083
33084         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
33085         Moved to here ...
33086         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
33087         ... from here.
33088
33089 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
33090
33091         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
33092         2821 is fixed.
33093
33094 2006-09-08  Jim Meyering  <jim@meyering.net>
33095
33096         Don't make generated files read-only.  That would bother too many
33097         people.  However, do retain the ability to work when targets are
33098         read-only: remove the destination and temporary files before writing
33099         them (when generated via sed or echo), or by using the -f option for
33100         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
33101         * modules/alloca-opt, modules/argz, modules/arpa_inet:
33102         * modules/byteswap, modules/configmake, modules/fcntl:
33103         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
33104         * modules/localcharset, modules/netinet_in, modules/poll:
33105         * modules/stdbool, modules/stdint, modules/sys_select:
33106         * modules/sys_socket, modules/sys_stat, modules/sysexits:
33107
33108 2006-09-08  Jim Meyering  <jim@meyering.net>
33109
33110         Avoid new build failure on FreeBSD 6.0.
33111         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
33112         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
33113         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
33114
33115 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33116
33117         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
33118
33119 2006-09-07  Jim Meyering  <jim@meyering.net>
33120
33121         Fix global typo in last change: use chmod u-w, not chmod u-x.
33122         Spotted by Paul Eggert and Bruce Korb.
33123         * modules/alloca-opt, modules/argz, modules/arpa_inet:
33124         * modules/byteswap, modules/configmake, modules/fcntl:
33125         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
33126         * modules/localcharset, modules/netinet_in, modules/poll:
33127         * modules/stdbool, modules/stdint, modules/sys_select:
33128         * modules/sys_socket, modules/sys_stat, modules/sysexits:
33129
33130 2006-09-06  Jim Meyering  <jim@meyering.net>
33131
33132         Make generated files be read-only.
33133         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
33134         Ensure that each generated file is now read-only.
33135         * modules/argz: Likewise.
33136         * modules/arpa_inet: Likewise.
33137         * modules/byteswap: Likewise.
33138         * modules/configmake: Likewise.
33139         * modules/fcntl: Likewise.
33140         * modules/fnmatch: Likewise.
33141         * modules/getopt: Likewise.
33142         * modules/glob: Likewise.
33143         * modules/inttypes: Likewise.
33144         * modules/netinet_in: Likewise.
33145         * modules/poll: Likewise.
33146         * modules/stdbool: Likewise.
33147         * modules/stdint: Likewise.
33148         * modules/sys_select: Likewise.
33149         * modules/sys_socket: Likewise.
33150         * modules/sys_stat: Likewise.
33151         * modules/sysexits: Likewise.
33152         * modules/localcharset: Same as above, but continue using temporary
33153         file named "t-$@" (why different?) rather than the "$@-t" used
33154         everywhere else.
33155
33156         * modules/sysexits (Makefile.am): Replace literal occurrences
33157         of "sysexit.h" more readable, and more consistent, "$@".
33158
33159 2006-09-06  Bruno Haible  <bruno@clisp.org>
33160
33161         * modules/striconv: New file.
33162         * modules/xstriconv: New file.
33163         * MODULES.html.sh (Internationalization functions): Add striconv,
33164         xstriconv.
33165
33166 2006-09-06  Bruno Haible  <bruno@clisp.org>
33167
33168         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
33169         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
33170         not using libtool correctly.
33171
33172 2006-09-06  Bruno Haible  <bruno@clisp.org>
33173
33174         * lib/striconv.h: New file.
33175         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
33176         iconvstring.c.
33177         * lib/xstriconv.h: New file.
33178         * lib/xstriconv.c: New file.
33179
33180 2006-09-06  Bruno Haible  <bruno@clisp.org>
33181
33182         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
33183         lib_..._LDFLAGS.
33184
33185 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33186
33187         * lib/argz_.h: Sync from Libtool.
33188
33189         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
33190                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33191
33192         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
33193
33194 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
33195
33196         * modules/trim: New file.
33197
33198 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
33199
33200         * lib/trim.h: New file.
33201         * lib/trim.c: New file.
33202
33203 2006-09-05  Bruno Haible  <bruno@clisp.org>
33204
33205         * MODULES.html.sh (String handling): Add trim.
33206
33207 2006-09-04  Karl Berry  <karl@gnu.org>
33208
33209         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
33210         until next release.
33211
33212 2006-09-03  Bruno Haible  <bruno@clisp.org>
33213
33214         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
33215         correctly.
33216
33217 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
33218
33219         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
33220         not gl_GETLOADAVG.  Omit unneeded semicolons.
33221         Problems reported by Ralf Wildenhues in
33222         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
33223         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
33224         at the end, which is the usual gnulib style.
33225
33226         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
33227         of doing all the work ourselves.
33228         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
33229         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
33230
33231 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
33232
33233         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
33234         Problem reported by Ralf Wildenhues in
33235         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
33236
33237         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
33238         HAVE_STRUCT_STATFS_F_FSTYPENAME.
33239
33240 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
33241
33242         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
33243         yesterday's patch by changing test -n to test -z.
33244
33245 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
33246
33247         * modules/getloadavg (Files): Add m4/getloadavg.m4.
33248         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
33249         the former is now obsolescent.
33250
33251         * modules/chdir-long (Depends-on): Add fcntl.
33252
33253 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
33254
33255         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
33256         obsolescent, and programs should use gnulib instead.
33257         * m4/getloadavg.m4: New file, with contents taken from Autoconf
33258         but with prefixes changed.
33259
33260 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
33261
33262         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
33263         or stdbool.h, because they might not exist while configuring.
33264
33265         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
33266         Don't include unistd.h or limits.h; not needed, since chdir-long.h
33267         does that for us.
33268         (O_DIRECTORY): Remove.
33269
33270 2006-08-31  Eric Blake  <ebb9@byu.net>
33271
33272         * gnulib-tool: Don't let emacs change spaces to TAB.
33273
33274 2006-08-31  Bruno Haible  <bruno@clisp.org>
33275
33276         * gnulib-tool: When calling func_import more than once, do it in a
33277         subshell.
33278         Reported by Eric Blake <ebb9@byu.net>.
33279
33280 2006-08-31  Bruno Haible  <bruno@clisp.org>
33281
33282         * gnulib-tool (nl): Remove variable.
33283         (sed_transform_lib_file): Use more robust test for config-h module.
33284         (func_import): Fix typo in 2006-08-25 patch.
33285
33286 2006-08-31  Bruno Haible  <bruno@clisp.org>
33287
33288         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
33289         specified, augment Makefile.am variables instead of assigning them.
33290
33291 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
33292
33293         Work around a bug in both the Linux and SunOS 64-bit kernels:
33294         nanosleep mishandles sleeps for longer than 2**31 seconds.
33295         Problem reported by Frank v Waveren in
33296         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
33297         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
33298         Check for nanosleep bug.
33299         (LIB_NANOSLEEP): Append clock_gettime library if needed.
33300
33301 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
33302
33303         Work around a bug in both the Linux and SunOS 64-bit kernels:
33304         nanosleep mishandles sleeps for longer than 2**31 seconds.
33305         Problem reported by Frank v Waveren in
33306         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
33307         * lib/nanosleep.c (BILLION): New constant.
33308         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
33309         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
33310         implementation.
33311
33312 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
33313
33314         * modules/nanosleep (Depends-on): Add gettime.
33315
33316 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
33317         and Simon Josefsson  <jas@extundo.com>
33318         and Oskar Liljeblad  <oskar@osk.mine.nu>
33319
33320         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
33321         * gnulib-tool (func_import): New license type 'unmodifiable license
33322         text'.
33323         * modules/fdl: Use it.  Longer description.
33324         * module/gpl, module/lgpl: New files.
33325
33326 2006-08-30  Jim Meyering  <jim@meyering.net>
33327
33328         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
33329         shadowing the parameter.
33330
33331 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33332
33333         Sync from Libtool:
33334
33335         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33336
33337         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
33338         sharing with gnulib.  Report by Eric Blake.
33339
33340 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
33341
33342         * modules/isapipe: New file.
33343         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
33344
33345 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
33346
33347         * modules/configmake (Makefile.am): Add a comment, and omit
33348         the CONFIGMAKE_ prefix from generated macro names.  Suggested
33349         by Bruno Haible.
33350
33351 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
33352
33353         * m4/isapipe.m4: New file.
33354
33355 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
33356
33357         * lib/isapipe.c, lib/isapipe.h: New files.
33358
33359 2006-08-29  Jim Meyering  <jim@meyering.net>
33360
33361         * modules/configmake (Makefile.am): Make configmake.h depend on
33362         Makefile.  Otherwise, a stale configmake.h could hang around.
33363
33364 2006-08-29  Eric Blake  <ebb9@byu.net>
33365
33366         * lib/error.c (error_at_line, print_errno_message): Match libc, after
33367         resolution of upstream bug 3044.
33368
33369 2006-08-29  Bruno Haible  <bruno@clisp.org>
33370
33371         * modules/localcharset (Depends-on): Add configmake.
33372         (Makefile.am): Remove setting of LIBDIR through DEFS.
33373
33374 2006-08-29  Bruno Haible  <bruno@clisp.org>
33375
33376         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
33377         defined.
33378
33379 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
33380
33381         * modules/fcntl: New file.
33382         * modules/chdir-safer (Depends-on): Add fcntl.
33383         * modules/fts: Likewise.
33384         * modules/mkdir-p: Likewise.
33385
33386         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
33387         This undoes the most recent change, since we're now addressing the
33388         problem in a different way.
33389
33390         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
33391         into output, since the output might be called Makefile.am even
33392         if $makefile_name is something different.
33393         (func_import): Use $makefile_am rather than
33394         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
33395         empty.
33396
33397         * modules/inttypes (Files): Add m4/inttypes-h.m4.
33398
33399 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
33400
33401         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
33402         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
33403         recent change to stdint.m4, since we're now addressing the problem in a
33404         different way.
33405
33406 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
33407
33408         * m4/fcntl_h.m4: New file.
33409
33410 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
33411
33412         * lib/fcntl_.h: New file.
33413         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
33414         the fcntl module.
33415         * lib/dirchownmod.c: Likewise.
33416         * lib/fts.c: Likewise.
33417
33418         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
33419         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
33420         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
33421         just before including <inttypes.h>, to avoid circular inclusion.
33422
33423 2006-08-28  Jim Meyering  <jim@meyering.net>
33424
33425         * doc/visibility.texi: Actually read and correct the grammar of the
33426         sentence affected by yesterday's change.
33427
33428 2006-08-28  Eric Blake  <ebb9@byu.net>
33429
33430         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
33431         needs wrapper.
33432
33433 2006-08-28  Eric Blake  <ebb9@byu.net>
33434
33435         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
33436
33437 2006-08-28  Eric Blake  <ebb9@byu.net>
33438
33439         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
33440
33441 2006-08-28  Bruno Haible  <bruno@clisp.org>
33442
33443         * modules/c-strstr: New file, from GNU gettext.
33444         * MODULES.html.sh (String handling): Add c-strstr.
33445
33446 2006-08-28  Bruno Haible  <bruno@clisp.org>
33447
33448         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
33449         macros.
33450         Reported by Eric Blake.
33451
33452 2006-08-28  Bruno Haible  <bruno@clisp.org>
33453
33454         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
33455         (VASNPRINTF): Return a string of length > INT_MAX without failing.
33456         * lib/vasprintf.c: Include errno.h, limits.h.
33457         (EOVERFLOW): New fallback definition.
33458         (vasprintf): Test here whether the string length is > INT_MAX.
33459         * lib/vsnprintf.c: Include errno.h, limits.h.
33460         (EOVERFLOW): New fallback definition.
33461         (vsnprintf): Fix bug when generated string was too long for the buffer.
33462         Test here whether the string length is > INT_MAX.
33463
33464 2006-08-28  Bruno Haible  <bruno@clisp.org>
33465
33466         * lib/inttypes_.h (SCNX*): Remove definitions.
33467         Reported by Eric Blake.
33468
33469 2006-08-28  Bruno Haible  <bruno@clisp.org>
33470
33471         * lib/c-strstr.h: New file, from GNU gettext.
33472         * lib/c-strstr.c: New file, from GNU gettext.
33473
33474 2006-08-28  Bruno Haible  <bruno@clisp.org>
33475
33476         * gnulib-tool: Reorder some statements.
33477
33478 2006-08-28  Bruno Haible  <bruno@clisp.org>
33479
33480         * gnulib-tool: New option --makefile-name.
33481         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
33482         $makefile_name.
33483         (func_import): Write $makefile_name to the cache file, and read it from
33484         there unless explicitly specified. Use $makefile_name as file name
33485         instead of Makefile.am. Adjust the recommendations accordingly.
33486
33487 2006-08-28  Bruno Haible  <bruno@clisp.org>
33488
33489         * gnulib-tool (func_verify_module): Check against misapplying patch.
33490
33491 2006-08-28  Bruno Haible  <bruno@clisp.org>
33492
33493         * gnulib-tool (func_relativize, func_relconcat): New functions.
33494         Give an error if --local-dir is given with --update.
33495         Remove trailing slashes from $local_gnulib_dir.
33496         (func_import): Store the relativized $local_gnulib_dir in
33497         gnulib-cache.m4, and read it from there if not specified explicitly.
33498
33499 2006-08-28  Bruno Haible  <bruno@clisp.org>
33500
33501         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
33502         is the current directory. Respect also $local_gnulib_dir.
33503
33504 2006-08-28  Bruno Haible  <bruno@clisp.org>
33505             Simon Josefsson  <jas@extundo.com>
33506
33507         BeOS portability.
33508         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
33509
33510 2006-08-27  Jim Meyering  <jim@meyering.net>
33511
33512         * doc/visibility.texi: Remove duplicate word: "pointer".
33513
33514 2006-08-26  Bruno Haible  <bruno@clisp.org>
33515
33516         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
33517         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
33518         (Makefile.am): Create inttypes.h from inttypes_.h.
33519         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
33520
33521         * modules/imaxabs: New file.
33522
33523         * modules/imaxdiv: New file.
33524
33525 2006-08-26  Bruno Haible  <bruno@clisp.org>
33526
33527         * m4/inttypes.m4: New file.
33528         * m4/_inttypes_h.m4: Remove file.
33529         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
33530         PRI_MACROS_BROKEN.
33531         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
33532
33533         * m4/imaxabs.m4: New file.
33534
33535         * m4/imaxdiv.m4: New file.
33536
33537 2006-08-26  Bruno Haible  <bruno@clisp.org>
33538
33539         * lib/inttypes_.h: New file.
33540         * lib/inttypes.h: Remove file.
33541         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
33542
33543         * lib/imaxabs.c: New file.
33544
33545         * lib/imaxdiv.c: New file.
33546
33547 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
33548
33549         New config-h module, so that "make" output needn't be cluttered
33550         by -DHAVE_CONFIG_H.
33551         * MODULES.html.sh (Support for building libraries and executables):
33552         Add config-h.
33553         * modules/config-h: New file.
33554         * gnulib-tool (nl, sed_transform_lib_file): New vars.
33555         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
33556         the config-h module is used.
33557
33558         New configmake module, so that "make" output needn't be cluttered
33559         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
33560         * MODULES.html.sh (Support for building libraries and executables):
33561         Add configmake.
33562         * modules/configmake: New file.
33563
33564 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
33565
33566         * m4/config-h.m4: New file.
33567
33568 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
33569
33570         * config/srclist.txt: Add elisp-comp.
33571
33572 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
33573
33574         * MODULES.html.sh (Support for building libraries and executables):
33575         Add elisp-comp.
33576         * build-aux/elisp-comp: New file.
33577         * modules/elisp-comp: New file.
33578
33579 2006-08-24  Bruno Haible  <bruno@clisp.org>
33580
33581         * gnulib-tool (func_create_testdir): Use non-default values of
33582         sourcebase and m4base.
33583
33584 2006-08-24  Bruno Haible  <bruno@clisp.org>
33585
33586         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
33587         HTML structure.
33588
33589 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
33590
33591         * modules/openat (Depends-on): Add lchown.
33592
33593 2006-08-23  Bruno Haible  <bruno@clisp.org>
33594
33595         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
33596         of gl_LOCK_EARLY instead of gl_LOCK.
33597
33598 2006-08-23  Bruno Haible  <bruno@clisp.org>
33599
33600         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
33601         on OSF/1 to no.
33602         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
33603
33604 2006-08-23  Bruno Haible  <bruno@clisp.org>
33605
33606         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
33607         as unusable.
33608
33609         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
33610         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
33611         (gl_LOCK): New macro.
33612
33613 2006-08-22  Simon Josefsson  <jas@extundo.com>
33614
33615         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
33616         to md5 module.
33617
33618 2006-08-22  Simon Josefsson  <jas@extundo.com>
33619
33620         * MODULES.html.sh: Add "Support for maintaining and release
33621         projects".
33622
33623         * build-aux/gnupload: New file, from coreutils.
33624
33625 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
33626
33627         Avoid the need for AC_LIBSOURCES in m4 macros.
33628         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
33629         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
33630         * modules/check-version (EXTRA_DIST): Add check-version.h.
33631         * modules/crc (EXTRA_DIST): Add crc.h.
33632         * modules/des (EXTRA_DIST): Add des.h.
33633         * modules/gc (EXTRA_DIST): Add gc.h.
33634         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
33635         * modules/getline (EXTRA_DIST): Add getline.h.
33636         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
33637         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
33638         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
33639         * modules/md2 (EXTRA_DIST): Add md2.h.
33640         * modules/md4 (EXTRA_DIST): Add md4.h.
33641         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
33642         * modules/read-file (EXTRA_DIST): Add read-file.h.
33643         * modules/readline (EXTRA_DIST): Add readline.h.
33644         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
33645         rijndael-api-fst.h.
33646
33647 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
33648
33649         * m4/rijndael.m4 (gl_ARCFOUR):
33650         * m4/arctwo.m4 (gl_ARCTWO):
33651         * m4/check-version.m4 (gl_CHECK_VERSION):
33652         * m4/crc.m4 (gl_CRC):
33653         * m4/des.m4 (gl_DES):
33654         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
33655         * m4/gc.m4 (gl_GC):
33656         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
33657         * m4/getline.m4 (gl_FUNC_GETLINE):
33658         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
33659         * m4/hmac-md5.m4 (gl_HMAC_MD5):
33660         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
33661         * m4/md2.m4 (gl_MD2):
33662         * m4/md4.m4 (gl_MD4):
33663         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
33664         * m4/read-file.m4 (gl_FUNC_READ_FILE):
33665         * m4/readline.m4 (gl_FUNC_READLINE):
33666         * m4/rijndael.m4 (gl_RIJNDAEL):
33667         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
33668         to get the necessary .h files and whatnot.
33669
33670 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
33671
33672         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
33673         gnulib rather than the other way around.
33674         * config/srclistvars.sh (COREUTILS): Remove.
33675
33676 2006-08-22  Jim Meyering  <jim@meyering.net>
33677
33678         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
33679
33680         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
33681
33682 2006-08-22  Eric Blake  <ebb9@byu.net>
33683
33684         * modules/regexprops-generic: New file.
33685         * MODULES.html.sh (Support for building documentation): List it.
33686
33687 2006-08-22  Eric Blake  <ebb9@byu.net>
33688
33689         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
33690         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
33691         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
33692         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
33693
33694 2006-08-22  Bruno Haible  <bruno@clisp.org>
33695
33696         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
33697         and lib_LTLIBRARIES like the other lib_* variables.
33698
33699 2006-08-22  Bruno Haible  <bruno@clisp.org>
33700
33701         * build-aux/x-to-1.in: New file, from GNU gettext.
33702
33703 2006-08-22  Bruno Haible  <bruno@clisp.org>
33704
33705         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
33706         <utmpx.h> exists.
33707
33708 2006-08-22  Bruno Haible  <bruno@clisp.org>
33709
33710         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
33711         <utmpx.h> exists.
33712
33713 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
33714
33715         BeOS portability.
33716         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
33717         exist.
33718         Problem reported by Bruno Haible.
33719
33720 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
33721
33722         Avoid the need for AC_LIBSOURCES in m4 macros.
33723         * modules/acl (EXTRA_DIST): Add acl.h.
33724         * modules/argmatch (Files): Add m4/argmatch.m4.
33725         (configure.ac): Add gl_ARGMATCH.
33726         (EXTRA_DIST): Renamed from lib_SOURCES, for
33727         consistency with the other modules.  Remove argmatch.c.
33728         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
33729         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
33730         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
33731         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
33732         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
33733         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
33734         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
33735         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
33736         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
33737         * modules/closeout (EXTRA_DIST): Add closeout.h.
33738         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
33739         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
33740         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
33741         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
33742         dirname.h; remove basename.c and stripslash.c.
33743         * modules/exclude (EXTRA_DIST): Add exclude.h.
33744         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
33745         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
33746         * modules/file-type (EXTRA_DIST): Add file-type.h.
33747         * modules/filemode (EXTRA_DIST): Add filemode.h.
33748         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
33749         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
33750         * modules/fpending (EXTRA_DIST): Add __fpending.h.
33751         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
33752         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
33753         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
33754         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
33755         * modules/getdate (EXTRA_DIST): Add getdate.c.
33756         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
33757         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
33758         * modules/getpass (EXTRA_DIST): Add getpass.h.
33759         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
33760         * modules/group-member (EXTRA_DIST): Add group-member.h.
33761         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
33762         * modules/hash (EXTRA_DIST): Add hash.h.
33763         * modules/human (EXTRA_DIST): Add human.h.
33764         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
33765         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
33766         * modules/lchown (EXTRA_DIST): Add lchown.h.
33767         * modules/long-options (EXTRA_DIST): Add long-options.h.
33768         * modules/lstat (EXTRA_DIST): Add lstat.h.
33769         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
33770         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
33771         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
33772         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
33773         * modules/memxor (EXTRA_DIST): Add memxor.h.
33774         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
33775         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
33776         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
33777         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
33778         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
33779         * modules/physmem (EXTRA_DIST): Add physmem.h.
33780         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
33781         * modules/posixver (EXTRA_DIST): Add posixver.h.
33782         * modules/quote (EXTRA_DIST): Add quote.h.
33783         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
33784         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
33785         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
33786         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
33787         regex_internal.h regexec.c.
33788         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
33789         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
33790         * modules/same (EXTRA_DIST): Add same.h.
33791         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
33792         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
33793         * modules/savedir (EXTRA_DIST): Add savedir.h.
33794         * modules/sha1 (EXTRA_DIST): Add sha1.h.
33795         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
33796         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
33797         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
33798         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
33799         * modules/strdup (EXTRA_DIST): Add strdup.h.
33800         * modules/strftime (EXTRA_DIST): Add strftime.h.
33801         * modules/strndup (EXTRA_DIST): Add strndup.h.
33802         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
33803         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
33804         * modules/time_r (EXTRA_DIST): Add time_r.h.
33805         * modules/timespec (EXTRA_DIST): Add timespec.h.
33806         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
33807         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
33808         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
33809         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
33810         * modules/userspec (EXTRA_DIST): Add userspec.h.
33811         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
33812         * modules/utimens (EXTRA_DIST): Add utimens.h.
33813         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
33814         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
33815         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
33816         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
33817         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
33818         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
33819         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
33820         * modules/yesno (EXTRA_DIST): Add yesno.h.
33821
33822 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
33823
33824         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
33825
33826         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
33827         * m4/dev-ino.m4, same-inode.m4: Remove.
33828
33829         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
33830         * m4/acl.m4 (AC_FUNC_ACL):
33831         * m4/backupfile.m4 (gl_BACKUPFILE):
33832         * m4/c-strtod.m4 (gl_C99_STRTOLD):
33833         * m4/canon-host.m4 (gl_CANON_HOST):
33834         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
33835         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
33836         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
33837         * m4/cloexec.m4 (gl_CLOEXEC):
33838         * m4/close-stream.m4 (gl_CLOSE_STREAM):
33839         * m4/closeout.m4 (gl_CLOSEOUT):
33840         * m4/dirfd.m4 (gl_FUNC_DIRFD):
33841         * m4/dirname.m4 (gl_DIRNAME):
33842         * m4/exclude.m4 (gl_EXCLUDE):
33843         * m4/exitfail.m4 (gl_EXITFAIL):
33844         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
33845         * m4/file-type.m4 (gl_FILE_TYPE):
33846         * m4/filemode.m4 (gl_FILEMODE):
33847         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
33848         * m4/fpending.m4 (gl_FUNC_FPENDING):
33849         * m4/fprintftime.m4 (gl_FPRINTFTIME):
33850         * m4/fts.m4 (gl_FUNC_FTS):
33851         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
33852         * m4/getdate.m4 (gl_GETDATE):
33853         * m4/gethrxtime.m4 (gl_GETHRXTIME):
33854         * m4/getpagesize.m4 (gl_GETPAGESIZE):
33855         * m4/getpass.m4 (gl_FUNC_GETPASS):
33856         * m4/gettime.m4 (gl_GETTIME):
33857         * m4/getugroups.m4 (gl_GETUGROUPS):
33858         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
33859         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
33860         * m4/hard-locale.m4 (gl_HARD_LOCALE):
33861         * m4/hash.m4 (gl_HASH):
33862         * m4/idcache.m4 (gl_IDCACHE):
33863         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
33864         * m4/lchown.m4 (gl_FUNC_LCHOWN):
33865         * m4/long-options.m4 (gl_LONG_OPTIONS):
33866         * m4/lstat.m4 (gl_FUNC_LSTAT):
33867         * m4/md5.m4 (gl_MD5):
33868         * m4/memcasecmp.m4 (gl_MEMCASECMP):
33869         * m4/memcoll.m4 (gl_MEMCOLL):
33870         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
33871         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
33872         * m4/memxor.m4 (gl_MEMXOR):
33873         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
33874         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
33875         * m4/modechange.m4 (gl_MODECHANGE):
33876         * m4/mountlist.m4 (gl_MOUNTLIST):
33877         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
33878         * m4/openat.m4 (gl_FUNC_OPENAT):
33879         * m4/pathmax.m4 (gl_PATHMAX):
33880         * m4/physmem.m4 (gl_PHYSMEM):
33881         * m4/posixtm.m4 (gl_POSIXTM):
33882         * m4/posixver.m4 (gl_POSIXVER):
33883         * m4/quote.m4 (gl_QUOTE):
33884         * m4/quotearg.m4 (gl_QUOTEARG):
33885         * m4/readtokens.m4 (gl_READTOKENS):
33886         * m4/readutmp.m4 (gl_READUTMP):
33887         * m4/regex.m4 (gl_REGEX):
33888         * m4/safe-read.m4 (gl_SAFE_READ):
33889         * m4/safe-write.m4 (gl_SAFE_WRITE):
33890         * m4/same.m4 (gl_SAME):
33891         * m4/save-cwd.m4 (gl_SAVE_CWD):
33892         * m4/savedir.m4 (gl_SAVEDIR):
33893         * m4/settime.m4 (gl_SETTIME):
33894         * m4/sha1.m4 (gl_SHA1):
33895         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
33896         * m4/stat-macros.m4 (gl_STAT_MACROS):
33897         * m4/stat-time.m4 (gl_STAT_TIME):
33898         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
33899         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
33900         * m4/strdup.m4 (gl_FUNC_STRDUP):
33901         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
33902         * m4/strndup.m4 (gl_FUNC_STRNDUP):
33903         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
33904         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
33905         * m4/time_r.m4 (gl_TIME_R):
33906         * m4/timespec.m4 (gl_TIMESPEC):
33907         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
33908         * m4/unlinkdir.m4 (gl_UNLINKDIR):
33909         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
33910         * m4/userspec.m4 (gl_USERSPEC):
33911         * m4/utimecmp.m4 (gl_UTIMECMP):
33912         * m4/utimens.m4 (gl_UTIMENS):
33913         * m4/xalloc.m4 (gl_XALLOC):
33914         * m4/xgetcwd.m4 (gl_XGETCWD):
33915         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
33916         * m4/xreadlink.m4 (gl_XREADLINK):
33917         * m4/xstrtod.m4 (gl_XSTRTOD):
33918         * m4/yesno.m4 (gl_YESNO):
33919         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
33920         to get the necessary .h files and whatnot.
33921
33922 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
33923             Bruno Haible  <bruno@clisp.org>
33924
33925         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
33926         /bin/sh understanding of '!' conditional negation.
33927
33928 2006-08-21  Jim Meyering  <jim@meyering.net>
33929
33930         * modules/openat (Depends-on): Really alphabetize.
33931
33932         * modules/acl (Depends-on): Add error and quote.
33933
33934         * check-module (find_included_lib_files): Add at-func.c to the
33935         ok-to-include-more-than-once white list.
33936
33937         * modules/openat (Depends-on): Add lstat.  Alphabetize.
33938
33939 2006-08-21  Bruno Haible  <bruno@clisp.org>
33940
33941         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33942         Emit a pkgdata_DATA variable only if some snippets add contents to it.
33943         Reported by Martin Lambers <marlam@marlam.de>.
33944
33945 2006-08-21  Bruno Haible  <bruno@clisp.org>
33946
33947         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
33948         specify an installation location, don't emit a noinst_LIBRARIES or
33949         noinst_LTLIBRARIES assignment.
33950
33951 2006-08-21  Bruno Haible  <bruno@clisp.org>
33952
33953         BeOS portability.
33954         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
33955         BeOS has mbrtowc() but no <wctype.h>.
33956
33957 2006-08-21  Bruno Haible  <bruno@clisp.org>
33958
33959         BeOS portability.
33960         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
33961         exist.
33962
33963 2006-08-21  Bruno Haible  <bruno@clisp.org>
33964
33965         BeOS portability.
33966         * lib/mbchar.h: Include <wctype.h> only if it exists.
33967
33968 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
33969
33970         Remove files that are no longer needed by their respective modules.
33971         * m4/obstack.m4: Remove.
33972         * m4/strerror_r.m4: Remove.
33973         * m4/uint32_t.m4: Remove.
33974         * m4/uintptr_t.m4: Remove.
33975         * m4/ullong_max.m4: Remove.
33976         * m4/xstrtoimax.m4: Remove.
33977         * m4/xstrtoumax.m4: Remove.
33978
33979         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
33980         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
33981         dependencies now capture this.
33982
33983         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
33984         Do not use AC_LIBSOURCES, since gnulib modules now do this.
33985         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
33986         * m4/human.m4 (gl_HUMAN): Likewise.
33987         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
33988         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
33989
33990         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
33991
33992         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
33993         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
33994         stdint.
33995         * m4/human.m4 (gl_HUMAN): Likewise.
33996         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
33997         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
33998         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
33999         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
34000         * m4/xstrtol (gl_XSTRTOL): Likewise.
34001
34002         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
34003         AC_TYPE_LONG_LONG_INT.
34004         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
34005         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
34006         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
34007         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
34008
34009         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
34010         on stdbool.
34011
34012         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
34013         (gl_PREREQ_XSTRTOUL): Remove.
34014
34015         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
34016
34017         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
34018         mode.
34019
34020 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
34021
34022         Add and change modules to make it easier for coreutils to use
34023         gnulib-tool.
34024         * modules/backupfile (Files): Remove m4/d-ino.m4.
34025         (Depends-on): Add d-ino.
34026         * modules/cycle-check (Depends-on): Add stdint.
34027         (lib_SOURCES): Add cycle-check.h.
34028         * modules/d-ino: New module.
34029         * modules/d-type: New module.
34030         * modules/error (Files): Remove m4/strerror_r.m4.
34031         * modules/filemode (Files): Add m4/st_dm_mode.m4.
34032         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
34033         m4/inttypes_h.m4, m4/uintmax_t.m4.
34034         (Depends-on): Add stdint.
34035         (lib_SOURCES): Add fsusage.h.
34036         * modules/getcwd (Files): Remove d-ino.m4.
34037         (Depends-on): Add d-ino.
34038         * modules/getndelim2 (Depends-on): Add stdint.
34039         * modules/glob (Files): Remove m4/d-type.m4.
34040         (Depends-on): Add d-type.
34041         * modules/host-os: New module.
34042         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
34043         m4/inttypes_h.m4, m4/uintmax_t.m4.
34044         * Depends-on: Add stdint.
34045         (lib_SOURCES): Add human.h.
34046         * modules/inttostr (Files): Remove m4/intmax_t.m4,
34047         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
34048         m4/uintmax_t.m4, m4/ulonglong.m4.
34049         (Depends-on): Add stdint.
34050         (EXTRA_DIST): Add inttostr.h.
34051         * modules/lchmod: New module.
34052         * modules/link-follow: New module.
34053         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
34054         (Depends-on): Add lchmod.
34055         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
34056         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
34057         (Depends-on): Add stdint.
34058         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
34059         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
34060         (Depends-on): Add stdint.
34061         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
34062         * modules/perl: New module.
34063         * modules/regex (Depends-on): Add stdint.
34064         * modules/rmdir-errno: New module.
34065         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
34066         m4/intmax_t.m4.
34067         (Depends-on): Add stdint.
34068         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
34069         m4/uintmax_t.m4.
34070         (Depends-on): Add stdint.
34071         * modules/unlink-busy: New module.
34072         * modules/utimecmp (Depends-on): Add stdint.
34073         * modules/uptime: New module.
34074         * modules/winsz-ioctl: New module.
34075         * modules/winsz-termios: New module.
34076         * modules/xnanosleep (Depends-on): Add nanosleep.
34077         * modules/ullong_max: Remove.
34078         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
34079         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
34080         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
34081         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
34082         (Depends-on): Add inttypes.
34083         (lib_SOURCES): Add xstrtol.h.
34084         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
34085         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
34086         * MODULES.html.sh: Move 'assert' into the assert section.
34087         Move 'dummy' into the linking section.
34088         Remove ullong_max.
34089         Add section for compatibility checks for POSIX:2001 functions,
34090         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
34091         winsz-ioctl, and winsz-termios into it.
34092         Add lchmod.
34093         Add top-level Misc section and put host-os, perl, and uptime
34094         into it.
34095
34096 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
34097
34098         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
34099         now assume the stdint module.  Do not include inttypes.h.
34100         * lib/fsusage.h: Likewise.
34101         * lib/getndelim2.c: Likewise.
34102         * lib/human.h: Likewise.
34103         * lib/inttostr.h: Likewise.
34104         * lib/obstack.c: Likewise.
34105         * lib/regex_internal.h: Likewise.
34106         * lib/tempname.c: Likewise.
34107         * lib/utimecmp.c: Likewise.
34108         * lib/xstrtol.h: Likewise.
34109
34110         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
34111
34112         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
34113         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
34114         * lib/xtime.h: Likewise.
34115
34116 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
34117
34118         * modules/openat (Files): Add lib/fchmodat.c.
34119         Fixes problem reported by Jay Youngman.
34120
34121 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
34122
34123         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
34124         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
34125
34126 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
34127             Bruno Haible  <bruno@clisp.org>
34128
34129         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
34130         and is a script that invokes bison. Tighten the code. Add comments.
34131
34132 2006-08-18  Jim Meyering  <jim@meyering.net>
34133
34134         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
34135         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
34136         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
34137         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
34138
34139 2006-08-18  Bruno Haible  <bruno@clisp.org>
34140
34141         * modules/bison-i18n: New file.
34142         * MODULES.html.sh (Internationalization functions): Add it.
34143
34144 2006-08-18  Bruno Haible  <bruno@clisp.org>
34145
34146         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
34147         sys/statvfs.h. When getmntinfo was found, check its declaration and
34148         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
34149
34150 2006-08-18  Bruno Haible  <bruno@clisp.org>
34151
34152         * m4/bison-i18n.m4: New file, from bison.
34153
34154 2006-08-18  Bruno Haible  <bruno@clisp.org>
34155
34156         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
34157         (ME_DUMMY): Treat "kernfs" as a dummy.
34158         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
34159
34160 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
34161
34162         Update from coreutils.
34163
34164         2006-08-15  Jim Meyering  <jim@meyering.net>
34165
34166         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
34167
34168         2006-01-17  Jim Meyering  <jim@meyering.net>
34169
34170         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
34171
34172         2006-01-11  Jim Meyering  <jim@meyering.net>
34173
34174         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
34175         Check for the lchmod function.
34176
34177 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
34178
34179         Update from coreutils.
34180
34181         * lib/__fpending.h: Add copyright notice.
34182         * lib/fprintftime.h: Likewise.
34183         * lib/savedir.c: Use (C) in copyright notice.
34184         * lib/savedir.h: Likewise.
34185
34186         2006-08-15  Jim Meyering  <jim@meyering.net>
34187
34188         * lib/at-func.c: New file, with the logic of all emulated at-functions.
34189         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
34190         in support of the EXPECTED_ERRNO macro.
34191         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
34192         definitions.  Instead, define the appropriate symbols and include
34193         "at-func.c".
34194         * lib/mkdirat.c (mkdirat): Likewise.
34195         * lib/fchmodat.c (fchmodat): Likewise.
34196         (ENOSYS): Remove definition.
34197         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
34198         it.  Don't include "unistd--.h" -- it wasn't ever used.
34199
34200         2006-01-17  Jim Meyering  <jim@meyering.net>
34201
34202         Rewrite fts.c not to change the current working directory,
34203         by using openat, fstatat, fdopendir, etc..
34204
34205         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
34206         (HAVE_OPENAT_SUPPORT): Define.
34207         [_LIBC] (fchdir): Don't undef or define; no longer used.
34208         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
34209         Now, this `function' always succeeds, and consumes its file descriptor
34210         parameter -- so callers must not close such FDs.  Update callers.
34211         (diropen_fd, opendirat, cwd_advance_fd): New functions.
34212         (diropen): Add parameter, SP.  Adjust all callers.
34213         Implement using diropen_fd, rather than open.
34214         (fts_open): Initialize new member, fts_cwd_fd.
34215         Remove fts_rft-setting code.
34216         (fts_close): Close fts_cwd_fd, if necessary.
34217         (__opendir2): Define in terms of opendir or opendirat,
34218         depending on whether the FST_NOCHDIR flag is set.
34219         (fts_build): Since fts_safe_changedir consumes its FD, and since
34220         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
34221         and close the dup'd file descriptor upon failure.
34222         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
34223         (fts_safe_changedir): Tweak semantics to reflect that this function
34224         now calls cwd_advance_fd and hence consumes its FD argument.
34225         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
34226         [struct FTS] (fts_rft): Remove now-unused member.
34227         [struct FTS] (fts_cycle.state): Improve comment.
34228
34229         * lib/openat.c (openat_needs_fchdir): New function.
34230         * lib/openat.h (openat_needs_fchdir): Declare it.
34231
34232 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
34233
34234         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
34235         Problem and fix reported by Pádraig Brady in
34236         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
34237
34238 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
34239
34240         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
34241
34242 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
34243
34244         * lib/memcoll.c (memcoll): Optimize for the common case where the
34245         arguments are bytewise equal.
34246
34247 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
34248
34249         * doc/regexprops-generic.texi: Add a copyright notice.
34250
34251 2006-08-15  Bruno Haible  <bruno@clisp.org>
34252
34253         * modules/tmpdir (License): Change to LGPL.
34254
34255 2006-08-15  Bruno Haible  <bruno@clisp.org>
34256
34257         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
34258         module.
34259
34260 2006-08-14  Simon Josefsson  <jas@extundo.com>
34261
34262         * config/srclist.txt: Add gnupload.
34263
34264 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
34265
34266         Change copyright notice from LGPL 2 to GPL 2, since that's the
34267         standard form used in the gnulib repository.
34268         * tests/test-lock.c: Likewise.
34269         * tests/test-stdint.c: Likewise.
34270         * tests/test-tls.c: Likewise.
34271
34272         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
34273         prelude-manager.  User shorter URLs for GNU projects, without '?'.
34274         Add copyright notice.
34275
34276         * check-module: Add copyright notice.  Output a copyright
34277         notice if "--version" is specified.
34278         * modules/COPYING: New file.
34279         * tests/test-getaddrinfo.c: Add copyright notice.
34280         * tests/test-verify.c: Likewise.
34281
34282 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
34283
34284         Change copyright notice from LGPL 2 to GPL 2, since that's the
34285         standard form used in the gnulib repository.
34286         * lib/lock.c: LGPL -> GPL.
34287         * lib/lock.h: Likewise.
34288         * lib/strnlen1.c: Likewise.
34289         * lib/strnlen1.h: Likewise.
34290         * lib/tls.c: Likewise.
34291         * lib/tls.h: Likewise.
34292         * lib/tmpdir.c: Likewise.
34293
34294         * lib/TODO: Remove; this belongs only in coreutils.
34295
34296 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
34297
34298         Add copyright notices to long-enough files that lack them, since
34299         otherwise the files aren't clearly free.  Use the same notice that
34300         getdate.texi already uses.
34301         * doc/alloca-opt.texi: Add copyright notice.
34302         * doc/alloca.texi: Likewise.
34303         * doc/ctime.texi: Likewise.
34304         * doc/functions.texi: Likewise.
34305         * doc/gcd.texi: Likewise.
34306         * doc/gnulib-tool.texi: Likewise.
34307         * doc/inet_ntoa.texi: Likewise.
34308         * doc/visibility.texi: Likewise.
34309
34310         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
34311         * doc/quote.texi: Add copyright notice.
34312
34313         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
34314         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
34315         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
34316         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
34317         is now obsolete, and give a pointer to the Sun list.
34318         Add copyright notice.
34319
34320 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
34321
34322         * config/srclistvars.sh: Add copyright notice.
34323
34324 2006-08-14  Eric Blake  <ebb9@byu.net>
34325
34326         Import the following change from libc:
34327
34328         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
34329
34330         Upstream bug 2997.
34331         * lib/misc/error.c: Add space between program name and message if file
34332         name is missing.
34333
34334 2006-08-12  Karl Berry  <karl@gnu.org>
34335
34336         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
34337         remove, these originate in gnulib now.
34338
34339 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34340
34341         * doc/Makefile (standards.info standards.html standards.dvi):
34342         Also depend on make-stds.texi.
34343
34344 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
34345
34346         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
34347         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
34348
34349         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
34350         in wchar_t.  Problem reported by Eric Blake.
34351
34352         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
34353         LEN is smaller than SIZE.  Suggested by Bruno Haible.
34354         Also, help the compiler to keep LEN in a register.
34355
34356 2006-08-11  Eric Blake  <ebb9@byu.net>
34357
34358         * users.txt: Sort.  Add tar.
34359
34360 2006-08-11  Bruno Haible  <bruno@clisp.org>
34361
34362         * users.txt: New file.
34363
34364 2006-08-11  Bruno Haible  <bruno@clisp.org>
34365
34366         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
34367         before <wchar.h>. Needed for OSF/1 and BSD/OS.
34368
34369 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
34370
34371         * modules/snprintf (Depends-on): Remove minmax.
34372         (Maintainer): Add self and Bruno.
34373
34374 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
34375
34376         * lib/.cppi-disable: Add snprintf.h, socket_.h.
34377         * lib/snprintf.c: Include <errno.h> and <limits.h>.
34378         (EOVERFLOW): Define if the system does not.
34379         Do not include "minmax.h"; it wasn't used.
34380         (snprintf): Don't assume size_t promotes to an unsigned type.
34381         Fix bug when generated string was too long for the buffer: the
34382         buffer's contents are supposed to be the initial prefix of the
34383         output.  Don't assume vasnprintf returns EOVERFLOW if the size
34384         exceeds INT_MAX; do the check ourselves.
34385
34386         Import the following changes from libc:
34387
34388         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
34389
34390         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
34391         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
34392         set wc to the byte which couldn't be converted.
34393         (re_string_reconstruct): Don't clear valid_raw_len before calling
34394         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
34395         tip_context using re_string_context_at.
34396
34397         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
34398
34399         * lib/posix/regex.h: g++ still cannot handled [restrict].
34400
34401         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
34402
34403         * lib/posix/regex.h: Remove special handling for VMS.
34404
34405 2006-08-10  Jim Meyering  <jim@meyering.net>
34406
34407         * modules/same-inode: New module.
34408         * modules/dev-ino: New module.
34409         * modules/cycle-check: Depend on these modules, rather than simply
34410         including their .h files.
34411         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
34412         required via m4/cycle-check.m4.
34413         * modules/same: Depend on new same-inode module, rather than
34414         including same-inode.h.
34415         * modules/chdir-safer: New file.
34416
34417         * modules/chown (Depends-on): Add stat-macros.
34418
34419 2006-08-10  Jim Meyering  <jim@meyering.net>
34420
34421         * m4/cycle-check.m4: New file.
34422         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
34423         * m4/dev-ino.m4, m4/same-inode.m4: New files.
34424
34425 2006-08-10  Eric Blake  <ebb9@byu.net>
34426
34427         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
34428         in from original proposal.
34429
34430 2006-08-10  Eric Blake  <ebb9@byu.net>
34431         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34432
34433         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
34434         namespace.
34435
34436 2006-08-10  Bruno Haible  <bruno@clisp.org>
34437
34438         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
34439         as well.
34440
34441 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
34442
34443         Sync from coreutils.
34444
34445         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
34446
34447         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
34448         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
34449
34450 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
34451
34452         * modules/restrict: Remove; no longer needed now that we assume
34453         Autoconf 2.59 or later.
34454         * MODULES.html.sh: Remove 'restrict'.
34455         * modules/argp (Depends-on): Remove 'restrict'.
34456         * modules/base64 (Depends-on): Likewise.
34457         * modules/gc (Depends-on): Likewise.
34458         * modules/getaddrinfo (Depends-on): Likewise.
34459         * modules/glob (Depends-on): Likewise.
34460         * modules/inet_ntop (Depends-on): Likewise.
34461         * modules/inet_pton (Depends-on): Likewise.
34462         * modules/memxor (Depends-on): Likewise.
34463         * modules/regex (Depends-on): Likewise.
34464         * modules/strtok_r (Depends-on): Likewise.
34465         * modules/time_r (Depends-on): Likewise.
34466
34467 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
34468
34469         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
34470         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
34471         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
34472         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
34473         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
34474         * m4/memxor.m4 (gl_MEMXOR): Likewise.
34475         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
34476         gl_C_RESTRICT replaced by AC_C_RESTRICT.
34477
34478         Merge from coreutils.
34479         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
34480         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
34481         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
34482         * m4/time_r.m4 (gl_TIME_R): Likewise.
34483
34484 2006-08-09  Karl Berry  <karl@gnu.org>
34485
34486         * config/srclist.txt: no more gettext-tools, per Bruno.
34487
34488 2006-08-08  Eric Blake  <ebb9@byu.net>
34489
34490         * modules/verror: New module.
34491         * MODULES.html.sh: Document it.
34492
34493 2006-08-08  Eric Blake  <ebb9@byu.net>
34494
34495         * lib/verror.h, lib/verror.c: New files.
34496
34497 2006-08-08  Eric Blake  <ebb9@byu.net>
34498
34499         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
34500         verror_at_line output complies with GNU Coding Standards even when
34501         file is NULL.
34502
34503 2006-08-07  Bruno Haible  <bruno@clisp.org>
34504
34505         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
34506         versions of AIX.
34507         Reported by Ralf Wildenhues.
34508
34509 2006-08-07  Bruno Haible  <bruno@clisp.org>
34510
34511         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
34512         in an AC_DEFUN. Needed so that the autoconf snippets can use
34513         AC_REQUIRE.
34514
34515 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34516
34517         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34518         Initialize pkgdata_DATA.
34519         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
34520         overriding it.
34521
34522 2006-08-06  Eric Blake  <ebb9@byu.net>
34523
34524         * lib/error.h: Fold in some upstream changes from glibc.
34525         * lib/error.c: Likewise.
34526
34527 2006-08-04  Bruno Haible  <bruno@clisp.org>
34528
34529         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34530         Make the mostlyclean-local rule depend on mostlyclean-generic.
34531         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
34532
34533 2006-07-31  Bruno Haible  <bruno@clisp.org>
34534
34535         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
34536         <stdlib.h>, <string.h>.
34537
34538 2006-07-30  Bruno Haible  <bruno@clisp.org>
34539
34540         * modules/readlink (License): Change to LGPL.
34541
34542 2006-07-30  Bruno Haible  <bruno@clisp.org>
34543
34544         * modules/javaversion (Makefile.am): Distribute javaversion.java and
34545         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
34546         set PKGDATADIR to point to it.
34547
34548 2006-07-30  Bruno Haible  <bruno@clisp.org>
34549
34550         * modules/csharpexec (configure.ac): Comment out macro invocation.
34551         * modules/javaexec (configure.ac): Likewise.
34552         * modules/javacomp-script (configure.ac): Likewise.
34553
34554         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
34555
34556 2006-07-30  Bruno Haible  <bruno@clisp.org>
34557
34558         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
34559         linked-list.
34560
34561 2006-07-30  Bruno Haible  <bruno@clisp.org>
34562
34563         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
34564
34565 2006-07-30  Bruno Haible  <bruno@clisp.org>
34566
34567         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34568         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
34569         get removed.
34570
34571 2006-07-29  Bruno Haible  <bruno@clisp.org>
34572
34573         Make it possible for gnulib-tool to work with locally modified or
34574         augmented gnulib repositories.
34575         * gnulib-tool (func_usage): Document --local-dir option.
34576         (local_gnulib_dir): New variable.
34577         Handle --local-dir option.
34578         (func_lookup_file): New function.
34579         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
34580         (func_get_description, func_get_filelist, func_get_description,
34581         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
34582         func_get_automake_snippet, func_get_include_directive,
34583         func_get_license, func_get_maintainer): Use func_lookup_file.
34584         (func_import, func_create_testdir): Use func_lookup_file.
34585
34586 2006-07-29  Bruno Haible  <bruno@clisp.org>
34587
34588         * modules/setenv (Depends-on): Add unistd.
34589
34590 2006-07-29  Bruno Haible  <bruno@clisp.org>
34591
34592         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
34593
34594 2006-07-29  Bruno Haible  <bruno@clisp.org>
34595
34596         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
34597
34598 2006-07-29  Bruno Haible  <bruno@clisp.org>
34599
34600         * gnulib-tool (import, update): If there is no Makefile.am, look at
34601         aclocal.m4, instead of bailing out.
34602
34603 2006-07-29  Bruno Haible  <bruno@clisp.org>
34604
34605         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
34606         Categorize the options by when they are useful.
34607
34608 2006-07-29  Bruno Haible  <bruno@clisp.org>
34609
34610         * gnulib-tool (func_usage): Document option --no-libtool.
34611         Handle option --no-libtool.
34612         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
34613         for changed semantics of $libtool variable.
34614         (func_import): Likewise. If libtool is not used, show this through
34615         an option --no-libtool.
34616         (func_create_testdir): Update.
34617
34618 2006-07-29  Bruno Haible  <bruno@clisp.org>
34619
34620         * gnulib-tool (func_import): Extend error message about missing
34621         --doc-base.
34622
34623 2006-07-29  Bruno Haible  <bruno@clisp.org>
34624
34625         * gnulib-tool (func_import): Don't create the $docbase directory if
34626         there is no file to store there.
34627
34628 2006-07-29  Bruno Haible  <bruno@clisp.org>
34629
34630         * gnulib-tool (autoconf_minversion): If a --dir option is given and
34631         relevant, look for configure.ac there, not in the current directory.
34632         Also use a simple search for AC_PREREQ, not "autoconf --trace".
34633
34634 2006-07-29  Bruno Haible  <bruno@clisp.org>
34635
34636         * gnulib-tool (SORT): New variable.
34637         (func_usage): Undocument --assume-autoconf option.
34638         Remove --assume-autoconf option handling.
34639         (autoconf_minversion): Determine from the contents of configure.ac.
34640         (func_import): Remove autoconf_minversion handling.
34641         Suggested by Eric Blake.
34642
34643 2006-07-29  Bruno Haible  <bruno@clisp.org>
34644
34645         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
34646
34647 2006-07-29  Bruno Haible  <bruno@clisp.org>
34648
34649         * config/srclist.txt (*setenv.[ch]): Remove rules.
34650
34651 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34652
34653         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
34654
34655 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34656
34657         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
34658         arpa/inet.h.
34659
34660 2006-07-28  Simon Josefsson  <jas@extundo.com>
34661
34662         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
34663         * modules/inet_pton (Depends-on): Likewise.
34664
34665 2006-07-28  Simon Josefsson  <jas@extundo.com>
34666
34667         * m4/netinet_in_h.m4: New file.
34668
34669 2006-07-28  Simon Josefsson  <jas@extundo.com>
34670
34671         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
34672         #include's.
34673
34674 2006-07-28  Simon Josefsson  <jas@extundo.com>
34675
34676         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
34677         #include's.
34678
34679 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
34680
34681         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
34682         setgid on directories only if they set these bits.
34683         * lib/modechange.h: Remove obsolete comment about masks.
34684
34685 2006-07-28  Eric Blake  <ebb9@byu.net>
34686
34687         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
34688         macro expansion.
34689
34690 2006-07-28  Bruno Haible  <bruno@clisp.org>
34691
34692         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
34693
34694 2006-07-28  Bruno Haible  <bruno@clisp.org>
34695
34696         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
34697
34698 2006-07-28  Bruno Haible  <bruno@clisp.org>
34699
34700         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
34701         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
34702         Define fallbacks.
34703         Avoids link error on FreeBSD 4.x.
34704         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34705
34706         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
34707         encoding.
34708         * lib/mbswidth.c (iswcntrl): Likewise.
34709
34710 2006-07-27  Bruno Haible  <bruno@clisp.org>
34711
34712         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
34713         test.
34714
34715 2006-07-27  Bruno Haible  <bruno@clisp.org>
34716
34717         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
34718         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
34719         defined.
34720
34721 2006-07-26  Eric Blake  <ebb9@byu.net>
34722
34723         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
34724
34725 2006-07-26  Eric Blake  <ebb9@byu.net>
34726
34727         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
34728         like mingw that lack mkstemp.
34729         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
34730         avoid compilation warning on mingw.
34731
34732 2006-07-26  Bruno Haible  <bruno@clisp.org>
34733
34734         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
34735         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
34736         INT_FAST*_MIN, INTPTR_MIN.
34737
34738 2006-07-25  Bruno Haible  <bruno@clisp.org>
34739
34740         * modules/version-etc (Depends-on): Add stdarg.
34741
34742 2006-07-25  Bruno Haible  <bruno@clisp.org>
34743
34744         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
34745         complex commands.
34746
34747 2006-07-25  Bruno Haible  <bruno@clisp.org>
34748
34749         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
34750         defined in <stdarg.h> or config.h.
34751
34752 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
34753
34754         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
34755         (gl_STDIO_SAFER): Remove.
34756
34757 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
34758
34759         * MODULES.html.sh (File stream based Input/Output):
34760         Add fopen-safer, tmpfile-safer; remove stdio-safer.
34761         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
34762         * modules/fopen-safer, modules/tmpfile-safer: New files.
34763         * modules/stdio-safer: Remove.
34764
34765 2006-07-24  Bruno Haible  <bruno@clisp.org>
34766
34767         * modules/tmpdir: New file.
34768         * MODULES.html.sh (File system functions): Add it.
34769
34770 2006-07-24  Bruno Haible  <bruno@clisp.org>
34771
34772         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
34773         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
34774
34775 2006-07-24  Bruno Haible  <bruno@clisp.org>
34776
34777         * modules/clean-temp: New file.
34778
34779 2006-07-24  Bruno Haible  <bruno@clisp.org>
34780
34781         * m4/tmpdir.m4: New file, from GNU gettext.
34782
34783 2006-07-24  Bruno Haible  <bruno@clisp.org>
34784
34785         * lib/tmpdir.h: New file, from GNU gettext.
34786         * lib/tmpdir.c: New file, from GNU gettext.
34787
34788 2006-07-24  Bruno Haible  <bruno@clisp.org>
34789
34790         * lib/clean-temp.h: New file, from GNU gettext.
34791         * lib/clean-temp.c: New file, from GNU gettext.
34792
34793 2006-07-23  Eric Blake  <ebb9@byu.net>
34794
34795         * modules/stdio-safer (Files): Add tmpfile-safer.c.
34796         (Depends-on): Add binary-io.
34797
34798 2006-07-23  Eric Blake  <ebb9@byu.net>
34799
34800         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
34801
34802 2006-07-23  Eric Blake  <ebb9@byu.net>
34803
34804         * lib/tmpfile-safer.c: New file.
34805         * lib/stdio-safer.h (fopen_safer): Add prototype.
34806         * lib/stdio--.h (tmpfile): Make safer.
34807
34808 2006-07-23  Bruno Haible  <bruno@clisp.org>
34809
34810         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
34811         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
34812         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
34813         gl_linked_remove_at): Use it.
34814
34815 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34816         and Simon Josefsson <jas@extundo.com>
34817
34818         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
34819
34820         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
34821
34822 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
34823
34824         * modules/close-stream: New file.
34825         * modules/closeout (Description): Make it clear that it exits
34826         with a diagnostic on error.
34827         (Depends-on): Add close-stream.  Remove fpending, stdbool.
34828         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
34829
34830 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
34831
34832         * m4/close-stream.m4: New file.
34833
34834 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
34835
34836         * lib/close-stream.c, lib/close-stream.h: New files.
34837
34838 2006-07-22  Bruno Haible  <bruno@clisp.org>
34839
34840         Merge from GNU gettext 0.15.
34841
34842         2006-05-01  Bruno Haible  <bruno@clisp.org>
34843
34844                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
34845
34846         2006-07-22  Bruno Haible  <bruno@clisp.org>
34847
34848                 * modules/javaversion: New file.
34849                 * MODULES.html.sh (Java): Add javaversion.
34850
34851         2006-03-12  Bruno Haible  <bruno@clisp.org>
34852
34853                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
34854
34855         2005-12-04  Bruno Haible  <bruno@clisp.org>
34856
34857                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
34858                 (untested).
34859
34860         2006-06-21  Bruno Haible  <bruno@clisp.org>
34861
34862                 Avoid warnings from recent versions of mcs.
34863                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
34864                 -o, -L, -r any more. Use options documented since mcs-1.0
34865                 instead. Similarly for -g.
34866
34867         2005-12-04  Bruno Haible  <bruno@clisp.org>
34868
34869                 * build-aux/csharpcomp.sh.in: Suffix for resources is
34870                 .resources, not .resource.
34871
34872         2005-07-09  Bruno Haible  <bruno@clisp.org>
34873
34874                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
34875                 add a .dll suffix.
34876                 Reported by Mark Junker <mjscod@gmx.de>.
34877
34878         2006-07-22  Bruno Haible  <bruno@clisp.org>
34879
34880                 * modules/gettext: Upgrade to gettext-0.15.
34881                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
34882                 m4/visibility.m4.
34883                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
34884
34885 2006-07-22  Bruno Haible  <bruno@clisp.org>
34886
34887         Merge from GNU gettext 0.15.
34888
34889         2006-03-25  Bruno Haible  <bruno@clisp.org>
34890
34891                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
34892
34893         2006-07-21  Bruno Haible  <bruno@clisp.org>
34894
34895                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
34896                 "1.1".
34897
34898         2006-05-09  Bruno Haible  <bruno@clisp.org>
34899
34900                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
34901                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
34902                 for the conftestver execution.
34903
34904         2006-05-01  Bruno Haible  <bruno@clisp.org>
34905
34906                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
34907                 optional target-version argument. Verify that the compiler
34908                 groks source of the specified source-version, or add -source
34909                 option as necessary. Verify that the compiler produces
34910                 bytecode in the specified target-version, or add -target and
34911                 -source options as necessary. Make the result of the test
34912                 available as variable CONF_JAVAC. Also log error output in
34913                 config.log.
34914
34915         2006-03-11  Bruno Haible  <bruno@clisp.org>
34916
34917                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
34918
34919         2006-05-09  Bruno Haible  <bruno@clisp.org>
34920
34921                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
34922                 CLASSPATH_SEPARATOR to a semicolon.
34923
34924         2006-03-12  Bruno Haible  <bruno@clisp.org>
34925
34926                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
34927                 available as variable CONF_JAVA, for subsequent autoconf
34928                 tests. Also log error output in config.log.
34929
34930         2006-07-19  Bruno Haible  <bruno@clisp.org>
34931
34932                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
34933                 that getline works on glibc2 systems. Needed to avoid trouble
34934                 in relocatable.c.
34935                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
34936
34937         2005-12-04  Bruno Haible  <bruno@clisp.org>
34938
34939                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
34940                 launcher (untested).
34941
34942         2005-12-04  Bruno Haible  <bruno@clisp.org>
34943
34944                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
34945
34946         2006-07-22  Bruno Haible  <bruno@clisp.org>
34947
34948                 * gettext.m4: Update from GNU gettext-0.15.
34949                 * nls.m4: Likewise.
34950                 * po.m4: Likewise.
34951                 * inttypes-pri.m4: Likewise.
34952                 * inttypes-h.m4: Renamed from inttypes.m4.
34953                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
34954
34955 2006-07-22  Bruno Haible  <bruno@clisp.org>
34956
34957         Merge from GNU gettext 0.15.
34958
34959         2005-07-05  Bruno Haible  <bruno@clisp.org>
34960
34961                 * printf-args.c (printf_fetchargs): Work around broken
34962                 definition of wint_t on mingw.
34963
34964         2005-02-12  Bruno Haible  <bruno@clisp.org>
34965
34966                 * xallocsa.h: Add extern "C" for C++.
34967
34968         2006-05-17  Bruno Haible  <bruno@clisp.org>
34969
34970                 Cygwin portability.
34971                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
34972
34973         2006-04-30  Bruno Haible  <bruno@clisp.org>
34974
34975                 * progreloc.c: Include <mach-o/dyld.h> if available.
34976                 (find_executable): Use _NSGetExecutablePath when possible.
34977
34978         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
34979
34980                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
34981                 function.
34982
34983         2005-12-29  Bruno Haible  <bruno@clisp.org>
34984
34985                 * progreloc.c (set_program_name_and_installdir): Fix
34986                 compilation error.
34987
34988         2005-12-04  Bruno Haible  <bruno@clisp.org>
34989
34990                 Cygwin portability.
34991                 * progreloc.c: Include <windows.h> also on Cygwin.
34992                 (find_executable): Add support for Cygwin.
34993                 (set_program_name_and_installdir): Handle also platforms with
34994                 nonempty EXEEXT.
34995
34996         2006-07-11  Bruno Haible  <bruno@clisp.org>
34997
34998                 * javacomp.c: Fix a comment.
34999                 Reported by Jim Meyering.
35000
35001         2006-04-30  Bruno Haible  <bruno@clisp.org>
35002
35003                 * javacomp.h (compile_java_class): Add source_version,
35004                 target_version arguments.
35005                 * javacomp.c: Rewritten to choose only a compiler that
35006                 respects the specified source_version and target_version.
35007
35008         2006-06-27  Bruno Haible  <bruno@clisp.org>
35009
35010                 Assume correct S_ISDIR macro.
35011                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
35012
35013         2006-07-22  Bruno Haible  <bruno@clisp.org>
35014
35015                 * javaversion.h: New file, from GNU gettext.
35016                 * javaversion.c: New file, from GNU gettext.
35017                 * javaversion.java: New file, from GNU gettext.
35018                 * javaversion.class: New file, from GNU gettext.
35019
35020         2006-05-17  Bruno Haible  <bruno@clisp.org>
35021
35022                 Cygwin portability.
35023                 * javaexec.c (execute_java_class): Test for jview program
35024                 also on Cygwin.
35025
35026         2006-04-09  Bruno Haible  <bruno@clisp.org>
35027
35028                 * fatal-signal.c: Don't include string.h.
35029                 (at_fatal_signal): Use a copying loop instead of memcpy.
35030
35031         2005-12-04  Bruno Haible  <bruno@clisp.org>
35032
35033                 * csharpexec.c: Add support for 'clix' launcher (untested).
35034                 (execute_csharp_using_sscli): New function.
35035                 (execute_csharp_program): Call it.
35036
35037         2006-06-21  Bruno Haible  <bruno@clisp.org>
35038
35039                 Avoid warnings from recent versions of mcs.
35040                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
35041                 -o, -L, -r any more. Use options documented since mcs-1.0
35042                 instead. Similarly for -g.
35043
35044         2005-07-09  Bruno Haible  <bruno@clisp.org>
35045
35046                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
35047                 add a .dll suffix.
35048                 Reported by Mark Junker <mjscod@gmx.de>.
35049
35050         2006-06-17  Bruno Haible  <bruno@clisp.org>
35051
35052                 * config.charset: Update for NetBSD 3.0.
35053
35054         2006-05-17  Bruno Haible  <bruno@clisp.org>
35055
35056                 Cygwin portability.
35057                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
35058
35059         2006-05-16  Bruno Haible  <bruno@clisp.org>
35060
35061                 * localcharset.c [CYGWIN]: Include <windows.h>.
35062                 (get_charset_aliases): For Cygwin, return the same CPxxx
35063                 aliases list as under WIN32.
35064                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
35065                 the environment variables. Fall back to GetACP().
35066
35067         2006-04-05  Bruno Haible  <bruno@clisp.org>
35068
35069                 * config.charset: Update Juan Manuel Guerrero's address.
35070
35071         2005-02-12  Bruno Haible  <bruno@clisp.org>
35072
35073                 * allocsa.h: Add extern "C" for C++.
35074
35075         2005-02-10  Bruno Haible  <bruno@clisp.org>
35076
35077                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
35078                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
35079
35080         2006-07-22  Bruno Haible  <bruno@clisp.org>
35081
35082                 * gettext.h: Update to GNU gettext-0.15.
35083
35084 2006-07-22  Bruno Haible  <bruno@clisp.org>
35085
35086         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
35087         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
35088         lib-prefix.m4, longdouble.m4, ssize_t.m4.
35089
35090 2006-07-21  Eric Blake  <ebb9@byu.net>
35091
35092         * modules/stdlib-safer: New file.
35093         * MODULES.html.sh (File stream based Input/Output): Add
35094         stdlib-safer.
35095
35096 2006-07-21  Eric Blake  <ebb9@byu.net>
35097
35098         * lib/stdlib-safer.h: New file from coreutils, required by
35099         stdlib--.h.
35100
35101 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
35102
35103         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
35104
35105 2006-07-20  Bruno Haible  <bruno@clisp.org>
35106
35107         * gnulib-tool: Recognize new option --assume-autoconf.
35108         (autoconf_minversion): New variable.
35109         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
35110
35111 2006-07-20  Bruno Haible  <bruno@clisp.org>
35112
35113         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
35114
35115 2006-07-19  Derek R. Price  <derek@ximbiot.com>
35116
35117         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
35118         Reindent and repaginate.
35119
35120 2006-07-19  Derek Price  <derek@ximbiot.com>
35121
35122         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
35123         Correct grammar.
35124
35125 2006-07-17  Bruno Haible  <bruno@clisp.org>
35126
35127         * modules/list: New file.
35128         * modules/array-list: New file.
35129         * modules/carray-list, modules/carray-list-tests: New files.
35130         * modules/linked-list, modules/linked-list-tests: New files.
35131         * modules/avltree-list, modules/avltree-list-tests: New files.
35132         * modules/rbtree-list, modules/rbtree-list-tests: New files.
35133         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
35134         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
35135         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
35136         * modules/oset: New file.
35137         * modules/array-oset: New file.
35138         * modules/avltree-oset, modules/avltree-oset-tests: New files.
35139         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
35140         * tests/test-carray_list.c: New file.
35141         * tests/test-linked_list.c: New file.
35142         * tests/test-avltree_list.c: New file.
35143         * tests/test-rbtree_list.c: New file.
35144         * tests/test-linkedhash_list.c: New file.
35145         * tests/test-avltreehash_list.c: New file.
35146         * tests/test-rbtreehash_list.c: New file.
35147         * tests/test-avltree_oset.c: New file.
35148         * tests/test-rbtree_oset.c: New file.
35149         * MODULES.html.sh (Container data structures): New section.
35150
35151 2006-07-17  Bruno Haible  <bruno@clisp.org>
35152
35153         * m4/gl_list.m4: New file.
35154
35155 2006-07-17  Bruno Haible  <bruno@clisp.org>
35156
35157         * lib/gl_list.h: New file.
35158         * lib/gl_list.c: New file.
35159         * lib/gl_array_list.h: New file.
35160         * lib/gl_array_list.c: New file.
35161         * lib/gl_carray_list.h: New file.
35162         * lib/gl_carray_list.c: New file.
35163         * lib/gl_linked_list.h: New file.
35164         * lib/gl_linked_list.c: New file.
35165         * lib/gl_anylinked_list1.h: New file.
35166         * lib/gl_anylinked_list2.h: New file.
35167         * lib/gl_avltree_list.h: New file.
35168         * lib/gl_avltree_list.c: New file.
35169         * lib/gl_anyavltree_list1.h: New file.
35170         * lib/gl_anyavltree_list2.h: New file.
35171         * lib/gl_rbtree_list.h: New file.
35172         * lib/gl_rbtree_list.c: New file.
35173         * lib/gl_anyrbtree_list1.h: New file.
35174         * lib/gl_anyrbtree_list2.h: New file.
35175         * lib/gl_anytree_list1.h: New file.
35176         * lib/gl_anytree_list2.h: New file.
35177         * lib/gl_linkedhash_list.h: New file.
35178         * lib/gl_linkedhash_list.c: New file.
35179         * lib/gl_anyhash_list1.h: New file.
35180         * lib/gl_anyhash_list2.h: New file.
35181         * lib/gl_avltreehash_list.h: New file.
35182         * lib/gl_avltreehash_list.c: New file.
35183         * lib/gl_rbtreehash_list.h: New file.
35184         * lib/gl_rbtreehash_list.c: New file.
35185         * lib/gl_anytreehash_list1.h: New file.
35186         * lib/gl_anytreehash_list2.h: New file.
35187
35188         * lib/gl_oset.h: New file.
35189         * lib/gl_oset.c: New file.
35190         * lib/gl_array_oset.h: New file.
35191         * lib/gl_array_oset.c: New file.
35192         * lib/gl_avltree_oset.h: New file.
35193         * lib/gl_avltree_oset.c: New file.
35194         * lib/gl_rbtree_oset.h: New file.
35195         * lib/gl_rbtree_oset.c: New file.
35196         * lib/gl_anytree_oset.h: New file.
35197
35198 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
35199
35200         * m4/mkancesdirs.m4: New file.
35201         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
35202         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
35203         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
35204         it.
35205
35206 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
35207
35208         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
35209         * lib/mkancesdirs.h: New files.
35210         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
35211         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
35212         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
35213         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
35214         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
35215         callers changed.  Revamp internals significantly, by not
35216         attempting to create directories that are temporarily more
35217         permissive than the final results.  Do not attempt to use
35218         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
35219         This removes some race conditions, fixes some bugs, and simplifies
35220         things.  Use new dirchownmod function to do owner and mode changes.
35221         * lib/mkdir-p.h: Likewise.
35222         * lib/modechange.c (octal_to_mode): New function.
35223         (struct mode_change): New member mentioned.
35224         (make_node_op_equals): New arg mentioned.  All callers changed.
35225         (mode_compile): Keep track of which mode bits the user has explicitly
35226         mentioned.
35227         (mode_adjust): New arg DIR, so that we implement the X op correctly.
35228         New arg PMODE_BITS, to keep track of which mode bits the user
35229         mentioned; it treats S_ISUID and S_ISGID speciall.
35230         All callers changed.
35231         * lib/modechange.h: Likewise.
35232
35233 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
35234
35235         * MODULES.html.sh: Add mkancestors.
35236         * modules/mkancesdirs: New module.
35237         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
35238         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
35239         The chdir-safer and afs files are now orphans; I'll remove them
35240         unless someone speaks up.
35241         Add lib/dirchownmod.c, lib/dirchownmod.h.
35242         (Depends-on): Remove alloca, chown, save-cwd, dirname.
35243         Add lchown, mkancesdirs.
35244         (Maintainer): Add self.
35245
35246 2006-07-15  Karl Berry  <karl@gnu.org>
35247
35248         * gnulib-tool: help message wording/arrangement.
35249
35250 2006-07-14  Simon Josefsson  <jas@extundo.com>
35251
35252         * doc/gnulib.texi (Libtool and Windows): New section.
35253
35254 2006-07-12  Simon Josefsson  <jas@extundo.com>
35255
35256         * modules/gendocs (License): Fix license, approved by Karl.
35257
35258 2006-07-12  Eric Blake  <ebb9@byu.net>
35259
35260         * MODULES.html.sh: Add gendocs.
35261
35262 2006-07-11  Eric Blake  <ebb9@byu.net>
35263
35264         * modules/fdl: New module, to install doc/fdl.texi.
35265         * MODULES.html.sh: Add new section for documentation modules.
35266         * gnulib-tool: Avoid space-tab.
35267         (--doc-base): New option, to manage files from doc.
35268
35269 2006-07-11  Eric Blake  <ebb9@byu.net>
35270
35271         * m4/absolute-header.m4: Fix comments to match recent change.
35272
35273 2006-07-11  Eric Blake  <ebb9@byu.net>
35274
35275         * gnulib-tool: List --doc-base before --tests-base.
35276
35277 2006-07-11  Derek R. Price  <derek@ximbiot.com>
35278
35279         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
35280
35281 2006-07-11  Bruno Haible  <bruno@clisp.org>
35282
35283         * README: Mention where to put documentation.
35284
35285 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35286
35287         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
35288
35289 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
35290
35291         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
35292         to stdint.m4.
35293
35294 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
35295
35296         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
35297         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
35298         "no/such/file/stdint.h" when there is no such file, so that
35299         the resulting C code can be parsed by dodgy compilers.
35300         Problems reported by Bob Proulx.
35301
35302 2006-07-10  Derek R. Price  <derek@ximbiot.com>
35303
35304         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
35305         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
35306         macros into the GNU _D_EXACT_NAMLEN.
35307         * lib/savedir.c:  Likewise.
35308         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
35309
35310 2006-07-10  Derek R. Price  <derek@ximbiot.com>
35311         and Paul Eggert  <eggert@cs.ucla.edu>
35312
35313         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
35314         * m4/savedir.m4:
35315         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
35316         macros into the GNU _D_EXACT_NAMLEN.
35317
35318 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35319
35320         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
35321         around the absolute name, to work around a problem with the HP-UX
35322         11.23 native C compiler, reported by Bob Proulx.
35323
35324 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35325
35326         * doc/maintain.texi, make-stds.texi: Sync from
35327         <http://savannah.gnu.org/projects/gnustandards>.
35328
35329 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35330
35331         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
35332
35333 2006-07-09  Jim Meyering  <jim@meyering.net>
35334
35335         * m4/glob.m4: Remove a doubled word in a comment.
35336
35337 2006-07-09  Jim Meyering  <jim@meyering.net>
35338
35339         * lib/argp-pv.c: Remove a doubled word in a comment.
35340         * lib/check-version.c (check_version): Likewise.
35341         * lib/javacomp.c (compile_java_class): Likewise.
35342
35343 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
35344
35345         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
35346         for the benefit of people using Autoconf 2.60.  If you want to
35347         support older Autoconf versions you can copy m4/onceonly_2_57.m4
35348         (or m4/onceonly.m4, if pre-2.57) manually.
35349
35350 2006-07-08  Jim Meyering  <jim@meyering.net>
35351
35352         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
35353         comment.
35354         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
35355         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
35356         comment.
35357
35358 2006-07-08  Jim Meyering  <jim@meyering.net>
35359
35360         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
35361
35362 2006-07-07  Simon Josefsson  <jas@extundo.com>
35363
35364         * tests/test-crc.c: Change expected crc value, the test vector
35365         were probably computed using the old broken crc.c?
35366
35367 2006-07-06  Simon Josefsson  <jas@extundo.com>
35368
35369         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
35370         now the canonical place for the M4 file).
35371
35372         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
35373         from the sys_socket dependency now.
35374
35375         * modules/inet_pton (Files): Ditto.
35376
35377         * modules/inet_ntop (Files): Ditto.
35378
35379 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
35380
35381         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
35382         not gl_PREREQ_GETUSERSHELL.
35383
35384 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35385
35386         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
35387         with only one argument, for Autoconf 2.60.
35388         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
35389         expand to nothing, so add a shell command to avoid syntax error.
35390         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
35391
35392 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35393
35394         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
35395
35396 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35397
35398         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
35399         no longer needed.  Check for isblank decl.
35400         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
35401         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
35402         of existence.
35403
35404 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35405
35406         * lib/getloadavg.c: Use __VMS, not VMS.
35407         * lib/getopt.c: Likewise.
35408         * lib/getpagesize.h: Likewise.
35409         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
35410         and probably does not work.
35411
35412 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35413
35414         * lib/.cppi-disable: Add wcwidth.
35415         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
35416         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
35417         (ISGRAPH): Remove.  All uses changed to isgraph.
35418         (FOLD) [!defined _LIBC]: Remove special case.
35419         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
35420         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
35421         HAVE_ISBLANK.
35422         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
35423         case.
35424
35425 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
35426
35427         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
35428         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
35429         brackets.  Other minor changes to suppress some compiler
35430         warnings.
35431
35432 2006-07-06  Derek R. Price  <derek@ximbiot.com>
35433         and Paul Eggert  <eggert@cs.ucla.edu>
35434
35435         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
35436         of invoking obsolescent AC_HEADER_DIRENT macro.
35437         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
35438         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
35439         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
35440         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
35441         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
35442         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
35443         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
35444         * m4/readdir.m4: Remove; no longer needed.
35445
35446 2006-07-06  Derek R. Price  <derek@ximbiot.com>
35447         and Paul Eggert  <eggert@cs.ucla.edu>
35448
35449         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
35450         Don't worry about this obsolete case any more.
35451         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
35452         directories.
35453         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
35454         worry about this obsolete case any more.
35455         * lib/fts.c: Likewise.
35456         * lib/getcwd.c: Likewise.
35457         * lib/glob.h: Likewise.
35458         * lib/savedir.c: Likewise.
35459
35460 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
35461
35462         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
35463         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
35464         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
35465         needed.
35466         All uses removed.
35467         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
35468         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
35469         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
35470         needed.
35471         * m4/getdate.m4 (gl_GETDATE): Likewise.
35472         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
35473         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
35474         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
35475         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
35476         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
35477         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
35478         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
35479         needed.
35480
35481 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
35482
35483         * lib/memcasecmp.c: Include <limits.h>.
35484         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
35485         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
35486         Don't assume isdigit succeeds only on '0' through '9'.
35487
35488 2006-07-05  Eric Blake  <ebb9@byu.net>
35489
35490         * modules/getaddrinfo (Depends-on): Add snprintf.
35491
35492 2006-07-05  Eric Blake  <ebb9@byu.net>
35493
35494         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
35495         to avoid 'header present but could not be compiled' on cygwin.
35496
35497 2006-07-05  Eric Blake  <ebb9@byu.net>
35498
35499         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
35500         missing from netdb.h.
35501         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
35502
35503 2006-07-05  Derek R. Price  <derek@ximbiot.com>
35504
35505         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
35506         no longer needed.
35507         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
35508         * m4/getdate.m4 (gl_GETDATE): Likewise.
35509         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
35510         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
35511         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
35512         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
35513         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
35514
35515 2006-07-05  Derek R. Price  <derek@ximbiot.com>
35516
35517         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
35518         All uses of is_space replaced by isspace.
35519         * lib/exit.h: Don't talk about STDC_HEADERS.
35520         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
35521         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
35522         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
35523         replaced by isprint etc.
35524         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
35525         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
35526         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
35527         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
35528         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
35529         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
35530
35531 2006-07-05  Bruno Haible  <bruno@clisp.org>
35532
35533         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
35534         the function exists, before testing against AIX.
35535         Reported by Martin Lambers <marlam@marlam.de>.
35536
35537 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
35538
35539         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
35540         From Mark D. Baushke.
35541
35542 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
35543
35544         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
35545         to the absolute name, not just one, to bypass Sun C 5.8's
35546         "warning: #include of /usr/include/... may be non-portable".
35547
35548 2006-07-04  Eric Blake  <ebb9@byu.net>
35549
35550         * modules/dirname-tests: New test module.
35551         * tests/test-dirname.c: New file, replacing dirname.c
35552         TEST_DIRNAME section that was recently deleted.
35553
35554 2006-07-04  Bruno Haible  <bruno@clisp.org>
35555
35556         Assume ANSI C header files and <ctype.h> functions.
35557         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
35558         (mbsnwidth): Use isprint, iscntrl instead.
35559
35560 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
35561
35562         Merge from coreutils.
35563         * MODULES.html.sh: Add xstrtold.
35564         * modules/xstrtold: New file.
35565         * modules/cycle-check (Files): Add lib/same-inode.h.
35566         * modules/dirname (Files): Add m4/double-slash-root.m4.
35567         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
35568         * modules/mkdir-p (Files): Add lib/same-inode.h.
35569         * modules/same (Files): Add lib/same-inode.h.
35570
35571 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
35572
35573         * m4/absolute-header.m4: Renamed from full-header-path.m4.
35574         This is to keep the terminology clean; POSIX talks about
35575         "absolute pathnames", not "full pathnames", but the GNU
35576         Coding Standards say to use "path" for something else;
35577         so use "absolute" to keep both sides happy.
35578         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
35579         Set gl_absolute_header, not gl_full_header_path.
35580         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
35581         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
35582         All uses changed.
35583
35584         Merge from coreutils.
35585
35586         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
35587
35588         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
35589         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
35590         want to require the building of c-strtod.o.
35591         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
35592         needs -lm directly.
35593         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
35594
35595         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
35596
35597         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
35598         --as-needed option if available.  Problem reported by Albert Chin in
35599         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
35600         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
35601         cc merely issues a bunch of annoying warnings for --as-needed
35602         (this problem was reported by Bob Proulx).  Also, try linking with
35603         -lm to detect a bug in binutils 2.16 (this problem was reported
35604         by Ralf Wildenhues).
35605
35606         2006-06-18  Jim Meyering  <jim@meyering.net>
35607
35608         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
35609         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
35610         macro.
35611         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
35612         also check for glibc-2.4's abort-inducing bug.
35613
35614         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
35615         Low-probability clean-up should be to use rmdir to get rid of
35616         the just-created directory, not unlink.
35617
35618         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
35619         configure fail, and request a bug report to inform us about it.
35620         Add a comment that, barring reports to the contrary, in 2007 we'll
35621         assume ftruncate is universally available.
35622
35623         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
35624
35625         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
35626
35627         2006-03-12  Jim Meyering  <jim@meyering.net>
35628
35629         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
35630         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
35631         * m4/same.m4 (gl_SAME): Likewise.
35632         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
35633
35634         2006-03-11  Eric Blake  <ebb9@byu.net>
35635
35636         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
35637         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
35638         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
35639         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
35640
35641 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
35642
35643         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
35644         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
35645         reported by Mark D. Baushke, one in
35646         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
35647
35648         Merge from coreutils.
35649
35650         * lib/.cppi-disable: Add stdint_.h.
35651         * lib/.cvsignore: Add stdint.h.
35652
35653         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
35654
35655         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
35656         both double and long double versions.
35657         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
35658         * lib/xstrtold.c: New file.
35659         * lib/xstrtod.h (xstrtold): New decl.
35660
35661         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
35662
35663         * lib/filemode.c (setst): Remove.
35664         (strmode): Rewrite to avoid setst.  This makes the code shorter,
35665         (arguably) clearer, and the generated code is a bit smaller on my
35666         Debian GNU/Linux stable x86 host.
35667
35668         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
35669
35670         * lib/filemode.c: Include "filemode.h" first, to test the interface.
35671         Assume that filemode.h includes sys/types.h and sys/stat.h.
35672         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
35673         (ftypelet): Reorder to put common cases first, for efficiency.
35674         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
35675         to do 'M'.
35676         (strmode): Renamed from mode_string, and now stores 12 bytes instead
35677         of 10, for compatibility with FreeBSD.  All callers changed.
35678         (filemodestring): Now stores 12 bytes instead of 10, and sets file
35679         types that can't be deduced solely from st_mode.  First arg is now a
35680         const pointer.
35681         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
35682         (strmode): Renamed from mode_string.
35683         (filemodestring): New decl.
35684         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
35685         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
35686         needed.
35687         (S_ISPORT, S_ISWHT): New macros, if not already defined.
35688
35689         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
35690
35691         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
35692         fsusage.h now does that.  Include fsusage.h first, to test interface.
35693         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
35694         at most one method (the old code could have generated decls that
35695         didn't conform to C89, not that this was ever exercised).
35696         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
35697
35698         2006-03-19  Jim Meyering  <jim@meyering.net>
35699
35700         Work even in a chroot where d_ino values for entries in "/"
35701         don't match the stat.st_ino values for the same names.
35702         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
35703         number, iterate through all entries again, using lstat instead.
35704         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
35705         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
35706
35707         * lib/getcwd.c (__getcwd): Clarify a comment.
35708         Use memcpy in place of a call to strcpy.
35709
35710         2006-03-12  Jim Meyering  <jim@meyering.net>
35711
35712         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
35713         matches that of the current directory (which we're about to chdir ".."
35714         out of), then save the dev-ino of the parent, instead.
35715
35716         * lib/same-inode.h (SAME_INODE): New file/macro.
35717         * lib/chdir-safer.c (SAME_INODE): Remove definition.
35718         Include "same-inode.h", instead.
35719         * lib/same.c: Likewise.
35720         * lib/cycle-check.h: Include "same-inode.h".
35721         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
35722         * lib/cycle-check.c (SAME_INODE): Remove definition.
35723         * lib/root-dev-ino.h: Include "same-inode.h".
35724
35725         2006-03-11  Eric Blake  <ebb9@byu.net>
35726
35727         * lib/same.c (same_name): s/base_name/last_component/
35728         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
35729         * lib/filenamecat.c (file_name_concat): Likewise.
35730
35731         2006-03-11  Eric Blake  <ebb9@byu.net>,
35732                     Paul Eggert  <eggert@cs.ucla.edu>
35733
35734         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
35735         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
35736         drive prefix.
35737         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
35738         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
35739         (last_component): New method.
35740         * lib/dirname.c (dir_len): Determine when drive letters need a
35741         subsequent slash.  Preserve // when it is special.
35742         (dir_name): Don't append dot when drive letter is absolute.
35743         [TEST_DIRNAME]: Move into a full-blown gnulib test.
35744         * lib/basename.c (base_name): New semantics - malloc the result.
35745         Preserve // when it is special.  Preserve relative files that look
35746         like drive letters.
35747         (base_len): Preserve // when it is special.
35748         (last_component): New method, similar to old base_name semantics.
35749         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
35750         base_name.  Strip redundant slashes from ///.
35751
35752 2006-07-03  Jim Meyering  <jim@meyering.net>
35753
35754         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
35755         macro is used before the first cycle_check call.
35756
35757 2006-07-03  Eric Blake  <ebb9@byu.net>
35758
35759         * modules/dirname (Depends-on): Add xstrndup.
35760
35761 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
35762
35763         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
35764         test cases, so that config.log is a bit easier to follow.
35765
35766 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
35767
35768         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
35769         both are 64 bits, since this seems to be the tradition, and this
35770         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
35771         we ever run into a host that prefers long long to long in this
35772         case, we'll need another configure-time test.  Problem reported by
35773         Jim Meyering.
35774
35775 2006-07-02  Eric Blake  <ebb9@byu.net>
35776
35777         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
35778
35779 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
35780
35781         * modules/inttypes (Depends-on): No longer depends on stdint.
35782         * modules/stdint (Description): Say more about assumptions.
35783         Say that the fast types might differ.  Say macros are used.
35784         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
35785         (Makefile.am): Revise list of substituted symbols to match
35786         new stdint.m4.
35787         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
35788         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
35789         * tests/test-stdint.c (verify_same_types)
35790         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
35791         the code conforms to C99/C89.
35792         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
35793         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
35794
35795 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
35796
35797         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
35798         but fix a bug, by requiring at least 64 bits.
35799         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
35800         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
35801         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
35802         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
35803
35804         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
35805         changes.  Make 2.59 a prerequisite.  Check and substitute for
35806         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
35807         inttypes.h.  Do not use special include files; just use the
35808         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
35809         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
35810         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
35811         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
35812         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
35813         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
35814         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
35815         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
35816         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
35817         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
35818         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
35819         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
35820         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
35821         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
35822         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
35823         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
35824         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
35825         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
35826         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
35827         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
35828         WINT_MAX.  Check for C99 conformance more strictly, by detecting
35829         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
35830         not check for things that C99 does not require, e.g., int8_t.  If
35831         a test isn't needed unless <stdint.h> isn't working, and is
35832         unlikely to be needed for any other reason, then don't do it
35833         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
35834         size_t, since we assume C89 freestanding at least.  Do not check
35835         for sig_atomic_t, wchar_t, or wint_t, since the code now does
35836         the right thing even if the types are not defined.  Instead use:
35837         (gl_STDINT_TYPE_PROPERTIES): New macro.
35838         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
35839         testing whether <sys/types.h> clashes, as Autoconf does this for
35840         us now.  All uses removed.
35841         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
35842         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
35843         (gl_CHECK_TYPE_SAME):
35844         Remove; no longer needed.
35845         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
35846         exists, since we'll return 0 anyway in that case.
35847         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
35848
35849 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
35850
35851         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
35852         possible collision with system files.
35853         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
35854         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
35855         WCHAR_MIN and WCHAR_MAX in this case.
35856         (<stddef.h>): Do not include; no longer needed.
35857         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
35858         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
35859         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
35860         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
35861         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
35862         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
35863         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
35864         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
35865         !defined(__c99))]: Include in this case too, since it's harmless
35866         now.
35867         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
35868         dangerous to do so.
35869         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
35870         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
35871         (_STDINT_MIN, _STDINT_MAX): New macros.
35872         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
35873         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
35874         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
35875         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
35876         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
35877         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
35878         macros, not typedefs; this simplifies things quite a bit.
35879         Use long int for all types narrower than int64_t.
35880         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
35881         Define in terms of long long int or int64_t or long int,
35882         not int64_t or int32_t.  This saves some compile-time testing.
35883         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
35884         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
35885         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
35886         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
35887         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
35888         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
35889         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
35890         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
35891         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
35892         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
35893         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
35894         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
35895         undef any previous version and define our own version, for
35896         simplicity and consistency with the new macros for types.
35897         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
35898         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
35899         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
35900         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
35901         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
35902         @WINT_T_SUFFIX@ to keep things simple here.
35903         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
35904         Simplify by assuming typical 8/16/32/64 host, since we're
35905         already doing that elsewhere anyway.
35906         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
35907         and assume long long int is 64 bits if available.  This
35908         speeds up 'configure'.
35909
35910 2006-07-01  Eric Blake  <ebb9@byu.net>
35911
35912         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
35913         Reported by Andreas Buening.
35914
35915 2006-07-01  Eric Blake  <ebb9@byu.net>
35916
35917         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
35918
35919 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
35920
35921         * lib/getaddrinfo.c: fixed typo
35922
35923 2006-06-29  Jim Meyering  <jim@meyering.net>
35924
35925         * modules/strftime (Maintainer): Add my name, since with the
35926         FPRINTFTIME changes strftime.c has forked from glibc.
35927
35928 2006-06-29  Eric Blake  <ebb9@byu.net>
35929
35930         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
35931
35932 2006-06-29  Eric Blake  <ebb9@byu.net>
35933
35934         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
35935
35936 2006-06-29  Eric Blake  <ebb9@byu.net>
35937
35938         * lib/stat_.h: New file.
35939
35940 2006-06-29  Eric Blake  <ebb9@byu.net>
35941
35942         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
35943         unused static function.
35944
35945 2006-06-29  Eric Blake  <ebb9@byu.net>
35946
35947         * doc/functions.texi (Function Portability): Document missing lstat
35948         on mingw.
35949
35950 2006-06-29  Eric Blake  <ebb9@byu.net>
35951
35952         * MODULES.html.sh: Add sys_stat.
35953         * modules/sys_stat: New module.
35954         * modules/mkstemp (Depends-on): Add sys_stat.
35955
35956 2006-06-29  Derek R. Price  <derek@ximbiot.com>
35957
35958         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
35959
35960 2006-06-29  Derek R. Price  <derek@ximbiot.com>
35961
35962         * m4/c-bs-a.m4: Removed.
35963
35964 2006-06-29  Derek R. Price  <derek@ximbiot.com>
35965
35966         * lib/strftime.c: Assume strftime() exists.
35967
35968 2006-06-29  Derek Price  <derek@ximbiot.com>
35969
35970         * modules/c-bs-a: Removed - \a is C89.
35971         * MODULES.html.sh: Remove c-bs-a.
35972
35973 2006-06-29  Bruno Haible  <bruno@clisp.org>
35974
35975         * modules/wcwidth (License): Change to LGPL.
35976
35977 2006-06-28  Simon Josefsson  <jas@extundo.com>
35978
35979         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
35980         on _WIN32.
35981
35982         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
35983         getnameinfo.
35984
35985 2006-06-28  Simon Josefsson  <jas@extundo.com>
35986
35987         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
35988
35989 2006-06-28  Simon Josefsson  <jas@extundo.com>
35990
35991         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
35992         functions there.  It will succeed on Windows XP, but on Windows
35993         2000 and (presumably) earlier, it will fail, and use the internal
35994         re-implementation.
35995         (use_win32_p): New function.
35996         (getaddrinfo): Use strtoul on servname, to support numeric ports.
35997         Support AI_NUMERICSERV to disable getservbyname.
35998         (getnameinfo): New function, only supports
35999         NI_NUMERICHOST|NI_NUMERICSERV for now.
36000
36001         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
36002         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
36003         getnameinfo.
36004
36005 2006-06-28  Eric Blake  <ebb9@byu.net>
36006
36007         * modules/wcwidth: New file.
36008         * modules/mbchar (Depends-on): Add wcwidth.
36009         * modules/mbswidth (Depends-on): Add wcwidth.
36010         * MODULES.html.sh: Add wcwidth.
36011
36012 2006-06-28  Eric Blake  <ebb9@byu.net>
36013
36014         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
36015         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
36016
36017 2006-06-28  Eric Blake  <ebb9@byu.net>
36018
36019         * lib/xvasprintf.h: Fix comments.
36020
36021 2006-06-28  Eric Blake  <ebb9@byu.net>
36022
36023         * lib/mbchar.h (wcwidth): Include wcwidth.h.
36024         * lib/mbswidth.c (wcwidth): Move from here...
36025         * lib/wcwidth.h: ...to this new file.
36026
36027 2006-06-28  Derek R. Price  <derek@ximbiot.com>
36028
36029         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
36030
36031         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
36032         it's obsolete.
36033         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
36034
36035 2006-06-28  Derek R. Price  <derek@ximbiot.com>
36036
36037         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
36038         Autoconf 2.60 says this stuff was obsolete.
36039
36040 2006-06-28  Bruno Haible  <bruno@clisp.org>
36041
36042         * modules/wcwidth (Files): Add m4/wchar_t.m4.
36043
36044 2006-06-28  Bruno Haible  <bruno@clisp.org>
36045
36046         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
36047         gt_TYPE_WCHAR_T.
36048
36049 2006-06-28  Bruno Haible  <bruno@clisp.org>
36050
36051         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
36052         declaration for wcwidth.
36053         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
36054
36055 2006-06-28  Bruno Haible  <bruno@clisp.org>
36056
36057         * lib/mkdtemp.c [MINGW]: Include <io.h>.
36058         (mkdir): Define using _mkdir.
36059
36060 2006-06-28  Bruno Haible  <bruno@clisp.org>
36061
36062         * lib/getaddrinfo.h: Fix POSIX URL.
36063         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
36064         _WIN32.
36065         (use_win32_p): Make static.
36066         (getaddrinfo): Reject service name if it is empty or does not consist
36067         solely of decimal digits, or if its value is > 65535.
36068         (getnameinfo): Remove useless casts.
36069
36070 2006-06-27  Simon Josefsson  <jas@extundo.com>
36071
36072         * modules/sys_select: New file, suggested by Bruno Haible, Paul
36073         Eggert and Martin Lambers.
36074
36075 2006-06-27  Simon Josefsson  <jas@extundo.com>
36076
36077         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
36078         Eggert and Martin Lambers.
36079
36080 2006-06-27  Bruno Haible  <bruno@clisp.org>
36081
36082         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
36083         result to 0, not to empty.
36084         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
36085
36086 2006-06-27  Bruno Haible  <bruno@clisp.org>
36087
36088         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
36089
36090 2006-06-26  Simon Josefsson  <jas@extundo.com>
36091
36092         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
36093         present.
36094
36095 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
36096
36097         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
36098         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
36099         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
36100
36101 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
36102
36103         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
36104
36105 2006-06-26  Bruno Haible  <bruno@clisp.org>
36106
36107         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
36108
36109 2006-06-26  Bruno Haible  <bruno@clisp.org>
36110
36111         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
36112
36113 2006-06-26  Bruno Haible  <bruno@clisp.org>
36114
36115         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
36116         SGI C compiler in pre-C99 mode.
36117         Suggested by Mark D. Baushke and Larry Jones.
36118
36119 2006-06-26  Bruno Haible  <bruno@clisp.org>
36120
36121         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
36122         WCHAR_MAX.
36123         Reported by Mark D. Baushke and Larry Jones.
36124
36125 2006-06-26  Bruno Haible  <bruno@clisp.org>
36126
36127         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
36128         in pre-C99 mode.
36129         Suggested by Mark D. Baushke and Larry Jones.
36130
36131 2006-06-23  Simon Josefsson  <jas@extundo.com>
36132             Bruno Haible  <bruno@clisp.org>
36133
36134         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
36135         Emit mostlyclean-local rule.
36136         (func_emit_tests_Makefile_am): Likewise.
36137         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
36138
36139 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
36140
36141         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
36142
36143 2006-06-23  Bruno Haible  <bruno@clisp.org>
36144
36145         * tests/test-stdint.c: Update to match ISO C 99 Technical
36146         Corrigendum 1.
36147
36148 2006-06-23  Bruno Haible  <bruno@clisp.org>
36149
36150         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
36151
36152 2006-06-23  Bruno Haible  <bruno@clisp.org>
36153
36154         * lib/stdint_.h: Treat IRIX like OpenBSD.
36155
36156 2006-06-23  Bruno Haible  <bruno@clisp.org>
36157
36158         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
36159         ISO C 99 Technical Corrigendum 1.
36160
36161 2006-06-22  Simon Josefsson  <jas@extundo.com>
36162
36163         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
36164         MinGW.
36165
36166 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
36167
36168         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
36169         needed.  Some compiler complained about some of them.  Problem reported
36170         by Larry Jones in
36171         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
36172
36173 2006-06-21  Simon Josefsson  <jas@extundo.com>
36174
36175         * tests/test-getaddrinfo.c: New file.
36176
36177         * modules/getaddrinfo-tests: New file.
36178
36179         * MODULES.html.sh: Add inet_pton.
36180
36181         * modules/inet_pton: New file.
36182
36183 2006-06-21  Simon Josefsson  <jas@extundo.com>
36184
36185         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
36186         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
36187         of using the (limited) gnulib implementation on Windows XP.
36188
36189         * m4/inet_pton.m4: New file.
36190
36191 2006-06-21  Simon Josefsson  <jas@extundo.com>
36192
36193         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
36194         variable.
36195
36196         * lib/socket_.h: Don't define WINVER.
36197
36198         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
36199         slightly modified to work in gnulib.
36200
36201 2006-06-21  Simon Josefsson  <jas@extundo.com>
36202
36203         * doc/gnulib.texi (Windows sockets): Add.
36204
36205 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
36206
36207         * lib/read-file.c (fread_file): Start with buffer allocation of
36208         0 bytes rather than 1 byte; this simplifies the code.
36209         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
36210         code to free buffer and save/restore errno.
36211         (internal_read_file): Remove unused local.
36212
36213 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
36214
36215         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
36216         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
36217         Problem reported by Denis Excoffier in
36218         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
36219
36220 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36221
36222         * modules/sys_socket, modules/socklen: Include sys/types since
36223         FreeBSD 4.x's sys/socket.h needs it.
36224
36225 2006-06-19  Simon Josefsson  <jas@extundo.com>
36226
36227         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
36228
36229 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
36230
36231         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
36232
36233 2006-06-19  Bruno Haible  <bruno@clisp.org>
36234
36235         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
36236         and FULL_PATH_INTTYPES_H in angle brackets.
36237         Reported by Mark D. Baushke <mdb@gnu.org>.
36238
36239 2006-06-17  Eric Blake  <ebb9@byu.net>
36240
36241         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
36242         errno.
36243
36244 2006-06-17  Bruno Haible  <bruno@clisp.org>
36245
36246         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
36247         <sys/inttypes.h>.
36248
36249 2006-06-17  Bruno Haible  <bruno@clisp.org>
36250
36251         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
36252         whether errno is declared. Assume <errno.h> declares errno.
36253
36254 2006-06-17  Bruno Haible  <bruno@clisp.org>
36255
36256         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
36257
36258 2006-06-17  Bruno Haible  <bruno@clisp.org>
36259
36260         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
36261         problem on Solaris 2.5.1.
36262
36263 2006-06-16  Eric Blake  <ebb9@byu.net>
36264
36265         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
36266         * lib/unicodeio.c [!defined errno]: Likewise.
36267         * lib/strtol.c [!defined errno]: Likewise.
36268         * lib/strtod.c [!defined errno]: Likewise.
36269
36270 2006-06-15  Eric Blake  <ebb9@byu.net>
36271
36272         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
36273
36274 2006-06-15  Eric Blake  <ebb9@byu.net>
36275
36276         * config/srclist.txt (ssize_t.m4): Lose sync.
36277
36278 2006-06-15  Bruno Haible  <bruno@clisp.org>
36279
36280         * modules/stdint (Files): Include m4/full-header-path.m4,
36281         m4/size_max.m4, m4/wchar_t.m4.
36282         (Makefile.am): Many more substitutions.
36283         * modules/stdint-tests: New file.
36284         * tests/test-stdint.c: New file.
36285
36286 2006-06-15  Bruno Haible  <bruno@clisp.org>
36287
36288         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
36289         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
36290         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
36291         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
36292         gl_CHECK_TYPE_SAME): New macros.
36293
36294 2006-06-15  Bruno Haible  <bruno@clisp.org>
36295
36296         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
36297
36298 2006-06-15  Bruno Haible  <bruno@clisp.org>
36299
36300         * lib/stdint_.h: Rewritten to be fully auto-configured.
36301         Fixes bug on HP-UX/IA64.
36302
36303 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
36304
36305         * lib/getdate.y (__attribute__): Don't define if already defined.
36306         Problem reported by Larry Jones.
36307         * lib/utimens.c (__attribute__): Likewise.
36308
36309 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
36310
36311         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
36312         reported by Andreas Schwab.
36313
36314 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36315             Bruno Haible  <bruno@clisp.org>
36316
36317         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
36318         check for the declaration of strnlen and a run test that exposes the
36319         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
36320         rpl_strndup.
36321
36322 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36323             Bruno Haible  <bruno@clisp.org>
36324
36325         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
36326
36327 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36328
36329         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
36330         compile test, for Tru64 4.0D.
36331
36332 2006-05-28  Karl Berry  <karl@gnu.org>
36333
36334         * config/srclist.txt (printf-args.c): lose sync.
36335
36336 2006-05-26  Martin Lambers  <marlam@marlam.de>
36337
36338         * lib/getpass.c: Updates the test for the native W32 API, and adds
36339         missing includes, thus fixing compilation warnings.
36340
36341 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36342
36343         * lib/exclude.c (exclude_fnmatch): New function.
36344         (excluded_file_name): Call exclude_fnmatch.
36345         * lib/exclude.h (excluded_file_name): New prototype
36346
36347 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
36348
36349         * lib/tempname.c (small_open, large_open): New macros.
36350         (__open, __open64) [!_LIBC]: Remove.
36351         (__gen_tempname): Use small_open and large_open instead of __open
36352         and __open64.  This fixes a portability bug on HP-UX 11.11i
36353         reported by Simon Wing-Tang in
36354         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
36355
36356 2006-05-24  Bruno Haible  <bruno@clisp.org>
36357
36358         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
36359         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
36360         Reported by Thorsten Maerz <torte@netztorte.de> via
36361         Aaron Stone <aaron@serendipity.cx>.
36362
36363 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
36364
36365         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
36366         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
36367         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
36368         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
36369         not really conditional on the cache.
36370         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
36371
36372 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
36373
36374         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
36375         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
36376         (my_usleep): Don't mishandle maximum value.
36377
36378 2006-05-19  Jim Meyering  <jim@meyering.net>
36379
36380         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
36381
36382 2006-05-17  Bruno Haible  <bruno@clisp.org>
36383
36384         Cygwin portability.
36385         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
36386
36387 2006-05-17  Bruno Haible  <bruno@clisp.org>
36388
36389         * lib/stdint_.h: Fix recognition of Cygwin.
36390
36391 2006-05-15  Bruno Haible  <bruno@clisp.org>
36392
36393         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
36394         on libtool patch by Ralf Wildenhues.
36395
36396 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
36397
36398         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
36399         test for C99 conformance; (bool) 0.5 is an integer constant
36400         expression, but (bool) -0.5 is not.  Problem reported by Fedor
36401         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
36402
36403 2006-05-11  Simon Josefsson  <jas@extundo.com>
36404
36405         * m4/xvasprintf.m4: Fix obvious typo.
36406
36407 2006-05-11  Jim Meyering  <jim@meyering.net>
36408
36409         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
36410         James Lemley.
36411
36412 2006-05-10  Simon Josefsson  <jas@extundo.com>
36413
36414         * lib/md4.c: Typo fix, update copyright years.
36415         (K1, K2): Don't use L because it turn computations into 64-bit on
36416         64-bit platforms.
36417
36418 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
36419
36420         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
36421         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
36422         unwanted sign propagation, e.g., on hosts with 64-bit int.
36423         There still are some problems with reeelly weird theoretical hosts
36424         (e.g., 33-bit int) but it's not worth worrying about now.
36425         * lib/sha1.c (rol): Likewise.
36426         (K1, K2, K3, K4): Remove unnecessary L suffix.
36427
36428 2006-05-10  Bruno Haible  <bruno@clisp.org>
36429
36430         * lib/des.c: Cast to avoid warnings.
36431
36432 2006-05-09  Bruno Haible  <bruno@clisp.org>
36433
36434         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
36435         (Depends-on): Depend also on xsize, stdarg.
36436         (configure.ac): Add gl_XVASPRINTF.
36437
36438 2006-05-09  Bruno Haible  <bruno@clisp.org>
36439
36440         * m4/xvasprintf.m4: New file.
36441
36442 2006-05-09  Bruno Haible  <bruno@clisp.org>
36443
36444         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
36445         (EOVERFLOW): Define fallback value.
36446         (xstrcat): New function.
36447         (xvasprintf): Recognize the special case of a string concatenation.
36448
36449 2006-05-08  Eric Blake  <ebb9@byu.net>
36450
36451         * gnulib-tool (func_version): Base copyright year on CVS date.
36452         (func_emit_copyright_notice): New function.
36453         (func_emit_lib_Makefile_am): Use it.
36454         (func_emit_tests_Makefile_am): Likewise.
36455         (func_import): Likewise.
36456
36457 2006-05-08  Bruno Haible  <bruno@clisp.org>
36458
36459         * modules/stdarg: New file.
36460         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
36461
36462 2006-05-08  Bruno Haible  <bruno@clisp.org>
36463
36464         * m4/stdarg.m4: New file, from GNU gettext.
36465
36466 2006-05-08  Bruno Haible  <bruno@clisp.org>
36467
36468         * config/srclist.txt (build-aux/config.rpath): different from latest
36469         release.
36470
36471 2006-05-08  Bruno Haible  <bruno@clisp.org>
36472
36473         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
36474
36475 2006-05-05  Jim Meyering  <jim@meyering.net>
36476
36477         * m4/warning.m4: New file, derived from bison's file by the same name.
36478
36479 2006-05-03  Bruno Haible  <bruno@clisp.org>
36480
36481         * lib/stdint_.h: Shorter URL.
36482         * lib/inttypes.h: Likewise.
36483
36484 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
36485
36486         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
36487
36488 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
36489
36490         * lib/verify.h: Document the internals better.  Most of this change
36491         was written by Bruno Haible.
36492
36493 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
36494
36495         * doc/verify.texi: New file, partly based on a proposal by
36496         Bruno Haible.
36497
36498 2006-05-02  Bruno Haible  <bruno@clisp.org>
36499
36500         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
36501         test from here...
36502         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
36503
36504 2006-04-29  Bruno Haible  <bruno@clisp.org>
36505
36506         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
36507         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
36508
36509 2006-04-29  Bruno Haible  <bruno@clisp.org>
36510
36511         * gnulib-tool: Make --update option actually work.
36512
36513 2006-04-29  Bruno Haible  <bruno@clisp.org>
36514
36515         * doc/gcd.texi: New file.
36516         * doc/gnulib.texi: Include it.
36517
36518 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
36519
36520         * lib/getdate.y (get_date): When adding relative date, start with the
36521         initial time, not with the result of the first mktime call.
36522
36523 2006-04-25  Bruno Haible  <bruno@clisp.org>
36524
36525         * gnulib-tool (func_import): Output the include directives in three
36526         blocks, sorted separately.
36527         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36528
36529 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
36530
36531         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
36532         to define main with arguments, for C++.  Reported by Eric Blake.
36533         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
36534         Prefer 'int main ()' to 'int main (void)', for C++.
36535         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
36536         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
36537         for 'main', for C99 and C++.
36538
36539 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
36540
36541         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
36542         Don't assume that exit status -1 is valid.
36543         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36544         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
36545         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
36546         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
36547         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
36548         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
36549         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
36550         functions can be used without declaring them, or that you can
36551         exit with status -1.
36552         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
36553
36554 2006-04-24  Karl Berry  <karl@gnu.org>
36555
36556         * config/srclist.txt (longdouble.m4): sync lost.
36557
36558 2006-04-24  Eric Blake  <ebb9@byu.net>
36559
36560         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
36561
36562 2006-04-24  Bruno Haible  <bruno@clisp.org>
36563
36564         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
36565         poll() implementation in AIX.
36566         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36567
36568 2006-04-24  Bruno Haible  <bruno@clisp.org>
36569
36570         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
36571         assigned exactly once.
36572
36573 2006-04-23  Claudio Fontana  <claudio@gnu.org>
36574             Bruno Haible  <bruno@clisp.org>
36575
36576         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
36577         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
36578         for AM_CPPFLAGS.
36579
36580 2006-04-23  Bruno Haible  <bruno@clisp.org>
36581
36582         * modules/copy-file: Depend on unistd.
36583         * modules/execute: Likewise.
36584         * modules/fatal-signal: Likewise.
36585         * modules/findprog: Likewise.
36586         * modules/mkdtemp : Likewise.
36587         * modules/pipe: Likewise.
36588         * modules/wait-process: Likewise.
36589
36590 2006-04-23  Bruno Haible  <bruno@clisp.org>
36591
36592         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
36593         condition was already detected.
36594         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36595
36596 2006-04-23  Bruno Haible  <bruno@clisp.org>
36597
36598         * lib/copy-file.c: Include <unistd.h> unconditionally.
36599         * lib/execute.c: Likewise.
36600         * lib/fatal-signal.c: Likewise.
36601         * lib/findprog.c: Likewise.
36602         * lib/mkdtemp.c: Likewise.
36603         * lib/pipe.h: Likewise.
36604         * lib/pipe.c: Likewise.
36605         * lib/wait-process.h: Likewise.
36606
36607 2006-04-23  Bruno Haible  <bruno@clisp.org>
36608
36609         * gnulib-tool (func_usage): Fix --import description. Document
36610         --update.
36611         (func_import): Create temporary file in a temporary directory, if
36612         --dry-run is specified. Silence errors from 'grep' when there are no
36613         m4 files in $m4dir.
36614         (func_create_testdir): Silence errors from 'grep' when there are no
36615         m4 files in $m4dir.
36616         Reported by Karl Berry <karl@freefriends.org>.
36617
36618 2006-04-20  Bruno Haible  <bruno@clisp.org>
36619
36620         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
36621         one argument, so that the code will be portable to Autoconf 2.60.
36622         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
36623         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
36624         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
36625
36626 2006-04-19  Derek Price  <derek@ximbiot.com>
36627             Eric Blake  <ebb9@byu.net>
36628
36629         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
36630         rather than "/full/path.h".  Update comment to match.  Shorten &
36631         generalize m4_translit call via AS_TR_CPP.
36632
36633 2006-04-19  Derek Price  <derek@ximbiot.com>
36634             Eric Blake  <ebb9@byu.net>
36635
36636         * lib/inttypes.h: Correct grammar in comment.
36637
36638 2006-04-18  Derek Price  <derek@ximbiot.com>
36639             Paul Eggert  <eggert@cs.ucla.edu>
36640
36641         * modules/inttypes: New file.
36642         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
36643
36644 2006-04-18  Derek Price  <derek@ximbiot.com>
36645             Paul Eggert  <eggert@cs.ucla.edu>
36646
36647         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
36648         New files.
36649
36650 2006-04-18  Derek Price  <derek@ximbiot.com>
36651             Paul Eggert  <eggert@cs.ucla.edu>
36652
36653         * lib/inttypes.h: New file.
36654         * lib/strtoimax.c: Assume <inttypes.h>.
36655
36656 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
36657
36658         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
36659         isn't mounted.  Problem reported by Kir Kolyshkin.
36660
36661 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
36662
36663         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
36664         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
36665         Derek R. Price.
36666         * lib/regex.h (RE_DUP_MAX): Update comment to match current
36667         implementation.
36668
36669 2006-04-12  Eric Blake  <ebb9@byu.net>
36670
36671         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
36672         is now done automatically by the corresponding Autoconf macro.
36673
36674 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
36675
36676         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
36677         time_r.h.
36678
36679 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
36680
36681         Merge regex changes from libc, removing some of our
36682         POSIX-conformance changes that were rejected and redoing them in a
36683         less-intrusive way.
36684
36685         * lib/regcomp.c (re_compile_internal, init_dfa):
36686         Length arg is now size_t, not Idx.  All uses changed.
36687         (peek_token): Forward decl now says internal_function.
36688         (__re_error_msgid, __re_error_msgid_idx):
36689         Now static rather than extern with attribute_hidden.
36690         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
36691         For some reason libc prefers K&R style defns for external functions.
36692         (regerror) [!defined _LIBC]: Likewise.
36693         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
36694         (seek_collating_symbol_entry, lookup_collation_sequence_value):
36695         (build_range_exp, build_collating_symbol):
36696         Use K&R-style defn.
36697         (re_compile_fastmap): Use '\0' to memset, not 0.
36698         (utf8_sb_map): Make the calculations more obvious.
36699         (init_dfa, parse_bracket_exp, build_charclass_op):
36700         Call calloc and cast result, as glibc does.
36701         (init_word_char, fetch_token, peek_token, peek_token_bracket):
36702         (build_range_exp, build_collating_symbol):
36703         Now internal functions.
36704
36705         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
36706
36707         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
36708         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
36709         Don't depend on VMS; depend on __VMS instead, for POSIX
36710         namespace cleanness.
36711         (regoff_t): Define to ssize_t, not long int.
36712
36713         Remove the REG_ macros named below.  Instead, make the old names
36714         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
36715         __USE_GNU_REGEX.
36716         (REG_BACKSLASH_ESCAPE_IN_LISTS):
36717         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
36718         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
36719         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
36720         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
36721         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
36722         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
36723         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
36724         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
36725         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
36726         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
36727         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
36728         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
36729         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
36730         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
36731         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
36732         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
36733         (REG_NREGS):
36734         Remove.  All uses replaced by the old RE_* names.
36735         (RE_BACKSLASH_ESCAPE_IN_LISTS):
36736         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
36737         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
36738         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
36739         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
36740         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
36741         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
36742         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
36743         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
36744         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
36745         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
36746         Don't bother having these macros be independent of each others'
36747         values, since they no longer exist in the POSIX name space.
36748
36749         Rename the following member names back to their old names,
36750         unless !__USE_GNU_REGEX.  All uses changed back.
36751         (buffer): Renamed from re_buffer.
36752         (allocated): Renamed from re_allocated.
36753         (used): Renamed from re_used.
36754         (syntax): Renamed from re_syntax.
36755         (fastmap): Renamed from re_fastmap.
36756         (translate): Renamed from re_translate.
36757         (can_be_null): Renamed from re_can_be_null.
36758         (regs_allocated): Renamed from re_regs_allocated.
36759         (fastmap_accurate): Renamed from re_fastmap_accurate.
36760         (no_sub): Renamed from re_no_sub.
36761         (not_bol): Renamed from re_not_bol.
36762         (not_eol): Renamed from re_not_eol.
36763         (newline_anchor): Renamed from re_newline_anchor.
36764         (num_regs): Renamed from rm_num_regs.
36765         (start): Renamed from rm_start.
36766         (end): Renamed from rm_end.
36767
36768         (free_state): Move up a bit.
36769
36770         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
36771         #define to be empty.
36772         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
36773         when that is what is intended.
36774         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
36775         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
36776         (MAX): New macro.
36777         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
36778         All uses changed back to re_malloc, etc.  It's now the caller's
36779         responsibility to check for overflow; all callers changed.
36780         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
36781         (re_x2nrealloc): Remove.
36782         (free_state): Remove decl.
36783
36784         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
36785         (re_set_registers, re_exec):
36786         Use K&R-style defn.
36787
36788         2006-01-31  Roland McGrath  <roland@redhat.com>
36789
36790         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
36791         Reported by Mike Frysinger <vapier@gentoo.org>.
36792
36793         2006-01-15  Andreas Jaeger  <aj@suse.de>
36794
36795         [BZ #1950]
36796         * lib/regex_internal.c (re_string_reconstruct): Adjust for
36797         build_wcs_upper_buffer change.
36798         (build_wcs_upper_buffer): Change return type.
36799
36800         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
36801
36802         * lib/regex_internal.h: Include <stdint.h> if available.
36803
36804         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
36805
36806         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
36807
36808         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
36809
36810         * lib/regcomp.c: Adjust for changed secondary hash function.
36811
36812         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
36813
36814         * lib/regex.h: Pretty printing.
36815         Clean up namespace a bit.
36816
36817         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
36818
36819         * lib/regexec.c (update_cur_sifted_state, check_arrival,
36820         check_arrival_add_next_nodes): Avoid using uninitialized variable.
36821
36822         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
36823                     Ulrich Drepper  <drepper@redhat.com>
36824
36825         [BZ #1302]
36826         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
36827         changed.
36828         (bitset_word_t): Renamed from bitset_word.  All uses changed.
36829
36830         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
36831
36832         [BZ #281]
36833         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
36834         * lib/regcomp.c: Remove unnecessary uses of
36835         unsigned RE_TRANSLATE_TYPE.
36836         * lib/regex_internal.h: Likewise.
36837         * lib/regex_internal.c: Likewise.
36838         * lib/regexec.c: Likewise.
36839         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
36840
36841         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
36842
36843         * lib/regexec.c (find_recover_state): Remove unnecessary
36844         initialization.
36845         (transit_state_bkref): Make DFA a const pointer.
36846         (get_subexp): Likewise.
36847         (check_arrival): Likewise.
36848         (update_cur_sifted_state): Likewise.
36849         (re_search_internal): Likewise.
36850         (prune_impossible_nodes): Likewise.
36851         (acquire_init_state_context): Likewise.
36852         (proceed_next_node): Likewise.
36853         (set_regs): Likewise.
36854         (free_fail_stack_return): Likewise.
36855         (check_arrival_expand_ecl): Mark DFA parameter as const.
36856         (check_arrival_expand_ecl_sub): Likewise.
36857         (check_subexp_limits): Likewise.
36858         (sub_epsilon_src_nodes):  Likewise.
36859         (add_epsilon_src_nodes):  Likewise.
36860         (merge_state_array): Likewise.
36861         (update_regs): Likewise.
36862         (build_trtable): Likewise.
36863         (sift_states_backward): Mark MCTX parameter as const.
36864         (build_sifted_states): Likewise.
36865         (update_cur_sifted_state): Likewise.
36866         (sift_states_mkref): Likewise.
36867         (check_arrival_expand_ecl): Mark eclosure as const.
36868         (check_dst_limits_calc_pos_1): Likewise.
36869         * lib/regex_internal.h (re_match_context_t): Make dfa a const
36870         pointer.
36871
36872         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
36873
36874         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
36875         (transit_state_sb): Likewise.
36876         (transit_state_mb): Likewise.
36877         (sift_states_iter_mb): Likewise.
36878         (check_arrival_add_next_nodes): Likewise.
36879         (check_node_accept_bytes): Change first parameter to pointer-to-const.
36880         [_LIBC] (re_search_2_stub): Use mempcpy.
36881
36882         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
36883         mbrtowc for very simple UTF-8 case.
36884
36885         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
36886         a pointer-to-const.
36887         (re_acquire_state_context): Likewise.
36888         * lib/regex_internal.h: Adjust prototypes.
36889
36890         * lib/regex.c: Prevent using C++ compilers.
36891
36892         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
36893         (re_acquire_state_context): Likewise.
36894
36895 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
36896
36897         * modules/regex (Depends-on): Add ssize_t.
36898
36899 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
36900
36901         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
36902         translation table.
36903
36904 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
36905
36906         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
36907
36908 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
36909             Bruno Haible  <bruno@clisp.org>
36910
36911         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
36912         <sys/types.h> and <inttypes.h>.
36913
36914 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36915
36916         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
36917         `__error_t_defined', so argp.h will not typedef the former.
36918
36919 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
36920
36921         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
36922         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
36923         glibc names.  Even if glibc is changed to conform to POSIX, the
36924         traditional names will be available anyway, since regex depends on
36925         the extensions module.  Also, fix a longstanding typo in the
36926         implementation of Spencer ERE test #75 from grep 2.3.  Problems
36927         reported by Emanuele Giaquinta.  Also, change sense of cached
36928         variable, so that the message makes sense.
36929
36930 2006-03-24  Simon Josefsson  <jas@extundo.com>
36931
36932         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
36933         including some doc fixes.
36934         (base64_encode_alloc): Fix +1 bug on allocation failures.
36935
36936 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36937
36938         * lib/base64.c (base64_encode): Do not read past end of array with
36939         unsanitized input on systems with CHAR_BIT > 8.
36940
36941 2006-03-24  Eric Blake  <ebb9@byu.net>
36942
36943         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
36944
36945 2006-03-22  Karl Berry  <karl@gnu.org>
36946
36947         * config/srclist.txt (*setenv.[ch]): get from coreutils.
36948         * config/srclistvars.sh (COREUTILS): new var.
36949
36950 2006-03-17  Jim Meyering  <jim@meyering.net>
36951
36952         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
36953         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
36954
36955 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
36956
36957         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
36958         no longer needs it.  Instead, check that regoff_t is as least
36959         as wide as ptrdiff_t.
36960
36961         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
36962         so that our regex.h stays compatible with the installed regex.
36963         This is helpful for installers who configure --without-included-regex.
36964         Problem reported by Emanuele Giaquinta.
36965
36966 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
36967
36968         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
36969         Typedef to long int, not to off_, as POSIX will likely change
36970         in that direction.
36971
36972 2006-03-15  Eric Blake  <ebb9@byu.net>
36973
36974         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
36975
36976 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
36977
36978         * lib/argp-help.c (validate_uparams): Fix typo
36979         * lib/argp-parse.c (argp_default_options): Consistently begin help
36980         messages with a lowercase letter.
36981
36982 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
36983
36984         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
36985         overrun buffers and shouldn't be used (much as gets shouldn't be
36986         used).
36987         * lib/time_r.c (asctime_r, ctime_r): Likewise.
36988
36989 2006-03-08  Simon Josefsson  <jas@extundo.com>
36990
36991         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
36992         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36993
36994 2006-03-08  Simon Josefsson  <jas@extundo.com>
36995
36996         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
36997         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36998
36999 2006-03-08  Simon Josefsson  <jas@extundo.com>
37000
37001         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
37002         signal that configure disabled the device.
37003
37004 2006-03-08  Simon Josefsson  <jas@extundo.com>
37005
37006         * build-aux/maint.mk: Fix refresh-po, to handle no translated
37007         languages.
37008
37009 2006-03-07  Simon Josefsson  <jas@extundo.com>
37010
37011         * modules/getopt (Depends-on): Add unistd.
37012
37013         * modules/unistd: New file.
37014
37015 2006-03-07  Simon Josefsson  <jas@extundo.com>
37016
37017         * modules/gc-random: New file.
37018
37019 2006-03-07  Simon Josefsson  <jas@extundo.com>
37020
37021         * m4/unistd_h.m4: New file.
37022
37023 2006-03-07  Simon Josefsson  <jas@extundo.com>
37024
37025         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
37026         test to be side-effect free by storing the result in the cache
37027         variable gl_cv_lib_readline, and moving the assignment of
37028         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
37029         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37030
37031 2006-03-07  Simon Josefsson  <jas@extundo.com>
37032
37033         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
37034         error on missing devices (the functions will return an error).
37035
37036         * m4/gc.m4: Move random stuff to gc-random.m4
37037
37038 2006-03-07  Simon Josefsson  <jas@extundo.com>
37039
37040         * lib/unistd_.h: New file.
37041
37042 2006-03-07  Simon Josefsson  <jas@extundo.com>
37043
37044         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
37045
37046 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
37047
37048         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
37049         Problem reported by Juan Manuel Guerrero.
37050
37051 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
37052
37053         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
37054         the unistd module.
37055         * lib/getlogin_r.c: Likewise.
37056         * lib/getlogin_r.h: Likewise.
37057         * lib/glob.c: Likewise.
37058         * lib/pagealign_alloc.c: Likewise.
37059         * lib/unistd_.h: Remove; no longer needed.
37060
37061 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
37062
37063         * MODULES.html.sh (Support for systems lacking POSIX:2001):
37064         Add unistd.
37065         * modules/c-stack (Depends-on): Add unistd.
37066         * modules/getlogin_r: Likewise.
37067         * modules/glob: Likewise.
37068         * modules/pagealign_alloc: Likewise.
37069         * modules/unistd (Files): Remove lib/unistd_.h.
37070         (EXTRA_DIST): Remove.
37071         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
37072         need unistd_.h.
37073         (MOSTLYCLEANFILES): Remove unistd.h-t.
37074
37075 2006-03-03  Simon Josefsson  <jas@extundo.com>
37076
37077         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
37078
37079 2006-03-03  Simon Josefsson  <jas@extundo.com>
37080
37081         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
37082         libidn and bison.
37083
37084 2006-03-03  Simon Josefsson  <jas@extundo.com>
37085
37086         * build-aux/maint.mk: Add indent target.
37087
37088 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
37089
37090         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
37091         our replacement poll.h in any case, to avoid a differing
37092         declaration from a system header.  Seen on AIX.
37093
37094 2006-03-01  Simon Josefsson  <jas@extundo.com>
37095
37096         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
37097         <kasal@ucw.cz>.
37098
37099 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
37100
37101         * modules/gettime (Depends-on): Add extensions module.
37102         * modules/nanosleep (Depends-on): Likewise.
37103         * modules/settime (Depends-on): Likewise.
37104
37105 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
37106
37107         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
37108         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
37109         pedantically.
37110         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
37111         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
37112
37113         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
37114         not "==".  Reported by Ralf Wildenhues.
37115
37116 2006-03-01  Karl Berry  <karl@gnu.org>
37117
37118         * doc/Copyright/request-*: new files, synced from gnuorg.
37119
37120 2006-03-01  Karl Berry  <karl@gnu.org>
37121
37122         * config/srclist.txt (Copyright/*): new entries.
37123
37124 2006-02-28  Simon Josefsson  <jas@extundo.com>
37125
37126         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
37127
37128 2006-02-27  Simon Josefsson  <jas@extundo.com>
37129
37130         * lib/base64.h: Indent #define's.  From Jim Meyering
37131         <jim@meyering.net>.
37132
37133 2006-02-27  Jim Meyering  <jim@meyering.net>
37134
37135         Revert the change of 2006-02-24, so these files can continue
37136         to be sync'd from gettext.
37137         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
37138         of `config.h'.
37139
37140 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
37141
37142         * modules/intprops: New file.
37143         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
37144         Add intprops.
37145         * modules/getloadavg (Files): Remove lib/intprops.h.
37146         (Depends-on): Add intprops.
37147         * modules/human: Likewise.
37148         * modules/inttostr: Likewise.
37149         * modules/openat: Likewise.
37150         * modules/sig2str: Likewise.
37151         * modules/userspec: Likewise.
37152         * modules/utimecmp: Likewise.
37153         * modules/xnanosleep: Likewise.
37154         * modules/xstrtol: Likewise.
37155
37156 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
37157
37158         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
37159         * modules/lock-tests (TESTS): Use $(EXEEXT).
37160         * modules/tls-tests: Likewise.
37161         * modules/argp-tests: Likewise.
37162         (check_PROGRAMS): New var, replacing...
37163         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
37164
37165 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37166
37167         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
37168         `config.h'.
37169
37170 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
37171
37172         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
37173
37174 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37175
37176         Sync from coreutils.
37177         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
37178         gl_CHDIR_SAFER.
37179
37180 2006-02-22  Jim Meyering  <jim@meyering.net>
37181
37182         Sync from coreutils.
37183         * m4/chdir-safer.m4: New file.
37184
37185 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
37186
37187         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
37188         AT_FDCWD exceeds INT_MAX.
37189         * lib/openat.h (AT_FDCWD): Likewise.
37190
37191 2006-02-17  Eric Blake  <address@hidden>
37192
37193         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
37194
37195 2006-02-16  Simon Josefsson  <jas@extundo.com>
37196
37197         * modules/getaddrinfo (Depends-on): Add sys_socket.
37198
37199 2006-02-15  Simon Josefsson  <jas@extundo.com>
37200
37201         * build-aux/maint.mk: Add dsyntax-check rule.
37202
37203 2006-02-15  Eric Blake  <ebb9@byu.net>
37204
37205         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
37206         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
37207         'present but cannot compile' warnings on cygwin.
37208         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
37209         use ws2tcpip.h if sys/socket.h works.
37210         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
37211         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
37212
37213 2006-02-14  Simon Josefsson  <jas@extundo.com>
37214
37215         * modules/maintainer-makefile (Files): Rename.
37216
37217         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
37218         and (the local) Makefile.cfg to maint-cfg.mk.
37219
37220         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
37221         to the latter.
37222
37223         * modules/maintainer-makefile: New module.
37224
37225         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
37226         severaly stripped to make it possible to build it up from scratch
37227         with reliable tests.
37228
37229         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
37230         fixes to permit overriding the default actions when configure and
37231         makefile are not available.
37232
37233 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
37234
37235         Sync from coreutils.
37236         * modules/lstat (Depends-on): Don't depend on xalloc.
37237         (License): Change from GPL to LGPL, since this is now simply a
37238         replacement for a libc function.
37239
37240 2006-02-14  Jim Meyering  <jim@meyering.net>
37241
37242         Sync from coreutils.
37243
37244         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
37245         failure on deficient systems, and simplify gnulib lgpl dependencies.
37246         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
37247         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
37248
37249         * lib/xalloc-die.c: Remove unused definition of N_.
37250
37251 2006-02-14  Jim Meyering  <jim@meyering.net>
37252
37253         Sync from coreutils.
37254         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
37255         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
37256         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
37257         double-quote uses of that variable, to accommodate the rare case in
37258         which getmntent is available in none of the libraries checked.  This
37259         happens at least on FreeBSD 5.0.
37260
37261 2006-02-13  Simon Josefsson  <jas@extundo.com>
37262
37263         * gnulib-tool (Usage): Fix --import, from
37264         karl@freefriends.org (Karl Berry).
37265
37266 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
37267
37268         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
37269
37270 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
37271
37272         * lib/argp-namefrob.h: Restore changes accidentally lost during the
37273         "autoupdate" on 2005-12-12.
37274
37275 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
37276
37277         * modules/closeout (Depends-on): Remove atexit.
37278
37279 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
37280
37281         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
37282         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
37283
37284 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
37285
37286         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
37287         __EXTENSIONS__ if this causes compilation to fail.  Problem
37288         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
37289         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
37290
37291 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
37292
37293         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
37294         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
37295         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
37296         All uses changed.
37297
37298 2006-01-26  Simon Josefsson  <jas@extundo.com>
37299
37300         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
37301         prototype is visible on mingw32.
37302
37303         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
37304         for mingw32.
37305
37306         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
37307         mingw32).
37308
37309 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
37310
37311         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
37312         attempt to open for write; this always fails, at least on POSIX
37313         hosts.  This reinstates the 2006-01-09 change, which was
37314         inadvertently removed.
37315
37316 2006-01-26  Bruno Haible  <bruno@clisp.org>
37317
37318         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
37319         Reported by Paul Eggert.
37320
37321 2006-01-26  Bruno Haible  <bruno@clisp.org>
37322             Paul Eggert  <eggert@cs.ucla.edu>
37323
37324         * lib/stdbool_.h (_Bool)
37325         [(! (defined __cplusplus || defined __BEOS__)
37326           && !defined __GNUC__
37327           && !(defined __HP_cc || defined __xlc__
37328                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
37329                || defined __sgi))]:
37330         #define to signed char in these cases too; this simplifies
37331         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
37332         etc., separately) and makes it more conservative.
37333
37334 2006-01-25  Simon Josefsson  <jas@extundo.com>
37335
37336         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
37337         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
37338         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
37339
37340 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37341
37342         * lib/argp-namefrob.h: Bugfix. Remove stray #
37343
37344 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
37345
37346         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
37347         so that we test the test.
37348         Check for yet another HP-UX cc bug involving *bool |= bool.
37349
37350 2006-01-25  Karl Berry  <karl@gnu.org>
37351
37352         * config/srclist.txt (vasnprintf.c): sync lost.
37353
37354 2006-01-25  Jim Meyering  <jim@meyering.net>
37355
37356         Sync from the stable (b5) branch of coreutils:
37357
37358         * lib/fts.c (fts_children): Don't let close() clobber errno from
37359         failed fchdir().
37360
37361         * lib/fts.c (fts_stat): When following a symlink-to-directory,
37362         don't necessarily interpret stat-fails+lstat-succeeds as indicating
37363         a dangling symlink.  That can also happen at least for ELOOP.
37364         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
37365         FYI, this bug predates the inclusion of fts.c in coreutils.
37366
37367         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
37368         in their own block, so pre-c99 compilers don't object.
37369
37370         Avoid the double-free (first in fts_read, second in fts_close) that
37371         would occur when an `active' directory is made inaccessible (e.g.,
37372         via chmod a-x) during a traversal.
37373         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
37374         before returning.  Reproduce this failure by
37375         mkdir -p a/b; cd a; chmod a-x . b
37376         Reported by Stavros Passas.
37377
37378 2006-01-25  Jim Meyering  <jim@meyering.net>
37379
37380         * lib/fileblocks.c: Remove more useless parentheses.
37381         * lib/readutmp.h: Likewise.
37382
37383 2006-01-25  Bruno Haible  <bruno@clisp.org>
37384
37385         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
37386         warnings.
37387         Reported by Paul Eggert.
37388
37389 2006-01-25  Bruno Haible  <bruno@clisp.org>
37390
37391         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
37392         rid of a trap command. For Solaris sh.
37393         Reported by Mark D. Baushke <mdb@gnu.org>.
37394
37395 2006-01-24  Simon Josefsson  <jas@extundo.com>
37396
37397         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
37398         Bruno.
37399
37400 2006-01-24  Karl Berry  <karl@gnu.org>
37401
37402         * config/srclist.txt (argp-namefrob.h): sync lost.
37403
37404 2006-01-24  Jim Meyering  <jim@meyering.net>
37405
37406         * modules/openat (Files): Add lib/intprops.h.
37407         From Mark D. Baushke.
37408
37409 2006-01-24  Jim Meyering  <jim@meyering.net>
37410
37411         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
37412         Reported by Mark D. Baushke.
37413
37414 2006-01-24  Jim Meyering  <jim@meyering.net>
37415
37416         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
37417
37418 2006-01-24  Bruno Haible  <bruno@clisp.org>
37419
37420         * modules/strnlen (Maintainer): Change from glibc to all.
37421
37422 2006-01-24  Bruno Haible  <bruno@clisp.org>
37423
37424         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
37425         Patch by Paul Eggert.
37426
37427 2006-01-24  Bruno Haible  <bruno@clisp.org>
37428
37429         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
37430         already has it.
37431         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
37432         2005-11-26.
37433
37434         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
37435         'signed char' to avoid problems with the built-in _Bool type.
37436         Reported by Paul Eggert on 2005-11-26.
37437
37438 2006-01-24  Bruno Haible  <bruno@clisp.org>
37439
37440         * gnulib-tool (func_import): Avoid constructing complicated sed
37441         expressions inside backquote.
37442         Report and solution by Mark D. Baushke <mdb@gnu.org>.
37443
37444 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
37445
37446         These changes imported from libc.
37447         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
37448         test and two separate function calls.
37449         * lib/strndup.c (__strndup): Add libc_hidden_def.
37450
37451 2006-01-23  Simon Josefsson  <jas@extundo.com>
37452
37453         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
37454         Remove the test_*_SOURCES variable: automake infers it by default.
37455         * modules/tls-tests: Likewise.
37456
37457 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
37458
37459         Work around porting bugs reported by Dieter in
37460         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
37461         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
37462         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
37463         Include "getopt.h" first, to check interface.
37464         (getenv): Declare only if defined HAVE_DECL_GETENV &&
37465         !HAVE_DECL_GETENV.
37466         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
37467         (__strndup): Revert to K&R-style function dfns, the glibc style.
37468         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
37469         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
37470         Include strnlen.h first, to get prototype properly.
37471         (strnlen): Renamed from __strnlen.
37472         Remove weak alias.
37473
37474 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
37475
37476         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
37477
37478 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
37479
37480         * config/srclist.txt: Adjust to reflect glibc reorganization.
37481         This affects only comments.
37482
37483 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
37484
37485          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
37486          Reported by Bruce Korb <bkorb@gnu.org>.
37487
37488 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
37489
37490         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
37491         to pacify gcc -Wswitch-default.
37492
37493 2006-01-22  Bruno Haible  <bruno@clisp.org>
37494
37495         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
37496         temporary buffer for sprintf, take into account the precision also
37497         for 'd', 'i', 'u', 'o', 'x', 'X'.
37498
37499 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
37500
37501         * modules/argp-tests: New module
37502         * tests/test-argp.c: New file
37503         * tests/test-argp-2.sh: New file
37504
37505 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
37506
37507         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
37508         (__argp_base_name): Removed
37509         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
37510         typo.
37511         (__argp_base_name): Provide macro definition or extern declaration
37512         depending on the configuration
37513
37514 2006-01-20  Simon Josefsson  <jas@extundo.com>
37515
37516         * modules/inet_ntop (Depends-on): Depend on sys_socket.
37517
37518 2006-01-20  Simon Josefsson  <jas@extundo.com>
37519
37520         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
37521
37522 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
37523
37524         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
37525         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
37526         Suggested by Bruno Haible.
37527
37528 2006-01-20  Karl Berry  <karl@gnu.org>
37529
37530         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
37531         until changes propagate, I guess.
37532
37533 2006-01-19  Simon Josefsson  <jas@extundo.com>
37534
37535         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
37536
37537 2006-01-19  Simon Josefsson  <jas@extundo.com>
37538
37539         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
37540
37541 2006-01-19  Simon Josefsson  <jas@extundo.com>
37542
37543         * gnulib-tool: Set check_PROGRAMS.
37544
37545         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
37546         modules/des-tests, modules/gc-arcfour-tests,
37547         modules/gc-arctwo-tests, modules/gc-des-tests,
37548         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
37549         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
37550         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
37551         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
37552         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
37553         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
37554         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
37555         test_*_SOURCES.
37556
37557 2006-01-18  Simon Josefsson  <jas@extundo.com>
37558
37559         * modules/socklen (Depends-on): Depend on sys_socket.
37560
37561 2006-01-18  Simon Josefsson  <jas@extundo.com>
37562
37563         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
37564         modules/des-tests, modules/gc-arcfour-tests,
37565         modules/gc-arctwo-tests, modules/gc-des-tests,
37566         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
37567         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
37568         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
37569         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
37570         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
37571         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
37572         $(EXEEXT) to automake TESTS variable, for mingw32.
37573
37574 2006-01-17  Simon Josefsson  <jas@extundo.com>
37575
37576         * modules/socklen (Include): Need sys/socket.h.
37577
37578 2006-01-17  Bruno Haible  <bruno@clisp.org>
37579
37580         * modules/ssize_t (Include): Add <sys/types.h>.
37581
37582 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
37583
37584         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
37585         it's not portable and it doesn't work with cross-compiles.
37586         Problem reported by Bruno Haible.  Fix missing-$ typo in
37587         'test "gl_cv_ignore_unused_libraries" ...' that prevented
37588         -zignore from being used with Sun's C compiler.
37589
37590 2006-01-12  Simon Josefsson  <jas@extundo.com>
37591
37592         * lib/base64.c: Fix warning, reported by Bruno Haible
37593         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
37594
37595 2006-01-12  Bruno Haible  <bruno@clisp.org>
37596
37597         * modules/ldd: New file.
37598         * build-aux/ldd.sh.in: New file.
37599         * MODULES.html.sh (Support for building libraries and executables): Add
37600         ldd.
37601
37602 2006-01-12  Bruno Haible  <bruno@clisp.org>
37603
37604         * m4/ldd.m4: New file.
37605
37606 2006-01-12  Bruno Haible  <bruno@clisp.org>
37607
37608         * gnulib-tool (func_import, func_create_testdir): Don't go into an
37609         endless loop while replacing $auxdir with build-aux.
37610
37611 2006-01-11  Simon Josefsson  <jas@extundo.com>
37612
37613         * lib/stdint_.h (SIZE_MAX): Add missing (.
37614
37615 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
37616
37617         Sync from coreutils.
37618         * lib/md5.c: Fix commentary typos.
37619         (alignof, UNALIGNED_P): No need for a GCC-specific version.
37620         * lib/md5.h (__attribute__): Remove; unused.
37621         * lib/sha1.c: Fix commentary to match md5 better.
37622         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
37623         so that we don't need to worry about alignment.  All uses changed.
37624         This merges the 2005-10-28 md5 change into sha1.
37625
37626 2006-01-11  Jim Meyering  <jim@meyering.net>
37627
37628         Sync from coreutils.
37629         * lib/md5.c (OP): Fix spacing.
37630
37631 2006-01-11  Bruno Haible  <bruno@clisp.org>
37632
37633         Ensure automatic ordering between gl_LOCK and gl_ARGP.
37634         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
37635         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
37636
37637 2006-01-11  Bruno Haible  <bruno@clisp.org>
37638
37639         Ensure automatic ordering between gl_LOCK and gl_ARGP.
37640         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
37641         the "early" section as well.
37642
37643 2006-01-11  Bruno Haible  <bruno@clisp.org>
37644
37645         Avoid "ar: no archive members specified" error on MacOS X.
37646         * gnulib-tool (func_modules_add_dummy): New function.
37647         (func_import, func_create_testdir): Invoke it.
37648
37649 2006-01-11  Bruno Haible  <bruno@clisp.org>
37650
37651         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
37652         with $auxdir in AC_CONFIG_FILES statements.
37653
37654 2006-01-11  Bruno Haible  <bruno@clisp.org>
37655
37656         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37657         Initialize also noinst_HEADERS to empty.
37658
37659 2006-01-11  Bruno Haible  <bruno@clisp.org>
37660
37661         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
37662         variables.
37663         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
37664         autoreconf.
37665
37666 2006-01-11  Bruno Haible  <bruno@clisp.org>
37667
37668         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
37669         overridable by the user.
37670         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37671
37672 2006-01-10  Simon Josefsson  <jas@extundo.com>
37673
37674         * modules/sys_socket: New file.
37675
37676 2006-01-10  Simon Josefsson  <jas@extundo.com>
37677
37678         * m4/sys_socket_h.m4: New file.
37679
37680 2006-01-10  Simon Josefsson  <jas@extundo.com>
37681
37682         * lib/socket_.h: New file.
37683
37684 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
37685
37686         * modules/readutmp (Maintainer): Add myself.
37687
37688 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
37689
37690         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
37691         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
37692         People who are still concerned with buggy memcmp implementations
37693         can invoke gl_FUNC_MEMCMP themselves.
37694
37695 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
37696
37697         * lib/regex_internal.h (BITSET_WORD_BITS):
37698         Work around a bug in 64-bit PGC (before version 6.1-2), where the
37699         preprocessor mishandles large unsigned values as if they were signed.
37700         Problem reported by Claudio Fontana in
37701         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
37702
37703 2006-01-10  Jim Meyering  <jim@meyering.net>
37704
37705         Avoid the double-free (first in fts_read, second in fts_close) that
37706         would occur when an `active' directory is made inaccessible (e.g.,
37707         via chmod a-x) during a traversal.
37708         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
37709         before returning.  Reproduce this failure by
37710         mkdir -p a/b; cd a; chmod a-x . b
37711         Reported by Stavros Passas.
37712
37713         Sync from coreutils.
37714         * lib/sha1.c: Tweak grammar in a comment.
37715
37716 2006-01-10  Jim Meyering  <jim@meyering.net>
37717
37718         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
37719         Patch by Joerg Sonnenberger.
37720
37721 2006-01-10  Bruno Haible  <bruno@clisp.org>
37722
37723         * modules/readutmp: Depend on module free.
37724         * modules/strtok_r: Depend on module restrict.
37725
37726 2006-01-10  Bruno Haible  <bruno@clisp.org>
37727
37728         * modules/gettext (configure.ac): Add an invocation of
37729         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
37730
37731 2006-01-10  Bruno Haible  <bruno@clisp.org>
37732
37733         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
37734         Reported by Werner Lemberg <wl@gnu.org>.
37735
37736 2006-01-10  Bruno Haible  <bruno@clisp.org>
37737
37738         * lib/localcharset.c: Update from GNU gettext.
37739
37740 2006-01-10  Bruno Haible  <bruno@clisp.org>
37741
37742         * lib/argp.h (__const): Remove macro. Use const instead.
37743         * lib/argp-fmtstream.h (__const): Likewise.
37744         * lib/glob_.h (__const): Remove macro.
37745         * lib/glob-libc.h: Use const instead of __const.
37746
37747 2006-01-10  Bruno Haible  <bruno@clisp.org>
37748
37749         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
37750         variable.
37751         Needed to avoid an automake error regarding the 'gettext' module.
37752
37753 2006-01-09  Simon Josefsson  <jas@extundo.com>
37754
37755         * modules/inet_ntop (Depends-on): Add restrict.
37756
37757 2006-01-09  Simon Josefsson  <jas@extundo.com>
37758
37759         * modules/gc-rijndael-tests (License): Put under LGPL.
37760
37761         * modules/gc-des-tests (License): Likewise.
37762
37763         * modules/gc-arcfour-tests (License): Likewise.
37764
37765         * modules/gc-arctwo-tests (License): Likewise.
37766
37767         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
37768
37769         * modules/gc-hmac-sha1-tests (Files): Likewise.
37770
37771         * modules/gc-hmac-md5-tests (License): Likewise.
37772
37773         * modules/gc-sha1-tests (License): Likewise.
37774
37775         * modules/gc-md5-tests (License): Likewise.
37776
37777         * modules/gc-md4-tests (License): Likewise.
37778
37779         * modules/gc-md2-tests (License): Likewise.
37780
37781         * modules/gc-tests (License): Likewise.
37782
37783         * modules/des-tests (License): Likewise.
37784
37785         * modules/md4-tests (License): Likewise.
37786
37787         * modules/md2-tests (License): Likewise.
37788
37789 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
37790
37791         Sync from coreutils:
37792
37793         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
37794         * modules/lib-ignore: New file.
37795         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
37796         chdir-safer.m4, lchmod.m4.
37797         * modules/openat: Add mkdirat.c, openat-priv.h.
37798
37799 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
37800
37801         Sync from coreutils.
37802         * m4/lib-ignore.m4: New file.
37803         * m4/lchmod.m4: New file.
37804
37805 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
37806
37807         Sync from coreutils.
37808         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
37809         for write access: POSIX says that must fail.
37810         * lib/fts.c (diropen): Likewise.
37811         * lib/save-cwd.c (save_cwd): Likewise.
37812         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
37813         well, for minor improvements on hosts that lack O_DIRECTORY.
37814         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
37815         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
37816         Fall back on chown if open failed with EACCES.
37817
37818         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
37819         Report an error at compile-time if only a 1-second nominal clock
37820         resolution is found.
37821
37822         * lib/lchmod.h: New file.
37823         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
37824         (make_dir_parents): Use lchown rather than chown, and
37825         lchmod rather than chmod.
37826
37827         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
37828         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
37829         "proc" reported by n0dalus.
37830
37831         * lib/mountlist.c: Include <limits.h>.
37832         (dev_from_mount_options)
37833         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
37834         New function.  It no longer assumes "dev=" has the System V meaning
37835         on Linux (since it doesn't).  It also parses "dev=" more carefully.
37836         (read_file_system_list)
37837         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
37838         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
37839         dev= in that case.
37840
37841         * lib/posixtm.h (PDS_PRE_2000): New macro.
37842         * lib/posixtm.c (year): Arg is now syntax_bits rather than
37843         allow_century.  All usages changed.  Reject dates outside the range
37844         1969-1999 if PDS_PRE_2000 is used.
37845
37846 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
37847
37848         Sync from coreutils.
37849         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
37850         (Time of day items): Mention the possibility of leap seconds.
37851         Problem reported by Dr. David Alan Gilbert.
37852
37853 2006-01-09  Jim Meyering  <jim@meyering.net>
37854
37855         Sync from coreutils.
37856
37857         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
37858
37859         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
37860
37861         * lib/modechange.c (mode_compile): Reject an invalid mode string
37862         that starts with an octal digit.  From Andreas Gruenbacher.
37863
37864         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
37865         and dup to open_safer and dup_safer, respectively.
37866         (openat_permissive): Fix typo in comment.
37867
37868         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
37869         "gettext.h"; either no longer needed or are guaranteed by openat.h.
37870         (_): Remove; no longer needed.
37871         (openat): Renamed from rpl_openat; no need for rpl_openat
37872         since openat.h renames openat for us.
37873         Replace most of the body with a call to openat_permissive,
37874         to avoid duplicate code.
37875         Port to (probably hypothetical) environments were mode_t is
37876         wider than int.
37877         (openat_permissive): Require mode arg, so that we can check
37878         types better.  Put it just after flags.  Change cwd failure
37879         indicator from pointer-to-bool to pointer-to-errno-value.
37880         All callers changed.
37881         Invoke openat_save_fail and/or openat_restore_fail if
37882         cwd_errno is null, so that openat can call us.
37883         (openat_permissive, fdopendir, fstatat, unlinkat):
37884         Simplify errno handling to avoid some duplicate code,
37885         as it's OK to set errno on success.
37886         * lib/openat.h: Revamp code so that function macros depend on
37887         __OPENAT_PREFIX only, not also on AT_FDCWD.
37888         (openat_ro): Remove.  Caller changed to use openat_permissive.
37889         (openat_permissive): Now a macro, if not a function.
37890         (openat_restore_fail, openat_save_fail): Now always functions,
37891         since mkdirat needs them even if __OPENAT_PREFIX is defined.
37892
37893         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
37894         and openat.c.
37895         * lib/mkdirat.c: Include openat-priv.h.
37896         Remove definitions of macros defined therein.
37897         * lib/openat.c: Likewise.
37898
37899         * lib/mkdirat.c (mkdirat): New file and function.
37900         * lib/openat.h (mkdirat): Declare.
37901
37902         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
37903
37904         * lib/openat.h (openat_permissive): Declare.
37905         (openat_ro): Define.
37906
37907         * lib/openat.c (EXPECTED_ERRNO): New macro.
37908         (openat_permissive): New function -- used in remove.c rewrite.
37909         (all functions): Set errno just before returning, only if there
37910         was an actual failure.
37911         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
37912
37913         Emulate openat-family functions using Linux's procfs, if possible.
37914         Idea and some code based on Ulrich Drepper's glibc changes.
37915
37916         * lib/openat.c: (BUILD_PROC_NAME): New macro.
37917         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
37918         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
37919         before falling back on save_cwd and restore_cwd.
37920         (fdopendir, fstatat, unlinkat): Likewise.
37921
37922         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
37923         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
37924
37925         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
37926         as second argument to va_arg.  Otherwise, some versions of gcc
37927         warn that `if this code is reached, the program will abort'.
37928
37929 2006-01-09  Jim Meyering  <jim@meyering.net>
37930
37931         Sync from coreutils.
37932         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
37933         Require openat-priv.h.
37934
37935 2006-01-09  Bruno Haible  <bruno@clisp.org>
37936
37937         * modules/strnlen (Include): Use strnlen.h.
37938
37939 2006-01-09  Bruno Haible  <bruno@clisp.org>
37940
37941         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
37942
37943 2006-01-09  Bruno Haible  <bruno@clisp.org>
37944
37945         * lib/sysexit_.h (EX_OK): New macro.
37946         Suggested by Martin Lambers <marlam@marlam.de>.
37947
37948 2006-01-09  Bruno Haible  <bruno@clisp.org>
37949
37950         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
37951         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
37952
37953 2006-01-09  Bruno Haible  <bruno@clisp.org>
37954
37955         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
37956         numbers.
37957
37958 2006-01-09  Bruno Haible  <bruno@clisp.org>
37959
37960         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
37961         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
37962         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
37963         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
37964
37965 2006-01-09  Bruno Haible  <bruno@clisp.org>
37966
37967         * build-aux/javacomp.sh.in: New file, moved from lib/.
37968         * modules/javacomp-script (Files): Update.
37969         (configure.ac): Add AC_CONFIG_FILES invocation.
37970         (EXTRA_DIST): Remove variable.
37971
37972         * build-aux/javaexec.sh.in: New file, moved from lib/.
37973         * modules/javaexec (Files): Update.
37974         (configure.ac): Add AC_CONFIG_FILES invocation.
37975         (EXTRA_DIST): Remove javaexec.sh.in.
37976
37977         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
37978         * modules/csharpcomp-script (Files): Update.
37979         (configure.ac): Add AC_CONFIG_FILES invocation.
37980         (EXTRA_DIST): Remove variable.
37981
37982         * build-aux/csharpexec.sh.in: New file, moved from lib/.
37983         * modules/csharpexec (Files): Update.
37984         (configure.ac): Add AC_CONFIG_FILES invocation.
37985         (EXTRA_DIST): Remove csharpexec.sh.in.
37986
37987 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
37988
37989         Sync from coreutils.
37990
37991         Add POSIX ACL support
37992         * lib/acl.h (copy_acl, set_acl): Add declarations.
37993         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
37994         systems other than Linux.
37995         (chmod_or_fchmod): New function: use fchmod when possible,
37996         and chmod otherwise.
37997         (file_has_acl): Add a POSIX ACL implementation, with a
37998         Linux-specific subcase.
37999         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
38000         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
38001         acls are unsupported.
38002         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
38003         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
38004         are unsupported.
38005
38006 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
38007
38008         Sync from coreutils.
38009         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
38010
38011 2006-01-07  Bruno Haible  <bruno@clisp.org>
38012
38013         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
38014         gl_EARLY.
38015
38016 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
38017
38018         * lib/strftime.c (tzname): Don't declare if it is already #defined.
38019         Problem reported for Mingw by Mark Junker.
38020
38021 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
38022
38023         * README: Gnulib normally doesn't generate a tarball.
38024
38025 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
38026
38027         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
38028         long int, not int, for nanosecond counts, so that people who are
38029         used to POSIX struct timespec won't be surprised.  Reported by Jim
38030         Meyering.
38031
38032 2005-12-28  Bruno Haible  <bruno@clisp.org>
38033
38034         * build-aux/config.rpath: Update from GNU gettext.
38035
38036 2005-12-16  Jim Meyering  <jim@meyering.net>
38037
38038         * modules/fprintftime: New module.
38039         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
38040
38041 2005-12-16  Jim Meyering  <jim@meyering.net>
38042
38043         * m4/fprintftime.m4: New file.
38044
38045 2005-12-16  Jim Meyering  <jim@meyering.net>
38046
38047         * lib/fprintftime.c, lib/fprintftime.h: New files.
38048
38049 2005-12-15  Simon Josefsson  <jas@extundo.com>
38050
38051         * modules/socklen (configure.ac): Fix M4 macro name, to align with
38052         new m4/socklen.m4.
38053
38054 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
38055
38056         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
38057         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
38058
38059 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
38060
38061         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
38062         * lib/argp-help.c (fill_in_uparams): Check if the constructed
38063         struct uparams is valid. Fall back to the default values if it is
38064         not.
38065
38066 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
38067
38068         * modules/argp (Files): Add argp-pin.c
38069         (Depends-on): dirname
38070         (lib_SOURCES): Add argp-pin.c
38071
38072 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
38073
38074         * m4/argp.m4:  Check if program_invocation_name and
38075         program_invocation_short_name are declared and define appropriate
38076         macros if they are not.
38077
38078 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
38079
38080         * lib/argp-help.c (__argp_base_name): New function
38081         (__argp_short_program_name): Rewrite using __argp_base_name
38082         * lib/argp-namefrob.h: Define program_invocation_name and
38083         program_invocation_short_name if requested
38084         (__argp_base_name): Add prototype
38085         * lib/argp-parse.c (argp_def): Use gettext wrappers
38086         (argp_default_parser): Use __argp_base_name
38087         * lib/argp-pin.c: New file. Defines program_invocation_name and
38088         program_invocation_short_name on systems that lack them.
38089
38090 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
38091
38092         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
38093         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
38094         porting problem reported by Georg Schwarz in
38095         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
38096
38097 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
38098
38099         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
38100         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
38101         porting problem reported by Georg Schwarz in
38102         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
38103
38104 2005-12-05  Bruno Haible  <bruno@clisp.org>
38105
38106         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
38107         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
38108         Reported by Mark Junker <mjscod@gmx.de>.
38109
38110 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
38111
38112         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
38113         Use implementation from Albert Chin, with some
38114         comments/corrections by Stepan Kasal and myself.
38115
38116 2005-12-02  Bruno Haible  <bruno@clisp.org>
38117
38118         * gnulib-tool (func_import): Accept GPLed build tool modules when
38119         --lgpl is given.
38120         * modules/csharpcomp-script: New file.
38121         * modules/csharpcomp: Depend on it.
38122         * modules/javacomp-script: New file.
38123         * modules/javacomp: Depend on it.
38124         Suggested by Simon Josefsson.
38125
38126 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
38127
38128         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
38129         statement, to work around an HP-UX 10.20 compiler bug reported by
38130         Peter O'Gorman.
38131
38132 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
38133
38134         * modules/savedir (Depends-on): Add openat.
38135
38136 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
38137
38138         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
38139         (uintmax_t) [defined uintmax_t]: Do not declare.
38140         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
38141         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
38142         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
38143         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
38144         sake of portability to weird hosts that C allows (though we don't
38145         know of any practical examples).
38146
38147         * lib/savedir.h (fdsavedir): New decl.
38148         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
38149         contains most of the former guts of savedir.
38150         (savedir): Use savedirstream.
38151         Include "openat.h".
38152
38153 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
38154
38155         * modules/obstack (Files): Add m4/ulonglong.m4.
38156         Problem reported by Davide Angelocola.
38157
38158 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
38159
38160         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
38161         coreutils no longer futzes with rounding modes.
38162
38163 2005-11-14  Jim Meyering  <jim@meyering.net>
38164
38165         * lib/mkstemp-safer.c: Include <config.h>, required for possible
38166         replacement of mkstemp.
38167
38168 2005-11-10  Simon Josefsson  <jas@extundo.com>
38169
38170         * lib/readline.c: Remove EOL.
38171
38172 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
38173
38174         * modules/gethrxtime (Depends-on): Add gettime.
38175
38176 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
38177
38178         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
38179         or gettimeofday; no longer needed.
38180
38181 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
38182
38183         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
38184         time business.
38185         (gethrxtime) [! (HAVE_NANOUPTIME
38186         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
38187         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
38188         our own approximation.
38189
38190 2005-11-08  Eric Blake  <ebb9@byu.net>
38191
38192         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
38193
38194 2005-11-08  Eric Blake  <ebb9@byu.net>
38195
38196         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
38197
38198 2005-11-04  Bruno Haible  <bruno@clisp.org>
38199
38200         * gnulib-tool: Implement --update mode.
38201
38202 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
38203
38204         Fix porting problem reported by Theodoros V. Kalamatianos.
38205         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
38206         Don't assume that futimes failing means we must fail.
38207
38208 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
38209
38210         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
38211         variables to suggest the intended function of the PATH_MAX check.
38212
38213 2005-10-30  Kean Johnston  <jkj@sco.com>
38214
38215         Trivial changes to support SCO systems.
38216         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
38217         as PATH_MAX.
38218         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
38219         where __ptr is null when no I/O is pending.
38220
38221 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
38222
38223         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
38224         leave errno alone.  Problem reported by Dmitry V. Levin.
38225
38226 2005-10-28  Simon Josefsson  <jas@extundo.com>
38227
38228         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
38229         Test more.
38230
38231         * tests/test-gc-md2.c, tests/test-md2.c: New files.
38232
38233         * modules/md2, modules/md2-tests: New files.
38234
38235 2005-10-28  Simon Josefsson  <jas@extundo.com>
38236
38237         * m4/inet_ntop.m4: More tests.
38238
38239         * m4/gc-md2.m4, md2.m4: New file.
38240
38241 2005-10-28  Simon Josefsson  <jas@extundo.com>
38242
38243         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
38244         "restrict" keywords, as per POSIX.  Protect the function
38245         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
38246         Don't use K&R prototypes.  Check the sprintf return values.
38247         Re-define EAFNOSUPPORT if not present.  Indent.
38248
38249         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
38250         suggested by Bruno Haible <bruno@clisp.org>.
38251
38252         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
38253
38254         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
38255
38256         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
38257         libgcrypt).
38258
38259         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
38260
38261         * lib/md2.h, lib/md2.c: New files.
38262
38263 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
38264
38265         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
38266         errno alone.  Problem reported by Frederic Jolliton.
38267
38268 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
38269
38270         * modules/verify (License): Change from GPL to LGPL.  This is a
38271         tiny module and there are apparently near-equivalents that are
38272         under the BSD license.
38273
38274 2005-10-24  Simon Josefsson  <jas@extundo.com>
38275
38276         * modules/sha1: Relicense to LGPL.
38277
38278 2005-10-24  Simon Josefsson  <jas@extundo.com>
38279
38280         * lib/md4.h: Shrink buffer size, now that we changed the type.
38281
38282 2005-10-23  Simon Josefsson  <jas@extundo.com>
38283
38284         * gnulib-tool (func_import): Fix --tests-base.
38285
38286 2005-10-22  Simon Josefsson  <jas@extundo.com>
38287
38288         * modules/arcfour (Depends-on): Need stdint.
38289
38290 2005-10-22  Simon Josefsson  <jas@extundo.com>
38291
38292         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
38293         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
38294
38295 2005-10-22  Simon Josefsson  <jas@extundo.com>
38296
38297         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
38298         suggested by Bruno Haible <bruno@clisp.org>.
38299
38300 2005-10-22  Simon Josefsson  <jas@extundo.com>
38301
38302         * lib/crc.h: Include stddef.h, for size_t.
38303
38304 2005-10-22  Simon Josefsson  <jas@extundo.com>
38305
38306         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
38307         arcfour_context struct (simplify test vector testing in GNU
38308         Shishi).
38309
38310 2005-10-21  Simon Josefsson  <jas@extundo.com>
38311
38312         * modules/des, modules/des-tests: New files.
38313
38314         * modules/gc-des, modules/gc-des-tests: New files.
38315
38316         * tests/test-des.c, tests/test-gc-des.c: New file.
38317
38318 2005-10-21  Simon Josefsson  <jas@extundo.com>
38319
38320         * modules/arctwo, modules/arctwo-tests: New files.
38321
38322         * tests/test-arctwo.c: New file.
38323
38324         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
38325
38326         * tests/test-gc-arctwo.c: New file.
38327
38328 2005-10-21  Simon Josefsson  <jas@extundo.com>
38329
38330         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
38331         Bruno Haible <bruno@clisp.org>.
38332
38333         * m4/gc-des.m4: New file.
38334
38335 2005-10-21  Simon Josefsson  <jas@extundo.com>
38336
38337         * m4/arctwo.m4: New file.
38338
38339         * m4/gc-arctwo.m4: New file.
38340
38341 2005-10-21  Simon Josefsson  <jas@extundo.com>
38342
38343         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
38344         block.
38345
38346 2005-10-21  Simon Josefsson  <jas@extundo.com>
38347
38348         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
38349         <bruno@clisp.org>.
38350
38351         * lib/hmac-sha1.c (hmac_sha1): Likewise.
38352
38353         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
38354         Bruno Haible <bruno@clisp.org>.
38355
38356         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
38357         <bruno@clisp.org>.
38358
38359 2005-10-21  Simon Josefsson  <jas@extundo.com>
38360
38361         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
38362
38363 2005-10-21  Simon Josefsson  <jas@extundo.com>
38364
38365         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
38366
38367 2005-10-21  Simon Josefsson  <jas@extundo.com>
38368
38369         * lib/des.h, lib/des.c: New files.
38370
38371         * lib/gc-gnulib.c: Support DES.c
38372
38373 2005-10-21  Simon Josefsson  <jas@extundo.com>
38374
38375         * lib/arctwo.h, lib/arctwo.c: New files.
38376
38377         * lib/gc-gnulib.c: Support ARCTWO.
38378
38379 2005-10-21  Simon Josefsson  <jas@extundo.com>
38380
38381         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
38382         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38383
38384 2005-10-21  Simon Josefsson  <jas@extundo.com>
38385
38386         * gnulib-tool (func_import, func_create_testdir): Define automake
38387         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
38388         Makefile.am snippet),
38389         suggested by Bruno Haible <bruno@clisp.org>.
38390
38391         * modules/gc (Makefile.am): Use it.
38392
38393 2005-10-21  Bruno Haible  <bruno@clisp.org>
38394
38395         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
38396         patch.
38397
38398 2005-10-19  Simon Josefsson  <jas@extundo.com>
38399
38400         * tests/test-gc-rijndael.c: New file.
38401
38402         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
38403
38404 2005-10-19  Simon Josefsson  <jas@extundo.com>
38405
38406         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
38407         interface too.
38408
38409 2005-10-19  Simon Josefsson  <jas@extundo.com>
38410
38411         * tests/test-gc-arcfour.c: New file.
38412
38413         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
38414
38415 2005-10-19  Simon Josefsson  <jas@extundo.com>
38416
38417         * modules/gc-md4, modules/gc-md4-tests: New file.
38418
38419         * tests/test-gc-md4.c: New file.
38420
38421 2005-10-19  Simon Josefsson  <jas@extundo.com>
38422
38423         * m4/gc-md4.m4: New file.
38424
38425 2005-10-19  Simon Josefsson  <jas@extundo.com>
38426
38427         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
38428         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
38429         <kasal@ucw.cz>.
38430
38431 2005-10-19  Simon Josefsson  <jas@extundo.com>
38432
38433         * m4/gc-arcfour.m4: New file.
38434
38435         * m4/gc-rijndael.m4: New file.
38436
38437 2005-10-19  Simon Josefsson  <jas@extundo.com>
38438
38439         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
38440
38441 2005-10-19  Simon Josefsson  <jas@extundo.com>
38442
38443         * lib/gc-gnulib.c: Support ARCFOUR.
38444
38445 2005-10-19  Simon Josefsson  <jas@extundo.com>
38446
38447         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
38448         support.
38449
38450         * lib/gc.h: Add ECB enum type.
38451
38452         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
38453
38454 2005-10-18  Simon Josefsson  <jas@extundo.com>
38455
38456         * tests/test-md5.c: New file.
38457
38458         * modules/md5-tests: New file.
38459
38460 2005-10-18  Simon Josefsson  <jas@extundo.com>
38461
38462         * tests/test-md4.c: New file.
38463
38464         * modules/md4, modules/md4-tests: New files.
38465
38466 2005-10-18  Simon Josefsson  <jas@extundo.com>
38467
38468         * m4/md4.m4: New file.
38469
38470 2005-10-18  Simon Josefsson  <jas@extundo.com>
38471
38472         * lib/md4.h, lib/md4.c: New files, based on md5.?.
38473
38474 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
38475
38476         * gnulib-tool (func_create_testdir): Omit the second check whether
38477         BUILT_SOURCES in nonempty.
38478
38479 2005-10-17  Simon Josefsson  <jas@extundo.com>
38480
38481         * tests/test-rijndael.c: New file.
38482
38483 2005-10-17  Simon Josefsson  <jas@extundo.com>
38484
38485         * modules/sha1: Depend on stdint instead of md5.
38486
38487         * modules/md5: Depend on stdint, remove uint32_t.
38488
38489 2005-10-17  Simon Josefsson  <jas@extundo.com>
38490
38491         * modules/gc-sha1-tests: New file.
38492
38493         * tests/test-gc-sha1.c: New file.
38494
38495 2005-10-17  Simon Josefsson  <jas@extundo.com>
38496
38497         * m4/md5.m4: Remove call to uint32_t.m4.
38498
38499 2005-10-17  Simon Josefsson  <jas@extundo.com>
38500
38501         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
38502
38503         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
38504         md5.h.
38505
38506         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
38507
38508         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
38509
38510 2005-10-17  Simon Josefsson  <jas@extundo.com>
38511
38512         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
38513
38514 2005-10-17  Simon Josefsson  <jas@extundo.com>
38515
38516         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
38517
38518 2005-10-17  Simon Josefsson  <jas@extundo.com>
38519
38520         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
38521
38522         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
38523
38524 2005-10-17  Bruno Haible  <bruno@clisp.org>
38525
38526         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
38527         that it can also be used in a test.
38528
38529 2005-10-16  Bruno Haible  <bruno@clisp.org>
38530
38531         * gnulib-tool (func_emit_tests_Makefile_am): Also define
38532         TESTS_ENVIRONMENT, so that individual tests can augment it.
38533
38534         * gnulib-tool (func_create_testdir): Use an intermediate target for
38535         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
38536         macros, like $(ALLOCA_H), which cannot be passed through the command
38537         line.
38538
38539 2005-10-15  Simon Josefsson  <jas@extundo.com>
38540
38541         * modules/rijndael-tests: New file.
38542
38543         * modules/rijndael: New file.
38544
38545 2005-10-15  Simon Josefsson  <jas@extundo.com>
38546
38547         * m4/rijndael.m4: New file.
38548
38549 2005-10-15  Simon Josefsson  <jas@extundo.com>
38550
38551         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
38552
38553         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
38554
38555 2005-10-14  Simon Josefsson  <jas@extundo.com>
38556
38557         * tests/test-arcfour.c: New file.
38558
38559         * modules/arcfour, modules/arcfour-tests: New files.
38560
38561 2005-10-14  Simon Josefsson  <jas@extundo.com>
38562
38563         * m4/arcfour.m4: New file.
38564
38565 2005-10-14  Simon Josefsson  <jas@extundo.com>
38566
38567         * lib/arcfour.h, lib/arcfour.c: New files.
38568
38569 2005-10-14  Roland McGrath  <roland@redhat.com>
38570
38571         Import from libc.  [BZ #1331]
38572         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
38573         macro argument.
38574         Reported by Matej Vela <vela@debian.org>.
38575
38576 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
38577
38578         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
38579         include <wchar.h>; no longer needed.
38580
38581 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
38582
38583         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
38584
38585 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
38586         and  Ulrich Drepper  <drepper@redhat.com>
38587
38588         Import from libc.
38589         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
38590         instead of inline stream orientation test and two separate
38591         function calls.  Pay no attention to USE_IN_LIBIO.
38592
38593 2005-10-13  Simon Josefsson  <jas@extundo.com>
38594
38595         * modules/gc-hmac-md5-tests: New file.
38596
38597         * tests/test-gc-hmac-sha1.c: New file.
38598
38599         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
38600
38601         * modules/gc-hmac-md5-tests: New file.
38602
38603         * tests/test-gc-md5.c: New file.
38604
38605         * modules/gc-md5-tests: New file.
38606
38607 2005-10-13  Simon Josefsson  <jas@extundo.com>
38608
38609         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
38610         Move memory allocation outside of loop.
38611
38612 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
38613
38614         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
38615         intermediate directory is in a read-only file system.  Problem
38616         reported by Eric Blake.
38617
38618 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
38619
38620         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
38621
38622 2005-10-12  Simon Josefsson  <jas@extundo.com>
38623
38624         * tests/test-hmac-sha1.c: New file.
38625
38626         * modules/hmac-sha1-tests: New file.
38627
38628         * modules/hmac-sha1: New file.
38629
38630 2005-10-12  Simon Josefsson  <jas@extundo.com>
38631
38632         * modules/gc-sha1: New file.
38633
38634 2005-10-12  Simon Josefsson  <jas@extundo.com>
38635
38636         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
38637
38638         * tests/test-gc-pbkdf2-sha1.c: New file.
38639
38640 2005-10-12  Simon Josefsson  <jas@extundo.com>
38641
38642         * modules/gc-md5, modules/gc-hmac-md5: New files.
38643
38644         * modules/gc (Files): Remove md5, memxor and hmac files.
38645
38646 2005-10-12  Simon Josefsson  <jas@extundo.com>
38647
38648         * m4/gc-pbkdf2-sha1.m4: New file.
38649
38650         * m4/gc-hmac-sha1.m4: New file.
38651
38652         * m4/gc-sha1: New file.
38653
38654         * m4/hmac-sha1.m4: New file.
38655
38656 2005-10-12  Simon Josefsson  <jas@extundo.com>
38657
38658         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
38659
38660         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
38661
38662 2005-10-12  Simon Josefsson  <jas@extundo.com>
38663
38664         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
38665         suggested by Bruno Haible <bruno@clisp.org>.
38666
38667 2005-10-12  Simon Josefsson  <jas@extundo.com>
38668
38669         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
38670
38671 2005-10-12  Simon Josefsson  <jas@extundo.com>
38672
38673         * lib/gc-pbkdf2-sha1.c: New file.
38674
38675         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
38676
38677 2005-10-12  Simon Josefsson  <jas@extundo.com>
38678
38679         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
38680
38681         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
38682
38683 2005-10-12  Simon Josefsson  <jas@extundo.com>
38684
38685         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
38686         GC_USE_HMAC_MD5, respectively.
38687
38688         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
38689         (gc_md5): Fix typo.
38690
38691         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
38692
38693         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
38694
38695         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
38696
38697 2005-10-12  Bruno Haible  <bruno@clisp.org>
38698
38699         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
38700         Reported by Stepan Kasal <kasal@ucw.cz>.
38701
38702 2005-10-11  Simon Josefsson  <jas@extundo.com>
38703
38704         * tests/test-crc.c: New file.
38705
38706         * modules/crc, modules/crc-tests: New files.
38707
38708 2005-10-11  Simon Josefsson  <jas@extundo.com>
38709
38710         * m4/crc.m4: New file.
38711
38712 2005-10-11  Simon Josefsson  <jas@extundo.com>
38713
38714         * lib/gc.h: Add gc_hash and gc_hash_buffer.
38715
38716         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
38717
38718         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
38719
38720 2005-10-11  Simon Josefsson  <jas@extundo.com>
38721
38722         * lib/crc.h, lib/crc.c: New files.
38723
38724         * lib/gc.h (gc_hash_buffer): Add doc.
38725
38726 2005-10-11  Bruno Haible  <bruno@clisp.org>
38727
38728         * modules/c-strcasestr: New file.
38729         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
38730
38731 2005-10-11  Bruno Haible  <bruno@clisp.org>
38732
38733         * modules/c-strcase: New file.
38734         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
38735
38736 2005-10-11  Bruno Haible  <bruno@clisp.org>
38737
38738         * lib/strcasecmp.c: Include limits.h.
38739         (strcasecmp): Avoid integer overflow on exotic platforms.
38740         * lib/strncasecmp.c: Include limits.h.
38741         (strncasecmp): Avoid integer overflow on exotic platforms.
38742         Reported by Paul Eggert.
38743
38744 2005-10-11  Bruno Haible  <bruno@clisp.org>
38745
38746         * lib/c-strcasestr.h: New file, from GNU gettext.
38747         * lib/c-strcasestr.c: New file, from GNU gettext.
38748
38749 2005-10-11  Bruno Haible  <bruno@clisp.org>
38750
38751         * lib/c-strcase.h: New file, from GNU gettext.
38752         * lib/c-strcasecmp.c: New file, from GNU gettext.
38753         * lib/c-strncasecmp.c: New file, from GNU gettext.
38754
38755 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
38756
38757         * modules/mempcpy (License): GPL -> LGPL.
38758         * modules/strchrnul (License): Likewise.
38759         * modules/sysexits (License): Likewise.
38760
38761 2005-10-08  Simon Josefsson  <jas@extundo.com>
38762
38763         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
38764
38765 2005-10-07  Simon Josefsson  <jas@extundo.com>
38766
38767         * m4/memxor.m4: Remove gl_C_RESTRICT call.
38768
38769 2005-10-06  Simon Josefsson  <jas@extundo.com>
38770
38771         * tests/test-hmac-md5.c: New file.
38772
38773         * modules/hmac-md5-tests: New file.
38774
38775         * modules/hmac-md5: New file.
38776
38777 2005-10-06  Simon Josefsson  <jas@extundo.com>
38778
38779         * m4/hmac-md5.m4: New file.
38780
38781         * m4/memxor.m4: Require gl_C_RESTRICT.
38782
38783 2005-10-06  Simon Josefsson  <jas@extundo.com>
38784
38785         * lib/memxor.c (memxor): Avoid casts and warnings.
38786
38787 2005-10-06  Simon Josefsson  <jas@extundo.com>
38788
38789         * lib/hmac-md5.c: New file.
38790
38791         * lib/hmac.h: New file.
38792
38793 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
38794
38795         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
38796         promotes to int, not unsigned int, to catch the AIX 5.3
38797         compiler bug.
38798
38799 2005-10-05  Simon Josefsson  <jas@extundo.com>
38800
38801         * modules/memxor: New file.
38802
38803         * modules/iconv (Files): Move config.rpath to havelib, it is used
38804         there.
38805
38806         * modules/havelib (Files): Add config.rpath.
38807
38808 2005-10-05  Simon Josefsson  <jas@extundo.com>
38809
38810         * m4/memxor.m4: New file.
38811
38812 2005-10-05  Simon Josefsson  <jas@extundo.com>
38813
38814         * lib/memxor.c (memxor): Fix compiler error.
38815
38816         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
38817         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
38818
38819         * lib/memxor.h, lib/memxor.c: New files.
38820
38821         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
38822         we assume all systems have it, suggested by Jim Meyering
38823         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
38824         any systems lack sys/socket.h; mingw32 is known to lack it, but we
38825         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
38826         same reasons.
38827
38828 2005-10-05  Simon Josefsson  <jas@extundo.com>
38829
38830         * config/srclist.txt: Add glibc bug 1423 for md5.h.
38831
38832 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
38833
38834         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
38835         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
38836         needed, since the source code now assumes these .h files.
38837
38838 2005-10-05  Derek Price  <derek@ximbiot.com>
38839
38840         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
38841
38842 2005-10-05  Bruno Haible  <bruno@clisp.org>
38843
38844         * modules/stdint (License): Change to LGPL.
38845
38846 2005-10-04  Simon Josefsson  <jas@extundo.com>
38847
38848         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
38849         D. Baushke" <mdb@gnu.org>.
38850
38851 2005-10-04  Bruno Haible  <bruno@clisp.org>
38852
38853         * lib/verify.h (verify_true): Provide alternative definition for C++.
38854
38855 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
38856
38857         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
38858         (SSIZE_MAX): New macro, if not already defined.
38859         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
38860         than 2 GiB.
38861
38862 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
38863
38864         Sync from coreutils.
38865         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
38866         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
38867         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
38868         ULLONG_MAX doesn't work with 2.7.2.1.
38869
38870 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
38871
38872         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
38873         From Ben Pfaff.
38874
38875         * modules/exclude (Depends-on): Depend on verify.
38876         * modules/strtoimax (Depends-on): Likewise.
38877         * modules/utimecmp (Depends-on): Likewise.
38878
38879 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
38880
38881         * lib/exclude.c: Include verify.h.
38882         (verify): Remove.  All callers changed to use verify.h's version.
38883         * lib/strtoimax.c: Likewise.
38884         * lib/utimecmp.c: Likewis.e
38885
38886         Sync from coreutils.
38887         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
38888         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
38889         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
38890         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
38891         bother returning ENOSYS if settimeofday or stime fails; just let
38892         them return whatever errno they want to return.
38893         * lib/utimens.c: Include unistd.h, for dup2.
38894         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
38895         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
38896
38897 2005-10-02  Jim Meyering  <jim@meyering.net>
38898
38899         Sync from coreutils.
38900         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
38901         from glibc-2.2.5 that fails for read-only files.
38902
38903 2005-10-02  Jim Meyering  <jim@meyering.net>
38904
38905         Sync from coreutils.
38906         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
38907         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
38908         `#if HAVE_CONFIG_H'.
38909         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
38910         Remove AT_FDCWD test.
38911         Do not consume the fd unless successful.
38912         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
38913         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
38914         block, so that we don't even try to compile it if settimeofday is
38915         available.  This works around a compilation failure on OSF1 V5.1,
38916         due to stime requiring a `long int*' while tv_sec is `int'.
38917
38918 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
38919
38920         Sync from coreutils.
38921         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
38922         against `yes', rather than just testing for nonempty.
38923
38924 2005-10-01  Simon Josefsson  <jas@extundo.com>
38925
38926         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
38927         and Darwin.
38928
38929         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
38930         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
38931         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
38932         freeaddrinfo and gai_strerror are declared by the POSIX headers.
38933         Check if struct addrinfo is declared.
38934
38935 2005-10-01  Simon Josefsson  <jas@extundo.com>
38936
38937         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
38938         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
38939         AI_* and EAI_* definitions.  Protect function declarations.
38940
38941 2005-10-01  Jim Meyering  <jim@meyering.net>
38942
38943         Sync from coreutils.
38944
38945         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
38946         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
38947         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
38948         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
38949         in the inet and nsl libraries.  Required on Solaris 5.7.
38950
38951 2005-10-01  Jim Meyering  <jim@meyering.net>
38952
38953         Sync from coreutils.
38954         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
38955         in the inet and nsl libraries.  Required on Solaris 5.7.
38956
38957 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
38958
38959         * lib/getdelim.c (getdelim): Remove unused variables.
38960
38961 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
38962
38963         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
38964         so that the code works even with ancient cpp.  Portability problem
38965         with GCC 2.7.2.1 reported by Thomas M.Ott.
38966
38967 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
38968
38969         * modules/regex (Depends-on): Add strcase.
38970
38971         * modules/gethostname (Licence): Change from GPL to LGPL, since
38972         gethostname.c is a trivial implementation of a standard library
38973         function.
38974         * modules/poll (License): Change from GPL to LGPL, since it's
38975         derived from LGPL code.
38976
38977 2005-09-27  Jim Meyering  <jim@meyering.net>
38978
38979         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
38980         HAVE_CONFIG_H.
38981
38982         * lib/intprops.h (signed_type_or_expr__): Define.
38983         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
38984         for unsigned types.
38985
38986 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
38987
38988         * lib/verify.h (verify_expr): Remove, replacing with:
38989         (verify_true): New macro that returns true instead of void.
38990         (verify_type__): Remove.
38991         (verify): Use verify_true rather than verify_type__.
38992
38993 2005-09-26  Bruno Haible  <bruno@clisp.org>
38994
38995         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
38996         is necessary.
38997         (lib_SOURCES): Remove mbchar.c.
38998         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
38999         (Files): Add m4/mbrtowc.m4.
39000         * modules/mbiter: Likewise.
39001         * modules/mbuiter: Likewise.
39002
39003 2005-09-26  Bruno Haible  <bruno@clisp.org>
39004
39005         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
39006         compile mbchar.c if they are not both present.
39007         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
39008         * m4/mbiter.m4 (gl_MBITER): Likewise.
39009         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
39010         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
39011         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
39012
39013 2005-09-25  Jim Meyering  <jim@meyering.net>
39014
39015         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
39016         also uses socklen_t.
39017
39018 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
39019
39020         * lib/utimens.c (ENOSYS): Define if not already defined.
39021         (futimens): Support having a null PATH if the file descriptor
39022         is nonnegative.
39023
39024         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
39025         Remove.
39026         (__attribute): Define to empty unless GCC 3.1 or later.
39027         This works around a core dump on OpenBSD 3.4, which has GCC
39028         2.95.3, which dumps core when given __attribute__(()).  It also
39029         simplifies other tests, since we really don't want to bother with
39030         worrying about which ancient version of GCC supported what.
39031         Original problem reported by Yoann Vandoorselaere, with part of
39032         the fix suggested by Derek Price.
39033
39034 2005-09-24  Jim Meyering  <jim@meyering.net>
39035
39036         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
39037         so we can once again use a positive bitfield width of 1 -- now we
39038         don't have to explain why we were using a bitfield width of 2.
39039
39040 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
39041
39042         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
39043         and similarly for the other external symbols.  Problem reported
39044         by James Gallager.
39045
39046         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
39047         bug reported by Jim Meyering.
39048
39049         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
39050         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
39051         not needed, since socklen is a prerequisite module.
39052
39053 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
39054
39055         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
39056         Problem reported by Eric Blake.
39057         (getaddrinfo): Initialize se so that it's not garbage.
39058         Redo internal storage allocation so that it doesn't make unportable
39059         assumptions about alignment.
39060         Fix a memory leak.
39061
39062         * lib/utimens.c (futimens): Use futimesat if available.
39063         Prefer it to futimes since it doesn't have the futimes bug.
39064
39065         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
39066         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
39067         Instead, declare a function that returns a pointer to an array,
39068         and use verify_type__ to declare the size of the array.
39069         Problem and germ of a solution reported by Bruno Haible.
39070         (verify_type__): Use 2, not 1, for bitfield size, to avoid
39071         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
39072
39073 2005-09-23  Jim Meyering  <jim@meyering.net>
39074
39075         Sync from coreutils.
39076         Correct build failure (socklen_t not defined) on at least
39077         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
39078         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
39079
39080 2005-09-23  Jim Meyering  <jim@meyering.net>
39081
39082         * modules/getaddrinfo (Depends-on): Add socklen.
39083
39084 2005-09-23  Bruno Haible  <bruno@clisp.org>
39085
39086         * tests/test-verify.c: New file.
39087
39088 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
39089
39090         Sync from coreutils.
39091
39092         * modules/argmatch (Depends-on): Add verify.
39093         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
39094         unistd-safer.
39095         * modules/save-cwd (Depends-on): Likewise.
39096
39097         * modules/openat (Files): Add lib/openat-die.c.
39098         (Depends-on): Remove error, exitfail.
39099         Add dirname.
39100
39101         * modules/verify: New file.
39102         * MODULES.html.sh (Diagnostics <assert.h>): New section,
39103         with "verify" module.
39104
39105 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
39106
39107         Sync from coreutils.
39108
39109         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
39110         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
39111         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
39112         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
39113         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
39114         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
39115         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
39116         Don't bother checking for string.h, stdlib.h, unistd.h.
39117         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
39118         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
39119         module's job.
39120         * m4/jm-macros.m4 (gl_MACROS): Likewise.
39121         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
39122
39123         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
39124         (gl_GETDATE): Use it.
39125
39126         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
39127
39128 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
39129
39130         Sync from coreutils.
39131
39132         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
39133         stat-time.h.
39134         * lib/argmatch.h: Include verify.h
39135         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
39136         (ARGMATCH_ASSERT): Remove; unused.
39137         * lib/canonicalize.c: Assume STDC_HEADERS.
39138         * lib/exclude.c: Include "strcase.h".
39139         * lib/regex_internal.h [!defined _LIBC]: Likewise.
39140         * lib/getusershell.c: Include stdio--.h rather than stdio.h
39141         and stdio-safer.h.
39142         (getusershell): Call fopen, not fopen_safer.
39143         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
39144         Do not include unistd-safer.h.
39145         (save_cwd): Don't call fd_safer; no longer needed
39146         now that we include fcntl--.h.
39147
39148         * lib/getdate.y (relative_time): New type.
39149         (RELATIVE_TIME_0): New constant.
39150         (parser_control): Use relative_time instead of doing it ourselves.
39151         (%union): Add new relative_time rel member.
39152         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
39153         Now typeless.
39154         (relunit, relunit_snumber): Now of type rel.
39155         (zone, rel, relunit, get_date): Adjust to above changes.
39156
39157         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
39158         Do not include unistd-safer.h.
39159         (getloadavg): Don't call fd_safer; no longer needed
39160         now that we include fcntl--.h.
39161
39162         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
39163         (make_dir_parents): Treat ENOSYS like EEXIST.
39164
39165         Improve quality of diagnostics on restore_cwd failure.
39166         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
39167         (make_dir_parents): Last arg is now int * (for errno), not bool *.
39168         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
39169         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
39170         each time through the loop.  Do not diagnose restore_cwd failure;
39171         that is the caller's job (and perhaps the caller does not care).
39172
39173         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
39174         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
39175         If the file already exists but is not a directory, don't bother
39176         to try to make its parents.
39177         Close potential file descriptor leak if we can't chdir("/") (!).
39178         Don't always return true if chdir($PWD) fails; return true only
39179         if the requested action was done successfully (except for the
39180         chdir($PWD)).
39181         Don't log final directory unless we actually made it.
39182         Refactor to avoid duplicate code to fix up permissions.
39183         Don't attempt to fix up parent permissions if chdir($PWD) fails.
39184
39185         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
39186         to make it a bit faster and (I hope) clearer.
39187         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
39188         Fix bug in formats like %2N.
39189
39190         * lib/verify.h: New file.
39191
39192 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
39193
39194         Sync from coreutils.
39195         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
39196
39197 2005-09-22  Jim Meyering  <jim@meyering.net>
39198
39199         Sync from coreutils.
39200
39201         * m4/lstat.m4 (gl_FUNC_LSTAT):
39202         Use AC_LIBSOURCES to require lstat.c and lstat.h.
39203         Remove obsolete comment.
39204         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
39205         * m4/xstrtod.m4: Likewise.
39206
39207         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
39208
39209 2005-09-22  Jim Meyering  <jim@meyering.net>
39210
39211         Sync from coreutils.
39212
39213         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
39214
39215         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
39216         the .tm_year member, since otherwise gcc-4.0 would now warn about
39217         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
39218
39219         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
39220         order to avoid an unsuppressible warning from gcc on 64-bit systems.
39221
39222         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
39223         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
39224         when run in a time zone for which daylight savings time is in effect
39225         for the starting date.
39226
39227         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
39228         stop us from restricting permissions of just-created absolute-named
39229         directories.
39230         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
39231         to restore initial working directory.
39232         * lib/mkdir-p.c (make_dir_parents): New parameter:
39233         different_working_dir, to tell caller if/when we change the working
39234         directory and are unable to return to the initial one.
39235         * lib/mkdir-p.h (make_dir_parents): Update prototype.
39236         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
39237         `return false'.  This fixes a bug introduced on 2004-07-30.
39238
39239         * lib/openat.c (fdopendir): Be sure to close the supplied
39240         file descriptor before returning.  This makes our replacement
39241         implementation a little closer to Solaris's, where fdopendir
39242         ties the file descriptor to the returned DIR* pointer.
39243         * lib/openat.c (unlinkat): New function.
39244         * lib/openat.h (unlinkat): Add prototype.
39245         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
39246         (openat_restore_fail): Rename from openat_restore_die.
39247         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
39248
39249         Provide an alternative to exiting immediately upon save_cwd or
39250         restore_cwd failure.  Now, an application can arrange e.g.,
39251         to perform a longjump in that case.
39252         * lib/openat.c: Include dirname.h.
39253         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
39254         (rpl_openat, fdopendir, fstatat): Call openat_save_die
39255         and openat_restore_die rather than calling error directly.
39256         Don't include "error.h" or "exitfail.h"; they're no longer needed.
39257
39258         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
39259         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
39260         define.
39261
39262         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
39263         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
39264                             int utc, int nanoseconds);
39265         Background:
39266         date should not have to allocate a megabyte of virtual memory to
39267         handle a format argument like +%1048575T.  When implemented with
39268         strftime, it must allocate such a buffer, use strftime to fill it
39269         in, print it, then free it.
39270         With fprintftime, it simply prints everything and exits.
39271         With no need for memory allocation, that's one fewer way to fail.
39272         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
39273         optional field width, not before, so we accept %9:z, not %:9z.
39274         (my_strftime): Be sure to use L_('x') for literals.
39275
39276         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
39277         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
39278         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
39279         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
39280         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
39281         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
39282         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
39283         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
39284         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
39285         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
39286         * lib/xgethostname.c, lib/xreadlink.c:
39287         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
39288
39289         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
39290         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
39291         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
39292         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
39293         and don't include <sys/file.h>).
39294
39295 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
39296
39297         Sync from coreutils.
39298
39299         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
39300         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
39301         [!LDAV_DONE]: Avoid unused variable warning.
39302
39303 2005-09-21  Bruno Haible  <bruno@clisp.org>
39304
39305         * lib/unicodeio.h (unicode_to_mb): New declaration.
39306
39307 2005-09-20  Derek Price  <derek@ximbiot.com>
39308
39309         * lib/getaddrinfo.c: Don't include <netdb.h> included from
39310         getaddrinfo.h.
39311
39312 2005-09-20  Bruno Haible  <bruno@clisp.org>
39313
39314         * gnulib-tool: Remove trailing slashes from the values specified for
39315         --source-base, --m4-base, --tests-base, --aux-dir.
39316         Suggested by Simon Josefsson <jas@extundo.com>.
39317
39318 2005-09-20  Bruno Haible  <bruno@clisp.org>
39319
39320         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
39321         func_modules_to_filelist, func_import, func_create_testdir): Make all
39322         sorting results locale-independent, so that gnulib-cache.m4 doesn't
39323         change when gnulib-tool is invoked in a different locale.
39324
39325 2005-09-19  Simon Josefsson  <jas@extundo.com>
39326
39327         * m4/socklen.m4: Fix typo.
39328
39329 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39330
39331         Use a consistent style for including <config.h>.
39332         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
39333         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
39334         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
39335         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
39336         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
39337         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
39338         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
39339         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
39340         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
39341         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
39342         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
39343         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
39344         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
39345         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
39346         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
39347         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
39348         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
39349         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
39350         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
39351         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
39352         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
39353         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
39354         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
39355         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
39356         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
39357         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
39358         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
39359         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
39360         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
39361         lib/xstrtoumax.c, lib/yesno.c:
39362         Standardize inclusion of config.h.
39363         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
39364         lib/inttostr.h:  Removed inclusion of config.h from header files.
39365         * lib/inttostr.c:  Adjusted in-tree users.
39366         * lib/timespec.h: Remove superfluous warning to include config.h.
39367         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
39368         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
39369         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
39370         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
39371         config.h with HAVE_CONFIG_H.
39372
39373 2005-09-19  Jim Meyering  <jim@meyering.net>
39374
39375         * modules/pathmax (License): Change to LGPL.
39376
39377 2005-09-19  Derek Price  <derek@ximbiot.com>
39378
39379         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
39380
39381 2005-09-19  Bruno Haible  <bruno@clisp.org>
39382
39383         * gnulib-tool (import): Provide default for --tests-base.
39384
39385 2005-09-19  Bruno Haible  <bruno@clisp.org>
39386
39387         * doc/quote.texi: New file, extracted from gnulib.texi.
39388         * doc/ctime.texi: New file, extracted from gnulib.texi.
39389         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
39390         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
39391         * doc/gnulib.texi: Include them.
39392
39393 2005-09-18  Bruno Haible  <bruno@clisp.org>
39394
39395         Portability fix.
39396         * gnulib-tool (func_readlink): New function.
39397         (func_ln_if_changed): Use it.
39398
39399 2005-09-18  Bruno Haible  <bruno@clisp.org>
39400
39401         * gnulib-tool: Support --with-tests also with --import.
39402         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
39403         (func_import): Use variables $testsbase and $inctests. Emit a
39404         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
39405         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
39406         SUBDIRS += $testsdir.
39407         (func_create_testdir): Update.
39408
39409 2005-09-18  Bruno Haible  <bruno@clisp.org>
39410
39411         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
39412         instead of $dry_run.
39413         (func_cp_if_changed, func_mv_if_changed): Remove functions.
39414         (func_ln_if_changed): Don't handle dry-run here.
39415         (func_import): In dry-run mode, detect more precisely which actions
39416         would be performed, and don't use "...ing" verbs.
39417
39418 2005-09-18  Bruno Haible  <bruno@clisp.org>
39419
39420         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
39421         (func_import): Use join on two temporary files instead of three nested
39422         loops, in order to determine which files are new or old.
39423
39424 2005-09-18  Bruno Haible  <bruno@clisp.org>
39425
39426         * gnulib-tool (func_import): Comment out code that spits out the
39427         new files with --dry-run.
39428
39429 2005-09-18  Bruno Haible  <bruno@clisp.org>
39430
39431         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
39432
39433 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
39434
39435         * lib/stat-time.h: New file.
39436         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
39437         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
39438         in a different way.
39439         (timespec_cmp): New function.
39440         * lib/utimecmp.c: Include stat-time.h.
39441         (SYSCALL_RESOLUTION): Depend on whether various struct stat
39442         members exist, not on the obsolescent ST_MTIM_NSEC.
39443         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
39444
39445 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
39446
39447         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
39448
39449 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
39450
39451         * MODULES.html.sh (File system functions): Add stat-time.
39452         * modules/stat-time: New file.
39453         * modules/timespec (Files): Remove m4/st_mtim.m4; this
39454         is now done in a different way, by the stat-time module.
39455         * modules/utimecmp (Depends-on): Add stat-time.
39456
39457 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
39458
39459         * m4/st_mtim.m4: Remove.  Superseded by...
39460         * m4/stat-time.m4: New file.
39461         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
39462         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
39463
39464 2005-09-15  Derek Price  <derek@ximbiot.com>
39465
39466         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
39467
39468 2005-09-15  Derek Price  <derek@ximbiot.com>
39469
39470         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
39471         * lib/regex_internal.c: Ditto, using this...
39472         (__GNUC_PREREQ): ...new macro.
39473         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
39474         using...
39475         (__GNUC_PREREQ): ...this new macro.
39476
39477         * lib/strstr.h: Include string.h. Define strstr as a macro here.
39478
39479 2005-09-15  Derek Price  <derek@ximbiot.com>
39480             Paul Eggert  <eggert@cs.ucla.edu>
39481
39482         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
39483         changes, consolidating in...
39484         * lib/regex_internal.h: ...this file.
39485
39486 2005-09-13  Jim Meyering  <jim@meyering.net>
39487
39488         * lib/canon-host.c: Filter through gnu indent and reword comments
39489         slightly.
39490         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
39491
39492 2005-09-13  Derek Price  <derek@ximbiot.com>
39493
39494         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
39495         failure.
39496         Reported by Jim Meyering  <jim@meyering.net>.
39497
39498 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
39499
39500         * lib/base64.c: Typo.
39501         (base64_encode): Put b64str in initialized data section.
39502
39503 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
39504
39505         Merge glibc and coreutils changes into gnulib, plus a few
39506         extra fixes.
39507         * lib/md5.c: Use #error rather than a string.
39508         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
39509         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
39510         (__attribute__): Define to empty for non recent-GCC.
39511         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
39512         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
39513         Renamed from their non-__ counterparts, with new macros replacing
39514         them if not _LIBC.  Add __THROW attribute.
39515         (rol): Remove.
39516         (struct md5_ctx): Align buffer if using GCC.
39517         * lib/sha1.h (struct sha1_ctx): Likewise.
39518         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
39519         The old name was backwards.
39520         (NOTSWAP): Remove; not used.
39521         (rol): New macro, moved here from md5.h.
39522         (sha1_process_block): Remove a FIXME that doesn't make sense.
39523
39524 2005-09-12  Derek Price  <derek@ximbiot.com>
39525
39526         Return usable errors from canon-host.
39527         * lib/canon-host.h: New file.
39528         * lib/canon-host.c (canon_host): Wrap...
39529         (canon_host_r): ...this new function, which now relies exclusively on
39530         getaddrinfo.
39531         (ch_strerror): New function.
39532         (last_cherror): New global.
39533         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
39534         interface.
39535         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
39536         void *.
39537         (freeaddrinfo): Free ai->ai_canonname when set.
39538
39539 2005-09-12  Derek Price  <derek@ximbiot.com>
39540
39541         Make canon-host require getaddrinfo.
39542         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
39543         AC_LIBSOURCE canon-host.h.  Call...
39544         (gl_PREREQ_CANON_HOST): ...this new function, which requires
39545         gl_GETADDRINFO.
39546         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
39547
39548 2005-09-12  Derek Price  <derek@ximbiot.com>
39549
39550         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
39551         LGPL.
39552         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
39553
39554 2005-09-12  Derek Price  <derek@ximbiot.com>
39555
39556         * lib/gai_strerror.c: Include config.h when available.  Include
39557         getaddrinfo.h before other headers to test interface.
39558         Reported by Larry Jones <lawrence.jones@ugs.com>.
39559
39560 2005-09-12  Derek Price  <derek@ximbiot.com>
39561             Paul Eggert  <eggert@cs.ucla.edu>
39562
39563         * modules/glob (Files): Add glob-libc.h.
39564
39565 2005-09-12  Derek Price  <derek@ximbiot.com>
39566             Paul Eggert  <eggert@cs.ucla.edu>
39567
39568         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
39569         glob_.h, glob-libc.h.
39570         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
39571
39572 2005-09-12  Derek Price  <derek@ximbiot.com>
39573             Paul Eggert  <eggert@cs.ucla.edu>
39574
39575         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
39576         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
39577         protecting things that should be done only in gnulib contexts.
39578         * lib/glob_.h: New file, containing only the glob things needed for
39579         gnulib.
39580         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
39581         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
39582         (glob, globfree, glob_pattern_p): Now defined simply in terms of
39583         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
39584         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
39585         and to respect the namespace rules better.
39586
39587 2005-09-08  Simon Josefsson  <jas@extundo.com>
39588
39589         * modules/socklen: New file.
39590
39591 2005-09-08  Simon Josefsson  <jas@extundo.com>
39592
39593         * m4/socklen.m4: New file.
39594
39595 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
39596
39597         * modules/utimens (Files): Add m4/utimbuf.m4, since
39598         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
39599         Reported by Sergey Poznyakoff.
39600
39601 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
39602
39603         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
39604         definitions, since that's the preferred style in glibc.
39605         Fix a minor spacing issue, and update copyright notice to match
39606         glibc's.
39607
39608 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
39609
39610         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
39611
39612 2005-09-06  Simon Josefsson  <jas@extundo.com>
39613
39614         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
39615         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
39616
39617 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
39618
39619         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
39620         warning.
39621
39622 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
39623
39624         * config/srclist.txt: Add glibc bug 1302.
39625
39626 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
39627
39628         Change bitset word type from unsigned int to unsigned long int,
39629         as this has better performance on typical 64-bit hosts.
39630         Port bitset code to hosts with unusual word sizes.
39631         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
39632         (build_collating_symbol):
39633         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
39634         argument is a bitset.  This is merely a style issue, but it makes
39635         it clearer that an entire array is expected.
39636         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
39637         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
39638         Port to the case where bitset_word is not the same as unsigned int.
39639         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
39640         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
39641         Likewise.
39642         * lib/regexec.c (check_dst_limits_calc_pos_1,
39643         check_subexp_matching_top):
39644         (build_trtable, group_nodes_into_DFAstates):
39645         Likewise.
39646         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
39647         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
39648         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
39649         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
39650         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
39651         * lib/regcomp.c (optimize_subexps, lower_subexp):
39652         Work even if bitset_word has holes in its bitwise representation.
39653         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
39654         * lib/regexec.c (check_dst_limits_calc_pos_1,
39655         check_subexp_matching_top):
39656         Likewise.
39657         * lib/regex_internal.c (re_string_reconstruct):
39658         Don't assume UCHAR_MAX == 255.
39659         * lib/regex_internal.h (bitset_set_all): Likewise.
39660         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
39661         All uses changed.
39662         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
39663         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
39664         All uses changed.
39665         (BITSET_WORD_MAX): New macro.
39666         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
39667         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
39668         (bitset_empty, bitset_copy):
39669         Prefer sizeof (bitset) to multiplying it out ourselves.
39670         (bitset_not_merge): Remove; unused.
39671         (bitset_contain): Return bool, not unsigned int with one bit on.
39672         All callers changed.
39673         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
39674         alignment than re_node_set; do this by defining a new internal
39675         type struct dests_alloc and using it to allocate memory.
39676
39677 2005-09-05  Bruno Haible  <bruno@clisp.org>
39678
39679         * gnulib-tool (func_import): Fix comparison in handling of symbolic
39680         links.
39681
39682 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
39683
39684         * modules/size_max (Makefile.am): Add size_max.h
39685
39686 2005-09-04  Derek Price  <derek@ximbiot.com>
39687
39688         * gnulib-tool (func_import): Fix reversed $symbolic logic.
39689
39690 2005-09-03  Simon Josefsson  <jas@extundo.com>
39691
39692         * gnulib-tool: Fix typo.
39693
39694 2005-09-03  Simon Josefsson  <jas@extundo.com>
39695
39696         * config/srclist.txt: Add glibc bug 1293.
39697
39698 2005-09-03  Derek Price  <derek@ximbiot.com>
39699
39700         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
39701         From Larry Jones <lawrence.jones@ugs.com>.
39702
39703 2005-09-02  Simon Josefsson  <jas@extundo.com>
39704
39705         * modules/socklen: New file.
39706
39707 2005-09-02  Simon Josefsson  <jas@extundo.com>
39708
39709         * modules/havelib: New module.
39710
39711         * modules/gettext, modules/iconv, modules/lock, modules/readline:
39712         Use havelib.
39713
39714 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
39715
39716         Check for arithmetic overflow when calculating sizes, to prevent
39717         some buffer-overflow issues.  These patches are conservative, in the
39718         sense that when I couldn't determine whether an overflow was possible,
39719         I inserted a run-time check.
39720         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
39721         macros.
39722         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
39723         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
39724         (re_xnrealloc, re_x2nrealloc): New inline functions.
39725         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
39726         parse_bracket_exp):
39727         (build_equiv_class, build_charclass): Check for arithmetic overflow
39728         in size expression calculations.
39729         * lib/regex_internal.c (re_string_realloc_buffers):
39730         (build_wcs_upper_buffer, re_node_set_add_intersect):
39731         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
39732         (re_dfa_add_node, register_state): Likewise.
39733         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
39734         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
39735         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
39736         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
39737
39738 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
39739
39740         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
39741         m4/ulonglong.m4.  Problem reported by Martin Lambers.
39742
39743 2005-09-02  Bruno Haible  <bruno@clisp.org>
39744
39745         Support for lib vs. lib64 distinction on biarch platforms.
39746         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
39747         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
39748         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
39749
39750 2005-09-02  Bruno Haible  <bruno@clisp.org>
39751
39752         * gnulib-tool (import): In the other first-use case, provide defaults
39753         as well.
39754
39755 2005-09-02  Bruno Haible  <bruno@clisp.org>
39756
39757         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
39758         patches not yet found in the latest gettext release.
39759
39760 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
39761
39762         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
39763         to avoid a collision with bits/local_lim.h in glibc.
39764         All uses changed.  Problem reported by Dmitry V. Levin in
39765         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
39766
39767         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
39768         bugs in int versus size_t comparisons.
39769         (re_string_context_at): Fix bug where the code assumed that
39770         Idx is signed.
39771
39772         Use bool where appropriate.
39773         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
39774         All callers changed.
39775         (calc_eclosure_iter): Likewise, for ROOT arg.
39776         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
39777         (build_charclass_op): Likewise, for NON_MATCH arg.
39778         * lib/regex_internal.c (re_string_allocate, re_string_construct):
39779         (re_string_construct_common): Likewise, for ICASE arg.
39780         * lib/regexec.c (re_search_2_stub, re_search_stub):
39781         Likewise, for RET_LEN arg.
39782         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
39783         (set_regs): Likewise, for FL_BACKTRACK arg.
39784         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
39785         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
39786         (calc_eclosure_iter, parse_bracket_exp):
39787         Use bool for internal variables that are booleans.
39788         * lib/regexec.c (re_search_internal, check_matching,
39789         proceed_next_node):
39790         (set_regs, build_sifted_states, sift_states_bkref):
39791         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
39792         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
39793         (find_collation_sequence_value):
39794         Likewise.
39795         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
39796         (re_node_set_compare):
39797         Return bool, not int. All callers changed.
39798         * lib/regexec.c (check_halt_node_context, check_dst_limits):
39799         (build_trtable, check_node_accept): Likewise.
39800         * lib/regex_internal.h: Include stdbool.h.
39801
39802         Fix bugs uncovered when converting to bool.
39803         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
39804         failure instead of charging ahead blindly.
39805         * lib/regex_internal.c (register_state): Likewise.
39806         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
39807         for freeing internal storage.
39808         (group_nodes_into_DFA_states): Use unsigned int, not int, for
39809         bitset pieces used as boolean, to avoid undefined behavior
39810         on hosts that do int overflow checking.
39811
39812 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
39813
39814         * config/srclist.txt: Add glibc bugs 1285-1287.
39815
39816 2005-09-01  Jim Meyering  <jim@meyering.net>
39817
39818         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
39819         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
39820         Require gl_STAT_MACROS, too.
39821
39822 2005-09-01  Bruno Haible  <bruno@clisp.org>
39823
39824         * gnulib-tool (import): In the first-use case, provide defaults.
39825
39826 2005-09-01  Bruno Haible  <bruno@clisp.org>
39827
39828         * gnulib-tool (func_import): Remove the .tmp files.
39829
39830 2005-09-01  Bruno Haible  <bruno@clisp.org>
39831
39832         * gnulib-tool (func_import): Fix handling of symbolic links.
39833
39834 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
39835
39836         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
39837         old glibc regex code mishandles strings longer than 2**31 bytes.
39838         This patch fixes this when the regex code is used in gnulib
39839         (i.e., outside glibc).
39840
39841         This patch should not affect the use of the regex code inside
39842         glibc.  No doubt this problem also needs to be handled for glibc
39843         as well, but the result will be an incompatible change to the
39844         glibc ABI, and the old ABI will have to be supported too.  That
39845         can be the the subject for another patch.
39846
39847         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
39848         governing whether the rest of this patch is active.  By default,
39849         the macro is disabled and the patch has no effect.
39850         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
39851         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
39852         (struct re_pattern_buffer, re_search, re_search_2, re_match):
39853         (re_match_2, re_set_registers): Use the new types.
39854         * lib/regex_internal.h (Idx, re_hashval_t): New types.
39855         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
39856         New macros.
39857         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
39858         (re_string_context_at, bin_tree_t, re_dfastate_t):
39859         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
39860         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
39861         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
39862         (re_string_char_size_at, re_string_wchar_at):
39863         (re_string_elem_size_at):
39864         Use the new types and macros to port to 64-bit hosts.
39865         Use unsigned types for internal values, so that the code
39866         mostly works even for arrays larger than SSIZE_MAX.
39867         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
39868         (search_duplicated_node, calc_eclosure_iter, fetch_number):
39869         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
39870         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
39871         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
39872         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
39873         (calc_inveclosure, parse_dup_op, build_range_exp):
39874         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
39875         (fetch_number, create_token_tree, mark_opt_subexp):
39876         Likewise.
39877         * lib/regex_internal.c (re_string_construct_common,
39878         create_ci_newstate):
39879         (create_cd_newstate, re_string_allocate, re_string_construct):
39880         (re_string_realloc_buffers, build_wcs_upper_buffer):
39881         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
39882         (re_string_reconstruct, re_string_peek_byte_case):
39883         (re_string_fetch_byte_case, re_string_context_at):
39884         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
39885         (re_node_set_init_copy, re_node_set_add_intersect):
39886         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
39887         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
39888         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
39889         (re_acquire_state, re_acquire_state_context, register_state):
39890         Likewise.
39891         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
39892         search_cur_bkref_entry):
39893         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
39894         (re_search_internal, re_search_2_stub, re_search_stub)
39895         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
39896         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
39897         (update_cur_sifted_state, check_dst_limits):
39898         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
39899         (check_subexp_limits, sift_states_bkref, merge_state_array):
39900         (check_subexp_matching_top, get_subexp, get_subexp_sub):
39901         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
39902         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
39903         (expand_bkref_cache, check_node_accept_bytes):
39904         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
39905         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
39906         (acquire_init_state_context, check_halt_node_context):
39907         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
39908         (sift_states_backward, clean_state_log_if_needed):
39909         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
39910         (find_recover_state, transit_state_sb, transit_state_mb):
39911         (transit_state_bkref, build_trtable, match_ctx_clean):
39912         Likewise.
39913         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
39914         to work around an assumption that REG_MISSING is negative.
39915
39916         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
39917         (seek_collating_symbol_entry) [defined _LIBC]:
39918         (lookup_collation_sequence_value) [defined _LIBC]:
39919         (build_range_exp, build_collating_symbol) [defined _LIBC]:
39920         Use prototypes rather than old-style function definitions.
39921         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
39922         (transit_state_sb) [0]:
39923         (find_collation_sequence_value) [defined _LIBC]: Likewise.
39924
39925         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
39926         rm_eo.
39927
39928         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
39929         (optimize_subexps, lower_subexp):
39930         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
39931         since the signed shift might overflow.  Use 1u<<31 instead.
39932         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
39933         Likewise.
39934         * lib/regexec.c (check_dst_limits_calc_pos_1,
39935         check_subexp_matching_top): Likewise.
39936
39937         * lib/regcomp.c (optimize_subexps, lower_subexp):
39938         Use CHAR_BIT rather than 8, for clarity.
39939         * lib/regexec.c (check_dst_limits_calc_pos_1):
39940         (check_subexp_matching_top): Likewise.
39941         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
39942         have to worry about portability issues when shifting it left.
39943         Remove no-longer-needed test for table_size > 0.
39944         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
39945         in a word, as the resulting behavior is undefined.
39946         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
39947         in one case, a <= should have been an <, and in another case the
39948         whole test was missing.
39949         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
39950         the standard name CHAR_BIT.
39951         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
39952         this is not true on one's complement and signed-magnitude hosts.
39953
39954         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
39955         next_last_offset.
39956         (struct re_dfa_t): Remove unused member states_alloc.
39957         * lib/regcomp.c (init_dfa): Don't initialize unused members.
39958
39959 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
39960
39961         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
39962         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
39963         and large-file glibc and in 32-bit large-file Solaris.
39964
39965 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
39966
39967         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
39968         lengths fit in regoff_t; this isn't true if regoff_t is the same
39969         width as size_t.
39970         * lib/regex.c (re_search_internal): 5th arg is LAST_START
39971         (= START + RANGE) instead of RANGE.  This avoids overflow
39972         problems when regoff_t is the same width as size_t.
39973         All callers changed.
39974         (re_search_2_stub): Check for overflow when adding the
39975         sizes of the two strings.
39976         (re_search_stub): Check for overflow when adding START
39977         to RANGE; if it occurs, substitute the extreme value.
39978
39979 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
39980
39981         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
39982
39983 2005-08-31  Jim Meyering  <jim@meyering.net>
39984
39985         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
39986         a pointer-to-const.
39987         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
39988         (register_state): Likewise.
39989         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
39990         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
39991         (group_nodes_into_DFAstates): Likewise.
39992
39993 2005-08-31  Jim Meyering  <jim@meyering.net>
39994
39995         * check-module: Add a FIXME comment.
39996
39997 2005-08-31  Eric Blake  <ebb9@byu.net>
39998
39999         * modules/unistd-safer (Files): Add unistd--.h.
40000         * modules/stdio-safer (Files): Add stdio--.h.
40001
40002 2005-08-31  Derek Price  <derek@ximbiot.com>
40003
40004         * lib/getdelim.c (getdelim): Return EOF on EOF.
40005         Reported by Larry Jones <lawrence.jones@ugs.com>.
40006
40007 2005-08-31  Bruno Haible  <bruno@clisp.org>
40008
40009         Avoid unnecessary diffs in the generated lib/Makefile.am.
40010         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
40011         the generated files.
40012         (func_import): Don't set cmd.
40013
40014 2005-08-31  Bruno Haible  <bruno@clisp.org>
40015
40016         * lib/strstr.c: Include <stddef.h>, for NULL.
40017         * lib/strcasestr.c: Likewise.
40018         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40019
40020 2005-08-31  Bruno Haible  <bruno@clisp.org>
40021
40022         * gnulib-tool: New option --macro-prefix.
40023         (func_import): Use macro_prefix.
40024         (import): Handle option --macro-prefix.
40025
40026 2005-08-31  Bruno Haible  <bruno@clisp.org>
40027
40028         * gnulib-tool (import): Rename most ac_* variables to cached_*.
40029         Also use new variables cached_lgpl, cached_libtool.
40030
40031 2005-08-31  Bruno Haible  <bruno@clisp.org>
40032
40033         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
40034         always instantiating them.
40035
40036 2005-08-31  Bruno Haible  <bruno@clisp.org>
40037
40038         * gnulib-tool (func_import): Read the previous cached settings
40039         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
40040         earlier added by gnulib but are now dropped. Warn when a gnulib file
40041         overwrites a non-gnulib file.
40042
40043 2005-08-31  Bruno Haible  <bruno@clisp.org>
40044
40045         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
40046         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
40047         projects that don't keep autogenerated files in CVS. Put into
40048         actioncmd only the specified modules, not the transitive closure.
40049
40050 2005-08-31  Bruno Haible  <bruno@clisp.org>
40051
40052         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
40053         Create directories that shall be filled.
40054         (import): Don't look for gl_* macros in configure.ac. Recurse across
40055         all directories containing a gnulib-cache.m4 files, if meaningful.
40056
40057 2005-08-31  Bruno Haible  <bruno@clisp.org>
40058
40059         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
40060         (import): Set seen_libtool when we see gl_LIBTOOL.
40061
40062 2005-08-31  Bruno Haible  <bruno@clisp.org>
40063
40064         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
40065         declaration macro definitions from generated gnulib.m4.
40066
40067 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
40068
40069         * lib/iconvme.h: Add prototype for iconv_alloc.
40070
40071 2005-08-29  Simon Josefsson  <jas@extundo.com>
40072
40073         * lib/iconvme.c: Fix errno.
40074
40075 2005-08-29  Bruno Haible  <bruno@clisp.org>
40076
40077         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
40078         that it works when the directory contains spaces.
40079
40080 2005-08-29  Bruno Haible  <bruno@clisp.org>
40081
40082         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
40083
40084 2005-08-29  Bruno Haible  <bruno@clisp.org>
40085
40086         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
40087         Emit more advice.
40088
40089 2005-08-29  Bruno Haible  <bruno@clisp.org>
40090         and Stepan Kasal  <kasal@ucw.cz>
40091
40092         * check-module: If more parameters are given, check each of them
40093         separately; add more exceptions, as noted by Jim Meyering.
40094         (check_module): New procedure.
40095         (%exempt_header): Now contains all exceptions.
40096
40097 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
40098
40099         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
40100
40101 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
40102
40103         * lib/iconvme.c: Split iconv_string into iconv_alloc.
40104
40105 2005-08-28  Bruno Haible  <bruno@clisp.org>
40106
40107         * m4/gnulib-tool.m4: New file.
40108
40109 2005-08-27  Jim Meyering  <jim@meyering.net>
40110
40111         * modules/unistd-safer (Files): Add pipe-safer.c.
40112         * modules/fcntl-safer (Files): Add creat-safer.c.
40113
40114 2005-08-27  Jim Meyering  <jim@meyering.net>
40115
40116         * m4/stdlib-safer.m4: New file.  From coreutils.
40117         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
40118         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
40119         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
40120         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
40121         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
40122
40123 2005-08-27  Jim Meyering  <jim@meyering.net>
40124
40125         * lib/fopen-safer.c: Merge minor changes from coreutils.
40126         * lib/dup-safer.c: Likewise.
40127         * lib/fd-safer.c: Likewise.
40128
40129         Merge from coreutils.
40130         * lib/stdio--.h: New file.
40131         * lib/stdlib--.h: New file.
40132         * lib/mkstemp-safer.c: New file.
40133
40134         GNU tar needs these.
40135         * lib/pipe-safer.c: New file.
40136         * lib/creat-safer.c: New file.
40137         * lib/fcntl--.h (creat): Define to creat_safer.
40138         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
40139         * lib/unistd--.h (pipe): Define to pipe_safer.
40140         * lib/unistd-safer.h: Declare pipe_safer.
40141
40142 2005-08-26  Simon Josefsson  <jas@extundo.com>
40143
40144         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
40145         Haible <bruno@clisp.org>.
40146
40147 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
40148
40149         * lib/regex_internal.h: Remove all references to
40150         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
40151         or better.
40152         (bitset_not, bitset_merge, bitset_not_merge):
40153         (bitset_mask, re_string_allocate, re_string_construct):
40154         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
40155         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
40156         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
40157         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
40158         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
40159         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
40160         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
40161         (re_acquire_state_context):
40162         Remove unnecessary forward decls.
40163         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
40164         Put __attribute at function definition,
40165         now that the function decl has been removed.
40166         * lib/regex_internal.c (re_string_peek_byte_case):
40167         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
40168         Likewise.
40169
40170 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
40171
40172         * m4/regex.m4: Add AC_PREREQ(2.50).
40173         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
40174
40175 2005-08-25  Simon Josefsson  <jas@extundo.com>
40176
40177         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
40178         __fsetlocking.
40179
40180 2005-08-25  Simon Josefsson  <jas@extundo.com>
40181
40182         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
40183         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
40184         GLIBC specific code.
40185
40186 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
40187
40188         Make regex safe for g++.  This fixes one real bug (an "err"
40189         that should have been "*err").  g++ problem reported by
40190         Sam Steingold.
40191         * lib/regex_internal.h (re_calloc): New macro, consistent with
40192         re_malloc etc.  All callers of calloc changed to use re_calloc.
40193         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
40194         not int.  All callers changed.
40195         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
40196         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
40197         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
40198         (find_recover_state): Change "err" to "*err"; this fixes what
40199         appears to be a real bug.
40200         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
40201         versus int.
40202
40203 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
40204
40205         * modules/regex (Depends-on): Add malloc, since the code
40206         assumes that !malloc(0) means failure.
40207
40208 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
40209
40210         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
40211
40212         alloca modernization/simplification for regex.
40213         * lib/regex.c: Remove portability cruft for alloca.  This no longer
40214         needs to be at the start of the file, and can be moved into
40215         regex_internal.h and simplified.
40216         * lib/regex_internal.h: Include <alloca.h>.
40217         (__libc_use_alloca) [!defined _LIBC]: New macro.
40218         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
40219         now works outside glibc.
40220
40221 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
40222
40223         * config/srclist.txt: Add glibc bugs 1241, 1245.
40224
40225 2005-08-25  Jim Meyering  <jim@meyering.net>
40226
40227         * lib/open-safer.c: Include <config.h>.
40228         Otherwise, we'd lose LARGEFILE support in any file using
40229         e.g. "fcntl--.h"
40230
40231 2005-08-25  Bruno Haible  <bruno@clisp.org>
40232
40233         * m4/minmax.m4: Require autoconf 2.52.
40234         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
40235         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
40236         alternatives of translit over the alphabet.
40237         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
40238
40239 2005-08-24  Simon Josefsson  <jas@extundo.com>
40240
40241         * tests/test-getpass.c: New file.
40242
40243 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
40244
40245         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
40246         for GNU regex features.
40247
40248 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
40249
40250         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
40251         * lib/regex.h (regerror): Likewise.
40252
40253         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
40254         requires this.  (The code never needed it.)
40255
40256         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
40257         All uses of recently-renamed identifiers changed to use the new,
40258         POSIX-compliant names.  The code will build and run just fine
40259         without these changes, but it's better to eat our own dog food
40260         and use the standard-conforming names.
40261
40262         * lib/regex.h: Fix a multitude of POSIX name space violations.
40263         These changes have an effect only for programs that define
40264         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
40265         do not change anything for programs compiled in the normal way.
40266         Also, there is no effect on the ABI.
40267
40268         (_REGEX_SOURCE): New macro.
40269         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
40270         defined and _GNU_SOURCE is not; this fixes a name space violation.
40271
40272         Rename the following macros to obey POSIX requirements.
40273         The old names are still visible as macros if _REGEX_SOURCE is defined.
40274         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
40275         RE_BACKSLASH_ESCAPE_IN_LISTS.
40276         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
40277         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
40278         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
40279         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
40280         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
40281         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
40282         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
40283         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
40284         (REG_INTERVALS): renamed from RE_INTERVALS.
40285         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
40286         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
40287         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
40288         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
40289         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
40290         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
40291         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
40292         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
40293         RE_UNMATCHED_RIGHT_PAREN_ORD.
40294         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
40295         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
40296         (REG_DEBUG): renamed from RE_DEBUG.
40297         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
40298         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
40299         unusual, since we can't clash with the POSIX REG_ICASE.
40300         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
40301         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
40302         (REG_NO_SUB): renamed from RE_NO_SUB.
40303         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
40304         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
40305         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
40306         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
40307         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
40308         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
40309         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
40310         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
40311         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
40312         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
40313         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
40314         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
40315         RE_SYNTAX_POSIX_MINIMAL_BASIC.
40316         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
40317         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
40318         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
40319         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
40320         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
40321         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
40322         (REG_FIXED): Renamed from REGS_FIXED.
40323         (REG_NREGS): Renamed from RE_NREGS.
40324
40325         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
40326         of other REG_* macros, since POSIX says the user is allowed to
40327         #undef these macros selectively.
40328
40329         (reg_errcode_t): Update comment stating what other tables need
40330         to be consistent.
40331
40332         Rename the following enum values to obey POSIX requirements.
40333         The old names are still visible as macros.
40334         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
40335         is not defined, since GNU is supposed to be a superset of POSIX as
40336         much as possible, and since we want reg_errcode_t to be a signed
40337         type for implementation consistency.
40338         (_REG_NOERROR): Renamed from REG_NOERROR.
40339         (_REG_NOMATCH): Renamed from REG_NOMATCH.
40340         (_REG_BADPAT): Renamed from REG_BADPAT.
40341         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
40342         (_REG_ECTYPE): Renamed from REG_ECTYPE.
40343         (_REG_EESCAPE): Renamed from REG_EESCAPE.
40344         (_REG_ESUBREG): Renamed from REG_ESUBREG.
40345         (_REG_EBRACK): Renamed from REG_EBRACK.
40346         (_REG_EPAREN): Renamed from REG_EPAREN.
40347         (_REG_EBRACE): Renamed from REG_EBRACE.
40348         (_REG_BADBR): Renamed from REG_BADBR.
40349         (_REG_ERANGE): Renamed from REG_ERANGE.
40350         (_REG_ESPACE): Renamed from REG_ESPACE.
40351         (_REG_BADRPT): Renamed from REG_BADRPT.
40352         (_REG_EEND): Renamed from REG_EEND.
40353         (_REG_ESIZE): Renamed from REG_ESIZE.
40354         (_REG_ERPAREN): Renamed from REG_ERPAREN.
40355         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
40356         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
40357         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
40358         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
40359
40360         (_REG_RE_NAME, _REG_RM_NAME): New macros.
40361         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
40362         changed.  But support the old name if the new one is not defined
40363         and if _REGEX_SOURCE.
40364
40365         Change the following member names in struct re_pattern_buffer.
40366         The old names are still supported if !_REGEX_SOURCE.
40367         The new names are always supported, regardless of _REGEX_SOURCE.
40368         (re_buffer): Renamed from buffer.
40369         (re_allocated): Renamed from allocated.
40370         (re_used): Renamed from used.
40371         (re_syntax): Renamed from syntax.
40372         (re_fastmap): Renamed from fastmap.
40373         (re_translate): Renamed from translate.
40374         (re_can_be_null): Renamed from can_be_null.
40375         (re_regs_allocated): Renamed from regs_allocated.
40376         (re_fastmap_accurate): Renamed from fastmap_accurate.
40377         (re_no_sub): Renamed from no_sub.
40378         (re_not_bol): Renamed from not_bol.
40379         (re_not_eol): Renamed from not_eol.
40380         (re_newline_anchor): Renamed from newline_anchor.
40381
40382         Change the following member names in struct re_registers.
40383         The old names are still supported if !_REGEX_SOURCE.
40384         The new names are always supported, regardless of _REGEX_SOURCE.
40385         (rm_num_regs): Renamed from num_regs.
40386         (rm_start): Renamed from start.
40387         (rm_end): Renamed from end.
40388
40389         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
40390         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
40391         Prepend __ to parameter names.
40392
40393         Undo yesterday's changes.
40394
40395 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
40396
40397         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
40398         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
40399         lib/regex.c.
40400
40401 2005-08-24  Jim Meyering  <jim@meyering.net>
40402
40403         Sync from coreutils.
40404         * m4/fcntl-safer.m4: New file.
40405
40406         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
40407         and object files for this module.
40408
40409 2005-08-24  Jim Meyering  <jim@meyering.net>
40410
40411         Sync from coreutils.
40412         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
40413
40414 2005-08-24  Jim Meyering  <jim@meyering.net>
40415
40416         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
40417         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
40418
40419 2005-08-24  Jim Meyering  <jim@meyering.net>
40420
40421         * modules/fcntl-safer: New module.
40422         * modules/fts (Depends-on): Add fcntl-safer.
40423         * MODULES.html.sh (File descriptor based Input/Output):
40424         Add fcntl-safer.
40425
40426 2005-08-24  Bruno Haible  <bruno@clisp.org>
40427
40428         Support for unit test modules.
40429         * modules/README: Mention tests modules.
40430         * modules/TEMPLATE-TESTS: New file.
40431         * gnulib-tool: New options --extract-tests-module, --with-tests and
40432         --tests-base (unused for the moment).
40433         (testsbase, inctests): New variables.
40434         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
40435         (func_verify_module): Exclude TEMPLATE-TESTS.
40436         (func_verify_nontests_module, func_verify_tests_module): New functions.
40437         (func_get_dependencies): Add implicit dependency for tests modules.
40438         (func_get_tests_module): New function.
40439         (func_modules_transitive_closure): When --with-tests was specified,
40440         include the unit tests as well, unless explicitly avoided.
40441         (func_emit_lib_Makefile_am): Ignore the tests modules here.
40442         (func_emit_tests_Makefile_am): New function.
40443         (func_create_testdir): When --with-tests was specified, emit a
40444         tests/ directory.
40445         * MODULES.html.sh (Future developments): Update.
40446
40447 2005-08-24  Bruno Haible  <bruno@clisp.org>
40448
40449         * modules/tls-tests: New file.
40450         * tests/test-tls.c: New file, from GNU gettext.
40451
40452 2005-08-24  Bruno Haible  <bruno@clisp.org>
40453
40454         * modules/lock-tests: New file.
40455         * tests/test-lock.c: New file, from GNU gettext.
40456
40457 2005-08-24  Bruno Haible  <bruno@clisp.org>
40458
40459         * lib/lock.h: Add multiple inclusion guard.
40460         * lib/tls.h: Add multiple inclusion guard.
40461
40462 2005-08-24  Bruno Haible  <bruno@clisp.org>
40463
40464         * gnulib-tool: Add support for the --aux-dir option to
40465         --create-testdir, --create-megatestdir, --test, --megatest.
40466         (func_create_testdir, func_create_megatestdir): Optionally emit a
40467         AC_CONFIG_AUX_DIR directive.
40468         (create-testdir, create-megatestdir, test, megatest): Provide a
40469         default value for $auxdir.
40470
40471 2005-08-24  Bruno Haible  <bruno@clisp.org>
40472
40473         * gnulib-tool (import): Use compound statement instead of subshell
40474         where possible.
40475
40476 2005-08-24  Bruno Haible  <bruno@clisp.org>
40477
40478         * gnulib-tool (import): Change --aux-dir default to "build-aux".
40479
40480 2005-08-24  Bruno Haible  <bruno@clisp.org>
40481
40482         * gnulib-tool (func_version): Update.
40483
40484 2005-08-24  Bruno Haible  <bruno@clisp.org>
40485
40486         * gnulib-tool (func_import, func_create_testdir,
40487         func_create_megatestdir): Quote all autoconf macro arguments.
40488
40489 2005-08-24  Bruno Haible  <bruno@clisp.org>
40490
40491         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
40492         option --force, because --force causes the aclocal.m4 of each
40493         subdirectory to be newer than the corresponding config.h.in.
40494
40495 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
40496
40497         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
40498         All contents moved to gl_REGEX.
40499         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
40500         assume that it does.
40501
40502 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
40503
40504         * lib/regex.h (REG_NOSYS)
40505         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
40506         Define, since POSIX requires it as of 2001.
40507         (_REG_ENOSYS)
40508         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
40509         New private symbol, used to keep the enum signed in all cases.
40510         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
40511         Youngman in
40512         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
40513
40514         * lib/regex_internal.c (re_string_skip_chars, register_state):
40515         (calc_state_hash):
40516         Remove forward decls; no longer needed now that we use prototypes.
40517         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
40518         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
40519         (clean_state_log_if_needed): Likewise.
40520
40521 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
40522
40523         * config/srclist.txt: Add glibc bugs 1231-1233.
40524
40525 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
40526
40527         Fix problems reported by Sam Steingold in
40528         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
40529         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
40530         assumed that reg_errcode_t is a signed type, which is not
40531         necessarily true if _XOPEN_SOURCE is not defined.
40532         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
40533         since some compilers warn about it otherwise.
40534
40535 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
40536
40537         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
40538         (init_word_char, create_initial_state, duplicate_node_closure):
40539         (fetch_token, peek_token_bracket, build_range_exp):
40540         (build_collating_symbol): Remove forward decls; no longer needed
40541         now that we use prototypes.
40542
40543         * lib/regcomp.c:
40544         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
40545         (re_compile_fastmap_iter, regcomp, regerror, regfree):
40546         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
40547         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
40548         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
40549         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
40550         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
40551         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
40552         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
40553         (build_range_exp, build_collating_symbol, parse_bracket_exp):
40554         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
40555         (build_charclass, build_charclass_op, fetch_number, create_tree):
40556         (create_token_tree, mark_opt_subexp, duplicate_tree):
40557         Use prototypes rather than old-style definitions.
40558
40559         * lib/regex_internal.c:
40560         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
40561         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
40562         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
40563         (re_string_reconstruct, re_string_peek_byte_case):
40564         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
40565         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
40566         (re_node_set_init_copy, re_node_set_add_intersect):
40567         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
40568         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
40569         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
40570         (re_acquire_state, re_acquire_state_context, register_state):
40571         (create_ci_newstate, create_cd_newstate, free_state):
40572         Likewise.
40573         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
40574         re_search_2):
40575         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
40576         (re_search_internal, prune_impossible_nodes):
40577         (acquire_init_state_context, check_matching, static):
40578         (check_halt_node_context, check_halt_state_context, proceed_next_node):
40579         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
40580         (update_regs, sift_states_backward, build_sifted_states):
40581         (clean_state_log_if_needed, merge_state_array):
40582         (update_cur_sifted_state, add_epsilon_src_nodes):
40583         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
40584         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
40585         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
40586         (find_recover_state, check_subexp_matching_top, transit_state_mb):
40587         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
40588         (check_arrival, check_arrival_add_next_nodes):
40589         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
40590         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
40591         (check_node_accept_bytes, check_node_accept, extend_buffers):
40592         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
40593         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
40594         (sift_ctx_init):
40595         Likewise.
40596
40597         * lib/regex_internal.h:
40598         (re_string_allocate, re_string_construct, re_string_reconstruct):
40599         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
40600         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
40601         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
40602         (re_string_context_at, re_string_peek_byte_case):
40603         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
40604         is defined, since we now use prototypes always.
40605
40606         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
40607         C89 or better.  All uses removed.
40608
40609 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
40610
40611         * config/srclist.txt: Add glibc bugs 1220-1227.
40612
40613 2005-08-20  Jim Meyering  <jim@meyering.net>
40614
40615         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
40616         of unused local, dfa.
40617
40618 2005-08-20  Bruno Haible  <bruno@clisp.org>
40619
40620         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
40621
40622 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40623
40624         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
40625         (re_node_set_insert_last, re_dfa_add_node):
40626         Rename local variables to avoid GCC shadowing warnings.
40627
40628 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40629
40630         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
40631         [defined lint]: Suppress bogus uninitialized-variable warnings.
40632
40633         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
40634         and let the caller return REG_ESPACE if out of space.  This
40635         removes an uninitialied-variable warning with GCC 4.0.1, and also
40636         avoids taking the address of a local variable.  All callers
40637         changed.
40638
40639 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40640
40641         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
40642         $LIBCSRC/posix/regexec.c.
40643         Add glibc bug 1217 for regcomp.c.
40644
40645 2005-08-19  Jim Meyering  <jim@meyering.net>
40646
40647         * lib/regexec.c (proceed_next_node): Redo local variables to
40648         avoid GCC shadowing warnings.
40649
40650 2005-08-18  Bruno Haible  <bruno@clisp.org>
40651
40652         * lib/strstr.c (strstr): Fix return value in multibyte case.
40653         * lib/strcasestr.c (strcasestr): Likewise.
40654
40655 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
40656
40657         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
40658
40659 2005-08-17  Jim Meyering  <jim@meyering.net>
40660
40661         Make the %s format (seconds since the epoch) work for a negative
40662         number and when used with a zero-padded field width, e.g. %015s.
40663
40664         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
40665         label so that it precedes the code to set `digits'.  Otherwise,
40666         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
40667         print `00-22'.  Now, it prints `-0022', as it should.
40668
40669 2005-08-17  Bruno Haible  <bruno@clisp.org>
40670
40671         * modules/strstr (Files): Add m4/mbrtowc.m4.
40672         (Depends-on): Add mbuiter.
40673
40674 2005-08-17  Bruno Haible  <bruno@clisp.org>
40675
40676         * modules/strcasestr: New file.
40677         * MODULES.html.sh (String handling, based on ANSI C 89): Add
40678         strcasestr.
40679
40680 2005-08-17  Bruno Haible  <bruno@clisp.org>
40681
40682         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
40683
40684 2005-08-17  Bruno Haible  <bruno@clisp.org>
40685
40686         * modules/mbuiter: New file.
40687         * MODULES.html.sh (Extended multibyte and wide character utilities):
40688         Add mbuiter.
40689
40690 2005-08-17  Bruno Haible  <bruno@clisp.org>
40691
40692         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
40693         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
40694
40695 2005-08-17  Bruno Haible  <bruno@clisp.org>
40696
40697         * m4/strcasestr.m4: New file.
40698
40699 2005-08-17  Bruno Haible  <bruno@clisp.org>
40700
40701         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
40702         * lib/strstr.c: Completely rewritten, with multibyte locale support.
40703
40704 2005-08-17  Bruno Haible  <bruno@clisp.org>
40705
40706         * lib/strcasestr.h: New file.
40707         * lib/strcasestr.c: New file.
40708
40709 2005-08-17  Bruno Haible  <bruno@clisp.org>
40710
40711         * lib/strcasecmp.c: Use mbuiter.h.
40712
40713 2005-08-17  Bruno Haible  <bruno@clisp.org>
40714
40715         * lib/mbuiter.h: New file.
40716
40717 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
40718
40719         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
40720         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
40721         and gl_GETOPT are both invoked via different paths (as happens
40722         with GNU tar CVS because it uses both argp and getopt), the former
40723         wins.
40724
40725 2005-08-16  Bruno Haible  <bruno@clisp.org>
40726
40727         * modules/tls: New file.
40728         * MODULES.html.sh (Multithreading): Add tls.
40729
40730 2005-08-16  Bruno Haible  <bruno@clisp.org>
40731
40732         * modules/strnlen1: New file.
40733         * MODULES.html.sh (String handling): Add strnlen1.
40734
40735 2005-08-16  Bruno Haible  <bruno@clisp.org>
40736
40737         * modules/strcase (Files): Add m4/mbrtowc.m4.
40738         (Depends-on): Add strnlen1, mbchar.
40739
40740 2005-08-16  Bruno Haible  <bruno@clisp.org>
40741
40742         * modules/mbiter: New file.
40743         * MODULES.html.sh (Extended multibyte and wide character utilities):
40744         Add mbiter.
40745
40746 2005-08-16  Bruno Haible  <bruno@clisp.org>
40747
40748         * modules/mbfile: New file.
40749         * MODULES.html.sh (Extended multibyte and wide character utilities):
40750         Add mbfile.
40751
40752 2005-08-16  Bruno Haible  <bruno@clisp.org>
40753
40754         * modules/mbchar: New file.
40755         * MODULES.html.sh (Extended multibyte and wide character utilities):
40756         New section.
40757
40758 2005-08-16  Bruno Haible  <bruno@clisp.org>
40759
40760         * m4/tls.m4: New file, from GNU gettext.
40761
40762 2005-08-16  Bruno Haible  <bruno@clisp.org>
40763
40764         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
40765         always.
40766         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
40767
40768 2005-08-16  Bruno Haible  <bruno@clisp.org>
40769
40770         * m4/mbiter.m4: New file.
40771
40772 2005-08-16  Bruno Haible  <bruno@clisp.org>
40773
40774         * m4/mbfile.m4: New file.
40775
40776 2005-08-16  Bruno Haible  <bruno@clisp.org>
40777
40778         * m4/mbchar.m4: New file.
40779
40780 2005-08-16  Bruno Haible  <bruno@clisp.org>
40781
40782         * lib/tls.h: New file, from GNU gettext.
40783         * lib/tls.c: New file, from GNU gettext.
40784
40785 2005-08-16  Bruno Haible  <bruno@clisp.org>
40786
40787         * lib/strnlen1.h: New file.
40788         * lib/strnlen1.c: New file.
40789
40790 2005-08-16  Bruno Haible  <bruno@clisp.org>
40791
40792         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
40793         (mbi_init): Update.
40794         (mbi_avail, mbi_advance): Let the iteration end before the terminating
40795         NUL byte, not after it.
40796
40797 2005-08-16  Bruno Haible  <bruno@clisp.org>
40798
40799         * lib/strcase.h (strcasecmp): Add note in comments.
40800         * lib/strncasecmp.c: Use code from strcasecmp.c.
40801         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
40802         (strcasecmp): Work correctly in multibyte locales.
40803
40804 2005-08-16  Bruno Haible  <bruno@clisp.org>
40805
40806         * lib/mbiter.h: New file.
40807
40808 2005-08-16  Bruno Haible  <bruno@clisp.org>
40809
40810         * lib/mbfile.h: New file.
40811
40812 2005-08-16  Bruno Haible  <bruno@clisp.org>
40813
40814         * lib/mbchar.h: New file.
40815         * lib/mbchar.c: New file.
40816
40817 2005-08-16  Bruno Haible  <bruno@clisp.org>
40818
40819         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
40820         the valid ones. Makes the comparison operations transitive:
40821         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
40822         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
40823
40824 2005-08-15  Simon Josefsson  <jas@extundo.com>
40825
40826         * modules/ssize_t (License): Change to 'unlimited'.
40827
40828         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
40829
40830 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
40831
40832         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
40833         Add comments for each pending glibc patch.
40834
40835 2005-08-15  Bruno Haible  <bruno@clisp.org>
40836
40837         * lib/regex.h (__restrict_arr): Don't define to __restrict if
40838         __cplusplus is defined.
40839
40840 2005-08-14  Jim Meyering  <jim@meyering.net>
40841
40842         Sync from coreutils.
40843
40844         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
40845         Use the hash-table-based cycle-detection code not just when
40846         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
40847         Reported by James Youngman in
40848         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
40849         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
40850         FTS_TIGHT_CYCLE_CHECK.
40851         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
40852         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
40853         once again.
40854         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
40855         * lib/fts.c (fd_safer): Remove decl.
40856         Include fcntl--.h rather than unistd-safer.h
40857         (fts_safe_changedir): Don't call fd_safer; no longer needed
40858         now that we include fcntl--.h.
40859
40860 2005-08-12  Simon Josefsson  <jas@extundo.com>
40861
40862         * modules/getndelim2: Use ssize_t module.
40863         * modules/getnline: Likewise.
40864         * modules/safe-read: Likewise.
40865         * modules/xreadlink: Likewise.
40866
40867         * modules/ssize_t: New file.
40868
40869 2005-08-12  Simon Josefsson  <jas@extundo.com>
40870
40871         * m4/readline.m4: Look for termcap, curses or ncurses if required.
40872
40873 2005-08-12  Simon Josefsson  <jas@extundo.com>
40874
40875         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40876         ssize_t.
40877
40878 2005-08-12  Simon Josefsson  <jas@extundo.com>
40879
40880         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
40881         readline, getdelim and check_version.
40882         (Support for systems lacking ISO C 99: Sizes of integer types):
40883         Add size_max.
40884
40885 2005-08-12  Bruno Haible  <bruno@clisp.org>
40886
40887         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
40888
40889 2005-08-11  Simon Josefsson  <jas@extundo.com>
40890
40891         * modules/readline: New file.
40892
40893         * modules/strnlen (Files): Add strnlen.h.
40894
40895 2005-08-11  Simon Josefsson  <jas@extundo.com>
40896
40897         * m4/readline.m4: New file.
40898
40899 2005-08-11  Simon Josefsson  <jas@extundo.com>
40900
40901         * lib/readline.h, readline.c: New file.
40902
40903 2005-08-11  Simon Josefsson  <jas@extundo.com>
40904
40905         * doc/gnulib.texi (Initial import, Finishing touches): Mention
40906         gl_AVOID.
40907
40908 2005-08-11  Bruno Haible  <bruno@clisp.org>
40909
40910         * lib/strnlen.h (strnlen): Change parameter name to match comment.
40911
40912 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
40913
40914         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
40915
40916 2005-08-10  Simon Josefsson  <jas@extundo.com>
40917
40918         * tests/test-iconvme.c: New file.
40919
40920 2005-08-10  Simon Josefsson  <jas@extundo.com>
40921
40922         * m4/strnlen.m4: New file.
40923
40924         * m4/strndup.m4: Don't check for strnlen declaration, done in
40925         strnlen.m4.
40926
40927 2005-08-10  Simon Josefsson  <jas@extundo.com>
40928
40929         * lib/strndup.c: Use strnlen.h.
40930
40931         * lib/strnlen.h: New file.
40932
40933 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
40934
40935         * README: Typos.
40936
40937 2005-08-02  Simon Josefsson  <jas@extundo.com>
40938
40939         * modules/readline: New file.
40940
40941 2005-08-02  Simon Josefsson  <jas@extundo.com>
40942
40943         * modules/getdelim: New file.
40944
40945         * modules/getline: Rewrite, don't use getndelim2.
40946
40947 2005-08-02  Simon Josefsson  <jas@extundo.com>
40948
40949         * m4/getline.m4: Separate out getdelim stuff into separate module.
40950
40951         * m4/getdelim.m4: New file.
40952
40953 2005-08-02  Simon Josefsson  <jas@extundo.com>
40954
40955         * lib/getline.h, getline.c: Rewrite.
40956
40957         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
40958
40959 2005-07-31  Bruno Haible  <bruno@clisp.org>
40960
40961         * lib/lock.h (gl_lock_initializer): New macro.
40962         (gl_lock_define_initialized): Use it.
40963         (gl_rwlock_initializer): New macro.
40964         (gl_rwlock_define_initialized): Use it.
40965         (gl_recursive_lock_initializer): New macro.
40966         (gl_recursive_lock_define_initialized): Use it.
40967
40968 2005-07-30  Karl Berry  <karl@gnu.org>
40969
40970         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
40971         Report from Ben Pfaff, regarding getopt.
40972
40973 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
40974
40975         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
40976         normal way.
40977         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
40978         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
40979         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
40980         (gl_GETOPT): Use the new macros.  Most of the implementation
40981         is moved to the new macros.  This is for programs like Emacs
40982         that don't want all the functionality of gl_GETOPT.
40983
40984 2005-07-26  Bruno Haible  <bruno@clisp.org>
40985
40986         * m4/lock.m4: Update from GNU gettext.
40987
40988 2005-07-26  Bruno Haible  <bruno@clisp.org>
40989
40990         * lib/lock.h: Update from GNU gettext.
40991         * lib/lock.c: Update from GNU gettext.
40992
40993 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
40994
40995         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
40996         obsolescent AC_TRY_RUN.  Include the default includes files, for
40997         'exit'.
40998
40999 2005-07-24  Bruno Haible  <bruno@clisp.org>
41000
41001         * modules/visibility: New file.
41002         * MODULES.html.sh (Misc): Add visibility.
41003
41004 2005-07-24  Bruno Haible  <bruno@clisp.org>
41005
41006         * m4/visibility.m4: New file.
41007
41008 2005-07-24  Bruno Haible  <bruno@clisp.org>
41009
41010         * doc/visibility.texi: New file.
41011
41012 2005-07-22  Bruno Haible  <bruno@clisp.org>
41013
41014         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
41015         $(ALLOCA_H), redundant through BUILT_SOURCES.
41016         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
41017         redundant through BUILT_SOURCES.
41018         * modules/byteswap (Makefile.am): Remove explicit dependency on
41019         $(BYTESWAP_H), redundant through BUILT_SOURCES.
41020         * modules/fnmatch (Makefile.am): Remove explicit dependency on
41021         $(FNMATCH_H), redundant through BUILT_SOURCES.
41022         * modules/getopt (Makefile.am): Remove explicit dependency on
41023         $(GETOPT_H), redundant through BUILT_SOURCES.
41024         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
41025         redundant through BUILT_SOURCES.
41026         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
41027         redundant through BUILT_SOURCES.
41028         * modules/stdbool (Makefile.am): Remove explicit dependency on
41029         $(STDBOOL_H), redundant through BUILT_SOURCES.
41030         * modules/stdint (Makefile.am): Remove explicit dependency on
41031         $(STDINT_H), redundant through BUILT_SOURCES.
41032         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
41033         Remove explicit dependency on $(SYSEXITS_H).
41034         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
41035
41036 2005-07-18  Simon Josefsson  <jas@extundo.com>
41037
41038         * lib/check-version.c (check_version): Accept identical versions too.
41039
41040 2005-07-18  Bruno Haible  <bruno@clisp.org>
41041
41042         * modules/lock: New file.
41043         * MODULES.html.sh (Multithreading): New section.
41044
41045 2005-07-18  Bruno Haible  <bruno@clisp.org>
41046
41047         * m4/lock.m4: New file, from GNU gettext.
41048
41049 2005-07-18  Bruno Haible  <bruno@clisp.org>
41050
41051         * lib/lock.h: New file, from GNU gettext.
41052         * lib/lock.c: New file, from GNU gettext.
41053
41054 2005-07-18  Bruno Haible  <bruno@clisp.org>
41055
41056         * lib/lock.h (gl_once_t): New type.
41057         (gl_once_define, gl_once): New macros.
41058         * lib/lock.c (fresh_once): New variable.
41059         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
41060         functions.
41061
41062 2005-07-16  Simon Josefsson  <jas@extundo.com>
41063
41064         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
41065         workaround, suggested by Bruno.
41066
41067 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
41068
41069         * modules/xalloc (Depends-on): Add xalloc-die.
41070         * modules/xvasprintf (Depends-on): Add xalloc-die.
41071
41072 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
41073
41074         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
41075         with a minor change.
41076
41077 2005-07-15  Bruno Haible  <bruno@clisp.org>
41078
41079         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
41080         When using lib/poll.c, define poll as rpl_poll.
41081
41082 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
41083
41084         * modules/argp (Depends-on): Remove unlocked-io.
41085
41086 2005-07-14  Derek Price  <derek@ximbiot.com>
41087
41088         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
41089         for glob symlink bug.
41090
41091 2005-07-14  Bruno Haible  <bruno@clisp.org>
41092
41093         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
41094         Instead, test for *_unlocked function declarations directly.
41095
41096 2005-07-11  Simon Josefsson  <jas@extundo.com>
41097
41098         * modules/size_max: New file.
41099
41100         * modules/xsize: Depend on size_max module for size_max.m4.
41101
41102 2005-07-11  Simon Josefsson  <jas@extundo.com>
41103
41104         * lib/size_max.h: New file.
41105
41106 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
41107
41108         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
41109         copyright symbol and the year.
41110         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
41111         (version_etc_va): Use parameterized copyright notice.
41112         Reword to conform to the current GNU coding standards.
41113
41114 2005-07-11  Karl Berry  <karl@gnu.org>
41115
41116         * doc/gnulib.texi (Quoting): new node.
41117         (Initial import): more info, from Patrice.
41118
41119 2005-07-11  Bruno Haible  <bruno@clisp.org>
41120
41121         * gnulib-tool (func_usage): Document option --avoid.
41122         (Command line options): Handle --avoid.
41123         (func_acceptable): New function.
41124         (func_modules_transitive_closure): Use it.
41125
41126 2005-07-11  Bruno Haible  <bruno@clisp.org>
41127
41128         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
41129         Reported by Jim Meyering.
41130
41131 2005-07-10  Bruno Haible  <bruno@clisp.org>
41132
41133         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
41134         Needed when size_t is smaller than 'unsigned int'.
41135         Reported by Paul Eggert.
41136
41137 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
41138
41139         * modules/argp (Depends-on): Add unlocked-io
41140
41141 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
41142
41143         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
41144         block of defines.
41145
41146 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
41147
41148         * config/srclist.txt: Comment out regcomp.c, since we have a porting
41149         fix now.
41150
41151 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
41152         and Paul Eggert  <eggert@cs.ucla.edu>
41153
41154         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
41155         in wint_t, not wchar_t.  Remove now-unnecessary cast.
41156
41157 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
41158
41159         * modules/regex (Files): Add lib/regex_internal.c,
41160         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
41161         (Depends-on): Add extensions.
41162         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
41163
41164 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
41165
41166         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
41167         pathconf.
41168         * m4/same.m4 (gl_SAME): Likewise.
41169         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
41170
41171         * m4/regex.m4: Adjust to new libc regex implementation.
41172         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
41173         all the .c and .h parts of (the new) regex.
41174         Quote the m4 stuff better.
41175         Check for RE_ICASE bug of old gnulib.
41176         Check for REG_STARTEND of recent libc.
41177         Rename local variables from jm_* to gl_*.
41178         Quote operand of "test -f".
41179         Say "recent enough" version of libc, not "version 2".
41180         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
41181         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
41182         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
41183         Remove check for btowc, isascii.
41184         Require AM_LANGINFO_CODESET.
41185
41186 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
41187
41188         * lib/regex.c, regex.h: Sync from libc.
41189         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
41190         * lib/regexec.c:
41191         New files, synced from libc, except that regex_internal.h
41192         currently has a small porting fix.
41193
41194 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
41195
41196         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
41197         regex_internal.c, regexec.c.
41198         Add regex_internal.h too, but as a comment, since the libc version
41199         is currently broken in gnulib mode.
41200
41201 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
41202
41203         Support programs like Emacs that use gnulib but not gettext.
41204         * MODULES.html.sh (Internationalization functions): Add gettext-h.
41205         * modules/gettext-h: New file.
41206         * modules/gettext (Files): Remove lib/gettext.h.
41207         (Depends-on): Add gettext-h.
41208         (Makefile.am): Remove lib_SOURCES.
41209         * modules/argmatch, modules/c-stack, modules/closeout:
41210         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
41211         * modules/execute, modules/file-type, modules/getaddrinfo:
41212         * modules/getopt, modules/human, modules/javacomp:
41213         * modules/javaexec, modules/mkdir-p, modules/obstack:
41214         * modules/openat, modules/pagealign_alloc, modules/pipe:
41215         * modules/quotearg, modules/regex, modules/rpmatch:
41216         * modules/unicodeio, modules/userspec, modules/version-etc:
41217         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
41218         * modules/xsetenv:
41219         Depend on gettext-h, not gettext.
41220
41221 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
41222
41223         * gnulib-tool (func_import): Add support for 'public domain' license.
41224         * modules/alloca, modules/atexit, modules/memmove:
41225         Now public domain, not GPL.
41226         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
41227         * modules/realloc, modules/strerror, modules/strtod:
41228         Now LGPL, not GPL.
41229
41230 2005-07-05  Bruno Haible  <bruno@clisp.org>
41231
41232         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
41233         autoconf CVS. Needed for mingw.
41234
41235 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
41236
41237         Remove the dependency of the strftime module on the tzset module.
41238         * modules/strftime (Depends-on): Remove dependency on tzset.
41239
41240 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
41241
41242         Remove the dependency of the strftime module on the tzset module.
41243         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
41244         gl_FUNC_TZSET_CLOBBER.
41245
41246 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
41247
41248         Remove the dependency of the strftime module on the tzset module.
41249         * lib/strftime.c (my_strftime)
41250         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
41251         Copy the input structure, to work around some of the bug with
41252         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
41253         Solaris releases, you should also use the tzset module, but we won't
41254         require it as a dependency any more since we don't want LGPLed code
41255         to depend on GPLed code.
41256
41257 2005-07-02  Jim Meyering  <jim@meyering.net>
41258
41259         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
41260         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
41261         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
41262         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
41263
41264 2005-07-02  Jim Meyering  <jim@meyering.net>
41265
41266         * lib/backupfile.c (backup_args): Change a `0' to NULL.
41267
41268 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
41269
41270         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
41271         declares only 'struct timespec;' (!).
41272
41273 2005-07-01  Jim Meyering  <jim@meyering.net>
41274
41275         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
41276         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
41277         * lib/save-cwd.c, tempname.c:
41278         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
41279         and don't include <sys/file.h>).
41280
41281 2005-06-29  Jim Meyering  <jim@meyering.net>
41282
41283         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
41284         type name.  Use the variable name instead.
41285         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
41286         Likewise.
41287
41288 2005-06-28  Simon Josefsson  <jas@extundo.com>
41289
41290         * modules/check-version (Files): Add check-version.m4.
41291
41292 2005-06-28  Simon Josefsson  <jas@extundo.com>
41293
41294         * m4/check-version.m4: New file, suggested by Jim Meyering
41295         <jim@meyering.net>.
41296
41297 2005-06-28  Simon Josefsson  <jas@extundo.com>
41298
41299         * lib/check-version.h, lib/check-version.c: New files.
41300
41301 2005-06-28  Simon Josefsson  <jas@extundo.com>
41302
41303         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
41304         collision with global variable.  Better indentation.  Don't
41305         increment buffer pointer beyond buffer end.  Based on comments
41306         from Paul Eggert <eggert@cs.ucla.edu>.
41307
41308         * lib/base64.h: Indent.
41309
41310 2005-06-28  Simon Josefsson  <jas@extundo.com>
41311
41312         * doc/gnulib.texi (Library version handling): New section.
41313
41314 2005-06-28  Jim Meyering  <jim@meyering.net>
41315
41316         * check-module (find_included_lib_files): Hard-code another
41317         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
41318         but modules/fts-lgpl (correctly) does not list those files.
41319
41320         * modules/canonicalize (Files): Add lib/pathmax.h.
41321
41322 2005-06-25  Simon Josefsson  <jas@extundo.com>
41323
41324         * modules/check-version: New file.
41325
41326 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
41327
41328         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
41329         initializer of struct addrinfo, as an indication that we don't
41330         care how many members the structure has.
41331
41332 2005-06-24  Derek Price  <derek@ximbiot.com>
41333         and Bruno Haible  <bruno@clisp.org>
41334
41335         Remove stat module & update lstat.
41336         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
41337         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
41338         * m4/stat.m4: Remove this file.
41339
41340 2005-06-24  Derek Price  <derek@ximbiot.com>
41341         and Bruno Haible  <bruno@clisp.org>
41342
41343         Remove stat module & update lstat.
41344         * lib/stat.c: Remove this file...
41345         (slash_aware_lstat): ...moving this content and its support...
41346         * lib/lstat.c (rpl_lstat): ...into here.
41347         * lib/lstat.h: New file.
41348
41349 2005-06-24  Derek Price  <derek@ximbiot.com>
41350         and Bruno Haible  <bruno@clisp.org>
41351
41352         Remove stat module & update lstat.
41353         * config/srclist.txt (libc sources): Remove stat.
41354
41355 2005-06-24  Derek Price  <derek@ximbiot.com>
41356         and Bruno Haible  <bruno@clisp.org>
41357
41358         Remove stat module & update lstat.
41359         * MODULES.html.sh (stat): Remove.
41360         * MODULES.html: Regenerated.
41361         * modules/lstat (Description): Correct function name.
41362         (Files): Add "lstat.h".
41363         (Depends-on): Remove stat, add xalloc, stat-macros.
41364         * modules/stat: Remove this file.
41365         (Include): Add "lstat.h", remove <sys/stat.h>.
41366
41367 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
41368
41369         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
41370         (ranged_convert): Don't save conversion in a temporary struct.
41371         This causes a warning with GCC 4.0.0, and anyway in the typical
41372         case it's not worth the extra 100 bytes or so of code.
41373         (ranged_convert, __mktime_internal): When calling a function via a
41374         pointer P, use P () rather than (*P) (), as we now assume C89 or
41375         better.
41376
41377 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
41378
41379         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
41380         "who -r" failed to give output.  Problem reported by Tim Waugh.
41381
41382         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
41383         (xcalloc): Use it to avoid needless tests.
41384         Problem reported by Jim Meyering.
41385
41386 2005-06-20  Derek Price  <derek@ximbiot.com>
41387
41388         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
41389         unnecessary for Autoconfs > 2.59c.
41390
41391 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41392
41393         * lib/argp.h (__option_is_short): Check upper limit of
41394         __key. Isprint() requires its argument to have the value
41395         of an unsigned char or EOF.
41396
41397 2005-06-16  Jim Meyering  <jim@meyering.net>
41398
41399         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
41400         when either N or S is zero.
41401
41402 2005-06-16  Derek Price  <derek@ximbiot.com>
41403
41404         * m4/bison.m4: Declare YACC & YFLAGS precious.
41405
41406 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
41407
41408         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
41409         multibyte string or pattern, fall back on unibyte matching.
41410         Problem reported by James Youngman.
41411
41412 2005-06-08  Bruno Haible  <bruno@clisp.org>
41413
41414         * modules/csharpcomp: New file.
41415         * MODULES.html.sh (C#): Add csharpcomp.
41416
41417 2005-06-08  Bruno Haible  <bruno@clisp.org>
41418
41419         * m4/csharpcomp.m4: New file, from GNU gettext.
41420
41421 2005-06-08  Bruno Haible  <bruno@clisp.org>
41422
41423         * lib/csharpcomp.h: New file, from GNU gettext.
41424         * lib/csharpcomp.c: New file, from GNU gettext.
41425         * lib/csharpcomp.sh.in: New file, from GNU gettext.
41426
41427 2005-06-08  Bruno Haible  <bruno@clisp.org>
41428
41429         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
41430         warning on mingw.
41431
41432 2005-06-07  Derek Price  <derek@ximbiot.com>
41433
41434         Sync from CVS.
41435         * lib/glob_.h: Indent nested #ifdef.
41436
41437 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
41438
41439         Sync from coreutils.
41440         Use "file name" when talking about file names, instead of "filename"
41441         or "path", as per the GNU coding standards.
41442         * lib/mkdir-p.c: Renamed from makepath.c.
41443         (make_dir_parents): Renamed from make_path.  All callers changed.
41444         * lib/mkdir-p.h: Likewise.  All includers changed.
41445         * lib/filenamecat.c: Renamed from path-concat.c.
41446         (file_name_concat): Renamed from path_concat.  All callers changed.
41447         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
41448         * lib/filenamecat.h: Likewise.  All includers changed.
41449         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
41450         in comments or local variable names.
41451         * lib/basename.c: Likewise.
41452         * lib/canonicalize.c, canonicalize.h: Likewise.
41453         * lib/dirname.c, dirname.h: Likewise.
41454         * lib/euidaccess.c: Likewise.
41455         * lib/exclude.c: Likewise
41456         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
41457         * lib/fsusage.c, fsuage.h: Likewise.
41458         * lib/fts.c, fts_.h: Likewise.
41459         * lib/getcwd.c: Likewise.
41460         * lib/getloadavg.c: Likewise.
41461         * lib/mkstemp.c: Likewise.
41462         * lib/mountlist.c, mountlist.h: Likewise.
41463         * lib/openat.c, openat.h: Likewise.
41464         * lib/readlink-stub.c: Likewise.
41465         * lib/readutmp.c, readutmp.h: Likewise.
41466         * lib/rename.c: Likewise.
41467         * lib/rmdir.c: Likewise.
41468         * lib/same.c: Likewise.
41469         * lib/savedir.c: Likewise.
41470         * lib/stripslash.c: Likewise.
41471         * lib/tempname.c: Likewise.
41472         * lib/xreadlink.c: Likewise.
41473         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
41474         All uses changed.
41475         * lib/exclude.h: Likewise.
41476
41477         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
41478         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
41479         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
41480         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
41481         * lib/pathmax.h: Include <limits.h> unconditionally, since other
41482         files have been getting away with it for years (MORE/BSD 4.3
41483         is extinct now).
41484         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
41485         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
41486
41487         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
41488         Define to 256, not 255, as per modern POSIX.
41489
41490 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
41491
41492         Sync from coreutils.
41493         Use "file name" when talking about file names, instead of "filename"
41494         or "path", as per the GNU coding standards.
41495         * MODULES.html.sh: mkdir-p renamed from makepath.
41496         filenamecat renamed from path-concat.
41497         * modules/filenamecat: Renamed from modules/path-concat.
41498         (Files): filenamecat.h and filenamecat.c renamed from
41499         path-concat.h and path-concat.c.
41500         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
41501         (Include): filenamecat.h, not path-concat.h.
41502         * modules/mkdir-p: Renamed from modules/makepath.
41503         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
41504         makepath.c.
41505         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
41506         (Include): mkdir-p.h, not makepath.h.
41507
41508 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
41509
41510         Sync from coreutils.
41511         * m4/mkdir-p.m4: Renamed from makepath.m4.
41512         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
41513         Rename files from makepath.c to mkdir-p.c, and from
41514         makepath.h to mkdir-p.h.
41515         * m4/filenamecat.m4: Renamed from path-concat.m4.
41516         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
41517         Rename files from path-concat.c to filenamecat.c,
41518         and from path-concat.h to filenamecat.h.
41519         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
41520         "file name" in local variables or comments.
41521         * m4/rename.m4: Likewise.
41522
41523 2005-06-01  Bruno Haible  <bruno@clisp.org>
41524
41525         * modules/csharpexec: New file.
41526         * MODULES.html.sh (C#): New section.
41527
41528 2005-06-01  Bruno Haible  <bruno@clisp.org>
41529
41530         * m4/csharp.m4: New file, from GNU gettext.
41531         * m4/csharpexec.m4: New file, from GNU gettext.
41532
41533 2005-06-01  Bruno Haible  <bruno@clisp.org>
41534
41535         * lib/csharpexec.h: New file, from GNU gettext.
41536         * lib/csharpexec.c: New file, from GNU gettext.
41537         * lib/csharpexec.sh.in: New file, from GNU gettext.
41538
41539 2005-05-31  Derek Price  <derek@ximbiot.com>
41540             Paul Eggert  <eggert@cs.ucla.edu>
41541
41542         Sync from cvs.
41543         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
41544
41545 2005-05-31  Derek Price  <derek@ximbiot.com>
41546             Paul Eggert  <eggert@cs.ucla.edu>
41547
41548         Sync from cvs.
41549         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
41550
41551 2005-05-29  Derek Price  <derek@ximbiot.com>
41552
41553         * config/srclist.txt (glob_.h, glob.c): Add these files.
41554
41555 2005-05-29  Derek Price  <derek@ximbiot.com>
41556
41557         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
41558         * modules/glob: New file.
41559         * modules/getlogin_r: Add link to POSIX spec in description.
41560
41561 2005-05-29  Derek Price  <derek@ximbiot.com>
41562             Paul Eggert  <eggert@cs.ucla.edu>
41563
41564         * m4/glob.m4: New file.
41565
41566 2005-05-29  Derek Price  <derek@ximbiot.com>
41567             Paul Eggert  <eggert@cs.ucla.edu>
41568
41569         * lib/glob_.h, lib/glob.c: New files.
41570
41571 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
41572
41573         * modules/fts (Files): Remove m4/inttypes-pri.m4.
41574         * modules/fts-lgpl (Depends-on): Remove gettext.
41575
41576 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
41577
41578         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
41579         and don't require gt_INTTYPES_PRI.
41580
41581 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
41582
41583         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
41584
41585         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
41586         the configuration hassle isn't worth it.
41587         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
41588         (LONGEST_MODIFIER, PRIuMAX): Remove.
41589
41590 2005-05-27  Bruno Haible  <bruno@clisp.org>
41591
41592         * lib/getlogin_r.h: Remove second include of <stddef.h>.
41593
41594 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
41595
41596         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
41597         _POSIX_PTHREAD_SEMANTICS for Solaris.
41598
41599 2005-05-25  Derek Price  <derek@ximbiot.com>
41600
41601         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
41602
41603 2005-05-25  Derek Price  <derek@ximbiot.com>
41604             Paul Eggert  <eggert@cs.ucla.edu>
41605
41606         * modules/getlogin_r, m4/getlogin_r.m4: New files.
41607         * lib/getlogin_r.c, getlogin_r.h: New files.
41608
41609 2005-05-25  Bruno Haible  <bruno@clisp.org>
41610             Derek Price  <derek@ximbiot.com>
41611
41612         * lib/getlogin_r.h: Simplify API documentation.
41613
41614 2005-05-23  Derek Price  <derek@ximbiot.com>
41615
41616         * modules/minmax (Files): Add m4/minmax.m4.
41617         (configure.ac): Add gl_MINMAX.
41618
41619 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
41620
41621         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
41622         so that unistd-safer.h (GPL'ed code) need not be included.
41623
41624 2005-05-22  Bruno Haible  <bruno@clisp.org>
41625
41626         * m4/minmax.m4: New file.
41627         Based on a patch by Derek Price <derek@ximbiot.com>.
41628
41629 2005-05-22  Bruno Haible  <bruno@clisp.org>
41630
41631         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
41632         (INT64_MIN): Fix definition.
41633         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
41634
41635         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
41636         NEED_SIGNED_INT_TYPES.
41637
41638         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
41639         HAVE_SYSTEM_INTTYPES.
41640
41641 2005-05-22  Bruno Haible  <bruno@clisp.org>
41642
41643         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
41644         Also include <sys/param.h> if it defines MIN, MAX.
41645         Based on a patch by Derek Price <derek@ximbiot.com>.
41646
41647 2005-05-21  Jim Meyering  <jim@meyering.net>
41648
41649         * modules/fts (Files): Add m4/inttypes-pri.m4.
41650         (Depends-on): Add lstat and remove gettext.  Alphabetize.
41651
41652 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
41653
41654         New fts module.
41655         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
41656         (setup_dir, free_dir): New functions.
41657         (enter_dir, leave_dir): Define trivial
41658         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
41659         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
41660         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
41661         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
41662         Move to fts-cycle.c.
41663         (fts_open): Use setup_dir.
41664         (fts_close): Use free_dir.
41665         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
41666         This adds a label and some gotos, but the alternatives were messier.
41667         Check for memory allocation failure when entering a dir.
41668         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
41669         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
41670         (FTS): New member fts_cycle, that is a union that contains the
41671         old active_dir_ht and cycle_state.  All uses changed to mention
41672         fts_cycle.ht and fts_cycle.state.
41673         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
41674         fts.c, with the following changes:
41675         (setup_dir, free_dir): New functions.
41676         (enter_dir): Now returns bool.  Return true if successful, false
41677         if memory exhausted.  All callers changed.
41678         Do not bother partly cleaning up on
41679         memory allocation failure; that is free_dir's job.
41680         However, free ad if hash_insert fails, to avoid memory leak.
41681         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
41682         fts->fts_options to see which union member to use.
41683
41684 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
41685
41686         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
41687         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
41688
41689 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
41690
41691         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
41692
41693 2005-05-20  Jim Meyering  <jim@meyering.net>
41694
41695         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
41696         Now a macro, to pacify GCC.
41697
41698 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
41699
41700         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
41701         of -1.
41702
41703 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
41704
41705         * lib/chown.c (rpl_chown): Return -1 on failure.
41706
41707 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
41708
41709         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
41710         Don't check for stddef.h.
41711         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
41712         don't use its results.
41713         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
41714         since we include them unconditionally.  Don't require
41715         AM_STDBOOL_H, since stdbool is a prerequisite.
41716         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
41717         since we assume C89 or better.
41718         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
41719         as we don't use their results.
41720         Don't check for fchdir, memmove, memset, strrchr, as we use
41721         them unconditionally.
41722         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
41723         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
41724
41725 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
41726
41727         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
41728         Include <stddef.h> unconditionally, since we assume C89 now.
41729         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
41730         * lib/fts.c: Include fts_.h first, to check interface.
41731         Do not include intprops.h; no longer needed.
41732         Include cycle-check.h and hash.h, since fts_.h no longer does.
41733         Remove unnecessary casts of closedir to void.
41734         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
41735         decide whether to decrement nlinks.
41736         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
41737         (FTS): Use struct hash_table * instead of Hash_table, so that
41738         we no longer need to include hash.h here.
41739
41740 2005-05-18  Jim Meyering  <jim@meyering.net>
41741
41742         * modules/dirfd (License): Change to LGPL.  Most of the code
41743         is already in the public domain.
41744
41745 2005-05-18  Jim Meyering  <jim@meyering.net>
41746
41747         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
41748         Reported by Yoann Vandoorselaere.
41749
41750 2005-05-17  Jim Meyering  <jim@meyering.net>
41751
41752         * m4/fts.m4: New file, from coreutils.
41753
41754 2005-05-17  Jim Meyering  <jim@meyering.net>
41755
41756         * lib/fts.c, lib/fts_.h: New files, from coreutils.
41757
41758 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
41759
41760         Sync from coreutils.
41761         * m4/unlinkdir.m4: New file.
41762
41763 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
41764
41765         Sync from coreutils.
41766         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
41767         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
41768         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
41769         White space changes only.
41770         * lib/makepath.c (make_path): Port to hosts where leading "//" is
41771         special.
41772         * lib/yesno.c: Include getline.h, not ctype.h.
41773         (yesno): Don't remove leading white space; POSIX doesn't allow it.
41774         Use getline to remove arbitrary restriction on response length.
41775
41776 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
41777
41778         * config/srclist-update: Spell out "Street" in FSF postal
41779         mail address; this is the style the FSF seems to prefer.
41780
41781         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
41782         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
41783         this updates FSF postal mail address.
41784
41785         Sync from coreutils.
41786         * modules/unlinkdir: New file.
41787         * modules/yesno (Depends-on): Add getline.
41788         * MODULES.html.sh (File system functions): Add unlinkdir.
41789
41790 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
41791
41792         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
41793         lib/strsep.h:
41794         Change the initial comment to refer to GPL, not LGPL.
41795         gnulib-tool will change it to LGPL as needed.
41796
41797         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
41798         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
41799         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
41800         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
41801         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
41802         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
41803         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
41804         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
41805         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
41806         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
41807         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
41808         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
41809         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
41810         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
41811         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
41812         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
41813         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
41814         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
41815         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
41816         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
41817         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
41818         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
41819         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
41820         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
41821         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
41822         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
41823         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
41824         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
41825         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
41826         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
41827         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
41828         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
41829         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
41830         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
41831         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
41832         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
41833         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
41834         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
41835         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
41836         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
41837         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
41838         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
41839         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
41840         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
41841         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
41842         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
41843         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
41844         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
41845         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
41846         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
41847         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
41848         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
41849         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
41850         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
41851         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
41852         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
41853         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
41854         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
41855         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
41856         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
41857         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
41858         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
41859         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
41860         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
41861         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
41862         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
41863         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
41864         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
41865         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
41866         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
41867         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
41868         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
41869         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
41870         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
41871         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
41872         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
41873         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
41874         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
41875         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
41876         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
41877         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
41878         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
41879         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
41880         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
41881         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
41882         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
41883         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
41884         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
41885         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
41886         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
41887         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
41888         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
41889         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
41890         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
41891         lib/yesno.c, lib/yesno.h:
41892         Update FSF postal mail address.
41893
41894 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
41895
41896         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
41897         tests/test-memmem.c, tests/test-stpncpy.c:
41898         Update FSF postal mail address.
41899
41900 2005-05-13  Bruno Haible  <bruno@clisp.org>
41901
41902         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
41903         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
41904         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
41905         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
41906         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
41907         Add support for 64-bit integers in the MSVC compiler.
41908
41909 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41910
41911         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
41912
41913 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
41914
41915         * gnulib-tool (func_import): Sort and uniquify recommended includes.
41916
41917 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
41918
41919         * doc/getdate.texi (General date syntax): Don't say that date
41920         date --iso-8601=ns generates acceptable dates; it doesn't yet.
41921         Problem reported by Nic Ferrier.
41922
41923 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41924
41925         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
41926         specified in ai_socktype. Fix invalid ai_protocol
41927         check. ai_protocol is usually set to 0 or depending on
41928         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
41929         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
41930         ai_socktype / ai_protocol in the returned addrinfo structure.
41931
41932 2005-05-10  Simon Josefsson  <jas@extundo.com>
41933
41934         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
41935         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41936
41937 2005-05-10  Karl Berry  <karl@gnu.org>
41938
41939         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
41940         (from http://www.gnu.org/licenses).
41941         * doc/COPYING.LIB: also rename to COPYING.LESSER.
41942         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
41943         fdl.texi suffices.
41944
41945 2005-05-10  Karl Berry  <karl@gnu.org>
41946
41947         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
41948         (COPYING.DOC): remove.
41949
41950         * config/srclist-update: new FSF address.
41951
41952 2005-05-10  Derek Price  <derek@ximbiot.com>
41953
41954         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
41955         possible.
41956
41957 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41958             Bruno Haible  <bruno@clisp.org>
41959
41960         * modules/inet_ntop: New file.
41961         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41962         inet_ntop.
41963
41964 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41965             Bruno Haible  <bruno@clisp.org>
41966
41967         * m4/inet_ntop.m4: New file.
41968
41969 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41970             Bruno Haible  <bruno@clisp.org>
41971
41972         * lib/inet_ntop.h: New file.
41973         * lib/inet_ntop.c: New file, from glibc with modifications.
41974
41975 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
41976
41977         * modules/time_r (License): Change to LGPL.
41978         * modules/extensions (License): Change to LGPL.  Actually,
41979         the license is more permissive than that, but currently gnulib-tool
41980         doesn't know how to handle more-permissive licenses.
41981
41982         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
41983         Problem reported by Dave Love.
41984
41985 2005-05-08  Jim Meyering  <jim@meyering.net>
41986
41987         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
41988         blank.
41989
41990 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
41991
41992         * modules/argmatch (Depends-on): Add stdbool.
41993         * modules/backupfile (Depends-on): Likewise.
41994         * modules/chdir-long (Depends-on): Likewise.
41995         * modules/closeout (Depends-on): Likewise.
41996         * modules/cycle-check (Depends-on): Likewise.
41997         * modules/dirname (Depends-on): Likewise.
41998         * modules/fnmatch (Depends-on): Likewise.
41999         * modules/fsusage (Depends-on): Likewise.
42000         * modules/fwriteerror (Depends-on): Likewise.
42001         * modules/getcwd (Depends-on): Likewise.
42002         * modules/getloadavg (Depends-on): Likewise.
42003         * modules/hard-locale (Depends-on): Likewise.
42004         * modules/makepath (Depends-on): Likewise.
42005         * modules/mountlist (Depends-on): Likewise.
42006         * modules/nanosleep (Depends-on): Likewise.
42007         * modules/posixtm (Depends-on): Likewise.
42008         * modules/quotearg (Depends-on): Likewise.
42009         * modules/readtokens (Depends-on): Likewise.
42010         * modules/readtokens0 (Depends-on): Likewise.
42011         * modules/readutmp (Depends-on): Likewise.
42012         * modules/save-cwd (Depends-on): Likewise.
42013         * modules/strftime (Depends-on): Likewise.
42014         * modules/userspec (Depends-on): Likewise.
42015         * modules/utimecmp (Depends-on): Likewise.
42016         * modules/xgetcwd (Depends-on): Likewise.
42017         * modules/xnanosleep (Depends-on): Likewise.
42018         * modules/xstrtod (Depends-on): Likewise.
42019         * modules/yesno (Depends-on): Likewise.
42020
42021 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
42022
42023         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
42024         needless checks.
42025
42026 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
42027
42028         Merge from coreutils.  Among other things,
42029         add bulletproofing for cases where stdin, stdout, or stderr are closed.
42030         * lib/fd-safer.c: New file.
42031         * lib/fcntl-safer.h, open-safer.c: Remove.
42032         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
42033         * lib/dup-safer.c: Include unistd-safer.h first.
42034         Don't include errno.h.
42035         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
42036         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
42037         * lib/file-type.c: Rely on file-type.h change.
42038         * lib/getloadavg.c: Include unistd-safer.h.
42039         (getloadavg): Use safer open.
42040         * lib/getusershell.c: Include "stdio-safer.h".
42041         (getusershell): Use safer fopen.
42042         * lib/long-options.c (long_options): Use NULL rather than 0.
42043         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
42044         'free'.
42045         * lib/modechange.c: Likewise.
42046         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
42047         (MODE_DONE): New constant.
42048         (struct mode_change): Remove 'next' member.
42049         (make_node_op_equals): New function; like the old one of the
42050         same name, except it allocates an array.
42051         (mode_compile, mode_create_from_ref): Use it.
42052         (mode_compile): Allocate result as an array, not a linked list.
42053         Parse octal string ourself, so that we catch mistakes like "+0".
42054         (mode_adjust): Arg is an array, not a linked list.
42055         * lib/modechange.c: Include stat-macros.h, xalloc.h.
42056         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
42057         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
42058         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
42059         Remove.  This is now stat-macros.h's job.
42060         (talloc): Remove.  All callers replaced by xalloc, so that
42061         our invokers don't have to worry about reporting memory failures.
42062         (make_node_op_equals): Remove.
42063         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
42064         New constants.
42065         (struct mode_change): Moved here from modechange.h.
42066         (mode_append_entry): Remove.
42067         (mode_compile): Remove MASKED_OPS arg, since it encouraged
42068         apps to have incorrect behavior.  Use simpler algorithm for head
42069         and tail.  Don't futz with umask; that's now the job of mode_adjust.
42070         Detect more invalid usages rather than having somewhat-random behavior.
42071         Don't insert an "a=" action, as that leads to incorrect behavior.
42072         (mode_compile, mode_create_from_ref): Return NULL on error instead
42073         of an enum, since now there's only one way to have an error.  All
42074         callers changed.
42075         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
42076         at the correct time.  Simplify calculation of "+u" and its ilk.
42077         Don't mishandle "+X".
42078         (mode_free): Remove "register" and localize decls.
42079         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
42080         (struct mode_change): Move to modechange.c; callers don't
42081         need to see this stuff.
42082         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
42083         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
42084         (mode_change, mode_adjust): Reflect the new signatures noted above.
42085         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
42086         that might redefine system include files.
42087         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
42088         (my_usleep): Use NULL rather than (void *) 0.
42089         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
42090         Use siginterrupt to specify that system calls should be interrupted.
42091         (rpl_nanosleep): Move initialization of suspended closer to call of
42092         my_usleep.
42093         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
42094         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
42095         (desirable_utmp_entry): New function.
42096         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
42097         using x2nrealloc, to simplify logic.
42098         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
42099         size calculation.  Do not assume utmp file is a regular file.
42100         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
42101         (READ_UTMP_CHECK_PIDS): New constant.
42102         * lib/save-cwd.c: Include unistd-safer.h.
42103         (save_cwd): Use fd_safer.
42104         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
42105         [!_LIBC] Include "stat-macros.h" instead.
42106         * lib/unistd-safer.h (fd_safer): New decl.
42107
42108 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
42109
42110         * modules/getloadavg (Depends-on): Add unistd-safer.
42111         * modules/getusershell (Depends-on): Add stdio-safer.
42112         * modules/lstat (Depends-on): Remove xalloc.
42113         * modules/mkstemp (Depends-on): Add stat-macros.
42114         * modules/modechange (Depends-on): Remove xstrtol.
42115         Add stat-macros, xalloc.
42116         * modules/save-cwd (Depends-on): Add unistd-safer.
42117         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
42118         * modules/unistd-safer (Files): Add lib/fd-safer.c
42119         (Makefile.am): Remove lib_SOURCES.
42120
42121         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
42122         Remove fcntl-safer; unistd-safer supersedes it.
42123
42124 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
42125
42126         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
42127         AC_HEADER_STAT.
42128         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
42129         (gl_PREREQ_CHOWN): Remove.
42130         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
42131         it.  Don't require AC_HEADER_STAT.
42132         (gl_PREREQ_LSTAT): Remove.
42133         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
42134         Don't require AC_HEADER_STAT.
42135         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
42136         (gl_PREREQ_RMDIR): Remove.
42137         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
42138         mention stat-macros.h or AC_HEADER_STAT, since we'll make
42139         the stat-macros module a prerequisite.
42140         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
42141         * m4/filemode.m4 (gl_FILEMODE): Likewise.
42142         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
42143         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
42144         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
42145         variable names.
42146         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
42147         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
42148         variable prefixes.
42149         * m4/fcntl-safer.m4: Remove.
42150         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
42151         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
42152         Invoke gl_PREREQ_FD_SAFER.
42153         (gl_PREREQ_FD_SAFER): New macro.
42154         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
42155         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
42156         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
42157         Remove duplicate call to AC_LIBOBJ(readutmp).
42158         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
42159
42160         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
42161         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
42162
42163 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
42164
42165         * MODULES.html.sh (Misc): Add byteswap.
42166
42167 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
42168
42169         * modules/getcwd (Depends-on): Add extensions.
42170         * modules/openat (Depends-on): Likewise.
42171
42172 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
42173
42174         * modules/byteswap: New file.
42175
42176 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
42177
42178         * m4/byteswap.m4: New file.
42179
42180 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
42181
42182         * lib/byteswap_.h: New file.
42183
42184 2005-04-25  Karl Berry  <karl@gnu.org>
42185
42186         * m4/gettext.m4: Update from GNU gettext 0.14.4.
42187
42188 2005-04-25  Albert Chin  <china@thewrittenword.com>
42189
42190         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
42191         Toolkit C bug.
42192
42193 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
42194
42195         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
42196         (func_ln_if_changed) Remove forcibly for no error message
42197         in case file does not exist.
42198
42199 2005-04-19  Simon Josefsson  <jas@extundo.com>
42200
42201         * gnulib-tool (Options): Make --symlink mean --symbolic.
42202
42203 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
42204
42205         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
42206
42207 2005-04-16  Simon Josefsson  <jas@extundo.com>
42208
42209         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
42210
42211 2005-04-15  Simon Josefsson  <jas@extundo.com>
42212
42213         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
42214
42215 2005-04-15  Simon Josefsson  <jas@extundo.com>
42216
42217         * gnulib-tool: Rename --symlink to --symbolic.
42218
42219 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
42220
42221         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
42222         symbolic links to files instead of copying/moving.  Add --aux-dir,
42223         specifying directory relative --dir where auxiliary build tools
42224         are placed.
42225
42226 2005-04-14  Bruno Haible  <bruno@clisp.org>
42227
42228         * modules/allocsa (License): Change to LGPL.
42229         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42230
42231 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
42232
42233         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
42234         that "UTC +1 second" continues to work.  Problem reported
42235         by Dmitry V. Levin.
42236         (relunit_snumber): New rule.
42237         (relunit): Use it.
42238
42239 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
42240
42241         * lib/getdate.y (universal_time_zone_table): New constant.
42242         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
42243         universal_time_zone_table.
42244         (lookup_zone): Prefer universal_time_zone_table to
42245         local_time_zone_table, so that "GMT" time stamps are allowed in
42246         London during the summer.  Problem reported by Ian Abbott.
42247
42248 2005-04-12  Jim Meyering  <jim@meyering.net>
42249
42250         * lib/human.c (humblock): Set *options even when returning due to
42251         xstrtoumax conversion failure.  Thanks to a used-uninitialized
42252         warning from gcc-4.
42253
42254 2005-04-09  Jim Meyering  <jim@meyering.net>
42255
42256         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
42257         -Wuninitialized: initialize tm0.tm_year.
42258
42259 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
42260
42261         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
42262         count, since there's no maximum.  All uses changed.
42263         Add member dsts_seen.
42264         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
42265         not being INT_MAX.
42266         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
42267         Use pc_rels_seen to decide whther a date is absolute.
42268
42269         * lib/getdate.y (number): Don't overwrite year.
42270         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
42271         check.
42272
42273 2005-04-02  Simon Josefsson  <jas@extundo.com>
42274
42275         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
42276         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
42277
42278 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
42279
42280         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
42281         where no absolute path name can be longer than PATH_MAX.
42282
42283 2005-03-27  Jim Meyering  <jim@meyering.net>
42284
42285         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
42286
42287 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
42288
42289         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
42290         "one's complement" -> "ones' complement" in comment, as per Knuth.
42291         "value of type" -> "type or expression" in comment.
42292         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
42293
42294 2005-03-26  Jim Meyering  <jim@meyering.net>
42295
42296         Comment nits.
42297         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
42298         Correct typos: s/or/of/.
42299
42300 2005-03-26  Jim Meyering  <jim@meyering.net>
42301
42302         * modules/check-include-files: Move to ../ and rename to...
42303         * check-module: ...this.
42304
42305 2005-03-25  Jim Meyering  <jim@meyering.net>
42306
42307         * modules/xvasprintf (Files): Add xalloc.h.
42308
42309 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
42310
42311         * modules/gettext (Files): config/config.rpath ->
42312         build-aux/config.rpath
42313         * modules/iconv (Files): Likewise.
42314         Problem reported by Oskar Liljeblad.
42315
42316 2005-03-23  Jim Meyering  <jim@meyering.net>
42317
42318         * modules/check-include-files: New script to check for
42319         missing dependencies, multiple includes, etc.
42320
42321         * modules/c-strtold (Depends-on): Add xalloc.
42322         * modules/c-strtod (Depends-on): Add xalloc.
42323         * modules/hash (Depends-on): Add xalloc.
42324         (Files): Remove lib/xalloc.h.
42325
42326         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
42327         * modules/userspec (Files): Add lib/inttostr.h.
42328
42329 2005-03-23  Jim Meyering  <jim@meyering.net>
42330
42331         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
42332
42333 2005-03-22  Jim Meyering  <jim@meyering.net>
42334
42335         * modules/stat-macros: New module.
42336         * modules/canonicalize, modules/euidaccess, modules/file-type,
42337         * modules/filemode, modules/lchown, modules/makepath,
42338         * modules/rmdir, modules/stat: Depend on new stat-macros module
42339         rather than listing lib/stat-macros.h manually.
42340         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
42341
42342 2005-03-22  Jim Meyering  <jim@meyering.net>
42343
42344         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
42345
42346 2005-03-22  Bruno Haible  <bruno@clisp.org>
42347
42348         * config/srclist.txt: Replace target directory 'config' with
42349         'build-aux'.
42350         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
42351         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
42352         ../build-aux/.
42353
42354 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
42355
42356         * modules/chdir-long (Depends-on): Add mempcpy.
42357
42358         * modules/acl, modules/backupfile, modules/c-strtod,
42359         modules/c-strtold, modules/canon-host, modules/canonicalize,
42360         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
42361         modules/exclude, modules/exitfail, modules/file-type,
42362         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
42363         modules/getdate, modules/getline, modules/getpagesize,
42364         modules/getpass, modules/getugroups, modules/group-member,
42365         modules/hard-locale, modules/hash, modules/human, modules/idcache,
42366         modules/inttostr, modules/long-options, modules/makepath,
42367         modules/md5, modules/memcasecmp, modules/memcoll,
42368         modules/modechange, modules/mountlist, modules/path-concat,
42369         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
42370         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
42371         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
42372         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
42373         modules/strftime, modules/strndup, modules/strverscmp,
42374         modules/timespec, modules/unlocked-io, modules/userspec,
42375         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
42376         modules/yesno:
42377         Remove lib_SOURCES line from Makefile.am section, as this is now
42378         done automatically by the corresponding Autoconf macro.
42379
42380 2005-03-21  Jim Meyering  <jim@meyering.net>
42381
42382         Changes imported from coreutils.
42383
42384         * lib/cycle-check.c: Don't include xalloc.h.
42385
42386         * lib/path-concat.c: Don't include assert.h.
42387         (path_concat): Remove assertion that would have triggered
42388         for ABASE starting with more than one slash.
42389         Reported by Andreas Schwab.
42390
42391         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
42392         properly when ABASE is an absolute file name.
42393         Correct the description of this function.
42394         Include <assert.h>.
42395         Add an assertion and a test driver.
42396         This fixes a bug introduced on 2004-07-02.
42397         Andreas Schwab reported the resulting failure of cp --parents:
42398         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
42399
42400 2005-03-21  Jim Meyering  <jim@meyering.net>
42401
42402         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
42403         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
42404
42405 2005-03-21  Jim Meyering  <jim@meyering.net>
42406         and  Paul Eggert  <eggert@cs.ucla.edu>
42407
42408         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
42409         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
42410         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
42411         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
42412         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
42413         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
42414         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
42415         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
42416         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
42417         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
42418         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
42419         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
42420         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
42421         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
42422         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
42423         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
42424         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
42425         for these modules.
42426
42427 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
42428
42429         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
42430         (which shouldn't happen), generate nothing instead of returning 0
42431         immediately, so that nstrftime (NULL, ...) doesn't return 0.
42432
42433 2005-03-16  Bruno Haible  <bruno@clisp.org>
42434
42435         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
42436         HAVE_LONGLONG_64BIT.
42437
42438 2005-03-16  Bruno Haible  <bruno@clisp.org>
42439
42440         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
42441         HAVE_LONGLONG_64BIT.
42442
42443 2005-03-16  Bruno Haible  <bruno@clisp.org>
42444
42445         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
42446         HAVE_LONGLONG_64BIT.
42447
42448 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
42449
42450         * lib/strftime.c (my_strftime): Prepend space to format so that we can
42451         reliably distinguish strftime failure from empty output on POSIX
42452         hosts.
42453
42454 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
42455
42456         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
42457         (iconv_string): Don't guess a size-zero buffer, as that might cause
42458         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
42459         result would be 'too large', where 'too large' is (heuristically)
42460         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
42461         overflow concerns.  This will prevent some unwanted malloc failures
42462         when the inputs are very large.
42463
42464 2005-03-15  Karl Berry  <karl@gnu.org>
42465
42466         * config/srclist.txt (config.rpath): from gettext.
42467         * config/config.rpath: update.
42468
42469 2005-03-15  Bruno Haible  <bruno@clisp.org>
42470
42471         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
42472         to 'negate'.
42473
42474         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
42475         variable.
42476
42477         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
42478         results.
42479
42480 2005-03-14  Simon Josefsson  <jas@extundo.com>
42481
42482         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
42483         <fx@gnu.org>.
42484
42485 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
42486
42487         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
42488         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
42489         intprops.h.
42490         * lib/strtol.c: Likewise.
42491
42492 2005-03-14  Jim Meyering  <jim@meyering.net>
42493
42494         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
42495         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
42496         to be nonzero so that we (and caller) can detect the difference
42497         between a valid zero-length expansion and an error return, even
42498         when the underlying strftime fails before writing anything into
42499         that location.
42500
42501 2005-03-14  Bruno Haible  <bruno@clisp.org>
42502
42503         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
42504         Update from GNU gettext 0.14.3.
42505
42506 2005-03-10  Jim Meyering  <jim@meyering.net>
42507
42508         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
42509
42510 2005-03-10  Jim Meyering  <jim@meyering.net>
42511
42512         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
42513         so that this module works on systems without fchdir.
42514
42515 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
42516
42517         Factor int-properties macros into a single file, except for
42518         glibc-related files.
42519         * lib/intprops.h: New file.
42520         * lib/getloadavg.c: Include it instead of limits.h.
42521         (INT_STRLEN_BOUND): Remove.
42522         * lib/human.c: Include intprops.h.
42523         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
42524         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
42525         302/1000.
42526         * lib/inttostr.h: Include intprops.h instead of limits.h.
42527         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
42528         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
42529         for consistency with intprops.h.
42530         (time_t_is_integer, twos_complement_arithmetic): Use them.
42531         * lib/sig2str.h: Include <signal.h>, intprops.h.
42532         (INT_STRLEN_BOUND): Remove.
42533         * lib/strftime.c (TYPE_SIGNED): Remove.
42534         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
42535         * lib/strtol.c: Adjust comments to match intprops.h.
42536         * lib/userspec.c: Include intprops.h.
42537         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
42538         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
42539         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
42540         instead of rolling our own expressions.
42541         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
42542
42543         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
42544         instead of int.
42545         (my_strftime): Do not mishandle years close to INT_MAX, by doing
42546         the right thing even if adding 1900 would overflow.  Similarly
42547         for tm_mon + 1 and tm_yday + 1.
42548         Make %Y always equivalent to %C%y, and similarly for %G and %g.
42549         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
42550         (DO_SIGNED_NUMBER): New macro.
42551         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
42552
42553 2005-03-07  Bruno Haible  <bruno@clisp.org>
42554
42555         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
42556
42557 2005-03-07  Bruno Haible  <bruno@clisp.org>
42558
42559         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
42560
42561 2005-03-04  Derek R. Price  <derek@ximbiot.com>
42562
42563         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
42564         (func_import): Only replace files via --import when they have actually
42565         changed.
42566
42567 2005-03-03  Derek R. Price  <derek@ximbiot.com>
42568
42569         * m4/mmap-anon.m4: New file.
42570         * m4/pagealign_alloc.m4: New file.
42571
42572 2005-03-03  Derek R. Price  <derek@ximbiot.com>
42573             Bruno Haible  <bruno@clisp.org>
42574
42575         * modules/pagealign_alloc: New file.
42576         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
42577
42578 2005-03-03  Derek R. Price  <derek@ximbiot.com>
42579             Bruno Haible  <bruno@clisp.org>
42580
42581         * lib/pagealign_alloc.h: New file.
42582         * lib/pagealign_alloc.c: New file.
42583
42584 2005-03-03  Bruno Haible  <bruno@clisp.org>
42585
42586         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
42587         Use an all-permissive copyright notice, recommended by RMS.
42588
42589 2005-03-02  Bruno Haible  <bruno@clisp.org>
42590
42591         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
42592         of AIX, the replacement has to be done only after <string.h> is
42593         included, therefore not in config.h. stpncpy.h does the replacement,
42594         and stpncpy.c uses it.
42595
42596 2005-03-02  Bruno Haible  <bruno@clisp.org>
42597
42598         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
42599         stpncpy.c uses it.
42600
42601 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
42602
42603         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
42604         The workaround isn't strictly needed for POSIX conformance, and
42605         it's too much of a pain to configure and maintain.  We'll ask
42606         people to fix their kernels instead.
42607         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
42608         (NANOSLEEP_BUG_WORKAROUND): Remove.
42609         (xnanosleep): Remove the workaround.
42610
42611 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
42612
42613         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
42614         Reported by Derek Price.
42615         (Include): Add "timespec.h".
42616
42617         * modules/xnanosleep (Depends-on): Remove gethrxtime.
42618
42619 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
42620
42621         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
42622         to detect nanosleep bug.
42623
42624 2005-03-01  Bruno Haible  <bruno@clisp.org>
42625
42626         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
42627
42628 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
42629
42630         * modules/gethrxtime: New file.
42631         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
42632         (Depends-on): Add gethrxtime.
42633         (configure.ac): Add gl_XNANOSLEEP.
42634         (Makefile.am): Remove lib_SOURCES line.
42635
42636 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42637
42638         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
42639         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
42640
42641 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42642
42643         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
42644         * lib/timespec.h (gettime): Return void, since it always
42645         succeeds now.  All uses changed.
42646         * lib/gettime.c (gettime) Likewise.
42647         [HAVE_NANOTIME]: Prefer nanotime.
42648         Assume gettimeofday succeeds, as POSIX requires.
42649         Assime time () succeeds, since other code already does.
42650         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
42651         (timespec_subtract): Remove.
42652         (NANOSLEEP_BUG_WORKAROUND): New constant.
42653         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
42654         things considerably.  Use it only on GNU/Linux hosts, since the
42655         workaround shouldn't be needed elsewhere.
42656
42657 2005-02-24  Bruno Haible  <bruno@clisp.org>
42658
42659         * modules/gettext (Files): Add m4/glibc2.m4.
42660
42661 2005-02-24  Bruno Haible  <bruno@clisp.org>
42662
42663         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
42664         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
42665         * m4/progtest.m4:
42666         Update from GNU gettext 0.14.2.
42667         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
42668
42669 2005-02-24  Bruno Haible  <bruno@clisp.org>
42670
42671         * lib/localcharset.c: Update from GNU gettext 0.14.2.
42672         * lib/config.charset: Update from GNU gettext 0.14.2.
42673
42674 2005-02-24  Bruno Haible  <bruno@clisp.org>
42675
42676         * lib/gettext.h: Update from GNU gettext 0.14.2.
42677
42678 2005-02-23  Simon Josefsson  <jas@extundo.com>
42679
42680         * m4/iconvme.m4: New file.
42681
42682 2005-02-23  Jim Meyering  <jim@meyering.net>
42683
42684         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
42685         change.
42686         Thanks to Bruno Haible for catching it.
42687
42688 2005-02-22  Simon Josefsson  <jas@extundo.com>
42689
42690         * modules/iconvme: New file.
42691
42692         * MODULES.html.sh: Add iconvme.
42693
42694 2005-02-22  Simon Josefsson  <jas@extundo.com>
42695
42696         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
42697
42698 2005-02-22  Simon Josefsson  <jas@extundo.com>
42699
42700         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
42701
42702 2005-02-22  Jim Meyering  <jim@meyering.net>
42703
42704         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
42705         s/ifndef/ifdef/.
42706
42707 2005-02-20  Neil Conway  <neilc@samurai.com>
42708
42709         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
42710         returned by OSX/Darwin if the specified buffer is not large
42711         enough for the hostname.
42712
42713 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42714
42715         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
42716         pass it to _help, otherwise the latter coredumps trying to
42717         dereference state.root_argp.
42718
42719 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
42720
42721         * modules/chdir-long (Depends-on): Add memrchr.
42722         * modules/memrchr (Files): Add lib/memrchr.h.
42723         (Include): "memrchr.h".
42724
42725 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
42726
42727         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
42728
42729 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
42730
42731         * lib/memrchr.h: New file.
42732         * lib/chdir-long.c: Include it.
42733         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
42734         Don't bother including stddef.h.
42735
42736 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
42737
42738         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
42739         inclusion.
42740         Include <sys/types.h>, for dev_t.
42741         (ME_DUMMY, ME_REMOTE): Move from here....
42742         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
42743         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
42744         Dmitry V. Levin.
42745         Include mountlist.h first, to test the interface.
42746
42747 2005-01-29  Bruno Haible  <bruno@clisp.org>
42748
42749         * lib/progname.c (program_name): Initialize.
42750         Needed when linking statically on MacOS X.
42751
42752 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42753
42754         Sync from coreutils.
42755         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
42756         (Depends-on): Add c-strtod.
42757         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
42758
42759 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42760
42761         Sync from coreutils.
42762         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
42763
42764         Remove files that are specific to coreutils.
42765         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
42766
42767 2005-01-28  Bruno Haible  <bruno@clisp.org>
42768
42769         * modules/javacomp: New file.
42770         * MODULES.html.sh (Java): Add javacomp.
42771
42772 2005-01-28  Bruno Haible  <bruno@clisp.org>
42773
42774         * m4/javacomp.m4: New file, from GNU gettext.
42775
42776 2005-01-28  Bruno Haible  <bruno@clisp.org>
42777
42778         * lib/javacomp.sh.in: New file, from GNU gettext.
42779         * lib/javacomp.h: New file, from GNU gettext.
42780         * lib/javacomp.c: New file, from GNU gettext.
42781
42782 2005-01-26  Simon Josefsson  <jas@extundo.com>
42783
42784         * lib/gai_strerror.c: Use GPL in header.
42785
42786 2005-01-26  Bruno Haible  <bruno@clisp.org>
42787
42788         * modules/javaexec: New file.
42789         * MODULES.html.sh (Java): Add javaexec.
42790
42791 2005-01-26  Bruno Haible  <bruno@clisp.org>
42792
42793         * m4/javaexec.m4: New file, from GNU gettext.
42794
42795 2005-01-26  Bruno Haible  <bruno@clisp.org>
42796
42797         * lib/javaexec.sh.in: New file, from GNU gettext.
42798         * lib/javaexec.h: New file, from GNU gettext.
42799         * lib/javaexec.c: New file, from GNU gettext.
42800
42801 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42802
42803         * modules/lchown (Depends-on): Remove lchown.h
42804
42805 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42806
42807         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
42808         must be defined if the header file was not found, in order
42809         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
42810
42811 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42812
42813         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
42814         initializers for struct pentry_state.
42815         (__argp_error): Check return value of __asprintf
42816         (__argp_failure): Translate error message
42817
42818         * lib/argp-parse.c: Removed braces around the expansion of N_()
42819
42820 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42821
42822         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
42823         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
42824         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
42825         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
42826         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
42827         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
42828         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
42829         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
42830         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
42831         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
42832         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
42833         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
42834         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
42835         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
42836         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
42837         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
42838         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
42839         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
42840         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
42841         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
42842         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
42843         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
42844         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
42845         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
42846         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
42847         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
42848         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
42849         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
42850         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
42851         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
42852         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
42853         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
42854         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
42855         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
42856         xstrtol.m4, xstrtoumax.m4, yesno.m4:
42857         Use an all-permissive copyright notice, recommended by RMS.
42858
42859 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
42860
42861         * modules/chdir-long (Depends-on): Remove mempcpy.
42862
42863 2005-01-21  Jim Meyering  <jim@meyering.net>
42864
42865         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
42866         same value as for Solaris 9.
42867
42868         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
42869         component length.  This included changing the parameter to be
42870         of type `char *' rather than `char const *'.
42871         * lib/chdir-long.h (chdir_long): Update prototype.
42872
42873         * lib/openat.c (fdopendir, fstatat): New functions.
42874         * lib/openat.h: Include headers required for use of DIR and struct
42875         stat.
42876         [AT_SYMLINK_NOFOLLOW]: Define.
42877         (fdopendir, fstatat): Add prototypes.
42878
42879 2005-01-21  Bruno Haible  <bruno@clisp.org>
42880
42881         * modules/classpath: New file.
42882         * MODULES.html.sh (Java): Add classpath.
42883
42884 2005-01-21  Bruno Haible  <bruno@clisp.org>
42885
42886         * lib/classpath.h: New file, from GNU gettext.
42887         * lib/classpath.c: New file, from GNU gettext.
42888
42889 2005-01-20  Simon Josefsson  <jas@extundo.com>
42890
42891         * modules/version-etc-fsf: New file.
42892
42893 2005-01-20  Simon Josefsson  <jas@extundo.com>
42894
42895         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
42896         * lib/version-etc.c: Remove version_etc_copyright.
42897         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
42898         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
42899
42900 2005-01-20  Simon Josefsson  <jas@extundo.com>
42901
42902         * lib/base64.h (isbase64): Add.
42903
42904         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
42905         using a unsigned prototype, don't inline.
42906         (base64_decode): Use it.
42907
42908 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
42909
42910         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
42911         it.
42912
42913 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
42914
42915         * lib/save-cwd.c (save_cwd): Remove code to support the case
42916         where fchdir is missing or flaky.
42917
42918 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
42919
42920         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
42921
42922 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
42923
42924         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
42925         AC_LIBSOURCES now does this.
42926         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
42927         with new ullong_max module.
42928
42929 2005-01-19  Bruno Haible  <bruno@clisp.org>
42930
42931         * modules/sh-quote: New file.
42932         * MODULES.html.sh (Executing programs): Add sh-quote.
42933
42934 2005-01-19  Bruno Haible  <bruno@clisp.org>
42935
42936         * lib/sh-quote.h: New file, from GNU gettext.
42937         * lib/sh-quote.c: New file, from GNU gettext.
42938
42939 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
42940
42941         Merge from coreutils.
42942         * m4/ullong_max.m4: New file.
42943         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
42944         (gl_MACROS): Assume localeconv exists.
42945
42946 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
42947
42948         Merge changes from coreutils, as described below in several
42949         changelogs dated today.
42950
42951         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
42952         (O_DIRECTORY): Remove; not needed here, since "." must be
42953         a directory.  All uses removed.
42954         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
42955         universal on Suns, and we also need to test for IRIX.
42956         Revamp code to use 'if' rather than '#if'.
42957         Avoid unnecessary comparison of cwd->desc to 0.
42958
42959         * lib/utimens.c (futimens): Robustify the previous patch, by checking
42960         for known valid error numbers rather than observed invalid ones.
42961
42962 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
42963
42964         * modules/ullong_max: New file.
42965
42966         * modules/chdir-long, modules/openat: New files.
42967         * modules/save-cwd (Depends-on): Depend on chdir-long.
42968         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
42969
42970 2005-01-18  Jim Meyering  <jim@meyering.net>
42971
42972         Merge from coreutils.
42973         * m4/chdir-long.m4, m4/openat.m4: New files.
42974         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
42975         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
42976         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
42977         is sane and DOES follow symlinks.  Besides, testing 20 different
42978         systems found no broken chown implementations.
42979         Prompted by a change in rsync's copy of this macro.
42980         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
42981
42982         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
42983
42984         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
42985         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
42986         NULL-means-set-to-current-time semantics.
42987         Remove temporary file immediately, rather than waiting
42988         for configure's at-exit trap code to do it.
42989
42990 2005-01-18  Jim Meyering  <jim@meyering.net>
42991
42992         * lib/version-etc.c (version_etc_copyright): Update copyright date.
42993
42994         * lib/utimens.c (futimens): Account for the fact that futimes
42995         can also fail with errno == ENOSYS or errno == ENOENT.
42996         Patch from Dmitry V. Levin.
42997
42998         Change the name of the robust chdir function from chdir to chdir_long.
42999         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
43000         (restore_cwd): Use chdir_long, not chdir.
43001         * lib/chdir-long.c: Renamed from chdir.c.
43002         * lib/chdir-long.h: Renamed from chdir.h.
43003         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
43004         Hurd.
43005
43006 2005-01-18  Bruno Haible  <bruno@clisp.org>
43007
43008         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
43009         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
43010         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
43011         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
43012         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
43013         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
43014         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
43015         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
43016         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
43017         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
43018         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
43019         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
43020         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
43021         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
43022         Use an all-permissive copyright notice, recommended by RMS.
43023
43024 2005-01-18  Bob Proulx  <bob@proulx.com>
43025
43026         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
43027         simplify offsetof() macro construct to avoid compile failure with
43028         native HP-UX 11.0 ANSI C compiler.
43029
43030 2005-01-17  Bruno Haible  <bruno@clisp.org>
43031
43032         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
43033         redundant because stpncpy.m4 takes care of it.
43034
43035 2005-01-17  Bruno Haible  <bruno@clisp.org>
43036
43037         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
43038
43039 2005-01-17  Bruno Haible  <bruno@clisp.org>
43040
43041         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
43042         used.
43043
43044 2005-01-17  Bruno Haible  <bruno@clisp.org>
43045
43046         * lib/fwriteerror.h (fwriteerror): Change specification to include
43047         fclose.
43048         * lib/fwriteerror.c: Include <stdbool.h>.
43049         (fwriteerror): At the end, close the file stream. Record whether
43050         stdout was already closed.
43051
43052 2005-01-17  Bruno Haible  <bruno@clisp.org>
43053
43054         * lib/execute.c (environ): Declare if needed.
43055         * lib/pipe.c (environ): Likewise.
43056         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
43057
43058 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
43059
43060         * modules/argp: Depend on vsnprintf
43061
43062 2005-01-10  Jim Meyering  <jim@meyering.net>
43063
43064         * modules/closeout (Depends-on): Add atexit.
43065
43066 2005-01-06  Bruno Haible  <bruno@clisp.org>
43067
43068         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
43069
43070 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
43071
43072         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
43073         definitions to be after all include files, to avoid collisions.
43074         Problem reported by Bob Proulx.
43075
43076 2005-01-04  Jim Meyering  <jim@meyering.net>
43077
43078         Changes imported from coreutils.
43079         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
43080         as the mkstemp template, use a temporary directory and an
43081         8.3-friendly template to avoid trouble on systems like DJGPP.
43082         Reported by Juan M. Guerrero via Stepan Kasal.
43083         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
43084         close. Remove the temporary directory right away, rather than waiting
43085         for configure's at-exit trap code to do it.
43086         Suggestion from Stepan Kasal.
43087
43088 2005-01-01  Simon Josefsson  <jas@extundo.com>
43089
43090         * gnulib-tool: Print #include directives when --import'ing.
43091
43092 2004-12-28  Simon Josefsson  <jas@extundo.com>
43093
43094         * tests/test-base64.c: Include required header files.  Remove
43095         unused variables.
43096
43097 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
43098
43099         * modules/error (Depends-on): Remove gettext.
43100
43101 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
43102
43103         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
43104         not needed.  This removes a dependency on the gettext module.
43105         [defined _LIBC]: Do not include <libintl.h>; not needed.
43106
43107 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
43108
43109         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
43110         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
43111
43112 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
43113
43114         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
43115         HAVE_DECL_STRTOLD.
43116
43117 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
43118
43119         * modules/getdate (Depends-on): Remove alloca-opt.
43120
43121 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
43122
43123         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
43124
43125 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
43126
43127         * lib/argp-parse.c: Include <stddef.h>.
43128         (alignof, alignto): New macros.
43129         (parser_init): Don't assume that void * is aligned sufficiently
43130         for struct option.
43131
43132         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
43133         need to extend the stack.
43134         (YYINITDEPTH): New macro, so that the initial stack isn't overly
43135         large.
43136
43137 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
43138
43139         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
43140
43141 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
43142
43143         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
43144         (2004-10-24) change.  Apparently this was a false alarm.
43145
43146         * modules/getdate: Depend on alloca-opt, not alloca.
43147
43148 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
43149
43150         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
43151         Remove now-obsolete comment about AIX.
43152         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
43153         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
43154         (YYMAXDEPTH): New macro.
43155
43156 2004-12-18  Simon Josefsson  <jas@extundo.com>
43157
43158         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
43159
43160 2004-12-18  Bruno Haible  <bruno@clisp.org>
43161
43162         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
43163
43164 2004-12-18  Bruno Haible  <bruno@clisp.org>
43165
43166         * lib/fatal-signal.c (fatal_signals): Make non-const.
43167         (init_fatal_signals): New function.
43168         (uninstall_handlers, install_handlers): Ignore signals that were set to
43169         SIG_IGN.
43170         (at_fatal_signal): Call init_fatal_signals.
43171         (init_fatal_signal_set): Likewise. Ignore signals that were set to
43172         SIG_IGN.
43173         Reported by Paul Eggert.
43174
43175 2004-12-18  Bruno Haible  <bruno@clisp.org>
43176
43177         * doc/alloca.texi: New file.
43178         * doc/alloca-opt.texi: New file.
43179
43180 2004-12-17  Jim Meyering  <jim@meyering.net>
43181
43182         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
43183         Otherwise, install-sh could exit with improper exit status when
43184         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
43185
43186 2004-12-16  Simon Josefsson  <jas@extundo.com>
43187
43188         * tests/test-base64.c: Add license.
43189
43190 2004-12-15  Stepan Kasal  <address@hidden>
43191
43192         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
43193
43194 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
43195
43196         * modules/getcwd (Files): Add m4/d-ino.m4.
43197         Suggested by Mark D. Baushke.
43198
43199 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
43200
43201         * lib/getdate.y (textint): New member "negative".
43202         (time_zone_hhmm): New function.
43203         Expect 14 shift-reduce conflicts, not 13.
43204         (o_colon_minutes): New rule.
43205         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
43206         (yylex): Set the "negative" member of signed numbers.
43207
43208 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
43209
43210         * doc/getdate.texi (Time of day items, Time zone items):
43211         Describe new formats +00:00, UTC+00:00.
43212
43213 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
43214
43215         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
43216         spurious "-l"s.  Problem reported by Stepan Kasal.
43217
43218 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
43219
43220         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
43221         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
43222
43223 2004-12-04  Simon Josefsson  <jas@extundo.com>
43224
43225         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
43226         Vandoorselaere <yoann@prelude-ids.org>.
43227
43228 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
43229
43230         Changes imported from coreutils.
43231         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
43232         exist.
43233         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
43234
43235 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
43236
43237         Changes imported from coreutils.
43238         * lib/hard-locale.c: Assume <locale.h> exists.
43239         Include "strdup.h".
43240         (GLIBC_VERSION): New macro.
43241         (hard_locale): Assume setlocale exists.
43242         Rewrite to avoid #ifdef.
43243         Use strdup rather than malloc + strcpy.
43244         * lib/human.c: Assume <locale.h> exists.
43245         (human_readable): Assume localeconv exists.
43246
43247 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
43248
43249         * modules/hard-locale (Depends-on): Add strdup.
43250
43251 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
43252
43253         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
43254         convert T2, not T.  (Imported from libc.)
43255
43256 2004-11-30  Simon Josefsson  <jas@extundo.com>
43257
43258         * modules/restrict (License): Change to LGPL.
43259
43260 2004-11-30  Simon Josefsson  <jas@extundo.com>
43261
43262         * m4/restrict.m4: Add copyright and copying conditions.
43263
43264 2004-11-30  Simon Josefsson  <jas@extundo.com>
43265
43266         * m4/base64.m4: New file.
43267
43268 2004-11-30  Simon Josefsson  <jas@extundo.com>
43269
43270         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
43271         base64.
43272
43273         * tests/test-base64.c: New file.
43274
43275         * modules/base64: New file.
43276
43277 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
43278
43279         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
43280         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
43281
43282         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
43283
43284 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
43285
43286         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
43287         (__getcwd.c): Don't restore errno; glibc doesn't.
43288         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
43289         first, falling back to our code only if its results look suspicious.
43290         Ensure that the resulting buffer is only as large as necessary.
43291
43292         * lib/readutmp.c: Include readutmp.h first.
43293         Include <errno.h>, since readutmp.h no longer does that.
43294         * lib/readutmp.h: Don't include <errno.h>,
43295         <sys/param.h>, <time.h>; not needed to establish interface.
43296         (errno): Remove decl.
43297         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
43298         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
43299         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
43300
43301 2004-11-28  Simon Josefsson  <jas@extundo.com>
43302
43303         * lib/base64.h, base64.c: New file.
43304
43305 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
43306
43307         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
43308
43309 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
43310
43311         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
43312         (Depends-on): Remove pathmax, same.  Add mempcpy.
43313         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
43314         (Makefile.am): Append getcwd.h to lib_SOURCES.
43315         (Include): Add getcwd.h.
43316         (Maintainer): Change from Jim Meyering to "all, glibc",
43317         since getdate now uses intended-for-glibc code.
43318         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
43319         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
43320
43321 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
43322
43323         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
43324         HP's ANSI C compiler.
43325         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
43326         Declaring int functions causes warnings on some modern systems and
43327         shouldn't be needed to compile on ancient ones.
43328         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
43329         defined.
43330
43331         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
43332         with the following changes.
43333         (__set_errno): Parenthesize properly.
43334         Include <stdbool.h>.
43335         (MIN, MAX, MATCHING_INO): New macros.
43336         (__getcwd): Define with prototype, not K&R form.
43337         Use heuristics to allocate default buffer on stack if possible.
43338         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
43339         behavior, and to avoid the PATH_MAX limit when computing
43340         ../../../../...
43341         Use MATCHING_INO to compare inode number to file.
43342         Check for arithmetic overflow in size calculations.
43343         Fix bug in reallocation of dot array that caused getcwd to fail
43344         on directories nested deeper than 75.
43345         Be more careful about saving errno on error.
43346         Do not use realloc; use only free+malloc, as this is a bit
43347         more flexible and avoids a needless copy operation.
43348         Do not inspect st_dev and st_ino for symbolic links; POSIX
43349         doesn't specify the latter.
43350         Check for closedir errors.
43351         Avoid needless casts.
43352         Use "#ifdef weak_alias" around weak_alias, to be like other
43353         glibc code.
43354         The following changes to getcwd.c have effect only when used in
43355         gnulib; they have no effect inside glibc proper.
43356         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
43357         as alloca isn't used.
43358         (alloca, __alloca): Likewise.
43359         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
43360         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
43361         unconditionally, as gnulib assumes C89 or better.
43362         Do not include <sys/param.h>.
43363         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
43364         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
43365         better.
43366         (NULL) [!defined NULL]: Remove; we assume C89 or better.
43367         Include <dirent.h> in a way that is compatible with modern Autoconf.
43368         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
43369         New macros, if not already defined.
43370         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
43371         Use "_LIBC", not "defined _LIBC", for consistency.
43372         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
43373         a mempcpy module.
43374         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
43375         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
43376         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
43377         credit only to Jim Meyering and adjust the copyright dates.
43378         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
43379         <stdlib.h>, <unistd.h>, "pathmax.h".
43380         Instead, include "xgetcwd.h" (first) and "getcwd.h".
43381         (INITIAL_BUFFER_SIZE): Remove.
43382         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
43383
43384 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
43385
43386         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
43387         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
43388         Use the _ONCE methods, for efficiency.
43389         Check for fcntl.h.  In test program, include <errno.h>
43390         and <fcntl.h> if available.  Remove old K&R cruft from
43391         test program.  Check for common errors in GNU/Linux,
43392         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
43393         don't do AC_LIBOBJ, as that's getcwd.m4's job.
43394         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
43395         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
43396         name accordingly.
43397         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
43398         accommodate new getcwd.c.
43399         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
43400         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
43401         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
43402         that's all we need now.
43403
43404 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
43405
43406         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
43407         argp-parse.c depends on getopt internals, that means we should
43408         always use our getopt, to be on the safe side.
43409         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
43410         order not to spoil the result of an eventual previous invocation
43411         of gl_GETOPT_SUBSTITUTE.
43412
43413 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
43414
43415         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
43416         redefinition warnings. To avoid them, include the defines
43417         in `#if !defined __need_getopt ... #endif'. The only place
43418         where __getopt_argv_const is used is in definitions
43419         of getopt_long and getopt_long_only below, which are as well
43420         protected by `#ifndef __need_getopt'.
43421         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
43422         __need_getopt after including <stdio.h> and <unistd.h> These
43423         headers might have defined it.
43424
43425 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
43426
43427         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
43428
43429 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
43430
43431         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
43432         (futimens): New function, which uses futimes if available.
43433         (futimens, utimens): Support timespec==NULL, with same semantics
43434         as utime and utimens.
43435         * lib/utimens.h (futimens): New decl.
43436
43437 2004-11-23  Jim Meyering  <jim@meyering.net>
43438
43439         * lib/getopt_.h: Remove trailing blanks.
43440
43441 2004-11-23  Jim Meyering  <jim@meyering.net>
43442
43443         * lib/__fpending.c: Add comment.
43444
43445 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
43446
43447         * modules/canonicalize (Depends-on): Add xreadlink.
43448         Problem reported by James Youngman.
43449
43450 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
43451
43452         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
43453         New macros.
43454         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
43455         optopt): Use them instead of invoking ## directly; otherwise, the
43456         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
43457
43458 2004-11-19  Bruno Haible  <bruno@clisp.org>
43459
43460         * lib/strtok_r.c: Move comments from here...
43461         * lib/strtok_r.h: ... to here.
43462
43463 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
43464
43465         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
43466         implementations that mishandle size_t overflow.
43467
43468 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
43469
43470         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
43471         might fail.  Problem reported by Yoann Vandoorselaere.
43472         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
43473         implementations that mishandle size_t overflow.
43474
43475 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43476
43477         * modules/canon-host (Depends-on): Add strdup.
43478
43479 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43480
43481         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
43482
43483 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43484
43485         * lib/canon-host.c: Include "strdup.h".
43486         (canon_host): Use getaddrinfo if available, so that IPv6 works.
43487         Use strdup instead of malloc/strcpy to duplicate strings.
43488
43489         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
43490         (human_space_before_unit): New constant.
43491         * lib/human.c (human_readable): Support it.
43492
43493         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
43494         (xgetcwd): Set errno correctly when failing.
43495         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
43496         the failure is actually due to a PATH_MAX problem.
43497
43498         Further getopt changes to make it more likely that glibc will
43499         buy the changes back.
43500         * lib/getopt.c (POSIXLY_CORRECT): New constant.
43501         (getopt): Use it, so to preserve glibc semantic
43502         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
43503         when compiling for libc.
43504         * lib/getopt_.h (__getopt_argv_const): Bring it back.
43505         (getopt_long, getopt_long_only): Use it.
43506
43507         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
43508         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
43509         (getopt): Argv is now char * const *, as per standard.
43510         (_getopt_internal_r, _getopt_internal): Argv is now char **,
43511         not char *__getopt_argv_const *.
43512         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
43513         _getopt_long_only_r): Likewise.
43514         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
43515         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
43516         _getopt_long_r, _getopt_long_only_r): Likewise.
43517         * lib/getopt_.h (__getopt_argv_const): Remove.
43518         (getopt): Argv is now char * const *, as per standard.
43519
43520         * lib/getdate.y (tORDINAL): New token.
43521         (day, relunit): Allow it for relative times.
43522         (relative_time_table): Use tORDINAL for ordinals.
43523
43524 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43525
43526         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
43527         Document that "second" isn't allowed as an ordinal number.
43528
43529 2004-11-16  Jim Meyering  <jim@meyering.net>
43530
43531         * modules/closeout (Depends-on): Add fpending.
43532
43533 2004-11-15  Jim Meyering  <jim@meyering.net>
43534
43535         * lib/closeout.c: Include "__fpending.h" once again.
43536         Include <stdbool.h>.
43537         (close_stdout): Don't fail just because stdout was closed initially,
43538         since some programs don't write to stdout in the normal course of
43539         operation (other than --version and --help), and we don't want this
43540         function to make e.g. `touch file >&-' fail.
43541         But do fail if it was closed and someone has tried to write to it.
43542         E.g., `printf foo >&-' must fail.
43543
43544 2004-11-13  Jim Meyering  <jim@meyering.net>
43545
43546         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
43547
43548 2004-11-12  Simon Josefsson  <jas@extundo.com>
43549
43550         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
43551         small doc fix is still pending.
43552
43553 2004-11-11  Simon Josefsson  <jas@extundo.com>
43554
43555         * modules/strtok_r: New file.
43556
43557         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43558         strtok_r.
43559
43560 2004-11-11  Simon Josefsson  <jas@extundo.com>
43561
43562         * m4/strtok_r.m4: New file.
43563
43564         * m4/getopt.m4: Replace opterr.
43565
43566 2004-11-11  Simon Josefsson  <jas@extundo.com>
43567
43568         * lib/strtok_r.h, strtok_r.c: New file.
43569
43570 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
43571
43572         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
43573         of replacing opterr, getopt, etc.  This should handle the
43574         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
43575
43576 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
43577
43578         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
43579         we can stop lying to compilers about the constness of argv when we
43580         are compiled outside glibc.
43581         (getopt, getopt_long, getopt_long_only): Use it.
43582         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
43583         _getopt_internal, getopt): Likewise.
43584         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
43585         _getopt_long_only_r): Likewise.
43586         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
43587         _getopt_long_r, _getopt_long_only_r): Likewise.
43588
43589         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
43590         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
43591         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
43592         the other external symbols.
43593         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
43594         declaration, since the above renaming now works around collisions.
43595
43596 2004-11-11  Jim Meyering  <jim@meyering.net>
43597
43598         * lib/linebreak.c: Remove trailing blanks.
43599         * lib/alloca_.h: Likewise.
43600         * lib/acosl.c: Likewise.
43601         * lib/euidaccess.c: Likewise.
43602         * lib/allocsa.h: Likewise.
43603
43604 2004-11-10  Simon Josefsson  <jas@extundo.com>
43605
43606         * m4/getaddrinfo.m4: New file.
43607
43608 2004-11-10  Simon Josefsson  <jas@extundo.com>
43609
43610         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
43611
43612 2004-11-10  Simon Josefsson  <jas@extundo.com>
43613
43614         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43615         getaddrinfo.
43616
43617         * modules/getaddrinfo: New file.
43618
43619 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
43620
43621         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
43622
43623 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
43624
43625         * lib/mktime.c (SHR): New macro, which is a portable
43626         substitute for >> that should work even on Crays.
43627         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
43628         Problem reported by Mark D. Baushke in
43629         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
43630         * lib/getdate.y (SHR): Likewise.
43631         (tm_diff): Use it.
43632         * lib/strftime.c (SHR): Likewise.
43633         (tm_diff): Use it.
43634         * lib/quotearg.c (struct quoting_options): Use unsigned int for
43635         quote_these_too, so that right shifts are well defined.  All uses
43636         changed.
43637
43638 2004-11-10  Jim Meyering  <jim@meyering.net>
43639
43640         Ensure that no close failure goes unreported.
43641         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
43642         return early when it seems there's nothing to flush.
43643         Don't include __fpending.h.
43644
43645 2004-11-10  Jim Meyering  <jim@meyering.net>
43646
43647         * modules/closeout (Depends-on): Remove fpending.
43648
43649 2004-11-10  Jim Meyering  <jim@meyering.net>
43650
43651         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
43652
43653 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
43654
43655         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
43656         gl_FUNC_STRFTIME.
43657         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
43658         and AC_REQUIRE when possible, to avoid duplicate checks.
43659         Check for <wchar.h>.
43660
43661 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
43662
43663         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
43664
43665 2004-11-09  Bruno Haible  <bruno@clisp.org>
43666
43667         * m4/sockpfaf.m4: New file.
43668
43669 2004-11-05  Bruno Haible  <bruno@clisp.org>
43670
43671         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
43672         Reported by Mark D. Baushke <mdb@cvshome.org>.
43673
43674 2004-11-04  Bruno Haible  <bruno@clisp.org>
43675
43676         2004-09-11  Bruno Haible  <bruno@clisp.org>
43677                 * allocsa.valgrind: New file.
43678         2004-02-06  Bruno Haible  <bruno@clisp.org>
43679                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
43680                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
43681                 Reported by Christopher Seip <chris.seip@hp.com>.
43682
43683 2004-11-04  Bruno Haible  <bruno@clisp.org>
43684
43685         * modules/allocsa (Files): Add lib/allocsa.valgrind.
43686         (Makefile.am): Distribute it.
43687
43688 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
43689
43690         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
43691         with errno == ERANGE if the buffer is too small.
43692         Problem reported by Mark D. Baushke.
43693
43694 2004-11-03  Albert Chin  <china@thewrittenword.com>
43695             Paul Eggert  <eggert@cs.ucla.edu>
43696
43697         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
43698         equivalent, substitute $ac_type for equivalent type rather than
43699         blindly using uint32_t *always* which won't work if uint32_t is not
43700         available.  Define _UINT32_T to work around typedef of uint32_t if
43701         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
43702         2.5.1.
43703
43704 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
43705
43706         * m4/jm-macros.m4: Sync from coreutils.
43707         (gl_MACROS): Check for mbrlen, for pathchk.
43708         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
43709
43710 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
43711
43712         * lib/xreadlink.c (MAXSIZE): New macro.
43713         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
43714         size does not exceed MAXSIZE.  Avoid cast.
43715         As suggested by Mark D. Baushke in
43716         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
43717         if readlink fails with buffer size just under MAXSIZE, try again
43718         with MAXSIZE.
43719
43720 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
43721
43722         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
43723
43724 2004-11-02  Derek R. Price  <derek@ximbiot.com>
43725         and  Paul Eggert  <eggert@cs.ucla.edu>
43726
43727         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
43728         (get_date): Overparenthesize to avoid GCC warning.
43729
43730 2004-11-02  Bruno Haible  <bruno@clisp.org>
43731
43732         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
43733         returns void.
43734
43735 2004-11-02  Bruno Haible  <bruno@clisp.org>
43736
43737         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
43738         function returns void.
43739
43740 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
43741
43742         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
43743         fflush_unlocked, flockfile, funlockfile, funlockfile,
43744         fputs_unlocked, putc_unlocked.
43745
43746 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
43747
43748         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
43749         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
43750         already declared.
43751
43752 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
43753
43754         * modules/getdate (Files): Add doc/getdate.texi.
43755         (Depends-on): Add setenv, xalloc.
43756
43757 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
43758
43759         * lib/getdate.y: Add support for TZ="foo" within a date string.
43760         Fix some bugs near time_t boundaries.  Reject dates with
43761         out-of-range components, e.g., "Sept 31".
43762         Include <stdlib.h>, "setenv.h", "xalloc.h".
43763         (ISDIGIT_LOCALE): Remove; unused.
43764         Note that the TZ and time functions used here are not reentrant.
43765         (mktime_ok, get_tz): New functions.
43766         (TZBUFSIZE): New constant.
43767         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
43768         This requires that we sometimes generate our own TZ="XXX..." setting.
43769
43770 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
43771
43772         * doc/getdate.texi: New file, from coreutils with modifications for
43773         the new TZ parsing.
43774
43775 2004-10-27  Derek R. Price  <derek@ximbiot.com>
43776
43777         * lib/mktime.c (not_equal_tm): Remove redundant check.
43778
43779 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
43780
43781         * modules/regex (lib_SOURCES): Add regex.c.
43782         Reported by James Youngman in
43783         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
43784
43785 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
43786
43787         * lib/getdate.y: Use Bison 1.875 features, and some minor
43788         code cleanups.  This change does not affect semantics.
43789         Don't include <stdlib.h>; no longer needed.
43790         Don't include unlocked-io.h; only the "#if TEST" code uses
43791         stdio, and performance isn't crucial there.
43792         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
43793         Bison 1.875 features as described below.
43794         All uses of "PC." replaced by "pc->".
43795         (YYSTYPE): Add a forward declaration.
43796         (yylex, yyerror): Use full prototypes in forward decls.
43797         Use "%pure-parser" rather than obsolescent "%pure_parser".
43798         Use %parse-param and %lex-param instead of obsolescent
43799         YYPARSE_PARAM and YYLEX_PARAM.
43800         (meridian_table, month_and_day_table, time_units_table,
43801         relative_time_table, time_zone_table, military_table,
43802         lookup_zone, lookup_word, get_date):
43803         Use NULL instead of 0 where appropriate.
43804         (to_hour): Avoid abort (), to avoid a dependency on
43805         stdlib.h.
43806         (yyerror, yylex): Now accepts parser_control * arg.
43807         (main) [TEST]: Use '\0' rather than 0 for char.
43808
43809 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43810
43811         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
43812
43813 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43814
43815         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
43816         It's now the caller's responsibility to handle the case where
43817         !HAVE_GETPAGESIZE && !defined getpagesize.
43818
43819         * lib/mktime.c (leapyear): Arg is long int, not int.
43820
43821 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
43822
43823         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
43824
43825 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
43826
43827         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
43828         missing.  Problem reported by James Youngman.
43829
43830 2004-10-16  Simon Josefsson  <jas@extundo.com>
43831
43832         * gnulib-tool: Fix comments.  Fix parse problem.
43833         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
43834
43835 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
43836
43837         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
43838         implementation of getopt_long.  Problem reported by Alexander Taler in:
43839         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
43840
43841 2004-10-15  Bruno Haible  <bruno@clisp.org>
43842
43843         * gnulib-tool: Untabify. Initialize supplied_libname.
43844         (func_usage): More homogenous output.
43845         (func_modules_transitive_closure, func_modules_to_filelist,
43846         func_emit_lib_Makefile_am): New functions.
43847         (func_import): New function, extracted from big case statement. Use
43848         func_get_license, func_modules_transitive_closure,
43849         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
43850         opt_lgpl. Don't use test -a, as it's not portable.
43851         (func_create_testdir): Use func_modules_transitive_closure,
43852         func_modules_to_filelist, func_emit_lib_Makefile_am.
43853
43854 2004-10-15  Bruno Haible  <bruno@clisp.org>
43855
43856         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
43857
43858 2004-10-15  Bruno Haible  <bruno@clisp.org>
43859
43860         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
43861         the portions belonging to each module.
43862         Suggested by Derek Robert Price <derek@ximbiot.com>.
43863
43864 2004-10-12  Simon Josefsson  <jas@extundo.com>
43865
43866         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
43867         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
43868         to real functions.
43869
43870 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43871
43872         * modules/vsnprintf: New file.
43873
43874 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43875
43876         * m4/vsnprintf.m4: New file.
43877
43878 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43879
43880         * lib/vsnprintf.h: New file.
43881         * lib/vsnprintf.c: New file.
43882
43883 2004-10-11  Bruno Haible  <bruno@clisp.org>
43884
43885         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
43886         vsnprintf.
43887
43888 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
43889
43890         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
43891
43892 2004-10-07  Bruno Haible  <bruno@clisp.org>
43893
43894         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
43895         fits into the provided buffer.
43896
43897 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
43898
43899         * lib/diacrit.c, diacrit.h: Add GPL notice.
43900
43901         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
43902         notice.
43903         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
43904         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
43905         This avoids a potential constant-folding bug.
43906
43907 2004-10-05  Bruno Haible  <bruno@clisp.org>
43908
43909         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
43910         for the declaration of strsep.
43911
43912 2004-10-05  Bruno Haible  <bruno@clisp.org>
43913
43914         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
43915
43916 2004-10-04  Simon Josefsson  <jas@extundo.com>
43917
43918         * modules/memmem: New file.
43919         * tests/test-memmem.c: New file.
43920         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
43921
43922 2004-10-04  Simon Josefsson  <jas@extundo.com>
43923
43924         * m4/memmem.m4: New file.
43925
43926 2004-10-04  Simon Josefsson  <jas@extundo.com>
43927
43928         * lib/memmem.h: New file.
43929         * lib/memmem.c: New file, taken from glibc.
43930
43931 2004-10-04  Simon Josefsson  <jas@extundo.com>
43932
43933         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
43934         '#ifdef USE_UNLOCKED_IO'.
43935
43936 2004-10-04  Simon Josefsson  <jas@extundo.com>
43937
43938         * config/srclist.txt: Add memmem from glibc.
43939
43940 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
43941
43942         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
43943
43944         * modules/argmatch, modules/argp, modules/closeout, modules/error,
43945         modules/exclude, modules/getdate, modules/getline,
43946         modules/getndelim2, modules/getpass, modules/getpass-gnu,
43947         modules/getusershell, modules/linebuffer, modules/md5,
43948         modules/mountlist, modules/posixtm, modules/readtokens,
43949         modules/readutmp, modules/regex, modules/sha1,
43950         modules/version-etc, modules/yesno:
43951         Remove dependency on unlocked-io.
43952
43953 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
43954
43955         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
43956
43957         * m4/unlocked-io.m4: Add copyright notice.
43958         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
43959
43960 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
43961
43962         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
43963         * lib/xmalloc.c (xmemdup): Likewise.
43964         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
43965         XFREE): Remove these long-obsolescent macros.
43966         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
43967         * lib/xstrdup.c: Remove.
43968
43969         * lib/regex.c (re_comp): Cast gettext return value to char *,
43970         Problem reported by Martin Neitzel via Mark D. Baushke.
43971
43972 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
43973
43974         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
43975         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
43976         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
43977         regex.c, sha1.c, version-etc.c, yesno.c:
43978         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
43979         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
43980         the includer's responsibility.
43981
43982         Sync from coreutils.
43983
43984         * lib/modechange.c (mode_compile): Don't decrement a pointer that
43985         points to the start of a string, as the C Standard says the
43986         resulting behavior is undefined.
43987
43988         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
43989         simple -> simple_backups, numbered_existing ->
43990         numbered_existing_backups, numbered -> numbered_backups
43991         to avoid shadowing problems.  All uses changed.
43992         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
43993         * lib/backupfile.c (check_extension, numbered_backup):
43994         Rename locals to avoid shadowing 'basename'.
43995         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
43996         once.
43997
43998         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
43999         * lib/.cvsignore: Add getopt.h.
44000
44001 2004-10-04  Bruno Haible  <bruno@clisp.org>
44002
44003         * modules/README: New file.
44004         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
44005         not a module.
44006
44007 2004-10-02  Jim Meyering  <jim@meyering.net>
44008
44009         * lib/dirfd.h, getpagesize.h: Add copyright notice.
44010
44011 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44012
44013         * modules/strsep: New file.
44014
44015 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44016
44017         * m4/strsep.m4: New file.
44018
44019 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44020
44021         * lib/strsep.h: New file.
44022         * lib/strsep.c: New file.
44023
44024 2004-10-01  Simon Josefsson  <jas@extundo.com>
44025
44026         * lib/snprintf.c (snprintf): Handle size==0.
44027
44028 2004-10-01  Simon Josefsson  <jas@extundo.com>
44029             Bruno Haible  <bruno@clisp.org>
44030
44031         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
44032         (snprintf): Declare 'args'.
44033
44034 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
44035
44036         * lib/snprintf.c: Remove comments as to why each header is needed.
44037
44038 2004-10-01  Bruno Haible  <bruno@clisp.org>
44039
44040         * MODULES.html.sh: Add strsep.
44041
44042 2004-09-30  Simon Josefsson  <jas@extundo.com>
44043
44044         * modules/snprintf: New file.
44045
44046 2004-09-30  Simon Josefsson  <jas@extundo.com>
44047
44048         * m4/snprintf.m4: New file.
44049
44050 2004-09-30  Simon Josefsson  <jas@extundo.com>
44051
44052         * lib/snprintf.h, lib/snprintf.c: New files.
44053
44054 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
44055
44056         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
44057         (hol_entry_help): Never translate an empty string.
44058         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
44059         * lib/argp.h (OPTION_NO_TRANS): New option.
44060
44061 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
44062
44063         * modules/argp (Maintainer): Replace Simon Josefsson
44064         by Sergey Poznyakoff.
44065
44066 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
44067
44068         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
44069         changes merged back into glibc.
44070
44071 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
44072
44073         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
44074
44075 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
44076
44077         * lib/xvasprintf.c: Include xalloc.h.
44078         (xvasprintf): Use xalloc_die, not xmalloc_die.
44079
44080 2004-09-29  Bruno Haible  <bruno@clisp.org>
44081
44082         * modules/alloca-opt: New file, derived from modules/alloca.
44083         * modules/allocsa: Depend on alloca-opt instead of alloca.
44084         * modules/setenv: Likewise.
44085         * modules/vasnprintf: Likewise.
44086         * MODULES.html.sh: Add alloca-opt.
44087
44088 2004-09-28  Simon Josefsson  <jas@extundo.com>
44089
44090         * gnulib-tool: New parameter --lgpl, to asseert that modules are
44091         LGPL, and to replace license template from GPL to LGPL.
44092
44093 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
44094
44095         * modules/dummy: Change license to LGPL.
44096
44097 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
44098
44099         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
44100
44101 2004-09-24  Simon Josefsson  <jas@extundo.com>
44102
44103         * modules/minmax (License): Change from GPL to LGPL.
44104
44105 2004-09-23  Simon Josefsson  <jas@extundo.com>
44106
44107         * gnulib-tool (--import): Typo.
44108
44109 2004-09-23  Simon Josefsson  <jas@extundo.com>
44110
44111         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
44112
44113 2004-09-22  Bruno Haible  <bruno@clisp.org>
44114
44115         * modules/*: Add 'License' field.
44116         * gnulib-tool: Accept --extract-license option.
44117         (func_get_license): New function.
44118
44119 2004-09-21  Bruno Haible  <bruno@clisp.org>
44120
44121         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
44122         Reported by Simon Josefsson.
44123
44124 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
44125
44126         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
44127         gl_AC_TYPE_LONG_LONG.
44128
44129 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
44130
44131         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
44132
44133 2004-09-18  Simon Josefsson  <jas@extundo.com>
44134         and  Paul Eggert  <eggert@cs.ucla.edu>
44135
44136         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
44137         calls with autoreconf.  Define GL_LIB.
44138
44139 2004-09-14  Karl Berry  <karl@gnu.org>
44140
44141         * config/srclist.txt: unsync setenv.c, sigh.
44142
44143 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
44144
44145         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
44146         Problem reported by Bruno Haible in:
44147         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
44148
44149 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
44150
44151         * config/srclist.txt: Comment out argp-pvh.c.
44152
44153 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
44154
44155         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
44156         in case some system header has #define'd it.  Problem reported by
44157         Soeren D. Schulze in
44158         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
44159
44160 2004-09-09  Karl Berry  <karl@gnu.org>
44161
44162         * regex.[ch]: delete from the root.  These were supposed to be
44163                 synced with emacs cvs, but this has not happened for about
44164                 a year, and anyway nothing else uses emacs regex.[ch].
44165                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
44166                 lib/regex[.ch] is untouched.
44167
44168 2004-09-09  Bruno Haible  <bruno@clisp.org>
44169
44170         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
44171
44172 2004-09-09  Bruno Haible  <bruno@clisp.org>
44173
44174         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
44175         modifications.
44176         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
44177
44178 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
44179
44180         * modules/xvasprintf: New file.
44181         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
44182
44183 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
44184
44185         * lib/xvasprintf.h: New file.
44186         * lib/xvasprintf.c: New file.
44187         * lib/xasprintf.c: New file.
44188
44189 2004-09-08  Bruno Haible  <bruno@clisp.org>
44190
44191         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
44192
44193 2004-09-08  Bruno Haible  <bruno@clisp.org>
44194
44195         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
44196         length is > INT_MAX.
44197         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
44198         more.
44199
44200 2004-09-08  Bruno Haible  <bruno@clisp.org>
44201
44202         * lib/stdint_.h: New file, taken from GNU clisp.
44203
44204 2004-09-08  Bruno Haible  <bruno@clisp.org>
44205             Oskar Liljeblad  <oskar@osk.mine.nu>
44206
44207         * modules/stdint: New file.
44208         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
44209
44210 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44211
44212         Import from coreutils.
44213         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
44214         strings on unbounded length.  alloca's performance benefits aren't
44215         that important here.
44216         (V_STRDUP): Remove.
44217         (parse_with_separator): New function, with most of the internals
44218         of the old parse_user_spec.  Allow user to omit both user and group,
44219         for compatibility with FreeBSD.
44220         Clone only the user name, not the entire spec.
44221         Do not set *uid, *gid unless entirely successful.
44222         Avoid memory leak in some failing cases.
44223         Fix regression for USER.GROUP reported by Dmitry V. Levin in
44224         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
44225         (parse_user_spec): Rewrite to use parse_with_separator.
44226
44227 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44228
44229         * modules/userspec: Don't depend on alloca.
44230
44231 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44232
44233         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
44234
44235 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44236
44237         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
44238         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
44239         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
44240
44241 2004-08-16  Simon Josefsson  <jas@extundo.com>
44242
44243         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
44244         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
44245         Add --dry-run for --import.
44246         Let user provided command line parameters override configure.ac
44247         settings.
44248
44249 2004-08-12  Simon Josefsson  <jas@extundo.com>
44250
44251         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
44252         as discussed with Paul Eggert in threads rooted at
44253         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
44254         and
44255         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
44256         Before, the test was empty, and relied on ELIDE_CODE in source
44257         code.)
44258         (gl_PREREQ_GETOPT): New macro.
44259         (gl_GETOPT): Use them.
44260
44261 2004-08-12  Simon Josefsson  <jas@extundo.com>
44262
44263         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
44264         * lib/getopt_.h: Renamed from getopt.h.
44265
44266 2004-08-12  Simon Josefsson  <jas@extundo.com>
44267
44268         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
44269         Change default library name from libfoo to libgnu.
44270         Now, if you have a configure.ac that says:
44271                 gl_SOURCE_BASE(gl)
44272                 gl_M4_BASE(gl/m4)
44273                 gl_MODULES(error getopt etcetera)
44274                 gl_INIT
44275         you can import all you need by running:
44276                 ../gnulib/gnulib-tool --import
44277
44278         * modules/getopt (Files): Rename getopt.h to getopt_.h.
44279         (Makefile.am): Rewrite, use logic from argz.
44280         (Include): Use <getopt.h> instead of "getopt.h".
44281
44282 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
44283
44284         * modules/argp (Files): Add m4/unlocked-io.m4.
44285         (Depends-on): Add extensions.
44286
44287 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
44288
44289         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
44290         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
44291         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
44292         Check for program_invocation_name, program_invocation_short_name,
44293         flockfile, funlockfile, features.h, _getopt_long_only_r.
44294
44295 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
44296
44297         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
44298         its complicated substitute.
44299         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
44300         and program_invocation_name.
44301         (__argp_basename) [!_LIBC]: Remove; the only use was
44302         replaced by its body.
44303         (__argp_short_program_name): Change condition from
44304         !defined __argp_short_program_name to
44305         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
44306         to match argp-namefrob.h.
44307         (__argp_failure): Don't assume strerror_r returns char *.
44308         * lib/argp-parse.c (N_): Define unconditionally.
44309         (argp_default_options): Fill out initializers with 0 to avoid
44310         gcc warnings.
44311
44312 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
44313
44314         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
44315         getopt1.c.
44316
44317 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
44318
44319         Merge from coreutils.
44320
44321         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
44322
44323         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
44324         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
44325
44326 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
44327
44328         Merge from coreutils.
44329
44330         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
44331         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
44332         for Reliant Unix 5.43.
44333
44334         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
44335         (union fooround): Use uintmax_t, not long int.
44336         The rest is a merge from libc:
44337         [defined _LIBC]: Include <shlib-compat.h>.
44338         (_obstack) [defined _LIBC]: Remove after 2.3.4.
44339
44340         * lib/settime.c (settime): Recode to avoid warning with
44341         Sun Forte C 6U2.
44342
44343         * lib/strverscmp.c: Convert to UTF-8.
44344
44345 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
44346
44347         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
44348         m4/uintmax_t.m4.
44349
44350 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44351
44352         * modules/xalloc-die: New file.
44353         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
44354
44355         * modules/md5 (Files): Add m4/uint32_t.m4.
44356         * modules/sha1: Renamed from modules/sha.
44357         (Files):
44358         Rename lib/sha.h to lib/sha1.h.
44359         Rename lib/sha.c to lib/sha1.c.
44360         Rename m4/sha.m4 to m4/sha1.m4.
44361         (lib_SOURCES): Likewise.
44362         (configure.ac): Rename gl_SHA to gl_SHA1.
44363         (Include): sha.h -> sha1.h.
44364
44365 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44366
44367         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
44368         * m4/sha1.m4: Renamed from sha.m4.
44369         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
44370
44371 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44372
44373         * lib/obstack.h (obstack_empty_p):
44374         Don't assume that chunk->contents is suitably aligned.
44375         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
44376         Likewise. Problem reported by Benno in
44377         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
44378
44379         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
44380         readable.  This could be improved further but it'd take some work.
44381
44382 2004-08-08  Simon Josefsson  <jas@extundo.com>
44383
44384         * modules/xgethostname (Depends-on): Remove exit and error (not
44385         used).
44386
44387         * modules/getpass-gnu: Add getpass.h.
44388         (Depends-on): Add stdbool.
44389         * modules/getpass: Add getpass.h.
44390
44391 2004-08-08  Simon Josefsson  <jas@extundo.com>
44392
44393         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
44394         Check getpass declaration.
44395
44396 2004-08-08  Simon Josefsson  <jas@extundo.com>
44397
44398         * lib/xgethostname.c: Don't include error.h (not used).
44399
44400         * lib/getpass.h: Add.
44401         * lib/getpass.c: Include getpass.h first.
44402
44403 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
44404
44405         * lib/xalloc-die.c: New file.
44406         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
44407         All uses removed.
44408         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
44409         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
44410         xalloc-die.c.
44411         (_, N_, xalloc_die): Move to xalloc-die.c.
44412         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
44413         so that we needn't mess with xalloc_msg_memory_exhausted.
44414
44415         * lib/sha1.h: Renamed from sha.h.
44416         (SHA1_H): Renamed from _SHA_H.
44417         (sha1_ctx): Renamed from sha_ctx.
44418         (sha1_init_ctx): Renamed from sha_init_ctx.
44419         (sha1_process_block): Renamed from sha_process_block.
44420         (sha1_process_bytes): Renamed from sha_process_bytes.
44421         (sha1_finish_ctx): Renamed from sha_finish_ctx.
44422         (sha1_read_ctx): Renamed from sha_read_ctx.
44423         (sha1_stream): Renamed from sha_stream.
44424         (sha1_buffer): Renamed from sha_buffer.
44425         * lib/sha1.c: Likewise; renamed from sha.c.
44426         Do not include <sys/types.h>.
44427         Include <stddef.h> rather than <stdlib.h>.
44428
44429 2004-08-08  Bruno Haible  <bruno@clisp.org>
44430
44431         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
44432         FILESYSTEM_PREFIX_LEN.
44433         * lib/progreloc.c: Likewise.
44434         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
44435
44436 2004-08-06  Simon Josefsson  <jas@extundo.com>
44437
44438         * modules/progname (Depends-on): Don't depend on stdbool.
44439
44440 2004-08-06  Simon Josefsson  <jas@extundo.com>
44441
44442         * modules/getsubopt: New file.
44443         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44444         getsubopt.
44445
44446 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
44447
44448         More merge from coreutils.
44449
44450         * m4/utimens.m4, m4/utimecmp.m4: New files.
44451         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
44452         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
44453         prereq.m4, sha.m4: Import changes from coreutils.
44454
44455 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
44456
44457         More merge from coreutils.
44458         * modules/raise, modules/readtokens0, modules/utimens:
44459         * modules/utimecmp, module/xnanosleep: New files.
44460         * modules/strftime: Add lib/strftime.h.
44461         Change include from <time.h> to "strftime.h".
44462         * modules/yesno: Add lib/yesno.h.
44463         * modules/backupfile: Remove lib/addext.c.
44464         * modules/euidaccess: Add stat-macros.h.
44465         * modules/canonicalize, modules/euidaccess,
44466         modules/filemode, modules/lchown, modules/makepath,
44467         modules/rmdir, modules/stat: Likewise.
44468
44469 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
44470
44471         Merge from tar.
44472         * lib/argp-help.c (make_hol, hol_append): Don't assume that
44473         SIZE_MAX is a valid preprocessor constant.
44474         (__argp_basename): Change from "#ifndef _LIBC"
44475         to "#ifndef __argp_short_program_name", so that
44476         we don't compile these functions for tar.
44477
44478         More merges from coreutils.
44479         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
44480         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
44481         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
44482         * lib/addext.c: Remove; no longer needed.
44483         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
44484         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
44485         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
44486         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
44487         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
44488         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
44489         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
44490         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
44491         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
44492         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
44493         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
44494         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
44495         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
44496         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
44497         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
44498         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
44499         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
44500         Import changes from coreutils.
44501
44502 2004-08-05  Simon Josefsson  <jas@extundo.com>
44503
44504         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
44505
44506 2004-08-05  Simon Josefsson  <jas@extundo.com>
44507
44508         * m4/getsubopt.m4: New file.
44509
44510 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
44511
44512         Merge from coreutils.
44513
44514         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
44515         * m4/getcwd-path-max.m4: New files.
44516
44517         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
44518         FILESYSTEM_PREFIX_LEN ->
44519         FILE_SYSTEM_PREFIX_LEN.
44520         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
44521         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
44522         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
44523         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
44524
44525         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
44526         prerequisite modules now handle the DOS stuff.
44527         Don't check for unistd.h.
44528
44529 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
44530
44531         Merge from coreutils.
44532
44533         * lib/.gdb-history: Remove; this doesn't belong here.
44534
44535         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
44536         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
44537         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
44538         * lib/getcwd.c: New files.
44539
44540         * lib/dirname.h: Include <stdbool.h>.
44541         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
44542         for consistency with POSIX terminology.  All uses changed.
44543         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
44544         (strip_trailing_slashes): Use bool for booleans.
44545         * lib/stripslash.c (strip_trailing_slashes): Likewise.
44546
44547         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
44548         sometimes returns a positive errno value even when it succeeds.
44549         (print_errno_message) [!LIBC]: Fall back on strerror if
44550         __strerror_r fails.
44551
44552         * lib/path-concat.c (mempcpy): Don't define if a system header defines
44553         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
44554         (longest_relative_suffix): New function.
44555         (path_concat): Use it.  Assume first argument is not NULL.
44556         Port to DOS.  Omit redundant separators.
44557         Report an error instead of returning NULL.
44558         Use mempcpy instead of memcpy.
44559         (xpath_concat): Remove: not declared or used.
44560
44561         * lib/same.h: Include <stdbool.h>
44562         (same_name): Return bool, not int.
44563         * lib/same.c (same_name): Likewise.
44564         (errno): Don't declare; we assume C89 or better now.
44565
44566         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
44567         if not already defined.
44568
44569         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
44570         * lib/dup-safer.c (errno): Likewise.
44571
44572 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
44573
44574         Merge from coreutils.
44575         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
44576         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
44577         * modules/path-concat: Don't depend on strdup.
44578
44579 2004-08-03  Simon Josefsson  <jas@extundo.com>
44580
44581         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
44582         * lib/progname.h: Don't include stdbool.h.
44583
44584 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
44585
44586         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
44587         * MODULES.html.sh (func_all_modules): Remove fatal.
44588
44589 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
44590
44591         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
44592
44593 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
44594
44595         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
44596         working.
44597
44598 2004-08-02  Simon Josefsson  <jas@extundo.com>
44599
44600         * lib/getsubopt.h: New file, with comments from Bruno Haible.
44601         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
44602         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
44603
44604 2004-08-01  Simon Josefsson  <jas@extundo.com>
44605
44606         * lib/xgetdomainname.c: Include stdlib.h, for free().
44607
44608 2004-07-19  Bruno Haible  <bruno@clisp.org>
44609
44610         * MODULES.html.sh (func_all_modules): Add dummy.
44611
44612 2004-07-16  Simon Josefsson  <jas@extundo.com>
44613
44614         * modules/dummy: New file.
44615
44616 2004-07-16  Simon Josefsson  <jas@extundo.com>
44617
44618         * lib/dummy.c: New file.
44619
44620 2004-07-16  Bruno Haible  <bruno@clisp.org>
44621
44622         * lib/backupfile.h: Add extern "C" for C++.
44623         * lib/closeout.h: Likewise.
44624         * lib/copy-file.h: Likewise.
44625         * lib/findprog.h: Likewise.
44626         * lib/full-write.h: Likewise.
44627         * lib/pathname.h: Likewise.
44628         * lib/progname.h: Likewise.
44629         * lib/stpcpy.h: Likewise.
44630         * lib/stpncpy.h: Likewise.
44631         * lib/strcase.h: Likewise.
44632         * lib/strstr.h: Likewise.
44633         * lib/xalloc.h: Likewise.
44634
44635         * lib/mbswidth.h: Add extern "C" for C++.
44636         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
44637
44638 2004-07-13  Robert Millan  <robertmh@gnu.org>
44639
44640         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
44641
44642 2004-07-09  Simon Josefsson  <jas@extundo.com>
44643
44644         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
44645         failed without this.)
44646
44647 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44648
44649         * modules/chown (Files): Add lib/fchown-stub.c, since
44650         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
44651
44652 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44653
44654         * lib/fchown-stub.c: New file.
44655
44656 2004-06-24  Jim Meyering  <jim@meyering.net>
44657
44658         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
44659
44660 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
44661
44662         * modules/argz: Omit "#include".
44663
44664         * MODULES.html.sh (func_all_modules): Add calloc, to match
44665         2004-06-01 addition of calloc module.
44666
44667 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
44668
44669         * m4/argz.m4: New file, which is autoupdated from libtool.
44670
44671 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
44672
44673         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
44674         libtool.
44675
44676 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
44677
44678         * config/srclist-update: Don't insist on "USA." before the
44679         close-comment, as libtool omits the period and puts the */ on a
44680         separate line.
44681         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
44682         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
44683
44684 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
44685
44686         * modules/argz: New file.
44687         * MODULES.html.sh (func_all_modules): Add argz.
44688
44689 2004-06-12  Jim Meyering  <jim@meyering.net>
44690         and  Paul Eggert  <eggert@cs.ucla.edu>
44691
44692         * modules/hash (Files): Add lib/xalloc.h.
44693         * modules/pipe (Depends-on): Add wait-process.
44694         * modules/stat (Depends-on): Add xalloc.
44695         * modules/userspec (Files): Add lib/userspec.h.
44696         * modules/xstrto
44697
44698         Upgrade from gettext-0.13.
44699         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
44700         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
44701         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
44702
44703 2004-06-10  Jim Meyering  <jim@meyering.net>
44704
44705         * lib/calloc.c: New file.
44706
44707 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
44708
44709         * lib/getdate.y (yylex): Allow space between sign and number.
44710         Problem reported by Dan Jacobson.
44711
44712 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
44713
44714         Merge from coreutils CVS.
44715
44716         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
44717         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
44718         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
44719         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
44720         xstrtol.m4: Fix copyright date and/or serial number.
44721
44722         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
44723         See if we need an fchown replacement.
44724         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
44725         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
44726         and use the replacement function if we detect either defect.
44727
44728         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
44729         gl_UTIMECMP.
44730
44731 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
44732         and  Jim Meyering  <jim@meyering.net>
44733
44734         Merge from coreutils CVS.
44735
44736         * lib/stat-macros.h: New file, with contents from file-type.h
44737         and coreutils' system.h.
44738         * lib/file-type.c: Include "stat-macros.h".
44739         * lib/file-type.h (file_type): Move all macro definitions to new file,
44740         stat-macros.h.
44741
44742         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
44743         Wrap old code with this conditional.
44744         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
44745         function that does not dereference symlinks.
44746         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
44747
44748         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
44749         dependency problems.
44750         (xreadlink): Accept new arg SIZE, for efficiency.
44751         All decls and uses changed.
44752         * lib/xreadlink.h: Include <stddef.h>, for size_t.
44753
44754         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
44755         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
44756
44757         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
44758         sysexits.h.
44759
44760 2004-06-01  Jim Meyering  <jim@meyering.net>
44761
44762         * m4/calloc.m4: New file.
44763
44764 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
44765
44766         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
44767         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
44768         Also, fix a typo in a diagnostic.
44769
44770 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
44771
44772         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
44773         or AC_FUNC_REALLOC.
44774
44775 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
44776
44777         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
44778         macros to be defined.
44779         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
44780         the allocator returns NULL because the requested size is zero.
44781
44782 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
44783
44784         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
44785         var.  Add comment explaining why libc still defines it.  This
44786         merges the following patch from glibc:
44787         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
44788
44789 2004-05-20  Andreas Schwab  <schwab@suse.de>
44790
44791         * m4/free.m4: Replace free if it not known to work, not the other
44792         way round.
44793
44794 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
44795
44796         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
44797         present in glibc since revision 1.1 of this file.
44798         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
44799         obstack_alignment_mask, obstack_alloc, obstack_base,
44800         obstack_blank, obstack_blank_fast, obstack_chunk_size,
44801         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
44802         obstack_grow0, obstack_init, obstack_int_grow,
44803         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
44804         obstack_next_free, obstack_object_size, obstack_ptr_grow,
44805         obstack_ptr_grow_fast, obstack_room): Remove declarations of
44806         nonexistent functions.
44807
44808 2004-05-18  Karl Berry  <karl@gnu.org>
44809
44810         * config/srclist.txt: break link for vasnprintf.c.
44811
44812 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
44813
44814         Port obstack to the AS/400, where pointers are 16 bytes wide and
44815         you cannot cast an integer to a valid pointer.  This patch is
44816         currently waiting to be integrated into glibc; see
44817         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
44818
44819         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
44820         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
44821         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
44822         (struct obstack): temp member is now a union of a pointer and
44823         an integer, instead of an integer.  All integer uses changed.
44824         This does not affect the physical layout of struct obstack,
44825         except on hosts (like the AS/400) where the size or alignment of
44826         void * is greater than that of ptrdiff_t.
44827         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
44828         __STDC__)]: Store temporary in pointer member of union, not
44829         integer member.
44830         * lib/obstack.c: Include <stddef.h>, for offsetof.
44831         (struct fooalign): Remove; it doesn't need a name.
44832         (union fooround): Change double to long double, and add void *.
44833         (DEFAULT_ALIGNMENT): Use offsetof to compute.
44834         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
44835         not a macro.  Hence the values are always int; so remove all
44836         casts-to-int in uses.
44837
44838 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
44839
44840         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
44841         we can get this patch merged into glibc.
44842
44843 2004-05-17  Derek R. Price  <derek@ximbiot.com>
44844             Paul Eggert  <eggert@cs.ucla.edu>
44845
44846         * m4/argp: Depend on alloca.
44847
44848 2004-05-17  Derek R. Price  <derek@ximbiot.com>
44849             Paul Eggert  <eggert@cs.ucla.edu>
44850
44851         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
44852         freecoding.
44853
44854 2004-05-17  Bruno Haible  <bruno@clisp.org>
44855
44856         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
44857         precision that consists of a '.' followed by an empty digit string.
44858         Patch by Tor Lillqvist <tml@iki.fi>.
44859
44860 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
44861
44862         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
44863         for backward compatibility with older code.  We need our own
44864         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
44865         it under some other name, and our alloca.h will define it.
44866
44867 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
44868             Derek Price  <derek@ximbiot.com>
44869
44870         * lib/alloca.c: Include <alloca.h>, to get our interface.
44871         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
44872         include <alloca.h> first.  Use C89 prototype for alloca; this
44873         requires including <stddef.h> for size_t.  Use extern "C" if C++.
44874         Use #elif for simplicity, since we can assume C89 now.
44875         Don't try to source the system alloca.h since it will not be found
44876         and to prevent recursively including its replacement.
44877         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
44878         * lib/regex.c: Likewise.
44879
44880 2004-05-16  Derek Price  <derek@ximbiot.com>
44881             Paul Eggert  <eggert@cs.ucla.edu>
44882
44883         getline cleanup.  This changes the getndelim2 API: both order of
44884         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
44885         no delimiter).
44886
44887         * lib/getline.c: Don't include stddef.h or stdio.h, since our
44888         interface does that.
44889         (getline): Always use getdelim, so that we don't have two
44890         copies of this code.
44891         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
44892         if available.
44893         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
44894         (GETNDELIM2_MAXIMUM): New macro.
44895         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
44896         instead of the old practice of delim2==0.  All callers changed.
44897         Return -1 on overflow, instead of returning junk.
44898         Do not set *linesize unless allocation succeeds.
44899         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
44900         that we include sys/types.h.
44901         * lib/getnline.h: Likewise.
44902         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
44903         (getndelim2): Reorder arguments.
44904         * lib/getnline.c (getnline, getndelim):
44905         Don't discard the NMAX argument.
44906         (getnline): Invoke getndelim, to avoid code duplication.
44907         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
44908         of (size_t) -1 by callers of the getnline family.
44909
44910 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
44911
44912         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
44913         Check for gettimeofday.
44914         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
44915         Check for settimeofday, stime.
44916
44917 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
44918
44919         * lib/nanosleep.c (suspended): Change its type from int to
44920         sig_atomic_t volatile.
44921         (first_call): Make it private to rpl_nanosleep, and have it
44922         be zero initially as that's a bit faster.
44923         (my_usleep): Round up fractional times instead of truncating them,
44924         as this is the usual meaning for 'sleep'.
44925
44926         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
44927         doesn't work.
44928         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
44929         (ENOSYS): Define if not defined.
44930         (settime): Fall back on stime if it exists and settimeofday fails.
44931         But don't bother with fallbacks if a method fails with errno == EPERM.
44932
44933 2004-05-11  Jim Meyering  <jim@meyering.net>
44934
44935         Prior to this change, the save_cwd caller required read access to the
44936         current directory on most systems (ones with the fchdir function).
44937
44938         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
44939         fails, try write-only, and finally, resort to using xgetcwd.
44940
44941 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
44942
44943         * lib/obstack.c, obstack.h: Import changes from libc.
44944
44945 2004-04-28  Bruno Haible  <bruno@clisp.org>
44946
44947         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
44948         also implicitly appends .exe to executables.
44949         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
44950         accepts Windows pathnames.
44951         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
44952         Treat Cygwin like Windows, since it now accepts Windows pathnames.
44953         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
44954         Treat Cygwin like Windows, since it now accepts Windows pathnames.
44955         Reported by Derek Robert Price <derek@ximbiot.com>.
44956
44957 2004-04-21  Karl Berry  <karl@gnu.org>
44958
44959         * config/srclist.txt (localcharset.c): break sync.
44960
44961 2004-04-20  Paul Eggert  <eggert@twinsun.com>
44962
44963         * m4/host-os.m4: Add a copyright notice.
44964
44965 2004-04-20  Jim Meyering  <jim@meyering.net>
44966
44967         Change UTILS_ to gl_ in AC_DEFINE'd names.
44968         Change utils_- and jm_-prefixed variables, too.
44969         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
44970         UTILS_FUNC_MKDIR_TRAILING_SLASH.
44971         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
44972
44973         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
44974         Don't emit trailing blanks.
44975         Also rename jm_-prefixed variables to have gl_ prefix.
44976
44977         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
44978         Also rename jm_-prefixed variables to have gl_ prefix.
44979
44980         * m4/jm-macros.m4: Reflect the renamings.
44981         * m4/prereq.m4: Likewise.
44982
44983 2004-04-20  Jim Meyering  <jim@meyering.net>
44984
44985         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
44986         memory.
44987
44988 2004-04-20  Jim Meyering  <jim@meyering.net>
44989             Bruno Haible  <bruno@clisp.org>
44990
44991         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
44992         memory when realloc fails.
44993
44994 2004-04-19  Jim Meyering  <jim@meyering.net>
44995
44996         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
44997         now that readutmp.c may call `free (0)'.
44998
44999 2004-04-19  Bruno Haible  <bruno@clisp.org>
45000
45001         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
45002         * m4/inttypes_h.m4: Likewise.
45003         * m4/stdint_h.m4: Likewise.
45004         * m4/intmax_t.m4: Likewise.
45005         * m4/uintmax_t.m4: Likewise.
45006
45007 2004-04-18  Jim Meyering  <jim@meyering.net>
45008
45009         * m4/prereq.m4: Don't forbid jm_ prefix.
45010
45011         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
45012         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
45013         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
45014         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
45015         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
45016         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
45017         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
45018         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
45019         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
45020         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
45021         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
45022         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
45023         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
45024         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
45025         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
45026         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
45027         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
45028         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
45029         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
45030
45031 2004-04-18  Jim Meyering  <jim@meyering.net>
45032
45033         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
45034         failure, don't leak memory and do call END_UTMP_ENT.
45035
45036 2004-04-16  Jim Meyering  <jim@meyering.net>
45037
45038         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
45039         coreutils' stat program.
45040         (gl_PREREQ): Don't require jm_PREREQ_STAT.
45041
45042 2004-04-11  Paul Eggert  <eggert@twinsun.com>
45043
45044         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
45045         C89.
45046         (CHAR_BIT): Remove, since we assume C89.
45047         Include <stdint.h> if available, as per current Autoconf CVS advice.
45048
45049 2004-03-31  Jim Meyering  <jim@meyering.net>
45050
45051         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
45052         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
45053         * m4/xalloc.m4: Likewise.
45054
45055 2004-03-30  Paul Eggert  <eggert@twinsun.com>
45056
45057         Merge from coreutils.
45058
45059         * m4/inttostr.m4: New file.
45060         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
45061         Require AM_STDBOOL_H and gl_TIMESPEC instead.
45062         Require gl_CLOCK_TIME.
45063         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
45064
45065 2004-03-30  Paul Eggert  <eggert@twinsun.com>
45066
45067         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
45068         not bool, to be more consistent with Unix conventions.
45069         Suggested by Bruno Haible.
45070
45071         Merge from coreutils.
45072
45073         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
45074         * lib/umaxtostr.c: New files.
45075
45076         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
45077         the usual <time.h> dance.
45078         (get_date): Change signature to support fractional time stamps.
45079         All callers changed.
45080         * lib/getdate.y: Include "getdate.h" first, as we can now
45081         assume C89 and don't need to worry about 'const'.
45082         Similarly, include "unlocked-io.h" near start, not in middle.
45083         Include <limits.h>.
45084         (textint.value): Use long int rather than int.
45085         (textint.digits): Use size_t rather than int.
45086         (BILLION, LOG10_BILLION): New constants.
45087         (parser_control): New member rel_ns.  Members day_ordinal,
45088         time_zone, month, day, hour, minutes, rel_year, rel_month,
45089         rel_day, rel_hour, rel_minutes, rel_seconds
45090         are now long int, not int.  Member seconds is now struct timespec,
45091         not int.  New member timespec_seen.  Members dates_seen, days_seen,
45092         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
45093         not int.
45094         (%union.intval): Now long int, not int.
45095         New member timespec.
45096         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
45097         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
45098         (spec): Now is a timespec or an item list.
45099         (timespec, items): New nonterminals.
45100         (time, rel, relunit, number, get_date):
45101         Add support for fractional seconds.
45102         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
45103         (gmtime, localtime, mktime): Remove decls; not needed with C89.
45104         (to_hour): First arg is now long int, not int.
45105         (to_year): Returns long int, not int.
45106         Don't treat year -70 like 70.
45107         (tm_diff): Returns long int, not int.
45108         (lookup_word): Use bool instead of int when appropriate.
45109         (yylex): Use size_t for count, not int.
45110         Detect overflow when parsing large integer constants.
45111         Add support for fractions.
45112         (get_date): Make pointers 'const' if possible.
45113         Use more-portable code to detect integer overflow.
45114         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
45115         Don't use ctime; it's not reliable if the year has >4 digits.
45116
45117         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
45118         This is for compatibility with BSD.
45119
45120         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
45121         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
45122         From coreutils' system.h.
45123
45124         * lib/userspec.c: Don't include "posixver.h".
45125         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
45126         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
45127         compatible extension.  Simplify code by removing a boolean int
45128         that was always nonzero if a string was nonnull.
45129
45130 2004-03-30  Jim Meyering  <jim@meyering.net>
45131
45132         Merge from coreutils.
45133
45134         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
45135         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
45136         on some systems one must include <grp.h> before it.
45137         Reported by Christian Krackowizer.
45138
45139 2004-03-30  Jim Meyering  <jim@meyering.net>
45140
45141         Merge from coreutils.
45142
45143         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
45144
45145         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
45146         an empty input stream.
45147
45148         * lib/readtokens.c: Include <stdbool.h>.
45149         (readtoken): Use `size_t' rather than int/long.
45150         All callers adjusted.
45151         Use `bool' rather than `int' where appropriate.
45152         Use memset rather than an explicit loop.
45153         Use x2nrealloc rather than xrealloc.
45154         Allow the use of `\0' as a delimiter.
45155         (readtokens): Likewise.
45156         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
45157
45158 2004-03-30  Jim Meyering  <jim@meyering.net>
45159
45160         * m4/realloc.m4: Remove file, since now it does no more than
45161         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
45162         the `configure.ac' section of module/realloc.
45163         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
45164
45165 2004-03-30  Bruno Haible  <bruno@clisp.org>
45166
45167         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
45168         nonnull.
45169
45170 2004-03-29  Paul Eggert  <eggert@twinsun.com>
45171
45172         Merge changes to getloadavg.c from coreutils and Emacs.
45173
45174         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
45175         Define to an expression, not to the empty string.
45176         Include cloexec.h and xalloc.h.
45177         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
45178         Use set_cloexec_flag rather than rolling our own.
45179         * lib/cloexec.c, lib/cloexec.h: New files.
45180
45181 2004-03-29  Paul Eggert  <eggert@twinsun.com>
45182
45183         * m4/cloexec.m4: New file.
45184
45185 2004-03-18  Paul Eggert  <eggert@twinsun.com>
45186
45187         * lib/getopt.h: Sync with libc CVS.
45188
45189 2004-03-18  Paul Eggert  <eggert@twinsun.com>
45190             Bruno Haible  <bruno@clisp.org>
45191
45192         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
45193         mbswidth.
45194
45195 2004-03-18  Paul Eggert  <eggert@twinsun.com>
45196             Bruno Haible  <bruno@clisp.org>
45197
45198         * lib/mbswidth.h: Include <wchar.h> only if
45199         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
45200         <wchar.h>.
45201         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
45202
45203 2004-03-09  Paul Eggert  <eggert@twinsun.com>
45204
45205         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
45206         Sync with libc CVS.
45207         * lib/getopt_int.h: New file, also synced from libc.
45208
45209 2004-03-09  Paul Eggert  <eggert@twinsun.com>
45210
45211         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
45212         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
45213         Bring back getopt.c, getopt.h, getopt1.c.
45214
45215 2004-03-07  Paul Eggert  <eggert@twinsun.com>
45216
45217         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
45218         All uses changed.  Check for sa_sigaction member; this fixes
45219         a bug first reported by Jason Andrade in
45220         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
45221
45222 2004-03-07  Paul Eggert  <eggert@twinsun.com>
45223
45224         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
45225         '#if' expressions.  Unlike the code it replaces, it does not
45226         depend on (defined _SC_PAGESIZE).  However, it does depend on
45227         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
45228         first reported by Jason Andrade in
45229         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
45230
45231 2004-02-25  Simon Josefsson  <jas@extundo.com>
45232
45233         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
45234
45235 2004-02-25  Simon Josefsson  <jas@extundo.com>
45236
45237         * lib/strdup.h: New file.
45238         * lib/strdup.c: Include it.
45239         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
45240         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
45241
45242 2004-02-23  Karl Berry  <karl@gnu.org>
45243
45244         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
45245         (from fencepost.gnu.org:/gd/gnuorg).
45246
45247 2004-02-23  Karl Berry  <karl@gnu.org>
45248
45249         * config/srclistvars.sh (GNUORG) [karl]: redefine.
45250         * config/srclist.txt: add maintain/standards documents.
45251
45252 2004-02-18  Bruno Haible  <bruno@clisp.org>
45253
45254         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
45255         Reported by Derek Robert Price <derek@ximbiot.com>.
45256
45257 2004-02-16  Karl Berry  <karl@gnu.org>
45258
45259         * config/mkinstalldirs, install-sh: update from automake.
45260
45261 2004-02-06  Karl Berry  <karl@gnu.org>
45262
45263         * m4/po.m4: update from gettext 0.14.1.
45264
45265 2004-02-06  Karl Berry  <karl@gnu.org>
45266
45267         * lib/config.charset: update from gettext 0.14.1.
45268
45269 2004-02-05  Paul Eggert  <eggert@twinsun.com>
45270
45271         Add comments and code, prompted by suggestions from Bruno Haible
45272         for sh-quote.
45273         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
45274         describing the enum quoting_style values.
45275         * lib/quotearg.c (quotearg_alloc): New function.
45276         (quotearg_buffer_restyled): Treat lone { and } as special.
45277         Treat = as special.  Work around bug with older shells
45278         that "see" a '\' that is really the 2nd byte of a multibyte char.
45279         Quote empty string with shell_quoting_style.
45280
45281 2004-02-03  Bruno Haible  <bruno@clisp.org>
45282
45283         * m4/pipe.m4: New file, from GNU gettext.
45284
45285 2004-02-03  Bruno Haible  <bruno@clisp.org>
45286
45287         * lib/pipe.h: New file, from GNU gettext.
45288         * lib/pipe.c: New file, from GNU gettext.
45289
45290 2004-01-27  Bruno Haible  <bruno@clisp.org>
45291
45292         * m4/execute.m4: New file, from GNU gettext.
45293
45294 2004-01-27  Bruno Haible  <bruno@clisp.org>
45295
45296         * lib/execute.h: New file, from GNU gettext.
45297         * lib/execute.c: New file, from GNU gettext.
45298         * lib/w32spawn.h: New file, from GNU gettext.
45299
45300 2004-01-24  Paul Eggert  <eggert@twinsun.com>
45301
45302         Merge from diffutils.
45303
45304         * lib/file-type.c (file_type): Add typed memory objects.
45305         * lib/file-type.h (S_TYPEISTMO): New macro.
45306
45307         * lib/c-stack.h (c_stack_action): Remove argv argument.
45308         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
45309         (die): Don't calculate message unless segv_action returns.
45310         (get_stack_location, min_address_from_argv, max_address_from_argv,
45311         volatile stack_base, volatile_stack_size): Remove.
45312         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
45313         that every segmentation violation is a stack overflow.  (Ouch!)
45314         See Debian bug 136249 (still outstanding) for more info about why
45315         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
45316
45317 2004-01-24  Paul Eggert  <eggert@twinsun.com>
45318
45319         Exit-status fix from coreutils.
45320
45321         Use exit_failure consistently in place of EXIT_FAILURE,
45322         so that program exit statuses are consistent on failure.
45323
45324         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
45325         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
45326         * lib/argmatch.h: Comment fix to match the above.
45327         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
45328         Now a macro referring to exit_failure, instead of a separate
45329         variable.  Include "exitfail.h" to get it.
45330         * lib/xstrtol.h: Include "exitfail.h".
45331         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
45332
45333         * lib/long-options.c (parse_long_options): Use prototype
45334         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
45335         for clarity.
45336
45337 2004-01-21  Jim Meyering  <jim@meyering.net>
45338
45339         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
45340         so as not to conflict with a different-sized __mktime_internal
45341         function in GNU libc.
45342         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
45343         Problem building statically-linked `ls' reported by Michael Brunnbauer.
45344
45345 2004-01-20  Karl Berry  <karl@gnu.org>
45346
45347         * config/config.guess: update from config.
45348
45349         * config/srclistvars.sh: GNUWWWLICENSES for karl.
45350
45351 2004-01-20  Bruno Haible  <bruno@clisp.org>
45352
45353         Safer stack allocation.
45354         * lib/setenv.c: Include allocsa.h.
45355         (alloca): Remove fallback definition.
45356         (freea): Remove macro.
45357         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
45358         instead of freea.
45359
45360 2004-01-20  Bruno Haible  <bruno@clisp.org>
45361
45362         * m4/eealloc.m4: New file, from GNU gettext.
45363
45364 2004-01-20  Bruno Haible  <bruno@clisp.org>
45365
45366         * m4/allocsa.m4: New file, from GNU gettext.
45367
45368 2004-01-20  Bruno Haible  <bruno@clisp.org>
45369
45370         * lib/xallocsa.h: New file, from GNU gettext.
45371         * lib/xallocsa.c: New file, from GNU gettext.
45372
45373 2004-01-20  Bruno Haible  <bruno@clisp.org>
45374
45375         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
45376
45377 2004-01-20  Bruno Haible  <bruno@clisp.org>
45378
45379         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
45380         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
45381         specially.
45382
45383 2004-01-20  Bruno Haible  <bruno@clisp.org>
45384
45385         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
45386         patch.
45387
45388 2004-01-20  Bruno Haible  <bruno@clisp.org>
45389
45390         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
45391
45392 2004-01-20  Bruno Haible  <bruno@clisp.org>
45393
45394         * lib/eealloc.h: New file.
45395
45396 2004-01-20  Bruno Haible  <bruno@clisp.org>
45397
45398         * lib/binary-io.h: Avoid warnings on Cygwin.
45399
45400 2004-01-20  Bruno Haible  <bruno@clisp.org>
45401
45402         * lib/allocsa.h: New file, from GNU gettext.
45403         * lib/allocsa.c: New file, from GNU gettext.
45404
45405 2004-01-18  Karl Berry  <karl@gnu.org>
45406
45407         * doc/gpl.texi, doc/lgpl.texi: new files.
45408
45409 2004-01-18  Karl Berry  <karl@gnu.org>
45410
45411         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
45412         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
45413
45414 2004-01-15  Paul Eggert  <eggert@twinsun.com>
45415
45416         Merge from coreutils.
45417
45418         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
45419         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
45420         (gl_DEFAULT_POSIX2_VERSION): Move
45421         the documentation from 'configure' into 'config.hin',
45422         so that 'configure --help' isn't burdened by it and
45423         we don't have to worry about its formatting there.
45424         Reword the documentation so that it's more succinct
45425         and can be run together into a single paragraph.
45426         * m4/same.m4 (gl_SAME): Check for pathconf.
45427
45428 2004-01-15  Paul Eggert  <eggert@twinsun.com>
45429
45430         Merge from coreutils.
45431
45432         * lib/posixver.c: Include posixver.h.
45433
45434         * lib/same.c: Include <stdbool.h>, <limits.h>.
45435         (_POSIX_NAME_MAX): Define if not defined.
45436         (MIN): New macro.
45437         (same_name): If file names are silently truncated, report
45438         that the file names are the same if they are the same after
45439         the silent truncation.
45440
45441         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
45442         conversion function.
45443         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
45444         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
45445         longer needed.
45446
45447 2004-01-15  Jim Meyering  <jim@meyering.net>
45448
45449         Merge from coreutils.
45450
45451         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
45452         if no library is required.
45453         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
45454         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
45455         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
45456         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
45457         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
45458         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
45459         value, $ac_cv_search_crypt, if it's "none required".
45460         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
45461         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
45462         not gl_FUNC_GETLOADAVG.
45463         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
45464         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
45465
45466 2004-01-15  Jim Meyering  <jim@meyering.net>
45467
45468         Merge from coreutils.
45469
45470         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
45471         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
45472         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
45473
45474         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
45475         optional configure-time default.
45476
45477         * lib/version-etc.c (version_etc_copyright): Update copyright date.
45478
45479         * lib/xreadlink.c (xreadlink): Correct outdated comment.
45480
45481 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
45482
45483         Merge from coreutils.
45484
45485         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
45486         value, $ac_cv_search_nanosleep, if it's "none required".
45487
45488 2004-01-14  Paul Eggert  <eggert@twinsun.com>
45489
45490         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
45491         with like-named macro in fnmatch.c.
45492         (EXT): Use an internal constant instead.
45493
45494         Merge fnmatch patches from glibc.
45495         * lib/fnmatch.c (mbsinit): Remove define.
45496         Add libc_hidden_ver (__fnmatch, fnmatch).
45497         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
45498         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
45499
45500 2004-01-14  Karl Berry  <karl@gnu.org>
45501
45502         * config/install-sh: update from automake.
45503
45504 2004-01-13  Karl Berry  <karl@gnu.org>
45505
45506         * config/install-sh: update from automake.
45507
45508 2004-01-09  Karl Berry  <karl@gnu.org>
45509
45510         * config/install-sh: update from automake.
45511
45512 2004-01-05  Karl Berry  <karl@gnu.org>
45513
45514         * config/config.{sub,guess}: update from config.
45515
45516 2003-12-31  Karl Berry  <karl@gnu.org>
45517
45518         * config/depcomp: update from automake.
45519
45520 2003-12-14  Karl Berry  <karl@gnu.org>
45521
45522         * lib/config.charset: update from gettext-runtime.
45523
45524 2003-12-03  Paul Eggert  <eggert@twinsun.com>
45525
45526         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
45527         Bug reported by Alfred M. Szmidt.
45528
45529 2003-12-03  Bruno Haible  <bruno@clisp.org>
45530
45531         * m4/gettext.m4: Upgrade from gettext-0.13.
45532         * m4/po.m4: Upgrade from gettext-0.13.
45533         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
45534         * m4/intmax.m4: New file, from gettext-0.13.
45535         * m4/printf-posix.m4: New file, from gettext-0.13.
45536
45537 2003-11-29  Karl Berry  <karl@gnu.org>
45538
45539         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
45540
45541 2003-11-25  Paul Eggert  <eggert@twinsun.com>
45542             Bruno Haible  <bruno@clisp.org>
45543
45544         * lib/printf-parse.h: Don't include sys/types.h.
45545         (ARG_NONE): New macro.
45546         (char_directive): Change type of *arg_index fields to size_t.
45547         * lib/printf-parse.c: Don't include sys/types.h.
45548         (SSIZE_MAX): Remove macro.
45549         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
45550         Remove unnecessary overflow check.
45551         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
45552         fields.
45553
45554 2003-11-25  Bruno Haible  <bruno@clisp.org>
45555
45556         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
45557
45558 2003-11-25  Bruno Haible  <bruno@clisp.org>
45559
45560         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
45561         gt_TYPE_SSIZE_T.
45562
45563 2003-11-24  Paul Eggert  <eggert@twinsun.com>
45564
45565         * modules/alloca: Remove dependency on xalloc.
45566
45567 2003-11-24  Paul Eggert  <eggert@twinsun.com>
45568
45569         * lib/alloca.c: Remove dependency on xalloc module.
45570         (xalloc_die): Remove.
45571         (memory_full) [!defined emacs]: New macro.
45572         [!defined emacs]: Don't include xalloc.h.
45573         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
45574         address arithmetic overflows.  Change datatypes a bit to avoid
45575         unnecessary casts.
45576
45577 2003-11-22  Jim Meyering  <jim@meyering.net>
45578
45579         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
45580         s/size/size_t/.
45581
45582 2003-11-21  Karl Berry  <karl@gnu.org>
45583
45584         * config/config.{sub,guess}: update from config.
45585
45586 2003-11-18  Karl Berry  <karl@gnu.org>
45587
45588         * config/config.{sub,guess}: update from config.
45589
45590         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
45591
45592 2003-11-17  Paul Eggert  <eggert@twinsun.com>
45593
45594         * README: Mention that S+T cannot overflow if S is the size of
45595         an existing object and T is sufficiently small.
45596
45597 2003-11-17  Jim Meyering  <jim@meyering.net>
45598
45599         On systems without utime and without a utimes function capable of
45600         dealing with a NULL struct utimbuf* argument, this utime replacement
45601         could -- in unusual circumstances -- leak a file descriptor.
45602         * lib/utime.c: Include <unistd.h> and <errno.h>.
45603         (utime_null): Be sure to close `fd' and to preserve errno.
45604         Reported by Geoff Collyer via Arnold Robbins.
45605
45606 2003-11-17  Bruno Haible  <bruno@clisp.org>
45607
45608         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
45609         (Depends-on): Add xsize.
45610
45611 2003-11-17  Bruno Haible  <bruno@clisp.org>
45612
45613         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
45614
45615 2003-11-17  Bruno Haible  <bruno@clisp.org>
45616
45617         * lib/vasnprintf.c (alloca): Remove fallback definition.
45618         (freea): Remove definition.
45619         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
45620         Reported by Paul Eggert.
45621
45622 2003-11-16  Paul Eggert  <eggert@twinsun.com>
45623             Bruno Haible  <bruno@clisp.org>
45624
45625         Protect against address arithmetic overflow.
45626         * lib/printf-args.h: Include stddef.h.
45627         (arguments): Change type of field 'count' to size_t.
45628         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
45629         'unsigned int' where appropriate.
45630         * lib/printf-parse.h: Include sys/types.h.
45631         (char_directive): Change type of *arg_index fields to ssize_t.
45632         (char_directives): Change type of fields 'count', max_*_length to
45633         size_t.
45634         * lib/printf-parse.c: Include sys/types.h and xsize.h.
45635         (SSIZE_MAX): Define fallback value.
45636         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
45637         instead of 'int' where appropriate. Check a_allocated, d_allocated
45638         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
45639         * lib/vasnprintf.c: Include xsize.h.
45640         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
45641         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
45642         overflow. Avoid wraparound when converting a width or precision from
45643         decimal to binary.
45644
45645 2003-11-16  Bruno Haible  <bruno@clisp.org>
45646
45647         Update from GNU gettext.
45648         * lib/printf-parse.c: Generalize to it can be compiled for wide
45649         strings.
45650         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
45651         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
45652         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
45653         SNPRINTF): New macros.
45654         Don't include <alloca.h> if the file is used inside libintl.
45655         (local_wcslen): New function, for Solaris 2.5.1.
45656         (VASNPRINTF): Use it instead of wcslen.
45657
45658 2003-11-16  Bruno Haible  <bruno@clisp.org>
45659
45660         * lib/xsize.h (xmax): New function.
45661         (xsum, xsum3, xsum4): Declare as "pure" functions.
45662
45663 2003-11-12  Paul Eggert  <eggert@twinsun.com>
45664
45665         * modules/xalloc (Files): Undo latest change, since xalloc.h
45666         no longer needs SIZE_MAX or PTRDIFF_MAX.
45667
45668 2003-11-12  Paul Eggert  <eggert@twinsun.com>
45669
45670         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
45671         gl_PTRDIFF_MAX.
45672
45673 2003-11-12  Paul Eggert  <eggert@twinsun.com>
45674
45675         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
45676         "return", to pacify some unknown compiler.  Problem reported
45677         by Joerg Schilling.
45678
45679 2003-11-12  Paul Eggert  <eggert@twinsun.com>
45680
45681         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
45682         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
45683         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
45684         heuristic is just as accurate as far as we know, and it removes a
45685         dependency on size_max.m4 and ptrdiff_max.m4.
45686
45687 2003-11-11  Bruno Haible  <bruno@clisp.org>
45688
45689         * modules/xsize (Files): Add m4/size_max.m4.
45690         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
45691
45692 2003-11-11  Bruno Haible  <bruno@clisp.org>
45693
45694         * m4/size_max.m4: New file.
45695         * m4/ptrdiff_max.m4: New file.
45696         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
45697         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
45698         (gl_XALLOC): Invoke it.
45699
45700 2003-11-11  Bruno Haible  <bruno@clisp.org>
45701
45702         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
45703         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
45704         defined.
45705
45706 2003-11-10  Paul Eggert  <eggert@twinsun.com>
45707
45708         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
45709         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
45710         rejected some allocations of exactly SIZE_MAX - 2 bytes.
45711         From Bruno Haible.
45712         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
45713         not (size_t) -1, since it's defined here.
45714
45715 2003-11-09  Karl Berry  <karl@gnu.org>
45716
45717         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
45718
45719 2003-11-06  Paul Eggert  <eggert@twinsun.com>
45720
45721         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
45722         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
45723         Reject sizes of exactly SIZE_MAX bytes.
45724         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
45725         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
45726
45727 2003-11-05  Bruno Haible  <bruno@clisp.org>
45728
45729         * lib/xsize.h: Include limits.h, to avoid a possible collision with
45730         SIZE_MAX defined in <limits.h> on Solaris.
45731
45732 2003-11-04  Jim Meyering  <jim@meyering.net>
45733
45734         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
45735         variable names, rather than @VAR@.
45736         * modules/poll: Likewise.
45737
45738 2003-11-04  Bruno Haible  <bruno@clisp.org>
45739
45740         * modules/xsize: New file.
45741         * modules/linebreak: Depend on xsize.
45742         * MODULES.html.sh (func_all_modules): Add xsize.
45743
45744 2003-11-04  Bruno Haible  <bruno@clisp.org>
45745
45746         * m4/xsize.m4: New file.
45747
45748 2003-11-04  Bruno Haible  <bruno@clisp.org>
45749
45750         * lib/xsize.h: New file.
45751         * lib/linebreak.c: Include xsize.h.
45752         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
45753         argument for overflow.
45754         Suggested by Paul Eggert.
45755
45756 2003-11-03  Karl Berry  <karl@gnu.org>
45757
45758         * config/config.{guess,sub}: update from config.
45759
45760 2003-11-03  Jim Meyering  <jim@meyering.net>
45761
45762         * modules/userspec (lib_SOURCES): Add userspec.h.
45763         (Include): Add "userspec.h".
45764         Improve description.
45765
45766 2003-11-03  Jim Meyering  <jim@meyering.net>
45767
45768         * lib/userspec.c: Include "userspec.h".
45769         * lib/userspec.h: New file.
45770
45771 2003-11-03  Bruno Haible  <bruno@clisp.org>
45772
45773         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
45774
45775 2003-11-03  Bruno Haible  <bruno@clisp.org>
45776
45777         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
45778         available, to avoid (extremely rare) race condition.
45779         Suggested by Paul Eggert.
45780
45781 2003-11-02  Karl Berry  <karl@gnu.org>
45782
45783         * config/srclist.txt (vasprintf.c): sync broken, sigh.
45784
45785 2003-10-31  Paul Eggert  <eggert@twinsun.com>
45786
45787         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
45788         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
45789         (read_filesystem_list): Set and use me_type_malloced.
45790         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
45791         whatever the type happens to be), for brevity and consistency.
45792         Check for size calculation overflow on Alphas running OSF/1.
45793
45794 2003-10-31  Jim Meyering  <jim@meyering.net>
45795
45796         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
45797
45798         * lib/linebuffer.c: Include <string.h> for declaration of memset.
45799
45800 2003-10-30  Paul Eggert  <eggert@twinsun.com>
45801             Bruno Haible  <bruno@clisp.org>
45802
45803         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
45804         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
45805
45806 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
45807
45808         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
45809         netbsd*-gnu*.  Suggested by Robert Millan.
45810
45811 2003-10-29  Paul Eggert  <eggert@twinsun.com>
45812
45813         * modules/group-member: Depend on stdbool.
45814
45815 2003-10-29  Paul Eggert  <eggert@twinsun.com>
45816
45817         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
45818
45819 2003-10-29  Paul Eggert  <eggert@twinsun.com>
45820
45821         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
45822         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
45823         after the 'gnu' in these cases.  This fixes some bugs in the
45824         previous change, and is based on suggestions by Robert Millan.
45825
45826 2003-10-29  Paul Eggert  <eggert@twinsun.com>
45827
45828         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
45829         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
45830         no longer needed.
45831         * lib/quotearg.c (quotearg_n_options): Use it.
45832         * lib/group-member.c: Include <stdbool.h>.
45833         (free_group_info): Arg is now const *; don't free arg.
45834         (get_group_info): Now returns bool and accepts struct group_info *,
45835         rather than returning a malloc'ed struct group_info *.
45836         All uses changed.  Check for overflow in internal size calculation.
45837
45838         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
45839         rather than xmalloc/xrealloc.
45840         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
45841         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
45842         conformance bug: the old code used a pointer after freeing the
45843         storage that it addressed.
45844         * lib/hash.c (hash_initialize): Simplify the code by using
45845         xalloc_oversized rather than doing it by hand.
45846         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
45847         the buffer preserved.  Use free and xmalloc instead.
45848         * lib/quotearg.c (quotearg_n_options): Likewise.
45849         Use a simpler test for size overflow.  Don't use xalloc_oversized
45850         because unsigned int might be wider than size_t (!); this suggests
45851         that we should switch from unsigned int to size_t for slot numbers.
45852
45853 2003-10-28  Paul Eggert  <eggert@twinsun.com>
45854
45855         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
45856         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
45857         NetBSD kernels.  Requested by Richard Stallman.
45858
45859 2003-10-27  Paul Eggert  <eggert@twinsun.com>
45860
45861         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
45862         to allocate the returned structure.  Do not allocate a subarray,
45863         as x2nrealloc will do that.
45864         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
45865         instead of xnrealloc.
45866         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
45867
45868 2003-10-27  Bruno Haible  <bruno@clisp.org>
45869
45870         * lib/stdbool_.h: Better support for BeOS.
45871
45872 2003-10-26  Paul Eggert  <eggert@twinsun.com>
45873
45874         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
45875         now uses inline.
45876
45877 2003-10-26  Paul Eggert  <eggert@twinsun.com>
45878
45879         * lib/xalloc.h (xalloc_oversized): New static inline function, for
45880         callers that want to do their own size-overflow checking.  Include
45881         <stdbool.h>, since xalloc_oversized returns bool.
45882         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
45883         to use xalloc_oversized.
45884
45885         Add two functions x2realloc, x2nrealloc, for programs that grow
45886         arrays dynamically by doubling their sizes.
45887         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
45888         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
45889         New functions.
45890
45891         Port to C99 semantics for 'inline' of external functions.
45892         Bug reported by Bruno Haible.
45893         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
45894         with the old contents of xnmalloc.
45895         (xnmalloc, xmalloc): Use it.
45896         (xnrealloc_inline): New static inline function,
45897         with the old contents of xnrealloc.
45898         (xnrealloc, xrealloc): Use it.
45899
45900         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
45901         that.
45902
45903 2003-10-26  Karl Berry  <karl@gnu.org>
45904
45905         * config/srclist.txt (COPYING.DOC): no longer available from
45906         /gd/gnuorg; don't know where the ultimate source is.
45907
45908 2003-10-25  Paul Eggert  <eggert@twinsun.com>
45909
45910         Fix several address-calculation bugs in the hash modules,
45911         plus some minor code cleanup.
45912
45913         * lib/hash.h: Include <stdbool.h>, for bool.
45914         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
45915         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
45916         hash_get_n_entries, hash_get_max_bucket_length,
45917         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
45918         hash_rehash): Use size_t rather than unsigned.
45919         * lib/hash.c (struct hash_table, hash_get_n_buckets,
45920         hash_get_n_buckets_used, hash_get_n_entries,
45921         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
45922         hash_get_entries, hash_do_for_each, hash_string, is_prime,
45923         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
45924         Likewise.
45925         (SIZE_MAX): Define if not defined.
45926         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
45927         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
45928         hash_print):
45929         Use const * when possible.
45930         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
45931         (check_tuning): Fix bug: if tuning parameters were very close to
45932         0 or 1, rounding errors could have caused subscript violations.
45933         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
45934         (hash_initialize): Add 'fail:' label
45935         to free table and return NULL, and use it to simplify code.
45936         Use calloc rather than clearing the storage ourself.
45937         (hash_initialize, hash_rehash): Check for arithmetic overflow in
45938         buffer size calculations.
45939         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
45940         Include <stddef.h>, for size_t.
45941         * lib/hash-pjw.c (hash_pjw): Likewise.
45942         Switch to method described by Bruno Haible.
45943         Include <limits.h>, for CHAR_BIT.
45944         (SIZE_BITS): New macro.
45945
45946 2003-10-23  Paul Eggert  <eggert@twinsun.com>
45947
45948         * m4/getline.m4 (AM_FUNC_GETLINE):
45949         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
45950         hosts.  Problem reported by Derek Robert Price in
45951         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
45952         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
45953         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
45954
45955 2003-10-21  Paul Eggert  <eggert@twinsun.com>
45956
45957         * lib/getndelim2.c (getndelim2): When size calculation overflows,
45958         ceiling the allocation at NMAX bytes rather than silently
45959         discarding input bytes before NMAX is reached.  This makes
45960         a difference only if NMAX exceeds SIZE_MAX / 2.
45961
45962         * lib/obstack.c: Merge from glibc.
45963         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
45964         Add libc_hidden_def (_obstack_newchunk).
45965         (_obstack_free) [! defined _LIBC]: Remove.
45966         [defined _LIBC]: Make a strong alias from obstack_free, rather than
45967         a clone of the function body.
45968         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
45969         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
45970
45971         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
45972         glibc.
45973         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
45974         arg to memcpy.
45975
45976         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
45977         (obstack_ptr_grow_fast, obstack_int_grow_fast):
45978         Don't use lvalue casts, as GCC plans to remove support for them
45979         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
45980         was also present in the non-GCC version, indicating that this
45981         code had always been buggy and had never been widely used.
45982         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
45983         Use the fast variant of each macro, rather than copying the
45984         definiens of the fast variant; that way, we'll be more likely to
45985         catch future bugs in the fast variants.
45986
45987 2003-10-20  Bruno Haible  <bruno@clisp.org>
45988
45989         * modules/wait-process: New file.
45990         * MODULES.html.sh (func_all_modules): Add wait-process.
45991
45992 2003-10-20  Bruno Haible  <bruno@clisp.org>
45993
45994         * m4/wait-process.m4: New file.
45995
45996 2003-10-20  Bruno Haible  <bruno@clisp.org>
45997
45998         * lib/wait-process.h: New file, from GNU gettext.
45999         * lib/wait-process.c: New file, from GNU gettext.
46000
46001 2003-10-19  Jim Meyering  <jim@meyering.net>
46002
46003         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
46004         HPUX 10.20.
46005
46006 2003-10-18  Karl Berry  <karl@gnu.org>
46007
46008         * config/config.guess: update from config.
46009
46010 2003-10-16  Paul Eggert  <eggert@twinsun.com>
46011
46012         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
46013         (getgroups): First arg is int, not size_t.
46014         Don't let 'free' mangle errno.
46015
46016 2003-10-16  Paul Eggert  <eggert@twinsun.com>
46017
46018         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
46019
46020 2003-10-16  Karl Berry  <karl@gnu.org>
46021
46022         * config/config.{guess,sub}: update from config.
46023
46024 2003-10-16  Jim Meyering  <jim@meyering.net>
46025
46026         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
46027         memcpy.
46028
46029 2003-10-15  Paul Eggert  <eggert@twinsun.com>
46030
46031         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
46032         (SIZE_MAX): Remove.
46033         (new_exclude, add_exclude_file): Initial size no longer needs to
46034         be a power of 2.
46035         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
46036         our own address arithmetic overflow checking.
46037
46038         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
46039         (fnmatch): Do not alloca more than 2000 wide characters;
46040         instead, use malloc for large buffers.
46041         Check for address arithmetic overflow, and return -1
46042         with errno set to ENOMEM in that case.
46043         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
46044         (NEW_PATTERN): Do not alloca more than 8000 bytes;
46045         instead, return -1.  Check for address arithmetic overflow.
46046
46047 2003-10-14  Paul Eggert  <eggert@twinsun.com>
46048
46049         Handle invalid suffixes and overflow independently, so that
46050         callers can treat them independently as needed.  Fix some bugs in
46051         suffix handling, e.g., "100k@" was not diagnosed as an invalid
46052         suffix for a human-readable blocksize.  The major caller-visible
46053         change is the addition of a new
46054         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
46055         that both overflow and suffix chars were found.
46056
46057         * lib/human.c (humblock): Don't check separately for invalid suffix
46058         char; that is xstrtoumax's job (now that its bug is fixed).
46059         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
46060         INTMAX_MAX]: New macros.
46061         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
46062         TYPE_MAXIMUM): New macros.
46063         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
46064         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
46065         if overflow occurs, as it's what __strtol does and it's more useful
46066         in practice.
46067         (__xstrtol): If __strtol reports some error other than ERANGE,
46068         reflect it to the caller as LONGINT_INVALID.  If it reports
46069         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
46070         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
46071         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
46072         value.
46073         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
46074         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
46075         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
46076         [defined UINTMAX_MAX]: New macros.
46077
46078 2003-10-14  Bruno Haible  <bruno@clisp.org>
46079
46080         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
46081
46082 2003-10-14  Bruno Haible  <bruno@clisp.org>
46083
46084         * m4/sig_atomic_t: New file, from GNU gettext.
46085         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
46086
46087 2003-10-14  Bruno Haible  <bruno@clisp.org>
46088
46089         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
46090         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
46091         Also use volatile where needed.
46092
46093 2003-10-12  Paul Eggert  <eggert@twinsun.com>
46094
46095         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
46096         Change maintainer from Bruno Haible to 'all'.
46097
46098 2003-10-12  Paul Eggert  <eggert@twinsun.com>
46099
46100         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
46101
46102 2003-10-12  Paul Eggert  <eggert@twinsun.com>
46103
46104         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
46105         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
46106         and define in terms of the other primitives.
46107         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
46108         (SIZE_MAX): Define if not already defined.
46109         (array_size_overflow): New function.
46110         (xalloc_die): Abort instead of exiting if 'error' returns.
46111         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
46112         (xmalloc, xrealloc): Use them.
46113         (xcalloc): Check for address arithmetic overflow.
46114         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
46115         a bit faster than strcpy.
46116
46117 2003-10-10  Simon Josefsson  <jas@extundo.com>
46118
46119         * modules/argp (Depends-on): Add restrict and strcase.
46120
46121 2003-10-10  Simon Josefsson  <jas@extundo.com>
46122
46123         * m4/argp.m4: Add AC_C_INLINE.
46124
46125 2003-10-08  Paul Eggert  <eggert@twinsun.com>
46126
46127         Merge getpass from libc, plus a few fixes.
46128
46129         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
46130         Include <stdbool.h>.
46131         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
46132         __fsetlocking to empty.
46133         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
46134         do include <bits/libc-lock.h>.
46135         Do not include <fcntl.h>; not needed.
46136         [_LIBC]: Include <wchar.h>.
46137         (NOTCANCEL_MODE): New macro.
46138         (flockfile, funlockfile) [_LIBC]: New macros.
46139         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
46140         [!_LIBC]: New macros.
46141         (call_fclose): New function.
46142         (getpass): Use it.  Save tty stream separately; this simplifies the
46143         code and makes it more reliable if stdin happens to equal stdout.
46144         Invoke __fsetlocking on tty.
46145         Handle thread cancellation if needed.
46146         Namespace cleanup (use __tcgetattr, __getline).
46147         Use bool for Booleans.
46148         [USE_IN_LIBIO]: Handle wide streams.
46149         [!_LIBC]: Unconditionally do the fseek, since we don't know what
46150         stream might go where.
46151
46152         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
46153         doesn't have to include <stdio.h> before us.
46154         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
46155         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
46156         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
46157         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
46158         if not declared, so that we can use getpass.c code from libc without
46159         rewriting it.
46160         (flockfile, ftrylockfile, funlockfile): New macros.
46161
46162 2003-10-08  Paul Eggert  <eggert@twinsun.com>
46163
46164         * modules/getpass: Depend on stdbool.
46165
46166 2003-10-08  Paul Eggert  <eggert@twinsun.com>
46167
46168         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
46169
46170 2003-10-07  Karl Berry  <karl@gnu.org>
46171
46172         * config/config.{guess,sub}: update from config.
46173
46174 2003-10-06  Jim Meyering  <jim@meyering.net>
46175             Bruno Haible  <bruno@clisp.org>
46176
46177         This lets translators provide better translations for the
46178         "Written by ..." part of --version output.
46179         * lib/version-etc.h: Include stdarg.h.
46180         (version_etc_copyright): Declare as readonly.
46181         (version_etc): Make this function variadic with a NULL-terminated list
46182         of author name strings.
46183         (version_etc_va): New declaration.
46184         * lib/version-etc.c: Include stdarg.h, stdlib.h.
46185         (version_etc_copyright): Declare as readonly.
46186         (version_etc_va): New function. Provide a different translatable string
46187         for each possible number of authors < 10. Abbreviate when there are 10
46188         authors or more.
46189         (version_etc): Make this function variadic. Call version_etc_va.
46190         Suggestion from Gary V. Vaughan.
46191
46192         * lib/long-options.h (parse_long_options): Change prototype: the
46193         authors string is moved to the end and becomes variadic.
46194         * lib/long-options.c: Include stdarg.h.
46195         (parse_long_options): Make this function variadic, too.
46196         Call version_etc_va, not version_etc.
46197
46198 2003-10-06  Bruno Haible  <bruno@clisp.org>
46199
46200         * modules/version-etc-2: Remove file.
46201         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
46202
46203 2003-10-06  Bruno Haible  <bruno@clisp.org>
46204
46205         * modules/fatal-signal: New file.
46206         * MODULES.html.sh (func_all_modules): Add fatal-signal.
46207
46208 2003-10-06  Bruno Haible  <bruno@clisp.org>
46209
46210         * m4/fatal-signal.m4: New file.
46211         * m4/signalblocking.m4: New file, from GNU gettext.
46212
46213 2003-10-06  Bruno Haible  <bruno@clisp.org>
46214
46215         * lib/version-etc-2.h: Remove file.
46216         * lib/version-etc-2.c: Remove file.
46217
46218 2003-10-06  Bruno Haible  <bruno@clisp.org>
46219
46220         * lib/fatal-signal.h: New file, from GNU gettext.
46221         * lib/fatal-signal.c: New file, from GNU gettext.
46222
46223 2003-10-05  Paul Eggert  <eggert@twinsun.com>
46224
46225         * README: Rework advice for preventing empty .o files.
46226         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
46227         not <sys/types.h>.
46228
46229 2003-10-04  Karl Berry  <karl@gnu.org>
46230
46231         * lib/argp*: update from libc.
46232
46233 2003-10-04  Karl Berry  <karl@gnu.org>
46234
46235         * config/config.{guess,sub}: update from config.
46236
46237 2003-10-02  Bruno Haible  <bruno@clisp.org>
46238
46239         * modules/lchown (Include): Add lchown.h.
46240         * modules/time_r (Include): Use "..." syntax.
46241         * modules/xgetdomainname (Include): Add xgetdomainname.h.
46242
46243 2003-10-01  Simon Josefsson  <jas@extundo.com>
46244
46245         * MODULES.html.sh (func_all_modules): Move gethostname from section
46246         'based on' to section 'lacking' POSIX:2001.
46247
46248 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
46249
46250         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
46251         to output mode on the same stream.
46252
46253 2003-09-29  Paul Eggert  <eggert@twinsun.com>
46254
46255         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
46256         Fix arg typo in previous patch.
46257
46258 2003-09-28  Jim Meyering  <jim@meyering.net>
46259
46260         * lib/error.c: Correct cpp indentation.
46261
46262 2003-09-27  Paul Eggert  <eggert@twinsun.com>
46263
46264         * modules/free: New file.
46265
46266 2003-09-27  Paul Eggert  <eggert@twinsun.com>
46267
46268         * m4/free.m4: New file.
46269
46270 2003-09-27  Paul Eggert  <eggert@twinsun.com>
46271
46272         * lib/minmax.h (MIN, MAX)
46273         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
46274         Omit the special code that used __typeof__, since we worry that
46275         it could be more trouble than it's worth.  See:
46276         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
46277         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
46278
46279         * lib/free.c: New file.
46280
46281 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
46282
46283         Trivial fixes to Makefile.am parts of module listings.
46284         * modules/strstr: Append strstr.h to lib_SOURCES.
46285         * modules/strcase: Likewise, for strcase.h.
46286
46287 2003-09-27  Karl Berry  <karl@gnu.org>
46288
46289         * config/mkinstalldirs: update from automake.
46290
46291 2003-09-26  Paul Eggert  <eggert@twinsun.com>
46292
46293         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
46294         (error_tail): Do not loop, reallocating temporary buffer, since
46295         the output cannot contain more wide characters than the input
46296         contains bytes, the size must be big enough already.  This avoids
46297         one potential size overflow calculation.  Check for size overflow
46298         when calculating temporary buffer size.  Free temporary buffer
46299         when done, if it was allocated with malloc; this plugs a memory
46300         leak.  Remove casts from void * to pointers, that are no longer
46301         needed now that we're assuming C89 or better.
46302
46303         Merge error changes from glibc.
46304
46305         * lib/error.c, error.h: Update copyright notice header to match glibc.
46306         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
46307         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
46308         Disable cancellation while printing error.
46309         * lib/error.h: Prepend __ to parameter names.
46310
46311 2003-09-26  Jim Meyering  <jim@meyering.net>
46312
46313         * lib/error.c (error_tail): Move some declarations
46314         into inner scope where the local variables are used.
46315
46316 2003-09-26  Bruno Haible  <bruno@clisp.org>
46317
46318         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
46319         stpncpy().
46320         Don't define stpncpy through config.h; it's now done through stpncpy.h.
46321
46322 2003-09-26  Bruno Haible  <bruno@clisp.org>
46323
46324         * lib/stpncpy.h (gnu_stpncpy): New declaration.
46325         (stpncpy): Define as alias for gnu_stpncpy.
46326         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
46327
46328 2003-09-25  Simon Josefsson  <jas@extundo.com>
46329
46330         * lib/xgetdomainname.h: New file.
46331         * lib/xgetdomainname.c: New file.
46332
46333 2003-09-25  Simon Josefsson  <jas@extundo.com>
46334             Bruno Haible  <bruno@clisp.org>
46335
46336         * modules/getdomainname: New file.
46337         * modules/xgetdomainname: New file.
46338         * MODULES.html.sh (func_all_modules): Add getdomainname,
46339         xgetdomainname.
46340
46341 2003-09-25  Simon Josefsson  <jas@extundo.com>
46342             Bruno Haible  <bruno@clisp.org>
46343
46344         * m4/getdomainname.m4: New file.
46345
46346 2003-09-25  Simon Josefsson  <jas@extundo.com>
46347             Bruno Haible  <bruno@clisp.org>
46348
46349         * lib/getdomainname.h: New file.
46350         * lib/getdomainname.c: New file.
46351
46352 2003-09-25  Karl Berry  <karl@gnu.org>
46353
46354         * lib/argp-fmtstream.c, argp-help.c: update from libc.
46355
46356 2003-09-25  Karl Berry  <karl@gnu.org>
46357
46358         * config/install-sh: update from automake.
46359
46360 2003-09-25  Bruno Haible  <bruno@clisp.org>
46361
46362         * modules/version-etc-2: New file, from modules/version-etc with
46363         modifications.
46364         * MODULES.html.sh (func_all_modules): Add version-etc-2.
46365
46366 2003-09-25  Bruno Haible  <bruno@clisp.org>
46367
46368         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
46369         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
46370
46371 2003-09-24  Simon Josefsson  <jas@extundo.com>
46372
46373         * modules/xgethostname: Add xgethostname.h.
46374
46375 2003-09-24  Paul Eggert  <eggert@twinsun.com>
46376
46377         * lib/linebuffer.c (freebuffer): Don't free the argument, just
46378         the buffer associated with the argument.  Bug reported by
46379         Simon Josefsson.
46380
46381 2003-09-24  Paul Eggert  <eggert@twinsun.com>
46382
46383         * README: Document assumptions that 'int' is at least 32 bits
46384         wide, that integer arithmetic is 2's complement without overflow,
46385         that there are no holes in integer values, that adding sizes of
46386         two nonoverlapping objects can't overflow, and that all-bits-zero
46387         yields scalar zero.  Fix spelling and capitalization typos.
46388
46389 2003-09-19  Karl Berry  <karl@gnu.org>
46390
46391         * lib/argp.h: update from libc.
46392
46393 2003-09-17  Paul Eggert  <eggert@twinsun.com>
46394
46395         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
46396         to avoid spurious warnings like "AC_RUN_IFELSE was called before
46397         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
46398
46399 2003-09-17  Paul Eggert  <eggert@twinsun.com>
46400
46401         * gnulib-tool: Use "test -h", not "test -L", for portability
46402         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
46403         (tags_regexp): Remove, since \| doesn't conform to POSIX.
46404         (sed_extract_prog): Issue s commands one-by-one, rather than
46405         using \| in one s command.
46406
46407 2003-09-16  Paul Eggert  <eggert@twinsun.com>
46408
46409         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
46410         input error, instead of returning NULL the next time we are called
46411         (and therefore losing track of errno).
46412
46413 2003-09-16  Bruno Haible  <bruno@clisp.org>
46414
46415         * gnulib-tool (func_create_testdir): Warn about duplicated
46416         dependencies.
46417
46418 2003-09-15  Paul Eggert  <eggert@twinsun.com>
46419
46420         * modules/argmatch, modules/fatal, modules/obstack,
46421         modules/xalloc, modules/xgethostname: Sort dependencies by
46422         importance, not alphabetically.
46423
46424 2003-09-15  Paul Eggert  <eggert@twinsun.com>
46425
46426         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
46427         fails, so that the caller gets the proper errno.
46428
46429         * lib/readutmp.c (read_utmp): Likewise.
46430         Check for fstat error.  Close stream and free storage
46431         when failing.
46432
46433 2003-09-14  Karl Berry  <karl@gnu.org>
46434
46435         * config/srclist.txt (strdup.c): disable for c89 changes.
46436
46437 2003-09-14  Jim Meyering  <jim@meyering.net>
46438
46439         * lib/getloadavg.c: Correct cpp indentation.
46440         * lib/strdup.c: Likewise.
46441         * lib/vasnprintf.c: Likewise.
46442
46443 2003-09-14  Bruno Haible  <bruno@clisp.org>
46444
46445         * modules/fwriteerror: New file.
46446         * MODULES.html.sh (func_all_modules): Add fwriteerror.
46447
46448 2003-09-14  Bruno Haible  <bruno@clisp.org>
46449
46450         * lib/fwriteerror.h: New file.
46451         * lib/fwriteerror.c: New file.
46452
46453 2003-09-12  Paul Eggert  <eggert@twinsun.com>
46454
46455         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
46456         modules/xgethostname, modules/xalloc: Depend on exit.
46457
46458 2003-09-12  Paul Eggert  <eggert@twinsun.com>
46459
46460         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
46461
46462         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
46463         and AC_MINIX, too, so that their extensions are available.
46464
46465         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
46466         This macro has been superseded by gl_BACKUPFILE.
46467
46468         More patches to assume C89 or better.
46469
46470         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
46471
46472         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
46473         unconditionally.
46474         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
46475         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
46476         Include <string.h>, <stdlib.h> unconditionally.
46477         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
46478         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
46479         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
46480         headers or for string.h.
46481         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
46482         or strtoul.
46483
46484         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
46485         headers.
46486         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
46487         * m4/userspec.m4 (gl_USERSPEC): Likewise.
46488         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
46489         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
46490         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46491         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
46492         memcpy, memset.
46493         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
46494         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
46495         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
46496         strtol.
46497         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
46498         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
46499         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
46500         strtoul.
46501
46502 2003-09-12  Paul Eggert  <eggert@twinsun.com>
46503
46504         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
46505         * lib/obstack.c [!defined _LIBC]: Likewise.
46506         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
46507         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
46508         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
46509
46510         More changes to assume C89 or better.
46511
46512         * lib/error.c (error_tail): Assume vprintf.
46513
46514         * lib/argmatch.c (getenv): Remove decl.
46515         * lib/progreloc.c (get_full_program_name): Define via prototype.
46516         * lib/setenv.c (clearenv): Likewise.
46517         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
46518         needed.
46519         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
46520         (malloc, memcpy): Remove decls.
46521         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
46522         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
46523         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
46524         (memcpy): Remove macro.
46525         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
46526         (__P): Remove.  All uses removed.
46527         (PTR): Remove.  All uses changed to void *.
46528         (CHAR_BIT, NULL): Remove.
46529         (spaces, zeros, memset_space, memset_zero)
46530         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
46531         Remove.
46532         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
46533         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
46534         Define with prototype.
46535         Remove now-unnecessary prototype decl.
46536         (extra_args_spec): Assume ANSI C.  All uses changed.
46537         (extra_args_spec_iso): Remove.
46538         (my_strftime, emacs_strftimeu): Define via prototype.
46539         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
46540         unconditionally.
46541         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
46542         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
46543         (strtoul, strtol): Remove decls.
46544         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
46545         LONG_MAX): Remove.
46546         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
46547         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
46548         (LOCALE_PARAM_PROTO): New macro.
46549         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
46550         (INTERNAL (strtol), strtol): Define with a prototype.
46551         (PARAMS): Remove.  All uses removed.
46552         * lib/tempname.c: Include <string.h> unconditionally.
46553         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
46554         * lib/xgethostname.c (main): Define with a prototype.
46555         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
46556         Include <stdlib.h> unconditionally.
46557         (calloc, malloc, realloc, free): Remove decls.
46558         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
46559         Include <stdlib.h> unconditionally.  Sort include file names.
46560         (strtod): Remove.
46561         (xstrtod): Define with a prototype.
46562         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
46563         (strtol, strtoul): Remove decls.
46564
46565 2003-09-11  Paul Eggert  <eggert@twinsun.com>
46566
46567         More patches to assume C89 or better.
46568         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
46569         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
46570         string.h, memchr, STDC_HEADERS.
46571
46572 2003-09-11  Paul Eggert  <eggert@twinsun.com>
46573
46574         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
46575         Include <stdlib.h>, <string.h> unconditionally.
46576         Remove now-unnecessary cast to char *.
46577         * lib/strnlen.c: Include <string.h> unconditionally.
46578         * lib/yesno.c (yesno): Define with a prototype.
46579
46580 2003-09-11  Bruno Haible  <bruno@clisp.org>
46581
46582         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
46583
46584 2003-09-10  Jim Meyering  <jim@meyering.net>
46585
46586         * lib/error.c: Correct indentation of cpp directives.
46587
46588 2003-09-10  Bruno Haible  <bruno@clisp.org>
46589
46590         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
46591         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
46592         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
46593         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
46594         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
46595         <stdlib.h> and <string.h> checks.
46596         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
46597         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
46598
46599 2003-09-10  Bruno Haible  <bruno@clisp.org>
46600
46601         * lib/strcspn.c: Include <string.h> unconditionally.
46602         * lib/strpbrk.c: Include <string.h> unconditionally.
46603         * lib/strstr.c: Include <string.h> unconditionally.
46604         * lib/unicodeio.c: Include <string.h> unconditionally.
46605         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
46606         * lib/unsetenv.c: Likewise.
46607         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
46608         * lib/yesno.c: Include <stdlib.h> unconditionally.
46609         (rpmatch): Add prototype.
46610
46611 2003-09-09  Paul Eggert  <eggert@twinsun.com>
46612
46613         More patches to assume C89 or better.
46614         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
46615         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
46616         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
46617         or for string.h.
46618         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
46619         stdlib.h.
46620         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
46621         C headers.
46622         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
46623         string.h.
46624         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
46625         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
46626         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
46627         or for string.h.
46628         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
46629         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
46630         C headers.
46631         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
46632         memcpy.
46633         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
46634         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
46635         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
46636         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
46637         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
46638         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
46639         string.h, free.
46640         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
46641         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
46642         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
46643         C headers, or for string.h.
46644         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
46645         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
46646         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
46647         headers, memory.h, stdlib.h, string.h, strings.h.
46648         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
46649         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
46650         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
46651         strchr.
46652         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
46653         headers, memory.h, string.h.
46654         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
46655         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
46656         free.
46657         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
46658         headers.
46659         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
46660         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
46661         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
46662         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
46663         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
46664
46665 2003-09-09  Paul Eggert  <eggert@twinsun.com>
46666
46667         More K&R removal.
46668
46669         * lib/acosl.c (main): Use a prototype.
46670         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
46671         tanl.c: Likewise.
46672
46673         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
46674
46675         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
46676         (getopt, etopt_long, getopt_long_only, _getopt_internal)
46677         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
46678         with a prototype.
46679         * lib/getopt.c (const): Remove macro.
46680         Include <string.h> unconditionally.
46681         (my_index): Remove; all uses changed to strchr.
46682         (strlen): Remove decl.
46683         (exchange): Remove forward decl; no longer needed.
46684         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
46685         Define with prototype.
46686         * lib/getopt1.c (const): Remove macro.
46687         (getopt_long, getopt_long_only, main): Define with prototype.
46688
46689         * lib/getugroups.c: Include <string.h> unconditionally.
46690
46691         * lib/getusershell.c: Include <stdlib.h> unconditionally.
46692         (getusershell, setusershell, endusershell, readname, main):
46693         Define with prototypes.
46694
46695         * lib/group-member.c: Include group-member.h first.
46696         Include <stdlib.h> unconditionally.
46697
46698         * lib/hard-locale.c: Include hard-locale.h first.
46699         Include <stdlib.h>, <string.h> unconditionally.
46700
46701         * lib/hash.c (free, malloc): Remove decls.
46702         Include <stdlib.h> unconditionally.
46703
46704         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
46705         (getenv): Do not declare.
46706
46707         * lib/idcache.c: Include <string.h> unconditionally.
46708
46709         * lib/long-options.c: Include long-options.h first, to test interface.
46710         Include <stdlib.h> unconditionally.
46711
46712         * lib/makepath.c: Include makepath.h first, to test interface.
46713         Include <stdlib.h> and <string.h> unconditionally.
46714
46715         * lib/linebuffer.c: Include <stdlib.h>.
46716         (free): Remove decl.
46717
46718         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
46719         stddef.h. rpl_malloc returns void *, not char *.
46720         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
46721         prototype.
46722
46723         * lib/md5.h: Include <limits.h> unconditionally.
46724         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
46725         (__P): Remove; all uses removed.
46726         * lib/md5.c: Include "md5.h" first.
46727         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
46728         md5_buffer, md5_process_bytes, md5_process_block):
46729         Define with prototypes.
46730         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
46731         * lib/sha.c: Include "sha.h" first.
46732         Include <stdlib.h>, <string.h> unconditionally.
46733
46734         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
46735         * lib/memcmp.c (__ptr_t): Likewise.
46736         * lib/memrchr.c (__ptr_t): Likewise.
46737         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
46738         Include <string.h> unconditionally.
46739         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
46740         * lib/memchr.c: Include <stdlib.h> unconditionally.
46741         * lib/memchr.c (LONG_MAX): Remove.
46742         * lib/memrchr.c (LONG_MAX): Likewise.
46743         * lib/memchr.c (__memchr): Define via a prototype.
46744         * lib/memrchr.c (__memrchr): Likewise.
46745         * lib/memcmp.c (__P): Remove, and remove all uses.
46746         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
46747         Remove forward decls; no longer needed.
46748         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
46749         Use types required by C89 in prototype.
46750
46751         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
46752         * lib/savedir.c: Likewise.
46753         * lib/mkdir.c (free): Remove decl.
46754         * lib/rmdir.c (rmdir): Define with a prototype.
46755         * lib/savedir.c: Include savedir.h first, to test interface.
46756
46757         * lib/mktime.c (STDC_HEADERS): Remove.
46758         Include <stdlib.h>, <string.h> unconditionally.
46759
46760         * lib/modechange.c: Include <stdlib.h> unconditionally.
46761         (malloc): Remove decl.
46762
46763         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
46764         (free): Remove decl.
46765
46766         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
46767         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
46768         (This type really should be intptr_t, but that's a C99ism.)
46769         (_obstack_memcpy): Remove: all uses changed to memcpy.
46770         Include <string.h> unconditionally.
46771         (struct obstack): Assume __STDC__ for types of members
46772         chunkfun, freefun, extra_arg.
46773         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
46774         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
46775         obstack_begin, obstack_specify_allocation,
46776         obstack_specify_allocation_with_arg, obstack_chunkfun,
46777         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
46778         Remove unprototyped decls and the macros that use them.
46779         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
46780         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
46781         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
46782         (defined __STDC__ && __STDC__)]:
46783         Remove nonprototyped code.
46784         Include <stdlib.h> unconditionally.
46785         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
46786         _obstack_allocated_p, _obstack_free, obstack_free,
46787         _obstack_memory_used, print_and_abort):
46788         Define using prototypes.
46789         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
46790         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
46791         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
46792         obstack_next_free, obstack_object_size, obstack_room) [0]:
46793         Remove unused, unprototyped code.
46794
46795         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
46796
46797         * lib/physmem.c (physmem_total, physmem_available, main): Define
46798         with prototypes.
46799
46800         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
46801         (main): Define with a prototype.
46802
46803         * lib/posixver.c (getenv): Remove decl.
46804
46805         * lib/putenv.c (malloc): Returns void *, not char *.
46806         Include <string.h> unconditionally.
46807         (strchr, memcpy, NULL): Do not define.
46808
46809         * lib/readtokens.c: Include readtokens.h first, to test interface.
46810         Include <stdlib.h>, <string.h> unconditionally.
46811         (init_tokenbuffer): Define with a prototype.
46812
46813         * lib/regex.c (PARAMS): Remove.  All uses removed.
46814         All uses of _RE_ARGS removed, too.
46815         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
46816         unconditionally.
46817         (bzero): Assume memset exists.
46818         (memcmp, memcpy, NULL): Remove.
46819         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
46820         char, or assignments to local vars of type signed char.
46821         (init_syntax_once, PREFIX(extract_number_and_incr),
46822         PREFIX(print_partial_compiled_pattern),
46823         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
46824         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
46825         PREFIX(regex_grow_registers), PREFIX(regex_compile),
46826         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
46827         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
46828         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
46829         wcs_compile_range, byte_compile_range, truncate_wchar,
46830         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
46831         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
46832         count_mbs_length, wcs_re_match_2_internal,
46833         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
46834         PREFIX(alt_match_null_string_p),
46835         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
46836         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
46837         regfree, PREFIX(extract_number)): Define with prototype.  Remove
46838         now-unnecessary declaration, if any.
46839         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
46840         regcomp, regexec):
46841         Remove now-unnecessary casts among pointer types.
46842         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
46843
46844         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
46845         (free): Remove decl.
46846
46847         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
46848
46849         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
46850         (free): Remove decl.
46851
46852         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
46853         * lib/xgetcwd.c: Likewise.
46854
46855         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
46856         (free): Remove decl.
46857
46858         * lib/strchrnul.c (strchrnul): Define with a prototype.
46859         Fix bug: c_in was not converted to char before searching.
46860
46861         The following changes are not K&R related:
46862
46863         * lib/group-member.h: Include <sys/types.h>, so that this file is
46864         self-contained.
46865         * lib/makepath.h: Likewise.
46866
46867         * lib/getusershell.c (readname, default_index, line_size, readname):
46868         Use size_t, not int, for sizes.
46869         (readname): If the size overflows, report an error instead of
46870         looping forever.
46871
46872 2003-09-09  Paul Eggert  <eggert@twinsun.com>
46873
46874         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
46875         libc.
46876
46877 2003-09-09  Paul Eggert  <eggert@twinsun.com>
46878
46879         * README: New section: portability guidelines.
46880
46881 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
46882
46883         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
46884         C89 spec.
46885
46886 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
46887
46888         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
46889
46890 2003-09-08  Paul Eggert  <eggert@twinsun.com>
46891
46892         Assume C89 or better; remove K&R cruft.
46893         A few of these changes were first proposed by Derek Robert Price
46894         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
46895
46896         * lib/addext.c: Include <string.h> unconditionally.
46897         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
46898         Don't declare getenv or malloc.
46899
46900         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
46901         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
46902         (NULL): Remove.
46903         (find_stack_direction, alloca): Use prototypes.
46904
46905         * lib/atexit.c (atexit): Define using a prototype.
46906
46907         * lib/basename.c, dirname.c, stripslash.c:
46908         Include <string.h> unconditionally.
46909
46910         * lib/bcopy.c: Include <stddef.h>.
46911         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
46912
46913         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
46914
46915         * lib/error.h (error, error_at_line, error_print_progname)
46916         [! (defined (__STDC__) && __STDC__)]: Remove decls.
46917         * lib/error.c: Include error.h first, to check interface.
46918         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
46919         (VA_START): Remove; all uses changeed to va_start.
46920         (exit, strerror): Remove decls.
46921         (error_print_progname): Prototype uncondionally.
46922         Don't include <errno.h>; no longer needed.
46923         (private_strerror): Remove.
46924         (error_tail): Always define.
46925         (error, error_at_line): Assume C89 or better; always use prototypes.
46926         * lib/fatal.c: Include "fatal.h" first, to test interface.
46927         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
46928         (VA_START): Remove; all uses changed to va_start.
46929         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
46930         this case.
46931         (exit): Remove decl.
46932         (fatal): Prototype unconditionally.  Assume va_start works.
46933         Abort at end, to pacify gcc.
46934
46935         * lib/euidaccess.c (main): Define with a prototype.
46936
46937         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
46938
46939         * lib/exitfail.c: Include <stdlib.h> unconditionally.
46940
46941         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
46942         prototypes.
46943         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
46944         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
46945         (getenv): Remove decl.
46946         (fnmatch): Define using a prototype.
46947         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
46948         (FCT): Define using a prototype.
46949
46950         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
46951
46952         * lib/gethostname.c: Include <stddef.h>.
46953         (gethostname): Define with prototype.  Length is size_t, not int.
46954
46955 2003-09-08  Paul Eggert  <eggert@twinsun.com>
46956
46957         Assume C89 or better; remove K&R cruft.
46958         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
46959         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
46960         string.h, getenv, malloc.
46961         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
46962         headers.
46963         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
46964         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
46965         do not check for strerror.
46966         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
46967         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
46968         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
46969         do not check for doprnt or vprintf.
46970         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
46971         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
46972
46973 2003-09-08  Paul Eggert  <eggert@twinsun.com>
46974
46975         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
46976         getversion.c should have been removed then, but was accidentally
46977         preserved.
46978
46979         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
46980         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
46981
46982 2003-09-08  Karl Berry  <karl@gnu.org>
46983
46984         * config/config.sub, config.guess, srclistvars.sh: update from savannah
46985                 config, forget about prep.
46986
46987         * config/depcomp, missing: update from automake.
46988
46989 2003-09-07  Paul Eggert  <eggert@twinsun.com>
46990
46991         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
46992         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
46993
46994 2003-09-07  Paul Eggert  <eggert@twinsun.com>
46995
46996         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
46997         copy_tm_result.  Bug reported by Simon Josefsson in
46998         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
46999
47000 2003-09-06  Paul Eggert  <eggert@twinsun.com>
47001
47002         * m4/time_r.m4: New file.
47003         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
47004         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
47005         is. Check for timegm declaration.
47006         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
47007         Do not check for gmtime_r.
47008         Replace mktime if __mktime_internal does not exist and if mktime
47009         hasn't been replaced already.
47010
47011 2003-09-06  Paul Eggert  <eggert@twinsun.com>
47012
47013         * lib/time_r.c, lib/time_r.h: New files.
47014
47015         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
47016         __localtime_r.
47017         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
47018         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
47019
47020         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
47021         __gmtime_r.
47022         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
47023         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
47024         Include <time_r.h>.
47025
47026         * lib/timegm.c: Switch to glibc implementation, with the following
47027         changes:
47028         [defined HAVE_CONFIG_H]: Include <config.h>.
47029         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
47030         (__mktime_internal) [!defined _LIBC]: New decl.
47031         (__gmtime_r) [!defined _LIBC]: New macro and function.
47032         (timegm): Use a prototype, since gnulib assumes C89.
47033         Do not bother declaring tmp to be const, as it's not really usefu.
47034         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
47035         (timegm): Declare only if HAVE_DECL_TIMEGM.
47036
47037 2003-09-06  Paul Eggert  <eggert@twinsun.com>
47038
47039         * MODULES.html.sh (func_all_modules): Add time_r.
47040         * modules/time_r: New file.
47041         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
47042         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
47043
47044 2003-09-03  Paul Eggert  <eggert@twinsun.com>
47045
47046         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
47047         Bug reported by Lute Kamstra in
47048         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
47049
47050         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
47051         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
47052         course with correspondingly smaller numbers for tomorrow and
47053         yesterday.  From Tadayoshi Funaba.  Originally installed into
47054         sh-utils on 1999-08-07, but the patch got lost (I guess during the
47055         coreutils merge?).
47056
47057 2003-08-31  Simon Josefsson  <jas@extundo.com>
47058
47059         * modules/timegm: New file.
47060         * MODULES.html.sh (func_all_modules): Add timegm.
47061
47062 2003-08-31  Simon Josefsson  <jas@extundo.com>
47063
47064         * m4/timegm.m4: New file.
47065
47066 2003-08-31  Simon Josefsson  <jas@extundo.com>
47067
47068         * lib/timegm.h: New file.
47069         * lib/timegm.c: New file.  Based on
47070         wget-1.8.2/src/http.c:mktime_from_utc.
47071
47072 2003-08-31  Karl Berry  <karl@gnu.org>
47073
47074         * lib/argp.h: update from libc.
47075
47076 2003-08-28  Bruno Haible  <bruno@clisp.org>
47077
47078         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
47079         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
47080         followed by '#define fnmatch fnmatch_posix' gives an error.
47081
47082 2003-08-28  Bruno Haible  <bruno@clisp.org>
47083
47084         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
47085         warning on QNX, which defines O_BINARY to 000000.
47086
47087 2003-08-27  Jim Meyering  <jim@meyering.net>
47088
47089         * m4/mkstemp.m4: Require that the system mkstemp be able to create
47090         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
47091         would fail after 32.  Reported by Danny Levinson.  Details here:
47092         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
47093
47094 2003-08-24  Bruno Haible  <bruno@clisp.org>
47095
47096         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
47097         MSVC7 <stdio.h> is included later.
47098
47099 2003-08-22  Simon Josefsson  <jas@extundo.com>
47100
47101         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
47102
47103 2003-08-20  Karl Berry  <karl@gnu.org>
47104
47105         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
47106
47107 2003-08-20  Bruno Haible  <bruno@clisp.org>
47108
47109         * modules/progname: New file.
47110         * MODULES.html.sh (func_all_modules): Add progname.
47111
47112 2003-08-20  Bruno Haible  <bruno@clisp.org>
47113
47114         * lib/progname.h: New file, from GNU gettext.
47115         * lib/progname.c: New file, from GNU gettext.
47116         * lib/progreloc.c: New file, from GNU gettext.
47117
47118 2003-08-19  Jim Meyering  <jim@meyering.net>
47119
47120         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
47121         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
47122
47123 2003-08-19  Bruno Haible  <bruno@clisp.org>
47124
47125         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
47126         more.
47127
47128 2003-08-19  Bruno Haible  <bruno@clisp.org>
47129
47130         * lib/xstrdup.c: Assume <string.h> exists.
47131
47132 2003-08-18  Paul Eggert  <eggert@twinsun.com>
47133
47134         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
47135         in makefile rules.
47136
47137 2003-08-18  Jim Meyering  <jim@meyering.net>
47138
47139         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
47140         * m4/lib-ld.m4: Likewise.
47141
47142 2003-08-18  Jim Meyering  <jim@meyering.net>
47143
47144         * lib/setenv.h: Indent nested cpp directive.
47145         * lib/vasnprintf.c: Remove trailing blanks.
47146
47147 2003-08-17  Simon Josefsson  <jas@extundo.com>
47148
47149         * modules/xstrndup: New file.
47150         * MODULES.html.sh (func_all_modules): Add xstrndup.
47151
47152 2003-08-17  Simon Josefsson  <jas@extundo.com>
47153
47154         * modules/argp: Fix autoconf macro name. Add more dependencies.
47155
47156 2003-08-17  Simon Josefsson  <jas@extundo.com>
47157
47158         * m4/xstrndup.m4: New file.
47159
47160 2003-08-17  Simon Josefsson  <jas@extundo.com>
47161
47162         * m4/argp.m4: New file.
47163
47164 2003-08-17  Simon Josefsson  <jas@extundo.com>
47165             Bruno Haible  <bruno@clisp.org>
47166
47167         * lib/xstrndup.h: New file.
47168         * lib/xstrndup.c: New file.
47169
47170 2003-08-17  Bruno Haible  <bruno@clisp.org>
47171
47172         * modules/strndup (Files, Include): Add lib/strndup.h.
47173
47174 2003-08-17  Bruno Haible  <bruno@clisp.org>
47175
47176         * modules/euidaccess (Files): Add lib/euidaccess.h.
47177
47178 2003-08-17  Bruno Haible  <bruno@clisp.org>
47179
47180         * lib/strndup.h: New file.
47181
47182 2003-08-17  Bruno Haible  <bruno@clisp.org>
47183
47184         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
47185         like AC_GNU_SOURCE.
47186         * modules/extensions (configure.ac): Comment out the invocation of
47187         gl_USE_SYSTEM_EXTENSIONS.
47188
47189 2003-08-16  Paul Eggert  <eggert@twinsun.com>
47190
47191         Merges from coreutils, etc.
47192         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
47193         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
47194         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
47195         fixing a typo.
47196         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
47197         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
47198
47199 2003-08-16  Paul Eggert  <eggert@twinsun.com>
47200
47201         Document merge from coreutils.
47202         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
47203         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
47204         * modules/utime: Add m4/utimes-null.m4.
47205
47206 2003-08-16  Paul Eggert  <eggert@twinsun.com>
47207
47208         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
47209         space, undoing this 2003-08-12 change:
47210         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
47211
47212 2003-08-16  Paul Eggert  <eggert@twinsun.com>
47213
47214         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
47215         strtoul.c from libc, undoing this 2003-08-12 change:
47216         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
47217
47218 2003-08-16  Jim Meyering  <jim@meyering.net>
47219
47220         Merges from coreutils.
47221         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
47222         prefix.  Adjust cache variables similarly.  Create 500 rather than
47223         just 300 files, to exercise bug on Darwin6.5, too.
47224         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
47225         $missing_dir.
47226         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
47227         AM_SYS_POSIX_TERMIOS.
47228         Reported by mkc@mathdogs.com.
47229         Also change use of $am_cv_sys_posix_termios
47230         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
47231         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
47232         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
47233         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
47234         in /proc/mounts until it finds one with matching device number.  This
47235         is unnecessary when the FILE argument *is* a mount point.  No stat call
47236         is necessary in that case.  So, disable the statvfs-testing code on
47237         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
47238         as RedHat bug# 84846.
47239         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
47240         to 1MB, so as not to render systems with no stack size limit (e.g.,
47241         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
47242         Include <unistd.h>.  On some systems,
47243         it is required for the definition of _SC_PAGESIZE.
47244
47245 2003-08-16  Jim Meyering  <jim@meyering.net>
47246
47247         Merge from coreutils.
47248         * lib/xstrtoimax.c: #else #if -> #elif.
47249         * lib/xstrtoumax.c: Likewise.
47250
47251 2003-08-16  Jim Meyering  <jim@meyering.net>
47252
47253         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
47254         * m4/utimes.m4: Removed.
47255         * m4/utimes-null.m4: Renamed from utimes.m4.
47256
47257         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
47258         to 1MB, so as not to render systems with no stack size limit (e.g.,
47259         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
47260         Include <unistd.h>.  On some systems,
47261         it is required for the definition of _SC_PAGESIZE.
47262
47263 2003-08-16  Jim Meyering  <jim@meyering.net>
47264         and Paul Eggert  <eggert@cs.ucla.edu>
47265
47266         Merges from coreutils, etc.
47267
47268         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
47269         using the latest version from cvs.  This avoids problems with #line
47270         directives using a vendor (Sun) compiler.
47271         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
47272         Don't set GETGROUPS_LIB here; now it's
47273         done via getgroups.m4's wrapper function.
47274         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
47275         rather than just in sh-util/configure.in, so that the
47276         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
47277         same.
47278         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
47279         AC_FUNC_GETLOADAVG where to find getloadavg.c.
47280         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
47281         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
47282         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
47283         Remove code that is now done by the newly-required macros.
47284         Append $(EXEEXT) to DF_PROG.
47285         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
47286         Do not invoke or require the following here,
47287         since prereq.m4 or some gnulib .m4 now does this for us:
47288         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
47289         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
47290         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
47291         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
47292         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
47293         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
47294         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
47295         AC_FUNC_OBSTACK.
47296         Do not replace the following functions, as this is now the job
47297         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
47298         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
47299         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
47300         atexit getpass, strdup, getpagesize.
47301         Replace 'raise'.
47302         Do not check for the following functions, as this is now the job
47303         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
47304         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
47305         setregid.
47306         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
47307         Check for sys/sysctl.h.
47308         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
47309         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
47310         of checking for ssize_t ourselves.
47311
47312         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
47313         Require every macro that gnulib/modules/* suggests for us.
47314         (jm_PREREQ_ADDEXT): New macro.
47315         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
47316         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
47317
47318         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
47319         (gl_PHYSMEM): Use it.
47320         Also check for `table' function.
47321         Check for new headers and functions.
47322         Add check for sys/sysmp.h.
47323         With suggestions from Kaveh Ghazi.
47324         Ignore headers that are present but cannot be compiled.  This
47325         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
47326         C 5.4.
47327
47328 2003-08-15  Paul Eggert  <eggert@twinsun.com>
47329
47330         Document merge from coreutils.
47331         * modules/userspec: Depend on posixver.
47332         * modules/strftime: Depend on tzset.
47333
47334 2003-08-15  Paul Eggert  <eggert@twinsun.com>
47335
47336         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
47337         rather than tab, after '#' in shell-script copyright notices.
47338         Suggested by Bruno Haible.
47339
47340 2003-08-15  Paul Eggert  <eggert@twinsun.com>
47341
47342         * config/srclist-update: Use three spaces, rather than tab, after '#'
47343         in shell-script copyright notices.  Suggested by Bruno Haible.
47344         Remove unnecessary parenthesization in regular expression.
47345
47346 2003-08-15  Jim Meyering  <jim@meyering.net>
47347
47348         Merge from coreutils.
47349         * lib/xgethostname.c: Include <stdlib.h>.
47350         (xghostname): Don't exit for anything other than memory-related
47351         failure; just return NULL.
47352         * lib/userspec.c: Include "posixver.h".
47353         (parse_user_spec): Accept `.' as a separator only
47354         in pre-POSIX-200112 mode.
47355         * lib/strtoimax.c: Use #elif rather than #else #if.
47356         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
47357         Remove function, now that we can rely on a working tzset function.
47358         [!_LIBC]: Ensure that the required autoconf test has been run.
47359         [!defined _NL_CURRENT && HAVE_STRFTIME]:
47360         Use underlying_strftime for %r.
47361         * lib/sha.c: Merge in some clean-up and optimization changes from
47362         glibc.
47363         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
47364         Ensure that it is a multiple of 64.
47365         Rearrange loop exit tests so as to avoid performing an
47366         additional fread after encountering an error or EOF.
47367         * lib/realloc.c: Update copyright date.
47368
47369 2003-08-15  Jim Meyering  <jim@meyering.net>
47370         and Paul Eggert  <eggert@twinsun.com>
47371
47372         Merge from coreutils.
47373         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
47374         member but strut utmpx does not.  Needed for AIX 4.3.3.
47375         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
47376
47377 2003-08-15  Jim Meyering  <jim@meyering.net>
47378         and Paul Eggert  <eggert@cs.ucla.edu>
47379
47380         Merges from coreutils, etc.
47381         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
47382         Require gl_FUNC_TZSET_CLOBBER.
47383         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
47384         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
47385         members.
47386
47387 2003-08-14  Paul Eggert  <eggert@twinsun.com>
47388
47389         Help the merge from coreutils.
47390         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
47391         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
47392         * m4/tzset.m4: Use it too.
47393
47394 2003-08-14  Paul Eggert  <eggert@twinsun.com>
47395
47396         * modules/tzset: New file.
47397
47398 2003-08-14  Jim Meyering  <jim@meyering.net>
47399
47400         Merges from coreutils.
47401         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
47402         variable names, rather than @FNMATCH_H@.
47403         * modules/alloca: Likewise for $(ALLOCA_H).
47404
47405         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
47406         the three copies of the literal target, `fnmatch.h'.
47407         * modules/alloca (alloca.h): Likewise.
47408
47409 2003-08-14  Jim Meyering  <jim@meyering.net>
47410
47411         Merge from coreutils.
47412         * m4/tzset.m4: New file.
47413         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
47414         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
47415         otherwise, AIX 5.1 systems would end up using the latter.
47416         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
47417         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
47418         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
47419         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
47420
47421 2003-08-14  Jim Meyering  <jim@meyering.net>
47422
47423         Merge from coreutils.
47424         * lib/obstack.h: Whitespace changes.
47425         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
47426         and xcalloc return values.
47427         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
47428         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
47429         hang on OSF/1 5.1 for DIR on both local and remote file systems.
47430         Reported by (and fix confirmed by) Nelson H. F. Beebe.
47431         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
47432         error from mntctl.
47433         Use mntctl's return value to drive the entry-processing loop, since
47434         we can't rely on the value of the vmt_length member in the last
47435         entry.  On some systems doing so could result in exhausting
47436         virtual memory.  Based in part on a patch from Mike Jetzer.
47437
47438 2003-08-14  Jim Meyering  <jim@meyering.net>
47439         and Paul Eggert  <eggert@twinsun.com>
47440
47441         Merges from coreutils, plus other fixes.
47442         * lib/physmem.c: Merge in portability changes from gcc/libiberty
47443         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
47444         for credits and details.  Thanks to Kaveh Ghazi for helping
47445         to keep these files in sync.
47446         (ARRAY_SIZE): Define it.
47447         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
47448         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
47449         (memcasecmp): Don't assume size_t fits in unsigned int.
47450         Remove casts and duplicate code.
47451         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
47452         (memcpy): Remove definition.
47453         Merge in some clean-up and optimization changes from glibc.
47454         [BLOCKSIZE]: Move definition to top of file.
47455         Ensure that it is a multiple of 64.
47456         Rearrange loop exit tests so as to avoid performing an
47457         additional fread after encountering an error or EOF.
47458         * lib/md5.h (md5_uintptr): Define.
47459         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
47460         return to the initial working directory.  Preserve errno
47461         for caller.
47462         * lib/idcache.c: Include "xalloc.h".
47463         (xmalloc, xrealloc): Remove decls.
47464         (getuser): Remove casts no longer required in C89.
47465         * lib/human.c: Include stdio.h, for sprintf.
47466         * lib/group-member.c: Include "xalloc.h".
47467         (xmalloc, xrealloc): Remove decls.
47468         (get_group_info): Remove casts no longer required in C89.
47469         * lib/getusershell.c (readname): Remove casts no longer required in
47470         C89.
47471         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
47472         * lib/getline.c: Whitespace fix, from coreutils.
47473
47474 2003-08-13  Paul Eggert  <eggert@twinsun.com>
47475
47476         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
47477         Check for isascii.
47478
47479         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
47480         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
47481         Undo previous (whitespace-only) change.
47482
47483 2003-08-13  Paul Eggert  <eggert@twinsun.com>
47484
47485         * lib/exclude.c: Include <ctype.h>
47486         (IN_CTYPE_DOMAIN): New macro.
47487         (is_space): New fn.
47488         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
47489         and empty lines.
47490
47491         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
47492         Undo previous (whitespace-only) change.
47493
47494 2003-08-13  Paul Eggert  <eggert@twinsun.com>
47495
47496         * config/srclist-update: Change update back to the old behavior,
47497         leaving whitespace alone.  Use one 'sed' command rather than a
47498         pipeline.
47499         (fixlicense): Now a variable, not a function.
47500         (remove_trailing_blanks): Remove.
47501         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
47502         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
47503         Undo previous (whitespace-only) change.
47504
47505 2003-08-12  Paul Eggert  <eggert@twinsun.com>
47506
47507         Merge from coreutils.
47508         * modules/euidaccess: Add lib_SOURCES, include for new
47509         file euidaccess.h
47510
47511 2003-08-12  Paul Eggert  <eggert@twinsun.com>
47512
47513         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
47514         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
47515         Normalize leading white space and remove trailing white space.
47516
47517         Merge from coreutils
47518         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
47519
47520         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
47521         0.12.1.  These files are now being upgraded automatically by
47522         ../config/srclist-update.
47523
47524 2003-08-12  Paul Eggert  <eggert@twinsun.com>
47525
47526         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
47527         Normalize leading white space and remove trailing white space.
47528         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
47529         notice, as per ../config/srclist-update.
47530
47531         Merge from coreutils.
47532         * lib/euidaccess.h: New file.
47533         * lib/euidaccess.c: Include it.
47534         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
47535         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
47536         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
47537
47538 2003-08-12  Paul Eggert  <eggert@twinsun.com>
47539
47540         * config/srclist-update: Add copyright notice.
47541         (remove_id_lines, remove_trailing_blanks): New constants.
47542         (fixfile): Use them to normalize spacing a bit in copied files.
47543         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
47544         Normalize leading white space and remove trailing white space.
47545
47546         * config/texinfo.tex: Sync with texinfo.
47547
47548         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
47549         strtoul.c from libc, to merge coreutils whitespace changes.
47550
47551         * config/srclist.txt: Get the following m4 files from gettext:
47552         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
47553         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
47554         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
47555         wint_t.m4.
47556
47557 2003-08-12  Karl Berry  <karl@gnu.org>
47558
47559         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
47560         been made.
47561
47562 2003-08-11  Paul Eggert  <eggert@twinsun.com>
47563
47564         * modules/gnu-source, m4/gnu-source.m4:
47565         Remove; we're assuming Autoconf 2.54 or later now.
47566         Suggested by Bruno Haible.
47567         * MODULES.html.sh (func_all_modules): Remove gnu-source.
47568
47569 2003-08-11  Bruno Haible  <bruno@clisp.org>
47570
47571         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
47572
47573 2003-08-11  Bruno Haible  <bruno@clisp.org>
47574
47575         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
47576         (vasnprintf): Use it instead of wcslen.
47577
47578 2003-08-11  Bruno Haible  <bruno@clisp.org>
47579
47580         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
47581         value to ensure that _Bool promotes to int. Use #define for _Bool when
47582         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
47583
47584 2003-08-10  Karl Berry  <karl@gnu.org>
47585
47586         * lib/regex.h: update from libc (whitespace fix).
47587
47588 2003-08-09  Paul Eggert  <eggert@twinsun.com>
47589
47590         Merge some files from coreutils.  These changes were
47591         originally made by Jim Meyering.
47592         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
47593         many older Unixes require this.
47594         * lib/alloca.c (alloca): Remove cast to argument of free;
47595         no longer needed in C89.
47596         * lib/alloca_.h, regex.h: Fix white space to match
47597         what GNU indent does.
47598
47599 2003-08-09  Paul Eggert  <eggert@twinsun.com>
47600
47601         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
47602         apparently Emacs's Unicode mode got confused before my 2003-08-05
47603         checkin.
47604
47605 2003-08-08  Paul Eggert  <eggert@twinsun.com>
47606
47607         * m4/extensions.m4: New file.
47608         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
47609         Require gl_USE_SYSTEM_EXTENSIONS.
47610         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
47611         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
47612
47613 2003-08-08  Paul Eggert  <eggert@twinsun.com>
47614
47615         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
47616         * modules/extensions, modules/gnu-source: New files.
47617         * modules/timespec, modules/unlocked-io: Depend on extensions.
47618
47619 2003-08-07  Paul Eggert  <eggert@twinsun.com>
47620
47621         * modules/restrict: New file.
47622         * MODULES.html.sh (func_all_modules): Add restrict.
47623         * modules/regex: Depend on restrict.
47624
47625 2003-08-07  Paul Eggert  <eggert@twinsun.com>
47626
47627         * m4/restrict.m4: New file.
47628         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
47629
47630 2003-08-07  Bruno Haible  <bruno@clisp.org>
47631
47632         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
47633         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
47634
47635 2003-08-07  Bruno Haible  <bruno@clisp.org>
47636
47637         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
47638         makes the module 'getndelim2' compatible with the module 'getline'.
47639
47640 2003-08-05  Paul Eggert  <eggert@twinsun.com>
47641
47642         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
47643         byte with "\201" to avoid glitches when editing that source file
47644         with multi-gnome-terminal.
47645
47646 2003-08-05  Paul Eggert  <eggert@twinsun.com>
47647
47648         * lib/bumpalloc.h: Remove.
47649
47650 2003-08-05  Paul Eggert  <eggert@twinsun.com>
47651
47652         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
47653         * modules/bumpalloc: Remove.
47654
47655 2003-08-04  Paul Eggert  <eggert@twinsun.com>
47656
47657         * lib/getloadavg.c: Change copyright notice and spacing to conform to
47658         GNU coding style.
47659
47660         Merge from coreutils.
47661         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
47662         1. From glibc.
47663         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
47664         from Karl Berry, implemented by Jim Meyering.
47665         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
47666         from Dmitry V. Levin.
47667         Remove anachronistic cast of xrealloc.
47668         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
47669         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
47670         type. Otherwise, it wouldn't compile with at least /bin/cc on
47671         ymp-cray-unicos9.0.2.X.
47672         Combine two mostly-identical uses of alloca into one.
47673         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
47674
47675 2003-08-04  Dave Love  <d.love@dl.ac.uk>
47676
47677         [From Emacs.]
47678
47679         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
47680         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
47681         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
47682         obsolete NLIST_NAME_UNION.
47683         [__GNU__]: Undef BSD and FSCALE.
47684         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
47685
47686 2003-08-03  Paul Eggert  <eggert@twinsun.com>
47687
47688         * lib/stdbool_.h (_Bool): Make it signed char, instead of
47689         an enum type, so that it's guaranteed to promote to int.  See:
47690         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
47691
47692 2003-08-03  Karl Berry  <karl@gnu.org>
47693
47694         * config/depcomp: update from automake.
47695
47696 2003-07-31  Paul Eggert  <eggert@twinsun.com>
47697
47698         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
47699         (strerror): Don't assume that a printable int fits in 14 bytes.
47700
47701 2003-07-31  Bruno Haible  <bruno@clisp.org>
47702
47703         * modules/getpass-gnu: New file.
47704         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
47705
47706 2003-07-31  Bruno Haible  <bruno@clisp.org>
47707
47708         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
47709
47710 2003-07-24  Karl Berry  <karl@gnu.org>
47711
47712         * config/missing: update from automake.
47713
47714 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
47715             Bruno Haible  <bruno@clisp.org>
47716
47717         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
47718         * lib/getline.c (getline, getdelim): Likewise.
47719         Remove _GNU_SOURCE define; now it's defined in config.h through
47720         m4/getline.m4.
47721
47722 2003-07-23  Karl Berry  <karl@gnu.org>
47723
47724         * config/config.sub: update from prep.
47725
47726 2003-07-22  Paul Eggert  <eggert@twinsun.com>
47727
47728         * modules/xalloc (Depends-on): Add exitfail.
47729         * modules/xmemcoll: Likewise.
47730
47731 2003-07-22  Paul Eggert  <eggert@twinsun.com>
47732
47733         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
47734         over-parenthesization in macros.
47735
47736         Sync with coreutils.
47737
47738         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
47739         required by C99.
47740
47741         Use `exit_failure' for xalloc and xmemcoll instead of their own
47742         private exit-failure variables.
47743         * lib/xalloc.h (xalloc_exit_failure): Remove.
47744         * lib/xmalloc.c: Likewise.  Include exitfail.h.
47745         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
47746         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
47747         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
47748         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
47749
47750 2003-07-20  Jim Meyering  <jim@meyering.net>
47751
47752         * modules/closeout (Depends-on): Add exitfail.
47753         Suggestion from Bruno Haible.
47754
47755 2003-07-19  Karl Berry  <karl@gnu.org>
47756
47757         * config/config.sub: update from prep.
47758
47759 2003-07-18  Paul Eggert  <eggert@twinsun.com>
47760
47761         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
47762         Remove.
47763         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
47764         to test that it can stand by itself.  Include "exitfail.h".
47765         Clients should set exit_failure instead.
47766         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
47767
47768 2003-07-18  Bruno Haible  <bruno@clisp.org>
47769
47770         * modules/getndelim2: New file.
47771         * modules/getline: Share files with module getndelim2.
47772         * modules/getnline: Depend on getndelim2 instead of sharing files with
47773         it. Add getnline.c to lib_SOURCES.
47774         * MODULES.html.sh (func_all_modules): Add getndelim2.
47775
47776 2003-07-18  Bruno Haible  <bruno@clisp.org>
47777
47778         * m4/getndelim2.m4: New file.
47779         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
47780         invoke gl_PREREQ_GETNDELIM2.
47781         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
47782         gl_PREREQ_GETNDELIM2.
47783         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
47784         gl_GETNDELIM2.
47785
47786 2003-07-18  Bruno Haible  <bruno@clisp.org>
47787
47788         * lib/getndelim2.h: New file.
47789         * lib/getndelim2.c: Make into a module of its own. Include config.h,
47790         getndelim2.h.
47791         (getndelim2): Make non-static. Change return type to ssize_t.
47792         * lib/getline.h: Change argument names.
47793         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
47794         * lib/getnline.c: Include getndelim2.h.
47795
47796 2003-07-18  Andreas Schwab  <schwab@suse.de>
47797
47798         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
47799
47800 2003-07-17  Karl Berry  <karl@gnu.org>
47801
47802         * config/config.sub: update from prep.
47803
47804 2003-07-17  Bruno Haible  <bruno@clisp.org>
47805
47806         * modules/getnline: New file.
47807         * modules/getline: Add lib/getndelim2.c to source file list.
47808         * MODULES.html.sh (func_all_modules): Add getnline.
47809
47810 2003-07-17  Bruno Haible  <bruno@clisp.org>
47811
47812         * m4/getnline.m4: New file.
47813
47814 2003-07-17  Bruno Haible  <bruno@clisp.org>
47815
47816         * m4/Makefile.am.in: Remove file.
47817         * m4/Makefile.am: Remove file.
47818         * m4/Makefile.in: Remove file.
47819
47820 2003-07-17  Bruno Haible  <bruno@clisp.org>
47821
47822         * lib/getnline.h: New file.
47823         * lib/getnline.c: New file.
47824         * lib/getndelim2.c: New file, extracted from getline.c.
47825         (getndelim2): Renamed from getdelim2, with added nmax argument.
47826         * lib/getline.c: Include getndelim2.c.
47827         (getdelim2): Moved out to getndelim2.c.
47828         (getline, getdelim): Update.
47829
47830 2003-07-17  Bruno Haible  <bruno@clisp.org>
47831
47832         * lib/Makefile.am: Remove file.
47833         * lib/Makefile.in: Remove file.
47834
47835 2003-07-17  Bruno Haible  <bruno@clisp.org>
47836
47837         * configure.in: Remove file.
47838         * Makefile.in: Remove file.
47839
47840 2003-07-17  Bruno Haible  <bruno@clisp.org>
47841
47842         * MODULES.html.sh: Put the </BODY> right before </HTML>.
47843
47844 2003-07-16  Karl Berry  <karl@gnu.org>
47845
47846         * config/srclist-update: was running fixlicense twice, which caused
47847                 texinfo.tex to be nullified for some reason.  Simplify,
47848                 $gplsrc is no longer needed as far as I can see?
47849
47850 2003-07-16  Jim Meyering  <jim@meyering.net>
47851
47852         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
47853
47854 2003-07-15  Paul Eggert  <eggert@twinsun.com>
47855
47856         * config/srclist.txt: Get the following files from gettext-runtime/intl
47857         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
47858         ref-del.sin.  From Bruno Haible.
47859         * config/srclist-update (fixfile): Change grep pattern again, since the
47860         previous fix didn't work (there was another trailing $).  Use
47861         '[$]' to escape the $s.
47862
47863 2003-07-15  Karl Berry  <karl@gnu.org>
47864
47865         * lib/vasnprintf.c: update from gettext.
47866
47867 2003-07-15  Karl Berry  <karl@gnu.org>
47868
47869         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
47870         gets expanded when surrounded by '$'.
47871
47872 2003-07-15  Jim Meyering  <jim@meyering.net>
47873
47874         * modules/save-cwd: Don't depend on error.  From Derek Price.
47875
47876 2003-07-15  Jim Meyering  <jim@meyering.net>
47877
47878         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
47879
47880 2003-07-14  Simon Josefsson  <jas@extundo.com>
47881
47882         * modules/mempcpy: New file.
47883         * MODULES.html.sh (func_all_modules): Add mempcpy.
47884
47885 2003-07-14  Simon Josefsson  <jas@extundo.com>
47886
47887         * m4/mempcpy.m4: New file.
47888
47889 2003-07-14  Simon Josefsson  <jas@extundo.com>
47890
47891         * lib/mempcpy.h: New file.
47892         * lib/mempcpy.c: New file.
47893
47894 2003-07-14  Paul Eggert  <eggert@twinsun.com>
47895
47896         * modules/getdate, modules/posixtm: Depend on mktime.
47897
47898 2003-07-14  Paul Eggert  <eggert@twinsun.com>
47899
47900         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
47901         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
47902         unicodeio.c, unicodeio.h, unlocked-io.h:
47903         Switch from LGPL to GPL.
47904
47905 2003-07-14  Paul Eggert  <eggert@twinsun.com>
47906
47907         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
47908         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
47909         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
47910         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
47911         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
47912         updated automatically by ../config/srclist-update.  This changes
47913         their license from LPGL to GPL.
47914
47915 2003-07-14  Paul Eggert  <eggert@twinsun.com>
47916
47917         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
47918         assumed to refer to the root of the most recent stable gettext version.
47919         * config/srclistvars.sh: Add defaults for eggert.
47920         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
47921         Match "This program" as well as "The program".  This is needed
47922         for gettext.
47923
47924 2003-07-14  Jim Meyering  <jim@meyering.net>
47925
47926         Don't emit diagnostics.  Let callers do that.
47927         * lib/save-cwd.c: Don't include "error.h".
47928         (save_cwd): Don't call error.  Ensure that errno is valid
47929         when returning nonzero.
47930
47931         * lib/save-cwd.h (restore_cwd): Update prototype.
47932         * lib/save-cwd.c (restore_cwd): Remove two parameters.
47933         Simplify.  Don't call error upon failure.  Let callers do that.
47934         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
47935         when auditing is enabled.  But don't bother updating the #if.
47936
47937 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
47938
47939         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
47940         it breaks C++ compilation.
47941         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
47942
47943 2003-07-10  Simon Josefsson  <jas@extundo.com>
47944
47945         * modules/strchrnul (Makefile.am): Add strchrnul.h.
47946
47947 2003-07-10  Jim Meyering  <jim@meyering.net>
47948
47949         * m4/clock_time.m4: Remove trailing blank.
47950         * m4/intmax_t.m4: Likewise.
47951
47952 2003-07-10  Jim Meyering  <jim@meyering.net>
47953
47954         * lib/vasnprintf.c: Remove trailing blanks.
47955         Make cpp indentation consistent.
47956
47957 2003-07-09  Paul Eggert  <eggert@twinsun.com>
47958
47959         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
47960         posixver.c, strftime.c, strnlen.c, strverscmp.c:
47961         Switch from LGPL to GPL.
47962
47963 2003-07-09  Paul Eggert  <eggert@twinsun.com>
47964
47965         * config/srclist.txt: Sort sublists.  Add
47966         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
47967         that differ from gnulib for one reason or another; we'd like this list
47968         to be smaller but for now let's document what we have.
47969
47970 2003-07-08  Paul Eggert  <eggert@twinsun.com>
47971
47972         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
47973         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
47974         and sweeter "eval x=$x".
47975         * config/srclist.txt: Get lib/argp* from glibc.
47976
47977 2003-07-07  Paul Eggert  <eggert@twinsun.com>
47978
47979         * lib/mktime.c: Fix some boundary cases and remove need for floating
47980         point.
47981
47982         Issue a compile-time diagnostic if time_t is floating point, or if
47983         two's complement arithmetic is not in effect, or if arithmetic
47984         right shift does not propagate the sign.  These assumptions were
47985         all in the original code but they weren't checked.
47986
47987         (TIME_T_MIDPOINT, verify): New macros.
47988         (__isleap): Remove; it has integer overflow problems.
47989         (leapyear): New function, without those problems.
47990         (ydhms_tm_diff): Remove; splitting into two parts.
47991         (ydhms_diff): New function, containing the arithmetic part of
47992         the old ydhms_tm_diff function.  Issue a compile-time
47993         diagnostic if we are not using C99 integer division.
47994         Avoid casts when possible.
47995         (guess_time_tm): New function, containing the checking part of
47996         the old ydhms_tm_diff function.  Return the new value, rather than
47997         the difference between it and the old.  Accept a new argument T
47998         so that *T specifies the old value.  Check for overflow in the result.
47999
48000         (__mktime_internal): Use a time_t offset, not a long int offset.
48001         This undoes the 2003-06-04 change, which is no longer needed now
48002         that we have better overflow checking.
48003         (localtime_offset): Likewise.
48004
48005         (__mktime_internal): Avoid harmful overflow on hosts where time_t
48006         and long are 64-bit but int is only 32-bit.
48007         (ydhms_diff): Use long int to store year1 and yday1.
48008         Issue a compile-time diagnostic if long int is not wide enough.
48009
48010         (__mktime_internal): Use long int to store adjusted year and yday.
48011         Use plain C rather than preprocessor commands, if that doesn't
48012         affect efficiency.
48013         Check for overflow (and try to repair) after each probe
48014         rather than checking only at the very end.  This avoids some bugs
48015         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
48016         does not equal GMT offset at maximum time).
48017         Use integer to check for overflow rather than floating point; this
48018         is more portable to non-IEEE hosts, and is a tad faster.
48019         When we detect that we are oscillating between two values,
48020         don't check whether tm_isdst has the requested value, since
48021         we already know the answer.  When tm_isdst has the wrong value,
48022         use a different heuristic to find the right one, based on the
48023         extreme values actually observed in practice in tz2003a,
48024         rather than the (overly optimistic) "previous 3 calendar quarters".
48025
48026         (not_equal_tm, print_tm, check_result): Use "const T" rather than
48027         "T const" to accommodate glibc style.
48028         (check_result): Use less-confusing report format.  "long" -> "long int.
48029         (main): Likewise.
48030         Don't loop if the iteration overflows time_t.
48031         Allow a negative step in the iteration.
48032
48033 2003-07-06  Karl Berry  <karl@gnu.org>
48034
48035         * config/depcomp: update from automake.
48036         * config/config.sub: update from prep.
48037
48038 2003-07-03  Karl Berry  <karl@gnu.org>
48039
48040         * config/config.guess: update from prep.
48041
48042 2003-07-01  Paul Eggert  <eggert@twinsun.com>
48043
48044         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
48045         xreadlink.c now includes it unconditionally.
48046
48047 2003-07-01  Paul Eggert  <eggert@twinsun.com>
48048
48049         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
48050         having it depend on HAVE_SYS_TYPES_H.
48051
48052 2003-07-01  Bruno Haible  <bruno@clisp.org>
48053
48054         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
48055         <sys/types.h> should be sufficient.
48056         Reported by Paul Eggert.
48057
48058 2003-06-26  Karl Berry  <karl@gnu.org>
48059
48060         * config/depcomp: update from automake.
48061
48062 2003-06-26  Bruno Haible  <bruno@clisp.org>
48063
48064         * modules/human: Depend on module stdbool.
48065
48066 2003-06-25  Bruno Haible  <bruno@clisp.org>
48067
48068         * modules/readlink: New file.
48069         * modules/xreadlink: Depend on it.
48070         * MODULES.html.sh (func_all_modules): Add readlink.
48071
48072 2003-06-25  Bruno Haible  <bruno@clisp.org>
48073
48074         * m4/readlink.m4: New file.
48075
48076 2003-06-25  Bruno Haible  <bruno@clisp.org>
48077
48078         * lib/readlink.c: New file.
48079
48080 2003-06-22  Karl Berry  <karl@gnu.org>
48081
48082         * config/srclist.txt: update mkinstalldirs from automake.
48083         * config/mkinstalldirs: update.
48084
48085 2003-06-22  Bruno Haible  <bruno@clisp.org>
48086
48087         Portability to mingw32.
48088         * m4/ssize_t.m4: New file, from GNU gettext.
48089         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
48090         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
48091
48092 2003-06-22  Bruno Haible  <bruno@clisp.org>
48093
48094         * modules/safe-read: Add m4/ssize_t.m4.
48095         * modules/xreadlink: Add m4/ssize_t.m4.
48096
48097 2003-06-20  Bruno Haible  <bruno@clisp.org>
48098
48099         Assume C89, so PARAMS isn't needed.
48100         * lib/unicodeio.h (PARAMS): Remove.
48101         * lib/unicodeio.c: Don't use PARAMS.
48102
48103 2003-06-18  Karl Berry  <karl@gnu.org>
48104
48105         * config/config.{guess,sub}: update from prep.
48106
48107 2003-06-18  Jim Meyering  <jim@meyering.net>
48108
48109         Merge changes from coreutils.
48110         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
48111         Remove explicit declarations of xmalloc and realloc.
48112         Include xalloc.h.
48113         (read_utmp): Remove anachronistic cast of xmalloc.
48114
48115 2003-06-17  Paul Eggert  <eggert@twinsun.com>
48116
48117         Assume C89, so PARAMS isn't needed.
48118         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
48119         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
48120         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
48121         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
48122         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
48123         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
48124         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
48125         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
48126         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
48127         lib/xstrtod.h, lib/xstrtol.h: Likewise.
48128         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
48129         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
48130         no longer needed. Anyway, config.h should always be included before any
48131         other file.
48132
48133 2003-06-11  Simon Josefsson  <jas@extundo.com>
48134
48135         * modules/sysexits: New file.
48136         * MODULES.html.sh (func_all_modules): Add sysexits.
48137
48138 2003-06-11  Simon Josefsson  <jas@extundo.com>
48139
48140         * lib/sysexit_.h: New file.
48141
48142 2003-06-11  Derek Price  <derek@ximbiot.com>
48143
48144         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
48145         necessary.
48146
48147 2003-06-11  Bruno Haible  <bruno@clisp.org>
48148
48149         * m4/sysexits.m4: New file.
48150
48151 2003-06-10  Simon Josefsson  <jas@extundo.com>
48152
48153         * lib/argp.h: New file, from glibc.
48154         * lib/argp-ba.c: New file, from glibc.
48155         * lib/argp-eexst.c: New file, from glibc.
48156         * lib/argp-fmtstream.c: New file, from glibc.
48157         * lib/argp-fmtstream.h: New file, from glibc.
48158         * lib/argp-fs-xinl.c: New file, from glibc.
48159         * lib/argp-help.c: New file, from glibc.
48160         * lib/argp-namefrob.h: New file, from glibc.
48161         * lib/argp-parse.c: New file, from glibc.
48162         * lib/argp-pv.c: New file, from glibc.
48163         * lib/argp-pvh.c: New file, from glibc.
48164         * lib/argp-xinl.c: New file, from glibc.
48165
48166 2003-06-10  Simon Josefsson  <jas@extundo.com>
48167
48168         * modules/strchrnul: New file.
48169
48170 2003-06-10  Simon Josefsson  <jas@extundo.com>
48171
48172         * modules/argp: New file.
48173
48174 2003-06-10  Simon Josefsson  <jas@extundo.com>
48175
48176         * m4/strchrnul.m4: New file.
48177
48178 2003-06-10  Simon Josefsson  <jas@extundo.com>
48179
48180         * lib/strchrnul.h: New file.
48181         * lib/strchrnul.c: New file.
48182
48183 2003-06-10  Bruno Haible  <bruno@clisp.org>
48184
48185         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
48186
48187 2003-06-07  Karl Berry  <karl@gnu.org>
48188
48189         * config/config.{guess,sub}: update from prep.
48190
48191 2003-06-07  Jim Meyering  <jim@meyering.net>
48192
48193         * modules/strtod: Use $(...) notation, not @...@ for
48194         AC_REPLACE'd variables.
48195         * modules/localcharset: Likewise.
48196
48197 2003-06-07  Jim Meyering  <jim@meyering.net>
48198
48199         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
48200         in place of my name in the copyright comment.
48201         Remove definition and uses of __P.
48202
48203         From coreutils.
48204         * lib/stat.c: Don't declare xmalloc explicitly.
48205         Instead, include "xalloc.h".
48206         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
48207         xrealloc, and xcalloc return values.
48208         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
48209         Improve comment.
48210         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
48211
48212 2003-06-07  Bruno Haible  <bruno@clisp.org>
48213
48214         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
48215         avoid AC_CONFIG_LINKS.
48216         * modules/fnmatch (Makefile.am): Use explicit creation rule for
48217         fnmatch.h, to avoid AC_CONFIG_LINKS.
48218         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
48219
48220 2003-06-07  Bruno Haible  <bruno@clisp.org>
48221
48222         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
48223         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
48224         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
48225         directory.
48226         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
48227         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
48228         directory.
48229
48230 2003-06-06  Jim Meyering  <jim@meyering.net>
48231
48232         Merge from coreutils.
48233         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
48234         Consolidate declarations and initializations of *_base* locals.
48235
48236         Merge from coreutils.
48237         This avoids a core dump on systems without GNU putenv,
48238         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
48239         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
48240         (unsetenv): New static function, from GNU libc.
48241         (rpl_putenv): Use it.
48242
48243         * lib/modechange.c: Remove trailing blanks.
48244
48245         Merge from coreutils.
48246         * lib/fsusage.c: Remove declaration of statfs.
48247         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
48248
48249         * lib/posixtm.c: Include <stdbool.h> unconditionally.
48250
48251 2003-06-06  Jim Meyering  <jim@meyering.net>
48252
48253         * lib/stdbool_.h: Renamed from stdbool.h.in.
48254
48255 2003-06-06  Jim Meyering  <jim@meyering.net>
48256             Bruno Haible  <bruno@clisp.org>
48257
48258         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
48259         Adjust Makefile.am snippet not to redirect directly to target.
48260         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
48261
48262 2003-06-05  Paul Eggert  <eggert@twinsun.com>
48263
48264         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
48265         mismatch, look in future quarters as well as past.  This fixes a
48266         bug when processing fall-backwards gaps immediately after a long
48267         period of daylight-saving time.
48268
48269         * lib/mktime.c: Assume freestanding C89 or better.
48270         (HAVE_LIMITS_H): Remove.  Assume it's 1.
48271         (__P): Remove; not used.
48272         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
48273         (mktime, not_equal_tm, print_tm, check_result,
48274         main): Use prototypes.  Use const * where appropriate.
48275         (main): Fix typo in testing code that uncovered by above changes.
48276         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
48277
48278 2003-06-04  Paul Eggert  <eggert@twinsun.com>
48279
48280         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
48281         locale.h, localeconv.  This merges changes from coreutils.
48282
48283         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
48284         It can be removed after the next Autoconf is released.
48285         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
48286         needed.
48287
48288 2003-06-04  Paul Eggert  <eggert@twinsun.com>
48289
48290         * lib/mktime.c: Fix Debian bug 177940
48291         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
48292         (localtime_offset): Now long int, not time_t, because we want it
48293         to be guaranteed to be signed.  All uses changed.
48294         (__mktime_internal): If overflow would occur when adding offset,
48295         don't add it.
48296
48297         Merge 'human' changes from coreutils.  Rewrite to support
48298         locale-specific notations like thousands separators.
48299         * lib/human.c: Simplify authorship notice.
48300         Include human.h immediately after config.h.
48301         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
48302         <limits.h>: Do not include, since human.h does.
48303         (SIZE_MAX, UINTMAX_MAX): New macros.
48304         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
48305         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
48306         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
48307         (power_letter): Renamed from suffixes.
48308         (generate_suffix_backwards): Remove.
48309         (adjust_value): Now takes int style (because of human.h changes)
48310         and long double value (for greater precision on some platforms).
48311         (group_number): New function.
48312         (human_readable): Use it.  Use integer options, not enum.
48313         Put the options before the sizes in the arg list.
48314         Support all the new options.
48315         The old human_readable function has been removed;
48316         use inttostr.h instead.
48317         (human_readable, default_block_size, humblock):
48318         Use uintmax_t, not int, for block sizes.
48319         (human_readable_inexact, block_size_types): Remove.
48320         (block_size_opts): New constant.
48321         (human_options): Renamed from human_block_size, with new signature
48322         that allows block sizes up to UINTMAX_MAX.  All callers changed.
48323         * lib/human.h: Add copyright and authorship notice.
48324         Include <limits.h> and <stdbool.h> unconditionally.
48325         (PARAMS): Remove.  All uses removed.
48326         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
48327         (enum human_inexact_style): Remove tag; now a nameless enum.
48328         (human_floor, human_ceiling, human_round_to_even): Now have
48329         values 2, 0, 1 rather than -1, 1, 0.
48330         (human_group_digits, human_suppress_point_zero, human_autoscale,
48331         human_base_1024, human_SI, human_B): New constants.
48332         (human_readable_inexact, human_block_size): Remove.
48333         (human_readable): Size args are now uintmax_t, not int.
48334         (human_options): New decl.
48335
48336         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
48337         unnecessary now that we assume C89 or better.  This change
48338         imported from coreutils.
48339
48340         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
48341         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
48342         in the 2003-05-30 sync from glibc.
48343
48344         .h files should stand alone, but we shouldn't include <sys/types.h>
48345         if we can get away with just <stddef.h>.
48346
48347         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
48348         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
48349         rather than <sys/types.h>, as we merely need size_t.
48350         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
48351         to get size_t.
48352         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
48353         Include <stdio.h>, to get FILE.
48354         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
48355         memcasecmp.h has included <stddef.h> and all we need is size_t.
48356         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
48357         our interface, instead of including <sys/types.h>
48358
48359 2003-06-04  Paul Eggert  <eggert@twinsun.com>
48360
48361         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
48362         now, as glibc mktime is buggy on non-glibc systems.
48363
48364 2003-06-03  Karl Berry  <karl@gnu.org>
48365
48366         * config/config.sub: update from prep.
48367
48368 2003-06-02  Paul Eggert  <eggert@twinsun.com>
48369
48370         [from coreutils]
48371         Fix some minor time-related bugs with POSIX time arguments.
48372         Some valid time stamps were being rejected (notably -1, and
48373         time stamps before 1900 on 64-bit hosts).  And some invalid
48374         time stamps were being accepted, e.g. September 31.
48375
48376         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
48377         that we can return (time_t) -1 successfully.
48378         * lib/posixtm.c: Likewise.
48379         [HAVE_STDBOOL_H]: Include <stdbool.h>.
48380         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
48381         (t): Remove static var.
48382         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
48383         of static var.  All uses changed.
48384         (year): Do not reject years before 1900; they can occur with
48385         64-bit time_t.
48386         (posix_time_parse): Do not check for out-of-range components;
48387         that is now the caller's responsibility, since our checks were
48388         only approximations.
48389         (posixtime): Use mktime to check for out-of-range components,
48390         since it knows them exactly.
48391         If mktime returns (time_t) -1, check whether an error actually occurred
48392         by invoking localtime on -1.
48393         (main) [TEST_POSIXTIME]: Check for input data errors, and report
48394         posixtime failures better.
48395         Improve the test data (in comments only).
48396
48397 2003-06-02  Karl Berry  <karl@gnu.org>
48398
48399         * config/mkinstalldirs (version): new variable.
48400         (--version): new option.
48401         (usage): improve message.
48402
48403 2003-05-30  Karl Berry  <karl@gnu.org>
48404
48405         * lib/mktime.c: update from libc.
48406
48407 2003-05-30  Bruno Haible  <bruno@clisp.org>
48408
48409         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
48410         * config/config.rpath: Upgrade to gettext-0.12.1.
48411
48412 2003-05-30  Bruno Haible  <bruno@clisp.org>
48413
48414         * m4/gettext.m4: Upgrade to gettext-0.12.1.
48415         * m4/nls.m4: New file, from gettext-0.12.1.
48416         * m4/po.m4: New file, from gettext-0.12.1.
48417         * m4/progtest.m4: Upgrade to gettext-0.12.1.
48418
48419 2003-05-30  Bruno Haible  <bruno@clisp.org>
48420
48421         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
48422         * lib/localcharset.h: Likewise.
48423         * lib/localcharset.c: Likewise.
48424
48425 2003-05-29  Karl Berry  <karl@gnu.org>
48426
48427         * config/config.rpath: update from gettext.
48428
48429 2003-05-28  Paul Eggert  <eggert@twinsun.com>
48430
48431         Assume the headers required for C89 freestanding compilers.
48432         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
48433         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
48434         * m4/human.m4 (gl_HUMAN): Likewise.
48435         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
48436         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
48437         * m4/userspec.m4 (gl_USERSPEC): Likewise.
48438         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
48439         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
48440         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
48441
48442 2003-05-28  Paul Eggert  <eggert@twinsun.com>
48443
48444         Assume the headers required for C89 freestanding compilers.
48445         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
48446         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
48447         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
48448         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
48449         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
48450         define, since <limits.h> is guaranteed to do that.
48451         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
48452         * lib/exclude.c: Include <stdbool.h> unconditionally.
48453         * lib/tempname.c: Include <stddef.h> unconditionally.
48454         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
48455         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
48456         <stddef.h> does that.
48457         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
48458         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
48459         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
48460         needed.
48461         * lib/xstrtol.c: Likewise.
48462         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
48463         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
48464
48465         * lib/addext.c (addext): Use assignment rather than cast, to avoid
48466         warnings on some platforms.
48467
48468         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
48469         arbitrarily.
48470
48471 2003-05-26  Jim Meyering  <jim@meyering.net>
48472
48473         Merge in a change from coreutils:
48474         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
48475         that is guaranteed to be `no'.  Use `no_such_member' to indicate
48476         that condition, rather than `-1' which is slightly misleading.
48477         Change the name of the cache variable to have the gl_ prefix.
48478         Prompted by a patch from Richard Dawe for DJGPP.
48479
48480 2003-05-24  Karl Berry  <karl@gnu.org>
48481
48482         * config/config.guess: update from prep.
48483
48484 2003-05-22  Karl Berry  <karl@gnu.org>
48485
48486         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
48487
48488 2003-05-20  Karl Berry  <karl@gnu.org>
48489
48490         * config/config.guess: update from prep.
48491
48492 2003-05-18  Karl Berry  <karl@gnu.org>
48493
48494         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
48495         might actually be set by the user.
48496
48497         * config/depcomp, install-sh, mdate-sh: update from automake.
48498
48499 2003-05-17  Bruno Haible  <bruno@clisp.org>
48500
48501         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
48502         invalid expansion for AC_EGREP_CPP.
48503         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
48504         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
48505         Suggested by Akim Demaille <akim@epita.fr> in
48506         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
48507
48508 2003-05-12  Jim Meyering  <jim@meyering.net>
48509
48510         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
48511         the space-padded-by-default conversion specifiers, %e, %k, %l.
48512
48513 2003-05-12  Bruno Haible  <bruno@clisp.org>
48514
48515         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
48516         the string is longer than 4 KB.
48517
48518 2003-05-11  Karl Berry  <karl@gnu.org>
48519
48520         * config/config.{guess,sub}: update from prep.
48521
48522 2003-05-09  Bruno Haible  <bruno@clisp.org>
48523
48524         * modules/error: Add m4/strerror_r.m4 to file list.
48525
48526 2003-05-03  Bruno Haible  <bruno@clisp.org>
48527
48528         Upgrade to Unicode-4.0.
48529         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
48530         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
48531         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
48532         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
48533         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
48534         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
48535         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
48536         Change width of U+E0100..U+E01EF from 1 to 0.
48537
48538 2003-04-25  Jim Meyering  <jim@meyering.net>
48539
48540         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
48541         of type size_t, not int.
48542
48543 2003-04-25  Bruno Haible  <bruno@clisp.org>
48544
48545         * lib/copy-file.c: Include <stddef.h>, for size_t.
48546
48547 2003-04-21  Paul Eggert  <eggert@twinsun.com>
48548
48549         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
48550         code which expansion is under static control.  Patch imported from
48551         Akim Demaille's patch to Bison; see
48552         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
48553
48554 2003-04-14  Bruno Haible  <bruno@clisp.org>
48555
48556         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
48557
48558 2003-04-11  Jim Meyering  <jim@meyering.net>
48559
48560         Merge changes from Coreutils.
48561
48562         2003-03-22  Jim Meyering  <jim@meyering.net>
48563
48564         * lib/strftime.c (widen): Cast alloca return value to proper type.
48565
48566         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
48567
48568         From GNU libc.
48569         * lib/strftime.c (my_strftime): Handle very large width
48570         specifications for numeric values correctly.  Improve checks for
48571         overflow.
48572
48573         2003-01-19  Jim Meyering  <jim@meyering.net>
48574
48575         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
48576         definitions.
48577         (nl_get_alt_digit) [! defined my_strftime]: Define.
48578         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
48579         _nl_get_alt_digit and _nl_get_walt_digit.
48580
48581         * lib/strftime.c (my_strftime): Merge in locale-related changes from
48582         libc. These changes have no effect outside of _LIBC.
48583
48584 2003-04-10  Bruno Haible  <bruno@clisp.org>
48585
48586         * modules/findprog: New file.
48587         * MODULES.html.sh (func_all_modules): Add it.
48588
48589 2003-04-10  Bruno Haible  <bruno@clisp.org>
48590
48591         * m4/findprog.m4: New file.
48592         * m4/eaccess.m4: New file.
48593
48594 2003-04-10  Bruno Haible  <bruno@clisp.org>
48595
48596         * lib/findprog.h: New file, from GNU gettext.
48597         * lib/findprog.c: New file, from GNU gettext.
48598
48599 2003-04-05  Jim Meyering  <jim@meyering.net>
48600
48601         Merge changes from Coreutils.
48602
48603         * lib/exclude.h (PARAMS): Remove definition and uses.
48604         * lib/exclude.c: Remove uses of `PARAMS'.
48605
48606         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
48607         Add test-cases for DOS filenames. Declare program_name.
48608         (main): Set up program_name.  Patch by Rich Dawe.
48609
48610         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
48611         error from mntctl.
48612         Use mntctl's return value to drive the entry-processing loop, since
48613         we can't rely on the value of the vmt_length member in the last
48614         entry.  On some systems doing so could result in exhausting
48615         virtual memory.  Based in part on a patch from Mike Jetzer.
48616
48617 2003-04-04  Bruno Haible  <bruno@clisp.org>
48618
48619         * modules/linebreak: New file.
48620         * MODULES.html.sh (func_all_modules): Add it.
48621
48622 2003-04-04  Bruno Haible  <bruno@clisp.org>
48623
48624         * m4/linebreak.m4: New file.
48625
48626 2003-04-04  Bruno Haible  <bruno@clisp.org>
48627
48628         * lib/linebreak.h: New file, from GNU gettext.
48629         * lib/linebreak.c: New file, from GNU gettext with slight
48630         modifications.
48631         * lib/lbrkprop.h: New file, from GNU gettext.
48632
48633 2003-04-03  Bruno Haible  <bruno@clisp.org>
48634
48635         * modules/utf8-ucs4: New file.
48636         * modules/utf16-ucs4: New file.
48637         * modules/ucs4-utf8: New file.
48638         * modules/ucs4-utf16: New file.
48639         * MODULES.html.sh (func_all_modules): Add them.
48640
48641 2003-04-03  Bruno Haible  <bruno@clisp.org>
48642
48643         * m4/utf-ucs4.m4: New file.
48644         * m4/ucs4-utf.m4: New file.
48645
48646 2003-04-03  Bruno Haible  <bruno@clisp.org>
48647
48648         * lib/utf8-ucs4.h: New file, from GNU gettext.
48649         * lib/utf16-ucs4.h: New file, from GNU gettext.
48650         * lib/ucs4-utf8.h: New file, from GNU gettext.
48651         * lib/ucs4-utf16.h: New file, from GNU gettext.
48652
48653 2003-04-02  Bruno Haible  <bruno@clisp.org>
48654
48655         * modules/binary-io: New file.
48656         * MODULES.html.sh (func_all_modules): Add it.
48657
48658 2003-04-02  Bruno Haible  <bruno@clisp.org>
48659
48660         * lib/binary-io.h: New file, from GNU gettext.
48661
48662 2003-04-01  Bruno Haible  <bruno@clisp.org>
48663
48664         * modules/pathname: New file.
48665         * MODULES.html.sh (func_all_modules): Add it.
48666
48667 2003-04-01  Bruno Haible  <bruno@clisp.org>
48668
48669         * lib/pathname.h: New file, from GNU gettext.
48670         * lib/concatpath.c: New file, from GNU gettext.
48671
48672 2003-03-30  Bruno Haible  <bruno@clisp.org>
48673
48674         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
48675
48676 2003-03-30  Bruno Haible  <bruno@clisp.org>
48677
48678         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
48679         function chown() doesn't exist.
48680
48681 2003-03-28  Bruno Haible  <bruno@clisp.org>
48682
48683         * modules/copy-file: New file.
48684         * MODULES.html.sh (func_all_modules): Add it.
48685
48686 2003-03-28  Bruno Haible  <bruno@clisp.org>
48687
48688         * m4/copy-file.m4: New file.
48689
48690 2003-03-28  Bruno Haible  <bruno@clisp.org>
48691
48692         * lib/copy-file.h: New file, from GNU gettext.
48693         * lib/copy-file.c: New file, from GNU gettext.
48694
48695 2003-03-18  Jim Meyering  <jim@meyering.net>
48696
48697         * lib/quote.c (quote_n): Fix typo in comment.
48698
48699 2003-03-18  Bruno Haible  <bruno@clisp.org>
48700
48701         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
48702         checking.
48703         * m4/onceonly_2_57.m4: Likewise.
48704
48705 2003-03-17  Bruno Haible  <bruno@clisp.org>
48706
48707         * m4/onceonly.m4: Require autoconf 2.54 or newer.
48708         (m4_quote): Remove macro.
48709         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
48710
48711 2003-03-14  Jim Meyering  <jim@meyering.net>
48712
48713         Merge changes from Coreutils.
48714         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
48715         to be const, in order to avoid warnings.
48716         (obstack_room): Likewise.
48717         (obstack_empty_p): Likewise.
48718
48719 2003-03-14  Bruno Haible  <bruno@clisp.org>
48720
48721         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
48722         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
48723
48724 2003-03-13  Paul Eggert  <eggert@twinsun.com>
48725
48726         Merge changes from Bison.
48727         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
48728         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
48729         when compiling Bison 1.875's `bitset bset = obstack_alloc
48730         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
48731         * lib/hash.c: Include <stdbool.h> unconditionally.
48732
48733 2003-03-13  Paul Eggert  <eggert@twinsun.com>
48734
48735         * m4/onceonly.m4 (m4_quote): New macro.
48736         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
48737         Quote AC_FOREACH variable-expansions properly.
48738
48739 2003-03-13  Paul Eggert  <eggert@twinsun.com>
48740
48741         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
48742
48743 2003-03-09  Paul Eggert  <eggert@twinsun.com>
48744
48745         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
48746         Reported by Bruce Becker; see:
48747         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
48748
48749 2003-03-03  Paul Eggert  <eggert@twinsun.com>
48750             Bruno Haible  <bruno@clisp.org>
48751
48752         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
48753         Reported by John Hughes, see
48754         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
48755
48756 2003-02-20  Bruno Haible  <bruno@clisp.org>
48757
48758         * MODULES.html.sh (func_all_modules): Add poll.
48759
48760 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
48761
48762         * modules/poll: New file.
48763
48764 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
48765
48766         * lib/poll_.h: New file.
48767         * lib/poll.c: New file.
48768
48769 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
48770
48771         * m4/poll.m4: New file.
48772
48773 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
48774
48775         * modules/mathl: New file.
48776
48777 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
48778
48779         * lib/mathl.h: New file.
48780         * lib/acosl.c: New file.
48781         * lib/asinl.c: New file.
48782         * lib/atanl.c: New file.
48783         * lib/ceill.c: New file.
48784         * lib/cosl.c: New file.
48785         * lib/expl.c: New file.
48786         * lib/floorl.c: New file.
48787         * lib/frexpl.c: New file.
48788         * lib/ldexpl.c: New file.
48789         * lib/logl.c: New file.
48790         * lib/sincosl.c: New file.
48791         * lib/sinl.c: New file.
48792         * lib/sqrtl.c: New file.
48793         * lib/tanl.c: New file.
48794         * lib/trigl.c: New file.
48795         * lib/trigl.h: New file.
48796
48797 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
48798
48799         * m4/mathl.m4: New file.
48800
48801 2003-02-18  Bruno Haible  <bruno@clisp.org>
48802
48803         * MODULES.html.sh (func_all_modules): Add mathl.
48804
48805 2003-02-17  Bruno Haible  <bruno@clisp.org>
48806
48807         * modules/mkdtemp: New module.
48808         * MODULES.html.sh (func_all_modules): Add it.
48809
48810 2003-02-17  Bruno Haible  <bruno@clisp.org>
48811
48812         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
48813
48814 2003-02-17  Bruno Haible  <bruno@clisp.org>
48815
48816         * lib/mkdtemp.h: New file, from GNU gettext.
48817         * lib/mkdtemp.c: New file, from GNU gettext.
48818
48819 2003-02-02  Jim Meyering  <jim@meyering.net>
48820
48821         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
48822         e.g. glibc-2.2.93.
48823
48824 2003-01-31  Bruno Haible  <bruno@clisp.org>
48825
48826         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
48827         'rpl_rename'.
48828         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
48829         'rpl_strnlen'.
48830         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
48831         'rpl_strtod'.
48832         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
48833         'rpl_utime'.
48834
48835 2003-01-31  Bruno Haible  <bruno@clisp.org>
48836
48837         * lib/rename.c: #undef rename before defining rpl_rename.
48838         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
48839
48840 2003-01-30  Bruno Haible  <bruno@clisp.org>
48841
48842         * modules/vasnprintf, modules/vasprintf: New modules.
48843         * MODULES.html.sh (func_all_modules): Add them.
48844
48845 2003-01-30  Bruno Haible  <bruno@clisp.org>
48846
48847         * m4/signed.m4: New file, from GNU gettext.
48848         * m4/longdouble.m4: New file, from GNU gettext.
48849         * m4/wchar_t.m4: New file, from GNU gettext.
48850         * m4/wint_t.m4: New file, from GNU gettext.
48851         * m4/vasnprintf.m4: New file.
48852         * m4/vasprintf.m4: New file.
48853
48854 2003-01-30  Bruno Haible  <bruno@clisp.org>
48855
48856         * lib/printf-args.h: New file, from GNU gettext.
48857         * lib/printf-args.c: New file, from GNU gettext.
48858         * lib/printf-parse.h: New file, from GNU gettext.
48859         * lib/printf-parse.c: New file, from GNU gettext.
48860         * lib/vasnprintf.h: New file, from GNU gettext.
48861         * lib/vasnprintf.c: New file, from GNU gettext.
48862         * lib/asnprintf.c: New file, from GNU gettext.
48863         * lib/vasprintf.h: New file, from GNU gettext with modifications.
48864         * lib/vasprintf.c: New file, from GNU gettext.
48865         * lib/asprintf.c: New file, from GNU gettext.
48866
48867 2003-01-29  Bruno Haible  <bruno@clisp.org>
48868
48869         * modules/stpncpy: New module.
48870         * MODULES.html.sh (func_all_modules): Add it.
48871
48872 2003-01-29  Bruno Haible  <bruno@clisp.org>
48873
48874         * m4/stpncpy.m4: New file.
48875
48876 2003-01-29  Bruno Haible  <bruno@clisp.org>
48877
48878         * lib/stpncpy.h: New file, from GNU gettext with modifications.
48879         * lib/stpncpy.c: New file, from GNU gettext with modifications.
48880
48881 2003-01-28  Bruno Haible  <bruno@clisp.org>
48882
48883         * modules/c-ctype: New module.
48884         * MODULES.html.sh (func_all_modules): Add it.
48885
48886 2003-01-28  Bruno Haible  <bruno@clisp.org>
48887
48888         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
48889         Paul Eggert.
48890         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
48891         Paul Eggert.
48892
48893 2003-01-27  Bruno Haible  <bruno@clisp.org>
48894
48895         * modules/xsetenv: New module.
48896         * MODULES.html.sh (func_all_modules): Add it.
48897
48898 2003-01-27  Bruno Haible  <bruno@clisp.org>
48899
48900         * lib/xsetenv.h: New file, from GNU gettext.
48901         * lib/xsetenv.c: New file, from GNU gettext.
48902
48903 2003-01-23  Jim Meyering  <jim@meyering.net>
48904
48905         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
48906         from working on systems without dirfd (at least Irix and OSF1/Tru64).
48907
48908 2003-01-23  Bruno Haible  <bruno@clisp.org>
48909
48910         * modules/minmax: New module.
48911         * MODULES.html.sh (func_all_modules): Add it.
48912
48913 2003-01-23  Bruno Haible  <bruno@clisp.org>
48914
48915         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
48916         Eggert.
48917
48918 2003-01-22  Bruno Haible  <bruno@clisp.org>
48919
48920         * modules/exit: New module.
48921         * MODULES.html.sh (func_all_modules): Add it.
48922
48923 2003-01-22  Bruno Haible  <bruno@clisp.org>
48924
48925         * lib/exit.h: New file, from GNU gettext.
48926
48927 2003-01-19  Bruno Haible  <bruno@clisp.org>
48928
48929         * gnulib-tool: Recognize option --extract-maintainer.
48930         (func_get_maintainer): New function.
48931         * modules/*: Add Maintainer entry.
48932
48933 2003-01-16  Jim Meyering  <jim@meyering.net>
48934
48935         * m4/regex.m4: The `regex' struct is both input and output.
48936         Initialize it before each use.  Patch by Tim Waugh.
48937
48938 2003-01-16  Bruno Haible  <bruno@clisp.org>
48939
48940         * MODULES.html.sh: Add a table of contents. Add the module name as
48941         leftmost column. Add hyperlinks.
48942
48943 2003-01-15  Bruno Haible  <bruno@clisp.org>
48944
48945         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
48946
48947 2003-01-15  Bruno Haible  <bruno@clisp.org>
48948
48949         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
48950         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
48951         suffix.
48952
48953 2003-01-15  Bruno Haible  <bruno@clisp.org>
48954
48955         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
48956
48957 2003-01-15  Bruno Haible  <bruno@clisp.org>
48958
48959         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
48960         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
48961
48962 2003-01-14  Jim Meyering  <jim@meyering.net>
48963
48964         * lib/same.c (same_name): Tweak a comment.
48965
48966 2003-01-14  Bruno Haible  <bruno@clisp.org>
48967
48968         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
48969         when a string comparison is sufficient.
48970
48971 2003-01-14  Bruno Haible  <bruno@clisp.org>
48972
48973         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
48974         'unsigned int'.
48975
48976 2003-01-14  Bruno Haible  <bruno@clisp.org>
48977
48978         * lib/hash-pjw.c: Add comment about low quality of this function.
48979
48980 2003-01-13  Bruno Haible  <bruno@clisp.org>
48981
48982         * modules/stpcpy: Distribute lib/stpcpy.h.
48983         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
48984
48985 2003-01-13  Bruno Haible  <bruno@clisp.org>
48986
48987         * modules/*: Add a description.
48988         * modules/strpbrk: Fix Makefile.am snippet.
48989         * modules/strtoimax: Fix dependencies.
48990         * modules/strtoumax: Likewise.
48991
48992 2003-01-13  Bruno Haible  <bruno@clisp.org>
48993
48994         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
48995         * modules/alloca (Makefile.am): All object files depend on alloca.h.
48996         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
48997
48998 2003-01-13  Bruno Haible  <bruno@clisp.org>
48999
49000         * gnulib-tool (func_create_testdir): Store config/* files in the main
49001         directory.
49002         * config.rpath: Move to ...
49003         * config/config.rpath: ... here.
49004         * modules/gettext: Contains config/config.rpath, not config.rpath.
49005         * modules/iconv: Likewise.
49006
49007 2003-01-12  Paul Eggert  <eggert@twinsun.com>
49008
49009         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
49010         to avoid collisions with libcurses and libreadline.
49011
49012         * m4/getstr.m4: Remove.
49013         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
49014
49015 2003-01-12  Paul Eggert  <eggert@twinsun.com>
49016
49017         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
49018         to avoid collisions with libcurses and libreadline.
49019
49020         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
49021         * lib/getstr.h, getstr.c: Remove.
49022         * lib/getline.c: Include "getline.h", to check interface.
49023         Move body of old getstr.c here: this defines MIN_CHUNK and
49024         declares getdelim2, which is renamed from getstr.
49025         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
49026
49027         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
49028         All uses changed.
49029         * lib/linebuffer.h: Likewise.
49030         (readline): Remove backward-compatibility macro.
49031
49032 2003-01-12  Paul Eggert  <eggert@twinsun.com>
49033
49034         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
49035         to avoid collisions with libcurses and libreadline.
49036         * getstr: Remove.
49037         * MODULES.html.sh: Remove getstr.
49038         * modules/getline: Depend on unlocked-io, not getstr.
49039
49040 2003-01-12  Jim Meyering  <jim@meyering.net>
49041
49042         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
49043
49044 2003-01-10  Bruno Haible  <bruno@clisp.org>
49045
49046         * modules/alloca: Change Makefile.am requirements. Simplify Include
49047         requirements. Add lib/alloca_.h to file list.
49048
49049 2003-01-10  Bruno Haible  <bruno@clisp.org>
49050
49051         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
49052
49053 2003-01-10  Bruno Haible  <bruno@clisp.org>
49054
49055         * lib/alloca_.h: New file.
49056         * lib/getdate.y: Unconditionally include alloca.h.
49057         * lib/makepath.c: Likewise.
49058         * lib/setenv.c: Likewise.
49059         * lib/userspec.c: Likewise.
49060
49061 2003-01-09  Karl Berry  <karl@gnu.org>
49062
49063         * MODULES.html.sh: include `dirname $0` in PATH, to find
49064         gnulib-tool.
49065
49066 2003-01-09  Bruno Haible  <bruno@clisp.org>
49067
49068         * modules/stdbool: Change configure.ac, Makefile.am requirements.
49069         Simplify Include requirements. Add lib/stdbool.h.in to file list.
49070
49071 2003-01-09  Bruno Haible  <bruno@clisp.org>
49072
49073         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
49074
49075 2003-01-09  Bruno Haible  <bruno@clisp.org>
49076
49077         * lib/stdbool.h.in: New file.
49078
49079 2003-01-09  Bruno Haible  <bruno@clisp.org>
49080
49081         * gnulib-tool (func_all_modules): Ignore files ending in ~.
49082         * MODULES.html.sh: Likewise.
49083
49084 2003-01-08  Jim Meyering  <jim@meyering.net>
49085
49086         * lib/full-write.c: Undefine and define-away `const' after inclusion
49087         of errno.h, not before.  Suggestion from Bruno Haible.
49088
49089 2003-01-08  Bruno Haible  <bruno@clisp.org>
49090
49091         * modules/full-read: Depend on full-write.
49092
49093 2003-01-08  Bruno Haible  <bruno@clisp.org>
49094
49095         * lib/safe-read.c: Include specification header first, to ensure its
49096         selfcontainedness.
49097         * lib/full-write.c: Likewise.
49098
49099 2003-01-07  Jim Meyering  <jim@meyering.net>
49100
49101         * lib/full-write.c: Rework so that it may serve to define full_read,
49102         too.
49103         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
49104
49105 2003-01-07  Bruno Haible  <bruno@clisp.org>
49106
49107         * lib/strtoimax.c: Include <stdint.h> as an alternative to
49108         <inttypes.h>.
49109         * lib/xstrtol.h: Likewise.
49110         * lib/xstrtoimax.c: Likewise.
49111         * lib/xstrtoumax.c: Likewise.
49112         * lib/human.h: Likewise.
49113
49114         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
49115         on systems that have <inttypes.h> but not <stdint.h>.
49116
49117 2003-01-07  Bruno Haible  <bruno@clisp.org>
49118
49119         * MODULES.html.sh: Add copyright notice.
49120         (missed_files): Omit CVS directory entries.
49121         (func_module): Make it work with sed-3.02.
49122         * MODULES.txt: Remove file.
49123
49124 2003-01-06  Jim Meyering  <jim@meyering.net>
49125
49126         * lib/version-etc.c: Update year in translatable copyright string.
49127
49128 2003-01-03  Karl Berry  <karl@gnu.org>
49129
49130         * config/config.{guess,sub}: update from prep.
49131
49132 2003-01-02  Karl Berry  <karl@gnu.org>
49133
49134         * doc/COPYING.DOC: belatedly updated to 1.2.
49135
49136 2003-01-01  Karl Berry  <karl@gnu.org>
49137
49138         * gnulib-tool (func_verify_module): report module name $module in
49139         error message, not $1.
49140         * gnulib-tool (create-testdir): don't complain if destdir couldn't
49141         be created, only if it doesn't exist.
49142         * gnulib-tool (last_checkin_date): don't expand the $Date here.
49143
49144 2002-12-31  Paul Eggert  <eggert@twinsun.com>
49145
49146         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
49147
49148 2002-12-31  Paul Eggert  <eggert@twinsun.com>
49149
49150         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
49151         memcmp if strcoll doesn't work.
49152
49153 2002-12-31  Bruno Haible  <bruno@clisp.org>
49154
49155         * lib/utime.c (utime_null): No need to call ftruncate if the file was
49156         nonempty.
49157
49158 2002-12-31  Bruno Haible  <bruno@clisp.org>
49159
49160         * lib/memcoll.c (STRCOLL): New macro.
49161         (memcoll): Use it.
49162
49163 2002-12-31  Bruno Haible  <bruno@clisp.org>
49164
49165         * lib/localcharset.h: New file.
49166         * lib/localcharset.c: Include it.
49167         * lib/unicodeio.c: Likewise.
49168
49169 2002-12-31  Bruno Haible  <bruno@clisp.org>
49170
49171         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
49172         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
49173
49174 2002-12-31  Bruno Haible  <bruno@clisp.org>
49175
49176         * lib/getline.h: Include <stddef.h>, for size_t.
49177
49178         * lib/unicodeio.h: Include <stddef.h>, for size_t.
49179         * lib/unicodeio.c: Don't include <stddef.h>.
49180
49181 2002-12-31  Bruno Haible  <bruno@clisp.org>
49182
49183         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
49184         HAVE_TM_ZONE.
49185
49186 2002-12-24  Karl Berry  <karl@gnu.org>
49187
49188         * config/config.guess: update from prep.
49189
49190 2002-12-24  Bruno Haible  <bruno@clisp.org>
49191
49192         General infrasructure.
49193         * m4/README: Rewritten.
49194         * m4/onceonly.m4: New file.
49195         * m4/onceonly_2_57.m4: New file.
49196
49197         Module atexit.
49198         * m4/atexit.m4: New file.
49199
49200         Module strtod.
49201         * m4/strtod.m4: New file.
49202
49203         Module strtol.
49204         * m4/strtol.m4: New file.
49205
49206         Module strtoul.
49207         * m4/strtoul.m4: New file.
49208
49209         Module memchr.
49210         * m4/memchr.m4: New file.
49211
49212         Module memcmp.
49213         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
49214         (jm_FUNC_MEMCMP): Invoke it.
49215
49216         Module memcpy.
49217         * m4/memcpy.m4: New file.
49218
49219         Module memmove.
49220         * m4/memmove.m4: New file.
49221
49222         Module memset.
49223         * m4/memset.m4: New file.
49224
49225         Module strcspn.
49226         * m4/strcspn.m4: New file.
49227
49228         Module strpbrk.
49229         * m4/strpbrk.m4: New file.
49230
49231         Module strstr.
49232         * m4/strstr.m4: New file.
49233
49234         Module strerror.
49235         * m4/strerror.m4: New file.
49236
49237         Module mktime.
49238         * m4/mktime.m4: Renamed from jm-mktime.m4.
49239         (gl_PREREQ_MKTIME): New macro.
49240         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
49241
49242         Module malloc.
49243         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
49244         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
49245         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
49246
49247         Module realloc.
49248         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
49249         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
49250         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
49251
49252         Module strftime.
49253         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
49254         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
49255         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
49256         gl_TM_GMTOFF.
49257         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
49258
49259         Module xalloc.
49260         * m4/xalloc.m4: New file.
49261
49262         Module alloca.
49263         * m4/alloca.m4: New file.
49264
49265         Module putenv.
49266         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
49267         (jm_FUNC_PUTENV): Invoke it.
49268
49269         Module setenv.
49270         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
49271         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
49272         when invoked twice.
49273         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
49274         gt_FUNC_SETENV.
49275
49276         Module memrchr.
49277         * m4/memrchr.m4: New file.
49278
49279         Module stpcpy.
49280         * m4/stpcpy.m4: New file.
49281
49282         Module strcase.
49283         * m4/strcase.m4: New file.
49284
49285         Module strdup.
49286         * m4/strdup.m4: New file.
49287
49288         Module strnlen.
49289         * m4/strnlen.m4: New file.
49290
49291         Module strndup.
49292         * m4/strndup.m4: New file.
49293
49294         Module xstrtod.
49295         * m4/xstrtod.m4: New file.
49296
49297         Module xstrtol.
49298         * m4/xstrtol.m4: New file.
49299
49300         Module getdate.
49301         * m4/getdate.m4: New file.
49302
49303         Module unlocked-io.
49304         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
49305         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
49306         * m4/jm-glibc-io.m4n: Remove file.
49307
49308         Module long-options.
49309         * m4/long-options.m4: New file.
49310
49311         Module md5.
49312         * m4/md5.m4: New file.
49313
49314         Module sha.
49315         * m4/sha.m4: New file.
49316
49317         Module getstr.
49318         * m4/getstr.m4: New file.
49319
49320         Module getline.
49321         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
49322         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
49323         <sys/types.h>, for size_t. Use the function name gnu_getline, not
49324         simply getline. Infoke gl_PREREQ_GETLINE.
49325
49326         Module obstack.
49327         * m4/obstack.m4: New file.
49328
49329         Module hash.
49330         * m4/hash.m4: New file.
49331
49332         Module readtokens.
49333         * m4/readtokens.m4: New file.
49334
49335         Module strverscmp.
49336         * m4/strverscmp.m4: New file.
49337
49338         Module stdbool.
49339         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
49340         OSF/1.
49341
49342         Module strtoll.
49343         * m4/strtoll.m4: New file.
49344
49345         Module strtoull.
49346         * m4/strtoull.m4: New file.
49347
49348         Module strtoimax.
49349         * m4/strtoimax.m4: New file.
49350
49351         Module strtoumax.
49352         * m4/strtoumax.m4: New file.
49353
49354         Module xstrtoimax.
49355         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
49356         jm_AC_PREREQ_XSTRTOIMAX.
49357         Moved the strtol prerequisites to strtol.m4.
49358         Moved the strtoll prerequisites to strtoll.m4.
49359         Moved the strtoimax prerequisites to strtoimax.m4.
49360
49361         Module xstrtoumax.
49362         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
49363         jm_AC_PREREQ_XSTRTOUMAX.
49364         Moved the strtoul prerequisites to strtoul.m4.
49365         Moved the strtoull prerequisites to strtoull.m4.
49366         Moved the strtoumax prerequisites to strtoumax.m4.
49367
49368         Module chown.
49369         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
49370         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
49371
49372         Module dup2.
49373         * m4/dup2.m4: New file.
49374
49375         Module ftruncate.
49376         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
49377         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
49378
49379         Module getgroups.
49380         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
49381         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
49382
49383         Module gettimeofday.
49384         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
49385         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
49386         gl_PREREQ_GETTIMEOFDAY.
49387
49388         Module mkdir.
49389         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
49390         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
49391
49392         Module mkstemp.
49393         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
49394         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
49395         jm_AC_TYPE_UINTMAX_T.
49396         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
49397
49398         Module stat.
49399         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
49400         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
49401
49402         Module lstat.
49403         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
49404         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
49405
49406         Module timespec.
49407         * m4/timespec.m4 (gl_TIMESPEC): New macro.
49408         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
49409         * m4/st_mtim.m4: Indentation.
49410
49411         Module nanosleep.
49412         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
49413         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
49414         gl_PREREQ_NANOSLEEP.
49415
49416         Module regex.
49417         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
49418         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
49419         (gl_REGEX): New macro.
49420
49421         Module rename.
49422         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
49423         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
49424
49425         Module rmdir.
49426         * m4/rmdir.m4: New file.
49427
49428         Module utime.
49429         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
49430         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
49431         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
49432
49433         Module dirname.
49434         * m4/dirname.m4: New file.
49435
49436         Module getopt.
49437         * m4/getopt.m4: New file.
49438
49439         Module unistd-safer.
49440         * m4/unistd-safer.m4: New file.
49441
49442         Module fnmatch.
49443         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
49444         declaration.
49445         (gl_PREREQ_FNMATCH_EXTRA): New macro.
49446         (gl_FUNC_FNMATCH_POSIX): New macro.
49447         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
49448         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
49449         simply fnmatch.
49450
49451         Module exclude.
49452         * m4/exclude.m4: New file.
49453
49454         Module human.
49455         * m4/human.m4: New file.
49456
49457         Module acl.
49458         * m4/acl.m4: Nop.
49459
49460         Module backupfile.
49461         * m4/backupfile.m4: New file.
49462         * m4/d-ino.m4: Indentation.
49463
49464         Module fsusage.
49465         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
49466         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
49467         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
49468
49469         Module dirfd.
49470         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
49471         requirements.
49472
49473         Module euidaccess.
49474         * m4/euidaccess.m4: New file.
49475
49476         Module file-type.
49477         * m4/file-type.m4: New file.
49478
49479         Module fileblocks.
49480         * m4/fileblocks.m4: New file.
49481
49482         Module filemode.
49483         * m4/filemode.m4: New file.
49484
49485         Module isdir.
49486         * m4/isdir.m4: New file.
49487
49488         Module lchown.
49489         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
49490         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
49491
49492         Module makepath.
49493         * m4/makepath.m4: New file.
49494
49495         Module modechange.
49496         * m4/modechange.m4: New file.
49497
49498         Module mountlist.
49499         * m4/mountlist.m4: New file.
49500         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
49501         Indentation.
49502
49503         Module path-concat.
49504         * m4/path-concat.m4: New file.
49505
49506         Module pathmax.
49507         * m4/pathmax.m4: New file.
49508
49509         Module same.
49510         * m4/same.m4: New file.
49511
49512         Module save-cwd.
49513         * m4/save-cwd.m4: New file.
49514
49515         Module savedir.
49516         * m4/savedir.m4: New file.
49517
49518         Module xgetcwd.
49519         * m4/xgetcwd.m4: New file.
49520         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
49521
49522         Module xreadlink.
49523         * m4/xreadlink.m4: New file.
49524
49525         Module safe-read.
49526         * m4/safe-read.m4: New file.
49527
49528         Module safe-write.
49529         * m4/safe-write.m4: New file.
49530
49531         Module closeout.
49532         * m4/closeout.m4: New file.
49533
49534         Module stdio-safer.
49535         * m4/stdio-safer.m4: New file.
49536
49537         Module getpass.
49538         * m4/getpass.m4: New file.
49539
49540         Module getugroups.
49541         * m4/getugroups.m4: New file.
49542
49543         Module group-member.
49544         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
49545         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
49546
49547         Module idcache.
49548         * m4/idcache.m4: New file.
49549
49550         Module userspec.
49551         * m4/userspec.m4: New file.
49552
49553         Module gettime.
49554         * m4/clock_time.m4: New file.
49555         * m4/gettime.m4: New file.
49556
49557         Module settime.
49558         * m4/settime.m4: New file.
49559
49560         Module posixtm.
49561         * m4/posixtm.m4: New file.
49562
49563         Module gethostname.
49564         * m4/gethostname.m4: New file.
49565
49566         Module canon-host.
49567         * m4/canon-host.m4: New file.
49568
49569         Module gettext.
49570         * m4/codeset.m4: New file, from gettext-0.11.5.
49571         * m4/gettext.m4: New file, from gettext-0.11.5.
49572         * m4/glibc21.m4: New file, from gettext-0.11.5.
49573         * m4/iconv.m4: New file, from gettext-0.11.5.
49574         * m4/intdiv0.m4: New file, from gettext-0.11.5.
49575         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
49576         * m4/inttypes.m4: New file, from gettext-0.11.5.
49577         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
49578         * m4/isc-posix.m4: New file, from gettext-0.11.5.
49579         * m4/lcmessage.m4: New file, from gettext-0.11.5.
49580         * m4/lib-ld.m4: New file, from gettext-0.11.5.
49581         * m4/lib-link.m4: New file, from gettext-0.11.5.
49582         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
49583         * m4/progtest.m4: New file, from gettext-0.11.5.
49584         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
49585         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
49586         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
49587
49588         Module localcharset.
49589         * m4/localcharset.m4: New file.
49590
49591         Module hard-locale.
49592         * m4/hard-locale.m4: New file.
49593
49594         Module mbswidth.
49595         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
49596         onceonly macros.
49597         * m4/mbrtowc.m4: Add comment.
49598
49599         Module memcasecmp.
49600         * m4/memcasecmp.m4: New file.
49601
49602         Module memcoll.
49603         * m4/memcoll.m4: New file.
49604
49605         Module unicodeio.
49606         * m4/unicodeio.m4: New file.
49607
49608         Module rpmatch.
49609         * m4/rpmatch.m4: New file.
49610
49611         Module yesno.
49612         * m4/yesno.m4: New file.
49613
49614         Module exitfail.
49615         * m4/exitfail.m4: New file.
49616
49617         Module c-stack.
49618         * m4/c-stack.m4 (gl_C_STACK): New macro.
49619         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
49620
49621         Module error.
49622         * m4/error.m4 (gl_ERROR): New macro.
49623         (jm_PREREQ_ERROR): Use onceonly macros.
49624
49625         Module fatal.
49626         * m4/fatal.m4: New file.
49627
49628         Module getloadavg.
49629         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
49630         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
49631
49632         Module getpagesize.
49633         * m4/getpagesize.m4: New file.
49634
49635         Module getusershell.
49636         * m4/getusershell.m4: New file.
49637
49638         Module physmem.
49639         * m4/physmem.m4: New file.
49640
49641         Module posixver.
49642         * m4/posixver.m4: New file.
49643
49644         Module quotearg.
49645         * m4/quotearg.m4: New file.
49646
49647         Module quote.
49648         * m4/quote.m4: New file.
49649
49650         Module readutmp.
49651         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
49652
49653         Module sig2str.
49654         * m4/sig2str.m4: New file.
49655
49656         Other.
49657         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
49658         ulonglong.m4.
49659         * m4/intmax_t.m4: New file.
49660         * m4/d-type.m4: Indentation.
49661         * m4/jm-macros.m4: Update.
49662         * m4/prereq.m4 (jm_PREREQ): Update.
49663         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
49664         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
49665         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
49666         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
49667         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
49668         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
49669         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
49670         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
49671         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
49672         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
49673         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
49674         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
49675         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
49676         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
49677         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
49678         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
49679         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
49680         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
49681         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
49682
49683 2002-12-24  Bruno Haible  <bruno@clisp.org>
49684
49685         * MODULES.txt: Update according to m4/ changes.
49686
49687         Module gettext.
49688         * config.rpath: New file, from gettext-0.11.5.
49689
49690         * modules/*: New module descriptions.
49691         * gnulib-tool: New file.
49692         * MODULES.html.sh: New file.
49693
49694 2002-12-21  Karl Berry  <karl@gnu.org>
49695
49696         * doc/fdl.texi: update to version 1.2.
49697
49698 2002-12-19  Karl Berry  <karl@gnu.org>
49699
49700         * config/config.guess: update from prep.
49701
49702 2002-12-18  Bruno Haible  <bruno@clisp.org>
49703
49704         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
49705         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
49706
49707 2002-12-17  Bruno Haible  <bruno@clisp.org>
49708
49709         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
49710         stdlib.h, string.h.
49711
49712 2002-12-17  Bruno Haible  <bruno@clisp.org>
49713
49714         * lib/canon-host.c (strdup): Remove unused declaration.
49715
49716         * lib/fsusage.c: Include full_read.h.
49717         (get_fs_usage): Use full_read instead of safe_read.
49718
49719         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
49720
49721 2002-12-12  Karl Berry  <karl@gnu.org>
49722
49723         * config/config.guess: update from prep.
49724
49725 2002-12-11  Bruno Haible  <bruno@clisp.org>
49726
49727         * m4/setenv.m4: New file, from gettext-0.11.5.
49728
49729 2002-12-11  Bruno Haible  <bruno@clisp.org>
49730
49731         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
49732         not unsetenv().
49733         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
49734         modifications:
49735
49736         2002-12-11  Bruno Haible  <bruno@clisp.org>
49737
49738                 * setenv.c (alloca): Fall back to malloc.
49739                 (freea): New macro.
49740                 (setenv): Use freea() to free memory allocated with alloca().
49741
49742         2002-11-13  Bruno Haible  <bruno@clisp.org>
49743
49744                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
49745                 function declarations.
49746                 * unsetenv.c (unsetenv): Likewise.
49747
49748         2002-03-04  Bruno Haible  <bruno@clisp.org>
49749
49750                 Portability to AIX 4.3.3.
49751                 * unsetenv.c: New file, extracted from setenv.c.
49752                 * setenv.c: Move the unsetenv() function to unsetenv.c.
49753
49754         2001-12-20  Bruno Haible  <bruno@clisp.org>
49755
49756                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
49757                 use malloc instead. For SunOS 4.
49758
49759         2001-12-11  Bruno Haible  <bruno@clisp.org>
49760
49761                 * setenv.c: Declare alloca.
49762                 (compar_fn_t): New typedef.
49763                 (KNOWN_VALUE, STORE_VALUE): Use it.
49764
49765         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
49766         setenv.h.
49767
49768 2002-12-10  Paul Eggert  <eggert@twinsun.com>
49769
49770         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
49771         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
49772         Choose values that are less likely to collide with system fnmatch
49773         options.
49774         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
49775         defined (e.g., a pure POSIX system).
49776         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
49777         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
49778
49779 2002-12-06  Paul Eggert  <eggert@twinsun.com>
49780
49781         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
49782         a pain in practice to deal with generated m4 files.  This change
49783         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
49784
49785         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
49786         and jm-glibc-io.m4, as they are no longer a special case.
49787         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
49788         kludge and the auto-generation stuff.  Check only whether the
49789         functions are declared, not whether they exist, since older hosts
49790         that don't declare the functions can't use the optimization anyway.
49791
49792 2002-12-06  Jim Meyering  <jim@meyering.net>
49793
49794         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
49795
49796         Merge in changes from libc's misc/error.c, in preparation
49797         for the merge of gnulib's changes back into libc.
49798
49799         * lib/error.c (_): Define only if not already defined.
49800         Move definition to follow all #include directives.
49801         Include unlocked-io.h only if !_LIBC.
49802         [_LIBC]: Include <libio/libioP.h>.
49803         [USE_IN_LIBIO]: Include <libio/iolibio.h>
49804         (fflush): Tweak definition to use INTUSE.
49805         (putc): Define.
49806
49807 2002-12-05  Paul Eggert  <eggert@twinsun.com>
49808
49809         * lib/alloca.c [defined emacs]: Include "lisp.h".
49810         (xalloc_die) [defined emacs]: New macro.
49811         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
49812         [! defined emacs]: Include <xalloc.h>.
49813         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
49814         (pointer): Typedef to POINTER_TYPE *.
49815         (malloc): Remove decl; we now always use xmalloc.
49816         (alloca): Use old-style definition, since Emacs needs this.
49817         Check for arithmetic overflow when computing combined size.
49818
49819 2002-12-04  Paul Eggert  <eggert@twinsun.com>
49820
49821         Do not generate unlocked-io.h automatically, since it's easier to
49822         maintain it by hand.
49823
49824         * lib/unlocked-io.h: New file, from GNU diffutils,
49825         but with proper copyright notice and attribution.
49826         * lib/gen-uio: Remove.
49827         * lib/Makefile.am: Add copyright notice.
49828         (libfetish_a_SOURCES): Add unlocked-io.h.
49829         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
49830         (DISTCLEANFILES, io_functions): Remove macros.
49831         (EXTRA_DIST): Remove gen_uio.
49832         (unlocked-io.h): Remove rule.
49833
49834 2002-12-04  Jim Meyering  <jim@meyering.net>
49835
49836         Reflect the fact that stat.c and lstat.c are no longer generated.
49837         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
49838         (DISTCLEANFILES): Likewise.
49839         (EXTRA_DIST): Likewise.
49840         (all_local): Don't depend on stat.c or lstat.c.
49841         (stat.c, lstat.c): Remove rules.
49842         (EXTRA_DIST): Remove xstat.in.
49843
49844         * lib/xstat.in: Remove file.  Contents moved into stat.c.
49845         * lib/stat.c: New file.  Contents mostly from xstat.in.
49846         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
49847         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
49848
49849         * lib/safe-read.c: Rework so that it may serve to define safe_write,
49850         too.
49851         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
49852
49853 2002-12-03  Jim Meyering  <jim@meyering.net>
49854
49855         * lib/safe-read.c, safe-write.c: Change variable names and comments,
49856         but not semantics, to minimize the differences between these two files.
49857         (safe_read): Change comment to mention SAFE_READ_ERROR.
49858
49859         * lib/safe-read.c (IS_EINTR): Define.
49860         (safe_read): Use IS_EINTR in place of in-function cpp directives.
49861
49862 2002-12-02  Jim Meyering  <jim@meyering.net>
49863
49864         * lib/safe-read.c (EINTR): Define.
49865         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
49866         (INT_MAX): Provide fallback.
49867         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
49868
49869         * lib/safe-read.h (SAFE_READ_ERROR): Define.
49870
49871 2002-12-02  Bruno Haible  <bruno@clisp.org>
49872
49873         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
49874         Define, taken from safe-read.c.
49875         (INT_MAX): Provide fallback.
49876         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
49877         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
49878
49879         * lib/safe-read.c (EINTR): Remove definition.
49880         (safe_read): Don't use EINTR if it is absent.
49881
49882 2002-12-01  Jim Meyering  <jim@meyering.net>
49883
49884         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
49885         zero.
49886         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
49887
49888 2002-11-27  Paul Eggert  <eggert@twinsun.com>
49889
49890         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
49891         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
49892         with `if (! (value < limit)) abort ();', for readability.
49893
49894 2002-11-26  Karl Berry  <karl@gnu.org>
49895
49896         * lib/strdup.c: copy from libc again, with jim's ok.
49897         * lib/.cppi-disable: re-add strdup.c
49898
49899 2002-11-25  Karl Berry  <karl@gnu.org>
49900
49901         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
49902         instead of "strtol.c".
49903
49904 2002-11-25  Karl Berry  <karl@gnu.org>
49905
49906         * config/install-sh: update from automake for variable quoting, $0 in
49907         error msgs, etc.
49908
49909         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
49910         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
49911         entry.
49912
49913 2002-11-25  Jim Meyering  <jim@meyering.net>
49914
49915         * lib/mktime.c: Sync from libc, now that it has the latest fix.
49916
49917 2002-11-24  Karl Berry  <karl@gnu.org>
49918
49919         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
49920         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
49921
49922 2002-11-24  Jim Meyering  <jim@meyering.net>
49923
49924         Update from coreutils:
49925
49926         * lib/mktime.c: Merge in changes from libc.
49927
49928         Avoid a link-time failure on some Linux systems.
49929         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
49930         (otherwise).
49931         (__mon_yday): Declare with the STATIC attribute.
49932         (__mktime_internal): Likewise.
49933         Based on a report from Greg Schafer.
49934
49935 2002-11-23  Jim Meyering  <jim@meyering.net>
49936
49937         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
49938         Use `unsigned', not `int', as type of index.
49939
49940         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
49941
49942         * lib/fsusage.c: Remove unneeded parentheses around operands of
49943         `defined'.
49944
49945 2002-11-22  Paul Eggert  <eggert@twinsun.com>
49946
49947         * lib/quotearg.h: Allow multiple inclusion by surrounding with
49948         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
49949         so that we can be included first.
49950         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
49951         * lib/quotearg.c: Include quotearg.h immediately after config.h.
49952         No need to include stddef.h or sys/types.h any more.
49953         Surround local include files with "", not "<>".
49954         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
49955         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
49956         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
49957         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
49958         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
49959         (ISPRINT): Remove; no longer needed now that we assume C89.
49960
49961         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
49962         Preserve errno.
49963
49964         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
49965         quotearg_char): Use SIZE_MAX rather than
49966         (size_t) -1 when we are talking about "infinity".
49967
49968         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
49969
49970 2002-11-22  Paul Eggert  <eggert@twinsun.com>
49971
49972         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
49973         hint that one should use `if (! x) abort ();' rather than `assert
49974         (x);', and anyway it's one less thing to worry about configuring.
49975         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
49976         hash_rehash, hash_insert): Use abort rather than assert.
49977
49978 2002-11-22  Bruno Haible  <bruno@clisp.org>
49979
49980         * lib/safe-read.h: Assume C89. Add comments.
49981         (safe_read): Change return type to size_t.
49982         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
49983         byte counts > SSIZE_MAX correctly.
49984         * lib/safe-write.h: New file.
49985         * lib/safe-write.c: New file.
49986         * lib/full-read.h: New file.
49987         * lib/full-read.c: New file.
49988         * lib/full-write.h: Assume C89. Add comments.
49989         * lib/full-write.c: Include safe-write.h.
49990         (full_write): Rewritten to use safe_write.
49991         Suggested by Jim Meyering and Paul Eggert.
49992
49993 2002-11-21  Jim Meyering  <jim@meyering.net>
49994
49995         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
49996
49997         Merge in changes from the coreutils.
49998
49999         2002-09-25  Paul Eggert  <eggert@twinsun.com>
50000         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
50001         <stdint.h>.
50002         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
50003         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
50004         int.  Work more efficiently if X is the same width as uintmax_t.
50005         Do not compare X to -1, to avoid bogus compiler warning.
50006         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
50007         Don't assume that f_frsize and f_bsize are the same type.
50008
50009         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
50010         warning on FreeBSD.
50011
50012         * lib/makepath.c (make_path): Restore umask *before* creating the final
50013         component.
50014         (make_path): Minor reformatting.
50015
50016         * lib/xmalloc.c: Adjust to work with new autoconf macros,
50017         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
50018         HAVE_MALLOC/HAVE_REALLOC.
50019
50020         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
50021         dummy ones.  At least on GNU/Linux systems, `auto' means something
50022         else.
50023         From Michael Stone.
50024
50025 2002-11-21  Bruno Haible  <bruno@clisp.org>
50026
50027         Remove case insensitive option matching.
50028         * lib/argmatch.h (argcasematch): Remove declaration.
50029         (ARGCASEMATCH): Remove macro.
50030         (__xargmatch_internal): Remove case_sensitive argument.
50031         (XARGMATCH): Update.
50032         (XARGCASEMATCH): Remove macro.
50033         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
50034         case_sensitive argument.
50035         (argcasematch): Remove function.
50036         (__xargmatch_internal): Remove case_sensitive argument.
50037         (main): Use XARGMATCH instead of XARGCASEMATCH.
50038
50039         * lib/xmalloc.c: Change compile-time error message. Add comment about
50040         required autoconf version.
50041
50042 2002-11-20  Paul Eggert  <eggert@twinsun.com>
50043
50044         Merge argmatch cleanups from Bison.  Assume C89.
50045
50046         * lib/argmatch.c: Include config.h here, not in argmatch.h.
50047         Include stdlib.h, for EXIT_FAILURE.
50048         Always include <string.h>, since we assume C89.
50049         (EXIT_FAILURE): Remove pre-C89 bug workaround.
50050         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
50051         Include <stddef.h> instead, since it's all we need for size_t.
50052         (PARAMS): Remove.  All uses removed.
50053         (ARRAY_CARDINALITY): Do not bother to #undef.
50054         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
50055         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
50056         Remove unnecessary parentheses.
50057         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
50058         Insert necessary parentheses.
50059         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
50060         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
50061
50062 2002-11-19  Bruno Haible  <bruno@clisp.org>
50063
50064         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
50065         * lib/mbswidth.h: Include <stddef.h>, for size_t.
50066
50067         * lib/mbswidth.h (PARAMS): Remove macro.
50068         (mbswidth, mbsnwidth): Use ANSI C function declarations.
50069         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
50070
50071         * lib/gcd.h (PARAMS): Remove macro.
50072         (gcd): Use ANSI C function declarations.
50073         * lib/gcd.c (gcd): Likewise.
50074
50075 2002-11-15  Bruno Haible  <bruno@clisp.org>
50076
50077         * lib/strcspn.c: Include <stddef.h>.
50078         (strcspn): Use ANSI C function declaration. Change return type to
50079         size_t. Use NULL.
50080         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
50081         (strpbrk): Use NULL.
50082         * lib/strpbrk.h (PARAMS): Remove macro.
50083         (strpbrk): Use ANSI C function declaration.
50084         * lib/strstr.c: Don't include <sys/types.h>.
50085         * lib/strstr.h (PARAMS): Remove macro.
50086         (strstr): Use ANSI C function declarations.
50087
50088 2002-11-14  Karl Berry  <karl@gnu.org>
50089
50090         * config/mkinstalldirs: `do' on separate line, instead of
50091         `for var; do'.
50092
50093 2002-11-06  Bruno Haible  <bruno@clisp.org>
50094
50095         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
50096         * lib/gcd.c (gcd): Likewise.
50097
50098 2002-11-05  Bruno Haible  <bruno@clisp.org>
50099
50100         * lib/gcd.h: New file, from gettext-0.11.5.
50101         * lib/gcd.c: New file, from gettext-0.11.5.
50102
50103 2002-11-05  Bruno Haible  <bruno@clisp.org>
50104
50105         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
50106         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
50107         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
50108         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
50109
50110         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
50111         <libintl.h>.
50112         * lib/makepath.c: Include gettext.h instead of <locale.h> and
50113         <libintl.h>.
50114
50115         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
50116         * lib/human.c: Include gettext.h instead of <libintl.h>.
50117         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
50118         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
50119         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
50120         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
50121         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
50122         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
50123         (textdomain): Remove definition.
50124         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
50125
50126         * lib/long-options.c: Remove include of <libintl.h> and definition of
50127         _.
50128         * lib/same.c: Remove include of <libintl.h> and definition of _.
50129
50130 2002-11-04  Owen Taylor  <otaylor@redhat.com>
50131
50132         * lib/config.charset: A few additions for Solaris.
50133
50134 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
50135
50136         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
50137         * lib/localcharset.c (locale_charset): Declare as extern "C".
50138
50139 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
50140
50141         * lib/config.charset: msdos in uk_UA uses CP1125.
50142
50143 2002-11-04  Bruno Haible  <bruno@clisp.org>
50144
50145         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
50146         * lib/strcase.h: New file, from GNU gettext-0.11.5.
50147         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
50148         * lib/strstr.h: New file, from GNU gettext-0.11.5.
50149         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
50150
50151 2002-11-04  Bruno Haible  <bruno@clisp.org>
50152
50153         * lib/localcharset.c (locale_charset): Don't return an empty string.
50154
50155 2002-11-04  Bruno Haible  <bruno@clisp.org>
50156
50157         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
50158         aliases.
50159
50160 2002-11-04  Bruno Haible  <bruno@clisp.org>
50161
50162         * lib/config.charset: Update for newest glibc. Add canonical names
50163         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
50164
50165 2002-11-04  Bruno Haible  <bruno@clisp.org>
50166
50167         * lib/config.charset: Add support for NetBSD.
50168
50169 2002-11-04  Bruno Haible  <bruno@clisp.org>
50170
50171         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
50172
50173 2002-11-01  Bruno Haible  <bruno@clisp.org>
50174
50175         * configure.in: Add AC_CONFIG_AUX_DIR call.
50176         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
50177         test/Makefile.
50178         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
50179
50180 2002-09-28  Karl Berry  <karl@gnu.org>
50181
50182         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
50183         installed automake until the next release, since changes have been
50184         made.
50185
50186 2002-09-25  Karl Berry  <karl@gnu.org>
50187
50188         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
50189         * lib/getopt*: copy from libc/posix.
50190         * lib/gettext.h: copy from gettext.
50191         * lib/.cppi-disable: add strdup.c, gettext.h.
50192
50193 2002-09-25  Karl Berry  <karl@gnu.org>
50194
50195         * config/srclist.txt: enable gettext.h check.
50196         * config/config.{guess,sub}: update from prep.
50197         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
50198                 from automake 1.6.3.
50199         See srclist*.
50200
50201 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
50202
50203         * regex.c (PATFETCH): Remove the translating fetch.
50204         (PATFETCH_RAW): Rename to PATFETCH.
50205         (set_image_of_range): New fun.
50206         (SET_RANGE_TABLE_WORK_AREA): Use it.
50207         (regex_compile): Don't translate the pattern chars so eagerly.
50208         Only do it when inserting an `exactn' bytecode or when handling
50209         a char-range.
50210         (mutually_exclusive_p): Avoid empty statement.
50211
50212 2002-07-06  Jim Meyering  <meyering@lucent.com>
50213
50214         * m4/README: Don't mention Makefile.am.in.
50215         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
50216
50217 2002-07-01  Jim Meyering  <meyering@lucent.com>
50218
50219         * lib/c-stack.c: Include sys/time.h.
50220         From Volker Borchert.
50221
50222 2002-06-26  Paul Eggert  <eggert@twinsun.com>
50223
50224         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
50225
50226 2002-06-26  Paul Eggert  <eggert@twinsun.com>
50227
50228         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
50229         New macro.  Use it uniformly instead of
50230         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
50231         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
50232         reported by Vin Shelton.
50233
50234 2002-06-22  Paul Eggert  <eggert@twinsun.com>
50235
50236         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
50237         Do not assume SA_SIGINFO behavior.
50238         Bug reported by Jim Meyering on NetBSD 1.5.2.
50239
50240 2002-06-22  Jim Meyering  <meyering@lucent.com>
50241
50242         * m4/c-stack.m4: New file, from diffutils-2.8.2.
50243         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
50244
50245         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
50246         now that configure.ac uses AC_GNU_SOURCE.
50247         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
50248         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
50249
50250         Update to latest tools.  Suggestions from Paul Eggert.
50251         * m4/stdbool.m4: New file, from diffutils-2.8.2.
50252         * m4/gnu-source.m4: Update from diffutils-2.8.2.
50253         * m4/fnmatch.m4: Likewise.
50254         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
50255         to AC_HEADER_STDBOOL
50256
50257 2002-06-22  Jim Meyering  <meyering@lucent.com>
50258
50259         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
50260         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
50261
50262 2002-06-22  Jim Meyering  <meyering@lucent.com>
50263
50264         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
50265
50266         * lib/exitfail.c, exitfail.h: Likewise.
50267         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
50268
50269         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
50270         of fnmatch.h.
50271         (EXTRA_DIST): Add fnmatch_loop.c.
50272         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
50273
50274         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
50275         * lib/fnmatch.c: Update from diffutils-2.8.2.
50276         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
50277         * lib/fnmatch.h: Remove file.
50278
50279 2002-06-21  Jim Meyering  <meyering@lucent.com>
50280
50281         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
50282         * m4/mbrtowc.m4: Likewise.
50283
50284         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
50285         * m4/mbswidth.m4: Reflect name change:
50286         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
50287         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
50288
50289         * m4/lib-link.m4: Update from gettext-0.11.2.
50290         * m4/gettext.m4: Likewise.
50291
50292         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
50293         From Alfred M. Szmidt.
50294
50295 2002-06-18  Paul Eggert  <eggert@twinsun.com>
50296
50297         * lib/file-type.h: Report an error if neither S_ISREG nor
50298         S_IFREG is defined, instead of using a test specific to glibc
50299         2.2.  This should be safe, since POSIX requires S_ISREG and
50300         Unix Version 7 had S_IFREG.  We don't need to check for
50301         <sys/types.h> since we don't use any symbols that it defines.
50302
50303 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
50304
50305         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
50306         $@-t, so that each temporary file name is unique and valid in the first
50307         8 characters, for operation under DOS.
50308
50309 2002-06-15  Paul Eggert  <eggert@twinsun.com>
50310
50311         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
50312
50313 2002-06-15  Jim Meyering  <meyering@lucent.com>
50314
50315         Work even with DJGPP 2.03, which lacks support for symlinks.
50316         From Richard Dawe.
50317         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
50318         is defined.
50319         * lib/lchown.c (S_ISLNK): Likewise.
50320
50321 2002-06-15  Jim Meyering  <meyering@lucent.com>
50322
50323         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
50324         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
50325         have been included before this file.
50326
50327 2002-06-14  Jim Meyering  <meyering@lucent.com>
50328
50329         * lib/file-type.h: Use the version from diffutils-2.8.2.
50330         * lib/file-type.c: Likewise.
50331
50332 2002-06-07  Jim Meyering  <meyering@lucent.com>
50333
50334         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
50335         They're needed at least for NetBSD 1.5.2.
50336         ($statxfs_includes): Include those same headers.
50337         ($statxfs_includes): Include sys/vfs.h if available.
50338         ($statxfs_includes): Likewise for sys/statvfs.h.
50339         Check for the following members in both structs statfs and statvfs:
50340         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
50341
50342 2002-06-01  Jim Meyering  <meyering@lucent.com>
50343
50344         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
50345         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
50346
50347 2002-05-28  Jim Meyering  <meyering@lucent.com>
50348
50349         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
50350         Reported by Volker Borchert.
50351
50352 2002-05-27  Jim Meyering  <meyering@lucent.com>
50353
50354         Fix a problem seen only on nonconforming systems whereby ls.c's
50355         use of localtime, and then of gettimeofday would cause trouble:
50356         the localtime call used to initialize rpl_gettimeofday's save
50357         mechanism would clobber ls's current local time information so
50358         that in any long listing the first file would always be listed
50359         with date 1970-01-01.  Analysis by Volker Borchert.
50360
50361         * lib/gettimeofday.c (localtime): Undefine.
50362         (rpl_localtime): New function.
50363
50364 2002-05-27  Jim Meyering  <meyering@lucent.com>
50365
50366         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
50367         localtime.
50368
50369         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
50370         use the replacement function; it wouldn't resolve at link time.
50371         Reported by Volker Borchert.
50372
50373 2002-05-22  Jim Meyering  <meyering@lucent.com>
50374
50375         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
50376         file-type.h.
50377         * lib/file-type.h: New file.
50378         * lib/file-type.c (file_type): New file/function.  Extracted from
50379         diffutils.
50380
50381 2002-04-30  Jim Meyering  <meyering@lucent.com>
50382
50383         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
50384
50385 2002-04-29  Paul Eggert  <eggert@twinsun.com>
50386
50387         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
50388
50389 2002-04-29  Paul Eggert  <eggert@twinsun.com>
50390
50391         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
50392         Do not check for alloca.h (no longer used) or stdbool.h (was never
50393         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
50394
50395 2002-04-29  Paul Eggert  <eggert@twinsun.com>
50396
50397         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
50398
50399 2002-04-29  Jim Meyering  <meyering@lucent.com>
50400
50401         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
50402         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
50403         Use AC_FUNC_STRNLEN here instead.
50404
50405         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
50406         With autoconf-2.53a, it's part of AC_PROG_CC.
50407
50408 2002-04-28  Paul Eggert  <eggert@twinsun.com>
50409
50410         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
50411         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
50412
50413 2002-04-28  Paul Eggert  <eggert@twinsun.com>
50414
50415         * lib/sig2str.h, lib/sig2str.c: New files.
50416         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
50417
50418 2002-04-28  Paul Eggert  <eggert@twinsun.com>
50419
50420         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
50421         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
50422         of 127, since 64 is the largest conceivable number for ancient
50423         nonstandard hosts.
50424         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
50425
50426 2002-04-28  Jim Meyering  <meyering@lucent.com>
50427
50428         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
50429
50430 2002-04-24  Jim Meyering  <meyering@lucent.com>
50431
50432         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
50433         (jm_PREREQ): Use it.
50434
50435         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
50436         mach/mach.h fcntl.h.
50437         Check for this function: setlocale.
50438
50439 2002-04-24  Jim Meyering  <meyering@lucent.com>
50440
50441         * lib/gettext.h: New file, from Gettext.
50442         * lib/Makefile.am (INCLUDES): Remove -I../intl.
50443         (libfetish_a_SOURCES): Add gettext.h.
50444
50445 2002-04-16  Jim Meyering  <meyering@lucent.com>
50446
50447         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
50448         ut_pid, ut_id, ut_exit.
50449
50450 2002-04-16  Jim Meyering  <meyering@lucent.com>
50451
50452         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
50453         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
50454         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
50455
50456 2002-04-12  Jim Meyering  <meyering@lucent.com>
50457
50458         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
50459         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
50460         existence of the getmntinfo function.  Needed for Darwin 5.3.
50461
50462         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
50463         This is necessary at least on Darwin 5.3.
50464
50465         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
50466         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
50467         strnlen.o in the library, and that makes some versions of ranlib
50468         object.
50469
50470 2002-04-12  Jim Meyering  <meyering@lucent.com>
50471
50472         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
50473
50474 2002-04-09  Jim Meyering  <meyering@lucent.com>
50475
50476         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
50477         to be more precise.  Rather than saying we're checking whether the
50478         function `works', say what we're testing.
50479         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
50480         Reported by Bruno Haible.
50481
50482 2002-03-10  Jim Meyering  <meyering@lucent.com>
50483
50484         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
50485         Suggestion from Santiago Vila.
50486
50487 2002-03-08  Jim Meyering  <meyering@lucent.com>
50488
50489         * lib/rename.c: Mention that this wrapper is needed also on
50490         mips-dec-ultrix4.4 systems.
50491
50492 2002-03-02  Jim Meyering  <meyering@lucent.com>
50493
50494         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
50495         not HAVE_CLOCK_SETTIME.
50496
50497 2002-02-27  Paul Eggert  <eggert@twinsun.com>
50498
50499         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
50500         Check for clock_settime.
50501
50502 2002-02-27  Paul Eggert  <eggert@twinsun.com>
50503
50504         * lib/nanosleep.h: Rename to....
50505         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
50506
50507         * lib/gettime.c: New file.
50508         * lib/settime.c: New file.
50509         * lib/stime.c: Remove.
50510
50511         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
50512         timespec.h.  Remove nanosleep.h.
50513
50514 2002-02-25  Paul Eggert  <eggert@twinsun.com>
50515
50516         * m4/acl.m4: New file.
50517         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
50518         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
50519
50520 2002-02-25  Paul Eggert  <eggert@twinsun.com>
50521
50522         * lib/acl.c, lib/acl.h: New files.
50523         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
50524
50525 2002-02-24  Jim Meyering  <meyering@lucent.com>
50526
50527         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
50528         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
50529         cause trouble.  Reported by Nelson Beebe.
50530
50531 2002-02-23  Paul Eggert  <eggert@twinsun.com>
50532
50533         * lib/path-concat.c (xpath_concat): Reorder code to pacify
50534         compilers that don't know that xalloc_die never returns.
50535
50536 2002-02-20  Jim Meyering  <meyering@lucent.com>
50537
50538         * lib/getdate.c: Regenerate using bison-1.33.
50539
50540 2002-02-17  Jim Meyering  <meyering@lucent.com>
50541
50542         * config/config.guess (main): Don't use `head -1'; it's no longer
50543         portable. Use `sed 1q' instead.
50544
50545 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
50546
50547         * m4/codeset.m4: Upgrade to gettext-0.11.
50548         * m4/gettext.m4: Upgrade to gettext-0.11.
50549         * m4/glibc21.m4: Upgrade to gettext-0.11.
50550         * m4/iconv.m4: Upgrade to gettext-0.11.
50551         * m4/isc-posix.m4: Upgrade to gettext-0.11.
50552         * m4/lcmessage.m4: Upgrade to gettext-0.11.
50553         * m4/lib-ld.m4: New file, from gettext-0.11.
50554         * m4/lib-link.m4: New file, from gettext-0.11.
50555         * m4/lib-prefix.m4: New file, from gettext-0.11.
50556         * m4/progtest.m4: Upgrade to gettext-0.11.
50557
50558 2002-02-15  Paul Eggert  <eggert@twinsun.com>
50559
50560         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
50561         (jm_PREREQ): Use it.
50562
50563 2002-02-15  Paul Eggert  <eggert@twinsun.com>
50564
50565         * lib/posixver.c, lib/posixver.h: New files.
50566         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
50567
50568 2002-02-02  Paul Eggert  <eggert@twinsun.com>
50569             Bruno Haible  <bruno@clisp.org>
50570
50571         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
50572         (fwrite_success_callback): New declaration.
50573         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
50574         print_unicode_char. Call failure callback instead of error.
50575         (fwrite_success_callback): New function.
50576         (exit_failure_callback): New function.
50577         (fallback_failure_callback): New function.
50578         (print_unicode_char): Call unicode_to_mb.
50579
50580 2002-01-26  Jim Meyering  <meyering@lucent.com>
50581
50582         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
50583         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
50584
50585 2002-01-26  Jim Meyering  <meyering@lucent.com>
50586
50587         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
50588
50589 2002-01-22  Paul Eggert  <eggert@twinsun.com>
50590
50591         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
50592
50593 2002-01-22  Jim Meyering  <meyering@lucent.com>
50594
50595         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
50596         Otherwise, some versions of automake would omit the rule that makes
50597         Makefile from Makefile.in.
50598
50599 2002-01-21  Paul Eggert  <eggert@twinsun.com>
50600
50601         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
50602         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
50603         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
50604         (memcoll): Set errno to zero if there is no error.
50605
50606         * lib/quotearg.c (quotearg_buffer_restyled):
50607         Fix bug with quoting buffers containing NUL when backslashing escapes.
50608         This bug was exposed by the other changes in this patch.
50609         (quotearg_n_options): New arg ARGSIZE.
50610         All callers changed.
50611         (quoting_options_from_style): New function.
50612         (quotearg_n_style): Use it.
50613         (quotearg_n_style_mem): New function.
50614
50615         * lib/quotearg.h (quotearg_n_style_mem): New function.
50616
50617 2002-01-19  Jim Meyering  <meyering@lucent.com>
50618
50619         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
50620         Remove useless quotes: DF_PROG="df".
50621         * m4/strnlen.m4: New file.
50622
50623 2002-01-16  Paul Eggert  <eggert@twinsun.com>
50624
50625         * lib/backupfile.c (ISDIGIT): Comment fix.
50626         * lib/getdate.y (ISDIGIT): Likewise.
50627         * lib/posixtm.c (ISDIGIT, year): Likewise.
50628         * lib/strverscmp.c (ISDIGIT): Likewise.
50629         * lib/userspec.c (ISDIGIT): Likewise.
50630
50631 2002-01-16  Jim Meyering  <meyering@lucent.com>
50632
50633         * lib/getdate.y: Add three semicolons, each just before a closing
50634         brace. Bison (as of version 1.31) no longer papers over that mistake.
50635
50636 2002-01-05  Jim Meyering  <meyering@lucent.com>
50637
50638         * lib/version-etc.c (version_etc_copyright): Update copyright year.
50639
50640 2001-12-19  Paul Eggert  <eggert@twinsun.com>
50641
50642         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
50643         not silently exit merely because the output buffer happens to
50644         have nothing pending.
50645
50646 2001-12-18  Paul Eggert  <eggert@twinsun.com>
50647
50648         See the big note in ../ChangeLog.
50649         * lib/human.c (suffixes): Prefer K to k for 1024.
50650         (generate_suffix_backwards): New function.
50651         (human_readable_inexact): Use it.
50652         * lib/xstrtol.c (__xstrtol): If there is no number but there
50653         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
50654         Accept 'K' as well as 'k'.
50655
50656 2001-12-15  Jim Meyering  <meyering@lucent.com>
50657
50658         * lib/regex.h (__restrict_arr): Update from libc.
50659
50660         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
50661         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
50662         (STREQ): Define.
50663
50664 2001-12-14  Jim Meyering  <meyering@lucent.com>
50665
50666         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
50667         Suggestion from Bruno Haible.
50668
50669 2001-12-10  Jim Meyering  <meyering@lucent.com>
50670
50671         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
50672         xrealloc, Instead, include "xalloc.h".
50673         (initbuffer): Don't cast xmalloc return value to char*.
50674         (readline): Reword comment.
50675         Don't cast xrealloc return value to char*
50676         Return NULL, not 0.
50677
50678 2001-12-09  Jim Meyering  <meyering@lucent.com>
50679
50680         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
50681         about `signed and unsigned type in conditional expression'.
50682         * lib/posixtm.c (posix_time_parse): Likewise.
50683
50684         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
50685
50686         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
50687         to avoid a pedantic warning.
50688
50689         * lib/getstr.c: Don't include assert.h.
50690         (getstr): Remove warning-evoking assertions.
50691         Return -1 if offset parameter is out of bounds.
50692         Change the type of a local from int to size_t.
50693
50694         * lib/strftime.c (my_strftime_localtime_r): Include this function
50695         definition in the `#if ! HAVE_TM_GMTOFF' block.
50696
50697         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
50698         Include xalloc.h instead.
50699
50700 2001-12-02  Jim Meyering  <meyering@lucent.com>
50701
50702         * lib/tempname.c: Don't declare getenv, thus reverting the change of
50703         2001-11-18.  It's no longer necessary, now that stdlib.h is always
50704         included.
50705
50706         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
50707         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
50708
50709 2001-11-30  Akim Demaille  <akim@epita.fr>
50710
50711         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
50712         before being defined.
50713
50714 2001-11-27  Paul Eggert  <eggert@twinsun.com>
50715
50716         * lib/quotearg.h (quotearg_n, quotearg_n_style):
50717         First arg is int, not unsigned.
50718         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
50719         (SIZE_MAX, UINT_MAX): New macros.
50720         (quotearg_n_options): Abort if N is negative.
50721         Avoid overflow check on hosts where size_t is 64 bits and int
50722         is 32 bits, as overflow is impossible there.
50723         Fix off-by-one typo that caused unnecessary reallocation.
50724
50725 2001-11-27  Jim Meyering  <meyering@lucent.com>
50726
50727         * lib/tempname.c: Merge with version from libc.
50728         * lib/regex.c: Likewise.
50729
50730         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
50731         systems for which STDC_HEADERS is 0, it was not included, resulting in
50732         a warning about an integer-to-pointer conversion problem with getenv.
50733         Reported by Volker Borchert.
50734
50735 2001-11-26  Jim Meyering  <meyering@lucent.com>
50736
50737         * lib/gtod.h: Remove file.
50738         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
50739         * lib/gettimeofday.c: Don't include gtod.h.
50740         (GTOD_init): Remove function.
50741         (rpl_gettimeofday): Do its job here instead, rather than aborting.
50742         Suggestion from Volker Borchert.
50743
50744 2001-11-23  Jim Meyering  <meyering@lucent.com>
50745
50746         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
50747         it.
50748         * lib/hash.c (struct hash_table): Define it here instead.
50749
50750 2001-11-22  Jim Meyering  <meyering@lucent.com>
50751
50752         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
50753
50754 2001-11-20  Jim Meyering  <meyering@lucent.com>
50755
50756         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
50757         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
50758
50759 2001-11-19  Jim Meyering  <meyering@lucent.com>
50760
50761         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
50762         directory.  Use "conftestXXXXXX" as the template.
50763         Suggestion from Paul Eggert.
50764
50765         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
50766         immediately, so the test doesn't mistakenly hit the max-open-files
50767         limit.
50768
50769 2001-11-18  Paul Eggert  <eggert@twinsun.com>
50770
50771         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
50772         (TEMPORARIES): New macro.
50773         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
50774         removes an artificial limitation (e.g. HP-UX 10.20, where
50775         TMP_MAX is 17576).
50776
50777 2001-11-18  Jim Meyering  <meyering@lucent.com>
50778
50779         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
50780
50781 2001-11-18  Jim Meyering  <meyering@lucent.com>
50782
50783         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
50784         on SunOS 4.
50785
50786         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
50787         files will be created before anything else.
50788
50789 2001-11-17  Paul Eggert  <eggert@twinsun.com>
50790
50791         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
50792         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
50793
50794 2001-11-17  Jim Meyering  <meyering@lucent.com>
50795
50796         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
50797         Prompted by a report from Bob Proulx.
50798
50799         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
50800         Instead, require UTILS_FUNC_MKSTEMP.
50801
50802 2001-11-17  Jim Meyering  <meyering@lucent.com>
50803
50804         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
50805         Now, that's done as part of AC_FUNC_STRTOD.
50806
50807 2001-11-17  Jim Meyering  <meyering@lucent.com>
50808
50809         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
50810         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
50811         rather than group writable.  Patch by Juan F. Codagnone.
50812
50813         * lib/readtokens.c: Remove explicit declarations of xmalloc and
50814         xrealloc, Instead, include "xalloc.h".
50815
50816         * lib/mountlist.c: Include unlocked-io.h after all system headers.
50817         Remove explicit declarations of xmalloc, xrealloc,
50818         and xstrdup.  Instead, include "xalloc.h".
50819
50820         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
50821         unlocked-io.h.
50822         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
50823         Likewise.
50824         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
50825
50826         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
50827         Reported by Padraig Brady.
50828
50829         * lib/mkstemp.c: #undef mkstemp.
50830         Include config.h.
50831         (rpl_mkstemp): Rename from mkstemp.
50832         Protoize.
50833
50834 2001-11-16  Jim Meyering  <meyering@lucent.com>
50835
50836         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
50837         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
50838         determine the amount of total physical memory, use pstat_getstatic.
50839         HPUX-11 doesn't define _SC_PHYS_PAGES.
50840         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
50841         If sysconf couldn't be used to determine the amount of available
50842         physical memory, use both pstat_getstatic and pstat_getdynamic.
50843         Based on a patch from Bob Proulx.
50844
50845 2001-11-10  Jim Meyering  <meyering@lucent.com>
50846
50847         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
50848         (jm_PREREQ): Use it.
50849
50850 2001-11-09  Jim Meyering  <meyering@lucent.com>
50851
50852         * m4/jm-macros.m4: Require autoconf-2.52f.
50853         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
50854         Use these AC_-prefixed names, not the AM_-prefixed ones.
50855
50856         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
50857
50858 2001-11-05  Jim Meyering  <meyering@lucent.com>
50859
50860         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
50861
50862 2001-11-04  Jim Meyering  <meyering@lucent.com>
50863
50864         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
50865         $DEFS.
50866
50867 2001-11-03  Jim Meyering  <meyering@lucent.com>
50868
50869         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
50870         of AC_DEFUN.
50871
50872         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
50873         know the name of the variable in the macro definition.
50874
50875 2001-11-03  Jim Meyering  <meyering@lucent.com>
50876
50877         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
50878         in argmatch_to_argument call.
50879
50880         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
50881         argument.
50882
50883         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
50884         e.g., a fault due to an attempt to free a NULL pointer.
50885
50886 2001-11-01  Jim Meyering  <meyering@lucent.com>
50887
50888         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
50889         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
50890
50891 2001-11-01  Jim Meyering  <meyering@lucent.com>
50892
50893         * lib/dirfd.c, lib/dirfd.h: New files.
50894         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
50895
50896         * lib/hash.c (hash_print) [TESTING]: Clean up.
50897
50898 2001-10-22  Paul Eggert  <eggert@twinsun.com>
50899
50900         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
50901         to avoid a warning if -Wall.
50902
50903 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
50904
50905         * README: New file
50906         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
50907         (per RMS's instructions, this is now the canonical source)
50908         * lgpl/, gpl/: New directories.
50909
50910 2001-10-21  Paul Eggert  <eggert@twinsun.com>
50911
50912         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
50913
50914 2001-10-21  Jim Meyering  <meyering@lucent.com>
50915
50916         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
50917         this code would end up calling gettext even in packages built
50918         with --disable-nls.
50919         * lib/getopt.c (_): Likewise.
50920         * lib/regex.c (_): Likewise.
50921
50922 2001-10-20  Paul Eggert  <eggert@twinsun.com>
50923
50924         * m4/error.m4 (jm_PREREQ_ERROR):
50925         Do not invoke AC_CHECK_FUNCS with strerror_r, as
50926         AC_FUNC_STRERROR_R does that.
50927         Check for strerror declaration.
50928
50929         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
50930         are supposed to have them these days.
50931         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
50932         Merge changes from latest Autoconf CVS.
50933         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
50934         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
50935         POSIX decided to standardize on the int flavor of strerror_r.
50936
50937 2001-10-20  Paul Eggert  <eggert@twinsun.com>
50938
50939         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
50940         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
50941         Use strerror_r that is only a macro, even if it is not a function.
50942         (strerror): Check for HAVE_DECL_STRERROR before declaring.
50943         (private_strerror): Use prototypes, not old-style function definition.
50944         (print_errno_message): New function.
50945         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
50946         char*-flavored one.
50947         (error_tail, error, error_at_line): Use it.
50948
50949 2001-10-11  Jim Meyering  <meyering@lucent.com>
50950
50951         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
50952         and quote_n (1, ... to avoid clobbering a buffer.
50953
50954 2001-10-05  Jim Meyering  <meyering@lucent.com>
50955
50956         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
50957         hash-pjw.h.
50958         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
50959         * lib/hash-pjw.h: New file.
50960
50961 2001-09-30  Jim Meyering  <meyering@lucent.com>
50962
50963         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
50964         `struct fsstat' has the `f_fstypename' member.
50965         Use that to define FS_TYPE, which is now used to make
50966         the getfsstat link test tighter.
50967
50968 2001-09-30  Jim Meyering  <meyering@lucent.com>
50969
50970         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
50971         Include <sys/ucred.h>, for Apple Darwin.
50972         Include sys/mount.h and sys/fs_types.h only if available.
50973         (FS_TYPE): Define.
50974         (read_filesystem_list): Use FS_TYPE.
50975
50976 2001-09-29  Paul Eggert  <eggert@twinsun.com>
50977
50978         * lib/exclude.c (excluded_filename): 0 -> false, since it's
50979         a boolean context.
50980
50981 2001-09-29  Jim Meyering  <meyering@lucent.com>
50982
50983         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
50984         [one-argument getmntent function]): Include stdio.h before mntent.h.
50985         SunOS 4.1.x needs it for the declaration of `FILE'.
50986         Patch by Volker Borchert.
50987
50988         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
50989         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
50990         sys/fs_types.h, and make the link-test for getfsstat guard #include
50991         directives with appropriate #if HAVE_*_H tests so that we can
50992         detect getfsstat on Apple Darwin1.3.7 systems.
50993         Reported by Nelson Beebe.
50994         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
50995
50996 2001-09-28  Paul Eggert  <eggert@twinsun.com>
50997
50998         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
50999         #defines strtoimax.  Also treat the other strto* functions
51000         like strtoimax.
51001
51002         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
51003         Check for strtoul and strtoumax,
51004         as those declarations are made even in the signed case.
51005         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
51006         Likewise, for strtol and strtoimax.
51007
51008 2001-09-28  Paul Eggert  <eggert@twinsun.com>
51009
51010         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
51011         #defines strtoimax.  Also treat the other strto* functions
51012         like strtoimax.
51013
51014         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
51015         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
51016         (strtoimax, strtoumax): Do not declare if already defined as a macro.
51017
51018 2001-09-26  Jim Meyering  <meyering@lucent.com>
51019
51020         Most macros in unlocked-io.h had the wrong number of arguments.
51021         * lib/gen-uio: New script.
51022         (USE_UNLOCKED_IO): Define to 1 if not already defined.
51023         * lib/unlocked-io.hin: Remove file.
51024         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
51025         rather than trying to embed it here.
51026         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
51027         Reported by Padraig Brady.
51028
51029 2001-09-25  Volker Borchert  <bt@teknon.de>
51030
51031         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
51032         `result'.
51033
51034 2001-09-24  Jim Meyering  <meyering@lucent.com>
51035
51036         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
51037
51038 2001-09-23  Jim Meyering  <meyering@lucent.com>
51039
51040         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
51041         instead of the mere test for existence of mntent.h.  The latter
51042         would get a false-positive on AIX 3.4 systems.
51043         In the outer getmntent if-block, don't die if neither of the getmntent
51044         tests succeeds.  Instead, just fall through and continue with the
51045         remaining tests.
51046
51047 2001-09-23  Jim Meyering  <meyering@lucent.com>
51048
51049         * lib/mountlist.c: Remove useless parentheses in #if directives.
51050         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
51051         the deprecated MOUNTED symbol is no longer defined in mntent.h.
51052
51053 2001-09-22  Jim Meyering  <meyering@lucent.com>
51054
51055         * m4/gettext.m4: New file.  From gettext.
51056         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
51057         * m4/progtest.m4: Likewise
51058         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
51059         * m4/glibc21.m4: Likewise.
51060
51061         * m4/libintl.m4: Remove.  No longer used.
51062
51063 2001-09-22  Jim Meyering  <meyering@lucent.com>
51064
51065         * lib/localcharset.c: Update from latest gettext.
51066         * lib/config.charset: Likewise.
51067
51068 2001-09-20  Jim Meyering  <meyering@lucent.com>
51069
51070         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
51071         strtoimax.
51072         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
51073         strtoumax.
51074
51075 2001-09-20  Jim Meyering  <meyering@lucent.com>
51076
51077         * lib/xstrtol.c (strtoimax): Guard declaration with
51078         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
51079         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
51080         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
51081         (strtoumax): Likewise, for completeness (it wasn't necessary).
51082
51083 2001-09-17  Paul Eggert  <eggert@twinsun.com>
51084
51085         * lib/strtoimax.c (HAVE_LONG_LONG):
51086         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
51087         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
51088         to work around bug in IBM C compiler.
51089
51090 2001-09-17  Jim Meyering  <meyering@lucent.com>
51091
51092         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
51093         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
51094         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
51095         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
51096         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
51097         whenever the right hand side need not be expanded by the shell.
51098
51099 2001-09-16  Paul Eggert  <eggert@twinsun.com>
51100
51101         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
51102         library.  It's not correct, as some older glibcs are buggy.
51103         fnmatch wasn't fixed until glibc 2.2.
51104
51105         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
51106         special shell magic here.
51107
51108 2001-09-16  Jim Meyering  <meyering@lucent.com>
51109
51110         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
51111         * m4/jm-macros.m4: Require it.
51112
51113 2001-09-16  Jim Meyering  <meyering@lucent.com>
51114
51115         * lib/mkdir.c: New file.
51116
51117 2001-09-15  Jim Meyering  <meyering@lucent.com>
51118
51119         * m4/jm-macros.m4: Check for help2man.
51120
51121 2001-09-11  Jim Meyering  <meyering@lucent.com>
51122
51123         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
51124         The body, by Paul Eggert, was moved here from configure.in.
51125         * m4/jm-macros.m4: Require UTILS_HOST_OS.
51126
51127 2001-09-04  Paul Eggert  <eggert@twinsun.com>
51128
51129         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
51130         (jm_PREREQ): Use it.
51131
51132 2001-09-04  Paul Eggert  <eggert@twinsun.com>
51133
51134         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
51135         Use ssize_t, not int, to store result of readlink.
51136         Check for ssize_t overflow as well as size_t overflow,
51137         as POSIX says the result of readlink is implementation-defined
51138         when ssize_t overflows.
51139         Remove unnecessary cast to char*.
51140         Use free+malloc instead of realloc, as the storage doesn't need
51141         to be preserved and it's clearer and can be more efficient that way.
51142         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
51143         * lib/xreadlink.h (xreadlink): Update prototype.
51144
51145 2001-09-04  Paul Eggert  <eggert@twinsun.com>
51146
51147         * lib/xgetcwd.c: Revert some of the previous change; intead,
51148         fix the HAVE_GETCWD_NULL code to behave more like the
51149         !HAVE_GETCWD_NULL code used to.
51150
51151         Include "xalloc.h".
51152         (xgetcwd): Do not return NULL when memory is exhausted; instead,
51153         invoke xalloc_die.
51154
51155 2001-09-03  Paul Eggert  <eggert@twinsun.com>
51156
51157         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
51158         sys/param.h, as pathmax.h includes them.
51159
51160 2001-09-03  Paul Eggert  <eggert@twinsun.com>
51161
51162         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
51163         (jm_PREREQ_XGETCWD): New macro.
51164
51165         * m4/getcwd.m4: New file.
51166
51167 2001-09-03  Paul Eggert  <eggert@twinsun.com>
51168
51169         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
51170         like the HAVE_GETCWD_NULL code.
51171         Include pathmax.h if not HAVE_GETCWD.
51172         Do not include xalloc.h.
51173         (INITIAL_BUFFER_SIZE): New symbol.
51174         Do not use xmalloc / xrealloc, since the caller is responsible for
51175         handling errors.  Preserve errno around `free' during failure.
51176         Do not overrun buffer when using getwd.
51177
51178 2001-09-03  Paul Eggert  <eggert@twinsun.com>
51179
51180         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
51181         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
51182         getcwd (NULL, 0).
51183
51184 2001-09-03  Paul Eggert  <eggert@twinsun.com>
51185
51186         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
51187         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
51188         spotted by Jim Meyering.
51189
51190 2001-09-03  Jim Meyering  <meyering@lucent.com>
51191
51192         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
51193         failure.
51194
51195 2001-09-02  Jim Meyering  <meyering@lucent.com>
51196
51197         * lib/error.c: Update from GNU libc.
51198
51199 2001-09-01  Jim Meyering  <meyering@lucent.com>
51200
51201         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
51202         Used by df.
51203
51204 2001-09-01  Jim Meyering  <meyering@lucent.com>
51205
51206         * lib/xreadlink.c: New file.
51207         * lib/xreadlink.h: New file.
51208         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
51209         xreadlink.h.
51210
51211         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
51212         doesn't conflict with sparc Solaris 7's definition in
51213         /usr/include/sys/int_types.h.
51214
51215         * lib/exclude.c: Use `""', not `<>' to #include non-system header
51216         files.
51217         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
51218         and strncasecmp as r-values.  Unixware didn't have declarations.
51219
51220 2001-08-31  Paul Eggert  <eggert@twinsun.com>
51221
51222         * lib/xstrtol.h: Add copyright notice.
51223         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
51224         LONGINT_INVALID_SUFFIX_CHAR.
51225
51226 2001-08-31  Paul Eggert  <eggert@twinsun.com>
51227
51228         * lib/xstrtol.c (strtoimax): New decl.
51229
51230 2001-08-31  Paul Eggert  <eggert@twinsun.com>
51231
51232         * lib/xgetcwd.c: Don't include pathmax.h.
51233         Include stdlib.h and unistd.h if available.
51234         Include xalloc.h.
51235         (xmalloc, xstrdup, free): Remove decls.
51236         (xgetcwd): Don't assume sizes fit in unsigned.
51237         Check for overflow when computing sizes.
51238         Simplify reallocation code.
51239
51240 2001-08-31  Paul Eggert  <eggert@twinsun.com>
51241
51242         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
51243         a directory's st_size can have an arbitrary value, so the old
51244         usage could waste an arbitrary amount of memory.  All uses
51245         changed.
51246         * lib/savedir.h: Update prototype.
51247
51248 2001-08-31  Paul Eggert  <eggert@twinsun.com>
51249
51250         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
51251
51252         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
51253         old strtoimax.c.
51254
51255         Also, make the following further changes to make this file's
51256         configuration more similar to that of strtol.c:
51257         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
51258         (strtoumax, uintmax_t, strtoull, strtol): Remove.
51259         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
51260         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
51261         changed to signed values.
51262
51263         And make the following changes as well:
51264         Fix copyright notice, as 1999 was missing.
51265         (verify): New macro.
51266         (strtoimax): Check sizes at compile-time, not run-time.
51267         Prefer strtol to strtoll if both work.
51268         (main): Remove; it was not that useful and was a pain to maintain.
51269
51270         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
51271
51272 2001-08-31  Jim Meyering  <meyering@lucent.com>
51273
51274         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
51275         Use an initial, malloc'd, buffer of length 128 rather than
51276         a statically allocated one of length 1024.
51277
51278 2001-08-30  Paul Eggert  <eggert@twinsun.com>
51279
51280         Simplify code, partly by assuming autoconf 2.52 semantics.
51281
51282         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
51283
51284         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
51285         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
51286         All uses removed.
51287         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
51288         Move AC_REQUIRE to next-to-top level, to avoid confusion.
51289         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
51290         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
51291         jm_AC_HEADER_INTTYPES_H.
51292         * m4/jm-macros.m4 (jm_MACROS): Likewise.
51293
51294         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
51295
51296         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
51297         Quote first arg of AC_DEFUN.
51298         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
51299         since they are needed to parse the include file even if we need
51300         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
51301         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
51302         but with opposite signedness.
51303
51304 2001-08-30  Paul Eggert  <eggert@twinsun.com>
51305
51306         Merge 'exclude' changes from tar 1.13.22.
51307         This fixes one or two unlikely storage allocation overflow bugs,
51308         but doesn't change user-visible behavior otherwise.
51309
51310 2001-08-30  Paul Eggert  <eggert@twinsun.com>
51311
51312         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
51313         (jm_PREREQ_EXCLUDE): New macro.
51314
51315 2001-08-30  Paul Eggert  <eggert@twinsun.com>
51316
51317         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
51318         tm to be declared.
51319
51320 2001-08-30  Paul Eggert  <eggert@twinsun.com>
51321
51322         * lib/hash.c: Remove '2001' from copyright notice.
51323
51324 2001-08-30  Paul Eggert  <eggert@twinsun.com>
51325
51326         * lib/full-write.h: New file.
51327         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
51328         * lib/full-write.c: Correct credits, as cccp.c no longer
51329         exists and anyway it was so heavily changed from the old cccp
51330         code as to be unrecognizable.  Include full-write.h.
51331         (full_write) Return size_t, with short writes meaning failure.
51332         All callers changed.  This fixes a bug with large buffers
51333         on 64-bit hosts.
51334         * lib/utime.c: Include full-write.h.
51335
51336 2001-08-30  Paul Eggert  <eggert@twinsun.com>
51337
51338         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
51339         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
51340         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
51341         Include if available.
51342         (<xalloc.h>): Include
51343         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
51344         (verify): New macro.  Use it to verify that EXCLUDE macros do not
51345         collide with FNM macros.
51346         (struct patopts): New struct.
51347         (struct exclude): Use it, as exclude patterns now come with options.
51348         (new_exclude): Support above changes.
51349         (new_exclude, add_exclude_file):
51350         Initial size must now be a power of two to simplify overflow checking.
51351         (free_exclude, fnmatch_no_wildcards): New function.
51352         (excluded_filename): No longer requires options arg, as the options
51353         are determined by add_exclude.  Now returns bool, not int.
51354         (excluded_filename, add_exclude):
51355         Add support for the fancy new exclusion options.
51356         (add_exclude, add_exclude_file): Now takes int options arg.
51357         Check for arithmetic overflow when computing sizes.
51358         (add_exclude_file): xrealloc might modify errno, so don't
51359         realloc until after errno might be used.
51360
51361         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
51362         New macros.
51363         (free_exclude): New decl.
51364         (add_exclude, add_exclude_file): Now takes int options arg.
51365         (excluded_filename): No longer requires options arg, as the options
51366         are determined by add_exclude.  Now returns bool, not int.
51367
51368 2001-08-30  Paul Eggert  <eggert@twinsun.com>
51369
51370         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
51371
51372 2001-08-27  Jim Meyering  <meyering@lucent.com>
51373
51374         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
51375
51376         * lib/version-etc.c (N_): Remove definition.
51377         Revert most of last change.
51378         Instead, simply don't mark the `Copyright...' string for translation.
51379         Based on advice from Paul Eggert.
51380
51381         * lib/strtoxmax.c: Tweak comment.
51382
51383 2001-08-26  Jim Meyering  <meyering@lucent.com>
51384
51385         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
51386
51387         * m4/xstrtoimax.m4: New file.
51388         * m4/xstrtoumax.m4: Add comments explaining why we
51389         AC_REPLACE_FUNCS(strtol).
51390
51391 2001-08-26  Jim Meyering  <meyering@lucent.com>
51392
51393         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
51394         of copyright with `%s' so translators don't get an untranslated
51395         message in 2002.
51396         (COPYRIGHT_YEAR): Define.
51397         (version_etc): Use fprintf rather than fputs.
51398         Suggestion from Ulrich Drepper.
51399
51400         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
51401
51402         * lib/strtoll.c: New file, from GNU libc.
51403         * lib/xstrtoimax.c: New file.
51404
51405         * lib/xstrtol.h: Add xstrtoimax.
51406         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
51407         * lib/strtoimax.c: New file.  Likewise, but first define
51408         STRTOUXMAX_SIGNED.
51409
51410         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
51411         ...
51412         * lib/strtoxmax.c: ... then renamed to this.
51413
51414 2001-08-18  Paul Eggert  <eggert@twinsun.com>
51415
51416         * m4/inttypes.m4: Add AC_PREREQ(2.13).
51417         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
51418         (jm_AC_TYPE_INTMAX_T): New macro.
51419         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
51420
51421         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
51422
51423         * m4/longlong.m4: Renamed from ulonglong.m4.
51424         * m4/inttypes.m4: Renamed from inttypes_h.m4.
51425         * m4/uintmax_t.m4: Removed.
51426
51427 2001-08-13  Paul Eggert  <eggert@twinsun.com>
51428
51429         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
51430         Port to Solaris 8, where 'sed' requires a space after the 'r'
51431         command, and where sh dislikes "$/".  Clean up the spacing a bit.
51432         Redirect output to $tmp just once.
51433
51434 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
51435
51436         * lib/addext.c (<errno.h>): Include.
51437         (errno): Declare if not defined.
51438         (addext): Work correctly when pathconf returns -1 and leaves
51439         errno alone because there is no limit.  Also, work even if
51440         pathconf returns a value greater than SIZE_MAX.
51441
51442 2001-08-12  Jim Meyering  <meyering@lucent.com>
51443
51444         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
51445         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
51446         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
51447         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
51448         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
51449         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
51450         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
51451         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
51452         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
51453         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
51454         utime.m4, utimes.m4, xstrtoumax.m4:
51455         Quote the first argument in each use of AC_DEFUN.
51456
51457 2001-08-12  Jim Meyering  <meyering@lucent.com>
51458
51459         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
51460         Simply `return getcwd (NULL, 0);'.
51461         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
51462         Use 1300 as initial value for length, not PATH_MAX.
51463
51464         * lib/pathmax.h: Clean up cpp syntax.
51465
51466 2001-08-12  Jim Meyering  <meyering@lucent.com>
51467
51468         * lib/gettimeofday.c: New file.
51469         * lib/gtod.h: New file.
51470         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
51471
51472 2001-08-05  Jim Meyering  <meyering@lucent.com>
51473
51474         * m4/jm-macros.m4: Require autoconf-2.52.
51475
51476 2001-08-04  Jim Meyering  <meyering@lucent.com>
51477
51478         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
51479         stmt, to get in sync with glibc.
51480
51481 2001-08-03  Paul Eggert  <eggert@twinsun.com>
51482
51483         The following changes are from gettext 0.10.39 as maintained by
51484         Bruno Haible.
51485
51486         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
51487         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
51488         with inverted sense.  All uses changed.
51489
51490         * lib/mbswidth.c: Don't include <limits.h>.
51491         Include <stdlib.h> and <string.h> unconditionally.
51492         (iswcntrl, mbsinit, ISCNTRL): New macros.
51493         (mbsnwidth): Use K&R style function declarations.
51494         Don't bother checking for MB_LEN_MAX == 1, since the compiler
51495         can optimize it when MB_CUR_MAX == 1.
51496         The width of control characters is zero, not 1.
51497
51498 2001-08-03  Paul Eggert  <eggert@twinsun.com>
51499
51500         The following changes are from gettext 0.10.39 as maintained by
51501         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
51502
51503         * m4/codeset.m4: Upgrade to serial AM1.
51504         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
51505         all uses changed.  Quote first arg of AC_DEFUN.
51506         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
51507
51508         * m4/iconv.m4: Upgrade to serial AM2.
51509         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
51510         Add --with-libconv-prefix.
51511         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
51512         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
51513         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
51514         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
51515         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
51516
51517         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
51518         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
51519         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
51520         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
51521         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
51522         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
51523         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
51524         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
51525         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
51526
51527         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
51528         string.h any more.
51529
51530         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
51531         not the default value.
51532
51533         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
51534         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
51535         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
51536         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
51537         Also check for iswcntrl, used for wcwidth fallback.
51538         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
51539         to Autoconf 2.13.
51540
51541 2001-08-03  Jim Meyering  <meyering@lucent.com>
51542
51543         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
51544         as it was in the original.  Reported by Paul Eggert.
51545
51546 2001-07-16  Jim Meyering  <meyering@lucent.com>
51547
51548         * m4/gettimeofday.m4: New file.
51549         Prompted by a report from Bernhard Baehr.
51550
51551 2001-07-15  Jim Meyering  <meyering@lucent.com>
51552
51553         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
51554         stuff. Now it's in ../Makefile.cfg.
51555
51556 2001-07-15  Jim Meyering  <meyering@lucent.com>
51557
51558         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
51559         (BUILT_SOURCES): Add unlocked-io.h.
51560         (io_functions): Define.
51561         (unlocked-io.h): New rule.
51562         (DISTCLEANFILES): Add unlocked-io.h.
51563         (all-local): Depend on unlocked-io.h, to ensure it is created.
51564
51565         * lib/unlocked-io.hin: New file
51566
51567         * lib/regex.c: Update from glibc.
51568
51569 2001-07-05  Jim Meyering  <meyering@lucent.com>
51570
51571         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
51572         recommendation.
51573         (libfetish_a_SOURCES): Put all .h files here instead.
51574         Remove a thus-exposed (better checks in automake) duplicate and
51575         two unnecessary .h files.
51576
51577 2001-07-04  Jim Meyering  <meyering@lucent.com>
51578
51579         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
51580         that generates jm-glibc-io.m4 so that it doesn't trigger any make
51581         distcheck failure.
51582
51583 2001-07-02  Jim Meyering  <meyering@lucent.com>
51584
51585         The following changes were prompted by suggestions from Bruno Haible.
51586
51587         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
51588         is now generated.
51589         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
51590         definition of EXTRA_DIST.
51591         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
51592         ensure that the generated file is created/updated whenever the list
51593         of $(unlocked_functions) is changed.
51594         (jm-glibc-io.m4): New rule.
51595         (unlocked-io.h): New rule -- currently unused.
51596
51597 2001-06-24  Jim Meyering  <meyering@lucent.com>
51598
51599         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
51600         unmatched right bracket, rather than kludging it with an extra,
51601         falsely-matching quote in a comment.  Patch by Akim Demaille.
51602
51603 2001-06-11  Jim Meyering  <meyering@lucent.com>
51604
51605         * lib/regex.c: Update from GNU libc.
51606
51607 2001-05-27  Jim Meyering  <meyering@lucent.com>
51608
51609         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
51610         Check for ut_type in struct utmp.
51611
51612 2001-05-27  Jim Meyering  <meyering@lucent.com>
51613
51614         * lib/readutmp.h (UT_TYPE): Define.
51615
51616 2001-05-24  Jim Meyering  <meyering@lucent.com>
51617
51618         * lib/argmatch.c: Include "quote.h".
51619         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
51620         quote function.  Reported by Göran Uddeborg.
51621
51622 2001-05-22  Jim Meyering  <meyering@lucent.com>
51623
51624         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
51625         now that we use the package-supplied version unconditionally.
51626         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
51627
51628 2001-05-21  Jim Meyering  <meyering@lucent.com>
51629
51630         * m4/regex.m4: Change a couple backticks to single quotes to avoid
51631         shell syntax errors.
51632
51633 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
51634
51635         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
51636
51637 2001-05-20  Paul Eggert  <eggert@twinsun.com>
51638
51639         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
51640         Don't bother to check library strftime, since
51641         we'll be using our own my_strftime function anyway.
51642         Define my_strftime instead of strftime.
51643
51644 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
51645
51646         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
51647         which is not yet declared.
51648
51649 2001-05-15  Jim Meyering  <meyering@lucent.com>
51650
51651         * m4/regex.m4: Use proper quoting so brackets appear in the test
51652         program.
51653         Reported by, and with help from, Bruno Haible.
51654
51655 2001-05-13  Jim Meyering  <meyering@lucent.com>
51656
51657         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
51658         undefined.
51659
51660 2001-05-11  Paul Eggert  <eggert@twinsun.com>
51661
51662         dirname code cleanup.  base_name now behaves more compatibly
51663         with POSIX basename when given file names that have trailing
51664         slashes, and similarly for dir_name.  Add new primitives
51665         base_len and dir_len.  Put the directory-name-related decls
51666         into dirname.h.
51667
51668         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
51669         * lib/backupfile.c (base_name): Likewise.
51670         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
51671         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
51672         * lib/makepath.c (strip_trailing_slashes): Likewise.
51673         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
51674         ISSLASH): Likewise.
51675         * lib/rename.c (strip_trailing_slashes): Likewise.
51676         * lib/same.c (base_name): Likewise.
51677         * lib/stripslash.c (ISSLASH): Likewise.
51678
51679         * lib/addext.c: Include <dirname.h> after size_t is defined.
51680         * lib/backupfile.c: Likewise.
51681
51682         * lib/addext.c (addext): Use base_len to trim redundant
51683         trailing slashes instead of doing it ourselves.
51684         But do not trim the last slash if it is not redundant.
51685
51686         * lib/backupfile.c (find_backup_file_name,
51687         max_backup_version): Use base_len instead of rolling it ourselves.
51688         Handle the case of "" and (on DOS) "C:" correctly.
51689
51690         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
51691         needed. Include <string.h>, <dirname.h>.
51692         (base_name): Allow file names ending in slashes, other than names
51693         that are all slashes.  In this case, return the basename followed
51694         by the slashes.  This is more general, and can be used in places
51695         where the original base_name purposely had an assertion failure.
51696         (base_len): New function.
51697
51698         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
51699         Do not include <assert.h>; no longer needed.
51700         Include xalloc.h.
51701         (memrchr): Remove decl.
51702         (dir_name_r): Remove.
51703         (dir_len): Renamed from dirlen.  All callers changed.
51704         Rewrite in terms of base_name, for simplicity and consistency.
51705         (dir_name): Never return NULL.  All callers changed.
51706         Do not include <stdlib.h> in test program; no longer needed.
51707         return 0; is fine for test program.
51708
51709         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
51710         New macros.
51711         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
51712
51713         * lib/path-concat.c (path_concat): Use base_len to compute
51714         base length, not strlen; this means we cannot rely on memcpy
51715         to null-terminate.
51716
51717         * lib/same.c (STREQ): Remove.
51718         (same_name): Handle the case where the basename ends in trailing '/'.
51719
51720         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
51721         a slash was stripped.  Do not strip the last slash after a
51722         file system prefix.
51723
51724 2001-05-11  Paul Eggert  <eggert@twinsun.com>
51725
51726         * lib/Makefile.am (libfetish_a_SOURCES):
51727         Add strftime.c, since we now compile it on all hosts.
51728
51729         * lib/strftime.c (my_strftime):
51730         Define to nstrftime if emacs, but only if my_strftime is not defined.
51731         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
51732         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
51733         Add one more extra argument: a nanoseconds value.
51734         All uses changed.
51735         (ns): New macro.
51736         (my_strftime function): Add %N format.
51737         (emacs_strftimeu): Renamed from emacs_strftime,
51738         with extra ut argument.
51739
51740 2001-05-09  Paul Eggert  <eggert@twinsun.com>
51741
51742         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
51743
51744 2001-04-21  Jim Meyering  <meyering@lucent.com>
51745
51746         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
51747         doesn't interfere.
51748
51749 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
51750
51751         * m4/ftruncate.m4: Check for chsize.
51752         Link with ftruncate.o unconditionally if ftruncate is missing.
51753         This was required when cross-compiling to i586-mingw32msvc.
51754
51755 2001-04-08  Jim Meyering  <meyering@lucent.com>
51756
51757         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
51758         recomputed; that's necessary when the offset spans a DST transition.
51759         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
51760
51761 2001-04-02  Jim Meyering  <meyering@lucent.com>
51762
51763         * lib/regex.h, regex.c: Update from GNU libc.
51764
51765 2001-03-24  Jim Meyering  <meyering@lucent.com>
51766
51767         * m4/jm-macros.m4: Require autoconf-2.49d.
51768
51769 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
51770
51771         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
51772
51773 2001-03-19  Paul Eggert  <eggert@twinsun.com>
51774
51775         * lib/version-etc.c (version_etc_copyright): Update to 2001.
51776
51777 2001-03-17  Jim Meyering  <meyering@lucent.com>
51778
51779         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
51780         now that the version in autoconf is equivalent.
51781         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
51782
51783         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
51784         Suggestion from Akim Demaille.
51785
51786         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
51787         (jm_PREREQ_TEMPNAME): New function.
51788
51789 2001-03-16  Paul Eggert  <eggert@twinsun.com>
51790
51791         * lib/tempname.c (uint64_t): Define to uintmax_t if
51792         not defined, and if UINT64_MAX is not defined.
51793         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
51794         Reported by John David Anglin.
51795
51796 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
51797
51798         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
51799         resolve alias if codeset is empty.
51800         * lib/config.charset (BeOS): Use wildcard syntax.
51801
51802 2001-03-13  Jim Meyering  <meyering@lucent.com>
51803
51804         * lib/path-concat.c (path_concat)
51805         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
51806         concatenating e.g., `C:' and `foo'.
51807         From Bruno Haible.
51808
51809 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
51810
51811         * lib/localcharset.c (locale_charset): Don't use
51812         setlocale(LC_CTYPE,NULL). Don't return NULL.
51813         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
51814
51815 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
51816
51817         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
51818         support for DOS/DJGPP.
51819
51820 2001-03-01  Paul Eggert  <eggert@twinsun.com>
51821
51822         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
51823         lacks mkstemp.  Compile our own tempname.c if we compile our own
51824         mkstemp.c, as mkstemp relies on tempname.
51825
51826 2001-03-01  Jim Meyering  <meyering@lucent.com>
51827
51828         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
51829         AH_VERBATIM really does output its argument verbatim.
51830
51831 2001-02-28  Paul Eggert  <eggert@twinsun.com>
51832
51833         * lib/Makefile.am (libfetish_a_SOURCES):
51834         Add dup-safer.c, fopen-safer.c.
51835         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
51836
51837         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
51838         * lib/unistd-safer.h: New files.
51839
51840 2001-02-25  Paul Eggert  <eggert@twinsun.com>
51841
51842         The mkstemp replacement is taken from glibc 2.2.2, with some
51843         portability fixes for use outside glibc, as follows:
51844
51845         * lib/tempname.c (struct_stat64): New macro.
51846         (direxists, __gen_tempname): Use it.
51847         This avoids a portability problem with Solaris 8.
51848
51849         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
51850         (<stddef.h>, <stdint.h>, <string.h>):
51851         Include only if STDC_HEADERS || _LIBC.
51852         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
51853         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
51854         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
51855         (__set_errno): Define this macro if <errno.h> doesn't.
51856         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
51857         Define these macros if <stdio.h> doesn't.
51858         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
51859         Define these macros if <sys/stat.h>
51860         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
51861         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
51862         __xstat64): Define if not _LIBC.
51863         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
51864         (__gen_tempname): Invoke gettimeofday only if
51865         HAVE_GETTIMEOFDAY || _LIBC;
51866         otherwise, fall back on plain "time".
51867         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
51868
51869         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
51870
51871         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
51872
51873 2001-02-18  Paul Eggert  <eggert@twinsun.com>
51874
51875         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
51876
51877 2001-02-17  Paul Eggert  <eggert@twinsun.com>
51878
51879         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
51880         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
51881         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
51882         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
51883
51884 2001-02-17  Paul Eggert  <eggert@twinsun.com>
51885
51886         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
51887         Remove workaround macros for hosts that have mbrtowc but not
51888         mbstate_t, as we now insist on proper declarations for both
51889         before using mbrtowc.
51890
51891 2001-02-17  Jim Meyering  <meyering@lucent.com>
51892
51893         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
51894         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
51895         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
51896         UnixWare 7.1.1.
51897
51898         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
51899         rather than AC_CACHE_VAL.
51900
51901 2001-02-17  Jim Meyering  <meyering@lucent.com>
51902
51903         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
51904         around included file name.
51905
51906         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
51907
51908         * lib/strftime.c: Update from GNU libc (the only changes were to
51909         comments).
51910
51911 2001-02-17  Jim Meyering  <meyering@lucent.com>
51912
51913         * lib/regex.c: Update from libc.
51914
51915 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
51916
51917         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
51918         clash.
51919
51920 2001-02-16  Paul Eggert  <eggert@twinsun.com>
51921
51922         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
51923         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
51924         Reported by Mark Hounschell via Paul Eggert.
51925
51926 2001-02-07  Jim Meyering  <meyering@lucent.com>
51927
51928         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
51929
51930 2001-02-05  Jim Meyering  <meyering@lucent.com>
51931
51932         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
51933         it includes the patch required for `large file' support with at least
51934         HP-UX's 10.20 /bin/cc.
51935
51936 2001-02-03  Jim Meyering  <meyering@lucent.com>
51937
51938         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
51939         AS_IF, now that it works once again (mysteriously).
51940         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
51941
51942 2001-01-30  Jim Meyering  <meyering@lucent.com>
51943
51944         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
51945         * m4/chown.m4: Rename conftestchown to conftest.chown.
51946         * m4/rename.m4: s/conftestdir/conftest.d1/ and
51947         s/conftestdir2/conftest.d2/.
51948         * m4/utimes.m4: s/conftestdata/conftest.data/
51949         Inspired by Pavel Roskin's change in autoconf.
51950
51951 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
51952
51953         * lib/config.charset: Update for FreeBSD 4.2.
51954
51955 2001-01-27  Jim Meyering  <meyering@lucent.com>
51956
51957         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
51958         a use of AS_IF.
51959         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
51960
51961 2001-01-26  Jim Meyering  <meyering@lucent.com>
51962
51963         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
51964         quotearg.c includes it.
51965
51966 2001-01-26  Jim Meyering  <meyering@lucent.com>
51967
51968         * lib/quotearg.c: Include stddef.h.
51969         * lib/quote.c: Include stddef.h.
51970         Reported by Axel Kittenberger.
51971
51972         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
51973         line in double quotes so that it evokes a better diagnostic.
51974         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
51975         Reported by Axel Kittenberger.
51976
51977 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
51978
51979         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
51980         as if it was a `charset'.
51981
51982 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
51983
51984         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
51985         has const.
51986
51987 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
51988
51989         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
51990         to avoid a warning.  Add back 'const' to inptr.
51991
51992 2001-01-20  Jim Meyering  <meyering@lucent.com>
51993
51994         Be sure that headers are checked before used in code compiled
51995         for the type checks.
51996         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
51997         In place of that, invoke jm_CHECK_ALL_TYPES.
51998         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
51999         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
52000         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
52001         The check for ssize_t was mistakenly run before the test for unistd.h.
52002
52003         The configure-time check for stdbool.h was missing.
52004         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
52005         (jm_PREREQ_HASH): New function.
52006
52007 2001-01-17  Jim Meyering  <meyering@lucent.com>
52008
52009         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
52010         for autoconf-2.49c.
52011         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
52012
52013 2001-01-16  Jim Meyering  <meyering@lucent.com>
52014
52015         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
52016         From Bruno Haible.
52017
52018 2001-01-14  Jim Meyering  <meyering@lucent.com>
52019
52020         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
52021         foo and bar.  Create conftestdir/ in the script, not in the C code.
52022         Remove directories in the script, not in the C code.
52023         Remove conftestdir{,2} before trying to create the directory.
52024         Make the entire configure script fail if the mkdir fails.
52025
52026 2001-01-14  Jim Meyering  <meyering@lucent.com>
52027
52028         * lib/rename.c: New file.  From Volker Borchert.
52029         Include stdlib.h, string.h or strings.h, and xalloc.h.
52030         Use strip_trailing_slashes rather than open-coding it.
52031
52032 2001-01-03  Paul Eggert  <eggert@twinsun.com>
52033
52034         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
52035
52036 2001-01-03  Jim Meyering  <meyering@lucent.com>
52037
52038         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
52039         of local `inptr' to avoid warning with some system declarations of
52040         iconv.
52041
52042 2001-01-02  Volker Borchert  <bt@teknon.de>
52043
52044         * m4/rename.m4: New file.
52045         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
52046
52047 2001-01-01  Jim Meyering  <meyering@lucent.com>
52048
52049         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
52050         even on systems with utmpx.h.  It's necessary for the declaration of
52051         utmp's ut_user member.  Reported by Andreas Jaeger.
52052
52053         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
52054         available. They are required for the declarations of getgrgid and
52055         getpwuid resp.
52056         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
52057         Reported by Andreas Jaeger.
52058
52059 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
52060
52061         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
52062         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
52063         so `make install' also works in VPATH builds.
52064
52065 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
52066
52067         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
52068         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
52069         can be used in subdirectories.
52070
52071 2000-12-29  Paul Eggert  <eggert@twinsun.com>
52072
52073         * lib/modechange.c: Do not assume that mode_t uses the
52074         traditional octal encoding.  E.g. "chmod 1 FOO" should set
52075         the other-execute bit of FOO even if S_IXOTH != 1.
52076
52077         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
52078         WOTH, XOTH, ALLM): New macros.
52079         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
52080          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
52081         Use them.
52082         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
52083         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
52084         (mode_compile):
52085         No need to use uintmax_t; unsigned long is long enough.
52086         Don't bother to get suffix since we don't use it.
52087
52088 2000-12-26  Jim Meyering  <meyering@lucent.com>
52089
52090         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
52091         better with autoheader.
52092
52093 2000-12-24  Jim Meyering  <meyering@lucent.com>
52094
52095         * lib/hash.c (is_prime): Return explicit boolean values.
52096         (hash_get_first): Return NULL to appease Irix5.6's 89.
52097         Reported by Nelson Beebe.
52098
52099 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
52100
52101         * lib/localcharset.c (locale_charset): Add support for Win32.
52102
52103 2000-12-18  Paul Eggert  <eggert@twinsun.com>
52104
52105         * lib/physmem.h, lib/physmem.c: New files.
52106
52107         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
52108         (noinst_HEADERS): Add physmem.h.
52109
52110         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
52111         't' for compatibility with Solaris 8 sort.
52112
52113 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
52114
52115         * lib/config.charset: Add support for BeOS.
52116
52117 2000-12-17  Jim Meyering  <meyering@lucent.com>
52118
52119         * m4/dos.m4 (jm_AC_DOS): New file and macro.
52120         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
52121
52122 2000-12-16  Jim Meyering  <meyering@lucent.com>
52123
52124         This bug had a serious impact on chown: `chown N:M FILE' (for integer
52125         N and M) would have treated it like `chown N:N FILE'.
52126
52127         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
52128
52129 2000-12-16  Jim Meyering  <meyering@lucent.com>
52130
52131         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
52132         SHELLS_FILE to a file name that's useful on djgpp systems.
52133         Include stdlib.h.
52134         (ADDITIONAL_DEFAULT_SHELLS): Define.
52135         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
52136         Based mostly on a patch from Prashant TR.
52137
52138 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
52139
52140         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
52141         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
52142         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
52143
52144 2000-12-08  Andreas Schwab  <schwab@suse.de>
52145
52146         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
52147         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
52148
52149 2000-12-07  Jim Meyering  <meyering@lucent.com>
52150
52151         * lib/stripslash.c (ISSLASH): Define.
52152         (strip_trailing_slashes): Use ISSLASH rather than comparing against
52153         `/'.
52154         From Prashant TR.
52155
52156         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
52157         (dir_name_r): Declare this function as static.
52158         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
52159         manifest itself on a name containing a mix of slashes and
52160         backslashes.
52161         Make this function work with names starting with a DOS-style
52162         drive letter and colon prefix.
52163         (dir_name): Append `.' if necessary.
52164         Based mostly on patches from Prashant TR and Eli Zaretskii.
52165
52166         * lib/dirname.h (dir_name_r): Remove prototype.
52167
52168 2000-12-06  Paul Eggert  <eggert@twinsun.com>
52169
52170         * m4/off_t-format.m4: Remove this file.
52171         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
52172
52173 2000-12-06  Jim Meyering  <meyering@lucent.com>
52174
52175         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
52176         replacement strtoull, we may well need the replacement strtoul, too.
52177         Check for declarations of strtoul and strtoull.
52178         Check for strtol.  Mainly as a cue to cause automake to include
52179         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
52180         Check for limits.h -- strtol.c needs it.
52181
52182 2000-12-05  Jim Meyering  <meyering@lucent.com>
52183
52184         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
52185
52186 2000-12-04  Jim Meyering  <meyering@lucent.com>
52187
52188         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
52189         Also include memory.h, stdlib.h, unistd.h if appropriate.
52190         Reported by Andreas Jaeger (conflicting declaration of malloc).
52191
52192 2000-12-02  Jim Meyering  <meyering@lucent.com>
52193
52194         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
52195         * m4/jm-macros.m4 (jm_MACROS): require it.
52196
52197 2000-12-02  Jim Meyering  <meyering@lucent.com>
52198
52199         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
52200
52201 2000-12-01  Paul Eggert  <eggert@twinsun.com>
52202
52203         * lib/memrchr.c: Include <config.h> before any system include file.
52204
52205 2000-11-30  Jim Meyering  <meyering@lucent.com>
52206
52207         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
52208
52209 2000-11-30  Jim Meyering  <meyering@lucent.com>
52210
52211         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
52212
52213 2000-11-29  Paul Eggert  <eggert@twinsun.com>
52214
52215         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
52216
52217 2000-11-26  Jim Meyering  <meyering@lucent.com>
52218
52219         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
52220
52221 2000-11-22  Paul Eggert  <eggert@twinsun.com>
52222
52223         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
52224         size of (size_t) -1; it's not portable.
52225
52226 2000-11-17  Jim Meyering  <meyering@lucent.com>
52227
52228         * lib/strstr.c: Update from GNU libc.
52229
52230 2000-11-17  Akim Demaille  <akim@epita.fr>
52231
52232         * lib/obstack.h: Formatting changes.
52233         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
52234         prevent type checking.
52235         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
52236         cast the value to (void *): assigning a `foo *' to a `void *'
52237         variable is valid.
52238         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
52239
52240 2000-11-16  Jim Meyering  <meyering@lucent.com>
52241
52242         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
52243
52244 2000-11-11  Jim Meyering  <meyering@lucent.com>
52245
52246         * lib/error.c: Add a couple #includes, merging from GNU libc version.
52247
52248 2000-11-10  Jim Meyering  <meyering@lucent.com>
52249
52250         * lib/obstack.h: Update from GNU libc.
52251         * lib/obstack.c: Likewise.
52252
52253 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
52254
52255         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
52256
52257 2000-11-06  Paul Eggert  <eggert@twinsun.com>
52258
52259         * lib/getusershell.c (setusershell): Use rewind rather than
52260         fseek/fseeko, to avoid configuration hassles with fseeko.
52261         Don't bother opening SHELLS_FILE if shellstream is NULL;
52262         it's not necessary.
52263
52264 2000-11-05  Jim Meyering  <meyering@lucent.com>
52265
52266         * lib/makepath.h (make_dir): Declare.
52267         * lib/makepath.c (make_dir): Remove `static' attribute.
52268         Tweak a comment.
52269
52270 2000-11-04  Jim Meyering  <meyering@lucent.com>
52271
52272         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
52273
52274 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
52275
52276         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
52277         last one in a bucket, advance to the next bucket.
52278
52279 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
52280
52281         * lib/fnmatch.c: Do not comment out all the code if we are using
52282         the GNU C library, because in some cases we are replacing buggy
52283         code in the GNU C library itself.
52284
52285 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
52286
52287         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
52288         (regex_compile): Catch bogus \(\1\).
52289
52290 2000-10-30  Paul Eggert  <eggert@twinsun.com>
52291
52292         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
52293         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
52294         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
52295
52296 2000-10-30  Paul Eggert  <eggert@twinsun.com>
52297
52298         * lib/error.h, getline.h, modechange.h:
52299         Remove "2000" from Copyright line, as the file hasn't been
52300         changed this year other than in the copyright notice.
52301
52302         * lib/xalloc.h: Add "2000" to Copyright line, as this file
52303         was changed this year.
52304
52305 2000-10-29  Jim Meyering  <meyering@lucent.com>
52306
52307         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
52308         renaming.
52309         * m4/ls-mntd-fs.m4: Likewise
52310
52311 2000-10-29  Jim Meyering  <meyering@lucent.com>
52312
52313         * lib/xstat.in: Fix grammar in comment.
52314
52315 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
52316
52317         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
52318         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
52319         doesn't define __restrict_arr.
52320
52321 2000-10-28  Jim Meyering  <meyering@lucent.com>
52322
52323         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
52324         (jm_PREREQ_MEMCHR): New function.
52325
52326 2000-10-28  Jim Meyering  <meyering@lucent.com>
52327
52328         * lib/memchr.c: Update from libc.
52329         Adjust for portability:
52330         [HAVE_STDLIB_H]: Include stdlib.h.
52331         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
52332         Undef __memchr, too.
52333         [!weak_alias]: Define __memchr to memchr.
52334
52335         * lib/regex.c: Update from libc.
52336         * lib/regex.h: Likewise.
52337         * lib/getopt1.c: Likewise.
52338         * lib/memcmp.c: Likewise.
52339
52340         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
52341         Avoid using fseek, when possible -- it's broken by design.
52342         Patch by Ulrich Drepper.
52343
52344 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
52345
52346         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
52347         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
52348         Giving in to popular pressure to shut up the compiler with casts.
52349
52350 2000-10-26  Jim Meyering  <meyering@lucent.com>
52351
52352         * lib/strftime.c: Update from libc.
52353
52354 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
52355
52356         * regex.c: More `unsigned char' -> `re_char' changes.
52357         Also change several `int' into `re_wchar_t'.
52358         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
52359         (PUSH_FAILURE_POINTER): Don't cast any more.
52360         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
52361         We want GCC to complain, since this piece of code makes
52362         re_match non-reentrant, which *should* be fixed.
52363         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
52364         (EXTEND_BUFFER): Use RETALLOC.
52365         (SET_LIST_BIT): Don't cast.
52366         (re_wchar_t): New type.
52367         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
52368         that those two functions will always properly return.
52369         (IMMEDIATE_QUIT_CHECK): Cast to void.
52370         (analyse_first): Use recursion rather than an explicit stack.
52371         (re_compile_fastmap): Can't fail anymore.
52372         (re_search_2): Don't check re_compile_fastmap for failure.
52373         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
52374         Now also sets the new value (passed in a new argument).
52375         (re_match_2_internal): Use it.
52376         Also, use a new var `reg' of type size_t when looping through regs
52377         rather than reuse the inappropriate `mcnt'.
52378
52379 2000-10-25  Jim Meyering  <meyering@lucent.com>
52380
52381         * lib/obstack.c: Update from libc.
52382
52383 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
52384
52385         * regex.c (regex_compile): Change the way of handling a range from
52386         a char less than 256 to a char not less than 256.
52387
52388 2000-10-24  Andrew Innes  <andrewi@gnu.org>
52389
52390         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
52391         NT-Emacs only.
52392         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
52393         so that re_search functions only quit when callers expect them to.
52394
52395 2000-10-23  Jim Meyering  <meyering@lucent.com>
52396
52397         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
52398         wrong.  That set_locale call must not have any side effects.
52399         From Paul Eggert.
52400
52401 2000-10-22  Jim Meyering  <meyering@lucent.com>
52402
52403         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
52404         [CYCLIC]: Remove now-unused definition.
52405
52406         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
52407         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
52408         Suggestion from Ulrich Drepper.
52409
52410 2000-10-21  Jim Meyering  <meyering@lucent.com>
52411
52412         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
52413         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
52414         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
52415
52416 2000-10-21  Jim Meyering  <meyering@lucent.com>
52417
52418         * lib/dirname.c (memrchr): Declare if necessary.
52419         (dir_name): Remove the restriction that there be no
52420         trailing slashes.  Now, this code skips past them, effectively
52421         ignoring them.
52422         [TEST_DIRNAME] (main): New unit tests.
52423
52424         * lib/memrchr.c: New file from GNU libc.
52425         Undef __memrchr, too.
52426         [!weak_alias]: Define __memrchr to memrchr.
52427         Guard weak_alias use with `#ifdef weak_alias'.
52428
52429 2000-10-21  Jim Meyering  <meyering@lucent.com>
52430
52431         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
52432         (dir_name): Use dir_name_r.
52433         * lib/dirname.h (dir_name_r): Declare it.
52434
52435 2000-10-17  Jim Meyering  <meyering@lucent.com>
52436
52437         * lib/quote.h (PARAMS): Define and use.
52438         Reported by Akim Demaille.
52439
52440         * lib/getopt.c: Update from libc.
52441
52442 2000-10-16  Jim Meyering  <meyering@lucent.com>
52443
52444         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
52445         setlocale.
52446         From Jan Fedak.
52447
52448 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
52449
52450         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
52451
52452 2000-09-25  Jim Meyering  <meyering@lucent.com>
52453
52454         * lib/md5.h (rol): Define (from GnuPG).
52455
52456         * lib/sha.c: Give credit (GnuPG) where due.
52457         (M): Use rol rather than open-coding it.
52458         Add a FIXME comment.
52459
52460 2000-09-21  Jim Meyering  <meyering@lucent.com>
52461
52462         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
52463         Reported by Michael Stone.
52464
52465 2000-09-20  Jim Meyering  <meyering@lucent.com>
52466
52467         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
52468         (noinst_HEADERS): Add sha.h.
52469         Based on code from Scott G. Miller and from GnuPG.
52470
52471 2000-09-18  Jim Meyering  <meyering@lucent.com>
52472
52473         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
52474         LIBS. Otherwise, everyone ends up linking with -lelf for some
52475         configurations.
52476         Reported by Mike Stone.
52477
52478 2000-09-15  Jim Meyering  <meyering@lucent.com>
52479
52480         * lib/regex.c: Update from libc.
52481
52482 2000-09-10  Jim Meyering  <meyering@lucent.com>
52483
52484         * lib/getopt.c (_getopt_internal): Update from glibc.
52485
52486 2000-09-09  Jim Meyering  <meyering@lucent.com>
52487
52488         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
52489         think it should be used as a general replacement for isascii.
52490         * lib/fnmatch.c: Likewise.
52491         * lib/mbswidth.c: Likewise
52492         * lib/regex.c: Likewise.
52493
52494         Don't use atoi.
52495         * lib/userspec.c: Include sys/param.h and limits.h.
52496         Include xstrtol.h.
52497         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
52498         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
52499         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
52500         UID, GID.  Check range.
52501
52502 2000-09-06  Jim Meyering  <meyering@lucent.com>
52503
52504         * lib/getopt.c (_getopt_internal): Update from glibc.
52505
52506 2000-08-30  Jim Meyering  <meyering@lucent.com>
52507
52508         * lib/strftime.c: Merge in changes from GNU libc.
52509
52510 2000-08-26  Jim Meyering  <meyering@lucent.com>
52511
52512         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
52513         * m4/fpending.m4: New file.
52514
52515 2000-08-26  Jim Meyering  <meyering@lucent.com>
52516
52517         * lib/closeout.c: Include "__fpending.h".
52518         (close_stdout_status): Return right away if there's nothing to flush.
52519
52520         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
52521         * lib/__fpending.c: New file.
52522         * lib/__fpending.h: New file.
52523
52524 2000-08-20  Jim Meyering  <meyering@lucent.com>
52525
52526         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
52527         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
52528         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
52529
52530 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
52531
52532         Improve fileutils installation on systems where running
52533         programs (like install) can't be unlinked.
52534         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
52535         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
52536
52537 2000-08-07  Paul Eggert  <eggert@twinsun.com>
52538
52539         Standardize on "memory exhausted" instead of "Memory exhausted"
52540         or "virtual memory exhausted".
52541         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
52542         "virtual memory exhausted".
52543         * lib/same.c (same_name): Invoke xalloc_die instead of printing
52544         our own message.
52545         * lib/userspec.c (parse_user_spec): Likewise.
52546         * lib/bumpalloc.h: comment fix
52547         * lib/same.c, userspec.c: Include xalloc.h.
52548
52549         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
52550         not char *const and pointing to a constant array.
52551         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
52552         (xrealloc): Comment fix.
52553
52554         * lib/userspec.c (parse_user_spec):
52555         Don't translate a message until just before returning,
52556         to avoid unnecessary translation.
52557
52558 2000-08-07  Jim Meyering  <meyering@lucent.com>
52559
52560         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
52561         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
52562         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
52563         getgroups.c, gethostname.c, getopt.h, group-member.c,
52564         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
52565         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
52566         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
52567         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
52568         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
52569         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
52570         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
52571         yesno.c: Back out Copyright date changes for each file with no change
52572         this year.  This eases coordination with other programs using the same
52573         source code modules.  From Paul Eggert.
52574
52575 2000-08-06  Paul Eggert  <eggert@twinsun.com>
52576
52577         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
52578         not char, for compatibility with glibc 2.1.3 strftime.c.
52579
52580 2000-08-03  Greg McGary  <greg@mcgary.org>
52581
52582         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
52583         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
52584         (EXTEND_BUFFER): Use them.
52585
52586 2000-08-01  Jim Meyering  <meyering@lucent.com>
52587
52588         * lib/dirname.c (ISSLASH): Define.
52589         (BACKSLASH_IS_PATH_SEPARATOR): Define.
52590         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
52591         both `\' and `/' may be use as path separators.
52592         Based on a patch from Prashant TR.
52593
52594 2000-07-31  Paul Eggert  <eggert@twinsun.com>
52595
52596         * lib/quotearg.c (quotearg_n_options): Don't make the initial
52597         slot vector a constant, since it might get modified.
52598
52599 2000-07-31  Jim Meyering  <meyering@lucent.com>
52600
52601         * lib/xmalloc.c: Use `virtual memory exhausted', not
52602         `Memory exhausted'.
52603         * lib/obstack.c (print_and_abort): Likewise.
52604
52605 2000-07-30  Paul Eggert  <eggert@twinsun.com>
52606
52607         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
52608         buffer, so that the caller can always quote one small
52609         component of a "memory exhausted" message in slot 0.
52610         From a suggestion by Jim Meyering.
52611
52612 2000-07-30  Jim Meyering  <meyering@lucent.com>
52613
52614         * lib/makepath.c (make_path): Quote the other instance, too.
52615
52616         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
52617         (STATIC_BUF_SIZE): Define.
52618         (quotearg_n_options): Use only statically allocated storage when
52619         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
52620         than STATIC_BUF_SIZE.
52621
52622 2000-07-29  Jim Meyering  <meyering@lucent.com>
52623
52624         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
52625         * lib/dirname.c (dir_name): Likewise.
52626
52627         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
52628         `/'.
52629
52630         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
52631         (dir_name): Assert that there are no trailing slashes.
52632
52633 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
52634
52635         * lib/mbswidth.h (mbswidth): Add a flags argument.
52636         (mbswidth): New declaration.
52637         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
52638         * lib/mbswidth.c (mbswidth): Add a flags argument.
52639         (mbsnwidth): New function.
52640
52641 2000-07-24  Jim Meyering  <meyering@lucent.com>
52642
52643         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
52644
52645 2000-07-23  Paul Eggert  <eggert@twinsun.com>
52646
52647         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
52648
52649 2000-07-23  Paul Eggert  <eggert@twinsun.com>
52650
52651         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
52652         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
52653         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
52654         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
52655         invoke multibyte primitives.
52656
52657 2000-07-23  Paul Eggert  <eggert@twinsun.com>
52658
52659         * lib/quotearg.c:
52660         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
52661         so that mbstate_t is always defined.
52662
52663         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
52664         be 1 in at least one GCC installation, and this configuration
52665         error is likely to be common.  Ignoring MB_LEN_MAX hurts
52666         performance on hosts that have mbrtowc but have only unibyte
52667         locales, but I assume these hosts are rare.
52668
52669 2000-07-23  Paul Eggert  <eggert@twinsun.com>
52670
52671         * lib/mbswidth.c (_XOPEN_SOURCE):
52672         Don't define; this causes problems on Solaris 7.
52673         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
52674
52675 2000-07-23  Jim Meyering  <meyering@lucent.com>
52676
52677         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
52678         too: getgrgid, getpwuid, getuid.
52679
52680 2000-07-23  Jim Meyering  <meyering@lucent.com>
52681
52682         * lib/basename.c (base_name): Add an assertion.
52683
52684 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
52685
52686         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
52687         shadow its mbsinit function.
52688
52689 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
52690
52691         * lib/mbswidth.h: New file.
52692         * lib/mbswidth.c: New file.
52693         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
52694         (noinst_HEADERS): Add mbswidth.h.
52695
52696 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
52697
52698         * lib/config.charset: Add support for FreeBSD. Improve support for
52699         HP-UX and IRIX 6.
52700
52701 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
52702
52703         * m4/mbswidth.m4: New file.
52704         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
52705
52706 2000-07-15  Jim Meyering  <meyering@lucent.com>
52707
52708         * lib/makepath.c: Include quote.h.
52709         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
52710         corresponding argument in a `quote (...)' call.
52711         Give better diagnostics.
52712
52713         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
52714         (noinst_HEADERS): Add quote.h.
52715
52716         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
52717         from tar's src/misc.c.
52718         * lib/quote.h: New file.  Prototypes for same.
52719
52720 2000-07-14  Paul Eggert  <eggert@twinsun.com>
52721
52722         From a suggestion by Bruno Haible.
52723         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
52724         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
52725         to decide whether to define the BeOS workaround macro;
52726         this adjusts to the change to AC_MBSTATE_T.
52727
52728 2000-07-14  Jim Meyering  <meyering@lucent.com>
52729
52730         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
52731         jm_AC_TYPE_UINTMAX_T.
52732
52733 2000-07-13  Paul Eggert  <eggert@twinsun.com>
52734
52735         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
52736
52737         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
52738         quotearg_buffer_restyled): Add support for
52739         clocale_quoting_style.  Undo previous change to
52740         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
52741         and "{RIGHT QUOTATION MARK}" msgids.
52742
52743 2000-07-10  Paul Eggert  <eggert@twinsun.com>
52744
52745         From a suggestion by Bruno Haible.
52746         * m4/mbstate_t.m4 (AC_MBSTATE_T):
52747         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
52748         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
52749         and mbstate_t, to a single-part test that simply defines mbstate_t.
52750         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
52751         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
52752
52753 2000-07-10  Jim Meyering  <meyering@lucent.com>
52754
52755         * m4/strerror_r.m4: Mirror the correction made in autoconf.
52756
52757         * m4/gnu-source.m4: Output to confdefs.h directly.
52758         Suggestion from Akim Demaille.
52759
52760 2000-07-09  Paul Eggert  <eggert@twinsun.com>
52761
52762         The old behavior of quoting `like this' doesn't look good with
52763         newer, ISO-style fonts.  See:
52764         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
52765
52766         Instead, quote "like this" by default.  Let the translator
52767         tailor the locale-specific quoting behavior by providing
52768         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
52769
52770         * lib/quotearg.c (N_): New macro.
52771         (gettext_default): New function.
52772         (quotearg_buffer_restyled): Use
52773         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
52774         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
52775
52776 2000-07-09  Jim Meyering  <meyering@lucent.com>
52777
52778         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
52779         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
52780
52781         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
52782         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
52783
52784 2000-07-09  Jim Meyering  <meyering@lucent.com>
52785
52786         * lib/Most files: Update copyright dates to include 2000.
52787
52788 2000-07-08  Jim Meyering  <meyering@lucent.com>
52789
52790         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
52791         if not defined.
52792         (xgethostname): Remove now-unnecessary #ifdef.
52793         Move declaration of `err' into loop where it's used.
52794
52795 2000-07-05  Paul Eggert  <eggert@twinsun.com>
52796         and Bruno Haible  <haible@clisp.cons.org>
52797
52798         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
52799         only if the test for an object-type mbstate_t fails.  This
52800         prevents us from mistakenly reporting that mbstate_t is a
52801         system object type after we "#define mbstate_t int" to work
52802         around its lack.
52803
52804 2000-07-05  Paul Eggert  <eggert@twinsun.com>
52805         and Bruno Haible  <haible@clisp.cons.org>
52806
52807         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
52808
52809 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
52810
52811         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
52812         to strerror_r.
52813         Include <ctype.h> for use of isalpha.
52814
52815 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
52816
52817         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
52818         by allocating a larger buffer. Test the gethostname return value for
52819         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
52820         returns an error and ENAMETOOLONG isn't defined.
52821
52822 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
52823
52824         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
52825         dimension.
52826
52827 2000-07-04  Jim Meyering  <meyering@lucent.com>
52828
52829         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
52830         of the deprecated AC_CHECKING.
52831
52832 2000-07-04  Jim Meyering  <meyering@lucent.com>
52833
52834         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
52835         Reported by Bruno Haible.
52836
52837 2000-07-04  Jim Meyering  <meyering@lucent.com>
52838
52839         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
52840         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
52841         lacks mbrtowc.
52842
52843 2000-07-03  Paul Eggert  <eggert@twinsun.com>
52844
52845         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
52846         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
52847
52848 2000-07-03  Paul Eggert  <eggert@twinsun.com>
52849         and Bruno Haible  <haible@clisp.cons.org>
52850
52851         * lib/quotearg.c (mbrtowc):
52852         Assign to *pwc, and return 1 only if result is nonzero.
52853         (iswprint): Use ISPRINT when substituting our own mbrtowc.
52854
52855 2000-07-03  Jim Meyering  <meyering@lucent.com>
52856
52857         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
52858
52859 2000-07-03  Jim Meyering  <meyering@lucent.com>
52860
52861         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
52862         This is necessary to get a definition of e.g., UTMP_FILE on
52863         HP-UX 10.20.
52864         From Bob Proulx.
52865
52866 2000-07-02  Jim Meyering  <meyering@lucent.com>
52867
52868         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
52869
52870         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
52871         AC_LIBOBJ(function_name).
52872         * m4/chown.m4: Likewise.
52873         * m4/fnmatch.m4: Likewise.
52874         * m4/ftruncate.m4: Likewise.
52875         * m4/getgroups.m4: Likewise.
52876         * m4/getline.m4: Likewise.
52877         * m4/group-member.m4: Likewise.
52878         * m4/jm-macros.m4: Likewise.
52879         * m4/lstat.m4: Likewise.
52880         * m4/malloc.m4: Likewise.
52881         * m4/memcmp.m4: Likewise.
52882         * m4/nanosleep.m4: Likewise.
52883         * m4/putenv.m4: Likewise.
52884         * m4/realloc.m4: Likewise.
52885         * m4/regex.m4: Likewise.
52886         * m4/stat.m4: Likewise.
52887         * m4/strftime.m4: Likewise.
52888
52889 2000-07-02  Jim Meyering  <meyering@lucent.com>
52890
52891         * lib/quotearg.c (mbstate_t): Don't define here.
52892
52893 2000-07-02  Jim Meyering  <meyering@lucent.com>
52894
52895         * lib/nanosleep.c (SIGCONT): Define if not already defined.
52896
52897 2000-07-01  Jim Meyering  <meyering@lucent.com>
52898
52899         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
52900
52901 2000-07-01  Jim Meyering  <meyering@lucent.com>
52902
52903         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
52904         problem.
52905
52906 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
52907
52908         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
52909         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
52910
52911 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
52912
52913         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
52914         per change in ../m4/ls-mntd-fs.m4.
52915         (read_filesystem_list): Ignore symbolic links.
52916
52917 2000-06-29  Jim Meyering  <meyering@lucent.com>
52918
52919         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
52920         for declaration of strcmp.
52921
52922         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
52923
52924         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
52925         Avoid warning by casting result to `char *' to remove `const'.
52926
52927 2000-06-28  Jim Meyering  <meyering@lucent.com>
52928
52929         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
52930         included by quotearg.c, for which we perform this test.  From
52931         Bruno Haible.
52932
52933 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
52934
52935         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
52936         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
52937         <utmpx.h> exists, put readutmp.o into LIBOBJS.
52938
52939 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
52940
52941         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
52942
52943 2000-06-26  Paul Eggert  <eggert@twinsun.com>
52944
52945         savedir now sets errno on failure and invokes xmalloc to get memory.
52946         Fix a couple of other minor bugs while we're at it.
52947
52948         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
52949         (NAMLEN): Remove macro.
52950         (malloc, realloc): Remove decls.
52951         (stpcpy): Likewise.
52952         ("xalloc.h"): Include.
52953         (NAME_SIZE_DEFAULT): New macro.
52954         (savedir): Use xmalloc / xrealloc to allocate memory.
52955         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
52956         Skip "" directory entries.
52957         Use strlen to calculate directory entry length, since the old method
52958         is rarely used these days and isn't worth supporting.
52959         Don't use a pointer after freeing it.
52960         Check for integer overflow when calculating allocation size.
52961         Use memcpy to copy entries, instead of stpcpy.
52962         Set errno properly when returning NULL.
52963         Check for readdir error.
52964
52965 2000-06-26  Jim Meyering  <meyering@lucent.com>
52966
52967         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
52968
52969 2000-06-25  Jim Meyering  <meyering@lucent.com>
52970
52971         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
52972         Linux header bug when _XOPEN_SOURCE is defined to 500.
52973
52974 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
52975
52976         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
52977         deficiency.
52978
52979 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
52980
52981         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
52982         Include xalloc.h.
52983         Don't include <stdlib.h>.  Don't declare malloc, realloc.
52984
52985 2000-06-24  Jim Meyering  <meyering@lucent.com>
52986
52987         * m4/strerror_r.m4: Revive this file -- to try out an experimental
52988         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
52989         for which strerror does return char*, but which lacks a conveniently
52990         accessible declaration of the function.  If the compile-test says
52991         strerror_r doesn't work, then resort to a `run'-test that works on
52992         BeOS and segfaults on DEC Unix.
52993
52994 2000-06-24  Jim Meyering  <meyering@lucent.com>
52995
52996         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
52997
52998 2000-06-23  Paul Eggert  <eggert@twinsun.com>
52999
53000         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
53001         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
53002
53003 2000-06-23  Paul Eggert  <eggert@twinsun.com>
53004
53005         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
53006         (mbrtowc, mbstate_t): Define substitutes if
53007         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
53008         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
53009         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
53010
53011 2000-06-23  Jim Meyering  <meyering@lucent.com>
53012
53013         * m4/afs.m4: Add missing AC_MSG_RESULT.
53014         Reported by Bruno Haible.
53015
53016         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
53017         Suggestion from Bruno Haible.
53018
53019 2000-06-23  Jim Meyering  <meyering@lucent.com>
53020
53021         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
53022
53023 2000-06-21  Jim Meyering  <meyering@lucent.com>
53024
53025         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
53026
53027 2000-06-21  Jim Meyering  <meyering@lucent.com>
53028
53029         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
53030         (noinst_HEADERS): Add getstr.h.
53031
53032         * lib/getline.c (getstr): Move into a separate file.
53033         * lib/getstr.c (getstr): New file, extracted from getline.c, with
53034         the following changes: new parameter, delim2; both delim[12]
53035         parameters have type `int', not `char'.  The latter would lose
53036         with 8-bit delimiters.
53037         * lib/getstr.h: New file.
53038
53039 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
53040
53041         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
53042         than 1024, return a memory chunk of least possible size, instead
53043         of size PATH_MAX + 2. In the loop, increment the size proportionally.
53044         Use free/xmalloc instead of xrealloc to avoid copying for very long
53045         paths.
53046
53047 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
53048
53049         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
53050         the empty string.
53051
53052 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
53053
53054         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
53055         address, not strdup.  Include <stdlib.h> and don't declare free().
53056
53057 2000-06-19  Jim Meyering  <meyering@lucent.com>
53058
53059         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
53060
53061 2000-06-18  Jim Meyering  <meyering@lucent.com>
53062
53063         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
53064
53065         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
53066         `checking whether...' message to be consistent with that of the
53067         lstat test.
53068
53069 2000-06-18  Jim Meyering  <meyering@lucent.com>
53070
53071         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
53072         Besides, these days every porting target provides a mkdir function.
53073
53074         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
53075         needed. (this snippet comes from src/system.h).
53076
53077 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
53078
53079         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
53080
53081 2000-06-15  Paul Eggert  <eggert@twinsun.com>
53082
53083         * lib/human.c (adjust_value): New function.
53084         (human_readable_inexact): Apply rounding style even when
53085         printing approximate values.
53086
53087 2000-06-14  Paul Eggert  <eggert@twinsun.com>
53088
53089         * lib/human.c (human_readable_inexact): Allow an input block
53090         size that is not a multiple of the output block size, and vice versa.
53091         Reported by Piergiorgio Sartor.
53092
53093 2000-06-14  Paul Eggert  <eggert@twinsun.com>
53094
53095         * lib/getdate.y (get_date): Apply relative times after time
53096         zone indicator, not before.  Reported by Todd A. Jacobs.
53097
53098 2000-06-13  Jim Meyering  <meyering@lucent.com>
53099
53100         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
53101
53102         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
53103
53104 2000-06-12  Paul Eggert  <eggert@twinsun.com>
53105
53106         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
53107
53108 2000-06-12  Jim Meyering  <meyering@lucent.com>
53109
53110         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
53111         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
53112         optional argument.
53113         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
53114         the optional argument, `lib'.
53115
53116 2000-06-08  Jim Meyering  <meyering@lucent.com>
53117
53118         * m4/largefile.m4: Remove file (now that it's part of autoconf).
53119
53120 2000-06-04  Paul Eggert  <eggert@twinsun.com>
53121
53122         Rewrite largefile configuration so that we don't need to run
53123         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
53124         AC_CANONICAL_HOST in configure.in -- jmm]
53125
53126         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
53127         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
53128         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
53129         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
53130         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
53131         All uses changed.
53132         Instead of inspecting the output of getconf, try to compile the
53133         test program without and with the macro definition.
53134         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
53135         for getconf.  Instead, check for the needed flags by compiling
53136         test programs.
53137
53138 2000-06-04  Paul Eggert  <eggert@twinsun.com>
53139
53140         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
53141
53142 2000-06-04  Jim Meyering  <meyering@lucent.com>
53143
53144         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
53145         SunOS 4.1.4 for which gid_t is an unsigned type.
53146
53147 2000-06-03  Jim Meyering  <meyering@lucent.com>
53148
53149         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
53150         now that autoconf requires that.
53151
53152         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
53153         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
53154         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
53155
53156 2000-06-03  Jim Meyering  <meyering@lucent.com>
53157
53158         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
53159
53160 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
53161
53162         * m4/glibc21.m4: New file.
53163         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
53164
53165 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
53166
53167         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
53168         newer, don't install charset.alias.
53169         * lib/config.charset: Change the Linux/glibc rules so they become empty
53170         on glibc-2.1 or newer.
53171
53172 2000-06-02  Jim Meyering  <meyering@lucent.com>
53173
53174         * lib/mountlist.c: Back out last change.  Instead, do this...
53175         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
53176         me_dummy member using the same `ignore'-testing code.
53177         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
53178         fs_type strings.
53179         From Mark D. Roth.
53180
53181 2000-05-29  Jim Meyering  <meyering@lucent.com>
53182
53183         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
53184         mounts with the `ignore' attribute.  Based on a patch from
53185         Mark D. Roth.
53186
53187 2000-05-28  Jim Meyering  <meyering@lucent.com>
53188
53189         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
53190         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
53191         * m4/stat.m4: Likewise.
53192         * m4/lstat.m4: Likewise.
53193         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
53194
53195         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
53196         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
53197
53198 2000-05-26  Jim Meyering  <meyering@lucent.com>
53199
53200         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
53201
53202 2000-05-24  Jim Meyering  <meyering@lucent.com>
53203
53204         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
53205         autoconf requires that.
53206         * m4/lib-check.m4: Likewise.
53207         * m4/jm-macros.m4: Likewise.
53208         * m4/strftime.m4: Likewise.
53209
53210         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
53211         AC_CHECK_DECLS, now that autoconf requires that.
53212
53213 2000-05-22  Jim Meyering  <meyering@lucent.com>
53214
53215         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
53216         * m4/lstat.m4: Likewise.
53217
53218 2000-05-22  Jim Meyering  <meyering@lucent.com>
53219
53220         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
53221
53222 2000-05-20  Jim Meyering  <meyering@lucent.com>
53223
53224         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
53225         (jm_PREREQ): Use it.
53226
53227 2000-05-18  Jim Meyering  <meyering@lucent.com>
53228
53229         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
53230         back, too, since it may have been modified by allocate_entry.
53231         (hash_delete): Rewrite to use neither the assignment operator
53232         nor the comma operator in an if-expression.
53233
53234 2000-05-15  Paul Eggert  <eggert@twinsun.com>
53235
53236         * lib/closeout.c:
53237         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
53238         Remove; no longer needed.
53239         "quotearg.h": Add include.
53240         (file_name): Do not bother to explicitly initialize to NULL; it's less
53241         efficient on some hosts.
53242         (close_stdout_status): Remove test as to whether stdout was already
53243         closed; it breaks for the case "echo x | sort >&-".
53244         Quote file name colons.
53245         Do not assume that _("write error") lacks format strings.
53246
53247 2000-05-15  Jim Meyering  <meyering@lucent.com>
53248
53249         * lib/version-etc.c (version_etc_copyright): Update the copyright
53250         string used in all --version output.
53251
53252 2000-05-14  Jim Meyering  <meyering@lucent.com>
53253
53254         * lib/closeout.c (close_stdout_set_file_name): New function.
53255         (close_stdout_status): Use new file-scoped global.
53256         Return right away if fstat says the stdout file descriptor is invalid.
53257         * lib/closeout.h (close_stdout_set_file_name): Declare.
53258
53259 2000-05-10  Jim Meyering  <meyering@lucent.com>
53260
53261         * lib/closeout.c [default_exit_status]: New file-scoped variable.
53262         (close_stdout_set_status): New function.
53263         * lib/closeout.h (close_stdout_set_status): Declare.
53264
53265 2000-05-09  Jim Meyering  <meyering@lucent.com>
53266
53267         * m4/gettext.m4: Rename this...
53268         * m4/libintl.m4: ...to this.
53269
53270 2000-05-08  Jim Meyering  <meyering@lucent.com>
53271
53272         * lib/long-options.c: Don't include closeout.h.
53273         (parse_long_options): Don't call close_stdout for --version.
53274
53275 2000-05-06  Paul Eggert  <eggert@twinsun.com>
53276
53277         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
53278         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
53279         2.1.3 bug.  This avoids a clash when files like regex.c define
53280         _GNU_SOURCE.
53281
53282 2000-05-06  Jim Meyering  <meyering@lucent.com>
53283
53284         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
53285         (AC_REPLACE_FUNCS): Add strnlen.
53286
53287         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
53288         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
53289
53290         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
53291         AC_SEARCH_LIBS call for nanosleep.
53292         (LIB_NANOSLEEP): Set and AC_SUBST.
53293
53294 2000-05-06  Jim Meyering  <meyering@lucent.com>
53295
53296         * lib/strnlen.c: Undefine __strnlen and strnlen.
53297         [!weak_alias]: Define __strnlen to strnlen.
53298
53299         * lib/atexit.c: New file, from libiberty.
53300
53301 2000-05-06  Jim Meyering  <meyering@lucent.com>
53302
53303         * lib/closeout.c (close_stdout_status): Also check for errors on the
53304         stderr stream.
53305
53306 2000-05-05  Jim Meyering  <meyering@lucent.com>
53307
53308         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
53309         AC_SEARCH_LIBS call for clock_gettime.
53310         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
53311
53312         * m4/search-libs.m4: Update from autoconf.
53313
53314         su doesn't work on Solaris 2.6.
53315         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
53316         <shadow.h>.  Reported by Dragos Harabor.
53317
53318 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
53319
53320         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
53321         memcpy instead of xmalloc, xrealloc, path_concat.
53322         (locale_charset): Treat empty environment variables as absent.
53323         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
53324
53325 2000-05-04  Jim Meyering  <meyering@lucent.com>
53326
53327         * lib/getopt.c: Update from glibc.
53328         * lib/obstack.c: Likewise.
53329         * lib/obstack.h: Likewise.
53330         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
53331         file
53332
53333         * lib/regex.h: Likewise.
53334         * lib/strndup.c: Likewise.
53335         * lib/strnlen.c: New file, from glibc.
53336
53337 2000-05-03  Jim Meyering  <meyering@lucent.com>
53338
53339         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
53340
53341 2000-05-02  Paul Eggert  <eggert@twinsun.com>
53342
53343         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
53344         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
53345         compile-time test, rather than inspecting host and OS, to
53346         decide whether to define _LARGEFILE_SOURCE.
53347
53348 2000-05-01  Jim Meyering  <meyering@lucent.com>
53349
53350         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
53351
53352         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
53353         Based on a patch from Bruno Haible.
53354
53355 2000-05-01  Jim Meyering  <meyering@lucent.com>
53356
53357         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
53358
53359 2000-04-29  Jim Meyering  <meyering@lucent.com>
53360
53361         * lib/path-concat.c: Declare strdup only if it's not defined.
53362         * lib/canon-host.c: Likewise.
53363
53364 2000-04-28  Jim Meyering  <meyering@lucent.com>
53365
53366         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
53367         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
53368         is included first, then limits.h is included by locale.h by libintl.h.
53369         From John David Anglin.
53370
53371 2000-04-25  Jim Meyering  <meyering@lucent.com>
53372
53373         * lib/makepath.c (S_IRWXUGO): Define.
53374         (make_path): Always perform explicit chmod if MODE specifies any
53375         of the `special' permission bits.  Prompted by a bug report against
53376         install from Mate Wierdl and Joost van Baal.
53377
53378 2000-04-18  Jim Meyering  <meyering@lucent.com>
53379
53380         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
53381         (jm_PREREQ): Use it.
53382
53383 2000-04-18  Jim Meyering  <meyering@lucent.com>
53384
53385         * lib/README: New file.
53386
53387         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
53388         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
53389
53390 2000-04-17  Jim Meyering  <meyering@lucent.com>
53391
53392         Get it right :-)
53393         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
53394         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
53395         Suggestion from Akim Demaille.
53396
53397 2000-04-17  Jim Meyering  <meyering@lucent.com>
53398
53399         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
53400         the definition of it to rpl_strftime also defined-away the system's
53401         declaration.
53402
53403 2000-04-15  Jim Meyering  <meyering@lucent.com>
53404
53405         Use `C' to denote so-called `contiguous' files, the same way
53406         that tar does.
53407         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
53408         (ftypelet): Use S_ISCTG.
53409         From Michael Deutschmann.
53410
53411 2000-04-14  Jim Meyering  <meyering@lucent.com>
53412
53413         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
53414         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
53415         clobbered.
53416
53417 2000-04-14  Jim Meyering  <meyering@lucent.com>
53418
53419         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
53420
53421 2000-04-13  Jim Meyering  <meyering@lucent.com>
53422
53423         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
53424         AH_VERBATIM to insert required #ifndef into config.h.in.
53425         Suggestion from Akim Demaille.
53426
53427 2000-04-12  Jim Meyering  <meyering@lucent.com>
53428
53429         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
53430         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
53431         Christian Krackowizer.
53432
53433         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
53434         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
53435         (AC_SYS_LARGEFILE): Require.
53436         (AM_C_PROTOTYPES): Require.
53437
53438 2000-04-08  Jim Meyering  <meyering@lucent.com>
53439
53440         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
53441         names don't conflict.  Reported by Eli Zaretskii.
53442
53443 2000-04-07  Jim Meyering  <meyering@lucent.com>
53444
53445         * lib/putenv.c: Move inclusion of errno.h so it follows that of
53446         sys/types.h, to work around system header problems on AIX 3.2.5.
53447         From Bruno Haible.
53448
53449 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
53450
53451         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
53452         bug.  Deal with the different error behavior of Irix iconv.
53453
53454 2000-04-05  Paul Eggert  <eggert@twinsun.com>
53455
53456         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
53457         IRIX if the installer said otherwise.
53458
53459 2000-04-05  Jim Meyering  <meyering@lucent.com>
53460
53461         Portability tweaks required for ultrix4.3.
53462         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
53463         (jm_CHECK_DECLS): Add getutent to the list of functions.
53464         (_jm_DECL_HEADERS): Add utmpx.h.
53465         From John David Anglin.
53466
53467         * m4/strftime.m4: Back out the 2000-04-02 change.
53468         Instead of that change, simply undefine putenv in the test program.
53469
53470 2000-04-05  Jim Meyering  <meyering@lucent.com>
53471
53472         Portability tweaks required for ultrix4.3.
53473         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
53474         getutent.
53475         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
53476         * lib/canon-host.c: Declare strdup.
53477         * lib/path-concat.c: Likewise.
53478         From John David Anglin.
53479
53480 2000-04-04  Jim Meyering  <meyering@lucent.com>
53481
53482         Be more DOS 8.3-friendly.
53483         * lib/ref-add.sin: Renamed from ref-add.sed.in.
53484         * lib/ref-del.sin: Renamed from ref-del.sed.in.
53485         * lib/Makefile.am: Reflect renaming.
53486         Reported by Eli Zaretskii.
53487
53488         Use a temporary file name that won't clash with `charset.alias'
53489         in the DOS 8.3 name space.
53490         * lib/Makefile.am (charset_tmp): Define.
53491         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
53492         (uninstall-local): Likewise.
53493         Reported by Eli Zaretskii.
53494
53495 2000-04-03  Jim Meyering  <meyering@lucent.com>
53496
53497         * m4/gettext.m4: Fix typo in comment.
53498
53499         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
53500         textutils/configure.in).  Suggestion from Paul Eggert.
53501         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
53502
53503 2000-04-02  Paul Eggert  <eggert@twinsun.com>
53504
53505         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
53506         variable in the shell rather than using putenv, which isn't
53507         portable.  This avoids the configure-time inter-test dependency
53508         on the potentially-renamed putenv function.
53509
53510 2000-03-30  Paul Eggert  <eggert@twinsun.com>
53511
53512         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
53513         before checking struct stat.st_blksize, so that
53514         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
53515
53516 2000-03-29  Paul Eggert  <eggert@twinsun.com>
53517
53518         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
53519         since strftime.c uses HAVE_STRFTIME to decide whether to use
53520         the underlying strftime.
53521
53522 2000-03-29  Paul Eggert  <eggert@twinsun.com>
53523
53524         * lib/time/strftime.c (my_strftime): Make sure we call the system
53525         strftime, not ourselves, when invoking the underlying strftime.
53526
53527 2000-03-24  Jim Meyering  <meyering@lucent.com>
53528
53529         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
53530         (charset_alias): Define.
53531         (install-exec-local): Factor out common code.
53532         (uninstall-local): Split lines longer than 80.
53533         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
53534         (SUFFIXES): Define.
53535         (.sed.in.sed): New rule.  Don't redirect directly to $@.
53536         (CLEANFILES): Add ref-add.sed and ref-del.sed.
53537
53538 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
53539
53540         * lib/config.charset: Output a line containing "Packages using this
53541         file".
53542         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
53543         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
53544         ref-del.sed): New rules.
53545
53546 2000-03-17  Jim Meyering  <meyering@lucent.com>
53547
53548         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
53549         Otherwise, include <strings.h>
53550
53551 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
53552
53553         * lib/unicodeio.c (utf8_wctomb): New function.
53554         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
53555         format instead of in UCS-4 with platform dependent endianness.
53556
53557 2000-03-10  Jim Meyering  <meyering@lucent.com>
53558
53559         * m4/lib-check.m4: Look for getspnam in -lgen, too.
53560         From Marco Franzen.
53561
53562 2000-03-07  Paul Eggert  <eggert@twinsun.com>
53563
53564         * lib/savedir.c (savedir): Work even if directory size is
53565         negative; this can happen with some screwy NFS configurations.
53566
53567 2000-03-06  Jim Meyering  <meyering@lucent.com>
53568
53569         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
53570         if it's NULL (because we ran out of memory).  From Bruno Haible.
53571
53572 2000-03-05  Jim Meyering  <meyering@lucent.com>
53573
53574         * lib/localcharset.c ("path-concat.h"): Include.
53575         (get_charset_aliases): Use path_concat instead of ANSI string
53576         concatenation.
53577
53578         * lib/unicodeio.h (PARAMS): Define.
53579         Use it to guard prototype.
53580
53581 2000-03-04  Jim Meyering  <meyering@lucent.com>
53582
53583         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
53584         for lib/localcharset.c.
53585
53586 2000-03-04  Jim Meyering  <meyering@lucent.com>
53587
53588         * lib/Makefile.am (install-exec-local): Create $(libdir) before
53589         installing into it.
53590         (uninstall-local): Uncomment this rule so `make distcheck' works
53591         once again.
53592
53593         * lib/unicodeio.c (<errno.h>): Include it.
53594         (errno): Declare if not defined.
53595
53596         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
53597
53598         * lib/config.charset: New version, incorporating remarks from a linux
53599         i18n mailing list.  From Bruno Haible.
53600
53601 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
53602
53603         * m4/codeset.m4: New file.
53604         * m4/iconv.m4: New file.
53605         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
53606
53607 2000-03-03  Jim Meyering  <meyering@lucent.com>
53608
53609         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
53610
53611 2000-03-02  Jim Meyering  <meyering@lucent.com>
53612
53613         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
53614         the messages come out on separate lines.
53615
53616         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
53617         rather than jm_CHECK_DECLARATIONS.
53618         * m4/decl.m4: Remove now-unused file.
53619
53620         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
53621         geteuid.
53622
53623 2000-03-02  Jim Meyering  <meyering@lucent.com>
53624
53625         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
53626
53627 2000-03-01  Jim Meyering  <meyering@lucent.com>
53628
53629         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
53630         * lib/unicodeio.c: Likewise.
53631
53632 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
53633
53634         * lib/config.charset: New file.
53635         * lib/localcharset.c: New file.
53636         * lib/unicodeio.h, lib/unicodeio.c: New files.
53637         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
53638         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
53639         (noinst_HEADERS): Add unicodeio.h.
53640         (all-local, install-exec-local, charset.alias): New targets.
53641
53642 2000-02-28  Paul Eggert  <eggert@twinsun.com>
53643
53644         * lib/quotearg.c (ALERT_CHAR): New macro.
53645         (quotearg_buffer_restyled): Use it.
53646
53647 2000-02-27  Jim Meyering  <meyering@lucent.com>
53648
53649         * m4/check-decl.m4: Add getenv to the list.
53650
53651 2000-02-27  Jim Meyering  <meyering@lucent.com>
53652
53653         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
53654         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
53655
53656         * lib/backupfile.c: Guard inclusion of stdlib.h with
53657         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
53658         Declare malloc if needed.
53659
53660         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
53661         `#ifndef HAVE_DECL..'
53662         now that autoconf always defines the HAVE_DECL_ symbols.
53663         * lib/human.c: Likewise.
53664         * lib/same.c: Likewise.
53665         * lib/strtoumax.c: Likewise.
53666
53667         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
53668         declaration check was not run.
53669         * lib/hash.c: Likewise.
53670         * lib/human.c: Likewise.
53671         * lib/same.c: Likewise.
53672         * lib/strtoumax.c: Likewise.
53673
53674         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
53675         `.', then first look up the entire `.'-containing string as a login
53676         name.
53677
53678 2000-02-23  Jim Meyering  <meyering@lucent.com>
53679
53680         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
53681         in place of my hack.
53682
53683 2000-02-18  Paul Eggert  <eggert@twinsun.com>
53684
53685         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
53686         (textint): New typedef.
53687         (parser_control): Member year changed from int to textint.
53688         All uses changed.
53689         (YYSTYPE): Removed; replaced by %union with int and textint members.
53690         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
53691         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
53692         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
53693         (tSNUMBER, tUNUMBER): Now of type <textintval>.
53694         (date, number, to_year): Use width of number in digits, not its value,
53695         to determine whether it's a 2-digit year, or a 2-digit time.
53696         (yylex): Store number of digits of numeric tokens.
53697         Reported by John Kendall.
53698
53699         (parser_control): Changed from struct parser_control to typedef (for
53700         consistency).  All uses changed.
53701
53702         (tID): Removed; not used.
53703         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
53704
53705 2000-02-14  Paul Eggert  <eggert@twinsun.com>
53706
53707         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
53708         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
53709
53710 2000-02-12  Jim Meyering  <meyering@lucent.com>
53711
53712         * lib/userspec.c (ISDIGIT): Define it.
53713         (isdigit): Remove definition.
53714         (is_number): Use ISDIGIT, not isdigit.
53715         <libintl.h>: Include.
53716         (_ and N_): Define.
53717         (parse_user_spec): Mark translatable strings.
53718
53719 2000-02-10  Jim Meyering  <meyering@lucent.com>
53720
53721         With these changes, nanosleep.[ch] are finally enough like the other
53722         lib/* replacement files to compile on a few more losing systems.
53723
53724         * lib/nanosleep.h: Don't include config.h.
53725         Remove prototype from declaration of nanosleep.
53726         (PARAMS): Remove now-unneeded definition.
53727         * lib/nanosleep.c: #undef nanosleep.
53728         (rpl_nanosleep): Rename from nanosleep.
53729
53730 2000-02-10  Jim Meyering  <meyering@lucent.com>
53731
53732         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
53733         gnu_nanosleep to rpl_nanosleep.
53734
53735 2000-02-09  Jim Meyering  <meyering@lucent.com>
53736
53737         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
53738         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
53739
53740 2000-02-08  Akim Demaille  <akim@epita.fr>
53741
53742         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
53743         `[' and `]' and remove uses of `changequote'.
53744         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
53745         (AC_SYS_LARGEFILE): Likewise.
53746         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
53747         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
53748         of changequote.
53749         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
53750         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
53751         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
53752         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
53753
53754 2000-02-05  Jim Meyering  <meyering@lucent.com>
53755
53756         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
53757         Remove explicit use of AC_HEADER_TIME.  It is required by
53758         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
53759         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
53760         in autoconf whereby the expansion of the latter ended up preceding
53761         the expansion of its prerequisite, AC_HEADER_TIME.
53762         Reported by Volker Borchert.
53763
53764 2000-02-03  Jim Meyering  <meyering@lucent.com>
53765
53766         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
53767
53768 2000-02-03  Jim Meyering  <meyering@lucent.com>
53769
53770         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
53771         rather than with `#if HAVE_UTMPNAME'.
53772
53773 2000-02-02  Jim Meyering  <meyering@lucent.com>
53774
53775         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
53776         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
53777         Reported by Eli Zaretskii.
53778
53779 2000-02-01  Jim Meyering  <meyering@lucent.com>
53780
53781         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
53782
53783 2000-01-31  Jim Meyering  <meyering@lucent.com>
53784
53785         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
53786         functions.  Add the time.h and sys/time.h headers along with the
53787         AC_REQUIRE'ment of AC_HEADER_TIME.
53788
53789 2000-01-31  Jim Meyering  <meyering@lucent.com>
53790
53791         * lib/nanosleep.h (nanosleep): Guard declaration with
53792         `#if ! HAVE_DECL_NANOSLEEP'.
53793         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
53794         the declaration in that vendor's sys/timers.h.
53795         Reported by Christian Krackowizer.
53796
53797         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
53798         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
53799         (ISPRINT): Likewise.
53800         Reported by Tom Tromey.
53801
53802 2000-01-30  Jim Meyering  <meyering@lucent.com>
53803
53804         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
53805
53806         * m4/prereq.m4 (utmp_includes): Define.
53807         Check for ut_user and ut_name members in both struct utmpx
53808         and struct utmp.
53809
53810 2000-01-30  Jim Meyering  <meyering@lucent.com>
53811
53812         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
53813         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
53814         header files where only utmpx.ut_user is declared.
53815
53816         * lib/readutmp.h (UT_USER): Define.
53817
53818 2000-01-29  Jim Meyering  <meyering@lucent.com>
53819
53820         * m4/lib-check.m4: New file containing library-related checks from
53821         fileutils and sh-utils (textutils had none).
53822
53823 2000-01-28  Jim Meyering  <meyering@lucent.com>
53824
53825         * m4/perl.m4: Change format of warning message to look more like that
53826         from the missing script.  Suggestion from François Pinard.
53827
53828 2000-01-25  Jim Meyering  <meyering@lucent.com>
53829
53830         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
53831         well as time.h in the compile check.
53832         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
53833         Fix typo in cross-compiling case: s/yes/no/.
53834
53835 2000-01-23  Jim Meyering  <meyering@lucent.com>
53836
53837         * m4/jm-macros.m4: Move df-related tests here from
53838         fileutils/configure.in
53839
53840         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
53841         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
53842
53843         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
53844         s/space/ac_fsusage_space/.
53845         (jm_FILE_SYSTEM_USAGE): Take two parameters.
53846
53847         * m4/ftruncate.m4: New file (derived from part of
53848         fileutils/configure.in).
53849         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
53850         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
53851
53852         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
53853         AC_SUBST these here, rather than just in sh-util/configure.in, so
53854         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
53855         all the same.
53856         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
53857         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
53858         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
53859         (AC_SUBST(POW_LIBM)): Likewise.
53860         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
53861
53862 2000-01-23  Jim Meyering  <meyering@lucent.com>
53863
53864         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
53865         obstack.c.
53866
53867 2000-01-22  Jim Meyering  <meyering@lucent.com>
53868
53869         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
53870
53871         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
53872
53873         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
53874         configure.in
53875         (AC_CHECK_HEADERS): Likewise for sh-utils.
53876         (AC_CHECK_HEADERS): Likewise for textutils.
53877         Merge the three lists of headers.
53878
53879         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
53880         from fileutils' configure.in.
53881
53882         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
53883         code. Moved tests into their own function (_jm_DECL_HEADERS) in
53884         check-decl.m4.
53885
53886         * m4/check-decl.m4: Use #if rather than #ifdef.
53887         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
53888         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
53889         (_jm_DECL_HEADERS): Define new function.
53890         (jm_CHECK_DECLARATIONS): Require it.
53891
53892 2000-01-22  Jim Meyering  <meyering@lucent.com>
53893
53894         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
53895         [! HAVE_DECL_STRTOULL]: Declare strtoull.
53896         Required for some AIX systems.  Reported by Christian Krackowizer.
53897         [TESTING] (main): New function.
53898
53899         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
53900         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
53901         letters.
53902
53903         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
53904         iswprint.
53905
53906         * lib/strverscmp.c (ISDIGIT): Define.
53907         (strverscmp): Use ISDIGIT, not isdigit.
53908
53909 2000-01-19  Jim Meyering  <meyering@lucent.com>
53910
53911         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
53912         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
53913         defines `struct timespec' in <sys/time.h>
53914
53915         * m4/c-bs-a.m4: Remove uses of changequote altogether.
53916         Thanks to Akim for explaining.
53917
53918 2000-01-17  Paul Eggert  <eggert@twinsun.com>
53919
53920         * lib/nanosleep.c (nanosleep):
53921         Don't use SA_INTERRUPT to decide whether to call sigaction, as
53922         POSIX.1 doesn't require SA_INTERRUPT and some systems
53923         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
53924         it's been part of POSIX.1 since day 1 (in 1988).
53925
53926 2000-01-17  Jim Meyering  <meyering@lucent.com>
53927
53928         * lib/interlock: Remove unused file.  Reported by François Pinard.
53929
53930 2000-01-16  Paul Eggert  <eggert@twinsun.com>
53931
53932         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
53933         alert, backslash, formfeed, and vertical tab unnecessarily in
53934         shell quoting style.
53935
53936 2000-01-16  Jim Meyering  <meyering@lucent.com>
53937
53938         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
53939         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
53940         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
53941         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
53942
53943 2000-01-16  Jim Meyering  <meyering@lucent.com>
53944
53945         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
53946         because the latter didn't work.
53947
53948 2000-01-15  Jim Meyering  <meyering@lucent.com>
53949
53950         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
53951         (AC_REPLACE_FUNCS): Add memcpy and memset.
53952         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
53953         Add strpbrk.
53954         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
53955
53956 2000-01-12  Jim Meyering  <meyering@lucent.com>
53957
53958         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
53959         (jm_PREREQ): Use it.
53960         (jm_PREREQ_READUTMP): New macro.
53961         (jm_PREREQ): Use it.
53962
53963 2000-01-11  Paul Eggert  <eggert@twinsun.com>
53964
53965         Quote multibyte characters correctly.
53966         * m4/c-bs-a.m4: New file.
53967         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
53968         (jm_PREREQ): Use it.
53969
53970 2000-01-11  Paul Eggert  <eggert@twinsun.com>
53971
53972         * m4/uintmax_t.m4: Port to autoconf 2.13.
53973
53974 2000-01-08  Jim Meyering  <meyering@ascend.com>
53975
53976         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
53977         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
53978
53979 2000-01-04  Jim Meyering  <meyering@ascend.com>
53980
53981         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
53982         jm_STRUCT_DIRENT_D_TYPE.
53983         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
53984         jm_STRUCT_DIRENT_D_INO.
53985         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
53986         jm_STRUCT_UTIMBUF.
53987         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
53988         renamings.
53989         * m4/utime.m4: Likewise.
53990
53991         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
53992         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
53993
53994 2000-01-03  Paul Eggert  <eggert@twinsun.com>
53995
53996         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
53997         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
53998
53999 2000-01-02  Jim Meyering  <meyering@ascend.com>
54000
54001         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
54002         remember if this is necessary.
54003
54004 1999-12-26  Jim Meyering  <meyering@ascend.com>
54005
54006         * m4/jm-macros.m4: Use it here.
54007         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
54008
54009 1999-12-23  Jim Meyering  <meyering@ascend.com>
54010
54011         * m4/jm-macros.m4: Check for clock_gettime (moved from
54012         fileutils/configure.in)
54013         Check for gettimeofday.
54014
54015 1999-12-20  Jim Meyering  <meyering@ascend.com>
54016
54017         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
54018         autoconf-2.14a-1999-12-20.
54019
54020 1999-12-19  Jim Meyering  <meyering@ascend.com>
54021
54022         * m4/lstat-slash.m4: New file.
54023         * m4/jm-macros.m4: Use the new macro:
54024         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54025
54026 1999-12-07  Jim Meyering  <meyering@ascend.com>
54027
54028         * m4/perl.m4: Require that File::Compare be available, too.
54029         Too many systems seem to lack it.
54030
54031         * m4/strftime.m4: Add checks for most of the cpp macros tested in
54032         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
54033
54034 1999-11-18  Paul Eggert  <eggert@twinsun.com>
54035
54036         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
54037         problem with the QNX 4.25 shell, which doesn't propagate exit
54038         status of failed commands inside shell assignments.
54039
54040 1999-11-17  Jim Meyering  <meyering@ascend.com>
54041
54042         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
54043
54044 1999-11-07  Jim Meyering  <meyering@ascend.com>
54045
54046         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
54047
54048 1999-11-06  Jim Meyering  <meyering@ascend.com>
54049
54050         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
54051         * m4/jm-macros.m4 (jm_MACROS): Use it here.
54052
54053 1999-11-05  Jim Meyering  <meyering@ascend.com>
54054
54055         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
54056         configure.in of textutils, fileutils, and sh-utils into this one
54057         (shared between those packages) file.
54058         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
54059         AC_STRUCT_ST_BLKSIZE.
54060
54061 1999-11-03  Jim Meyering  <meyering@ascend.com>
54062
54063         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
54064         of AC_CHECK_TYPE checks includes unistd.h.
54065         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
54066         Suggestion from Akim Demaille.
54067
54068 1999-10-30  Jim Meyering  <meyering@ascend.com>
54069
54070         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
54071         m4-quoted string.
54072         * m4/ls-mntd-fs.m4: Likewise.
54073         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
54074         * m4/jm-winsz1.m4: Likewise.
54075
54076         * m4/const.m4: Remove file, since the fix made it into the experimental
54077         version of autoconf.
54078         * m4/mktime.m4: Likewise.
54079
54080         * m4/check-type.m4: Remove file, now that the latest version of
54081         AC_CHECK_TYPE takes a third arg to specify additional #includes.
54082
54083         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
54084         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
54085         AC_CHECK_TYPE.
54086
54087 1999-10-04  Jim Meyering  <meyering@ascend.com>
54088
54089         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
54090
54091 1999-09-22  Paul Eggert  <eggert@twinsun.com>
54092
54093         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
54094         2.95.1 bug with HP-UX 10.20.
54095
54096 1999-09-17  Jim Meyering  <meyering@ascend.com>
54097
54098         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
54099         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
54100         due to missing strdup (against sh-utils-2.0).
54101
54102 1999-08-29  Jim Meyering  <meyering@ascend.com>
54103
54104         * m4/jm-macros.m4: Require jm_BISON.
54105         * m4/bison.m4: New file.
54106
54107 1999-08-17  Paul Eggert  <eggert@twinsun.com>
54108
54109         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
54110         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
54111
54112 1999-08-05  Jim Meyering  <meyering@ascend.com>
54113
54114         * m4/getline.m4: Rename test file from conftestdata to conftest.data
54115         to avoid conflicts with `conftest' on 8+3 filesystems.
54116         Suggestion from Eli Zaretskii.
54117
54118 1999-08-04  Jim Meyering  <meyering@ascend.com>
54119
54120         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
54121         fileutils and sh-utils (textutils's getline test was inadequate).
54122         (AM_FUNC_GETLINE): Run this test.
54123         (AC_CHECK_FUNCS): Check for getdelim.
54124         Reported by Bob Proulx.
54125
54126 1999-08-02  Jim Meyering  <meyering@ascend.com>
54127
54128         * m4/jm-macros.m4: Add a comment.
54129
54130 1999-08-01  Paul Eggert  <eggert@twinsun.com>
54131
54132         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
54133         <inttypes.h> defines strtoumax as a macro (and not as a
54134         function).
54135
54136 1999-08-01  Paul Eggert  <eggert@twinsun.com>
54137
54138         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
54139         that we can shift, multiply and divide unsigned long long
54140         values; Ultrix cc can't do it.
54141
54142 1999-08-01  Paul Eggert  <eggert@twinsun.com>
54143
54144         * m4/mktime.m4: New file, which is a preview of what should appear
54145         in the next public autoconf release.
54146
54147 1999-08-01  Paul Eggert  <eggert@twinsun.com>
54148
54149         * m4/lfs.m4: Remove this file.
54150         * m4/largefile.m4: New file.  It contains the old contents of
54151         lfs.m4, except that all names with prefix AC_LFS have been
54152         changed to use the prefix AC_SYS_LARGEFILE instead, to be
54153         compatible with future autoconf versions.  Also, some minor m4
54154         quoting problems have been fixed.
54155
54156 1999-08-01  Paul Eggert  <eggert@twinsun.com>
54157
54158         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
54159         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
54160         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
54161         and simplify the shell code.
54162
54163 1999-08-01  Jim Meyering  <meyering@ascend.com>
54164
54165         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
54166         m4.
54167
54168 1999-07-20  Jim Meyering  <meyering@ascend.com>
54169
54170         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
54171
54172 1999-07-15  Jim Meyering  <meyering@ascend.com>
54173
54174         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
54175
54176 1999-05-22  Jim Meyering  <meyering@ascend.com>
54177
54178         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
54179
54180 1999-05-20  Jim Meyering  <meyering@ascend.com>
54181
54182         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
54183         Add a colon after each `then' in case $4 is empty.
54184
54185 1999-05-16  Jim Meyering  <meyering@ascend.com>
54186
54187         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
54188
54189 1999-05-10  Jim Meyering  <meyering@ascend.com>
54190
54191         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
54192
54193         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
54194         AC_FUNC_MKTIME.
54195
54196 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
54197
54198         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
54199
54200 1999-05-04  Paul Eggert  <eggert@twinsun.com>
54201
54202         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
54203         not CPPFLAGS, so that linking works correctly in IRIX.
54204
54205 1999-04-30  Paul Eggert  <eggert@twinsun.com>
54206
54207         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
54208
54209 1999-04-20  Paul Eggert  <eggert@twinsun.com>
54210
54211         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
54212         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
54213         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
54214         jm_AC_TYPE_UNSIGNED_LONG_LONG.
54215         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
54216
54217         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
54218
54219 1999-04-20  Jim Meyering  <meyering@ascend.com>
54220
54221         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
54222         AC_REPLACE xstroull if necessary.  From Paul Eggert.
54223         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
54224
54225 1999-04-18  Jim Meyering  <meyering@ascend.com>
54226
54227         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
54228         * m4/jm-macros.m4: Use it.
54229
54230 1999-04-06  Jim Meyering  <meyering@ascend.com>
54231
54232         * m4/strftime.m4: Remove test for %f.
54233
54234 1999-03-29  Jim Meyering  <meyering@ascend.com>
54235
54236         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
54237         superset of the AC_TYPE_* checks in the textutils, fileutils,
54238         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
54239         AC_TYPE_PID_T.
54240
54241 1999-03-28  Jim Meyering  <meyering@ascend.com>
54242
54243         * m4/jm-macros.m4: Define GNU_PACKAGE here.
54244         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
54245         replaced e.g., in the *.sh files of the sh-utils.
54246
54247 1999-03-20  Jim Meyering  <meyering@ascend.com>
54248
54249         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
54250         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
54251         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
54252
54253 1999-03-19  Jim Meyering  <meyering@ascend.com>
54254
54255         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
54256
54257 1999-03-12  Jim Meyering  <meyering@ascend.com>
54258
54259         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
54260
54261 1999-03-07  Jim Meyering  <meyering@ascend.com>
54262
54263         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
54264         declared.
54265
54266 1999-02-17  Jim Meyering  <meyering@ascend.com>
54267
54268         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
54269         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
54270
54271 1999-02-07  Jim Meyering  <meyering@ascend.com>
54272
54273         * m4/group-member.m4: New file -- extracted from sh-utils'
54274         configure.in.
54275
54276         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
54277         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
54278
54279 1999-02-06  Jim Meyering  <meyering@ascend.com>
54280
54281         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
54282         * m4/fnmatch.m4: Likewise.
54283         * m4/getgroups.m4: Likewise.
54284         * m4/lstat.m4: Likewise.
54285         * m4/malloc.m4: Likewise.
54286         * m4/putenv.m4: Likewise.
54287         * m4/realloc.m4: Likewise.
54288         * m4/regex.m4: Likewise.
54289         * m4/stat.m4: Likewise.
54290         * m4/strftime.m4: Likewise.
54291         Suggestion from Alain Magloire.
54292
54293         * m4/chown.m4: Use `.$ac_objext', not `.o'.
54294         * m4/fnmatch.m4: Likewise.
54295         * m4/getgroups.m4: Likewise.
54296         * m4/getline.m4: Likewise.
54297         * m4/lstat.m4: Likewise.
54298         * m4/malloc.m4: Likewise.
54299         * m4/memcmp.m4: Likewise.
54300         * m4/putenv.m4: Likewise.
54301         * m4/realloc.m4: Likewise.
54302         * m4/regex.m4: Likewise.
54303         * m4/stat.m4: Likewise.
54304         * m4/strftime.m4: Likewise.
54305         Suggestion from Alain Magloire.
54306
54307         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
54308         an argument.
54309
54310         * m4/regex.m4: Add a run-time Test for proper operation of
54311         re_compile_pattern.
54312
54313 1999-01-31  Jim Meyering  <meyering@ascend.com>
54314
54315         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
54316
54317 1999-01-30  Jim Meyering  <meyering@ascend.com>
54318
54319         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
54320
54321         * m4/jm-mktime.m4: Make this a wrapper around the official
54322         AM_FUNC_MKTIME rather than my private copy, now that the official one
54323         is up to date.
54324         * m4/mktime.m4: Remove file.
54325
54326         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
54327         * m4/uptime.m4: Likewise.
54328         * m4/uintmax_t.m4: Likewise.
54329
54330 1999-01-28  Jim Meyering  <meyering@ascend.com>
54331
54332         * m4/jm-macros.m4: Use jm_AFS.
54333         * m4/afs.m4: New file (from fileutils' configure.in).
54334
54335         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
54336         * m4/chown.m4: Likewise.
54337         * m4/d-ino.m4: Likewise.
54338         * m4/d-type.m4: Likewise.
54339         * m4/fnmatch.m4: Likewise.
54340         * m4/getgroups.m4: Likewise.
54341         * m4/gettext.m4: Likewise.
54342         * m4/jm-mktime.m4: Likewise.
54343         * m4/jm-winsz2.m4: Likewise.
54344         * m4/lcmessage.m4: Likewise.
54345         * m4/ls-mntd-fs.m4: Likewise.
54346         * m4/malloc.m4: Likewise.
54347         * m4/memcmp.m4: Likewise.
54348         * m4/putenv.m4: Likewise.
54349         * m4/realloc.m4: Likewise.
54350         * m4/st_mtim.m4: Likewise.
54351         * m4/strftime.m4: Likewise.
54352
54353 1999-01-16  Jim Meyering  <meyering@ascend.com>
54354
54355         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
54356         (ARGMATCH_DIE_DECL): Define.
54357
54358 1999-01-12  Jim Meyering  <meyering@ascend.com>
54359
54360         * m4/Makefile.am.in: Rewrite to avoid using fmt.
54361         Reported by Lars Hecking.
54362
54363 1999-01-10  Jim Meyering  <meyering@ascend.com>
54364
54365         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
54366         gross kludge.
54367         * m4/inttypes_h.m4: Likewise.
54368         * m4/lstat.m4: Likewise.
54369         * m4/malloc.m4: Likewise.
54370         * m4/readdir.m4: Likewise.
54371         * m4/realloc.m4: Likewise.
54372         * m4/st_dm_mode.m4: Likewise.
54373         * m4/stat.m4: Likewise.
54374         * m4/utimbuf.m4: Likewise.
54375         * m4/utimes.m4: Likewise.
54376
54377         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
54378         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
54379         comments in config.h.in are meaningful.
54380
54381         * m4/jm-macros.m4: Require autoconf-2.13 here.
54382
54383         * m4/regex.m4: By default, don't use the included regex.c on systems
54384         with glibc 2.  Suggestion from Uli Drepper.
54385
54386 1999-01-02  Jim Meyering  <meyering@ascend.com>
54387
54388         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
54389
54390 1998-12-18  Jim Meyering  <meyering@ascend.com>
54391
54392         * m4/Makefile.am.in (Makefile.am): Simplify rule.
54393         Based on a suggestion from Lars Hecking.
54394
54395 1998-11-16  Paul Eggert  <eggert@twinsun.com>
54396
54397         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
54398
54399 1998-11-16  Jim Meyering  <meyering@ascend.com>
54400
54401         * m4/lfs.m4: Double-quote the `uname...` expression.
54402
54403 1998-11-14  Jim Meyering  <meyering@ascend.com>
54404
54405         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
54406         * m4/stat.m4: Likewise.
54407
54408 1998-11-03  Jim Meyering  <meyering@ascend.com>
54409
54410         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
54411         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
54412
54413 1998-10-18  Jim Meyering  <meyering@ascend.com>
54414
54415         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
54416
54417 1998-10-17  Jim Meyering  <meyering@ascend.com>
54418
54419         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
54420         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
54421         calls for those previously hard-coded headers.  Instead, take a new
54422         parameter.
54423         (jm_CHECK_DECLARATIONS): Reflect interface change.
54424         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
54425         (jm_CHECK_DECL_LOCALTIME_R): New macro.
54426
54427         * m4/mktime.m4: Test for spring-forward gap before long-running test.
54428
54429 1998-10-14  Jim Meyering  <meyering@ascend.com>
54430
54431         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
54432         instead of "TZ=America/Vancouver".  From Paul Eggert.
54433
54434 1998-10-11  Jim Meyering  <meyering@ascend.com>
54435
54436         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
54437         This adds a test for a recently added compatibility fix for mktime.c.
54438         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
54439
54440 1998-09-27  Jim Meyering  <meyering@ascend.com>
54441
54442         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
54443
54444         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
54445         ../configure.in, including a change from Gordon Matzigkeit to allow
54446         cross-compiling for the Hurd.
54447
54448         * m4/glibc.m4: New file/macro to test for the GNU C Library
54449         versions 1 and 2.  From Gordon Matzigkeit.
54450         Indent.
54451
54452 1998-09-21  Jim Meyering  <meyering@ascend.com>
54453
54454         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
54455
54456 1998-08-18  Paul Eggert  <eggert@twinsun.com>
54457
54458         Port nanosecond-resolution times to UnixWare 2.1.2 and
54459         pedantic Solaris 2.6.
54460
54461         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
54462         AC_STRUCT_ST_MTIM.
54463         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
54464         Generate name of ns member, instead of just 1 or undef.
54465         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
54466
54467 1998-08-15  Jim Meyering  <meyering@ascend.com>
54468
54469         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
54470         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
54471         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
54472         instead of jm_TYPE_SSIZE_T.
54473
54474 1998-08-12  Jim Meyering  <meyering@ascend.com>
54475
54476         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
54477
54478 1998-08-02  Jim Meyering  <meyering@ascend.com>
54479
54480         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
54481         in acconfig.h manually.
54482
54483 1998-07-31  Paul Eggert  <eggert@twinsun.com>
54484
54485         * m4/st_mtim.m4: New file.
54486
54487 1998-07-28  Jim Meyering  <meyering@ascend.com>
54488
54489         * m4/utimes.m4: Undef stat.
54490
54491 1998-07-25  Jim Meyering  <meyering@ascend.com>
54492
54493         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
54494         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
54495
54496 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
54497
54498         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
54499         uid and gid actually remain unchanged.
54500
54501 1998-07-07  Jim Meyering  <meyering@ascend.com>
54502
54503         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
54504
54505 1998-07-04  Jim Meyering  <meyering@ascend.com>
54506
54507         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
54508         to prove that this macro can be used in packages without regex.c.
54509
54510 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
54511
54512         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
54513         is to be used.
54514
54515 1998-07-03  Jim Meyering  <meyering@ascend.com>
54516
54517         * m4/gettext.m4: Add -lintl if it's found to be necessary.
54518
54519         * m4/gettext.m4: New file -- from gettext-0.10.35.
54520         * m4/lcmessage.m4: Likewise.
54521         * m4/progtest.m4: Likewise.
54522
54523         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
54524         * m4/jm-macros.m4: Require the new macro.
54525
54526 1998-06-29  Jim Meyering  <meyering@ascend.com>
54527
54528         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
54529         for the definition of NGROUPS (used in a system header included
54530         by sys/mount.h).
54531
54532 1998-06-28  Jim Meyering  <meyering@ascend.com>
54533
54534         * m4/ls-mntd-fs.m4: New file.
54535         * m4/fstypename.m4: New file.
54536
54537         * m4/jm-macros.m4: Require the new macro.
54538         * m4/jm-glibc-io.m4: New file.
54539
54540 1998-05-19  Jim Meyering  <meyering@ascend.com>
54541
54542         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
54543         * m4/lchown.m4: New file.
54544
54545         * m4/Makefile.am.in: New file.
54546         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
54547
54548 1998-05-14  Jim Meyering  <meyering@ascend.com>
54549
54550         * m4/Makefile.am (EXTRA_DIST): Add them.
54551         * m4/jm-macros.m4: New file.
54552         * m4/utimbuf.m4: New file.
54553
54554 1998-05-12  Jim Meyering  <meyering@ascend.com>
54555
54556         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
54557
54558 1998-05-11  Jim Meyering  <meyering@ascend.com>
54559
54560         * m4/isc-posix.m4: New file.
54561
54562 1998-05-10  Jim Meyering  <meyering@ascend.com>
54563
54564         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
54565
54566 1998-05-09  Jim Meyering  <meyering@ascend.com>
54567
54568         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
54569         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
54570         with automake.
54571
54572         * m4/ssize_t.m4: New file.
54573         * m4/mktime.m4: Remove file -- the new automake has this now.
54574
54575 1998-04-26  Jim Meyering  <meyering@ascend.com>
54576
54577         * m4/assert.m4: New file.
54578         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
54579
54580 1998-04-05  Jim Meyering  <meyering@ascend.com>
54581
54582         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
54583         (jm_PREREQ): Use it here.
54584
54585 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
54586
54587         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
54588         in acconfig.h.
54589
54590 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
54591
54592         * m4/prereq.m4: New file.
54593         * m4/error.m4: New file.
54594         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
54595
54596 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
54597
54598         * m4/getline.m4: Don't set am_cv_func_working_getline before the
54599         cache-check for the same variable -- that defeated the purpose of
54600         the test; the test program was never run.  This was a problem only
54601         on systems with losing getline functions -- HP-UX 10.20 is one.
54602         Reported by Bjorn Helgaas.
54603
54604 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
54605
54606         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
54607
54608 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
54609
54610         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
54611
54612         * m4/const.m4: New file.  Use an initializer in this declaration
54613         typedef int charset[2]; const charset x;
54614         Reported by Bob Glickstein.
54615
54616 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
54617
54618         * m4/chown.m4: Fix reversed types on -1 args to chown.
54619         From Kaveh Ghazi.
54620
54621 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
54622
54623         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
54624         Add lseek and memchr.
54625
54626         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
54627         T.E.Dickey <dickey@clark.net> said that some older preprocessors
54628         have a 20-character limit on names.
54629
54630 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
54631
54632         * m4/inttypes_h.m4: New file.
54633         * m4/uintmax_t.m4: New file.
54634         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
54635
54636
54637         -----
54638
54639         Local Variables:
54640         coding: utf-8
54641         End:
54642
54643         Copyright (C) 1997-2009 Free Software Foundation, Inc.
54644
54645         Copying and distribution of this file, with or without
54646         modification, are permitted provided the copyright notice
54647         and this notice are preserved.